Subject: Re: types in syscallargs.h
To: None <tech-kern@netbsd.org>
From: Elad Efrat <elad@NetBSD.org>
List: tech-kern
Date: 07/23/2005 03:50:08
This is a multi-part message in MIME format.
--------------030807080500050001080508
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Attached is a tiny (2 line) diff for kern/makesyscalls.sh. It will add
the #include <file> lines from kern/syscalls.master to sys/syscallargs.h
when generating it and thus making it self-contained.

Note: This patch does not implement Christos's suggestion to expose only
the required structs from the header files to syscallargs.h.

-e.

--------------030807080500050001080508
Content-Type: text/plain;
 name="makesyscalls.sh.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="makesyscalls.sh.diff"

Index: makesyscalls.sh
===================================================================
RCS file: /cvsroot/src/sys/kern/makesyscalls.sh,v
retrieving revision 1.58
diff -u -r1.58 makesyscalls.sh
--- makesyscalls.sh	26 Feb 2005 23:32:31 -0000	1.58
+++ makesyscalls.sh	23 Jul 2005 00:48:54 -0000
@@ -224,6 +224,8 @@
 $1 ~ /^#[ 	]*include/ {
 	print > sysdcl
 	print > sysnames
+	if ($2 !~ /\"|syscallargs/)
+		print > sysarghdr
 	next
 }
 $1 ~ /^#/ && !intable {

--------------030807080500050001080508--