summaryrefslogtreecommitdiffstats
path: root/libc/sysdeps/linux
Commit message (Collapse)AuthorAgeFilesLines
...
* mcontext_t shouldn't have a version argument, and fix REG_B0 definition.Bernd Schmidt2007-11-231-2/+1
|
* From Jie Zhang:Bernd Schmidt2007-11-231-3/+4
| | | | __bswap_16 could not assume that it's zero extended when an unsigned short int is loaded into the data register.
* Ignore entries of "-1" in rofixup; the linker sometimes has no choice but toBernd Schmidt2007-11-221-23/+26
| | | | create these for deleted entries in .eh_frame.
* Add Blackfin specific mmap implementation using sys_mmap2.Bernd Schmidt2007-11-222-1/+25
|
* sys/procfs.h defines a typedef for floating point registers that references anBernd Schmidt2007-11-221-2/+2
| | | | | | | undefined structure. This typedef is used in linuxthreads.old-db, causing a compilation failure. Fixed by defining an empty structure for it - we don't have fp regs anyway.
* ARM SHMLBA = (4 * PAGE_SIZE). Currently in uclibc arm used shm.h fromCarmelo Amoroso2007-11-201-0/+103
| | | | | | | | | common directory where SHMLBA = __getpagesize() This patch fixes the issue. Khem Raj MontaVista Software Inc.
* Added AVR32 support to uClibc. Signed-off-by: Hans-Christian Egtvedt ↵Carmelo Amoroso2007-11-1632-0/+1684
| | | | <hcegtvedt@atmel.com>
* Poll with zero timeoutJoakim Tjernlund2007-10-231-0/+4
| | | | | | | | | | Jean-Christian de Rivaz writes: The attached patch solve an issue I faced while using the libdbus-glib waiting for a D-Bus message or the end of a glib timer at the same time. This specific case of use generate a poll call with a zero timeout. On platformes with the glibc a zero timeout poll return immetiately even if there is no file descriptor event. But on platformes with uClibc a zero timeout poll block until a file descriptor event occurs.
* - Fix compilation for mips ABI64 with no LFS.Bernhard Reutner-Fischer2007-09-301-2/+6
|
* - Fix compilation for mips ABI64 with no LFS.Bernhard Reutner-Fischer2007-09-301-4/+7
| | | | This wants a stub_enosys(readahead) line later on, like many, many others need..
* from Blue Swirl: fixup sparc a bit moreMike Frysinger2007-09-151-4/+20
|
* pull from Blackfin repo: optimized byteswap funcs!Mike Frysinger2007-09-151-0/+93
|
* pull from Blackfin repo: cleanup string funcsMike Frysinger2007-09-151-0/+20
|
* forgot to add this with previous sparc commit ...Mike Frysinger2007-09-151-0/+30
|
* use gcc input constraints to avoid often duplicated reloads when making syscallsMike Frysinger2007-09-154-96/+52
|
* if __NR__newselect and __NR_select are unavailable, fall back to __NR_pselect6Mike Frysinger2007-09-151-0/+24
|
* Blue Swirl writes:Mike Frysinger2007-09-154-3/+6
| | | | | | | | | | | | | | | | | | | | I got the library to compile with the attached patches, though dynamic loader crashes early. In buildroot I changed the architecture name by hand from sparc to sparc64, otherwise the compiler produced 32-bit files with V9 (64-bit) instructions. This configuration is not supported by QEMU, so I aimed for pure 64-bit. I think Sparc64 option needs to be added to buildroot. The _Qp_ ops seem to be required by the ABI. This and setjmp patches are just hacks to get the compilation further. The _Qp_ ops can be found in glibc, would it be OK to use those? V9 assembler requires declarations for global register use. The mem* functions in sparc32 directory did not work. They are actually used only by the hybrid 32-bit + V9 CPU configuration.
* Atsushi Nemoto writes:Mike Frysinger2007-09-152-1/+11
| | | | | | | In MIPS syscall(2), .cpload was added to an the error path, but it was not enough for ABIs other then O32. Use SETUP_GP, SETUP_GP64 and RESTORE_GP64 to handle all ABIs. This patch fixes an error path of MIPS pipe(2) too.
* Remove stray code alignment (.align 16 and .align 4 directives)Denis Vlasenko2007-07-2917-17/+2
| | | | | from i386 and x86_64.
* include/sys/mman.h says that msync exists only on MMU.Denis Vlasenko2007-07-181-0/+4
| | | | | Make msync.c agree on this.
* Enable all of the remaining baud rates. All of the other architectures have ↵"Steven J. Hill"2007-07-181-4/+0
| | | | them enabled, so let's go all the way. There was a quick discussion on IRC about making the max baud rate configurable. That requires a bunch of #ifdef salting throughout all of the 'termios.h' files for the pre-processor to chew on. I'm going to pass on that for now.
* Fix broken syscall() function since the original patch did not work."Steven J. Hill"2007-07-121-2/+4
|
* - make sure to define _LIBC in libc-symbols.h before including anythingBernhard Reutner-Fischer2007-06-241-0/+2
| | | | | | else. - internal_function is only used inside libc, so do not define it in uClibc_arch_features.h on i386 if we are outside of libc.
* Carmelo AMOROSO <carmelo.amoroso@st.com> writes:Joakim Tjernlund2007-06-131-2/+14
| | | | | | | | Hi All, this patch fixes a mismatch in ucontext struct between uClibc and kernel. In this way a signal handler installed by sigaction can access to the whole machine state correctly. This can be applied both to trunk and nptl branch
* Atsushi Nemoto writes:Mike Frysinger2007-05-314-1/+122
| | | | | | | | Current MIPS readahead(), posix_fadvise(), posix_fadvise64() do not match with kernel on all ABIs. On O32 ABI, a padding is needed before a long long argument. On N32/N64, a long long argument should be passed via a single register.
* Atsushi Nemoto writes:Mike Frysinger2007-05-314-8/+4
| | | | | http://www.opengroup.org/onlinepubs/009695399/functions/posix_fadvise.html states it returns error code instead of setting errno.
* Jean-Christian de Rivaz writes:Mike Frysinger2007-05-251-1/+1
| | | | | | | | I actually suspect this code into the file uClibc/libc/sysdeps/linux/common/poll.c: tval.tv_nsec = (timeout % 1000) *1000; <==== make only usec! From milisecond this really needs a * 1000000 to make nanosecond. Without this a 1100 milisecond timeout is converted into a 1 seconde and 100 microsecond timeout! This can explain the weird result of the test code.
* Remove the arch specific mmap impl. for Powerpc. The common one will do.Joakim Tjernlund2007-05-252-56/+1
|
* Fix MIPS syscall() and pipe functions to set errno correctly as reported by ↵"Steven J. Hill"2007-05-242-5/+20
| | | | Daniel Jacobowitz on the mailing list. More information available at <http://www.uclibc.org/lists/uclibc/2007-May/017968.html> .
* Fix ARM EABI signal unwinding to accomodate signal frame layout between ↵"Steven J. Hill"2007-05-241-2/+13
| | | | Linux kernel versions as reported by Joseph S. Myers on the mailing list. More information available at <http://www.uclibc.org/lists/uclibc/2007-May/017971.html> .
* Restored indentation.Peter Kjellerstedt2007-05-152-11/+13
|
* Made it compile again.Peter Kjellerstedt2007-05-151-1/+1
|
* Fix arm mmap when using mmap2 syscall. Fixes bug #1303Khem Raj2007-05-152-4/+16
|
* Carmelo AMOROSO writes:Mike Frysinger2007-04-301-2/+2
| | | | | | | running LTP test suite on uClibc-nptl for sh4 I found a bug into pread and pwrite functions. When the offset is negative it is not correctly handled due to a missing shift operation, so it is passed to the syscall as the highest unsigned positive value.
* fixes from Carmelo AMOROSO to depend less on kernel headersMike Frysinger2007-04-021-1/+10
|
* Update comment regarding passing dl_fini.Joakim Tjernlund2007-03-311-2/+5
|
* Revert last change until we figure out the correct fix.Rob Landley2007-03-291-1/+1
|
* Make the code match the comments. (I narrowed down the bug, Khem Raj Rob Landley2007-03-281-1/+1
| | | | | pointed out the solution. This fixes a segfault for me on exit from a statically linked "hello world".)
* Joseph S. Myers writes:Joakim Tjernlund2007-03-191-0/+7
| | | | | | | | | On PowerPC, r13 is used for a small data pointer and needs to be set up from _SDA_BASE_ (defined by the linker) at startup. This is needed for the GCC testcase gcc.target/powerpc/980827-1.c to work. This patch fixes that testcase (verified for both static and dynamic linking).
* Bernd Schmidt writes: The following patch is needed for libc to be able to ↵Mike Frysinger2007-03-181-0/+3
| | | | emulate poll with ppoll.
* dont include asm/user.hMike Frysinger2007-03-141-3/+53
|
* Using local variable 'result' caused problems with lseek64 syscall failing ↵Khem Raj2007-03-131-10/+9
| | | | with gcc 4.2. Renaming to make it a bit uncommon name.
* fix from upstream blackfin repo for sigsetjmpMike Frysinger2007-03-121-2/+3
|
* Patch from Al Stone to fix ia64:Rob Landley2007-03-111-1/+1
| | | | | | | | | The attached patch works around some compilation failures on ia64 caused by the use of the C preprocessor ## operator, and allows the ia64 default configuration to build again -- or, at least get as far as an x86 build does (the current source tree has some problems compiling because of conflicting type declarations for __kernel_dev_t).
* Sync kernel_stat64 with kernel. Thanks to Daniel Jacobowitz for hints.Khem Raj2007-03-081-7/+2
|
* Patch from Khem Raj that fixes running gcc on arm for me. (Otherwise itRob Landley2007-03-081-6/+42
| | | | says "virtual memory exhausted" trying to build hello world.)
* svn 17941/17943 broke the build. 18032 made the threaded case compile Rob Landley2007-03-081-5/+0
| | | | | | again, this makes the non-threaded case compile again. I have no idea if this is the proper fix, I'm just tired if it not compiling for two weeks.
* Sync sh's procfs.h with glibc, fixes gdbserver.Paul Mundt2007-03-071-2/+2
| | | | | Patch from Carmelo Amoroso <carmelo73@gmail.com>.
* Fix PLTJMP() token pasting build error, patch fromPaul Mundt2007-03-071-1/+1
| | | | | Carmelo Amoroso <carmelo73@gmail.com>.
* I always miss svn add.Khem Raj2007-03-062-0/+84
|