summaryrefslogtreecommitdiffstats
path: root/sys/kern/makesyscalls.sh
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2001-09-28 01:21:57 +0000
committermarcel <marcel@FreeBSD.org>2001-09-28 01:21:57 +0000
commit2fe28e569202f37670e31d157d5d1c42cbe1ae19 (patch)
treea57cedfbbf5ae35d1727948f955b355a9e4f9034 /sys/kern/makesyscalls.sh
parent1fa4448072f5840ed9b482fa9cd618143afbbd0b (diff)
downloadFreeBSD-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/kern/makesyscalls.sh')
-rw-r--r--sys/kern/makesyscalls.sh3
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
OpenPOWER on IntegriCloud