os161-1.99
 All Data Structures
syscall.c
00001 /* See how function and system calls happens. */
00002 #include <unistd.h>
00003 #include <errno.h>
00004 
00005 int
00006 main()
00007 {
00008         int x;
00009         x = close(999);
00010   if (x < 0) {
00011           return errno;
00012   } else {
00013           return x;
00014   }
00015 }
 All Data Structures