Subject: lib/1097: some compat functions are not prototyped
To: None <gnats-admin@sun-lamp.cs.berkeley.edu>
From: Thorsten Lockert <tholo@SigmaSoft.COM>
List: netbsd-bugs
Date: 06/03/1995 14:35:04
>Number:         1097
>Category:       lib
>Synopsis:       some compat functions are not prototyped
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    lib-bug-people (Library Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jun  3 14:35:02 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:
	Some of the functions in libcompat does not have prototypes in
	the system include files

>How-To-Repeat:
	Compile libcompat with -Wall -Wstrict-prototypes

>Fix:
	Apply the following patches:

*** src/include/sgtty.h.orig	Sat Jun  3 13:22:11 1995
--- src/include/sgtty.h	Sat Jun  3 13:24:06 1995
***************
*** 39,41 ****
--- 39,47 ----
  #define	USE_OLD_TTY
  #endif
  #include <sys/ioctl.h>
+ #include <sys/cdefs.h>
+ 
+ __BEGIN_DECLS
+ int gtty __P((int, struct sgttyb *));
+ int stty __P((int, struct sgttyb *));
+ __END_DECLS
*** src/sys/sys/timeb.h.orig	Sat Jun  3 13:37:31 1995
--- src/sys/sys/timeb.h	Sat Jun  3 13:40:30 1995
***************
*** 51,54 ****
--- 51,62 ----
  	short	dstflag;		/* DST == non-zero */
  };
  
+ #ifndef _KERNEL
+ #include <sys/cdefs.h>
+ 
+ __BEGIN_DECLS
+ int ftime __P((struct timeb *tp));
+ __END_DECLS
+ #endif /* _KERNEL */
+ 
  #endif /* !_SYS_TIMEB_H_ */
*** src/include/unistd.h.orig	Sat Jun  3 14:17:45 1995
--- src/include/unistd.h	Sat Jun  3 14:18:28 1995
***************
*** 138,143 ****
--- 138,144 ----
  int	 profil __P((char *, int, int, int));
  int	 rcmd __P((char **, int, const char *,
  		const char *, const char *, int *));
+ int	 rexec __P((char **, int, char *, char *, char *, int *));
  char	*re_comp __P((const char *));
  int	 re_exec __P((const char *));
  int	 readlink __P((const char *, char *, int));
>Audit-Trail:
>Unformatted: