1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00

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.
This commit is contained in:
Marcel Moolenaar 2001-09-28 01:21:57 +00:00
parent ac23cf236b
commit 4166877345
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=84068

View File

@ -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