# coding: utf-8 # AUTO-GENERATED FILE -- DO NOT EDIT """ This module provides access to operating system functionality that is standardized by the C Standard and the POSIX standard (a thinly disguised Unix interface). Refer to the library manual and corresponding Unix manual entries for more information on calls. """ CLD_CONTINUED = 6 CLD_DUMPED = 3 CLD_EXITED = 1 CLD_TRAPPED = 4 EX_CANTCREAT = 73 EX_CONFIG = 78 EX_DATAERR = 65 EX_IOERR = 74 EX_NOHOST = 68 EX_NOINPUT = 66 EX_NOPERM = 77 EX_NOUSER = 67 EX_OK = 0 EX_OSERR = 71 EX_OSFILE = 72 EX_PROTOCOL = 76 EX_SOFTWARE = 70 EX_TEMPFAIL = 75 EX_UNAVAILABLE = 69 EX_USAGE = 64 F_LOCK = 1 F_OK = 0 F_TEST = 3 F_TLOCK = 2 F_ULOCK = 0 NGROUPS_MAX = 65536 O_ACCMODE = 3 O_APPEND = 1024 O_ASYNC = 8192 O_CLOEXEC = 524288 O_CREAT = 64 O_DIRECT = 16384 O_DIRECTORY = 65536 O_DSYNC = 4096 O_EXCL = 128 O_LARGEFILE = 0 O_NDELAY = 2048 O_NOATIME = 262144 O_NOCTTY = 256 O_NOFOLLOW = 131072 O_NONBLOCK = 2048 O_RDONLY = 0 O_RDWR = 2 O_RSYNC = 1052672 O_SYNC = 1052672 O_TRUNC = 512 O_WRONLY = 1 POSIX_FADV_DONTNEED = 4 POSIX_FADV_NOREUSE = 5 POSIX_FADV_NORMAL = 0 POSIX_FADV_RANDOM = 1 POSIX_FADV_SEQUENTIAL = 2 POSIX_FADV_WILLNEED = 3 PRIO_PGRP = 1 PRIO_PROCESS = 0 PRIO_USER = 2 P_ALL = 0 P_PGID = 2 P_PID = 1 RTLD_DEEPBIND = 8 RTLD_GLOBAL = 256 RTLD_LAZY = 1 RTLD_LOCAL = 0 RTLD_NODELETE = 4096 RTLD_NOLOAD = 4 RTLD_NOW = 2 R_OK = 4 SCHED_BATCH = 3 SCHED_FIFO = 1 SCHED_IDLE = 5 SCHED_OTHER = 0 SCHED_RESET_ON_FORK = 1073741824 SCHED_RR = 2 ST_NOSUID = 2 ST_RDONLY = 1 TMP_MAX = 238328 WCONTINUED = 8 def WCOREDUMP(status): """ WCOREDUMP(status) -> bool Return True if the process returning 'status' was dumped to a core file. """ return None WEXITED = 4 def WEXITSTATUS(status): """ WEXITSTATUS(status) -> integer Return the process return code from 'status'. """ return 1 def WIFCONTINUED(status): """ WIFCONTINUED(status) -> bool Return True if the process returning 'status' was continued from a job control stop. """ return None def WIFEXITED(status): """ WIFEXITED(status) -> bool Return true if the process returning 'status' exited using the exit() system call. """ return None def WIFSIGNALED(status): """ WIFSIGNALED(status) -> bool Return True if the process returning 'status' was terminated by a signal. """ return None def WIFSTOPPED(status): """ WIFSTOPPED(status) -> bool Return True if the process returning 'status' was stopped. """ return None WNOHANG = 1 WNOWAIT = 16777216 WSTOPPED = 2 def WSTOPSIG(status): """ WSTOPSIG(status) -> integer Return the signal that stopped the process that provided the 'status' value. """ return 1 def WTERMSIG(status): """ WTERMSIG(status) -> integer Return the signal that terminated the process that provided the 'status' value. """ return 1 WUNTRACED = 2 W_OK = 2 XATTR_CREATE = 1 XATTR_REPLACE = 2 XATTR_SIZE_MAX = 65536 X_OK = 1 __doc__ = """This module provides access to operating system functionality that is standardized by the C Standard and the POSIX standard (a thinly disguised Unix interface). Refer to the library manual and corresponding Unix manual entries for more information on calls.""" class __loader__(object): """ Meta path import for built-in modules. All methods are either class or static methods to avoid the need to instantiate the class. """ def find_module(self, cls, fullname, path): """ Find the built-in module. If 'path' is ever specified then the search is considered a failure. """ pass def get_code(self, fullname): """ Return None as built-in modules do not have code objects. """ pass def get_source(self, fullname): """ Return None as built-in modules do not have source code. """ pass def is_package(self, fullname): """ Return False as built-in modules are never packages. """ pass def load_module(self): """ Load a built-in module. """ pass def module_repr(self, cls, module): pass __name__ = 'posix' __package__ = '' def _exit(status): """ _exit(status) Exit to the system with specified status, without normal exit processing. """ pass _have_functions = [] def abort(): """ abort() -> does not return! Abort the interpreter immediately. This 'dumps core' or otherwise fails in the hardest way possible on the hosting operating system. """ return None def access(): """ access(path, mode, *, dir_fd=None, effective_ids=False, follow_symlinks=True) Use the real uid/gid to test for access to a path. Returns True if granted, False otherwise. If dir_fd is not None, it should be a file descriptor open to a directory, and path should be relative; path will then be relative to that directory. If effective_ids is True, access will use the effective uid/gid instead of the real uid/gid. If follow_symlinks is False, and the last element of the path is a symbolic link, access will examine the symbolic link itself instead of the file the link points to. dir_fd, effective_ids, and follow_symlinks may not be implemented on your platform. If they are unavailable, using them will raise a NotImplementedError. Note that most operations will use the effective uid/gid, therefore this routine can be used in a suid/sgid environment to test if the invoking user has the specified access to the path. The mode argument can be F_OK to test existence, or the inclusive-OR of R_OK, W_OK, and X_OK. """ pass def chdir(path): """ chdir(path) Change the current working directory to the specified path. path may always be specified as a string. On some platforms, path may also be specified as an open file descriptor. If this functionality is unavailable, using it raises an exception. """ pass def chmod(): """ chmod(path, mode, *, dir_fd=None, follow_symlinks=True) Change the access permissions of a file. path may always be specified as a string. On some platforms, path may also be specified as an open file descriptor. If this functionality is unavailable, using it raises an exception. If dir_fd is not None, it should be a file descriptor open to a directory, and path should be relative; path will then be relative to that directory. If follow_symlinks is False, and the last element of the path is a symbolic link, chmod will modify the symbolic link itself instead of the file the link points to. It is an error to use dir_fd or follow_symlinks when specifying path as an open file descriptor. dir_fd and follow_symlinks may not be implemented on your platform. If they are unavailable, using them will raise a NotImplementedError. """ pass def chown(): """ chown(path, uid, gid, *, dir_fd=None, follow_symlinks=True) Change the owner and group id of path to the numeric uid and gid. path may always be specified as a string. On some platforms, path may also be specified as an open file descriptor. If this functionality is unavailable, using it raises an exception. If dir_fd is not None, it should be a file descriptor open to a directory, and path should be relative; path will then be relative to that directory. If follow_symlinks is False, and the last element of the path is a symbolic link, chown will modify the symbolic link itself instead of the file the link points to. It is an error to use dir_fd or follow_symlinks when specifying path as an open file descriptor. dir_fd and follow_symlinks may not be implemented on your platform. If they are unavailable, using them will raise a NotImplementedError. """ pass def chroot(path): """ chroot(path) Change root directory to path. """ pass def close(fd): """ close(fd) Close a file descriptor (for low level IO). """ pass def closerange(fd_low, fd_high): """ closerange(fd_low, fd_high) Closes all file descriptors in [fd_low, fd_high), ignoring errors. """ pass def confstr(name): """ confstr(name) -> string Return a string-valued system configuration variable. """ return "" confstr_names = {} def ctermid(): """ ctermid() -> string Return the name of the controlling terminal for this process. """ return "" def device_encoding(fd): """ device_encoding(fd) -> str Return a string describing the encoding of the device if the output is a terminal; else return None. """ return "" def dup(fd): """ dup(fd) -> fd2 Return a duplicate of a file descriptor. """ return None def dup2(old_fd, new_fd): """ dup2(old_fd, new_fd) Duplicate file descriptor. """ pass environ = {} class error(Exception): """ Base class for I/O related errors. """ def __init__(self): pass characters_written = property(None, None, None, ) errno = None filename = None strerror = None def execv(path, args): """ execv(path, args) Execute an executable path with arguments, replacing current process. path: path of executable file args: tuple or list of strings """ pass def execve(path, args, env): """ execve(path, args, env) Execute a path with arguments and environment, replacing current process. path: path of executable file args: tuple or list of arguments env: dictionary of strings mapping to strings On some platforms, you may specify an open file descriptor for path; execve will execute the program the file descriptor is open to. If this functionality is unavailable, using it raises NotImplementedError. """ pass def fchdir(fd): """ fchdir(fd) Change to the directory of the given file descriptor. fd must be opened on a directory, not a file. Equivalent to os.chdir(fd). """ pass def fchmod(fd, mode): """ fchmod(fd, mode) Change the access permissions of the file given by file descriptor fd. Equivalent to os.chmod(fd, mode). """ pass def fchown(fd, uid, gid): """ fchown(fd, uid, gid) Change the owner and group id of the file given by file descriptor fd to the numeric uid and gid. Equivalent to os.chown(fd, uid, gid). """ pass def fdatasync(fildes): """ fdatasync(fildes) force write of file with filedescriptor to disk. does not force update of metadata. """ pass def fork(): """ fork() -> pid Fork a child process. Return 0 to child process and PID of child to parent process. """ return None def forkpty(): """ forkpty() -> (pid, master_fd) Fork a new process with a new pseudo-terminal as controlling tty. Like fork(), return 0 as pid to child process, and PID of child to parent. To both, return fd of newly opened pseudo-terminal. """ return (None, None) def fpathconf(fd, name): """ fpathconf(fd, name) -> integer Return the configuration limit name for the file descriptor fd. If there is no limit, return -1. """ return 1 def fstat(fd): """ fstat(fd) -> stat result Like stat(), but for an open file descriptor. Equivalent to stat(fd=fd). """ return None def fstatvfs(fd): """ fstatvfs(fd) -> statvfs result Perform an fstatvfs system call on the given fd. Equivalent to statvfs(fd). """ return None def fsync(fildes): """ fsync(fildes) force write of file with filedescriptor to disk. """ pass def ftruncate(fd, length): """ ftruncate(fd, length) Truncate a file to a specified length. """ pass def get_terminal_size(columns, lines): """ Return the size of the terminal window as (columns, lines). The optional argument fd (default standard output) specifies which file descriptor should be queried. If the file descriptor is not connected to a terminal, an OSError is thrown. This function will only be defined if an implementation is available for this system. shutil.get_terminal_size is the high-level function which should normally be used, os.get_terminal_size is the low-level implementation. """ pass def getcwd(): """ getcwd() -> path Return a unicode string representing the current working directory. """ return None def getcwdb(): """ getcwdb() -> path Return a bytes string representing the current working directory. """ return None def getegid(): """ getegid() -> egid Return the current process's effective group id. """ return None def geteuid(): """ geteuid() -> euid Return the current process's effective user id. """ return None def getgid(): """ getgid() -> gid Return the current process's group id. """ return None def getgrouplist(user, group): """ getgrouplist(user, group) -> list of groups to which a user belongs Returns a list of groups to which a user belongs. user: username to lookup group: base group id of the user """ return [] def getgroups(): """ getgroups() -> list of group IDs Return list of supplemental group IDs for the process. """ return [] def getloadavg(): """ getloadavg() -> (float, float, float) Return the number of processes in the system run queue averaged over the last 1, 5, and 15 minutes or raises OSError if the load average was unobtainable """ return (1.0, 1.0, 1.0) def getlogin(): """ getlogin() -> string Return the actual login name. """ return "" def getpgid(pid): """ getpgid(pid) -> pgid Call the system call getpgid(). """ return None def getpgrp(): """ getpgrp() -> pgrp Return the current process group id. """ return None def getpid(): """ getpid() -> pid Return the current process id """ return None def getppid(): """ getppid() -> ppid Return the parent's process id. If the parent process has already exited, Windows machines will still return its id; others systems will return the id of the 'init' process (1). """ return None def getpriority(which, who): """ getpriority(which, who) -> current_priority Get program scheduling priority. """ return None def getresgid(): """ getresgid() -> (rgid, egid, sgid) Get tuple of the current process's real, effective, and saved group ids. """ return (None, None, None) def getresuid(): """ getresuid() -> (ruid, euid, suid) Get tuple of the current process's real, effective, and saved user ids. """ return (None, None, None) def getsid(pid): """ getsid(pid) -> sid Call the system call getsid(). """ return None def getuid(): """ getuid() -> uid Return the current process's user id. """ return None def getxattr(path, attribute, arg0, follow_symlinks=True): """ getxattr(path, attribute, *, follow_symlinks=True) -> value Return the value of extended attribute attribute on path. path may be either a string or an open file descriptor. If follow_symlinks is False, and the last element of the path is a symbolic link, getxattr will examine the symbolic link itself instead of the file the link points to. """ return None def initgroups(username, gid): """ initgroups(username, gid) -> None Call the system initgroups() to initialize the group access list with all of the groups of which the specified username is a member, plus the specified group id. """ return None def isatty(fd): """ isatty(fd) -> bool Return True if the file descriptor 'fd' is an open file descriptor connected to the slave end of a terminal. """ return None def kill(pid, sig): """ kill(pid, sig) Kill a process with a signal. """ pass def killpg(pgid, sig): """ killpg(pgid, sig) Kill a process group with a signal. """ pass def lchown(path, uid, gid): """ lchown(path, uid, gid) Change the owner and group id of path to the numeric uid and gid. This function will not follow symbolic links. Equivalent to os.chown(path, uid, gid, follow_symlinks=False). """ pass def link(arg0): """ link(src, dst, *, src_dir_fd=None, dst_dir_fd=None, follow_symlinks=True) Create a hard link to a file. If either src_dir_fd or dst_dir_fd is not None, it should be a file descriptor open to a directory, and the respective path string (src or dst) should be relative; the path will then be relative to that directory. If follow_symlinks is False, and the last element of src is a symbolic link, link will create a link to the symbolic link itself instead of the file the link points to. src_dir_fd, dst_dir_fd, and follow_symlinks may not be implemented on your platform. If they are unavailable, using them will raise a NotImplementedError. """ pass def listdir(path='.'): """ listdir(path='.') -> list_of_filenames Return a list containing the names of the files in the directory. The list is in arbitrary order. It does not include the special entries '.' and '..' even if they are present in the directory. path can be specified as either str or bytes. If path is bytes, the filenames returned will also be bytes; in all other circumstances the filenames returned will be str. On some platforms, path may also be specified as an open file descriptor; the file descriptor must refer to a directory. If this functionality is unavailable, using it raises NotImplementedError. """ return [] def listxattr(): """ listxattr(path='.', *, follow_symlinks=True) Return a list of extended attributes on path. path may be either None, a string, or an open file descriptor. if path is None, listxattr will examine the current directory. If follow_symlinks is False, and the last element of the path is a symbolic link, listxattr will examine the symbolic link itself instead of the file the link points to. """ pass def lockf(fd, cmd, len): """ lockf(fd, cmd, len) Apply, test or remove a POSIX lock on an open file descriptor. fd is an open file descriptor. cmd specifies the command to use - one of F_LOCK, F_TLOCK, F_ULOCK or F_TEST. len specifies the section of the file to lock. """ pass def lseek(fd, pos, how): """ lseek(fd, pos, how) -> newpos Set the current position of a file descriptor. Return the new cursor position in bytes, starting from the beginning. """ return None def lstat(path, arg0, dir_fd=None): """ lstat(path, *, dir_fd=None) -> stat result Like stat(), but do not follow symbolic links. Equivalent to stat(path, follow_symlinks=False). """ return None def major(device): """ major(device) -> major number Extracts a device major number from a raw device number. """ return None def makedev(major, minor): """ makedev(major, minor) -> device number Composes a raw device number from the major and minor device numbers. """ return None def minor(device): """ minor(device) -> minor number Extracts a device minor number from a raw device number. """ return None def mkdir(): """ mkdir(path, mode=0o777, *, dir_fd=None) Create a directory. If dir_fd is not None, it should be a file descriptor open to a directory, and path should be relative; path will then be relative to that directory. dir_fd may not be implemented on your platform. If it is unavailable, using it will raise a NotImplementedError. The mode argument is ignored on Windows. """ pass def mkfifo(arg0): """ mkfifo(path, mode=0o666, *, dir_fd=None) Create a FIFO (a POSIX named pipe). If dir_fd is not None, it should be a file descriptor open to a directory, and path should be relative; path will then be relative to that directory. dir_fd may not be implemented on your platform. If it is unavailable, using it will raise a NotImplementedError. """ pass def mknod(file, arg0): """ mknod(filename, mode=0o600, device=0, *, dir_fd=None) Create a filesystem node (file, device special file or named pipe) named filename. mode specifies both the permissions to use and the type of node to be created, being combined (bitwise OR) with one of S_IFREG, S_IFCHR, S_IFBLK, and S_IFIFO. For S_IFCHR and S_IFBLK, device defines the newly created device special file (probably using os.makedev()), otherwise it is ignored. If dir_fd is not None, it should be a file descriptor open to a directory, and path should be relative; path will then be relative to that directory. dir_fd may not be implemented on your platform. If it is unavailable, using it will raise a NotImplementedError. """ pass def nice(inc): """ nice(inc) -> new_priority Decrease the priority of process by inc and return the new priority. """ return None def open(integer): """ open(path, flags, mode=0o777, *, dir_fd=None) Open a file for low level IO. Returns a file handle (integer). If dir_fd is not None, it should be a file descriptor open to a directory, and path should be relative; path will then be relative to that directory. dir_fd may not be implemented on your platform. If it is unavailable, using it will raise a NotImplementedError. """ pass def openpty(): """ openpty() -> (master_fd, slave_fd) Open a pseudo-terminal, returning open fd's for both master and slave end. """ return (None, None) def pathconf(path, name): """ pathconf(path, name) -> integer Return the configuration limit name for the file or directory path. If there is no limit, return -1. On some platforms, path may also be specified as an open file descriptor. If this functionality is unavailable, using it raises an exception. """ return 1 pathconf_names = {} def pipe(): """ pipe() -> (read_end, write_end) Create a pipe. """ return (None, None) def pipe2(flags): """ pipe2(flags) -> (read_end, write_end) Create a pipe with flags set atomically. flags can be constructed by ORing together one or more of these values: O_NONBLOCK, O_CLOEXEC. """ return (None, None) def posix_fadvise(fd, offset, len, advice): """ posix_fadvise(fd, offset, len, advice) Announces an intention to access data in a specific pattern thus allowing the kernel to make optimizations. The advice applies to the region of the file specified by fd starting at offset and continuing for len bytes. advice is one of POSIX_FADV_NORMAL, POSIX_FADV_SEQUENTIAL, POSIX_FADV_RANDOM, POSIX_FADV_NOREUSE, POSIX_FADV_WILLNEED or POSIX_FADV_DONTNEED. """ pass def posix_fallocate(fd, offset, len): """ posix_fallocate(fd, offset, len) Ensures that enough disk space is allocated for the file specified by fd starting from offset and continuing for len bytes. """ pass def pread(fd, buffersize, offset): """ pread(fd, buffersize, offset) -> string Read from a file descriptor, fd, at a position of offset. It will read up to buffersize number of bytes. The file offset remains unchanged. """ return "" def putenv(key, value): """ putenv(key, value) Change or add an environment variable. """ pass def pwrite(fd, string, offset): """ pwrite(fd, string, offset) -> byteswritten Write string to a file descriptor, fd, from offset, leaving the file offset unchanged. """ return None def read(fd, buffersize): """ read(fd, buffersize) -> bytes Read a file descriptor. """ return None def readlink(path, arg0, dir_fd=None): """ readlink(path, *, dir_fd=None) -> path Return a string representing the path to which the symbolic link points. If dir_fd is not None, it should be a file descriptor open to a directory, and path should be relative; path will then be relative to that directory. dir_fd may not be implemented on your platform. If it is unavailable, using it will raise a NotImplementedError. """ return None def readv(fd, buffers): """ readv(fd, buffers) -> bytesread Read from a file descriptor fd into a number of mutable, bytes-like objects ("buffers"). readv will transfer data into each buffer until it is full and then move on to the next buffer in the sequence to hold the rest of the data. readv returns the total number of bytes read (which may be less than the total capacity of all the buffers. """ return None def remove(arg0): """ remove(path, *, dir_fd=None) Remove a file (same as unlink()). If dir_fd is not None, it should be a file descriptor open to a directory, and path should be relative; path will then be relative to that directory. dir_fd may not be implemented on your platform. If it is unavailable, using it will raise a NotImplementedError. """ pass def removexattr(): """ removexattr(path, attribute, *, follow_symlinks=True) Remove extended attribute attribute on path. path may be either a string or an open file descriptor. If follow_symlinks is False, and the last element of the path is a symbolic link, removexattr will modify the symbolic link itself instead of the file the link points to. """ pass def rename(arg0): """ rename(src, dst, *, src_dir_fd=None, dst_dir_fd=None) Rename a file or directory. If either src_dir_fd or dst_dir_fd is not None, it should be a file descriptor open to a directory, and the respective path string (src or dst) should be relative; the path will then be relative to that directory. src_dir_fd and dst_dir_fd, may not be implemented on your platform. If they are unavailable, using them will raise a NotImplementedError. """ pass def replace(arg0): """ replace(src, dst, *, src_dir_fd=None, dst_dir_fd=None) Rename a file or directory, overwriting the destination. If either src_dir_fd or dst_dir_fd is not None, it should be a file descriptor open to a directory, and the respective path string (src or dst) should be relative; the path will then be relative to that directory. src_dir_fd and dst_dir_fd, may not be implemented on your platform. If they are unavailable, using them will raise a NotImplementedError. """ pass def rmdir(): """ rmdir(path, *, dir_fd=None) Remove a directory. If dir_fd is not None, it should be a file descriptor open to a directory, and path should be relative; path will then be relative to that directory. dir_fd may not be implemented on your platform. If it is unavailable, using it will raise a NotImplementedError. """ pass def sched_get_priority_max(policy): """ sched_get_priority_max(policy) Get the maximum scheduling priority for *policy*. """ pass def sched_get_priority_min(policy): """ sched_get_priority_min(policy) Get the minimum scheduling priority for *policy*. """ pass def sched_getaffinity(pid, ncpus): """ sched_getaffinity(pid, ncpus) -> cpu_set Return the affinity of the process with PID *pid*. The returned cpu_set will be of size *ncpus*. """ return None def sched_getparam(pid): """ sched_getparam(pid) -> sched_param Returns scheduling parameters for the process with *pid* as an instance of the sched_param class. A PID of 0 means the calling process. """ return None def sched_getscheduler(pid): """ sched_getscheduler(pid) Get the scheduling policy for the process with a PID of *pid*. Passing a PID of 0 returns the scheduling policy for the calling process. """ pass class sched_param(tuple): """ sched_param(sched_priority): A scheduling parameter. Current has only one field: sched_priority """ n_fields = 1 n_sequence_fields = 1 n_unnamed_fields = 0 sched_priority = None def sched_rr_get_interval(pid): """ sched_rr_get_interval(pid) -> float Return the round-robin quantum for the process with PID *pid* in seconds. """ return 1.0 def sched_setaffinity(pid, cpu_set): """ sched_setaffinity(pid, cpu_set) Set the affinity of the process with PID *pid* to *cpu_set*. """ pass def sched_setparam(pid, param): """ sched_setparam(pid, param) Set scheduling parameters for a process with PID *pid*. A PID of 0 means the calling process. """ pass def sched_setscheduler(pid, policy, param): """ sched_setscheduler(pid, policy, param) Set the scheduling policy, *policy*, for *pid*. If *pid* is 0, the calling process is changed. *param* is an instance of sched_param. """ pass def sched_yield(): """ sched_yield() Voluntarily relinquish the CPU. """ pass def sendfile(out, in, offset, nbytes): """ sendfile(out, in, offset, nbytes) -> byteswritten sendfile(out, in, offset, nbytes, headers=None, trailers=None, flags=0) -> byteswritten Copy nbytes bytes from file descriptor in to file descriptor out. """ return None def setegid(gid): """ setegid(gid) Set the current process's effective group id. """ pass def seteuid(uid): """ seteuid(uid) Set the current process's effective user id. """ pass def setgid(gid): """ setgid(gid) Set the current process's group id. """ pass def setgroups(list): """ setgroups(list) Set the groups of the current process to list. """ pass def setpgid(pid, pgrp): """ setpgid(pid, pgrp) Call the system call setpgid(). """ pass def setpgrp(): """ setpgrp() Make this process the process group leader. """ pass def setpriority(which, who, prio): """ setpriority(which, who, prio) -> None Set program scheduling priority. """ return None def setregid(rgid, egid): """ setregid(rgid, egid) Set the current process's real and effective group ids. """ pass def setresgid(rgid, egid, sgid): """ setresgid(rgid, egid, sgid) Set the current process's real, effective, and saved group ids. """ pass def setresuid(ruid, euid, suid): """ setresuid(ruid, euid, suid) Set the current process's real, effective, and saved user ids. """ pass def setreuid(ruid, euid): """ setreuid(ruid, euid) Set the current process's real and effective user ids. """ pass def setsid(): """ setsid() Call the system call setsid(). """ pass def setuid(uid): """ setuid(uid) Set the current process's user id. """ pass def setxattr(): """ setxattr(path, attribute, value, flags=0, *, follow_symlinks=True) Set extended attribute attribute on path to value. path may be either a string or an open file descriptor. If follow_symlinks is False, and the last element of the path is a symbolic link, setxattr will modify the symbolic link itself instead of the file the link points to. """ pass def stat(path, arg0, dir_fd=None, follow_symlinks=True): """ stat(path, *, dir_fd=None, follow_symlinks=True) -> stat result Perform a stat system call on the given path. path may be specified as either a string or as an open file descriptor. If dir_fd is not None, it should be a file descriptor open to a directory, and path should be relative; path will then be relative to that directory. dir_fd may not be supported on your platform; if it is unavailable, using it will raise a NotImplementedError. If follow_symlinks is False, and the last element of the path is a symbolic link, stat will examine the symbolic link itself instead of the file the link points to. It is an error to use dir_fd or follow_symlinks when specifying path as an open file descriptor. """ return None def stat_float_times(newval=None): """ stat_float_times([newval]) -> oldval Determine whether os.[lf]stat represents time stamps as float objects. If newval is True, future calls to stat() return floats, if it is False, future calls return ints. If newval is omitted, return the current setting. """ return None class stat_result(tuple): """ stat_result: Result from stat, fstat, or lstat. This object may be accessed either as a tuple of (mode, ino, dev, nlink, uid, gid, size, atime, mtime, ctime) or via the attributes st_mode, st_ino, st_dev, st_nlink, st_uid, and so on. Posix/windows: If your platform supports st_blksize, st_blocks, st_rdev, or st_flags, they are available as attributes only. See os.stat for more information. """ n_fields = 19 n_sequence_fields = 10 n_unnamed_fields = 3 st_atime = None st_atime_ns = None st_blksize = None st_blocks = None st_ctime = None st_ctime_ns = None st_dev = None st_gid = None st_ino = None st_mode = None st_mtime = None st_mtime_ns = None st_nlink = None st_rdev = None st_size = None st_uid = None def statvfs(path): """ statvfs(path) Perform a statvfs system call on the given path. path may always be specified as a string. On some platforms, path may also be specified as an open file descriptor. If this functionality is unavailable, using it raises an exception. """ pass class statvfs_result(tuple): """ statvfs_result: Result from statvfs or fstatvfs. This object may be accessed either as a tuple of (bsize, frsize, blocks, bfree, bavail, files, ffree, favail, flag, namemax), or via the attributes f_bsize, f_frsize, f_blocks, f_bfree, and so on. See os.statvfs for more information. """ f_bavail = None f_bfree = None f_blocks = None f_bsize = None f_favail = None f_ffree = None f_files = None f_flag = None f_frsize = None f_namemax = None n_fields = 10 n_sequence_fields = 10 n_unnamed_fields = 0 def strerror(code): """ strerror(code) -> string Translate an error code to a message string. """ return "" def symlink(arg0, arg1, arg2): """ symlink(src, dst, target_is_directory=False, *, dir_fd=None) Create a symbolic link pointing to src named dst. target_is_directory is required on Windows if the target is to be interpreted as a directory. (On Windows, symlink requires Windows 6.0 or greater, and raises a NotImplementedError otherwise.) target_is_directory is ignored on non-Windows platforms. If dir_fd is not None, it should be a file descriptor open to a directory, and path should be relative; path will then be relative to that directory. dir_fd may not be implemented on your platform. If it is unavailable, using it will raise a NotImplementedError. """ pass def sync(): """ sync() Force write of everything to disk. """ pass def sysconf(name): """ sysconf(name) -> integer Return an integer-valued system configuration variable. """ return 1 sysconf_names = {} def system(command): """ system(command) -> exit_status Execute the command (a string) in a subshell. """ return None def tcgetpgrp(fd): """ tcgetpgrp(fd) -> pgid Return the process group associated with the terminal given by a fd. """ return None def tcsetpgrp(fd, pgid): """ tcsetpgrp(fd, pgid) Set the process group associated with the terminal given by a fd. """ pass class terminal_size(tuple): """ A tuple of (columns, lines) for holding terminal window size """ columns = None lines = None n_fields = 2 n_sequence_fields = 2 n_unnamed_fields = 0 def times(): """ times() -> times_result Return an object containing floating point numbers indicating process times. The object behaves like a named tuple with these fields: (utime, stime, cutime, cstime, elapsed_time) """ return None class times_result(tuple): """ times_result: Result from os.times(). This object may be accessed either as a tuple of (user, system, children_user, children_system, elapsed), or via the attributes user, system, children_user, children_system, and elapsed. See os.times for more information. """ children_system = None children_user = None elapsed = None n_fields = 5 n_sequence_fields = 5 n_unnamed_fields = 0 system = None user = None def truncate(path, length): """ truncate(path, length) Truncate the file given by path to length bytes. On some platforms, path may also be specified as an open file descriptor. If this functionality is unavailable, using it raises an exception. """ pass def ttyname(fd): """ ttyname(fd) -> string Return the name of the terminal device connected to 'fd'. """ return "" def umask(new_mask): """ umask(new_mask) -> old_mask Set the current numeric umask and return the previous umask. """ return None def uname(): """ uname() -> uname_result Return an object identifying the current operating system. The object behaves like a named tuple with the following fields: (sysname, nodename, release, version, machine) """ return None class uname_result(tuple): """ uname_result: Result from os.uname(). This object may be accessed either as a tuple of (sysname, nodename, release, version, machine), or via the attributes sysname, nodename, release, version, and machine. See os.uname for more information. """ machine = None n_fields = 5 n_sequence_fields = 5 n_unnamed_fields = 0 nodename = None release = None sysname = None version = None def unlink(arg0): """ unlink(path, *, dir_fd=None) Remove a file (same as remove()). If dir_fd is not None, it should be a file descriptor open to a directory, and path should be relative; path will then be relative to that directory. dir_fd may not be implemented on your platform. If it is unavailable, using it will raise a NotImplementedError. """ pass def unsetenv(key): """ unsetenv(key) Delete an environment variable. """ pass def urandom(n): """ urandom(n) -> str Return n random bytes suitable for cryptographic use. """ return "" def utime(atime, mtime): """ utime(path, times=None, *, ns=None, dir_fd=None, follow_symlinks=True) Set the access and modified time of path. path may always be specified as a string. On some platforms, path may also be specified as an open file descriptor. If this functionality is unavailable, using it raises an exception. If times is not None, it must be a tuple (atime, mtime); atime and mtime should be expressed as float seconds since the epoch. If ns is not None, it must be a tuple (atime_ns, mtime_ns); atime_ns and mtime_ns should be expressed as integer nanoseconds since the epoch. If both times and ns are None, utime uses the current time. Specifying tuples for both times and ns is an error. If dir_fd is not None, it should be a file descriptor open to a directory, and path should be relative; path will then be relative to that directory. If follow_symlinks is False, and the last element of the path is a symbolic link, utime will modify the symbolic link itself instead of the file the link points to. It is an error to use dir_fd or follow_symlinks when specifying path as an open file descriptor. dir_fd and follow_symlinks may not be available on your platform. If they are unavailable, using them will raise a NotImplementedError. """ pass def wait(): """ wait() -> (pid, status) Wait for completion of a child process. """ return (None, None) def wait3(options): """ wait3(options) -> (pid, status, rusage) Wait for completion of a child process. """ return (None, None, None) def wait4(pid, options): """ wait4(pid, options) -> (pid, status, rusage) Wait for completion of a given child process. """ return (None, None, None) def waitid(idtype, id, options): """ waitid(idtype, id, options) -> waitid_result Wait for the completion of one or more child processes. idtype can be P_PID, P_PGID or P_ALL. id specifies the pid to wait on. options is constructed from the ORing of one or more of WEXITED, WSTOPPED or WCONTINUED and additionally may be ORed with WNOHANG or WNOWAIT. Returns either waitid_result or None if WNOHANG is specified and there are no children in a waitable state. """ return None class waitid_result(tuple): """ waitid_result: Result from waitid. This object may be accessed either as a tuple of (si_pid, si_uid, si_signo, si_status, si_code), or via the attributes si_pid, si_uid, and so on. See os.waitid for more information. """ n_fields = 5 n_sequence_fields = 5 n_unnamed_fields = 0 si_code = None si_pid = None si_signo = None si_status = None si_uid = None def waitpid(pid, options): """ waitpid(pid, options) -> (pid, status) Wait for completion of a given child process. """ return (None, None) def write(fd, data): """ write(fd, data) -> byteswritten Write bytes to a file descriptor. """ return None def writev(fd, buffers): """ writev(fd, buffers) -> byteswritten Write the contents of *buffers* to file descriptor *fd*. *buffers* must be a sequence of bytes-like objects. writev writes the contents of each object to the file descriptor and returns the total number of bytes written. """ return None