|
| Previous: 6.2.8 Util | TOC | Index | Back | Next: 6.2.10 TTYCtl |
| Procedure | Description |
|---|---|
| SYS.INIT() | Initialize the system interface |
| SYS.FINI() | Shutdown the system interface |
| SYS.CHDIR(path) | Change the current working directory to PATH |
| SYS.CLOSEDIR(dirfd) | Close directory file descriptor DIRFD |
| SYS.DUP(fd) | Duplicate file descriptor FD |
| SYS.DUP2(old, new) | Duplicate file descriptor OLD to NEW. If NEW already is open, close it first. |
| SYS.FORK() | Duplicate the calling process |
| SYS.KILL(pid, sig) | Send signal SIG to process PID |
| SYSTEM.SIGKILL SYSTEM.SIGTERM SYSTEM.SIGTEST |
signal: kill process signal: terminate process signal: test process id |
| SYS.MKDIR(path) | Create new directory named PATH |
| SYS.OPENDIR(path) | Open directory file descriptor for PATH |
| SYS.PIPE(fdvec) | Create pipe. FDVEC[0] is filled with output end (read-only) and FDVEC[1] with the input descriptor (write-only). |
| SYS.RDCHK(fd) | Check FD for pending input |
| SYS.READDIR(dirfd, buf, max) | Read up to MAX characters of the next directory entry (file name) from DIRFD into BUF |
| SYS.RMDIR(path) | Remove directory PATH |
| SYS.SPAWN(prog, args, mode) | Spawn program PROG as a subprocess in the given MODE, passing the arguments pointed to by ARGS to it |
| SYSTEM.SPAWN_NOWAIT SYSTEM.SPAWN_WAIT |
mode: create background process mode: wait for process termination |
| SYS.STAT(path, sb) | Retrieve statistics for file PATH and store them in the statbuf structure SB |
| SYSTEM.STATBUF | Structure for file statistics (SB) |
| SYSTEM.ST_DEV SYSTEM.ST_EXT SYSTEM.ST_GID SYSTEM.ST_INO SYSTEM.ST_MODE SYSTEM.ST_MTIME SYSTEM.ST_NLINK SYSTEM.ST_RDEV SYSTEM.ST_SIZE SYSTEM.ST_UID |
SB: device ID SB: size of file in full 64K blocks SB: group ID of owner SB: inode number SB: permission flags SB: modification time: YYMDHMSh SB: number of links SB: device type SB: size mod 64K SB: user ID of owner |
| SYS.TIME(tbuf) | fill TBUF with system time (8 bytes = YYMDHMSh) |
| SYS.WAIT(pid) | Wait for subprocess PID to terminate |
| Previous: 6.2.8 Util | TOC | Index | Back | Next: 6.2.10 TTYCtl |