diff options
author | ats <ats@FreeBSD.org> | 1994-11-06 21:57:16 +0000 |
---|---|---|
committer | ats <ats@FreeBSD.org> | 1994-11-06 21:57:16 +0000 |
commit | deda30a195e362043d7430be855dfa6b24315e2e (patch) | |
tree | 09189962c67df6dd097f142bb00cbdaf1488d873 /sys/kern/makesyscalls.sh | |
parent | d224d426725b187999158b4b1ed3ff14717ff2d3 (diff) | |
download | FreeBSD-src-deda30a195e362043d7430be855dfa6b24315e2e.zip FreeBSD-src-deda30a195e362043d7430be855dfa6b24315e2e.tar.gz |
Put a small hack into a large hack named makeyscall.sh. Generate only
one lkmnosys() entry in init_sysent.c.
Diffstat (limited to 'sys/kern/makesyscalls.sh')
-rw-r--r-- | sys/kern/makesyscalls.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/kern/makesyscalls.sh b/sys/kern/makesyscalls.sh index 441479b..50de7d2 100644 --- a/sys/kern/makesyscalls.sh +++ b/sys/kern/makesyscalls.sh @@ -1,6 +1,6 @@ #! /bin/sh - # @(#)makesyscalls.sh 8.1 (Berkeley) 6/10/93 -# $Id: makesyscalls.sh,v 1.8 1994/09/26 03:27:22 phk Exp $ +# $Id: makesyscalls.sh,v 1.9 1994/10/09 22:07:37 sos Exp $ set -e @@ -113,10 +113,13 @@ awk < $1 " printf("HIDE_%s(%s)\n", $4, $5) > syshide } $2 == "STD" || $2 == "NODEF" { - if (!nosys || $5 != "nosys") + if (( !nosys || $5 != "nosys" ) && ( !lkmnosys || + $5 != "lkmnosys")) printf("int\t%s();\n", $5) > sysdcl if ($5 == "nosys") nosys = 1 + if ($5 == "lkmnosys") + lkmnosys = 1 printf("\t{ %d, %s },\t\t\t/* %d = %s */\n", \ $3, $5, syscall, $6) > sysent printf("\t\"%s\",\t\t\t/* %d = %s */\n", \ |