Handle rumpcalls/rumpcallshdr differently by always defining a default

value, which can be overwritten with syscalls.conf defines (just like
sys_nosys).

This fix a problem where rump awk variables are set to 0 value,
leading to the creation of an unexpected file with that name.

ok by pooka.
This commit is contained in:
njoly 2008-03-18 12:36:15 +00:00
parent 4882fcc17f
commit d5bb355fe9

View File

@ -1,5 +1,5 @@
#! /bin/sh -
# $NetBSD: makesyscalls.sh,v 1.66 2008/03/11 22:50:10 pooka Exp $
# $NetBSD: makesyscalls.sh,v 1.67 2008/03/18 12:36:15 njoly Exp $
#
# Copyright (c) 1994, 1996, 2000 Christopher G. Demetriou
# All rights reserved.
@ -61,6 +61,8 @@ esac
# source the config file.
sys_nosys="sys_nosys" # default is sys_nosys(), if not specified otherwise
maxsysargs=8 # default limit is 8 (32bit) arguments
rumpcalls="/dev/null"
rumpcallshdr="/dev/null"
. ./$1
# tmp files:
@ -135,13 +137,6 @@ BEGIN {
}
nsysent = \"$nsysent\"
if (length(rumpcalls) == 0) {
rumpcalls = "/dev/null"
}
if (length(rumpcallshdr) == 0) {
rumpcallshdr = "/dev/null"
}
sysdcl = \"$sysdcl\"
syscompat_pref = \"$syscompat_pref\"
sysent = \"$sysent\"