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 machine/ansi.h
32 _BSD_CLOCKS_PER_SEC_
= 128
34 # Included from machine/types.h
35 def major(x
): return ((int)(((u_int
)(x
) >> 8)&0xff))
37 def minor(x
): return ((int)((x
)&0xffff00ff))
40 # Included from machine/endian.h
46 BYTE_ORDER
= LITTLE_ENDIAN
47 def __word_swap_long(x
): return \
49 def __byte_swap_long(x
): return \
51 def __byte_swap_long(x
): return \
53 def __byte_swap_word(x
): return \
55 ntohl
= __byte_swap_long
56 ntohs
= __byte_swap_word
57 htonl
= __byte_swap_long
58 htons
= __byte_swap_word
81 def FFLAGS(oflags
): return ((oflags
) + 1)
83 def OFLAGS(fflags
): return ((fflags
) - 1)
88 FNONBLOCK
= O_NONBLOCK