1 # Generated by h2py from /usr/include/fcntl.h
3 # Included from sys/types.h
5 # Included from sys/cdefs.h
6 def __P(protos
): return protos
8 def __STRING(x
): return #x
10 def __XSTRING(x
): return __STRING(x
)
12 def __P(protos
): return ()
14 def __STRING(x
): return "x"
16 def __RCSID(s
): return __IDSTRING(rcsid
,s
)
18 def __RCSID_SOURCE(s
): return __IDSTRING(rcsid_source
,s
)
20 def __COPYRIGHT(s
): return __IDSTRING(copyright
,s
)
23 # Included from sys/inttypes.h
25 # Included from machine/ansi.h
34 _BSD_CLOCKS_PER_SEC_
= 128
36 # Included from machine/types.h
37 def major(x
): return ((int)(((u_int
)(x
) >> 8)&0xff))
39 def minor(x
): return ((int)((x
)&0xffff00ff))
42 # Included from machine/endian.h
48 BYTE_ORDER
= LITTLE_ENDIAN
49 def __word_swap_long(x
): return \
51 def __byte_swap_long(x
): return \
53 def __byte_swap_long(x
): return \
55 def __byte_swap_word(x
): return \
57 ntohl
= __byte_swap_long
58 ntohs
= __byte_swap_word
59 htonl
= __byte_swap_long
60 htons
= __byte_swap_word
83 def FFLAGS(oflags
): return ((oflags
) + 1)
85 def OFLAGS(fflags
): return ((fflags
) - 1)
90 FNONBLOCK
= O_NONBLOCK