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

Skip to content

Commit 2242f2f

Browse files
committed
Unixware 7 support by Billy G. Allie (SF patch 413011)
1 parent 11e89c7 commit 2242f2f

15 files changed

Lines changed: 2408 additions & 510 deletions

File tree

Lib/plat-unixware7/FCNTL.py

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
# Generated by h2py from /usr/include/sys/fcntl.h
2+
3+
# Included from sys/types.h
4+
def quad_low(x): return x.val[0]
5+
6+
ADT_EMASKSIZE = 8
7+
SHRT_MIN = -32768
8+
SHRT_MAX = 32767
9+
INT_MIN = (-2147483647-1)
10+
INT_MAX = 2147483647
11+
LONG_MIN = (-2147483647-1)
12+
LONG_MAX = 2147483647
13+
OFF32_MAX = LONG_MAX
14+
ISTAT_ASSERTED = 0
15+
ISTAT_ASSUMED = 1
16+
ISTAT_NONE = 2
17+
OFF_MAX = OFF32_MAX
18+
CLOCK_MAX = LONG_MAX
19+
P_MYID = (-1)
20+
P_MYHOSTID = (-1)
21+
22+
# Included from sys/select.h
23+
FD_SETSIZE = 4096
24+
NBBY = 8
25+
NULL = 0
26+
O_RDONLY = 0
27+
O_WRONLY = 1
28+
O_RDWR = 2
29+
O_NDELAY = 0x04
30+
O_APPEND = 0x08
31+
O_SYNC = 0x10
32+
O_NONBLOCK = 0x80
33+
O_LARGEFILE = 0x80000
34+
O_CREAT = 0x100
35+
O_TRUNC = 0x200
36+
O_EXCL = 0x400
37+
O_NOCTTY = 0x800
38+
F_DUPFD = 0
39+
F_GETFD = 1
40+
F_SETFD = 2
41+
F_GETFL = 3
42+
F_SETFL = 4
43+
F_GETLK = 14
44+
F_O_GETLK = 5
45+
F_GETLK = 5
46+
F_GETLK = 14
47+
F_SETLK = 6
48+
F_SETLKW = 7
49+
F_CHKFL = 8
50+
F_ALLOCSP = 10
51+
F_FREESP = 11
52+
F_RSETLK = 20
53+
F_RGETLK = 21
54+
F_RSETLKW = 22
55+
F_GETOWN = 23
56+
F_SETOWN = 24
57+
F_DUP2 = 25
58+
F_GETLK64 = 100
59+
F_SETLKW64 = 101
60+
F_SETLK64 = 102
61+
F_RSETLK64 = 103
62+
F_RGETLK64 = 104
63+
F_RSETLKW64 = 105
64+
F_FREESP64 = 106
65+
F_RDCHK = 0x6001
66+
F_GETLK = F_GETLK64
67+
F_SETLKW = F_SETLKW64
68+
F_SETLK = F_SETLK64
69+
F_RSETLK = F_RSETLK64
70+
F_RGETLK = F_RGETLK64
71+
F_RSETLKW = F_RSETLKW64
72+
F_FREESP = F_FREESP64
73+
F_RDLCK = 01
74+
F_WRLCK = 02
75+
F_UNLCK = 03
76+
O_ACCMODE = 3
77+
FD_CLOEXEC = 1

0 commit comments

Comments
 (0)