1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/lib/posix/io.py Tue Aug 30 21:55:58 2016 +0200
1.3 @@ -0,0 +1,54 @@
1.4 +#!/usr/bin/env python
1.5 +
1.6 +def close(fd): pass
1.7 +def closerange(fd_low, fd_high): pass
1.8 +def dup(fd): pass
1.9 +def dup2(old_fd, new_fd): pass
1.10 +def fchdir(fildes): pass
1.11 +def fchmod(fd, mode): pass
1.12 +def fchown(fd, uid, gid): pass
1.13 +def fdatasync(fildes): pass
1.14 +def fdopen(fd, mode='r', bufsize=None): pass
1.15 +def fpathconf(fd, name): pass
1.16 +def fstat(fd): pass
1.17 +def fstatvfs(fd): pass
1.18 +def fsync(fildes): pass
1.19 +def ftruncate(fd, length): pass
1.20 +def isatty(fd): pass
1.21 +def lseek(fd, pos, how): pass
1.22 +def open(filename, flag, mode=0777): pass
1.23 +def openpty(): pass
1.24 +def pipe(): pass
1.25 +def putenv(key, value): pass
1.26 +def times(): pass
1.27 +def ttyname(fd): pass
1.28 +def umask(new_mask): pass
1.29 +def uname(): pass
1.30 +def unsetenv(key): pass
1.31 +def write(fd, string): pass
1.32 +
1.33 +O_APPEND = 1024
1.34 +O_ASYNC = 8192
1.35 +O_CREAT = 64
1.36 +O_DIRECT = 16384
1.37 +O_DIRECTORY = 65536
1.38 +O_DSYNC = 4096
1.39 +O_EXCL = 128
1.40 +O_LARGEFILE = 32768
1.41 +O_NDELAY = 2048
1.42 +O_NOATIME = 262144
1.43 +O_NOCTTY = 256
1.44 +O_NOFOLLOW = 131072
1.45 +O_NONBLOCK = 2048
1.46 +O_RDONLY = 0
1.47 +O_RDWR = 2
1.48 +O_RSYNC = 1052672
1.49 +O_SYNC = 1052672
1.50 +O_TRUNC = 512
1.51 +O_WRONLY = 1
1.52 +
1.53 +SEEK_CUR = 1
1.54 +SEEK_END = 2
1.55 +SEEK_SET = 0
1.56 +
1.57 +# vim: tabstop=4 expandtab shiftwidth=4