diff options
author | bde <bde@FreeBSD.org> | 1998-02-03 17:39:13 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1998-02-03 17:39:13 +0000 |
commit | 8ccf06d1ca0a0ed57cd3863cb9caa2a700e85e15 (patch) | |
tree | fef6185f457e7746f4ab2f4632a7f78f692ed767 | |
parent | 1e193f260047e5316937a8c0cc2ce04a38cca4a1 (diff) | |
download | FreeBSD-src-8ccf06d1ca0a0ed57cd3863cb9caa2a700e85e15.zip FreeBSD-src-8ccf06d1ca0a0ed57cd3863cb9caa2a700e85e15.tar.gz |
Generate a forward declaration of `struct proc' in <sys/sysproto.h>.
Removed extra args to a printf.
Fixed some style inconsistencies (unnecessary parentheses for printf).
awk is not C.
-rw-r--r-- | sys/kern/makesyscalls.sh | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/sys/kern/makesyscalls.sh b/sys/kern/makesyscalls.sh index 9e7d5fe..190cc81 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.28 1997/12/16 17:40:22 eivind Exp $ +# $Id: makesyscalls.sh,v 1.29 1997/12/16 18:51:45 eivind Exp $ set -e @@ -97,16 +97,17 @@ s/\$//g printf "\n#ifdef %s\n", compat > sysent printf "#define compat(n, name) n, (sy_call_t *)__CONCAT(o,name)\n" > sysent - printf("#else\n") > sysent - printf("#define compat(n, name) 0, (sy_call_t *)nosys\n") > sysent - printf("#endif\n\n") > sysent - printf("/* The casts are bogus but will do for now. */\n") > sysent + printf "#else\n" > sysent + printf "#define compat(n, name) 0, (sy_call_t *)nosys\n" > sysent + printf "#endif\n\n" > sysent + printf "/* The casts are bogus but will do for now. */\n" > sysent printf "struct sysent %s[] = {\n",switchname > sysent 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/signal.h>\n\n", $0 > sysarg + printf "#ifndef %s\n", sysproto_h > sysarg + printf "#define\t%s\n\n", sysproto_h > sysarg + printf "#include <sys/signal.h>\n\n" > sysarg + printf "struct proc;\n\n" > sysarg printf " * created from%s\n */\n\n", $0 > sysnames printf "char *%s[] = {\n", namesname > sysnames |