summaryrefslogtreecommitdiff
path: root/libc
AgeCommit message (Collapse)Author
2007-07-12Fix broken syscall() function since the original patch did not work."Steven J. Hill"
2007-06-24- make sure to define _LIBC in libc-symbols.h before including anythingBernhard Reutner-Fischer
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.
2007-06-13Carmelo AMOROSO <carmelo.amoroso@st.com> writes:Joakim Tjernlund
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
2007-06-01change the auxvt code from being dependent on MMU to !LDSO as auxvt things ↵Mike Frysinger
are ELF-specific, not MMU-specific
2007-05-31Atsushi Nemoto writes:Mike Frysinger
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.
2007-05-31Atsushi Nemoto writes:Mike Frysinger
http://www.opengroup.org/onlinepubs/009695399/functions/posix_fadvise.html states it returns error code instead of setting errno.
2007-05-25Jean-Christian de Rivaz writes:Mike Frysinger
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.
2007-05-25Remove the arch specific mmap impl. for Powerpc. The common one will do.Joakim Tjernlund
2007-05-24Fix MIPS syscall() and pipe functions to set errno correctly as reported by ↵"Steven J. Hill"
Daniel Jacobowitz on the mailing list. More information available at <http://www.uclibc.org/lists/uclibc/2007-May/017968.html> .
2007-05-24Fix ARM EABI signal unwinding to accomodate signal frame layout between ↵"Steven J. Hill"
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> .
2007-05-15Restored indentation.Peter Kjellerstedt
2007-05-15Made it compile again.Peter Kjellerstedt
2007-05-15Fix arm mmap when using mmap2 syscall. Fixes bug #1303Khem Raj
2007-05-06Nickolai Zeldovich writes: if the temp name already exists, then the retry ↵Mike Frysinger
code does not create a new temp name as the code to do so is outside of the retry loop
2007-05-04- commentary typo fixBernhard Reutner-Fischer
2007-05-02Nickolai Zeldovich writes:Mike Frysinger
Currently, tcgetpgrp() in uClibc uses an int to store a PID (fetched via ioctl TIOCGPGRP). This causes problems on platforms where pid_t is defined to be larger (e.g., uint64_t). Other functions in termios, such as tcgetsid() and tcsetpgrp(), already pass a pid_t to ioctl(), so the following patch does the same in tcgetpgrp() as well.
2007-05-02Daniel Jacobowitz: sleep()/usleep() relies on nanosleep() being a cancellationMike Frysinger
point but the files have "libc_hidden_proto(nanosleep)" which means it always calls the libc.so version, never the wrapped version in libpthread.so that's a cancellation point.
2007-04-30Carmelo AMOROSO writes:Mike Frysinger
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.
2007-04-24fix from Bernd Schmidt for realloc shrinkage bugMike Frysinger
2007-04-23- include stdbool.hBernhard Reutner-Fischer
2007-04-18Bugfix from Atsushi Nemoto: return nonzero error code on failure Rob Landley
(without which busybox ping segfaults on error). Broken during locking changes in in svn 16801.
2007-04-17- shrink resolver codeBernhard Reutner-Fischer
2007-04-14- dtrtBernhard Reutner-Fischer
2007-04-13fix up malloc debug buildingMike Frysinger
2007-04-13Patch by Ricard Wanderlof <ricardw at axis dot com>:Peter Kjellerstedt
* Add configurable buffer sizes for getpwnam() and getgrnam(). The default buffer size is, as before, 256 (glibc seems to use 1024 by default).
2007-04-11POSIX says you can use realloc() to shrink buffers ... make sure we dont ↵Mike Frysinger
trigger a buffer overflow in that case
2007-04-02fixes from Carmelo AMOROSO to depend less on kernel headersMike Frysinger
2007-04-02POSIX requires that errno be set whenever 0 is returned by malloc()Mike Frysinger
2007-03-31Update comment regarding passing dl_fini.Joakim Tjernlund
2007-03-29Revert last change until we figure out the correct fix.Rob Landley
2007-03-28Make the code match the comments. (I narrowed down the bug, Khem Raj Rob Landley
pointed out the solution. This fixes a segfault for me on exit from a statically linked "hello world".)
2007-03-28Warning fix for uninitialized variable, by Al Stone.Rob Landley
2007-03-19Joseph S. Myers writes:Joakim Tjernlund
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).
2007-03-19#1273 if EXTRAVERSION is set, make sure we respect itMike Frysinger
2007-03-18Bernd Schmidt writes: The following patch is needed for libc to be able to ↵Mike Frysinger
emulate poll with ppoll.
2007-03-14dont include asm/user.hMike Frysinger
2007-03-13Using local variable 'result' caused problems with lseek64 syscall failing ↵Khem Raj
with gcc 4.2. Renaming to make it a bit uncommon name.
2007-03-12fix from upstream blackfin repo for sigsetjmpMike Frysinger
2007-03-11Patch from Al Stone to fix ia64:Rob Landley
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).
2007-03-08Sync kernel_stat64 with kernel. Thanks to Daniel Jacobowitz for hints.Khem Raj
2007-03-08Patch from Khem Raj that fixes running gcc on arm for me. (Otherwise itRob Landley
says "virtual memory exhausted" trying to build hello world.)
2007-03-08svn 17941/17943 broke the build. 18032 made the threaded case compile Rob Landley
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.
2007-03-07Fix a build break due to errno and h_errno being unresolved symbols. Rob Landley
(No idea if this is the right fix but it's something for now.)
2007-03-07Sync sh's procfs.h with glibc, fixes gdbserver.Paul Mundt
Patch from Carmelo Amoroso <carmelo73@gmail.com>.
2007-03-07Fix PLTJMP() token pasting build error, patch fromPaul Mundt
Carmelo Amoroso <carmelo73@gmail.com>.
2007-03-06I always miss svn add.Khem Raj
2007-03-06Add posix_fadvise posix_fadvise64 for arm.Khem Raj
Import INTERNAL_SYSCALL macro for i386 from glibc. Use above macro in posix_fadvise implementation if an arch defines it.
2007-03-01Fix compiler warning about shadowed declaration.Khem Raj
2007-03-01Should be __sigset_t instead of sigset_t.Khem Raj
2007-02-28add support for ppoll() and emulate poll() with it when __NR_poll does not existMike Frysinger