diff options
author | marcel <marcel@FreeBSD.org> | 2001-09-28 01:21:57 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2001-09-28 01:21:57 +0000 |
commit | 2fe28e569202f37670e31d157d5d1c42cbe1ae19 (patch) | |
tree | a57cedfbbf5ae35d1727948f955b355a9e4f9034 /sys | |
parent | 1fa4448072f5840ed9b482fa9cd618143afbbd0b (diff) | |
download | FreeBSD-src-2fe28e569202f37670e31d157d5d1c42cbe1ae19.zip FreeBSD-src-2fe28e569202f37670e31d157d5d1c42cbe1ae19.tar.gz |
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.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/makesyscalls.sh | 3 |
1 files changed, 2 insertions, 1 deletions
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 |