Home | History | Annotate | Download | only in stdio
History log of /src/lib/libc/stdio/mkdtemp.c
RevisionDateAuthorComments
 1.12  18-Jun-2014  christos add mkostemp, mkostemps, mkstemps from FreeBSD.
 1.11  15-Mar-2012  christos branches: 1.11.2; 1.11.8;
- ansify, knf.
- no functional changes
 1.10  20-Oct-2008  apb branches: 1.10.4; 1.10.20;
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.
 1.9  27-Oct-2003  lukem 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).
 1.8  07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22280, verified by myself.
 1.7  18-Jan-2003  thorpej Merge the nathanw_sa branch.
 1.6  14-Sep-2002  thorpej Allow mktemp to be built as a host tool.
 1.5  01-Apr-2002  bjh21 branches: 1.5.2;
Revert addition of mkdtemp() to libnbcompat. I don't think we need mktemp(1)
after all.
 1.4  31-Mar-2002  bjh21 Add mkdtemp to libnbcompat, since glibc doesn't have it an mktemp(1) will
need it.
 1.3  20-Sep-1999  lukem branches: 1.3.10;
back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.
_DIAGASSERT() is still retained.
 1.2  16-Sep-1999  lukem * 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
 1.1  27-Jul-1998  mycroft Actually, FreeBSD calls this mkdtemp(). No point in creating a new name.
 1.3.10.2  17-Sep-2002  nathanw Catch up to -current.
 1.3.10.1  06-Feb-2002  nathanw #include "reentrant.h" before "local.h" so that the thread types used
in fileext.h are avaliable.
 1.5.2.1  30-Nov-2002  he Pull up revision 1.6 (requested by thorpej in ticket #806):
Allow mktemp to build as a host tool.
 1.10.20.1  17-Apr-2012  yamt sync with head
 1.10.4.2  20-Oct-2008  apb 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.
 1.10.4.1  20-Oct-2008  apb file mkdtemp.c was added on branch christos-time_t on 2008-10-20 10:28:39 +0000
 1.11.8.1  10-Aug-2014  tls Rebase.
 1.11.2.1  20-Aug-2014  tls Rebase to HEAD as of a few days ago.

RSS XML Feed