Home | History | Annotate | Download | only in stdio
History log of /src/lib/libc/stdio/mktemp.c
RevisionDateAuthorComments
 1.21  18-Jun-2014  christos add mkostemp, mkostemps, mkstemps from FreeBSD.
 1.20  15-Mar-2012  christos branches: 1.20.2; 1.20.8;
- ansify, knf.
- no functional changes
 1.19  07-Aug-2003  agc branches: 1.19.56;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22280, verified by myself.
 1.18  18-Jan-2003  thorpej Merge the nathanw_sa branch.
 1.17  20-Sep-1999  lukem branches: 1.17.10;
back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.
_DIAGASSERT() is still retained.
 1.16  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.15  27-Jul-1998  mycroft Mention mkdtemp() in the warnings.
 1.14  27-Jul-1998  mycroft Add a mktempdir(), like mkstemp(), but it creates a directory.
 1.13  27-Jul-1998  mycroft If AUDIT, do not compile certain functions.
 1.12  01-Jun-1998  kleink Need <stdlib.h> for mkstemp() and mktemp() prototypes.
 1.11  03-Feb-1998  perry remove obsolete register declarations
 1.10  04-Nov-1997  thorpej __warn_references and __indr_reference semicolon fixups. From
Chris Demetriou <cgd@pa.dec.com>.
 1.9  13-Jul-1997  christos branches: 1.9.2;
Fix RCSID's
Fix gcc warnings.
Add prototypes for functions that were declared in more than one place
to local.h or extern.h and use that instead.
 1.8  07-Jul-1997  phil Modify to have _gettemp generate different names on repeated calls even if the
file was not created. Tempnam modified to make use of full possibilities.
 1.7  08-Apr-1997  lukem use lstat() instead of stat() when checking for existance.
from Keith Bostic <bostic@bostic.com>
 1.6  16-Mar-1997  lukem add warn_refs for mktemp(), tempnam(), and tmpnam() since most code
use these incorrectly. mkstemp() is ok however. inspired by openbsd
 1.5  02-Feb-1995  jtc branches: 1.5.2;
Merged with 4.4lite.
Changed to conform to NetBSD's new RCS Id convention.
 1.4  11-Nov-1993  jtc First pass at getting a clean compile with "gcc -Wall", mostly explictly
declaring function return values, etc.
 1.3  26-Aug-1993  jtc Declare rcsid strings so they are stored in text segment.
 1.2  01-Aug-1993  mycroft Add RCS identifiers.
 1.1  21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2  02-Feb-1995  jtc imported from 44lite
 1.1.1.1  21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.5.2.1  02-Mar-1995  jtc #include "namespace.h"
 1.9.2.1  04-Nov-1997  thorpej Pull up from trunk: __warn_references and __indr_reference semicolon fixups.
 1.17.10.1  06-Feb-2002  nathanw #include "reentrant.h" before "local.h" so that the thread types used
in fileext.h are avaliable.
 1.19.56.1  17-Apr-2012  yamt sync with head
 1.20.8.1  10-Aug-2014  tls Rebase.
 1.20.2.1  20-Aug-2014  tls Rebase to HEAD as of a few days ago.

RSS XML Feed