paul@6 | 1 | #!/usr/bin/env python |
paul@6 | 2 | |
paul@6 | 3 | from posix.io import fstat |
paul@6 | 4 | from posix.filesys import listdir, lstat, readlink |
paul@6 | 5 | from posix.process import getcwd, getcwdu, getuid |
paul@6 | 6 | |
paul@6 | 7 | class OSError(EnvironmentError): |
paul@6 | 8 | pass |
paul@6 | 9 | |
paul@6 | 10 | error = OSError |
paul@6 | 11 | environ = {} |
paul@6 | 12 | |
paul@6 | 13 | def execl(file, *args): pass |
paul@6 | 14 | def execle(file, *args): pass |
paul@6 | 15 | def execlp(file, *args): pass |
paul@6 | 16 | def execlpe(file, *args): pass |
paul@6 | 17 | def execv(path, args): pass |
paul@6 | 18 | def execve(path, args, env): pass |
paul@6 | 19 | def execvp(file, args): pass |
paul@6 | 20 | def execvpe(file, args, env): pass |
paul@6 | 21 | def getenv(key, default=None): pass |
paul@6 | 22 | def makedirs(name, mode=511): pass |
paul@6 | 23 | def popen2(cmd, mode='t', bufsize=-1): pass |
paul@6 | 24 | def popen3(cmd, mode='t', bufsize=-1): pass |
paul@6 | 25 | def popen4(cmd, mode='t', bufsize=-1): pass |
paul@6 | 26 | def removedirs(name): pass |
paul@6 | 27 | def renames(old, new): pass |
paul@6 | 28 | def spawnl(mode, file, *args): pass |
paul@6 | 29 | def spawnle(mode, file, *args): pass |
paul@6 | 30 | def spawnlp(mode, file, *args): pass |
paul@6 | 31 | def spawnlpe(mode, file, *args): pass |
paul@6 | 32 | def spawnv(mode, file, args): pass |
paul@6 | 33 | def spawnve(mode, file, args, env): pass |
paul@6 | 34 | def spawnvp(mode, file, args): pass |
paul@6 | 35 | def spawnvpe(mode, file, args, env): pass |
paul@6 | 36 | def walk(top, topdown=True, onerror=None, followlinks=False): pass |
paul@6 | 37 | |
paul@6 | 38 | P_WAIT = 0 |
paul@6 | 39 | P_NOWAIT = P_NOWAITO = 1 |
paul@6 | 40 | |
paul@6 | 41 | SEEK_CUR = 1 |
paul@6 | 42 | SEEK_END = 2 |
paul@6 | 43 | SEEK_SET = 0 |
paul@6 | 44 | |
paul@6 | 45 | name = 'posix' |
paul@6 | 46 | linesep = '\n' |
paul@6 | 47 | |
paul@6 | 48 | # vim: tabstop=4 expandtab shiftwidth=4 |