Libraries updates and cleanup
* Updating common/lib * Updating lib/csu * Updating lib/libc * Updating libexec/ld.elf_so * Corrected test on __minix in featuretest to actually follow the meaning of the comment. * Cleaned up _REENTRANT-related defintions. * Disabled -D_REENTRANT for libfetch * Removing some unneeded __NBSD_LIBC defines and tests Change-Id: Ic1394baef74d11b9f86b312f5ff4bbc3cbf72ce2
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* $NetBSD: mktemp.c,v 1.19 2003/08/07 16:43:28 agc Exp $ */
|
||||
/* $NetBSD: mktemp.c,v 1.20 2012/03/15 18:22:30 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1987, 1993
|
||||
@@ -34,7 +34,7 @@
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)mktemp.c 8.1 (Berkeley) 6/4/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: mktemp.c,v 1.19 2003/08/07 16:43:28 agc Exp $");
|
||||
__RCSID("$NetBSD: mktemp.c,v 1.20 2012/03/15 18:22:30 christos Exp $");
|
||||
#endif
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
@@ -47,24 +47,22 @@ __RCSID("$NetBSD: mktemp.c,v 1.19 2003/08/07 16:43:28 agc Exp $");
|
||||
#include "local.h"
|
||||
|
||||
char *
|
||||
_mktemp(path)
|
||||
char *path;
|
||||
_mktemp(char *path)
|
||||
{
|
||||
|
||||
_DIAGASSERT(path != NULL);
|
||||
|
||||
return (__gettemp(path, (int *)NULL, 0) ? path : (char *)NULL);
|
||||
return __gettemp(path, NULL, 0) ? path : NULL;
|
||||
}
|
||||
|
||||
__warn_references(mktemp,
|
||||
"warning: mktemp() possibly used unsafely, use mkstemp() or mkdtemp()")
|
||||
|
||||
char *
|
||||
mktemp(path)
|
||||
char *path;
|
||||
mktemp(char *path)
|
||||
{
|
||||
|
||||
_DIAGASSERT(path != NULL);
|
||||
|
||||
return (__gettemp(path, (int *)NULL, 0) ? path : (char *)NULL);
|
||||
return __gettemp(path, NULL, 0) ? path : NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user