1 # Generated by h2py from /usr/include/fcntl.h
3 # Included from sys/types.h
5 # Included from machine/types.h
7 # Included from sys/cdefs.h
9 # Included from machine/cdefs.h
10 def __P(protos
): return protos
12 def __STRING(x
): return #x
14 def __P(protos
): return ()
16 def __STRING(x
): return "x"
18 def __attribute__(x
): return
20 def __kprintf_attribute__(a
): return __attribute__(a
)
23 # Included from machine/ansi.h
33 # Included from machine/endian.h
39 BYTE_ORDER
= LITTLE_ENDIAN
40 def __byte_swap_long_variable(x
): return \
42 def __byte_swap_long_variable(x
): return \
44 def __byte_swap_word_variable(x
): return \
46 def __byte_swap_long_constant(x
): return \
48 def __byte_swap_word_constant(x
): return \
50 def __byte_swap_long(x
): return \
52 def __byte_swap_word(x
): return \
54 def __byte_swap_long(x
): return __byte_swap_long_variable(x
)
56 def __byte_swap_word(x
): return __byte_swap_word_variable(x
)
58 def ntohl(x
): return __byte_swap_long(x
)
60 def ntohs(x
): return __byte_swap_word(x
)
62 def htonl(x
): return __byte_swap_long(x
)
64 def htons(x
): return __byte_swap_word(x
)
66 def major(x
): return ((int32_t
)(((u_int32_t
)(x
) >> 8) & 0xff))
68 def minor(x
): return ((int32_t
)((x
) & 0xff))
91 def FFLAGS(oflags
): return ((oflags
) + 1)
93 def OFLAGS(fflags
): return ((fflags
) - 1)
98 FNONBLOCK
= O_NONBLOCK
100 O_NDELAY
= O_NONBLOCK