summaryrefslogtreecommitdiffstats
path: root/libc/sysdeps/linux
Commit message (Collapse)AuthorAgeFilesLines
* Fix a couple of issues in configurations I hadn't tested.Manuel Novoa III2004-05-071-23/+7
|
* Fix screwed up formattingEric Andersen2004-05-051-20/+20
|
* Jeroen Dobbelaere writes:Eric Andersen2004-05-051-1/+2
| | | | | | | | | | Because variables are linked to fixed registers, there is a problem in : (*__errno_location())=(-_r0); As __errno_location() uses r0 to return the address of the errno location, the negated address will be assigned instead of the error code. Attached patch will resolve this.
* It turns out that asm/reg.h is missing from the 2.6.x kernel headers,Eric Andersen2004-04-231-2/+167
| | | | | which prevents libthread_db (used by gdb) from compiling. Include a copy within include/sys/user.h for mips, per what was done in glibc.
* Cope with gcc 3.4's more aggressive persuit of attribute unusedEric Andersen2004-04-2010-28/+28
|
* Fix typo.Manuel Novoa III2004-04-141-1/+1
|
* Per patch from Stefan Holst, do not try to compile theseEric Andersen2004-03-194-0/+8
| | | | syscalls if they are not supported.
* Patch from Stefan Holst to fix argv[0]Eric Andersen2004-03-191-5/+5
|
* Based on a patch from Alexandre Oliva, allow uClibc to compileEric Andersen2004-03-191-0/+2
| | | | with __NR_mmap is not available (i.e. only __NR_mmap2)
* Alexandre Oliva writes:Eric Andersen2004-03-182-1/+42
| | | | | I added this function after I posted the last version of the FR-V patch. Add syscall.c.
* 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.