-# $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 \
SUBDIR+= libkvm.old
.endif
-# XXX Temporarely until the mips ld can handle __warn_references
-.if (${MACHINE_ARCH} == "mips")
-CFLAGS+=-DNO_WARN_REFERENCES
-.endif
-
.include <bsd.subdir.mk>
*/
#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 <sys/types.h>
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)
*/
#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 <sys/types.h>
#include <unistd.h>
-#ifndef NO_WARN_REFERENCES
__warn_references(setrgid, "warning: this program uses setrgid(), which is deprecated.");
-#endif
extern int __setregid __P((gid_t, gid_t));
*/
#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 <sys/types.h>
#include <unistd.h>
-#ifndef NO_WARN_REFERENCES
__warn_references(setruid, "warning: this program uses setruid(), which is deprecated.");
-#endif
extern int __setreuid __P((uid_t, uid_t));
*/
#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)
*/
#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>
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)
*/
#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>
#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 *));
*/
#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>
#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 *));
#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_ */