Subject: port-i386/1096: sysarch(2) has no prototype
To: None <gnats-admin@sun-lamp.cs.berkeley.edu>
From: Thorsten Lockert <tholo@SigmaSoft.COM>
List: netbsd-bugs
Date: 06/03/1995 13:20:09
>Number:         1096
>Category:       port-i386
>Synopsis:       sysarch(2) has no prototype
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jun  3 13:20:06 1995
>Originator:     Thorsten Lockert
>Organization:
SigmaSoft, Th. Lockert
>Release:        May 28, 1995
>Environment:
	
System: NetBSD gandalf.sigmasoft.com 1.0A NetBSD 1.0A (GANDALF) #1: Sun May 7 21:49:27 PDT 1995 tholo@gandalf.sigmasoft.com:/usr/src/sys/arch/i386/compile/GANDALF i386


>Description:
	The sysarch(2) system call (used for the i386 libarch) has no
	prototype defined.

>How-To-Repeat:
	Compile src/lib/libarch with -Wall -Wstrict-prototypes

>Fix:
	Apply the following patch:

*** src/sys/arch/i386/include/sysarch.h.orig	Sat Jun  3 13:10:37 1995
--- src/sys/arch/i386/include/sysarch.h	Sat Jun  3 13:10:57 1995
***************
*** 24,29 ****
--- 24,30 ----
  #ifndef _KERNEL
  int i386_get_ldt __P((int, union descriptor *, int));
  int i386_set_ldt __P((int, union descriptor *, int));
+ int sysarch __P((int, char *));
  #endif
  
  #endif /* !_I386_SYSARCH_H_ */
>Audit-Trail:
>Unformatted: