summaryrefslogtreecommitdiffstats
path: root/libc/sysdeps/linux
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 naming of '_mmap' to 'mmap' so it will properly overrideEric Andersen2004-02-182-1/+1
| | | | the symbol in common.
* Alexandre Oliva writes:Eric Andersen2004-02-1828-0/+2266
| | | | | | | | | | | | | | | | | | | | This patch adds code to uClibc to support a new ABI designed for the FR-V architecture, that enables text segments of executables and shared libraries to be shared by multiple processes on an OS such as uClinux, that can run on FR-V processors without an MMU. Patches for binutils and GCC have just been posted in the corresponding mailing lists. The binutils patch was approved, but there's one additional patch pending review, that I posted this week. An updated GCC patch will be posted to gcc-patches@gcc.gnu.org as soon as I complete testing (I used a known-good compiler to test the uClibc patch below). Since the existing dynamic loader code didn't support independent relocation of segments, it required changes that were somewhat extensive. I've added a number of new machine-specific macros to try to keep the platform and ABI-specific details outside the generic code. I hope this is not a problem.
* Fixup fdatasync on alpha, thanks to Alan HourihaneEric Andersen2004-02-171-0/+7
|
* Generic fork works. Use it instead since this didn't handle errno_location.Manuel Novoa III2004-02-152-66/+1
|
* Oops.Eric Andersen2004-02-151-1/+2
|
* Mips can use the generic vforkEric Andersen2004-02-152-31/+1
|
* Cris can use the generic vforkEric Andersen2004-02-152-12/+1
|
* This should not be inlined. This should probably use aEric Andersen2004-02-151-2/+2
| | | | weak alias as well...
* Fixup fork implementation to provide the __libc_fork symbolEric Andersen2004-02-152-5/+7
|
* Use the generic fork implementation on sh64Eric Andersen2004-02-152-36/+1
|
* Add missing mips specific include/sys/user.hEric Andersen2004-02-121-0/+52
|
* 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
|
* Fix completely hosed up formattingEric Andersen2004-02-061-10/+10
|
* Sigh. The 2.6.x kernel removed '__kernel_dev_t' and renamed it asEric Andersen2004-02-0614-0/+17
| | | | | | | | | '__kernel_old_dev_t'. And of course there is no good way to know which is in use except checking linux/version.h. Grumble. This is rather lame, but for now, define __kernel_old_dev_t to be the same as __kernel_dev_t. This will want to be revisited soon. -Erik
* Patch from Alan Hourihane <alanh@fairlite.demon.co.uk> for building alpha.Manuel Novoa III2004-02-052-11/+10
|
* Use 'mmap.c' instead of '_mmap.c'Eric Andersen2004-02-054-9/+9
|
* Andrew May writes:Eric Andersen2004-01-303-2/+5
| | | | | | 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.
* Oleksandr G. Zhadan writes:Eric Andersen2004-01-241-0/+11
| | | | | | | | | | Hi Eric, The attached diff file includes BUS_ISA fix for kernel since 2.4.23/ Kind regards, Oleks
* 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-21166-2370/+3100
| | | | -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
|
* Add __data_start needed by boehm garbage collector, in turn needed by libgcj.Manuel Novoa III2004-01-171-0/+4
|
* s/UCLIBC_HAS_MMU/ARCH_HAS_MMU/gEric Andersen2004-01-164-12/+12
|
* And just like that, clone is now fixed.... Previously theEric Andersen2004-01-031-26/+38
| | | | | error handling code was mostly broken. -Erik
* oopsEric Andersen2004-01-031-6/+0
|
* Minor changesEric Andersen2004-01-031-13/+24
|
* Peter S. Mazinger writes:Eric Andersen2004-01-024-2/+133
| | | | | | | | | | | | | | | | | | | 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
* rohde at soap dot adsl dot dk writes:Eric Andersen2004-01-021-1/+1
| | | | | | | | The macro to do some floating point checks in libc/sysdeps/linux/powerpc/setjmp.S is incorrect. The following should fix it. Same applies to uClibc/libc/sysdeps/linux/powerpc/__longjmp.S Hope there aren't other files I've missed :)
* rohde at soap dot adsl dot dk writes:Eric Andersen2004-01-021-1/+1
| | | | | The macro to do some floating point checks in libc/sysdeps/linux/powerpc/setjmp.S is incorrect. The following should fix it.
* 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.
* Paul Mundt <lethal@linux-sh.org> writes:Eric Andersen2003-12-051-0/+96
| | | | | | | | | | | | | This patch adds the libpthread backend bits for sh64. As noted previously, we can't inline things like the testandset() in pt-machine.h as we need to use a completely different ISA / CFLAGS in order for this to work. As a result, this patch is somewhat of a RFC as well to see what people think of the libpthread/linuxthreads/sysdeps Makefile approach, etc. The approach I've taken currently has been to provide a sysdeps/Makefile with a note that TARGET_ARCHs that want build rules can simply add themselves into the list of matching architectures to add to the subdir rule for. This probably isn't the cleanest solution, but it's quite transparent and works quite well.
* Fix arm profiling support, which was accidentally removedEric Andersen2003-12-041-0/+6
|
* Lethal noticed that the generated file gmon-start.S was notEric Andersen2003-12-034-0/+8
| | | | being cleaned up.
* Patch from lethal, adding syscall() to the sh64 portEric Andersen2003-12-032-1/+25
|
* remove some garbageEric Andersen2003-12-031-1/+0
|
* Add a syscall() implementation using a hacked version of the syscall6 macro.Manuel Novoa III2003-12-022-1/+26
| | | | Untested, but syscall() is needed by busybox for pivot_root at least.
* Put in a dummy reference to main so busybox will link.Manuel Novoa III2003-12-021-0/+6
|
* Patch by "Bradley D. LaRonde" <brad@ltc.com> for boehm garbage collector.Manuel Novoa III2003-11-291-0/+3
|
* Another missing mips function, needed by the boehm garbage collector.Manuel Novoa III2003-11-282-1/+32
|