projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
BSD 4_4 release
[unix-history]
/
usr
/
src
/
sys
/
kern
/
makesyscalls.sh
diff --git
a/usr/src/sys/kern/makesyscalls.sh
b/usr/src/sys/kern/makesyscalls.sh
index
797cb39
..
0ddea0c
100644
(file)
--- a/
usr/src/sys/kern/makesyscalls.sh
+++ b/
usr/src/sys/kern/makesyscalls.sh
@@
-1,5
+1,5
@@
#! /bin/sh -
#! /bin/sh -
-# @(#)makesyscalls.sh
7.5 (Berkeley) 6/21/90
+# @(#)makesyscalls.sh
8.1 (Berkeley) 6/10/93
set -e
set -e
@@
-39,7
+39,7
@@
awk < $1 "
printf " * DO NOT EDIT-- this file is automatically generated.\n" > sysdcl
printf "\n#ifdef %s\n", compat > syscompat
printf " * DO NOT EDIT-- this file is automatically generated.\n" > sysdcl
printf "\n#ifdef %s\n", compat > syscompat
- printf "#define compat(n, name) n,
o/**/name
\n\n" > syscompat
+ printf "#define compat(n, name) n,
__CONCAT(o,name)
\n\n" > syscompat
printf "/*\n * System call names.\n *\n" > sysnames
printf " * DO NOT EDIT-- this file is automatically generated.\n" > sysnames
printf "/*\n * System call names.\n *\n" > sysnames
printf " * DO NOT EDIT-- this file is automatically generated.\n" > sysnames
@@
-49,8
+49,8
@@
awk < $1 "
}
NR == 1 {
printf " * created from%s\n */\n\n", $0 > sysdcl
}
NR == 1 {
printf " * created from%s\n */\n\n", $0 > sysdcl
- printf "#include
\"param.h\"
\n" > sysdcl
- printf "#include
\"systm.h\"
\n\n" > sysdcl
+ printf "#include
<sys/param.h>
\n" > sysdcl
+ printf "#include
<sys/systm.h>
\n\n" > sysdcl
printf "int\tnosys();\n\n" > sysdcl
printf "struct sysent sysent[] = {\n" > sysent
printf "int\tnosys();\n\n" > sysdcl
printf "struct sysent sysent[] = {\n" > sysent
@@
-102,7
+102,7
@@
awk < $1 "
}
$2 == "STD" {
printf("int\t%s();\n", $4) > sysdcl
}
$2 == "STD" {
printf("int\t%s();\n", $4) > sysdcl
- printf("\t
%d, %s
,\t\t\t/* %d = %s */\n", \
+ 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
$3, $4, syscall, $5) > sysent
printf("\t\"%s\",\t\t\t/* %d = %s */\n", \
$5, syscall, $5) > sysnames
@@
-113,7
+113,7
@@
awk < $1 "
}
$2 == "COMPAT" {
printf("int\to%s();\n", $4) > syscompat
}
$2 == "COMPAT" {
printf("int\to%s();\n", $4) > syscompat
- printf("\t
compat(%d,%s)
,\t\t/* %d = old %s */\n", \
+ printf("\t
{ compat(%d,%s) }
,\t\t/* %d = old %s */\n", \
$3, $4, syscall, $5) > sysent
printf("\t\"old.%s\",\t\t/* %d = old %s */\n", \
$5, syscall, $5) > sysnames
$3, $4, syscall, $5) > sysent
printf("\t\"old.%s\",\t\t/* %d = old %s */\n", \
$5, syscall, $5) > sysnames
@@
-124,7
+124,7
@@
awk < $1 "
}
$2 == "LIBCOMPAT" {
printf("int\to%s();\n", $4) > syscompat
}
$2 == "LIBCOMPAT" {
printf("int\to%s();\n", $4) > syscompat
- printf("\t
compat(%d,%s)
,\t\t/* %d = old %s */\n", \
+ printf("\t
{ compat(%d,%s) }
,\t\t/* %d = old %s */\n", \
$3, $4, syscall, $5) > sysent
printf("\t\"old.%s\",\t\t/* %d = old %s */\n", \
$5, syscall, $5) > sysnames
$3, $4, syscall, $5) > sysent
printf("\t\"old.%s\",\t\t/* %d = old %s */\n", \
$5, syscall, $5) > sysnames
@@
-134,7
+134,7
@@
awk < $1 "
next
}
$2 == "OBSOL" {
next
}
$2 == "OBSOL" {
- printf("\t
0, nosys
,\t\t\t/* %d = obsolete %s */\n", \
+ printf("\t
{ 0, nosys }
,\t\t\t/* %d = obsolete %s */\n", \
syscall, comment) > sysent
printf("\t\"obs_%s\",\t\t\t/* %d = obsolete %s */\n", \
$4, syscall, comment) > sysnames
syscall, comment) > sysent
printf("\t\"obs_%s\",\t\t\t/* %d = obsolete %s */\n", \
$4, syscall, comment) > sysnames
@@
-144,7
+144,7
@@
awk < $1 "
next
}
$2 == "UNIMPL" {
next
}
$2 == "UNIMPL" {
- printf("\t
0, nosys
,\t\t\t/* %d = %s */\n", \
+ printf("\t
{ 0, nosys }
,\t\t\t/* %d = %s */\n", \
syscall, comment) > sysent
printf("\t\"#%d\",\t\t\t/* %d = %s */\n", \
syscall, syscall, comment) > sysnames
syscall, comment) > sysent
printf("\t\"#%d\",\t\t\t/* %d = %s */\n", \
syscall, syscall, comment) > sysnames