summaryrefslogtreecommitdiffstats
path: root/libc/unistd
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Erwin Authried <eauth@softsys.co.at> noticed that _XOPEN_SOURCE isEric Andersen2001-10-141-1/+2
| | | | supposed to be a number
* Update to accomodate the header file changesEric Andersen2001-09-272-3/+8
|
* This syncs things up with my local tree. Mainly changes installerEric Andersen2001-08-081-4/+1
| | | | | | issues, and syns things (as far as I am willing) with Dave Schleef's tree. We may need to go another round or so, but we do seem to be converging...
* Ok, this should finish off my massive ro-organization. The sourceEric Andersen2001-05-121-2/+1
| | | | | | | | | tree is less messy now (which helps), all libraries are placed into uClibc/lib when compiling, all libraries now use a consistant mechanism for being built, all libraries use a consistant naming scheme where the lib name includes the uClibc version number, which makes ldconfig happy and willing to work with us. -Erik
* Oops. Forgot the makefile updatesEric Andersen2001-05-101-1/+2
|
* These are needed for ash-0.3.8Eric Andersen2001-05-101-0/+59
|
* Change FILENAME_MAX to be only 255. Max filename on ext2 is 255,Eric Andersen2001-05-073-30/+33
| | | | | | | so there is no reason to allocate 4k. Change working of execvep.c per patch from Matthias Kilian <kili@outback.escape.de> so that there is not a fixed 127 byte buffer. Too easy to overflow... -Erik
* Only compile in daemon() if the target has an MMU.Eric Andersen2001-04-232-6/+6
| | | | -Erik
* Stub out fpathconf() -- FIXMEEric Andersen2001-04-201-0/+30
| | | | -Erik
* Add in a trivial getlogin implementationEric Andersen2001-04-201-0/+48
|
* Add missing header file for daemon.c, add missing functions into unistd.h.Eric Andersen2001-04-202-2/+3
| | | | | | | I still need to implement getlogin.c fpathconf.c, but they are required for IEEE Std. 1003.13-1998 POSIX_FILE_SYSTEM conformance and we don't have them yet. But we will very very soon. :-) -Erik
* Posix 1003.13 POSIX_MULTI_PROCESS specifies that execle() shouldEric Andersen2001-04-181-0/+53
| | | | | be there, so I just wrote it up. -Erik
* Fix include/errno.h to not use kernel header, and instead use bits/errno.h.Eric Andersen2001-04-062-9/+9
| | | | | | | This required we use _LIBC instead of __LIBC__ to be consistent with glibc. This had some sideffects in sys/syscalls.h. While fixing things, I made everything use __set_errno() for (eventual) thread support. -Erik
* Accomodate mmuless systems.Eric Andersen2001-04-031-0/+9
|
* Add in daemon.c, now used by busybox.Eric Andersen2001-04-032-1/+96
| | | | -Erik
* Add missed dependency. TODO: Should build gen_sysconf when cross-compiling.Manuel Novoa III2001-03-201-1/+1
|
* I think this fixes the dependancy problems. Manuel, can youEric Andersen2001-03-201-4/+12
| | | | | double check that this is what you intended? -Erik
* Patch from Jean-Yves Avenard to move the getopt globals to theirEric Andersen2001-03-054-38/+60
| | | | | | own file, since at least on SH, weak variables with initial values (.data stuff) were not working. Moving these to their own file seems to be a good way to handle it.
* Use __environ instead of the GNU extension environ.Eric Andersen2001-02-094-12/+4
| | | | -Erik
* Implement getdtablesize(), which is used by the rpc crap.Eric Andersen2001-02-091-1/+1
| | | | -Erik
* The rules to build sysconf_$(TARGET_ARCH).c were broken when crossDavid McCullough2001-01-291-1/+1
| | | | compiling.
* DIRS was not set in this makefile and could be inherited from theDavid McCullough2001-01-291-0/+4
| | | | environment.