summaryrefslogtreecommitdiffstats
path: root/libc/unistd
Commit message (Collapse)AuthorAgeFilesLines
* merge parallel build supportMike Frysinger2005-01-251-4/+4
|
* Make certain that the prototype for fgets_unlocked is definedEric Andersen2004-12-221-0/+1
|
* Add ualarm.cEric Andersen2004-10-071-1/+1
|
* implement SuSv3 required ualarm()Eric Andersen2004-10-071-0/+19
|
* Cleanup a few of the more egregiously broken sysconf values toEric Andersen2004-07-151-31/+15
| | | | | | | | actually match reality. In particular, _SC_GETPW_R_SIZE_MAX and _SC_GETGR_R_SIZE_MAX were causing us problems with programs such as libglib, since they were always returning -1, which is a bit smaller than the actual passwd and group max buffer sizes. -Erik
* Sigh... Fall back to alloca() if munmap is broken (uClinux).Manuel Novoa III2004-02-171-8/+6
|
* s/UCLIBC_HAS_MMU/ARCH_HAS_MMU/gEric Andersen2004-01-163-4/+4
|
* Oops... Seems I forgot an else...Manuel Novoa III2004-01-121-0/+1
|
* Redo the exec functions to comply with SUSv3.Manuel Novoa III2004-01-028-208/+332
|
* Make sleep behave itself properly inthe presence of SIGCHLDEric Andersen2003-12-302-11/+8
|
* oopsEric Andersen2003-12-221-1/+1
|
* implement the worthless cuserid() function we claim to support.Eric Andersen2003-12-221-0/+8
| | | | | This isn't in SuSv3, but is expected by at least some apps such as emacs...
* Rip the guts out of the dynamically generated sysconf.c, and live with a simpleEric Andersen2003-11-053-221/+4
| | | | | static version. This will need further work later on, but should do the job for the time being,
* Peter Kjellerstedt writes:Eric Andersen2003-10-181-1/+1
| | | | | | | rm.patch: * Define $(RM) as rm -f in Rules.mak and test/Rules.mak (this is the same definition as gmake uses by default). * Change all occurrences of rm and rm -f into $(RM).
* Add back in table-less ctype funcs for those interested in minimizingManuel Novoa III2003-09-082-1/+139
| | | | | | static build sizes and not needing wchar support. Add in a SUSv3 getopt as an option for those not needing gnu getopt. Again, mainly for the static linking crowd.
* Add a new *scanf implementation, includeing the *wscanf functions.Manuel Novoa III2003-08-011-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Should be standards compliant and with several optional features, including support for hexadecimal float notation, locale awareness, glibc-like locale-specific digit grouping with the `'' flag, and positional arg support. I tested it pretty well (finding several bugs in glibc's scanf in the process), but it is brand new so be aware. The *wprintf functions now support floating point output. Also, a couple of bugs were squashed. Finally, %a/%A conversions are now implemented. Implement the glibc xlocale interface for thread-specific locale support. Also add the various *_l(args, locale_t loc_arg) funcs. NOTE!!! setlocale() is NOT threadsafe! NOTE!!! The strto{floating point} conversion functions are now locale aware. The also now support hexadecimal floating point notation. Add the wcsto{floating point} conversion functions. Fix a bug in mktime() related to dst. Note that unlike glibc's mktime, uClibc's version always normalizes the struct tm before attempting to determine the correct dst setting if tm_isdst == -1 on entry. Add a stub version of the libintl functions. (untested) Fixed a known memory leak in setlocale() related to the collation data. Add lots of new config options (which Erik agreed to sort out :-), including finally exposing some of the stripped down stdio configs. Be careful with those though, as they haven't been tested in a long time. (temporary) GOTCHAs... The ctype functions are currently incorrect for 8-bit locales. They will be fixed shortly. The ctype functions are now table-based, resulting in larger staticly linked binaries. I'll be adding an option to use the old approach in the stub locale configuration.
* Sleep was returning the wrong value because:David McCullough2003-05-141-2/+4
| | | | | | | | | * nanosleep returns the remaining time, not the time slept * nanosleep only fills out the remaining time if it returns -1 (ie., the sleep was interrupted) Fix from Paul Dale <pauli@snapgear.com>
* Change some variable names so we are more consistant with whatEric Andersen2002-12-041-7/+7
| | | | | the linux kernel uses. -Erik
* For now, always claim we have exactly one cpu. It shouldEric Andersen2002-12-041-2/+4
| | | | generally be the truth...
* Oops. As Pavel Roskin notes, I forgot to conditionally includeEric Andersen2002-11-211-0/+2
| | | | | the __fsetlocking call in libc/unistd/usershell.c. It should be wrapped and only included if __UCLIBC_HAS_THREADS__ is defined.
* Rework usershell.c, as the old one was packed full of unhandledEric Andersen2002-11-201-43/+114
| | | | | | failures, returned stack allocated memory, and misbehaved itself in a number of other annoying ways, -Erik
* Patch from Luc Van Oostenryck to fix a buffer overflowEric Andersen2002-11-151-1/+1
| | | | in getlogin_r
* Ok, this commit is _huge_ and its gonna change the world. I'veEric Andersen2002-10-314-3/+8
| | | | | | | | | | | | | | | 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
* Add SUSv3 function getsubopt.Manuel Novoa III2002-09-192-1/+73
|
* Avoid bad things happening on macro expansion...Eric Andersen2002-08-081-2/+7
| | | | -Erik
* rework getopt. no read need to split this one up sinceEric Andersen2002-08-072-583/+502
| | | | the parts are so tightly coupled.
* Clean up CLK_TCK situation. clock() and sysconf() now use anManuel Novoa III2002-07-151-4/+5
| | | | | | arch-specific constant value defined in bits/uClibc_clk_tck.h. Default is 100 (common/bits) but alpha uses 1024 following glibc. Override per arch as necessary.
* Cleanup the getcwd implementation (again) since I broke itEric Andersen2002-06-182-132/+1
| | | | | | | 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
* Eliminate all the pointless globals from getcwd(). DefaultEric Andersen2002-06-181-69/+65
| | | | | to using the getcwd syscall instead, when it is present. -Erik
* Prevent buffer overflowEric Andersen2002-06-151-6/+7
|
* Oops. Forgot to check this in. Thanks Martin Volf for noticingEric Andersen2002-06-091-1/+1
| | | | -Erik
* Patch from Robert Griebl <griebl@gmx.de> to supportEric Andersen2002-05-311-0/+63
| | | | getusershell() and friends.
* Fixed broken shell syntax.David McCullough2002-04-111-1/+1
|
* Only set no buffering if we opened the file. Also, don't bother restoringManuel Novoa III2002-04-091-4/+5
| | | | buffering since we will close the file in that case anyway.
* Per discussion on the mailing list, fix getpass properly.Eric Andersen2002-04-091-2/+7
| | | | -Erik
* Faster implementation from Miles BaderEric Andersen2002-04-061-13/+13
|
* Patch from Axel Barnitzke <barney@xkontor.com> to fixupEric Andersen2002-04-051-2/+2
| | | | a problem with getpass() echoing passwords...
* Add the xopen swab() function, contributed by Kensuke Otake ↵Eric Andersen2002-04-032-1/+19
| | | | <kensuke@phreaker.net>
* Fix indentingEric Andersen2002-01-111-21/+21
|
* Be more carefull about erroring out of shell fragments. Try toEric Andersen2002-01-091-4/+6
| | | | enable -falign-functions if avilable.
* Make getopt act the same regardless whether the app was staticly linkedEric Andersen2002-01-034-977/+841
| | | | | or dynamicly linked. Obeys the principle of least surprise. -Erik
* Take the shorcut version, which is good enough forEric Andersen2002-01-021-2/+2
| | | | | nearly all normal usage. -Erik
* Fix usleep to work correctly. Fix sleep behavior in theEric Andersen2002-01-023-16/+113
| | | | | presence of SIGCHLD. -Erik
* Update my email address. I am no longer andersen@lineo.comEric Andersen2001-12-193-23/+20
|
* Silly us. Don't try to free alloca'd memory.Eric Andersen2001-11-243-9/+0
| | | | -Erik
* pathconf can't use fpathconf or it will block opening FIFOsEric Andersen2001-11-211-7/+209
|
* Oops. Lets try that again.Eric Andersen2001-11-201-0/+2
|
* Fix up pathconf and friend so that test suits can workEric Andersen2001-11-203-25/+289
|
* Can't use CLK_TCK in here since /usr/include/bits/time.h nowEric Andersen2001-11-201-7/+6
| | | | | defines that as __sysconf(_SC_CLK_TCK) causing infinite recursion. -Erik
* Disable fast search by default (doesn't work on coda for example)Eric Andersen2001-11-051-0/+11
|