summaryrefslogtreecommitdiffstats
path: root/libc
Commit message (Collapse)AuthorAgeFilesLines
...
* Add two missing glibc wide string funcs as well as OpenBSD string funcsManuel Novoa III2002-07-052-9/+97
| | | | strlcat and strlcpy.
* Only define __uwchar_t if wide char support is enabled.Manuel Novoa III2002-07-051-1/+1
|
* Add a weak to make apache happyEric Andersen2002-07-031-1/+1
| | | | -Erik
* Enable WCHAR support for C/POSIX stub locales.Manuel Novoa III2002-07-0317-243/+1150
| | | | | | Implemented unformatted wide i/o functions. (ungetwc still needs testing) Fix a few bugs in wchar.c. Modifications for bcc/elks support.
* Make clone work, part 2.Eric Andersen2002-07-032-1/+30
| | | | -Erik
* Fix clone so it compilesEric Andersen2002-07-032-8/+20
| | | | -Erik
* Oops. missed a spotEric Andersen2002-07-021-0/+1
| | | | -Erik
* openlog could deadlock when called from vsyslog, soEric Andersen2002-07-021-1/+1
| | | | | allow recursive locking, -Erik
* This patch, from Ronald Wahl <rwa@peppercon.com>, fixes theEric Andersen2002-07-011-5/+5
| | | | | spots where I screwed up and forgot to fix realloc to use free_unlocked() instead of free(). Thanks Ronald!
* Several cleanups/fixes from Marshall M. Midden <m4@brecis.com>Eric Andersen2002-06-263-1/+3
|
* Fix support for 2.0.x linux kernels. Oops.Eric Andersen2002-06-211-2/+2
| | | | -Erik
* Cleanup the function pointer comparisionsEric Andersen2002-06-201-7/+7
| | | | -Erik
* Fix DNS resolution so that it once again works. I'd broken itEric Andersen2002-06-201-5/+22
| | | | | when adding some locking code. -Erik
* Oops. Looks like I broke ttyname. Fix it.Eric Andersen2002-06-191-5/+5
| | | | -Erik
* Cleanup the getcwd implementation (again) since I broke itEric Andersen2002-06-184-11/+46
| | | | | | | last night. Restore malloc-ing when buf=NULL for the syscall version... Move getcwd to libc/sysdeps/linux/common and out of syscalls.c so there is just one getcwd.o object present. -Erik
* Make sure the sccsid tags never get compiled in.Eric Andersen2002-06-1826-30/+30
| | | | -Erik
* Eliminate all the pointless globals from getcwd(). DefaultEric Andersen2002-06-182-70/+72
| | | | | to using the getcwd syscall instead, when it is present. -Erik
* Add in thread locking for tzset() and associated data. Also, fix a bug soManuel Novoa III2002-06-181-5/+42
| | | | that localtime_r() calls tzset() to initialize/update timezone data.
* Kill kernel_version.c, which is completely meaningless crapEric Andersen2002-06-182-54/+1
| | | | | and didn't even work. -Erik
* Rework, reduce the size, add proper lockingEric Andersen2002-06-189-529/+342
| | | | -Erik
* Remove obsolete files.Manuel Novoa III2002-06-182-110/+0
|
* Fix perror() and printf("%m") to not call strerror(), as required by theManuel Novoa III2002-06-185-8/+59
| | | | | | | | | standards. Temporarily added a utility function to wrap Erik's strerror_r so that "Unknown error xxx" strings can be generated for errno's which cause strerror_r to fail. That utility function will eventually be merged in with the strerror/strerror_r functions when I change over to optionallly mmap'ing the system error strings to provide for lower mem comsumption on non-MMU platforms, as well as locale-specific system error messages.
* Silly name changeEric Andersen2002-06-181-4/+3
|
* Rework and kill pointless static variableEric Andersen2002-06-181-28/+25
| | | | -Erik
* Fix thread locking so it worksEric Andersen2002-06-181-45/+20
| | | | -Erik
* Fix locking. KillEric Andersen2002-06-181-5/+18
|
* Some commentaryEric Andersen2002-06-181-5/+4
| | | | -Erik
* Patch from Martin Proulx <mproulx@okiok.com> to supportEric Andersen2002-06-1817-0/+1098
| | | | the i960 architecture.
* kill cruftEric Andersen2002-06-171-5/+4
|
* Make things more re-entrany, kill some cruft.Eric Andersen2002-06-175-440/+385
| | | | -Erik
* Re-backport all the rpc stuff from glibc 2.2.5. This allows us to make thisEric Andersen2002-06-1745-5018/+8139
| | | | | | | | junk (and I do mean that ;-) thread safe without undue pain. Adds 12k worth to the code size I'm afraid, but since I never use NFS and therefore never include this stuff, I guess thats acceptable. I still need to enable the multi-threaded bits... -Erik
* Implement strerror_r. This is per SuSv3, not glibc which doesEric Andersen2002-06-171-18/+39
| | | | | something different. -Erik
* Shuffle the logic around a bitEric Andersen2002-06-171-56/+49
| | | | -Erik
* Shuffle the logic around a bitEric Andersen2002-06-172-54/+62
|
* Some cleanups so utmp/wtmp behaves. Fix potential use ofEric Andersen2002-06-173-90/+210
| | | | | | uninitialized memory. Prepare to reentrantify the utmp stuff. -Erik
* Ah kant spel mi nameEric Andersen2002-06-171-1/+1
|
* Add support for sigtimedwait and sigwaitinfoEric Andersen2002-06-171-0/+39
| | | | -Erik
* Commit the new time stuff, even though I haven't made it threadsafe yet.Manuel Novoa III2002-06-1722-2204/+1881
| | | | At least people can play with it. Also, fix a buglet in setenv.c.
* time() is implemented in syscalls.cEric Andersen2002-06-152-39/+1
| | | | -Erik
* Implement ttyname_rEric Andersen2002-06-151-28/+50
| | | | -Erik
* Prevent buffer overflowEric Andersen2002-06-151-6/+7
|
* Fix pthreads to use the rt signals if presentEric Andersen2002-06-131-43/+21
| | | | -Erik
* Don't use fixed buffers if we have an mmu such that mallocEric Andersen2002-06-121-8/+15
| | | | | and realloc are cheap. -Erik
* Silence warnings, clean things up.Eric Andersen2002-06-1223-314/+285
| | | | -Erik
* Cleanup the mess, remove now obsolete filesEric Andersen2002-06-1217-1041/+13
| | | | -Erik
* Write a new strxfrm that doesn't make function calls. Uses the same logic asEric Andersen2002-06-122-9/+49
| | | | | | before but unrolls the func calls and thereby eliminates some steps and some bytes. Now adds just 40 bytes to .text. -Erik
* Yipe. As Joseph Chiu noticed, sockvec is supposed to be an int*Eric Andersen2002-06-121-1/+1
| | | | not an int.
* Revert Erik's patch to vasprintf and fix the real issue.Manuel Novoa III2002-06-112-1/+1
| | | | | The writer for the stream returned by open_memstream was supposed to keep the buffer nul-terminated. I apparently left out a statement.
* This patch from Rik Faith <faith@alephnull.com> fixes a potentiallyEric Andersen2002-06-111-0/+1
| | | | | | | non-NULL terminated string problem that could result from the use of open_memstream(). Manuel may have a better solution, but this one works for me, since with this plus the popen fix I can now run things like gdb properly. Thanks Rik!
* A patch from Ted Phelps to fix popen(). Ted writes:Eric Andersen2002-06-111-1/+1
| | | | | | | | | There is a minor bug in the implementation of popen(). In the case where the file descriptor returned from its call to pipe() is the same as the file descriptor that it is meant to be (where the dup2() branch is not taken), the end of the pipe is still closed by close(reading) even though it shouldn't be. Thanks Ted!