Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Make is possible to add extra output at the top of ...
details: https://anonhg.NetBSD.org/src/rev/79b3caf3daaa
branches: trunk
changeset: 752634:79b3caf3daaa
user: pooka <pooka%NetBSD.org@localhost>
date: Tue Mar 02 19:33:12 2010 +0000
description:
Make is possible to add extra output at the top of syscallargs.h.
Use this feature to stick sys/mount.h in there.
diffstat:
sys/kern/makesyscalls.sh | 4 +++-
sys/kern/syscalls.conf | 3 ++-
2 files changed, 5 insertions(+), 2 deletions(-)
diffs (41 lines):
diff -r 0625ce23330d -r 79b3caf3daaa sys/kern/makesyscalls.sh
--- a/sys/kern/makesyscalls.sh Tue Mar 02 19:30:34 2010 +0000
+++ b/sys/kern/makesyscalls.sh Tue Mar 02 19:33:12 2010 +0000
@@ -1,5 +1,5 @@
#! /bin/sh -
-# $NetBSD: makesyscalls.sh,v 1.93 2010/01/05 15:23:32 skrll Exp $
+# $NetBSD: makesyscalls.sh,v 1.94 2010/03/02 19:33:12 pooka Exp $
#
# Copyright (c) 1994, 1996, 2000 Christopher G. Demetriou
# All rights reserved.
@@ -134,6 +134,7 @@
sysprotos = \"$sysprotos\"
sysnumhdr = \"$sysnumhdr\"
sysarghdr = \"$sysarghdr\"
+ sysarghdrextra = \"$sysarghdrextra\"
rumpcalls = \"$rumpcalls\"
rumpcallshdr = \"$rumpcallshdr\"
rumpsysent = \"$rumpsysent\"
@@ -254,6 +255,7 @@
printf "#define _" constprefix "SYSCALL_H_\n\n" > sysnumhdr
printf "#ifndef _" constprefix "SYSCALLARGS_H_\n" > sysarghdr
printf "#define _" constprefix "SYSCALLARGS_H_\n\n" > sysarghdr
+ printf "%s", sysarghdrextra > sysarghdr
# Write max number of system call arguments to both headers
printf("#define\t%sMAXSYSARGS\t%d\n\n", constprefix, maxsysargs) \
> sysnumhdr
diff -r 0625ce23330d -r 79b3caf3daaa sys/kern/syscalls.conf
--- a/sys/kern/syscalls.conf Tue Mar 02 19:30:34 2010 +0000
+++ b/sys/kern/syscalls.conf Tue Mar 02 19:33:12 2010 +0000
@@ -1,9 +1,10 @@
-# $NetBSD: syscalls.conf,v 1.14 2008/11/17 08:46:42 pooka Exp $
+# $NetBSD: syscalls.conf,v 1.15 2010/03/02 19:33:12 pooka Exp $
sysnames="syscalls.c"
sysnumhdr="../sys/syscall.h"
syssw="init_sysent.c"
sysarghdr="../sys/syscallargs.h"
+sysarghdrextra='#include <sys/mount.h>\n\n'
sysalign=1
rumpcalls="../rump/librump/rumpkern/rump_syscalls.c"
rumpcallshdr="../rump/include/rump/rump_syscalls.h"
Home |
Main Index |
Thread Index |
Old Index