*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char *rcsid = "$OpenBSD: setregid.c,v 1.2 1996/08/19 08:19:31 tholo Exp $";
+static char *rcsid = "$OpenBSD: setregid.c,v 1.3 1997/01/19 22:32:14 graichen Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
extern int __setregid __P((gid_t, gid_t));
+#ifndef NO_WARN_REFERENCES
__warn_references(setregid, "warning: this program uses setregid(), which is deprecated.");
+#endif
int
setregid(rgid, egid)
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char *rcsid = "$OpenBSD: setreuid.c,v 1.2 1996/08/19 08:19:33 tholo Exp $";
+static char *rcsid = "$OpenBSD: setreuid.c,v 1.3 1997/01/19 22:32:14 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.4 1996/08/19 08:19:34 tholo Exp $";
+static char *rcsid = "$OpenBSD: setrgid.c,v 1.5 1997/01/19 22:32:15 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.4 1996/08/19 08:19:36 tholo Exp $";
+static char *rcsid = "$OpenBSD: setruid.c,v 1.5 1997/01/19 22:32:15 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.3 1996/12/28 02:30:58 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: gets.c,v 1.4 1997/01/19 22:32:21 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.3 1996/12/28 02:33:10 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: mktemp.c,v 1.4 1997/01/19 22:32:22 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.5 1996/12/28 02:33:14 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: tempnam.c,v 1.6 1997/01/19 22:32:22 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.3 1996/12/28 02:33:15 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: tmpnam.c,v 1.4 1997/01/19 22:32:23 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 *));