Improve list_remove().
[pintos-anon] / src / lib / syscall-nr.h
index fa9bde91ecdd3008cf1aab568a42accc3b02ae8f..5a243bd28798ef9d92747d16f38839f6028cb1c3 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef LIB_SYSCALL_NR_H
-#define LIB_SYSCALL_NR_H 1
+#ifndef __LIB_SYSCALL_NR_H
+#define __LIB_SYSCALL_NR_H
 
 /* System call numbers. */
 #define SYS_halt 0              /* Halts the operating system. */
@@ -9,15 +9,16 @@
 #define SYS_create 4            /* Creates a file. */
 #define SYS_remove 5            /* Deletes a file. */
 #define SYS_open 6              /* Opens a file. */
-#define SYS_read 7              /* Reads from a file. */
-#define SYS_write 8             /* Writes to a file. */
-#define SYS_close 9             /* Closes a file. */
-#define SYS_length 10           /* Obtains a file's size. */
-#define SYS_mmap 11             /* Maps a file into memory. */
-#define SYS_munmap 12           /* Removes a memory mapping. */
-
-/* Predefined file handles. */
-#define STDIN_FILENO 0
-#define STDOUT_FILENO 1
+#define SYS_filesize 7          /* Obtains a file's size. */
+#define SYS_read 8              /* Reads from a file. */
+#define SYS_write 9             /* Writes to a file. */
+#define SYS_seek 10             /* Change position in a file. */
+#define SYS_tell 11             /* Report current position in a file. */
+#define SYS_close 12            /* Closes a file. */
+#define SYS_mmap 13             /* Maps a file into memory. */
+#define SYS_munmap 14           /* Removes a memory mapping. */
+#define SYS_chdir 15            /* Changes the current directory. */
+#define SYS_mkdir 16            /* Create a directory. */
+#define SYS_lsdir 17            /* Lists the current directory to stdout. */
 
 #endif /* lib/syscall-nr.h */