Added David Mills' kernel NTP PLL code. The current version of NTP does
[unix-history] / sys / kern / makesyscalls.sh
index 38bcafd..edc0ea0 100644 (file)
@@ -1,6 +1,6 @@
 #! /bin/sh -
 #      from: @(#)makesyscalls.sh       7.6 (Berkeley) 4/20/91
 #! /bin/sh -
 #      from: @(#)makesyscalls.sh       7.6 (Berkeley) 4/20/91
-#      $Id$
+#      $Id: makesyscalls.sh,v 1.2 1993/10/16 15:24:36 rgrimes Exp $
 
 set -e
 
 
 set -e
 
@@ -36,6 +36,8 @@ awk < $1 "
                infile = \"$1\"
                "'
 
                infile = \"$1\"
                "'
 
+               printf "#ifndef _SYS_SYSCALL_H_\n" > syshdr
+               printf "#define _SYS_SYSCALL_H_ 1\n" > syshdr
                printf "/*\n * System call switch table.\n *\n" > sysdcl
                printf " * DO NOT EDIT-- this file is automatically generated.\n" > sysdcl
 
                printf "/*\n * System call switch table.\n *\n" > sysdcl
                printf " * DO NOT EDIT-- this file is automatically generated.\n" > sysdcl
 
@@ -160,6 +162,7 @@ awk < $1 "
                printf("\n#else /* %s */\n", compat) > syscompat
                printf("#define compat(n, name) 0, nosys\n") > syscompat
                printf("#endif /* %s */\n\n", compat) > syscompat
                printf("\n#else /* %s */\n", compat) > syscompat
                printf("#define compat(n, name) 0, nosys\n") > syscompat
                printf("#endif /* %s */\n\n", compat) > syscompat
+               printf("#endif /* _SYS_SYSCALL_H_ */") > syshdr
 
                printf("};\n\n") > sysent
                printf("int\tnsysent = sizeof(sysent) / sizeof(sysent[0]);\n") > sysent
 
                printf("};\n\n") > sysent
                printf("int\tnsysent = sizeof(sysent) / sizeof(sysent[0]);\n") > sysent
@@ -169,4 +172,8 @@ awk < $1 "
 
 cat $sysdcl $syscompat $sysent >$syssw
 
 
 cat $sysdcl $syscompat $sysent >$syssw
 
-chmod 444 $sysnames $syshdr $syssw
+if [ -d CVS ]; then
+       true
+else
+       chmod 444 $sysnames $syshdr $syssw
+fi