summaryrefslogtreecommitdiffstats
path: root/libc/sysdeps/linux/common
Commit message (Collapse)AuthorAgeFilesLines
...
* Based on a patch from Alexandre Oliva, remove all reference to 'bzero' (whichEric Andersen2004-03-181-12/+12
| | | | | is not a SuSv3 symbol). Rather than using __bzero internally per Alexandre's original patch, use memset instead.
* Cope gracefully with missing module syscallsEric Andersen2004-03-124-6/+21
|
* Fixup fdatasync on alpha, thanks to Alan HourihaneEric Andersen2004-02-171-0/+7
|
* New stdio core. Should be more maintainable. Fixes a couple of bugs.Manuel Novoa III2004-02-113-391/+441
| | | | | | | | Codepaths streamlined. Improved performance for nonthreaded apps when linked with a thread-enabled libc. Minor iconv bug and some locale/thread related startup issues fixed. These showed up in getting a gcj-compiled java helloworld app running. Removed some old extension functions... _stdio_fdout and _stdio_fsfopen.
* Fix bug from the syscall reorganization, detected by python's test_poll.py.Manuel Novoa III2004-02-111-3/+3
| | | | | | | The #ifdef __NR_poll test was failing because it was done before any includes. Hence, the emulation was always being used. NOTE: The emulation fails a couple of tests in test_poll.py!
* Do not include the create_module syscall if it is not presentEric Andersen2004-02-101-0/+3
|
* Patch from Alan Hourihane <alanh@fairlite.demon.co.uk> for building alpha.Manuel Novoa III2004-02-051-4/+2
|
* Andrew May writes:Eric Andersen2004-01-301-1/+3
| | | | | | Here are some simple fixes for things that broke for PPC with the recent syscall cleanup. I am not sure they are correct but they seem pretty trivial.
* Sort all the filesEric Andersen2004-01-211-45/+34
|
* Split up syscalls.c, since it had grown to be quite large and ugly.Eric Andersen2004-01-21159-2369/+3097
| | | | -Erik
* Add pollEric Andersen2004-01-211-1/+1
|
* Move poll to its own file, rather than being only half in its own fileEric Andersen2004-01-212-10/+13
|
* Massive formatting cleanup, making it easier to parseEric Andersen2004-01-211-431/+503
|
* s/UCLIBC_HAS_MMU/ARCH_HAS_MMU/gEric Andersen2004-01-162-10/+10
|
* Peter S. Mazinger writes:Eric Andersen2004-01-022-0/+100
| | | | | | | | | | | | | | | | | | | Hello Erik! I have made some cosmetical changes to the files, removed the added SCRT=-fPIC option from building the crt0.S file (but it is a requirement to build them with -fPIC), and changed some comments. I have left the ldso.c patch with PIE_SUPPORT ifdefs, but consider applying it w/o them (see some earlier comment from PaX Team on this issue, as it is considered a bug). To have it work correctly, you'll also need removing COMPLETELY_PIC. One thing is missing: PIE_SUPPORT should be usable only for i386 (for now). Also added the support for propolice protection (that works for me and catches memcpy/strcpy attacks (but needs a special gcc version). Thanks, Peter
* The checking Erik added seems to be unnecessary. Without it, I am notManuel Novoa III2004-01-021-72/+5
| | | | seeing any LTP failures.
* Minor fix from upstream glibc.Manuel Novoa III2004-01-021-4/+8
|
* Fir errno return when the file/path is NULL or points to an empty string.Eric Andersen2003-12-311-6/+6
| | | | -Erik
* Add extra checks for sigprocmask and rt_sigprocmask syscalls.Eric Andersen2003-12-311-4/+34
| | | | | | | The rt_sigprocmask syscall has broken error handling in 2.4.x kernels, while the sigprocmask syscall appears to get things right. Regardless we should be extra careful, and add these checks.
* Fix a long-standing bug with pthreads. A couple of linuxthreads filesManuel Novoa III2003-12-272-3/+42
| | | | | | | | | | | | | | | | were including libc-lock.h which had a bunch of weak pragmas. Also, uClibc supplied a number of no-op weak thread functions even though many weren't needed. This combined result was that sometimes the functional versions of thread functions in pthread would not override the weaks in libc. While fixing this, I also prepended double-underscore to all necessary weak thread funcs in uClibc, and removed all unused weaks. I did a test build, but haven't tested this since these changes are a backport from my working tree. I did test the changes there and no longer need to explicitly add -lpthread in the perl build for perl to pass its thread self tests.
* In unistd.h, getpgrp() is redirected to __getpgid(), butEric Andersen2003-12-221-1/+3
| | | | we did not have a __getpgid(). Fix that.
* If __NR_ftruncate64 isn't defined, do the best we can.Manuel Novoa III2003-11-171-5/+19
|
* Fix a build problem when using 2.2.x kernel headers.Manuel Novoa III2003-11-161-4/+4
|
* Add support for missing ntp_gettime and ntp_adjtimeEric Andersen2003-11-123-1/+34
|
* Fix for the last "fix".Manuel Novoa III2003-11-111-0/+2
|
* Protect some header inclusions.Manuel Novoa III2003-11-111-0/+2
|
* Fix up several errors related to filename length and errno thatEric Andersen2003-11-081-33/+118
| | | | | showed up while running the latest LTP testsuite. -Erik
* Add a utility macro.Manuel Novoa III2003-11-061-0/+4
|
* Remove erroneous trailing semicolon.Manuel Novoa III2003-11-051-1/+1
|
* last but certinaly not least, kill off initfini.cEric Andersen2003-11-051-172/+0
|
* Kill initfini.awkEric Andersen2003-11-051-47/+1
|
* Both setegid and seteuid were implemented suboptimally, such thatEric Andersen2003-11-022-3/+42
| | | | | we were unable to switch back to the original saved group/user ID. -Erik
* Be extra careful to check uid and gid converstions to kernel typesEric Andersen2003-11-021-17/+74
|
* Make the syscall locally, avoid an externEric Andersen2003-11-021-2/+6
|
* Add -msoft-float to SAFECFLAGS when necessary.Manuel Novoa III2003-10-251-0/+3
|
* Peter S. Mazinger pointed out that I missed a spot. I shouldEric Andersen2003-10-221-1/+3
| | | | stop applying patches by hand...
* Per suggestion and patch from Ken Staton, emulates poll usingEric Andersen2003-10-222-1/+196
| | | | select for older 2.0 kernels where poll is missing.
* Fix a stupid bug that caused uClibc to never provide the correctEric Andersen2003-10-201-1/+1
| | | | | | fpu_control.h header file, since the correct arch specific one was always later overwritten by the generic one. oops. -Erik
* Peter Kjellerstedt writes:Eric Andersen2003-10-181-2/+1
| | | | | | | | | | ln.patch: * Define $(LN) as ln in Rules.mak. * Change all occurrences of ln into $(LN). * Change all constructs like (cd path && ln -sf foo/file file) into $(LN) -sf foo/file path/file. The latter construct is already used in a number of places so it should not be an additional compatibility problem.
* 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).
* Peter Kjellerstedt writes:Eric Andersen2003-10-181-4/+4
| | | | | | | | | install.patch: * Define $(INSTALL) as install in Rules.mak. * Change all occurrences of install into $(INSTALL). * Change all occurrences of mkdir -p into $(INSTALL) -d. install -d is already used in a number of places so this should not be an additional compatibility problem.
* Patch from Atsushi Nemoto (with some additions):Eric Andersen2003-10-082-1/+43
| | | | | | | Current uClibc contains only one fpu_control.h and it is i386 version. This is a patch to use platform specific fpu_control.h. All new files come from glibc 2.3.2. This patch is against 0.9.21 but also can be applied to CVS as is.
* Fix "subst -g,," problem for SAFECFLAGS.Manuel Novoa III2003-09-211-1/+1
|
* Fix fcntl64 when UCLIBC_HAS_LFS is enabled, but __NR_fcntl64Eric Andersen2003-09-171-4/+4
| | | | is not defined.
* This should enabled building of uClibc locale support when using uClibc itself.Manuel Novoa III2003-09-161-4/+7
| | | | | | | | | | | | | | | | Sorry I didn't test this before the release. Please remember that the locale data generation tools are not very robust, so doing something like disabling 8-bit codeset support is likely to break things. As it stands, UTF-8 support is required, but I'm not sure I test for that. Also, you will notice a difference in the locale data generated by uClibc verses glibc. That's because the bg_BG locale specifies use of grouping in LC_NUMERIC, but supplies no grouping char. The uClibc locale code tests for and works around this (at the moment) by disabling grouping. But the result is slightly different data which ripples throughout the rest of the tables.
* Make sure that __syscall_fcntl is extern when LFSEric Andersen2003-09-091-0/+2
| | | | is disabled
* Add back in table-less ctype funcs for those interested in minimizingManuel Novoa III2003-09-082-107/+333
| | | | | | 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.
* Use __libc_fork for the uClinux fork stubEric Andersen2003-09-081-2/+2
|
* mjn3 pointed out that my brain was not in gear....Eric Andersen2003-09-081-4/+5
|
* A few minor syscall cleanupsEric Andersen2003-09-071-47/+62
|