summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/mktemp.3 (follow)
Commit message (Collapse)AuthorAgeFilesLines
* The open flags param to mkostemps() should be "flags" not "oflags"millert2014-10-261-3/+3
| | | | for consistency with the rest of the manual.
* provide section numbers for xrs;jmc2014-08-311-2/+2
|
* Add additional userland interfaces for setting close-on-exec on fdsguenther2014-08-311-33/+115
| | | | | | | | | | | | | when creating them: mkostemp(), mkostemps(), the 'e' mode letter for fopen(), freopen(), fdopen(), and popen(). The close-on-exec flag will be cleared by the action created by posix_spawn_file_actions_adddup2(). Also, add support for the C11 'x' mode letter for fopen() and freopen(), setting O_EXCL when possibly creating files. Note: this requires kernel support for pipe2() and dup3()! ok millert@
* Use the fancy .In macro for includes. From Jan Klemkow. ok jmc schwarzetedu2013-06-051-3/+3
|
* Return EINVAL if there are fewer than six template Xs in the path.guenther2013-03-121-17/+21
| | | | ok deraadt@ millert@
* Improve standards conformance: ecvt(), fcvt(), gcvt(), mktemp(), ttyslot(),guenther2012-06-011-2/+10
| | | | | | | and valloc() are not in the current version, while posix_memalign() mkstemp(), and mkdtemp() are, and setstate()'s argument has lost a bogus 'const'. ok millert@ jmc@ espie@ kettenis@; ports build testing by naddy@
* tweak previous; ok millertjmc2011-01-101-3/+4
|
* mkdtemp() is present in POSIX 1003.1-2008millert2011-01-101-11/+9
| | | | Add a warning about using less than 6 Xs causing an error on some systems
* mktemp(3) can be used, but not where mkstemp(3) is an alternative. Alsonicm2011-01-071-6/+6
| | | | | | trim an inaccurate comment about its future removal. ok deraadt
* mktemp(3) (and thus mktemp(1)) no longer use the process ID whenmillert2010-12-271-3/+2
| | | | | | replacing the Xs, it is now purely random. Also replace a use of .Fn that should be .Xr. OK jmc@
* Various improvements, mainly regarding ERRORS.schwarze2010-03-221-40/+39
| | | | | | | | | | | | | * Document EINVAL and EEXIST. * Neither mkstemp nor mkdtemp use lstat, but mktemp does. * Documenting ENOTDIR is useless, it is documented in lstat(2), mkdir(2) and open(2), and it's just one thing out of several that could go wrong. * Refer to lstat(2) instead of stat(2), which is actually used here. * State that two of these functions are standardized in the XPG. * Move the sentence about mkdtemp and mkstemps to the new STANDARDS section. * Get rid of the ugly ".So Li X Sc Ns s", just use "Xs" (suggested by jmc@). tweaks and ok jmc@ millert@
* Update to match mktemp.c changesmillert2009-03-011-4/+4
|
* The process number is longer used to replace trailing 'Xs'.tobias2009-01-101-4/+3
| | | | ok jmc, millert
* convert to new .Dd format;jmc2007-05-311-2/+2
|
* grammar,espie2007-05-101-2/+2
| | | | okay jmc@
* fix the mkstemps .Fn;jmc2006-01-061-2/+2
|
* in code fragment:jmc2006-01-061-14/+14
| | | | | | | | | | | - allocate enough space for sfn. - remove variable initializations that get overwritten anyway. - change spaces to tabs. - change "sizeof sfn" to "sizeof(sfn)". - change fprintf(stderr) to warn(). from ray lai; ok millert
* - typos, punctuation, spacing, macro, layout, etc. fixesjaredy2005-07-261-6/+5
| | | | | | - avoid first person ok jmc
* note error return of mkstemps; ok millert, jmcjaredy2005-07-261-3/+5
|
* mktemp(3) et al. go in stdlib.h, not unistd.h. While there be moremillert2005-05-271-11/+27
| | | | explicit about mktemp(3) in the man page.
* typo;jmc2003-10-171-2/+2
|
* nonstandard->non-standardavsm2003-07-021-2/+2
| | | | jmc@ ok
* 6 X's -> 10 X's in all examples, per avsm's idea, millert agreespvalchev2003-07-021-4/+4
|
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-021-6/+2
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* - section reorderjmc2003-06-011-88/+88
| | | | | - kill unnecessary .Ns macros - add some man page section numbers to .Xr's
* typos;jmc2003-05-031-2/+2
|
* fifo -> FIFOjmc2003-04-021-2/+2
| | | | ok millert@
* .Xr's;jmc2003-03-061-2/+2
| | | | | | typos in man page section ok deraadt@
* teach people about strlcpy, not strcpyderaadt2003-02-161-2/+2
|
* Various repairs, mostly to get rid of short lines.aaron2000-12-241-6/+4
|
* use strlcpy in the examplederaadt2000-11-221-2/+2
|
* The mkstemp() function appeared in 4.4BSD; todd@aaron2000-09-111-2/+5
|
* Flesh out all of the stdio man pages.aaron2000-04-201-21/+13
|
* Repairs, mostly removing hard sentence breaks.aaron2000-04-181-3/+3
|
* repair nroff botchderaadt2000-01-271-3/+3
|
* Use .Va macro when referring to the global variable errno.aaron2000-01-221-3/+5
|
* Tidying and spellingpjanzen1999-09-141-13/+18
|
* paste'o away!todd1999-08-111-3/+3
|
* some NAME section cleanupaaron1999-06-061-3/+6
|
* kill some old macrosaaron1999-05-251-2/+2
|
* Cleanup xrefs under SEE ALSO. Specifically:alex1999-05-161-3/+3
| | | | | | | - Sort xrefs by section, and then alphabetically. - Add missing commas between xref items. - Remove commas from the last xref entry. - Remove duplicate entries.
* morederaadt1998-12-151-7/+22
|
* flesh out this man page with some examplesderaadt1998-12-151-1/+64
|
* add mkstemp(char *template, int suffixlen) interfacederaadt1998-06-301-2/+33
|
* oopsderaadt1998-03-161-2/+2
|
* explain security considerations in some detailderaadt1998-03-121-2/+26
|
* at least 6 X, 10 is betterderaadt1998-03-091-1/+4
|
* .Bx Open -> .Ox 2.xmillert1998-03-071-3/+2
|
* Mention that mkdtemp() is not portable.millert1998-02-231-2/+15
|
* 1) Don't truncate the input string when a directory cannot be stat'dmillert1997-10-071-3/+1
| | | | | 2) Use traditional mktemp(3) semantics. Don't return an error if directories in the path don't exist yet for mktemp(3) only.