summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/kern/Makefile3
-rw-r--r--sys/kern/makesyscalls.sh19
2 files changed, 1 insertions, 21 deletions
diff --git a/sys/kern/Makefile b/sys/kern/Makefile
index 409c32d..cdfcc2a 100644
--- a/sys/kern/Makefile
+++ b/sys/kern/Makefile
@@ -8,12 +8,11 @@ ARCH= i386 # luna68k news3400 pmax sparc tahoe vax
all:
@echo "make tags, make links or init_sysent.c only"
-init_sysent.c syscalls.c ../sys/syscall.h ../sys/syscall-hide.h \
+init_sysent.c syscalls.c ../sys/syscall.h \
../sys/syscall.mk ../sys/sysproto.h: makesyscalls.sh syscalls.master
-mv -f init_sysent.c init_sysent.c.bak
-mv -f syscalls.c syscalls.c.bak
-mv -f ../sys/syscall.h ../sys/syscall.h.bak
- -mv -f ../sys/syscall-hide.h ../sys/syscall-hide.h.bak
-mv -f ../sys/syscall.mk ../sys/syscall.mk.bak
-mv -f ../sys/sysproto.h ../sys/sysproto.h.bak
sh makesyscalls.sh syscalls.master
diff --git a/sys/kern/makesyscalls.sh b/sys/kern/makesyscalls.sh
index 069314d..0bb801f 100644
--- a/sys/kern/makesyscalls.sh
+++ b/sys/kern/makesyscalls.sh
@@ -14,7 +14,6 @@ sysproto_h=_SYS_SYSPROTO_H_
syshdr="../sys/syscall.h"
sysmk="../sys/syscall.mk"
syssw="init_sysent.c"
-syshide="../sys/syscall-hide.h"
syscallprefix="SYS_"
switchname="sysent"
namesname="syscallnames"
@@ -68,7 +67,6 @@ s/\$//g
syshdr = \"$syshdr\"
sysmk = \"$sysmk\"
compat = \"$compat\"
- syshide = \"$syshide\"
syscallprefix = \"$syscallprefix\"
switchname = \"$switchname\"
namesname = \"$namesname\"
@@ -95,9 +93,6 @@ s/\$//g
printf "# FreeBSD system call names.\n" > sysmk
printf "# DO NOT EDIT-- this file is automatically generated.\n" > sysmk
printf "# \$\FreeBSD\$\n" > sysmk
- printf "/*\n * System call hiders.\n *\n" > syshide
- printf " * DO NOT EDIT-- this file is automatically generated.\n" > syshide
- printf " * \$\FreeBSD\$\n" > syshide
}
NR == 1 {
gsub("[$]FreeBSD: ", "", $0)
@@ -132,7 +127,6 @@ s/\$//g
printf "# created from%s\nMIASM = ", $0 > sysmk
- printf " * created from%s\n */\n\n", $0 > syshide
next
}
NF == 0 || $1 ~ /^;/ {
@@ -148,7 +142,6 @@ s/\$//g
print > sysarg
print > syscompat
print > sysnames
- print > syshide
savesyscall = syscall
next
}
@@ -158,7 +151,6 @@ s/\$//g
print > sysarg
print > syscompat
print > sysnames
- print > syshide
syscall = savesyscall
next
}
@@ -168,7 +160,6 @@ s/\$//g
print > sysarg
print > syscompat
print > sysnames
- print > syshide
next
}
syscall != $1 {
@@ -354,8 +345,6 @@ s/\$//g
funcalias, syscall) > syshdr
printf(" \\\n\t%s.o", funcalias) > sysmk
}
- if ($3 != "NOHIDE")
- printf("HIDE_%s(%s)\n", $3, funcname) > syshide
syscall++
next
}
@@ -386,8 +375,6 @@ s/\$//g
funcalias, syscall, funcalias) > sysnames
printf("\t\t\t\t/* %d is old %s */\n",
syscall, funcalias) > syshdr
- if ($3 != "NOHIDE")
- printf("HIDE_%s(%s)\n", $3, funcname) > syshide
syscall++
next
}
@@ -405,8 +392,6 @@ s/\$//g
printf("#define\t%s%s\t%d\t/* compatibility; still used by libc */\n",
syscallprefix, funcalias, syscall) > syshdr
printf(" \\\n\t%s.o", funcalias) > sysmk
- if ($3 != "NOHIDE")
- printf("HIDE_%s(%s)\n", $3, funcname) > syshide
syscall++
next
}
@@ -418,8 +403,6 @@ s/\$//g
$4, syscall, comment) > sysnames
printf("\t\t\t\t/* %d is obsolete %s */\n",
syscall, comment) > syshdr
- if ($3 != "NOHIDE")
- printf("HIDE_%s(%s)\n", $3, $4) > syshide
syscall++
next
}
@@ -428,8 +411,6 @@ s/\$//g
syscall, comment) > sysent
printf("\t\"#%d\",\t\t\t/* %d = %s */\n",
syscall, syscall, comment) > sysnames
- if ($3 != "NOHIDE")
- printf("HIDE_%s(%s)\n", $3, $4) > syshide
syscall++
next
}
OpenPOWER on IntegriCloud