The old stat call numbers are still supported for a while.
#define NCALLS 114 /* number of system calls allowed */
+/* In case it isn't obvious enough: this list is sorted numerically. */
#define EXIT 1
#define FORK 2
#define READ 3
#define SIGNAL 48
#define RDLNK 49
#define PREV_LSTAT 50
+#define STAT 51
+#define FSTAT 52
+#define LSTAT 53
#define IOCTL 54
#define FCNTL 55
#define FS_READY 57
#define GCOV_FLUSH 112 /* flush gcov data from server to gcov files */
-/* Numbers reused intentionally */
-#define STAT 65
-#define FSTAT 66
-#define LSTAT 67
-
#define PM_GETSID 113 /* PM getsid() */
#define TASK_REPLY 121 /* to VFS: reply code from drivers, not
no_sys, /* 48 = (signal)*/
do_rdlink, /* 49 = readlink*/
do_lstat, /* 50 = lstat (prev)*/
- no_sys, /* 51 = (acct) */
- no_sys, /* 52 = (phys) */
- no_sys, /* 53 = (lock) */
+ do_stat, /* 51 = stat */
+ do_fstat, /* 52 = fstat */
+ do_lstat, /* 53 = lstat */
do_ioctl, /* 54 = ioctl */
do_fcntl, /* 55 = fcntl */
no_sys, /* 56 = (mpx) */
no_sys, /* 62 = (setsid)*/
no_sys, /* 63 = (getpgrp)*/
no_sys, /* 64 = (itimer)*/
- do_stat, /* 65 = stat */
- do_fstat, /* 66 = fstat */
- do_lstat, /* 67 = lstat */
+ do_stat, /* 65 = stat - badly numbered, being phased out */
+ do_fstat, /* 66 = fstat - badly numbered, being phased out */
+ do_lstat, /* 67 = lstat - badly numbered, being phased out */
no_sys, /* 68 = unused */
no_sys, /* 69 = unused */
no_sys, /* 70 = unused */
no_sys, /* 48 = (signal)*/
no_sys, /* 49 = unused */
no_sys, /* 50 = lstat */
- no_sys, /* 51 = unused */
- no_sys, /* 52 = unused */
- no_sys, /* 53 = unused */
+ no_sys, /* 51 = (stat) */
+ no_sys, /* 52 = (fstat) */
+ no_sys, /* 53 = (lstat) */
no_sys, /* 54 = ioctl */
no_sys, /* 55 = fcntl */
no_sys, /* 56 = unused */
no_sys, /* 48 = (signal)*/
do_rdlink, /* 49 = readlink*/
do_lstat, /* 50 = lstat (prev)*/
- no_sys, /* 51 = unused */
- no_sys, /* 52 = unused */
- no_sys, /* 53 = unused */
+ do_stat, /* 51 = stat */
+ do_fstat, /* 52 = fstat */
+ do_lstat, /* 53 = lstat */
do_ioctl, /* 54 = ioctl */
do_fcntl, /* 55 = fcntl */
no_sys, /* 56 = unused */
no_sys, /* 62 = (setsid)*/
no_sys, /* 63 = (getpgrp)*/
no_sys, /* 64 = (itimer)*/
- do_stat, /* 65 = stat */
- do_fstat, /* 66 = fstat */
- do_lstat, /* 67 = lstat */
+ do_stat, /* 65 = stat - badly numbered, being phased out */
+ do_fstat, /* 66 = fstat - badly numbered, being phased out */
+ do_lstat, /* 67 = lstat - badly numbered, being phased out */
no_sys, /* 68 = unused */
no_sys, /* 69 = unused */
no_sys, /* 70 = unused */