From 5035b6181b4b0ed9e99897b8f9384b7a22c77c70 Mon Sep 17 00:00:00 2001 From: graichen Date: Mon, 20 Jan 1997 07:46:47 +0000 Subject: [PATCH] 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 --- lib/Makefile | 7 +------ lib/libc/compat-43/setreuid.c | 4 +--- lib/libc/compat-43/setrgid.c | 4 +--- lib/libc/compat-43/setruid.c | 4 +--- lib/libc/stdio/gets.c | 4 +--- lib/libc/stdio/mktemp.c | 4 +--- lib/libc/stdio/tempnam.c | 4 +--- lib/libc/stdio/tmpnam.c | 4 +--- sys/arch/pmax/include/cdefs.h | 7 ------- 9 files changed, 8 insertions(+), 34 deletions(-) diff --git a/lib/Makefile b/lib/Makefile index be7ee06dbb8..ecf2e0371f7 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.16 1997/01/19 22:41:37 graichen Exp $ +# $OpenBSD: Makefile,v 1.17 1997/01/20 07:46:47 graichen Exp $ # $NetBSD: Makefile,v 1.20.4.1 1996/06/14 17:22:38 cgd Exp $ SUBDIR= csu libarch libc libcom_err libcompat libcurses libedit \ @@ -16,9 +16,4 @@ SUBDIR+= libkvm SUBDIR+= libkvm.old .endif -# XXX Temporarely until the mips ld can handle __warn_references -.if (${MACHINE_ARCH} == "mips") -CFLAGS+=-DNO_WARN_REFERENCES -.endif - .include diff --git a/lib/libc/compat-43/setreuid.c b/lib/libc/compat-43/setreuid.c index 03785e9e927..5cd28bb6406 100644 --- a/lib/libc/compat-43/setreuid.c +++ b/lib/libc/compat-43/setreuid.c @@ -32,7 +32,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char *rcsid = "$OpenBSD: setreuid.c,v 1.3 1997/01/19 22:32:14 graichen Exp $"; +static char *rcsid = "$OpenBSD: setreuid.c,v 1.4 1997/01/20 07:46:51 graichen Exp $"; #endif /* LIBC_SCCS and not lint */ #include @@ -40,9 +40,7 @@ static char *rcsid = "$OpenBSD: setreuid.c,v 1.3 1997/01/19 22:32:14 graichen Ex extern int __setreuid __P((uid_t, uid_t)); -#ifndef NO_WARN_REFERENCES __warn_references(setreuid, "warning: this program uses setreuid(), which is deprecated."); -#endif int setreuid(ruid, euid) diff --git a/lib/libc/compat-43/setrgid.c b/lib/libc/compat-43/setrgid.c index 57539b0034f..0cd59fd4be5 100644 --- a/lib/libc/compat-43/setrgid.c +++ b/lib/libc/compat-43/setrgid.c @@ -32,15 +32,13 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char *rcsid = "$OpenBSD: setrgid.c,v 1.5 1997/01/19 22:32:15 graichen Exp $"; +static char *rcsid = "$OpenBSD: setrgid.c,v 1.6 1997/01/20 07:46:52 graichen Exp $"; #endif /* LIBC_SCCS and not lint */ #include #include -#ifndef NO_WARN_REFERENCES __warn_references(setrgid, "warning: this program uses setrgid(), which is deprecated."); -#endif extern int __setregid __P((gid_t, gid_t)); diff --git a/lib/libc/compat-43/setruid.c b/lib/libc/compat-43/setruid.c index 6294e7ccc90..615e03ef8a7 100644 --- a/lib/libc/compat-43/setruid.c +++ b/lib/libc/compat-43/setruid.c @@ -32,15 +32,13 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char *rcsid = "$OpenBSD: setruid.c,v 1.5 1997/01/19 22:32:15 graichen Exp $"; +static char *rcsid = "$OpenBSD: setruid.c,v 1.6 1997/01/20 07:46:52 graichen Exp $"; #endif /* LIBC_SCCS and not lint */ #include #include -#ifndef NO_WARN_REFERENCES __warn_references(setruid, "warning: this program uses setruid(), which is deprecated."); -#endif extern int __setreuid __P((uid_t, uid_t)); 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 -#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 @@ -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 @@ -43,10 +43,8 @@ static char rcsid[] = "$OpenBSD: tempnam.c,v 1.6 1997/01/19 22:32:22 graichen Ex #include #include -#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 @@ -43,10 +43,8 @@ static char rcsid[] = "$OpenBSD: tmpnam.c,v 1.4 1997/01/19 22:32:23 graichen Exp #include #include -#ifndef NO_WARN_REFERENCES __warn_references(tmpnam, "warning: tmpnam() possibly used unsafely; consider using mkstemp()"); -#endif extern char *_mktemp __P((char *)); diff --git a/sys/arch/pmax/include/cdefs.h b/sys/arch/pmax/include/cdefs.h index 47499b695ea..bc0383e8f7d 100644 --- a/sys/arch/pmax/include/cdefs.h +++ b/sys/arch/pmax/include/cdefs.h @@ -33,13 +33,6 @@ #define _C_LABEL(x) _STRING(x) #define __indr_references(sym,msg) /* nothing */ - -#if defined __GNUC__ && defined __STDC__ -#define __warn_references(sym, msg) \ - static const char __evoke_link_warning_##sym[] \ - __attribute__ ((section (".gnu.warning." #sym))) = msg; -#else #define __warn_references(sym,msg) /* nothing */ -#endif #endif /* !_MACHINE_CDEFS_H_ */ -- 2.20.1