summaryrefslogtreecommitdiffstats
path: root/Lib/plat-sunos4/FCNTL.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1993-12-29 16:37:25 (GMT)
committerGuido van Rossum <guido@python.org>1993-12-29 16:37:25 (GMT)
commite30cb84ed2e7de876de160de2bd97575150fa747 (patch)
tree3b30da63451cacff1275af2c78aa95a972abcdd4 /Lib/plat-sunos4/FCNTL.py
parent70f1418d35e7131a171ba872777074dab02e13d6 (diff)
downloadcpython-e30cb84ed2e7de876de160de2bd97575150fa747.zip
cpython-e30cb84ed2e7de876de160de2bd97575150fa747.tar.gz
cpython-e30cb84ed2e7de876de160de2bd97575150fa747.tar.bz2
Initial revision
Diffstat (limited to 'Lib/plat-sunos4/FCNTL.py')
-rwxr-xr-xLib/plat-sunos4/FCNTL.py64
1 files changed, 64 insertions, 0 deletions
diff --git a/Lib/plat-sunos4/FCNTL.py b/Lib/plat-sunos4/FCNTL.py
new file mode 100755
index 0000000..0ba5e67
--- /dev/null
+++ b/Lib/plat-sunos4/FCNTL.py
@@ -0,0 +1,64 @@
+_FOPEN = (-1)
+_FREAD = 0x0001
+_FWRITE = 0x0002
+_FNDELAY = 0x0004
+_FAPPEND = 0x0008
+_FMARK = 0x0010
+_FDEFER = 0x0020
+_FASYNC = 0x0040
+_FSHLOCK = 0x0080
+_FEXLOCK = 0x0100
+_FCREAT = 0x0200
+_FTRUNC = 0x0400
+_FEXCL = 0x0800
+_FNBIO = 0x1000
+_FSYNC = 0x2000
+_FNONBLOCK = 0x4000
+_FNOCTTY = 0x8000
+O_RDONLY = 0
+O_WRONLY = 1
+O_RDWR = 2
+O_APPEND = _FAPPEND
+O_CREAT = _FCREAT
+O_TRUNC = _FTRUNC
+O_EXCL = _FEXCL
+O_NONBLOCK = _FNONBLOCK
+O_NOCTTY = _FNOCTTY
+O_SYNC = _FSYNC
+O_ACCMODE = (O_RDONLY|O_WRONLY|O_RDWR)
+FAPPEND = _FAPPEND
+FSYNC = _FSYNC
+FASYNC = _FASYNC
+FNBIO = _FNBIO
+FNONBIO = _FNONBLOCK
+FNDELAY = _FNDELAY
+FREAD = _FREAD
+FWRITE = _FWRITE
+FMARK = _FMARK
+FDEFER = _FDEFER
+FSHLOCK = _FSHLOCK
+FEXLOCK = _FEXLOCK
+FOPEN = _FOPEN
+FCREAT = _FCREAT
+FTRUNC = _FTRUNC
+FEXCL = _FEXCL
+FNOCTTY = _FNOCTTY
+FD_CLOEXEC = 1
+F_DUPFD = 0
+F_GETFD = 1
+F_SETFD = 2
+F_GETFL = 3
+F_SETFL = 4
+F_GETOWN = 5
+F_SETOWN = 6
+F_GETLK = 7
+F_SETLK = 8
+F_SETLKW = 9
+F_RGETLK = 10
+F_RSETLK = 11
+F_CNVT = 12
+F_RSETLKW = 13
+F_RDLCK = 1
+F_WRLCK = 2
+F_UNLCK = 3
+F_UNLKSYS = 4