summaryrefslogtreecommitdiffstats
path: root/sys/kern/makesyscalls.sh
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1997-01-16 15:58:32 +0000
committerbde <bde@FreeBSD.org>1997-01-16 15:58:32 +0000
commit68c982254bc29d958b2c8e79f4783277bfffce2a (patch)
treef6c779b00c1bee18b1b63675e29ac0767fccdf1d /sys/kern/makesyscalls.sh
parent21695ece5ead7b2fd8511ac5906366cf3a3364a0 (diff)
downloadFreeBSD-src-68c982254bc29d958b2c8e79f4783277bfffce2a.zip
FreeBSD-src-68c982254bc29d958b2c8e79f4783277bfffce2a.tar.gz
Reduced #include spam in <sys/sysproto.h> and fixed things that depended
on it. makesyscalls.sh: This parsed $Id$. Fixed(?) to parse $FreeBSD$. The output is wrong when the id is not expanded in the source file. syscalls.master: Fixed declaration of sigsuspend(). There are still some bogons and spam involving sigset_t. Use `struct foo *' instead of the equivalent `foo_t *' for some nfs and lfs syscalls so that <sys/sysproto.h> doesn't depend on <sys/mount.h>.
Diffstat (limited to 'sys/kern/makesyscalls.sh')
-rw-r--r--sys/kern/makesyscalls.sh6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/kern/makesyscalls.sh b/sys/kern/makesyscalls.sh
index bf3be26..a7ded79 100644
--- a/sys/kern/makesyscalls.sh
+++ b/sys/kern/makesyscalls.sh
@@ -87,7 +87,7 @@ s/\$//g
printf " * DO NOT EDIT-- this file is automatically generated.\n" > syshide
}
NR == 1 {
- gsub("[$]Id: ", "", $0)
+ gsub("[$]FreeBSD: ", "", $0)
gsub(" [$]", "", $0)
printf " * created from%s\n */\n\n", $0 > sysinc
@@ -103,9 +103,7 @@ s/\$//g
printf " * created from%s\n */\n\n", $0 > sysarg
printf("#ifndef %s\n", sysproto_h) > sysarg
printf("#define\t%s\n\n", sysproto_h) > sysarg
- printf "#include <sys/types.h>\n", $0 > sysarg
- printf "#include <sys/param.h>\n", $0 > sysarg
- printf "#include <sys/mount.h>\n\n", $0 > sysarg
+ printf "#include <sys/signal.h>\n\n", $0 > sysarg
printf " * created from%s\n */\n\n", $0 > sysnames
printf "char *%s[] = {\n", namesname > sysnames
OpenPOWER on IntegriCloud