summaryrefslogtreecommitdiff
path: root/lib/libc/stdio/mktemp.c
Commit message (Collapse)AuthorAgeFilesLines
* MFC: Use a denser encoding to obtain a larger file namespace in mktemp()Kris Kennaway2001-01-201-25/+17
| | | | | | | and family. Notes: svn path=/stable/4/; revision=71296
* Simplify sytem call renaming. Instead of _foo() <-- _libc_foo <-- foo(),Jason Evans2000-01-271-1/+1
| | | | | | | | | | | | | | | | | | | | just use _foo() <-- foo(). In the case of a libpthread that doesn't do call conversion (such as linuxthreads and our upcoming libpthread), this is adequate. In the case of libc_r, we still need three names, which are now _thread_sys_foo() <-- _foo() <-- foo(). Convert all internal libc usage of: aio_suspend(), close(), fsync(), msync(), nanosleep(), open(), fcntl(), read(), and write() to _foo() instead of foo(). Remove all internal libc usage of: creat(), pause(), sleep(), system(), tcdrain(), wait(), and waitpid(). Make thread cancellation fully POSIX-compliant. Suggested by: deischen Notes: svn path=/head/; revision=56698
* Add three-tier symbol naming in support of POSIX thread cancellationJason Evans2000-01-121-1/+1
| | | | | | | | | points. For library functions, the pattern is __sleep() <-- _libc_sleep() <-- sleep(). The arrows represent weak aliases. For system calls, the pattern is _read() <-- _libc_read() <-- read(). Notes: svn path=/head/; revision=55837
* While comparing this with OpenBSD (ie: trying to figure out what mkstemps()Peter Wemm1999-12-111-2/+2
| | | | | | | | | | | is good for... :-)), I discovered that part of the change when mkstemps() was brought in was missed - it was missing the termination case to make sure it doesn't walk into the suffix. This isn't the same code OpenBSD has, I think this is a little better as we terminate the loop in a better spot. Notes: svn path=/head/; revision=54439
* Add unsigned char cast to isdigitAndrey A. Chernov1999-11-041-1/+1
| | | | Notes: svn path=/head/; revision=52864
* Remove UNSAFE_WARN ifdef for mktemp warning (never defined)Andrey A. Chernov1999-10-241-2/+0
| | | | | | | Use _mktemp internally Notes: svn path=/head/; revision=52466
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50476
* Add mkstemps from OpenBSD. This has been in my tree for months andWarner Losh1999-04-041-7/+24
| | | | | | | | | hasn't caused any problems until the egcs import. This fix breaks the world build, but my very next commit will remove mkstemps from the egcs build. Notes: svn path=/head/; revision=45303
* Revert last change. mkstemp() wasn't to blame, it's nvi. However,Peter Wemm1998-10-201-21/+5
| | | | | | | mkstemp() is not behaving as documented. Notes: svn path=/head/; revision=40540
* Stop mk*temp() from being pathologically stupid in the face of a umask(0);Peter Wemm1998-10-201-5/+21
| | | | | | | | | | There are other ways to fix this than wrapping _gettemp(), but this was the most convenient. Discovered by: bde Notes: svn path=/head/; revision=40539
* Fix a nasty flaw as a result of using the arc4random() pre-seeding ofPeter Wemm1998-04-141-2/+4
| | | | | | | | | | | leading XXX's. It could wrap an uppercase character through chars like: [ \ ] ^ _ ` in between Z and a. The backslash and back tick might be particularly nasty in a shell script context. Also, since we've been using upper-case generated values for a while now, go with the flow and use them in the pathname search rotation. Notes: svn path=/head/; revision=35191
* Fixed uninitialized pointer in previous commit. mktemp() was broken.Bruce Evans1998-03-031-5/+6
| | | | | | | | | I noticed cvs core dumps and uncleaned cvs temporary files in /tmp. Fixed ANSIisms. Notes: svn path=/head/; revision=34016
* Many security improvements from OpenBSD:Warner Losh1998-02-131-23/+70
| | | | | | | | | | | | | | implement mkdtemp improve man page for mk*temp use arc4random to seed extra XXX's randomly Optionally warn of unsafe mktemp uses From various commits by theo de raadt and Todd Miller. Obtained from: OpenBSD This should go into 2.2 after a testing period. Notes: svn path=/head/; revision=33295
* Fix raceGuido van Rooij1997-04-071-2/+2
| | | | | | | Obtained from: Keith Bostic Notes: svn path=/head/; revision=24707
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-221-1/+1
| | | | Notes: svn path=/head/; revision=22993
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-141-1/+1
| | | | | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise. Notes: svn path=/head/; revision=21673
* Suggested by: Bruce Evans, Jeffrey Hsu, Gary PalmerJames Raynard1996-06-221-4/+9
| | | | | | | | | | | | | | | | | | | | | | | | Added $Id$'s to files that were lacking them (gpalmer), made some cosmetic changes to conform to style guidelines (bde) and checked against NetBSD and Lite2 to remove unnecessary divergences (hsu, bde) One last code cleanup:- Removed spurious casts in fseek.c and stdio.c. Added missing function argument in fwalk.c. Added missing header include in flags.c and rget.c. Put in casts where int's were being passed as size_t's. Put in missing prototypes for static functions. Changed second args of __sflags() inflags.c and writehook() in vasprintf.c from char * to const char * to conform to prototypes. This directory now compiles with no warnings with -Wall under gcc-2.6.3 and with considerably less warnings than before with the ultra-pedantic script I used for testing. (Most of the remaining ones are due to const poisoning). Notes: svn path=/head/; revision=16586
* Code cleanup:-James Raynard1996-06-121-5/+4
| | | | | | | | | The usual stuff, adding missing function prototypes, argument types, return values, etc. In mktemp.c, convert pid from u_int to pid_t, and get rid of "extern int errno". Notes: svn path=/head/; revision=16336
* Minor cleanup, #include's and unused vars.Poul-Henning Kamp1995-10-221-0/+1
| | | | | | | Added compile-time warning to an old funky function. Notes: svn path=/head/; revision=11667
* BSD 4.4 Lite Lib SourcesRodney W. Grimes1994-05-271-0/+126
Notes: svn path=/cvs2svn/branches/unlabeled-1.1.1/; revision=1573