summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio
diff options
context:
space:
mode:
authorgraichen <graichen@openbsd.org>1997-01-20 07:46:47 +0000
committergraichen <graichen@openbsd.org>1997-01-20 07:46:47 +0000
commit5035b6181b4b0ed9e99897b8f9384b7a22c77c70 (patch)
treecff0dea34433c6bf6edf08313108807beab455ca /lib/libc/stdio
parentAdd a few things and make permissions consistent (all 0XXX not XXX) (diff)
downloadwireguard-openbsd-5035b6181b4b0ed9e99897b8f9384b7a22c77c70.tar.xz
wireguard-openbsd-5035b6181b4b0ed9e99897b8f9384b7a22c77c70.zip
back out my last change to avoid the __warn_references on the mips - it's
now done for the pmax like for the arc in machine/cdefs.h
Diffstat (limited to 'lib/libc/stdio')
-rw-r--r--lib/libc/stdio/gets.c4
-rw-r--r--lib/libc/stdio/mktemp.c4
-rw-r--r--lib/libc/stdio/tempnam.c4
-rw-r--r--lib/libc/stdio/tmpnam.c4
4 files changed, 4 insertions, 12 deletions
diff --git a/lib/libc/stdio/gets.c b/lib/libc/stdio/gets.c
index 6fccb050ef2..6b42b69217e 100644
--- a/lib/libc/stdio/gets.c
+++ b/lib/libc/stdio/gets.c
@@ -35,15 +35,13 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: gets.c,v 1.4 1997/01/19 22:32:21 graichen Exp $";
+static char rcsid[] = "$OpenBSD: gets.c,v 1.5 1997/01/20 07:46:56 graichen Exp $";
#endif /* LIBC_SCCS and not lint */
#include <stdio.h>
-#ifndef NO_WARN_REFERENCES
__warn_references(gets,
"warning: gets() is very unsafe; consider using fgets()");
-#endif
char *
gets(buf)
diff --git a/lib/libc/stdio/mktemp.c b/lib/libc/stdio/mktemp.c
index 76dba5bff37..0d49e06b824 100644
--- a/lib/libc/stdio/mktemp.c
+++ b/lib/libc/stdio/mktemp.c
@@ -32,7 +32,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: mktemp.c,v 1.4 1997/01/19 22:32:22 graichen Exp $";
+static char rcsid[] = "$OpenBSD: mktemp.c,v 1.5 1997/01/20 07:46:56 graichen Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
@@ -63,10 +63,8 @@ _mktemp(path)
return(_gettemp(path, (int *)NULL) ? path : (char *)NULL);
}
-#ifndef NO_WARN_REFERENCES
__warn_references(mktemp,
"warning: mktemp() possibly used unsafely; consider using mkstemp()");
-#endif
char *
mktemp(path)
diff --git a/lib/libc/stdio/tempnam.c b/lib/libc/stdio/tempnam.c
index 7aa195e3593..9e5b71177f5 100644
--- a/lib/libc/stdio/tempnam.c
+++ b/lib/libc/stdio/tempnam.c
@@ -32,7 +32,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: tempnam.c,v 1.6 1997/01/19 22:32:22 graichen Exp $";
+static char rcsid[] = "$OpenBSD: tempnam.c,v 1.7 1997/01/20 07:46:57 graichen Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/param.h>
@@ -43,10 +43,8 @@ static char rcsid[] = "$OpenBSD: tempnam.c,v 1.6 1997/01/19 22:32:22 graichen Ex
#include <unistd.h>
#include <paths.h>
-#ifndef NO_WARN_REFERENCES
__warn_references(tempnam,
"warning: tempnam() possibly used unsafely; consider using mkstemp()");
-#endif
extern char *_mktemp __P((char *));
diff --git a/lib/libc/stdio/tmpnam.c b/lib/libc/stdio/tmpnam.c
index 620cdf2fc6f..865800f3c12 100644
--- a/lib/libc/stdio/tmpnam.c
+++ b/lib/libc/stdio/tmpnam.c
@@ -35,7 +35,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: tmpnam.c,v 1.4 1997/01/19 22:32:23 graichen Exp $";
+static char rcsid[] = "$OpenBSD: tmpnam.c,v 1.5 1997/01/20 07:46:57 graichen Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
@@ -43,10 +43,8 @@ static char rcsid[] = "$OpenBSD: tmpnam.c,v 1.4 1997/01/19 22:32:23 graichen Exp
#include <stdio.h>
#include <unistd.h>
-#ifndef NO_WARN_REFERENCES
__warn_references(tmpnam,
"warning: tmpnam() possibly used unsafely; consider using mkstemp()");
-#endif
extern char *_mktemp __P((char *));