Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 24cf88d

Browse files
committed
FreeBSD platform specific modules
1 parent 7a7eb37 commit 24cf88d

4 files changed

Lines changed: 136 additions & 0 deletions

File tree

Lib/freebsd2/FCNTL.py

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# Generated by h2py from /usr/include/sys/fcntl.h
2+
3+
4+
# Included from machine/endian.h
5+
_MACHINE_ENDIAN_H_ = 1
6+
_QUAD_HIGHWORD = 1
7+
_QUAD_LOWWORD = 0
8+
LITTLE_ENDIAN = 1234
9+
BIG_ENDIAN = 4321
10+
PDP_ENDIAN = 3412
11+
BYTE_ORDER = LITTLE_ENDIAN
12+
13+
# Included from machine/types.h
14+
NBBY = 8
15+
FD_SETSIZE = 256
16+
O_RDONLY = 0x0000
17+
O_WRONLY = 0x0001
18+
O_RDWR = 0x0002
19+
O_ACCMODE = 0x0003
20+
FREAD = 0x0001
21+
FWRITE = 0x0002
22+
O_NONBLOCK = 0x0004
23+
O_APPEND = 0x0008
24+
O_SHLOCK = 0x0010
25+
O_EXLOCK = 0x0020
26+
O_ASYNC = 0x0040
27+
O_FSYNC = 0x0080
28+
O_CREAT = 0x0200
29+
O_TRUNC = 0x0400
30+
O_EXCL = 0x0800
31+
FMARK = 0x1000
32+
FDEFER = 0x2000
33+
FHASLOCK = 0x4000
34+
O_NOCTTY = 0
35+
36+
FAPPEND = O_APPEND
37+
FASYNC = O_ASYNC
38+
FFSYNC = O_FSYNC
39+
FNONBLOCK = O_NONBLOCK
40+
FNDELAY = O_NONBLOCK
41+
O_NDELAY = O_NONBLOCK
42+
F_DUPFD = 0
43+
F_GETFD = 1
44+
F_SETFD = 2
45+
F_GETFL = 3
46+
F_SETFL = 4
47+
F_GETOWN = 5
48+
F_SETOWN = 6
49+
F_GETLK = 7
50+
F_SETLK = 8
51+
F_SETLKW = 9
52+
FD_CLOEXEC = 1
53+
F_RDLCK = 1
54+
F_UNLCK = 2
55+
F_WRLCK = 3
56+
F_WAIT = 0x010
57+
F_FLOCK = 0x020
58+
F_POSIX = 0x040
59+
LOCK_SH = 0x01
60+
LOCK_EX = 0x02
61+
LOCK_NB = 0x04
62+
LOCK_UN = 0x08

Lib/freebsd2/regen

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#! /bin/sh
2+
set -v
3+
#h2py /usr/include/sys/fcntl.h
4+
h2py /usr/include/sys/socket.h
5+
h2py -i '(u_long)' /usr/include/netinet/in.h
6+
h2py /usr/include/termios.h

Lib/plat-freebsd2/FCNTL.py

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# Generated by h2py from /usr/include/sys/fcntl.h
2+
3+
4+
# Included from machine/endian.h
5+
_MACHINE_ENDIAN_H_ = 1
6+
_QUAD_HIGHWORD = 1
7+
_QUAD_LOWWORD = 0
8+
LITTLE_ENDIAN = 1234
9+
BIG_ENDIAN = 4321
10+
PDP_ENDIAN = 3412
11+
BYTE_ORDER = LITTLE_ENDIAN
12+
13+
# Included from machine/types.h
14+
NBBY = 8
15+
FD_SETSIZE = 256
16+
O_RDONLY = 0x0000
17+
O_WRONLY = 0x0001
18+
O_RDWR = 0x0002
19+
O_ACCMODE = 0x0003
20+
FREAD = 0x0001
21+
FWRITE = 0x0002
22+
O_NONBLOCK = 0x0004
23+
O_APPEND = 0x0008
24+
O_SHLOCK = 0x0010
25+
O_EXLOCK = 0x0020
26+
O_ASYNC = 0x0040
27+
O_FSYNC = 0x0080
28+
O_CREAT = 0x0200
29+
O_TRUNC = 0x0400
30+
O_EXCL = 0x0800
31+
FMARK = 0x1000
32+
FDEFER = 0x2000
33+
FHASLOCK = 0x4000
34+
O_NOCTTY = 0
35+
36+
FAPPEND = O_APPEND
37+
FASYNC = O_ASYNC
38+
FFSYNC = O_FSYNC
39+
FNONBLOCK = O_NONBLOCK
40+
FNDELAY = O_NONBLOCK
41+
O_NDELAY = O_NONBLOCK
42+
F_DUPFD = 0
43+
F_GETFD = 1
44+
F_SETFD = 2
45+
F_GETFL = 3
46+
F_SETFL = 4
47+
F_GETOWN = 5
48+
F_SETOWN = 6
49+
F_GETLK = 7
50+
F_SETLK = 8
51+
F_SETLKW = 9
52+
FD_CLOEXEC = 1
53+
F_RDLCK = 1
54+
F_UNLCK = 2
55+
F_WRLCK = 3
56+
F_WAIT = 0x010
57+
F_FLOCK = 0x020
58+
F_POSIX = 0x040
59+
LOCK_SH = 0x01
60+
LOCK_EX = 0x02
61+
LOCK_NB = 0x04
62+
LOCK_UN = 0x08

Lib/plat-freebsd2/regen

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#! /bin/sh
2+
set -v
3+
#h2py /usr/include/sys/fcntl.h
4+
h2py /usr/include/sys/socket.h
5+
h2py -i '(u_long)' /usr/include/netinet/in.h
6+
h2py /usr/include/termios.h

0 commit comments

Comments
 (0)