Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern - cast through void * for rump
details: https://anonhg.NetBSD.org/src/rev/0f9fcb4f862c
branches: trunk
changeset: 845618:0f9fcb4f862c
user: christos <christos%NetBSD.org@localhost>
date: Wed Oct 09 01:43:00 2019 +0000
description:
- cast through void * for rump
- don't generate bogus filenames /dev/null.bottom etc.
diffstat:
sys/kern/makesyscalls.sh | 27 ++++++++++++++++++---------
1 files changed, 18 insertions(+), 9 deletions(-)
diffs (73 lines):
diff -r 71a9b06069bf -r 0f9fcb4f862c sys/kern/makesyscalls.sh
--- a/sys/kern/makesyscalls.sh Wed Oct 09 01:18:55 2019 +0000
+++ b/sys/kern/makesyscalls.sh Wed Oct 09 01:43:00 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: makesyscalls.sh,v 1.173 2019/06/18 16:24:17 christos Exp $
+# $NetBSD: makesyscalls.sh,v 1.174 2019/10/09 01:43:00 christos Exp $
#
# Copyright (c) 1994, 1996, 2000 Christopher G. Demetriou
# All rights reserved.
@@ -70,8 +70,8 @@
rumpsysmap="/dev/null"
rumpsysent="rumpsysent.tmp"
rumpnoflags="\n\t\t.sy_flags = SYCALL_NOSYS,"
-rumpnosys="(sy_call_t *)rumpns_enosys"
-rumpnomodule="(sy_call_t *)rumpns_sys_nomodule"
+rumpnosys="(sy_call_t *)(void *)rumpns_enosys"
+rumpnomodule="(sy_call_t *)(void *)rumpns_sys_nomodule"
case $1 in
/*) . $1;;
@@ -84,6 +84,15 @@
printf '%s: %s\n' "$0" "$*" >&2
}
+addsuffix()
+{
+ if [ "$1" = "/dev/null" -o -z "$2" ]; then
+ echo $1
+ else
+ echo $1.$2
+ fi
+}
+
fail=false
case "${nsysent:-0}" in
*[!0-9]*) errmsg "Non numeric value for nsysent:" "${nsysent}";;
@@ -94,13 +103,13 @@
$fail && exit 1
# tmp files:
-sysautoloadbottom="$sysautoload.bottom"
+sysautoloadbottom=$(addsuffix $sysautoload "bottom")
sysdcl="sysent.dcl"
sysprotos="sys.protos"
syscompat_pref="sysent."
sysent="sysent.switch"
-sysnamesbottom="$sysnames.bottom"
-sysnamesfriendly="$sysnames.friendly"
+sysnamesbottom=$(addsuffix $sysnames "bottom")
+sysnamesfriendly=$(addsuffix $sysnames "friendly")
rumptypes="rumphdr.types"
rumpprotos="rumphdr.protos"
systracetmp="systrace.$$"
@@ -174,7 +183,7 @@
systracetmp = \"$systracetmp\"
systraceret = \"$systraceret\"
sysautoload = \"$sysautoload\"
- sysautoloadbottom = \"${sysautoload}.bottom\"
+ sysautoloadbottom = \"$sysautoloadbottom\"
rumpcalls = \"$rumpcalls\"
rumpcallshdr = \"$rumpcallshdr\"
rumpsysent = \"$rumpsysent\"
@@ -193,8 +202,8 @@
sysdcl = \"$sysdcl\"
syscompat_pref = \"$syscompat_pref\"
sysent = \"$sysent\"
- sysnamesbottom = \"${sysnames}.bottom\"
- sysnamesfriendly = \"${sysnames}.friendly\"
+ sysnamesbottom = \"$sysnamesbottom\"
+ sysnamesfriendly = \"$sysnamesfriendly\"
rumpprotos = \"$rumpprotos\"
rumptypes = \"$rumptypes\"
sys_nosys = \"$sys_nosys\"
Home |
Main Index |
Thread Index |
Old Index