PERFORCE change 77639 for review

Robert Watson rwatson at FreeBSD.org
Sat May 28 12:27:58 PDT 2005


http://perforce.freebsd.org/chv.cgi?CH=77639

Change 77639 by rwatson at rwatson_paprika on 2005/05/28 19:27:05

	Re-order syscalls.master arguments to make the audit event
	identifier mandatory (second) in each system call definition,
	rather than as an optional field later in the table.  This
	makes the file a bit easier to parse mechanically.

Affected files ...

.. //depot/projects/trustedbsd/audit3/sys/kern/makesyscalls.sh#4 edit
.. //depot/projects/trustedbsd/audit3/sys/kern/syscalls.master#12 edit

Differences ...

==== //depot/projects/trustedbsd/audit3/sys/kern/makesyscalls.sh#4 (text+ko) ====

@@ -199,26 +199,24 @@
 		exit 1
 	}
 	function parseline() {
-		f=3			# toss number and type
+		f=4			# toss number, type, audit event
 		argc= 0;
 		argssize = "0"
-		if ($(NF) ~ "AUE") {
-			auditev=$(NF)
+		if ($NF != "}") {
+			funcalias=$(NF-2)
+			argalias=$(NF-1)
+			rettype=$NF
+			end=NF-3
+		} else {
 			funcalias=""
 			argalias=""
 			rettype="int"
-			end=NF-1
-		} else {
-			auditev=$(NF-3)
-			funcalias=$(NF-2)
-			argalias=$(NF-1)
-			rettype=$NF
-			end=NF-4
+			end=NF
 		}
-		if ($2 == "NODEF") {
+		if ($3 == "NODEF") {
 			auditev="AUE_NULL"
-			funcname=$3
-			argssize = "AS(" $5 ")"
+			funcname=$4
+			argssize = "AS(" $6 ")"
 			return
 		}
 		if ($f != "{")
@@ -241,9 +239,9 @@
 			funcalias = funcname
 		if (argalias == "") {
 			argalias = funcname "_args"
-			if ($2 == "COMPAT")
+			if ($3 == "COMPAT")
 				argalias = "o" argalias
-			if ($2 == "COMPAT4")
+			if ($3 == "COMPAT4")
 				argalias = "freebsd4_" argalias
 		}
 		f++
@@ -277,50 +275,57 @@
 		if (argc != 0)
 			argssize = "AS(" argalias ")"
 	}
-	{	comment = $3
-		if (NF < 6)
-			for (i = 4; i <= NF; i++)
+	{	comment = $4
+		if (NF < 7)
+			for (i = 5; i <= NF; i++)
 				comment = comment " " $i
 	}
 
+	#
+	# The AUE_ audit event identifier.
+	#
+	{
+		auditev = $2;
+	}
+
 	# The 'M' type prefix
 	#
 	{
 		mpsafe = "SYF_MPSAFE | ";
-		if ($2 == "MSTD") {
-			$2 = "STD";
-		} else if ($2 == "MNODEF") {
-			$2 = "NODEF";
-		} else if ($2 == "MNOARGS") {
-			$2 = "NOARGS";
-		} else if ($2 == "MNOPROTO") {
-			$2 = "NOPROTO";
-		} else if ($2 == "MNOIMPL") {
-			$2 = "NOIMPL";
-		} else if ($2 == "MNOSTD") {
-			$2 = "NOSTD";
-		} else if ($2 == "MCOMPAT") {
-			$2 = "COMPAT";
-		} else if ($2 == "MCOMPAT4") {
-			$2 = "COMPAT4";
-		} else if ($2 == "MCPT_NOA") {
-			$2 = "CPT_NOA";
-		} else if ($2 == "MLIBCOMPAT") {
-			$2 = "LIBCOMPAT";
-		} else if ($2 == "MOBSOL") {
-			$2 = "OBSOL";
-		} else if ($2 == "MUNIMPL") {
-			$2 = "UNIMPL";
+		if ($3 == "MSTD") {
+			$3 = "STD";
+		} else if ($3 == "MNODEF") {
+			$3 = "NODEF";
+		} else if ($3 == "MNOARGS") {
+			$3 = "NOARGS";
+		} else if ($3 == "MNOPROTO") {
+			$3 = "NOPROTO";
+		} else if ($3 == "MNOIMPL") {
+			$3 = "NOIMPL";
+		} else if ($3 == "MNOSTD") {
+			$3 = "NOSTD";
+		} else if ($3 == "MCOMPAT") {
+			$3 = "COMPAT";
+		} else if ($3 == "MCOMPAT4") {
+			$3 = "COMPAT4";
+		} else if ($3 == "MCPT_NOA") {
+			$3 = "CPT_NOA";
+		} else if ($3 == "MLIBCOMPAT") {
+			$3 = "LIBCOMPAT";
+		} else if ($3 == "MOBSOL") {
+			$3 = "OBSOL";
+		} else if ($3 == "MUNIMPL") {
+			$3 = "UNIMPL";
 		} else {
 			mpsafe = "";
 		}
 	}
-	$2 == "STD" || $2 == "NODEF" || $2 == "NOARGS"  || $2 == "NOPROTO" \
-	    || $2 == "NOIMPL" || $2 == "NOSTD" {
+	$3 == "STD" || $3 == "NODEF" || $3 == "NOARGS"  || $3 == "NOPROTO" \
+	    || $3 == "NOIMPL" || $3 == "NOSTD" {
 		parseline()
 		if ((!nosys || funcname != "nosys") && \
 		    (funcname != "lkmnosys") && (funcname != "lkmressys")) {
-			if (argc != 0 && $2 != "NOARGS" && $2 != "NOPROTO") {
+			if (argc != 0 && $3 != "NOARGS" && $3 != "NOPROTO") {
 				printf("struct %s {\n", argalias) > sysarg
 				for (i = 1; i <= argc; i++)
 					printf("\tchar %s_l_[PADL_(%s)]; " \
@@ -330,12 +335,12 @@
 					    argname[i], argtype[i]) > sysarg
 				printf("};\n") > sysarg
 			}
-			else if ($2 != "NOARGS" && $2 != "NOPROTO" && \
-			    $2 != "NODEF")
+			else if ($3 != "NOARGS" && $3 != "NOPROTO" && \
+			    $3 != "NODEF")
 				printf("struct %s {\n\tregister_t dummy;\n};\n",
 				    argalias) > sysarg
 		}
-		if (($2 != "NOPROTO" && $2 != "NODEF" && \
+		if (($3 != "NOPROTO" && $3 != "NODEF" && \
 		    (funcname != "nosys" || !nosys)) || \
 		    (funcname == "lkmnosys" && !lkmnosys) || \
 		    funcname == "lkmressys") {
@@ -349,10 +354,10 @@
 			lkmnosys = 1
 		printf("\t{ %s%s, (sy_call_t *)", mpsafe, argssize) > sysent
 		column = 8 + 2 + length(mpsafe) + length(argssize) + 15
-		if ($2 == "NOIMPL") {
+		if ($3 == "NOIMPL") {
 			printf("%s },", "nosys, AUE_NULL") > sysent
 			column = column + length("nosys") + 3
-		} else if ($2 == "NOSTD") {
+		} else if ($3 == "NOSTD") {
 			printf("%s },", "lkmressys, AUE_NULL") > sysent
 			column = column + length("lkmressys") + 3
 		} else {
@@ -363,7 +368,7 @@
 		printf("/* %d = %s */\n", syscall, funcalias) > sysent
 		printf("\t\"%s\",\t\t\t/* %d = %s */\n",
 		    funcalias, syscall, funcalias) > sysnames
-		if ($2 != "NODEF") {
+		if ($3 != "NODEF") {
 			printf("#define\t%s%s\t%d\n", syscallprefix,
 		    	    funcalias, syscall) > syshdr
 			printf(" \\\n\t%s.o", funcalias) > sysmk
@@ -371,14 +376,14 @@
 		syscall++
 		next
 	}
-	$2 == "COMPAT" || $2 == "COMPAT4" || $2 == "CPT_NOA" {
-		if ($2 == "COMPAT" || $2 == "CPT_NOA") {
+	$3 == "COMPAT" || $3 == "COMPAT4" || $3 == "CPT_NOA" {
+		if ($3 == "COMPAT" || $3 == "CPT_NOA") {
 			ncompat++
 			out = syscompat
 			outdcl = syscompatdcl
 			wrap = "compat"
 			prefix = "o"
-		} else if ($2 == "COMPAT4") {
+		} else if ($3 == "COMPAT4") {
 			ncompat4++
 			out = syscompat4
 			outdcl = syscompat4dcl
@@ -386,7 +391,7 @@
 			prefix = "freebsd4_"
 		}
 		parseline()
-		if (argc != 0 && $2 != "CPT_NOA") {
+		if (argc != 0 && $3 != "CPT_NOA") {
 			printf("struct %s {\n", argalias) > out
 			for (i = 1; i <= argc; i++)
 				printf("\tchar %s_l_[PADL_(%s)]; %s %s; " \
@@ -396,7 +401,7 @@
 				    argname[i], argtype[i]) > out
 			printf("};\n") > out
 		}
-		else if($2 != "CPT_NOA")
+		else if($3 != "CPT_NOA")
 			printf("struct %s {\n\tregister_t dummy;\n};\n",
 			    argalias) > sysarg
 		printf("%s\t%s%s(struct thread *, struct %s *);\n",
@@ -413,7 +418,7 @@
 		syscall++
 		next
 	}
-	$2 == "LIBCOMPAT" {
+	$3 == "LIBCOMPAT" {
 		ncompat++
 		parseline()
 		printf("%s\to%s();\n", rettype, funcname) > syscompatdcl
@@ -430,18 +435,18 @@
 		syscall++
 		next
 	}
-	$2 == "OBSOL" {
+	$3 == "OBSOL" {
 		printf("\t{ 0, (sy_call_t *)nosys, AUE_NULL },") > sysent
 		align_sysent_comment(34)
 		printf("/* %d = obsolete %s */\n", syscall, comment) > sysent
 		printf("\t\"obs_%s\",\t\t\t/* %d = obsolete %s */\n",
-		    $3, syscall, comment) > sysnames
+		    $4, syscall, comment) > sysnames
 		printf("\t\t\t\t/* %d is obsolete %s */\n",
 		    syscall, comment) > syshdr
 		syscall++
 		next
 	}
-	$2 == "UNIMPL" {
+	$3 == "UNIMPL" {
 		printf("\t{ 0, (sy_call_t *)nosys, AUE_NULL },\t\t\t/* %d = %s */\n",
 		    syscall, comment) > sysent
 		printf("\t\"#%d\",\t\t\t/* %d = %s */\n",
@@ -450,7 +455,7 @@
 		next
 	}
 	{
-		printf "%s: line %d: unrecognized keyword %s\n", infile, NR, $2
+		printf "%s: line %d: unrecognized keyword %s\n", infile, NR, $3
 		exit 1
 	}
 	END {

==== //depot/projects/trustedbsd/audit3/sys/kern/syscalls.master#12 (text+ko) ====

@@ -6,15 +6,15 @@
 
 ; Columns: number [M]type name audit alt{name,tag,rtyp}/comments
 ;	number	system call number, must be in order
-;	type	one of [M]STD, [M]OBSOL, [M]UNIMPL, [M]COMPAT, [M]CPT_NOA,
-;		[M]LIBCOMPAT, [M]NODEF,  [M]NOARGS,  [M]NOPROTO,  [M]NOIMPL,
-;		[M]NOSTD, [M]COMPAT4
-;	name	psuedo-prototype of syscall routine
 ;	audit	the audit event associated with the system call
 ;		A value of AUE_NULL means no auditing, but it also means that
 ;		there is no audit event for the call at this time. For the
 ;		case where the event exists, but we don't want auditing, the
 ;		event should be #defined to AUE_NULL in audit_kevents.h.
+;	type	one of [M]STD, [M]OBSOL, [M]UNIMPL, [M]COMPAT, [M]CPT_NOA,
+;		[M]LIBCOMPAT, [M]NODEF,  [M]NOARGS,  [M]NOPROTO,  [M]NOIMPL,
+;		[M]NOSTD, [M]COMPAT4
+;	name	psuedo-prototype of syscall routine
 ;		If one of the following alts is different, then all appear:
 ;	altname	name of system call if different
 ;	alttag	name of args struct tag if different from [o]`name'"_args"
@@ -50,661 +50,615 @@
 ; redistributions should be placed in the reserved range at the end
 ; of the current calls.
 
-0	MSTD	{ int nosys(void); } AUE_NULL syscall nosys_args int
-1	MSTD	{ void sys_exit(int rval); } AUE_EXIT exit sys_exit_args void
-2	MSTD	{ int fork(void); } AUE_FORK
-3	MSTD	{ ssize_t read(int fd, void *buf, size_t nbyte); } AUE_NULL
-4	MSTD	{ ssize_t write(int fd, const void *buf, size_t nbyte); } \
-			AUE_NULL
-5	MSTD	{ int open(char *path, int flags, int mode); } AUE_OPEN_RWTC
+0	AUE_NULL	MSTD	{ int nosys(void); } syscall nosys_args int
+1	AUE_EXIT	MSTD	{ void sys_exit(int rval); } exit sys_exit_args void
+2	AUE_FORK	MSTD	{ int fork(void); }
+3	AUE_NULL	MSTD	{ ssize_t read(int fd, void *buf, size_t nbyte); }
+4	AUE_NULL	MSTD	{ ssize_t write(int fd, const void *buf, size_t nbyte); }
+5	AUE_OPEN_RWTC	MSTD	{ int open(char *path, int flags, int mode); }
 ; XXX should be		{ int open(const char *path, int flags, ...); }
 ; but we're not ready for `const' or varargs.
 ; XXX man page says `mode_t mode'.
-6	MSTD	{ int close(int fd); } AUE_CLOSE
-7	MSTD	{ int wait4(int pid, int *status, int options, \
-			 struct rusage *rusage); } AUE_NULL  wait4 wait_args int
-8	MCOMPAT	{ int creat(char *path, int mode); } AUE_O_CREAT
-9	MSTD	{ int link(char *path, char *link); } AUE_LINK
-10	MSTD	{ int unlink(char *path); } AUE_UNLINK
-11	OBSOL	execv
-12	STD	{ int chdir(char *path); } AUE_CHDIR
-13	STD	{ int fchdir(int fd); } AUE_FCHDIR
-14	STD	{ int mknod(char *path, int mode, int dev); } AUE_MKNOD
-15	STD	{ int chmod(char *path, int mode); } AUE_CHMOD
-16	STD	{ int chown(char *path, int uid, int gid); } AUE_CHOWN
-17	MSTD	{ int obreak(char *nsize); } AUE_NULL break obreak_args int
-18	COMPAT4	{ int getfsstat(struct ostatfs *buf, long bufsize, \
-			int flags); } AUE_GETFSSTAT
-19	COMPAT	{ long lseek(int fd, long offset, int whence); } AUE_LSEEK
-20	MSTD	{ pid_t getpid(void); } AUE_GETPID
-21	STD	{ int mount(char *type, char *path, int flags, \
-			    caddr_t data); } AUE_MOUNT
+6	AUE_CLOSE	MSTD	{ int close(int fd); }
+7	AUE_NULL	MSTD	{ int wait4(int pid, int *status, int options, \
+				 struct rusage *rusage); } wait4 wait_args int
+8	AUE_O_CREAT	MCOMPAT	{ int creat(char *path, int mode); }
+9	AUE_LINK	MSTD	{ int link(char *path, char *link); }
+10	AUE_UNLINK	MSTD	{ int unlink(char *path); }
+11	AUE_NULL	OBSOL	execv
+12	AUE_CHDIR	STD	{ int chdir(char *path); }
+13	AUE_FCHDIR	STD	{ int fchdir(int fd); }
+14	AUE_MKNOD	STD	{ int mknod(char *path, int mode, int dev); }
+15	AUE_CHMOD	STD	{ int chmod(char *path, int mode); }
+16	AUE_CHOWN	STD	{ int chown(char *path, int uid, int gid); }
+17	AUE_NULL	MSTD	{ int obreak(char *nsize); } break obreak_args int
+18	AUE_GETFSSTAT	COMPAT4	{ int getfsstat(struct ostatfs *buf, long bufsize, \
+				    int flags); }
+19	AUE_LSEEK	COMPAT	{ long lseek(int fd, long offset, int whence); }
+20	AUE_GETPID	MSTD	{ pid_t getpid(void); }
+21	AUE_MOUNT	STD	{ int mount(char *type, char *path, int flags, \
+				    caddr_t data); }
 ; XXX `path' should have type `const char *' but we're not ready for that.
-22	STD	{ int unmount(char *path, int flags); } AUE_UMOUNT
-23	MSTD	{ int setuid(uid_t uid); } AUE_SETUID
-24	MSTD	{ uid_t getuid(void); } AUE_NULL
-25	MSTD	{ uid_t geteuid(void); } AUE_NULL
-26	MSTD	{ int ptrace(int req, pid_t pid, caddr_t addr, \
-			     int data); } AUE_PTRACE
-27	MSTD	{ int recvmsg(int s, struct msghdr *msg, \
-			      int flags); } AUE_RECVMSG
-28	MSTD	{ int sendmsg(int s, struct msghdr *msg, \
-			      int flags); } AUE_SENDMSG
-29	MSTD	{ int recvfrom(int s, caddr_t buf, size_t len, int flags, \
-		    struct sockaddr * __restrict from, \
-		    __socklen_t * __restrict fromlenaddr); } AUE_RECVFROM
-30	MSTD	{ int accept(int s, struct sockaddr * __restrict name, \
-		    __socklen_t * __restrict anamelen); } AUE_ACCEPT
-31	MSTD	{ int getpeername(int fdes, struct sockaddr * __restrict asa, \
-		    __socklen_t * __restrict alen); } AUE_GETPEERNAME
-32	MSTD	{ int getsockname(int fdes, struct sockaddr * __restrict asa, \
-		    __socklen_t * __restrict alen); } AUE_GETSOCKNAME
-33	STD	{ int access(char *path, int flags); } AUE_ACCESS
-34	STD	{ int chflags(char *path, int flags); } AUE_CHFLAGS
-35	STD	{ int fchflags(int fd, int flags); } AUE_FCHFLAGS
-36	STD	{ int sync(void); } AUE_SYNC
-37	MSTD	{ int kill(int pid, int signum); } AUE_KILL
-38	COMPAT	{ int stat(char *path, struct ostat *ub); } AUE_STAT
-39	MSTD	{ pid_t getppid(void); } AUE_GETPPID
-40	COMPAT	{ int lstat(char *path, struct ostat *ub); } AUE_LSTAT
-41	MSTD	{ int dup(u_int fd); } AUE_DUP
-42	MSTD	{ int pipe(void); } AUE_PIPE
-43	MSTD	{ gid_t getegid(void); } AUE_GETEGID
-44	MSTD	{ int profil(caddr_t samples, size_t size, size_t offset, \
-		    u_int scale); } AUE_PROFILE
-45	MSTD	{ int ktrace(const char *fname, int ops, int facs, \
-		    int pid); } AUE_KTRACE
-46	MCOMPAT	{ int sigaction(int signum, struct osigaction *nsa, \
-		    struct osigaction *osa); } AUE_SIGACTION
-47	MSTD	{ gid_t getgid(void); } AUE_GETGID
-48	MCOMPAT	{ int sigprocmask(int how, osigset_t mask); } AUE_SIGPROCMASK
+22	AUE_UMOUNT	STD	{ int unmount(char *path, int flags); }
+23	AUE_SETUID	MSTD	{ int setuid(uid_t uid); }
+24	AUE_NULL	MSTD	{ uid_t getuid(void); }
+25	AUE_NULL	MSTD	{ uid_t geteuid(void); }
+26	AUE_PTRACE	MSTD	{ int ptrace(int req, pid_t pid, caddr_t addr, \
+				     int data); }
+27	AUE_RECVMSG	MSTD	{ int recvmsg(int s, struct msghdr *msg, \
+				      int flags); }
+28	AUE_SENDMSG	MSTD	{ int sendmsg(int s, struct msghdr *msg, \
+				      int flags); }
+29	AUE_RECVFROM	MSTD	{ int recvfrom(int s, caddr_t buf, size_t len, int flags, \
+				    struct sockaddr * __restrict from, \
+				    __socklen_t * __restrict fromlenaddr); }
+30	AUE_ACCEPT	MSTD	{ int accept(int s, struct sockaddr * __restrict name, \
+				    __socklen_t * __restrict anamelen); }
+31	AUE_GETPEERNAME	MSTD	{ int getpeername(int fdes, struct sockaddr * __restrict asa, \
+				    __socklen_t * __restrict alen); }
+32	AUE_GETSOCKNAME	MSTD	{ int getsockname(int fdes, struct sockaddr * __restrict asa, \
+				    __socklen_t * __restrict alen); }
+33	AUE_ACCESS	STD	{ int access(char *path, int flags); }
+34	AUE_CHFLAGS	STD	{ int chflags(char *path, int flags); }
+35	AUE_FCHFLAGS	STD	{ int fchflags(int fd, int flags); }
+36	AUE_SYNC	STD	{ int sync(void); }
+37	AUE_KILL	MSTD	{ int kill(int pid, int signum); }
+38	AUE_STAT	COMPAT	{ int stat(char *path, struct ostat *ub); }
+39	AUE_GETPPID	MSTD	{ pid_t getppid(void); }
+40	AUE_LSTAT	COMPAT	{ int lstat(char *path, struct ostat *ub); }
+41	AUE_DUP		MSTD	{ int dup(u_int fd); }
+42	AUE_PIPE	MSTD	{ int pipe(void); }
+43	AUE_GETEGID	MSTD	{ gid_t getegid(void); }
+44	AUE_PROFILE	MSTD	{ int profil(caddr_t samples, size_t size, size_t offset, \
+				    u_int scale); }
+45	AUE_KTRACE	MSTD	{ int ktrace(const char *fname, int ops, int facs, \
+				    int pid); }
+46	AUE_SIGACTION	MCOMPAT	{ int sigaction(int signum, struct osigaction *nsa, \
+				    struct osigaction *osa); }
+47	AUE_GETGID	MSTD	{ gid_t getgid(void); }
+48	AUE_SIGPROCMASK	MCOMPAT	{ int sigprocmask(int how, osigset_t mask); }
 ; XXX note nonstandard (bogus) calling convention - the libc stub passes
 ; us the mask, not a pointer to it, and we return the old mask as the
 ; (int) return value.
-49	MSTD	{ int getlogin(char *namebuf, u_int namelen); } AUE_GETLOGIN
-50	MSTD	{ int setlogin(char *namebuf); } AUE_SETLOGIN
-51	MSTD	{ int acct(char *path); } AUE_ACCT
-52	MCOMPAT	{ int sigpending(void); } AUE_SIGPENDING
-53	MSTD	{ int sigaltstack(stack_t *ss, stack_t *oss); } AUE_SIGPENDING
-54	MSTD	{ int ioctl(int fd, u_long com, caddr_t data); } AUE_IOCTL
-55	MSTD	{ int reboot(int opt); } AUE_REBOOT
-56	STD	{ int revoke(char *path); } AUE_REVOKE
-57	STD	{ int symlink(char *path, char *link); } AUE_SYMLINK
-58	STD	{ int readlink(char *path, char *buf, \
-			       int count); } AUE_READLINK
-59	MSTD	{ int execve(char *fname, char **argv, \
-			     char **envv); } AUE_EXECVE
-60	MSTD	{ int umask(int newmask); } AUE_UMASK umask umask_args int
-61	STD	{ int chroot(char *path); } AUE_CHROOT
-62	MCOMPAT	{ int fstat(int fd, struct ostat *sb); } AUE_FSTAT
-63	MCOMPAT	{ int getkerninfo(int op, char *where, size_t *size, \
-		    int arg); } AUE_NULL getkerninfo getkerninfo_args int
-64	MCOMPAT	{ int getpagesize(void); } AUE_O_GETPAGESIZE \
-			getpagesize getpagesize_args int
-65	MSTD	{ int msync(void *addr, size_t len, int flags); } AUE_MSYNC
-66	MSTD	{ int vfork(void); } AUE_VFORK
-67	OBSOL	vread
-68	OBSOL	vwrite
-69	MSTD	{ int sbrk(int incr); } AUE_SBRK
-70	MSTD	{ int sstk(int incr); } AUE_SSTK
-71	MCOMPAT	{ int mmap(void *addr, int len, int prot, int flags, int fd, \
-		    long pos); } AUE_MMAP
-72	MSTD	{ int ovadvise(int anom); } AUE_O_VADVISE \
-			vadvise ovadvise_args int
-73	MSTD	{ int munmap(void *addr, size_t len); } AUE_MUNMAP
-74	MSTD	{ int mprotect(const void *addr, size_t len, int prot); }\
-			AUE_MPROTECT
-75	MSTD	{ int madvise(void *addr, size_t len, int behav); } AUE_MADVISE
-76	OBSOL	vhangup
-77	OBSOL	vlimit
-78	MSTD	{ int mincore(const void *addr, size_t len, char *vec); } \
-			AUE_MINCORE
-79	MSTD	{ int getgroups(u_int gidsetsize, gid_t *gidset); } \
-			AUE_GETGROUPS
-80	MSTD	{ int setgroups(u_int gidsetsize, gid_t *gidset); } \
-			AUE_SETGROUPS
-81	MSTD	{ int getpgrp(void); } AUE_GETPGRP
-82	MSTD	{ int setpgid(int pid, int pgid); } AUE_SETPGRP
-83	MSTD	{ int setitimer(u_int which, struct itimerval *itv, \
-		    struct itimerval *oitv); } AUE_SETITIMER
-84	MCOMPAT	{ int wait(void); } AUE_O_WAIT
-85	MSTD	{ int swapon(char *name); } AUE_SWAPON
-86	MSTD	{ int getitimer(u_int which, struct itimerval *itv); } \
-			AUE_GETITIMER
-87	MCOMPAT	{ int gethostname(char *hostname, u_int len); } \
-			AUE_O_GETHOSTNAME gethostname gethostname_args int
-88	MCOMPAT	{ int sethostname(char *hostname, u_int len); } \
-		    AUE_O_SETHOSTNAME sethostname sethostname_args int
-89	MSTD	{ int getdtablesize(void); } AUE_GETDTABLESIZE
-90	MSTD	{ int dup2(u_int from, u_int to); } AUE_DUP2
-91	UNIMPL	getdopt
-92	MSTD	{ int fcntl(int fd, int cmd, long arg); } AUE_FCNTL
+49	AUE_GETLOGIN	MSTD	{ int getlogin(char *namebuf, u_int namelen); }
+50	AUE_SETLOGIN	MSTD	{ int setlogin(char *namebuf); }
+51	AUE_ACCT	MSTD	{ int acct(char *path); }
+52	AUE_SIGPENDING	MCOMPAT	{ int sigpending(void); }
+53	AUE_SIGPENDING	MSTD	{ int sigaltstack(stack_t *ss, stack_t *oss); }
+54	AUE_IOCTL	MSTD	{ int ioctl(int fd, u_long com, caddr_t data); }
+55	AUE_REBOOT	MSTD	{ int reboot(int opt); }
+56	AUE_REVOKE	STD	{ int revoke(char *path); }
+57	AUE_SYMLINK	STD	{ int symlink(char *path, char *link); }
+58	AUE_READLINK	STD	{ int readlink(char *path, char *buf, \
+			       int count); }
+59	AUE_EXECVE	MSTD	{ int execve(char *fname, char **argv, \
+			     char **envv); }
+60	AUE_UMASK	MSTD	{ int umask(int newmask); } umask umask_args int
+61	AUE_CHROOT	STD	{ int chroot(char *path); }
+62	AUE_FSTAT	MCOMPAT	{ int fstat(int fd, struct ostat *sb); }
+63	AUE_NULL	MCOMPAT	{ int getkerninfo(int op, char *where, size_t *size, \
+				    int arg); } getkerninfo getkerninfo_args int
+64	AUE_O_GETPAGESIZE	MCOMPAT	{ int getpagesize(void); } \
+				    getpagesize getpagesize_args int
+65	AUE_MSYNC	MSTD	{ int msync(void *addr, size_t len, int flags); }
+66	AUE_VFORK	MSTD	{ int vfork(void); }
+67	AUE_NULL	OBSOL	vread
+68	AUE_NULL	OBSOL	vwrite
+69	AUE_SBRK	MSTD	{ int sbrk(int incr); }
+70	AUE_SSTK	MSTD	{ int sstk(int incr); }
+71	AUE_MMAP	MCOMPAT	{ int mmap(void *addr, int len, int prot, int flags, int fd, \
+				    long pos); }
+72	AUE_O_VADVISE	MSTD	{ int ovadvise(int anom); } vadvise ovadvise_args int
+73	AUE_MUNMAP	MSTD	{ int munmap(void *addr, size_t len); }
+74	AUE_MPROTECT	MSTD	{ int mprotect(const void *addr, size_t len, int prot); }
+75	AUE_MADVISE	MSTD	{ int madvise(void *addr, size_t len, int behav); }
+76	AUE_NULL	OBSOL	vhangup
+77	AUE_NULL	OBSOL	vlimit
+78	AUE_MINCORE	MSTD	{ int mincore(const void *addr, size_t len, char *vec); }
+79	AUE_GETGROUPS	MSTD	{ int getgroups(u_int gidsetsize, gid_t *gidset); }
+80	AUE_SETGROUPS	MSTD	{ int setgroups(u_int gidsetsize, gid_t *gidset); }
+81	AUE_GETPGRP	MSTD	{ int getpgrp(void); }
+82	AUE_SETPGRP	MSTD	{ int setpgid(int pid, int pgid); }
+83	AUE_SETITIMER	MSTD	{ int setitimer(u_int which, struct itimerval *itv, \
+		    struct itimerval *oitv); }
+84	AUE_O_WAIT	MCOMPAT	{ int wait(void); }
+85	AUE_SWAPON	MSTD	{ int swapon(char *name); }
+86	AUE_GETITIMER	MSTD	{ int getitimer(u_int which, struct itimerval *itv); }
+87	AUE_O_GETHOSTNAME	MCOMPAT	{ int gethostname(char *hostname, u_int len); } \
+			gethostname gethostname_args int
+88	AUE_O_SETHOSTNAME	MCOMPAT	{ int sethostname(char *hostname, u_int len); } \
+		        sethostname sethostname_args int
+89	AUE_GETDTABLESIZE	MSTD	{ int getdtablesize(void); }
+90	AUE_DUP2	MSTD	{ int dup2(u_int from, u_int to); }
+91	AUE_NULL	UNIMPL	getdopt
+92	AUE_FCNTL	MSTD	{ int fcntl(int fd, int cmd, long arg); }
 ; XXX should be	{ int fcntl(int fd, int cmd, ...); }
 ; but we're not ready for varargs.
-93	MSTD	{ int select(int nd, fd_set *in, fd_set *ou, \
-		    fd_set *ex, struct timeval *tv); } AUE_SELECT
-94	UNIMPL	setdopt
-95	STD	{ int fsync(int fd); } AUE_FSYNC
-96	MSTD	{ int setpriority(int which, int who, int prio); } \
-			AUE_SETPRIORITY
-97	MSTD	{ int socket(int domain, int type, int protocol); } AUE_SOCKET
-98	MSTD	{ int connect(int s, caddr_t name, int namelen); } AUE_CONNECT
-99	MCPT_NOA { int accept(int s, caddr_t name, int *anamelen); } \
-			AUE_ACCEPT accept accept_args int
-100	MSTD	{ int getpriority(int which, int who); } AUE_GETPRIORITY
-101	MCOMPAT	{ int send(int s, caddr_t buf, int len, int flags); } AUE_O_SEND
-102	MCOMPAT	{ int recv(int s, caddr_t buf, int len, int flags); } AUE_O_RECV
-103	MCOMPAT	{ int sigreturn(struct osigcontext *sigcntxp); } AUE_SIGRETURN
-104	MSTD	{ int bind(int s, caddr_t name, int namelen); } AUE_BIND
-105	MSTD	{ int setsockopt(int s, int level, int name, caddr_t val, \
-		    int valsize); } AUE_SETSOCKOPT
-106	MSTD	{ int listen(int s, int backlog); } AUE_LISTEN
-107	OBSOL	vtimes
-108	MCOMPAT	{ int sigvec(int signum, struct sigvec *nsv, \
-		    struct sigvec *osv); } AUE_O_SIGVEC
-109	MCOMPAT	{ int sigblock(int mask); } AUE_O_SIGBLOCK
-110	MCOMPAT	{ int sigsetmask(int mask); } AUE_O_SIGSETMASK
-111	MCOMPAT	{ int sigsuspend(osigset_t mask); } AUE_SIGSUSPEND
+93	AUE_SELECT	MSTD	{ int select(int nd, fd_set *in, fd_set *ou, \
+		    fd_set *ex, struct timeval *tv); }
+94	AUE_NULL	UNIMPL	setdopt
+95	AUE_FSYNC	STD	{ int fsync(int fd); }
+96	AUE_SETPRIORITY	MSTD	{ int setpriority(int which, int who, int prio); }
+97	AUE_SOCKET	MSTD	{ int socket(int domain, int type, int protocol); }
+98	AUE_CONNECT	MSTD	{ int connect(int s, caddr_t name, int namelen); }
+99	AUE_ACCEPT	MCPT_NOA { int accept(int s, caddr_t name, int *anamelen); } \
+				    accept accept_args int
+100	AUE_GETPRIORITY	MSTD	{ int getpriority(int which, int who); }
+101	AUE_O_SEND	MCOMPAT	{ int send(int s, caddr_t buf, int len, int flags); }
+102	AUE_O_RECV	MCOMPAT	{ int recv(int s, caddr_t buf, int len, int flags); }
+103	AUE_SIGRETURN	MCOMPAT	{ int sigreturn(struct osigcontext *sigcntxp); }
+104	AUE_BIND	MSTD	{ int bind(int s, caddr_t name, int namelen); }
+105	AUE_SETSOCKOPT	MSTD	{ int setsockopt(int s, int level, int name, caddr_t val, \
+		    int valsize); }
+106	AUE_LISTEN	MSTD	{ int listen(int s, int backlog); }
+107	AUE_NULL	OBSOL	vtimes
+108	AUE_O_SIGVEC	MCOMPAT	{ int sigvec(int signum, struct sigvec *nsv, \
+		    struct sigvec *osv); }
+109	AUE_O_SIGBLOCK	MCOMPAT	{ int sigblock(int mask); }
+110	AUE_O_SIGSETMASK	MCOMPAT	{ int sigsetmask(int mask); }
+111	AUE_SIGSUSPEND	MCOMPAT	{ int sigsuspend(osigset_t mask); }
 ; XXX note nonstandard (bogus) calling convention - the libc stub passes
 ; us the mask, not a pointer to it.
-112	MCOMPAT	{ int sigstack(struct sigstack *nss, struct sigstack *oss); } \
-			AUE_O_SIGSTACK
-113	MCOMPAT	{ int recvmsg(int s, struct omsghdr *msg, int flags); } \
-			AUE_O_RECVMSG
-114	MCOMPAT	{ int sendmsg(int s, caddr_t msg, int flags); } AUE_O_SENDMSG
-115	OBSOL	vtrace
-116	MSTD	{ int gettimeofday(struct timeval *tp, \
-				   struct timezone *tzp); } AUE_GETTIMEOFDAY
-117	MSTD	{ int getrusage(int who, struct rusage *rusage); } \
-			AUE_GETRUSAGE
-118	MSTD	{ int getsockopt(int s, int level, int name, caddr_t val, \
-		    int *avalsize); } AUE_GTSOCKOPT
-119	UNIMPL	resuba (BSD/OS 2.x)
-120	MSTD	{ int readv(int fd, struct iovec *iovp, u_int iovcnt); } \
-			AUE_READV
-121	MSTD	{ int writev(int fd, struct iovec *iovp, u_int iovcnt); } \
-			AUE_WRITEV
-122	MSTD	{ int settimeofday(struct timeval *tv, \
-				   struct timezone *tzp); } AUE_SETTIMEOFDAY
-123	STD	{ int fchown(int fd, int uid, int gid); } AUE_FCHOWN
-124	STD	{ int fchmod(int fd, int mode); } AUE_FCHMOD
-125	MCPT_NOA { int recvfrom(int s, caddr_t buf, size_t len, int flags, \
-		    caddr_t from, int *fromlenaddr); } AUE_RECVFROM \
-		    recvfrom recvfrom_args int
-126	MSTD	{ int setreuid(int ruid, int euid); } AUE_O_SETREUID
-127	MSTD	{ int setregid(int rgid, int egid); } AUE_O_SETREGID
-128	STD	{ int rename(char *from, char *to); } AUE_RENAME
-129	COMPAT	{ int truncate(char *path, long length); } AUE_O_TRUNCATE
-130	COMPAT	{ int ftruncate(int fd, long length); } AUE_O_FTRUNCATE
-131	MSTD	{ int flock(int fd, int how); } AUE_FLOCK
-132	STD	{ int mkfifo(char *path, int mode); } AUE_MKFIFO
-133	MSTD	{ int sendto(int s, caddr_t buf, size_t len, int flags, \
-		    caddr_t to, int tolen); } AUE_SENDTO
-134	MSTD	{ int shutdown(int s, int how); } AUE_SHUTDOWN
-135	MSTD	{ int socketpair(int domain, int type, int protocol, \
-		    int *rsv); } AUE_SOCKETPAIR
-136	STD	{ int mkdir(char *path, int mode); } AUE_MKDIR
-137	STD	{ int rmdir(char *path); } AUE_RMDIR
-138	STD	{ int utimes(char *path, struct timeval *tptr); } AUE_UTIMES
-139	OBSOL	4.2 sigreturn
-140	MSTD	{ int adjtime(struct timeval *delta, \
-		    struct timeval *olddelta); } AUE_ADJTIME
-141	MCOMPAT	{ int getpeername(int fdes, caddr_t asa, int *alen); } \
-			AUE_O_GETPEERNAME
-142	MCOMPAT	{ long gethostid(void); } AUE_O_GETHOSTID
-143	MCOMPAT	{ int sethostid(long hostid); } AUE_O_SETHOSTID
-144	MCOMPAT	{ int getrlimit(u_int which, struct orlimit *rlp); } \
-			AUE_O_GETRLIMIT
-145	MCOMPAT	{ int setrlimit(u_int which, struct orlimit *rlp); } \
-			AUE_O_SETRLIMIT
-146	MCOMPAT	{ int killpg(int pgid, int signum); } AUE_O_KILLPG
-147	MSTD	{ int setsid(void); } AUE_SETSID
-148	STD	{ int quotactl(char *path, int cmd, int uid, caddr_t arg); } \
-			AUE_QUOTACTL
-149	MCOMPAT	{ int quota(void); } AUE_O_QUOTA
-150	MCPT_NOA { int getsockname(int fdec, caddr_t asa, int *alen); }\
-		     AUE_GETSOCKNAME getsockname getsockname_args int
+112	AUE_O_SIGSTACK	MCOMPAT	{ int sigstack(struct sigstack *nss, struct sigstack *oss); }
+113	AUE_O_RECVMSG	MCOMPAT	{ int recvmsg(int s, struct omsghdr *msg, int flags); }
+114	AUE_O_SENDMSG	MCOMPAT	{ int sendmsg(int s, caddr_t msg, int flags); }
+115	AUE_NULL	OBSOL	vtrace
+116	AUE_GETTIMEOFDAY	MSTD	{ int gettimeofday(struct timeval *tp, \
+				   struct timezone *tzp); }
+117	AUE_GETRUSAGE	MSTD	{ int getrusage(int who, struct rusage *rusage); }
+118	AUE_GTSOCKOPT	MSTD	{ int getsockopt(int s, int level, int name, caddr_t val, \
+		    int *avalsize); }
+119	AUE_NULL	UNIMPL	resuba (BSD/OS 2.x)
+120	AUE_READV	MSTD	{ int readv(int fd, struct iovec *iovp, u_int iovcnt); }
+121	AUE_WRITEV	MSTD	{ int writev(int fd, struct iovec *iovp, u_int iovcnt); }
+122	AUE_SETTIMEOFDAY	MSTD	{ int settimeofday(struct timeval *tv, \
+				   struct timezone *tzp); }
+123	AUE_FCHOWN	STD	{ int fchown(int fd, int uid, int gid); }
+124	AUE_FCHMOD	STD	{ int fchmod(int fd, int mode); }
+125	AUE_RECVFROM	MCPT_NOA { int recvfrom(int s, caddr_t buf, size_t len, int flags, \
+		    caddr_t from, int *fromlenaddr); } recvfrom recvfrom_args int
+126	AUE_O_SETREUID	MSTD	{ int setreuid(int ruid, int euid); }
+127	AUE_O_SETREGID	MSTD	{ int setregid(int rgid, int egid); }
+128	AUE_RENAME	STD	{ int rename(char *from, char *to); }
+129	AUE_O_TRUNCATE	COMPAT	{ int truncate(char *path, long length); }
+130	AUE_O_FTRUNCATE	COMPAT	{ int ftruncate(int fd, long length); }
+131	AUE_FLOCK	MSTD	{ int flock(int fd, int how); }
+132	AUE_MKFIFO	STD	{ int mkfifo(char *path, int mode); }
+133	AUE_SENDTO	MSTD	{ int sendto(int s, caddr_t buf, size_t len, int flags, \
+		    caddr_t to, int tolen); }
+134	AUE_SHUTDOWN	MSTD	{ int shutdown(int s, int how); }
+135	AUE_SOCKETPAIR	MSTD	{ int socketpair(int domain, int type, int protocol, \
+		    int *rsv); }
+136	AUE_MKDIR	STD	{ int mkdir(char *path, int mode); }
+137	AUE_RMDIR	STD	{ int rmdir(char *path); }
+138	AUE_UTIMES	STD	{ int utimes(char *path, struct timeval *tptr); }
+139	AUE_NULL	OBSOL	4.2 sigreturn
+140	AUE_ADJTIME	MSTD	{ int adjtime(struct timeval *delta, \
+		    struct timeval *olddelta); }
+141	AUE_O_GETPEERNAME	MCOMPAT	{ int getpeername(int fdes, caddr_t asa, int *alen); }
+142	AUE_O_GETHOSTID	MCOMPAT	{ long gethostid(void); }
+143	AUE_O_SETHOSTID	MCOMPAT	{ int sethostid(long hostid); }
+144	AUE_O_GETRLIMIT	MCOMPAT	{ int getrlimit(u_int which, struct orlimit *rlp); }
+145	AUE_O_SETRLIMIT	MCOMPAT	{ int setrlimit(u_int which, struct orlimit *rlp); }
+146	AUE_O_KILLPG	MCOMPAT	{ int killpg(int pgid, int signum); }
+147	AUE_SETSID	MSTD	{ int setsid(void); }
+148	AUE_QUOTACTL	STD	{ int quotactl(char *path, int cmd, int uid, caddr_t arg); }
+149	AUE_O_QUOTA	MCOMPAT	{ int quota(void); }
+150	AUE_GETSOCKNAME	MCPT_NOA { int getsockname(int fdec, caddr_t asa, int *alen); }\
+		     getsockname getsockname_args int
 
 ; Syscalls 151-180 inclusive are reserved for vendor-specific
 ; system calls.  (This includes various calls added for compatibity
 ; with other Unix variants.)
 ; Some of these calls are now supported by BSD...
-151	UNIMPL	sem_lock (BSD/OS 2.x)
-152	UNIMPL	sem_wakeup (BSD/OS 2.x)
-153	UNIMPL	asyncdaemon (BSD/OS 2.x)
-154	UNIMPL	nosys
+151	AUE_NONE	UNIMPL	sem_lock (BSD/OS 2.x)
+152	AUE_NONE	UNIMPL	sem_wakeup (BSD/OS 2.x)
+153	AUE_NONE	UNIMPL	asyncdaemon (BSD/OS 2.x)
+154	AUE_NONE	UNIMPL	nosys
 ; 155 is initialized by the NFS code, if present.
-155	MNOIMPL	{ int nfssvc(int flag, caddr_t argp); } AUE_NFSSVC
-156	COMPAT	{ int getdirentries(int fd, char *buf, u_int count, \
-		    long *basep); } AUE_O_GETDIRENTRIES
-157	COMPAT4	{ int statfs(char *path, struct ostatfs *buf); } AUE_STATFS
-158	COMPAT4	{ int fstatfs(int fd, struct ostatfs *buf); } AUE_FSTATFS
-159	UNIMPL	nosys
-160	STD	{ int lgetfh(char *fname, struct fhandle *fhp); } AUE_NULL
-161	STD	{ int getfh(char *fname, struct fhandle *fhp); } AUE_GETFH
-162	MSTD	{ int getdomainname(char *domainname, int len); } \
-			AUE_O_GETDOMAINNAME
-163	MSTD	{ int setdomainname(char *domainname, int len); } \
-			AUE_O_SETDOMAINNAME
-164	MSTD	{ int uname(struct utsname *name); } AUE_NULL
-165	MSTD	{ int sysarch(int op, char *parms); } AUE_NULL
-166	MSTD	{ int rtprio(int function, pid_t pid, struct rtprio *rtp); } \
-			AUE_NULL
-167	UNIMPL	nosys
-168	UNIMPL	nosys
+155	AUE_NFSSVC	MNOIMPL	{ int nfssvc(int flag, caddr_t argp); }
+156	AUE_O_GETDIRENTRIES	COMPAT	{ int getdirentries(int fd, char *buf, u_int count, \
+		    long *basep); }
+157	AUE_STATFS	COMPAT4	{ int statfs(char *path, struct ostatfs *buf); }
+158	AUE_FSTATFS	COMPAT4	{ int fstatfs(int fd, struct ostatfs *buf); }
+159	AUE_NULL	UNIMPL	nosys
+160	AUE_NULL	STD	{ int lgetfh(char *fname, struct fhandle *fhp); }
+161	AUE_GETFH	STD	{ int getfh(char *fname, struct fhandle *fhp); }
+162	AUE_O_GETDOMAINNAME	MSTD	{ int getdomainname(char *domainname, int len); }
+163	AUE_O_SETDOMAINNAME	MSTD	{ int setdomainname(char *domainname, int len); }
+164	AUE_NULL	MSTD	{ int uname(struct utsname *name); }
+165	AUE_NULL	MSTD	{ int sysarch(int op, char *parms); }
+166	AUE_NULL	MSTD	{ int rtprio(int function, pid_t pid, struct rtprio *rtp); }
+167	AUE_NULL	UNIMPL	nosys
+168	AUE_NULL	UNIMPL	nosys
 ; 169 is initialized by the SYSVSEM code if present or loaded
-169	MNOSTD	{ int semsys(int which, int a2, int a3, int a4, int a5); } \
-		AUE_SEMSYS
+169	AUE_SEMSYS	MNOSTD	{ int semsys(int which, int a2, int a3, int a4, int a5); }
 ; 169 is initialized by the SYSVMSG code if present or loaded
 ; XXX should be	{ int semsys(int which, ...); }
-170	MNOSTD	{ int msgsys(int which, int a2, int a3, int a4, int a5, \
-		    int a6); } AUE_MSGSYS
+170	AUE_MSGSYS	MNOSTD	{ int msgsys(int which, int a2, int a3, int a4, int a5, \
+		    int a6); }
 ; 169 is initialized by the SYSVSHM code if present or loaded
 ; XXX should be	{ int msgsys(int which, ...); }
-171	MNOSTD	{ int shmsys(int which, int a2, int a3, int a4); } AUE_SHMSYS
+171	AUE_SHMSYS	MNOSTD	{ int shmsys(int which, int a2, int a3, int a4); }
 ; XXX should be	{ int shmsys(int which, ...); }
-172	UNIMPL	nosys
-173	MSTD	{ ssize_t pread(int fd, void *buf, size_t nbyte, \
-		    int pad, off_t offset); } AUE_PREAD
-174	MSTD	{ ssize_t pwrite(int fd, const void *buf, \
-		    size_t nbyte, int pad, off_t offset); } AUE_PWRITE
-175	UNIMPL	nosys
-176	MSTD	{ int ntp_adjtime(struct timex *tp); } AUE_ADJTIME
-177	UNIMPL	sfork (BSD/OS 2.x)
-178	UNIMPL	getdescriptor (BSD/OS 2.x)
-179	UNIMPL	setdescriptor (BSD/OS 2.x)
-180	UNIMPL	nosys
+172	AUE_NULL	UNIMPL	nosys
+173	AUE_PREAD	MSTD	{ ssize_t pread(int fd, void *buf, size_t nbyte, \
+		    int pad, off_t offset); }
+174	AUE_PWRITE	MSTD	{ ssize_t pwrite(int fd, const void *buf, \
+		    size_t nbyte, int pad, off_t offset); }
+175	AUE_NULL	UNIMPL	nosys
+176	AUE_ADJTIME	MSTD	{ int ntp_adjtime(struct timex *tp); }
+177	AUE_NULL	UNIMPL	sfork (BSD/OS 2.x)
+178	AUE_NULL	UNIMPL	getdescriptor (BSD/OS 2.x)
+179	AUE_NULL	UNIMPL	setdescriptor (BSD/OS 2.x)
+180	AUE_NULL	UNIMPL	nosys
 
 ; Syscalls 181-199 are used by/reserved for BSD
-181	MSTD	{ int setgid(gid_t gid); } AUE_SETGID
-182	MSTD	{ int setegid(gid_t egid); } AUE_SETEGID
-183	MSTD	{ int seteuid(uid_t euid); } AUE_SETEUID
-184	UNIMPL	lfs_bmapv
-185	UNIMPL	lfs_markv
-186	UNIMPL	lfs_segclean
-187	UNIMPL	lfs_segwait
-188	STD	{ int stat(char *path, struct stat *ub); } AUE_STAT
-189	MSTD	{ int fstat(int fd, struct stat *sb); } AUE_FSTAT
-190	STD	{ int lstat(char *path, struct stat *ub); } AUE_LSTAT
-191	STD	{ int pathconf(char *path, int name); } AUE_PATHCONF
-192	MSTD	{ int fpathconf(int fd, int name); } AUE_FPATHCONF
-193	UNIMPL	nosys
-194	MSTD	{ int getrlimit(u_int which, struct rlimit *rlp); } \
-			AUE_GETRLIMIT getrlimit __getrlimit_args int
-195	MSTD	{ int setrlimit(u_int which, struct rlimit *rlp); } \
-			AUE_SETRLIMIT setrlimit __setrlimit_args int
-196	STD	{ int getdirentries(int fd, char *buf, u_int count, \
-		    long *basep); } AUE_GETDIRENTRIES
-197	MSTD	{ caddr_t mmap(caddr_t addr, size_t len, int prot, \
-		    int flags, int fd, int pad, off_t pos); } AUE_MMAP
-198	STD	{ int nosys(void); } AUE_NULL __syscall __syscall_args int
-199	STD	{ off_t lseek(int fd, int pad, off_t offset, int whence); } \
-			AUE_LSEEK 
-200	STD	{ int truncate(char *path, int pad, off_t length); } \
-			AUE_TRUNCATE
-201	STD	{ int ftruncate(int fd, int pad, off_t length); } \
-			AUE_FTRUNCATE
-202	MSTD	{ int __sysctl(int *name, u_int namelen, void *old, \
+181	AUE_SETGID	MSTD	{ int setgid(gid_t gid); }
+182	AUE_SETEGID	MSTD	{ int setegid(gid_t egid); }
+183	AUE_SETEUID	MSTD	{ int seteuid(uid_t euid); }
+184	AUE_NULL	UNIMPL	lfs_bmapv
+185	AUE_NULL	UNIMPL	lfs_markv
+186	AUE_NULL	UNIMPL	lfs_segclean
+187	AUE_NULL	UNIMPL	lfs_segwait
+188	AUE_STAT	STD	{ int stat(char *path, struct stat *ub); }
+189	AUE_FSTAT	MSTD	{ int fstat(int fd, struct stat *sb); }
+190	AUE_LSTAT	STD	{ int lstat(char *path, struct stat *ub); }
+191	AUE_PATHCONF	STD	{ int pathconf(char *path, int name); }
+192	AUE_FPATHCONF	MSTD	{ int fpathconf(int fd, int name); }
+193	AUE_NULL	UNIMPL	nosys
+194	AUE_GETRLIMIT	MSTD	{ int getrlimit(u_int which, struct rlimit *rlp); } \
+			getrlimit __getrlimit_args int
+195	AUE_SETRLIMIT	MSTD	{ int setrlimit(u_int which, struct rlimit *rlp); } \
+			setrlimit __setrlimit_args int
+196	AUE_GETDIRENTRIES	STD	{ int getdirentries(int fd, char *buf, u_int count, \
+		    long *basep); }
+197	AUE_MMAP	MSTD	{ caddr_t mmap(caddr_t addr, size_t len, int prot, \
+		    int flags, int fd, int pad, off_t pos); }
+198	AUE_NULL	STD	{ int nosys(void); } __syscall __syscall_args int
+199	AUE_LSEEK	STD	{ off_t lseek(int fd, int pad, off_t offset, int whence); }
+200	AUE_TRUNCATE	STD	{ int truncate(char *path, int pad, off_t length); }
+201	AUE_FTRUNCATE	STD	{ int ftruncate(int fd, int pad, off_t length); }
+202	AUE_SYSCTL	MSTD	{ int __sysctl(int *name, u_int namelen, void *old, \
 		    size_t *oldlenp, void *new, size_t newlen); } \
-			AUE_SYSCTL __sysctl sysctl_args int
-203	MSTD	{ int mlock(const void *addr, size_t len); } AUE_MLOCK
-204	MSTD	{ int munlock(const void *addr, size_t len); } AUE_MUNLOCK
-205	STD	{ int undelete(char *path); } AUE_UNDELETE
-206	STD	{ int futimes(int fd, struct timeval *tptr); } AUE_FUTIMES
-207	MSTD	{ int getpgid(pid_t pid); } AUE_GETPGID
-208	UNIMPL	newreboot (NetBSD)
-209	MSTD	{ int poll(struct pollfd *fds, u_int nfds, int timeout); } \
-			AUE_POLL
+			__sysctl sysctl_args int
+203	AUE_MLOCK	MSTD	{ int mlock(const void *addr, size_t len); }
+204	AUE_MUNLOCK	MSTD	{ int munlock(const void *addr, size_t len); }
+205	AUE_UNDELETE	STD	{ int undelete(char *path); }
+206	AUE_FUTIMES	STD	{ int futimes(int fd, struct timeval *tptr); }
+207	AUE_GETPGID	MSTD	{ int getpgid(pid_t pid); }
+208	AUE_NULL	UNIMPL	newreboot (NetBSD)
+209	AUE_POLL	MSTD	{ int poll(struct pollfd *fds, u_int nfds, int timeout); }
 
 ;
 ; The following are reserved for loadable syscalls
 ;
-210	NODEF	lkmnosys lkmnosys nosys_args int
-211	NODEF	lkmnosys lkmnosys nosys_args int
-212	NODEF	lkmnosys lkmnosys nosys_args int
-213	NODEF	lkmnosys lkmnosys nosys_args int
-214	NODEF	lkmnosys lkmnosys nosys_args int
-215	NODEF	lkmnosys lkmnosys nosys_args int
-216	NODEF	lkmnosys lkmnosys nosys_args int
-217	NODEF	lkmnosys lkmnosys nosys_args int
-218	NODEF	lkmnosys lkmnosys nosys_args int
-219	NODEF	lkmnosys lkmnosys nosys_args int
+210	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
+211	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
+212	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
+213	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
+214	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
+215	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
+216	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
+217	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
+218	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
+219	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
 
 ;
 ; The following were introduced with NetBSD/4.4Lite-2
 ; They are initialized by thier respective modules/sysinits
-220	MNOSTD	{ int __semctl(int semid, int semnum, int cmd, \
-		    union semun *arg); } AUE_SEMCTL
-221	MNOSTD	{ int semget(key_t key, int nsems, int semflg); } \
-			AUE_SEMGET
-222	MNOSTD	{ int semop(int semid, struct sembuf *sops, size_t nsops); } \
-			AUE_SEMOP
-223	UNIMPL	semconfig
-224	MNOSTD	{ int msgctl(int msqid, int cmd, struct msqid_ds *buf); } \
-			AUE_MSGCTL
-225	MNOSTD	{ int msgget(key_t key, int msgflg); } AUE_MSGGET
-226	MNOSTD	{ int msgsnd(int msqid, const void *msgp, size_t msgsz, \
-		    int msgflg); } AUE_MSGSND
-227	MNOSTD	{ int msgrcv(int msqid, void *msgp, size_t msgsz, \
-		    long msgtyp, int msgflg); } AUE_MSGRCV
-228	MNOSTD	{ int shmat(int shmid, const void *shmaddr, int shmflg); } \
-			AUE_SHMAT
-229	MNOSTD	{ int shmctl(int shmid, int cmd, struct shmid_ds *buf); } \
-			AUE_SHMCTL
-230	MNOSTD	{ int shmdt(const void *shmaddr); } AUE_SHMDT
-231	MNOSTD	{ int shmget(key_t key, size_t size, int shmflg); } AUE_SHMGET
+220	AUE_SEMCTL	MNOSTD	{ int __semctl(int semid, int semnum, int cmd, \
+		    union semun *arg); }
+221	AUE_SEMGET	MNOSTD	{ int semget(key_t key, int nsems, int semflg); }
+222	AUE_SEMOP	MNOSTD	{ int semop(int semid, struct sembuf *sops, size_t nsops); }
+223	AUE_NULL	UNIMPL	semconfig
+224	AUE_MSGCTL	MNOSTD	{ int msgctl(int msqid, int cmd, struct msqid_ds *buf); }
+225	AUE_MSGGET	MNOSTD	{ int msgget(key_t key, int msgflg); }
+226	AUE_MSGSND	MNOSTD	{ int msgsnd(int msqid, const void *msgp, size_t msgsz, \
+		    int msgflg); }
+227	AUE_MSGRCV	MNOSTD	{ int msgrcv(int msqid, void *msgp, size_t msgsz, \
+		    long msgtyp, int msgflg); }
+228	AUE_SHMAT	MNOSTD	{ int shmat(int shmid, const void *shmaddr, int shmflg); }
+229	AUE_SHMCTL	MNOSTD	{ int shmctl(int shmid, int cmd, struct shmid_ds *buf); }
+230	AUE_SHMDT	MNOSTD	{ int shmdt(const void *shmaddr); }
+231	AUE_SHMGET	MNOSTD	{ int shmget(key_t key, size_t size, int shmflg); }
 
-232	MSTD	{ int clock_gettime(clockid_t clock_id, \
-		    struct timespec *tp); } AUE_NULL
-233	MSTD	{ int clock_settime(clockid_t clock_id, \
-		    const struct timespec *tp); } AUE_NULL
-234	MSTD	{ int clock_getres(clockid_t clock_id, \
-		    struct timespec *tp); } AUE_NULL
-235	UNIMPL	timer_create
-236	UNIMPL	timer_delete
-237	UNIMPL	timer_settime
-238	UNIMPL	timer_gettime
-239	UNIMPL	timer_getoverrun
-240	MSTD	{ int nanosleep(const struct timespec *rqtp, \
-		    struct timespec *rmtp); } AUE_NULL
-241	UNIMPL	nosys
-242	UNIMPL	nosys
-243	UNIMPL	nosys
-244	UNIMPL	nosys
-245	UNIMPL	nosys
-246	UNIMPL	nosys
-247	UNIMPL	nosys
-248	UNIMPL	nosys
-249	UNIMPL	nosys
+232	AUE_NULL	MSTD	{ int clock_gettime(clockid_t clock_id, \
+		    struct timespec *tp); }
+233	AUE_NULL	MSTD	{ int clock_settime(clockid_t clock_id, \
+		    const struct timespec *tp); }
+234	AUE_NULL	MSTD	{ int clock_getres(clockid_t clock_id, \
+		    struct timespec *tp); }
+235	AUE_NULL	UNIMPL	timer_create
+236	AUE_NULL	UNIMPL	timer_delete
+237	AUE_NULL	UNIMPL	timer_settime
+238	AUE_NULL	UNIMPL	timer_gettime
+239	AUE_NULL	UNIMPL	timer_getoverrun
+240	AUE_NULL	MSTD	{ int nanosleep(const struct timespec *rqtp, \
+		    struct timespec *rmtp); }
+241	AUE_NULL	UNIMPL	nosys
+242	AUE_NULL	UNIMPL	nosys
+243	AUE_NULL	UNIMPL	nosys
+244	AUE_NULL	UNIMPL	nosys
+245	AUE_NULL	UNIMPL	nosys
+246	AUE_NULL	UNIMPL	nosys
+247	AUE_NULL	UNIMPL	nosys
+248	AUE_NULL	UNIMPL	nosys
+249	AUE_NULL	UNIMPL	nosys
 ; syscall numbers initially used in OpenBSD
-250	MSTD	{ int minherit(void *addr, size_t len, int inherit); } \
-			AUE_MINHERIT
-251	MSTD	{ int rfork(int flags); } AUE_RFORK
-252	MSTD	{ int openbsd_poll(struct pollfd *fds, u_int nfds, \
-		    int timeout); } AUE_NULL
-253	MSTD	{ int issetugid(void); } AUE_ISSETUGID
-254	STD	{ int lchown(char *path, int uid, int gid); } AUE_LCHOWN
-255	UNIMPL	nosys
-256	UNIMPL	nosys
-257	UNIMPL	nosys
-258	UNIMPL	nosys
-259	UNIMPL	nosys
-260	UNIMPL	nosys
-261	UNIMPL	nosys
-262	UNIMPL	nosys
-263	UNIMPL	nosys
-264	UNIMPL	nosys
-265	UNIMPL	nosys
-266	UNIMPL	nosys
-267	UNIMPL	nosys
-268	UNIMPL	nosys
-269	UNIMPL	nosys
-270	UNIMPL	nosys
-271	UNIMPL	nosys
-272	STD	{ int getdents(int fd, char *buf, size_t count); } \
-		AUE_O_GETDENTS
-273	UNIMPL	nosys
-274	STD	{ int lchmod(char *path, mode_t mode); } AUE_LCHMOD
-275	NOPROTO { int lchown(char *path, uid_t uid, gid_t gid); } \
-		    AUE_LCHOWN netbsd_lchown lchown_args int
-276	STD	{ int lutimes(char *path, struct timeval *tptr); } AUE_LUTIMES
-277	MNOPROTO { int msync(void *addr, size_t len, int flags); } \
-		    AUE_MSYNC netbsd_msync msync_args int
-278	STD	{ int nstat(char *path, struct nstat *ub); } AUE_NULL
-279	MSTD	{ int nfstat(int fd, struct nstat *sb); } AUE_NULL
-280	STD	{ int nlstat(char *path, struct nstat *ub); } AUE_NULL
-281	UNIMPL	nosys
-282	UNIMPL	nosys

>>> TRUNCATED FOR MAIL (1000 lines) <<<


More information about the p4-projects mailing list