EXAMPLES AND TOOLS



HOME

BACKGROUND

EXAMPLES ANG TOOLS

STEP IN A MAKING A SYSTEM CALLS





On Unix, Unix-like and other POSIX systems, popular system calls are open, read, write, close, wait, exec, fork, exit, and kill.

Many of today's operating systems have hundreds of system calls. For example, Linux has 319 different system calls. FreeBSD has about the same number (almost 330).

Tools such as strace and truss allow a process to execute from start and report all system calls the process invokes, or can attach to an already running process and intercept any system call made by said process if the operation does not violate the permissions of the user. This special ability of the program is usually also implemented with a system call, e.g. the GNU's strace is implemented with i.a. ptrace().