Mention mkdtemp() in the warnings.

This commit is contained in:
mycroft 1998-07-27 16:39:11 +00:00
parent 3834fcec5c
commit 90cb894b40
3 changed files with 9 additions and 9 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: mktemp.c,v 1.14 1998/07/27 16:05:07 mycroft Exp $ */
/* $NetBSD: mktemp.c,v 1.15 1998/07/27 16:39:11 mycroft Exp $ */
/*
* Copyright (c) 1987, 1993
@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)mktemp.c 8.1 (Berkeley) 6/4/93";
#else
__RCSID("$NetBSD: mktemp.c,v 1.14 1998/07/27 16:05:07 mycroft Exp $");
__RCSID("$NetBSD: mktemp.c,v 1.15 1998/07/27 16:39:11 mycroft Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@ -55,7 +55,7 @@ _mktemp(path)
}
__warn_references(mktemp,
"warning: mktemp() possibly used unsafely, consider using mkstemp()")
"warning: mktemp() possibly used unsafely, use mkstemp() or mkdtemp()")
char *
mktemp(path)

View File

@ -1,4 +1,4 @@
/* $NetBSD: tempnam.c,v 1.10 1997/11/04 23:53:00 thorpej Exp $ */
/* $NetBSD: tempnam.c,v 1.11 1998/07/27 16:39:11 mycroft Exp $ */
/*
* Copyright (c) 1988, 1993
@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)tempnam.c 8.1 (Berkeley) 6/4/93";
#else
__RCSID("$NetBSD: tempnam.c,v 1.10 1997/11/04 23:53:00 thorpej Exp $");
__RCSID("$NetBSD: tempnam.c,v 1.11 1998/07/27 16:39:11 mycroft Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@ -52,7 +52,7 @@ __RCSID("$NetBSD: tempnam.c,v 1.10 1997/11/04 23:53:00 thorpej Exp $");
#include "local.h"
__warn_references(tempnam,
"warning: tempnam() possibly used unsafely, consider using mkstemp()")
"warning: tempnam() possibly used unsafely, use mkstemp() or mkdtemp()")
char *
tempnam(dir, pfx)

View File

@ -1,4 +1,4 @@
/* $NetBSD: tmpnam.c,v 1.9 1997/11/04 23:53:02 thorpej Exp $ */
/* $NetBSD: tmpnam.c,v 1.10 1998/07/27 16:39:11 mycroft Exp $ */
/*-
* Copyright (c) 1990, 1993, 1994
@ -41,7 +41,7 @@
#if 0
static char sccsid[] = "@(#)tmpnam.c 8.3 (Berkeley) 3/28/94";
#else
__RCSID("$NetBSD: tmpnam.c,v 1.9 1997/11/04 23:53:02 thorpej Exp $");
__RCSID("$NetBSD: tmpnam.c,v 1.10 1998/07/27 16:39:11 mycroft Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@ -52,7 +52,7 @@ __RCSID("$NetBSD: tmpnam.c,v 1.9 1997/11/04 23:53:02 thorpej Exp $");
#include "local.h"
__warn_references(tmpnam,
"warning: tmpnam() possibly used unsafely, consider using mkstemp()")
"warning: tmpnam() possibly used unsafely, use mkstemp() or mkdtemp()")
char *
tmpnam(s)