diff options
author | David Greenman <dg@FreeBSD.org> | 1994-08-19 11:45:29 +0000 |
---|---|---|
committer | David Greenman <dg@FreeBSD.org> | 1994-08-19 11:45:29 +0000 |
commit | 3edb235c0929b48b737246abf5190df9fe034662 (patch) | |
tree | 77fe00f03c2c31075750a0de7613ee739b649010 /sys/kern/makesyscalls.sh | |
parent | 6605d9f3dbf3138698d30151e0ca21f0417cc657 (diff) | |
download | src-3edb235c0929b48b737246abf5190df9fe034662.tar.gz src-3edb235c0929b48b737246abf5190df9fe034662.zip |
Terry Lambert's loadable kernel module support w/improvements from the
NetBSD group.
Notes
Notes:
svn path=/head/; revision=2124
Diffstat (limited to 'sys/kern/makesyscalls.sh')
-rw-r--r-- | sys/kern/makesyscalls.sh | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/kern/makesyscalls.sh b/sys/kern/makesyscalls.sh index bafd07eb6e4c..fcd0584af08e 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$ +# $Id: makesyscalls.sh,v 1.2 1994/08/02 07:42:24 davidg Exp $ set -e @@ -101,14 +101,15 @@ awk < $1 " if (NF < 5) $5 = $4 } - $2 == "STD" { + $2 == "STD" || $2 == "NODEF" { printf("int\t%s();\n", $4) > sysdcl printf("\t{ %d, %s },\t\t\t/* %d = %s */\n", \ $3, $4, syscall, $5) > sysent printf("\t\"%s\",\t\t\t/* %d = %s */\n", \ $5, syscall, $5) > sysnames - printf("#define\tSYS_%s\t%d\n", \ - $5, syscall) > syshdr + if ($2 == "STD") + printf("#define\tSYS_%s\t%d\n", \ + $5, syscall) > syshdr syscall++ next } |