ICI Modules: sys
Modules by name : by typeOverview
The sys module is used to access system calls and similar operating system related functions. The sys module exists for Windows platforms with some loss of functionality of the Win32 implementation.
The sys module is intended to replace the intrinsic system call functions that have been in ICI since the very earliest days of its development. Programmers are encouraged to use the module where-ever possible.
Interface
The module provides a large number of functions and defines a number of constants to take the place of the macros used with C. The functions are listed here, the constants are documented with the functions to which they apply.
sys.access - determine file accessibility
sys.acct - enable system accouting
sys.alarm - schedule an alarm signal
sys.chdir - change the working directory
sys.chmod - change file modes
sys.chown - change file owner
sys.chroot - change root directory
sys.clock - return the amount of processor time used
sys.close - close a file descriptor
sys.creat - create a new file
sys.ctime - convert a time to a string
sys.dir - return a listing of files and/or directories
sys.dup - duplicate a file descriptor
sys.exec - execute a program
sys.execp - execute a program using $PATH
sys.exit - exit the current process
sys.fcntl - change file flags
sys.fdopen - open a file descriptor as a file
sys.flock - lock a file
sys.fork - create a new process
sys.getcwd - return the working directory
sys.getegid - get the effective group id
sys.geteuid - get the effective user id
sys.getitimer - get interval timer
sys.getgid - get the groud id
sys.getpgrp - get the process group id
sys.getpid - get the process id
sys.getppid - get the parent process id
sys.getrlimit - get a resource limit
sys.getrlimits - get all resource limits
sys.getuid - get the user id
sys.isatty - determine if a file descriptor is a terminal
sys.kill - send a signal to a process
sys.link - create a link to a file
sys.lseek - set a file's read/write position
sys.lstat - stat a file ignoring symbolic links
sys.mkdir - create a directory
sys.mkfifo - create a FIFO
sys.mknod - create a special file
sys.nice - set process nice value
sys.open - open a file
sys.passwd - return system password file details
sys.pause - wait for signal
sys.pipe - create a pipe
sys.read - read from a file descriptor
sys.readlink - read a symbolic link
sys.rename - rename a file
sys.rmdir - remove a directory
sys.setgid - set group id
sys.setitimer - set interval timer
sys.setpgrp - set new process group
sys.setrlimit - set resource limit
sys.setuid - set user id
sys.signal - set signal handler
sys.sleep - pause process for a time period
sys.stat - return file metadata
sys.symlink - create a symbolic link
sys.sync - flush buffered data to disk
sys.time - return current time in seconds
sys.truncate - truncate a file
sys.umask - set the process umask
sys.unlink - remove a file (the old way)
sys.usleep - sleep for a period in microseconds
sys.wait - wait for child process event
sys.write - write to a file descriptor