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