From 2fe28e569202f37670e31d157d5d1c42cbe1ae19 Mon Sep 17 00:00:00 2001 From: marcel Date: Fri, 28 Sep 2001 01:21:57 +0000 Subject: Make the NODEF type usable. A syscall of type NODEF will only have its entry in the syscall table added. Nothing else is done. This differs from type NOPROTO in that NOPROTO adds a definition to syscall.h besides adding a sysent. A syscall can now have multiple entries without conflict. Note that the argssize is fixed and depends on the syscall name. --- sys/kern/makesyscalls.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/kern/makesyscalls.sh b/sys/kern/makesyscalls.sh index 5134275..63b701b 100644 --- a/sys/kern/makesyscalls.sh +++ b/sys/kern/makesyscalls.sh @@ -208,6 +208,7 @@ s/\$//g } if ($2 == "NODEF") { funcname=$4 + argssize = "AS(" $4 "_args)" return } if ($f != "{") @@ -320,7 +321,7 @@ s/\$//g argalias) > sysarg } if ($2 != "NOPROTO" && (!nosys || funcname != "nosys") && \ - (!lkmnosys || funcname != "lkmnosys")) { + (!lkmnosys || funcname != "lkmnosys") && $2 != "NODEF") { printf("%s\t%s __P((struct thread *, struct %s *))", rettype, funcname, argalias) > sysdcl printf(";\n") > sysdcl -- cgit v1.1