Subject: kern/11853: makesyscalls.sh generates wrong output
To: None <gnats-bugs@gnats.netbsd.org, jdolecek@netbsd.org>
From: None <bernd@arresum.inka.de>
List: netbsd-bugs
Date: 12/30/2000 14:57:15
>Number:         11853
>Category:       kern
>Synopsis:       makesyscalls.sh generates wrong output
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Dec 30 14:57:00 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Bernd Ernesti
>Release:        NetBSD-current 30-Dec-2000
>Organization:
	
>Environment:
	
System: NetBSD arresum.veego.de 1.5Q NetBSD 1.5Q (ARRESUM) #529: Sat Dec 30 09:26:01 CET 2000 bernd@arresum.veego.de:/home/work/obj_i386/src.i386/sys/arch/i386/compile/ARRESUM i386
Architecture: i386
Machine: i386
>Description:
	sys/kern/makesyscalls.sh generates wrong output:

sys/syscall.h:

[..]
/* syscall: "wait4" ret: "int" args: "int" "int *" "int" "struct rusage *" */
#define	SYS_wait4	7

#define	SYS_compat_43_ocreat	8

/* syscall: "link" ret: "int" args: "const char *" "const char *" */
#define	SYS_link	9

/* syscall: "unlink" ret: "int" args: "const char *" */
#define	SYS_unlink	10

				/* 11 is obsolete execv */
/* syscall: "chdir" ret: "int" args: "const char *" */
#define	SYS_chdir	12
[..]

This is just an example. There are many more lines in it which doesn't
look correct and cause makelintstub to produce the warnings below.

>How-To-Repeat:

	cd lib/libc
	make LintSysNoerr.c
creating LintSysNoerr.c
ret:: not found
ret:: not found
ret:: not found

>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: