Subject: kern/9147: compat_aout lacks two syscalls
To: None <gnats-bugs@gnats.netbsd.org>
From: Michael Eriksson T/K 2 <Michael.Eriksson@era-t.ericsson.se>
List: netbsd-bugs
Date: 01/08/2000 07:36:49
>Number:         9147
>Category:       kern
>Synopsis:       compat_aout lacks two syscalls
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jan  8 07:36:00 2000
>Last-Modified:
>Originator:     Michael Eriksson
>Organization:
Ericsson Radio Systems AB
>Release:        NetBSD-current as of today (2000-01-08)
>Environment:
System: NetBSD burken 1.4P NetBSD 1.4P (EMT) #1: Sat Jan 8 14:10:43 CET 2000 eramore@burken:/var/home/eramore/wrk/maestro2/sys/arch/i386/compile/EMT i386

>Description:

The a.out compatibility code lacks the mlockall and munlockall
syscalls.

>How-To-Repeat:

Try to run an a.out cdrecord binary on a -current kernel with
COMPAT_AOUT enabled.

>Fix:

Index: syscalls.master
===================================================================
RCS file: /cvsroot/syssrc/sys/compat/aout/syscalls.master,v
retrieving revision 1.6
diff -u -r1.6 syscalls.master
--- syscalls.master	1999/09/16 18:18:28	1.6
+++ syscalls.master	2000/01/08 15:15:00
@@ -509,8 +509,8 @@
 240	NOARGS		{ int sys_nanosleep(const struct timespec *rqtp, \
 			    struct timespec *rmtp); }
 241	NOARGS		{ int sys_fdatasync(int fd); }
-242	UNIMPL
-243	UNIMPL
+242	NOARGS		{ int sys_mlockall(int flags); }
+243	NOARGS		{ int sys_munlockall(void); }
 244	UNIMPL
 245	UNIMPL
 246	UNIMPL

>Audit-Trail:
>Unformatted: