diff options
author | Marcel Moolenaar <marcel@FreeBSD.org> | 2001-09-28 01:21:57 +0000 |
---|---|---|
committer | Marcel Moolenaar <marcel@FreeBSD.org> | 2001-09-28 01:21:57 +0000 |
commit | 4166877345a61ef7447795aeb7f8d077aeb486fd (patch) | |
tree | a57cedfbbf5ae35d1727948f955b355a9e4f9034 /sys/kern/makesyscalls.sh | |
parent | ac23cf236b6306e72128a91879f3f94c61f29a48 (diff) | |
download | src-4166877345a61ef7447795aeb7f8d077aeb486fd.tar.gz src-4166877345a61ef7447795aeb7f8d077aeb486fd.zip |
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.
Notes
Notes:
svn path=/head/; revision=84068
Diffstat (limited to 'sys/kern/makesyscalls.sh')
-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 5134275774d3..63b701b24368 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 |