00001 #ifndef __LIB_SYSCALL_NR_H 00002 //3024277626283277472 00003 #define __LIB_SYSCALL_NR_H 00004 00005 /* System call numbers. */ 00006 enum 00007 { 00008 /* Projects 2 and later. */ 00009 SYS_HALT, /* Halt the operating system. */ 00010 SYS_EXIT, /* Terminate this process. */ 00011 SYS_EXEC, /* Start another process. */ 00012 SYS_WAIT, /* Wait for a child process to die. */ 00013 SYS_CREATE, /* Create a file. */ 00014 SYS_REMOVE, /* Delete a file. */ 00015 SYS_OPEN, /* Open a file. */ 00016 SYS_FILESIZE, /* Obtain a file's size. */ 00017 SYS_READ, /* Read from a file. */ 00018 SYS_WRITE, /* Write to a file. */ 00019 SYS_SEEK, /* Change position in a file. */ 00020 SYS_TELL, /* Report current position in a file. */ 00021 SYS_CLOSE, /* Close a file. */ 00022 00023 /* Project 3 and optionally project 4. */ 00024 SYS_MMAP, /* Map a file into memory. */ 00025 SYS_MUNMAP, /* Remove a memory mapping. */ 00026 00027 /* Project 4 only. */ 00028 SYS_CHDIR, /* Change the current directory. */ 00029 SYS_MKDIR, /* Create a directory. */ 00030 SYS_READDIR, /* Reads a directory entry. */ 00031 SYS_ISDIR, /* Tests if a fd represents a directory. */ 00032 SYS_INUMBER /* Returns the inode number for a fd. */ 00033 }; 00034 00035 #endif /* lib/syscall-nr.h */