summaryrefslogtreecommitdiffstats
path: root/libc/misc/internals/tempname.c
Commit message (Collapse)AuthorAgeFilesLines
* tempname: fix int precision warningsMike Frysinger2011-02-221-1/+4
| | | | | | | | | | | The printf precision takes an integer, not a size_t. Otherwise we get: libc/misc/internals/tempname.c: In function '___path_search': libc/misc/internals/tempname.c:116: warning: field precision should have type 'int', but argument 3 has type 'size_t' field precision should have type 'int', but argument 5 has type 'size_t' Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* make the sem_open changes actually compileAustin Foxley2009-11-091-1/+1
| | | | | | __gen_tempname now needs to not be hidden so libpthread can get at it Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* Extend __gen_tempname with mode argumentMikhail Gusarov2009-11-091-7/+7
| | | | | | | | | | sem_open(3) needs to create a temporary file in a way which can't be efficiently implemented in terms of POSIX API. Extend __gen_tempname with mode_t mode argument in order to ease sem_open implementation. Signed-off-by: Mikhail Gusarov <dottedmag@dottedmag.net> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* convert // comments to /**/; remove empty #if/#endif pairs. no code changesDenys Vlasenko2009-09-181-3/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* trim Experimentally off and uncommented hiddenBernhard Reutner-Fischer2009-09-181-11/+0
| | | | | | | | sed -i -e '/Experimentally off - /d' $(grep -rl "Experimentally off - " *) sed -i -e '/^\/\*[[:space:]]*libc_hidden_proto(/d' $(grep -rl "libc_hidden_proto" *) should be a nop Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* Last portion of libc_hidden_proto removal.Denis Vlasenko2008-11-201-2/+2
| | | | | Appears to build fine (several .configs tried)
* next portion of libc_hidden_proto removalDenis Vlasenko2008-11-201-6/+6
|
* libc_hidden_proto removal, just a few functionsDenis Vlasenko2008-11-181-1/+1
|
* - use c89-style commentsBernhard Reutner-Fischer2008-10-031-1/+1
| | | | Closes issue #5194
* Moving libc_hidden_proto's into #ifdef UCLIBC_INTERNAL blockDenis Vlasenko2008-05-191-2/+2
| | | | | | | | | in string.h and strings.h. This caught unguarded string ops in libc/inet/ethers.c __ether_line_w() function. I will wait for fallout reports for a week or so, then continue converting more libc_hidden_proto's.
* Nickolai Zeldovich writes: if the temp name already exists, then the retry ↵Mike Frysinger2007-05-061-10/+9
| | | | code does not create a new temp name as the code to do so is outside of the retry loop
* Do not build *64 and llseek, correct some failure when LFS is disabledPeter S. Mazinger2006-01-271-0/+2
|
* hidden_def/hidden_proto: convert all users (I hope) termios split, add some ↵Peter S. Mazinger2006-01-141-18/+25
| | | | missing headers, other jump relocs removed
* touchup code a bit and shrink it by a few bytesMike Frysinger2006-01-081-34/+31
|
* Convert internal users of chmod/*stat*, minimize change for __strsepPeter S. Mazinger2005-12-131-2/+2
|
* macro away the last parameter since we dont actually utilize it (saves a few ↵Mike Frysinger2005-12-101-5/+5
| | | | bytes) and fix signed warnings
* Implement hidden poll, switch user to hidden *printf/*scanf/pollPeter S. Mazinger2005-12-091-1/+1
|
* Use internal versionsPeter S. Mazinger2005-12-081-0/+2
|
* More hiding, including __mempcpyPeter S. Mazinger2005-12-031-1/+1
|
* Hide mostly used functionsPeter S. Mazinger2005-12-011-10/+12
|
* 100 JUMP relocs less (remaining 431) by hiding internally used onesPeter S. Mazinger2005-11-261-1/+1
|
* Some more hidden internalsPeter S. Mazinger2005-11-261-1/+1
|
* In Bug 116, dicksnippe writes:Mike Frysinger2005-04-161-3/+32
| | | | | | | | | | uClibc's mkstemp/mktemp tries to read /dev/urandom (or /dev/random) to generate random contents for the .XXXXXX part of its argument. In a chrooted environment /dev/[u]random might not be available. Thus the mkstemp call fails. Add back in the braindamaged gettimeofday/getpid code, but only as a fallback for when reading /dev/[u]random fail for whatever reasons.
* Oops. Missed a spot.Eric Andersen2004-06-121-1/+1
|
* scrap the goofy time + getpid() based "randomness" and useEric Andersen2004-06-061-28/+35
| | | | the real thing.
* Ok, this commit is _huge_ and its gonna change the world. I'veEric Andersen2002-10-311-1/+1
| | | | | | | | | | | | | | | been working on a new config system on and off for about 6 months now, but I've never been fully satisfied. Well, I'm finally am happy with the new config system, so here it is. This completely removes the old uClibc configuration system, and replaces it with an entirely new system based on LinuxKernelConf, from http://www.xs4all.nl/~zippel/lc/ As it turns out, Linus has just merged LinuxKernelConf into Linux 2.5.45, so it looks like I made the right choice. I have thus far updated only x86. I'll be updating the other architectures shortly. -Erik
* Some commentaryEric Andersen2002-06-181-5/+4
| | | | -Erik
* Remove function declartions from include/features.h, createEric Andersen2002-04-011-0/+1
| | | | | a separate header file for those, and fixup references. -Erik
* Rework __gen_tempname() to better match glibc, and add mkstemp64(),Eric Andersen2002-03-311-42/+64
| | | | | which is needed for busybox ash when using largefile support. -Erik
* Swap in the new stdio code.Manuel Novoa III2002-03-121-14/+23
|
* Update temp file handling and use a single function to do allEric Andersen2001-04-181-0/+187
the heavy lifting (most of the heavy lifting stolen from glibc, but reduced a bit).