COHERENT system calls Overview COHERENT system calls The COHERENT system makes many services available to the C programmer. A programmer can use a COHERENT service through a system call. COHERENT's libraries include the following system calls: _exit() Terminate a process access() Check if file can be accessed in given mode acct() Enable/disable process accounting alarm() Set a timer brk() Change size of data area chdir() Change working directory chmod() Change file protection modes chown() Change ownership of a file chroot() Change process's root directory close() Close a file creat() Create/truncate a file dup() Duplicate a file descriptor dup2() Duplicate a file descriptor execl() Execute a load module execle() Execute a load module execlp() Execute a load module execv() Execute a load module execve() Execute a load module execvp() Execute a load module fork() Create a new process fstat() Find file attributes getegid() Get effective group id geteuid() Get effective user id getgid() Get real group id getpid() Get process id getuid() Get real user id gtty() Terminal initialization ioctl() Device-dependent control kill() Send a signal to a process link() Create a link lock() Prevent process from swapping lseek() Set read/write position mknod() Create a special file mount() Mount a file system msgctl() Control message operation msgget() Get a message queue msgrcv() Receive a message msgsnd() Send a message open() Open a file pause() Wait for signal pipe() Create a pipe ptrace() Trace process execution read() Read from a file sbrk() Increase a program's data space semctl() Control semaphore operations semget() Get a set of semaphores semop() Perform semaphore operations setgid() Set group id and user id setuid() Set user id COHERENT Lexicon Page 1
COHERENT system calls Overview COHERENT system calls shmctl() Control shared-memory operations shmget() Get the shared-memory segment signal() Specify disposition of a signal sload() Load device driver stat() Find file attributes stime() Set the time stty() Device-dependent control suload() Unload device driver sync() Flush system buffers times() Obtain process execution times umask() Set file creation mask umount() Unmount a file system unlink() Remove a file utime() Change file access and modification times wait() Await completion of child process write() Write to a file ***** See Also ***** Lexicon, libraries, STDIO COHERENT Lexicon Page 2