1 #ifndef __LIB_SYSCALL_NR_H
2 #define __LIB_SYSCALL_NR_H
4 /* System call numbers. */
5 #define SYS_halt 0 /* Halts the operating system. */
6 #define SYS_exit 1 /* Terminates this process. */
7 #define SYS_exec 2 /* Start another process. */
8 #define SYS_wait 3 /* Waits for a child process to die. */
9 #define SYS_create 4 /* Creates a file. */
10 #define SYS_remove 5 /* Deletes a file. */
11 #define SYS_open 6 /* Opens a file. */
12 #define SYS_filesize 7 /* Obtains a file's size. */
13 #define SYS_read 8 /* Reads from a file. */
14 #define SYS_write 9 /* Writes to a file. */
15 #define SYS_seek 10 /* Change position in a file. */
16 #define SYS_tell 11 /* Report current position in a file. */
17 #define SYS_close 12 /* Closes a file. */
18 #define SYS_mmap 13 /* Maps a file into memory. */
19 #define SYS_munmap 14 /* Removes a memory mapping. */
20 #define SYS_chdir 15 /* Changes the current directory. */
21 #define SYS_mkdir 16 /* Create a directory. */
22 #define SYS_lsdir 17 /* Lists the current directory to stdout. */
24 #endif /* lib/syscall-nr.h */