History log of /netbsd-src/lib/libc/stdio/gettemp.c (Results 1 – 22 of 22)
Revision Date Author Comments
# ace5b9b5 20-Jan-2024 christos <christos@NetBSD.org>

Catch up with all the lint warnings since exit on warning was disabled.
Disable 'missing header declaration' and 'nested extern' warnings for now.


# 3707fb92 10-Jan-2017 christos <christos@NetBSD.org>

include <sys/stat.h>


# 20f70894 05-Feb-2015 christos <christos@NetBSD.org>

add a couple of casts.


# 5edf37f3 19-Jun-2014 msaitoh <msaitoh@NetBSD.org>

Fix "shadows a global declaration" compile error.


# 017500be 18-Jun-2014 christos <christos@NetBSD.org>

add mkostemp, mkostemps, mkstemps from FreeBSD.


# 0c93806c 21-Jan-2014 seanb <seanb@NetBSD.org>

Handle case where a 0 length template string or a template
of all 'X' would dereference, and maybe assign to, memory
before the template. Simplify.


# a803d400 22-Apr-2013 christos <christos@NetBSD.org>

PR/47757: Eric Radman: mktemp(3) mangles the pathname if not given an absolute
path
1. on error, gettemp() did not restore the path string
2. when emulating mktemp() it is not an error for the pa

PR/47757: Eric Radman: mktemp(3) mangles the pathname if not given an absolute
path
1. on error, gettemp() did not restore the path string
2. when emulating mktemp() it is not an error for the pattern not to represent
a real directory structure
XXX[1]: pullup-5, pullup-6
XXX[2]: the default pattern is the simplistic <pid><X> for mktemp.

show more ...


# 526d9427 15-Mar-2012 christos <christos@NetBSD.org>

- ansify, knf.
- no functional changes


# debdeec7 20-Oct-2008 apb <apb@NetBSD.org>

The tools/compat versions of mkstemp() and mkdtemp() need to call the
internal function that's usually named "__gettemp". However in a cross
build, "__gettemp" is in a namespace reserved for the hos

The tools/compat versions of mkstemp() and mkdtemp() need to call the
internal function that's usually named "__gettemp". However in a cross
build, "__gettemp" is in a namespace reserved for the host system, so we
can't use that. Use "__nbcompat_gettemp" instead, following the example
of several other functions or macros in tools/compat. Previously, this
was handled by using the name "gettemp", but that conflicts with the
local gettemp() function in dist/nawk.

show more ...


# 0b30fd3d 05-Dec-2003 uebayasi <uebayasi@NetBSD.org>

Spaces.


# 171d6532 27-Oct-2003 lukem <lukem@NetBSD.org>

Overhaul how `build.sh tools' are used:

* Rename "config.h" to "nbtool_config.h" and
HAVE_CONFIG_H to HAVE_NBTOOL_CONFIG_H.
This makes in more obvious in the source when we're using
tools/com

Overhaul how `build.sh tools' are used:

* Rename "config.h" to "nbtool_config.h" and
HAVE_CONFIG_H to HAVE_NBTOOL_CONFIG_H.
This makes in more obvious in the source when we're using
tools/compat/config.h versus "standard autoconf" config.h

* Consistently move the inclusion of nbtool_config.h to before
<sys/cdefs.h> so that the former can provide __RCSID() (et al),
and there's no need to protect those macros any more.

These changes should make it easier to "tool-ify" a program by adding:
#if HAVE_NBTOOL_CONFIG_H
#include "nbtool_config.h"
#endif
to the top of the source files (for the general case).

show more ...


# 0c336c7f 23-Oct-2003 jmc <jmc@NetBSD.org>

Move include for reentrant.h inside CONFIG_H test so this works correctly
with tools/compat. Fixes PR#21344


# eb7c1594 07-Aug-2003 agc <agc@NetBSD.org>

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22280, verified by myself.


# 3fdac2b8 18-Jan-2003 thorpej <thorpej@NetBSD.org>

Merge the nathanw_sa branch.


# 92252507 14-Sep-2002 thorpej <thorpej@NetBSD.org>

Allow mktemp to be built as a host tool.


# c9e49656 01-Apr-2002 bjh21 <bjh21@NetBSD.org>

Revert addition of mkdtemp() to libnbcompat. I don't think we need mktemp(1)
after all.


# 58017a56 31-Mar-2002 bjh21 <bjh21@NetBSD.org>

Add mkdtemp to libnbcompat, since glibc doesn't have it an mktemp(1) will
need it.


# d8962612 20-Sep-1999 lukem <lukem@NetBSD.org>

back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.
_DIAGASSERT() is still retained.


# b48252f3 16-Sep-1999 lukem <lukem@NetBSD.org>

* use _DIAGASSERT() to check pointer arguments against NULL and file
descriptors against -1 (as appropriate).
* add actual checks which to detect stuff that would trigger_DIAGASSERT(),
and attemp

* use _DIAGASSERT() to check pointer arguments against NULL and file
descriptors against -1 (as appropriate).
* add actual checks which to detect stuff that would trigger_DIAGASSERT(),
and attempt to return a sane error condition.
* knf some code
* remove some `register' decls.

the first two items result in the addition of code similar to the
following in various functions:

_DIAGASSERT(path != NULL)
#ifdef _DIAGNOSTIC
if (path == NULL) {
errno = EFAULT;
return (-1);
}
#endif

show more ...


# 1452d0f9 19-Mar-1999 christos <christos@NetBSD.org>

braces for gcc-2.8.1


# 7daf213c 27-Jul-1998 mycroft <mycroft@NetBSD.org>

Add a mktempdir(), like mkstemp(), but it creates a directory.


# 201e4eac 27-Jul-1998 mycroft <mycroft@NetBSD.org>

If AUDIT, do not compile certain functions.