NetBSD Problem Report #1097
From gnats Sat Jun 3 14:33:24 1995
Received: from pain.lcs.mit.edu (pain.lcs.mit.edu [128.52.46.239]) by sun-lamp.cs.berkeley.edu (8.6.10/8.6.10) with ESMTP id OAA06643 for <gnats-bugs@sun-lamp.cs.berkeley.edu>; Sat, 3 Jun 1995 14:33:20 -0700
Message-Id: <199506032133.OAA04261@gandalf.sigmasoft.com>
Date: Sat, 3 Jun 1995 14:33:57 -0700
From: Thorsten Lockert <tholo@SigmaSoft.COM>
Reply-To: tholo@SigmaSoft.COM
To: gnats-bugs@NetBSD.ORG
Subject: some compat functions are not prototyped
X-Send-Pr-Version: 3.2
>Number: 1097
>Category: lib
>Synopsis: some compat functions are not prototyped
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: lib-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Jun 03 14:35:02 +0000 1995
>Closed-Date: Fri Jun 23 16:02:31 +0000 1995
>Last-Modified:
>Originator: Thorsten Lockert
>Release: May 28, 1995
>Organization:
SigmaSoft, Th. Lockert
>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));
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: pk
State-Changed-When: Fri Jun 23 12:02:31 EDT 1995
State-Changed-Why:
Applied suggested prototype/declaration changes.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.