Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Respect syscall aliases in the rump code
details: https://anonhg.NetBSD.org/src/rev/eba3401fdbcc
branches: trunk
changeset: 933991:eba3401fdbcc
user: kamil <kamil%NetBSD.org@localhost>
date: Tue Jun 02 16:45:42 2020 +0000
description:
Respect syscall aliases in the rump code
With this change rump_sys_*() matches *() from the usually libc entry point.
diffstat:
sys/kern/makesyscalls.sh | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
diffs (43 lines):
diff -r 3d74a256b32c -r eba3401fdbcc sys/kern/makesyscalls.sh
--- a/sys/kern/makesyscalls.sh Tue Jun 02 15:43:26 2020 +0000
+++ b/sys/kern/makesyscalls.sh Tue Jun 02 16:45:42 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: makesyscalls.sh,v 1.177 2020/06/02 13:49:15 kamil Exp $
+# $NetBSD: makesyscalls.sh,v 1.178 2020/06/02 16:45:42 kamil Exp $
#
# Copyright (c) 1994, 1996, 2000 Christopher G. Demetriou
# All rights reserved.
@@ -600,10 +600,12 @@
funcalias=funcname
sub(/^([^_]+_)*sys_/, "", funcalias)
realname=fbase
+ rumpfname=realname "" fcompat
} else {
realname=funcalias
+ rumpfname=realname
}
- rumpfname=realname "" fcompat
+
f++
if ($f != "(")
@@ -713,8 +715,8 @@
# accumulate fbases we have seen. we want the last
# occurence for the default __RENAME()
- seen = funcseen[fbase]
- funcseen[fbase] = rumpfname
+ seen = funcseen[realname]
+ funcseen[realname] = rumpfname
# special case for mknod as type of last argument changed from
# uint32_t to dev_t
if ((seen && fbase != "mknod") || (!seen && fbase == "mknod"))
@@ -731,7 +733,7 @@
else
printf("%s)", uncompattype(argtype[argc])) > rumpprotos
- printf(" __RENAME(RUMP_SYS_RENAME_%s)", toupper(fbase))> rumpprotos
+ printf(" __RENAME(RUMP_SYS_RENAME_%s)", toupper(realname))> rumpprotos
printf(";\n") > rumpprotos
# generate forward-declares for types, apart from the
Home |
Main Index |
Thread Index |
Old Index