summaryrefslogtreecommitdiff
path: root/libc
AgeCommit message (Collapse)Author
2008-09-16- add sync_file_range()Bernhard Reutner-Fischer
Tested successfully on i386..
2008-09-15- commentary typo fixBernhard Reutner-Fischer
2008-09-13xtensa: The Xtensa port needs to define the __UCLIBC_TRUNCATE64_HAS_4_ARGS__ ↵Chris Zankel
macro so that a dummy argument will be inserted before the long long length argument, which is expected to be in an even/odd register pair. -This line, and those below, will be ignored-- M uClibc_arch_features.h
2008-09-13xtensa: The Xtensa-specific strcmp.S file is testing the ↵Chris Zankel
__UCLIBC_HAS_LOCALE__ macro but it does not include <features.h>, so that macro is never defined. This causes problems with strcoll when locale support is enabled.
2008-09-12- fix typoBernhard Reutner-Fischer
2008-09-11- whitespace fixesBernhard Reutner-Fischer
2008-09-11- remove gethostbyname_r relocationBernhard Reutner-Fischer
2008-09-11- remove posix_openpt relocationBernhard Reutner-Fischer
2008-09-11- fix typoBernhard Reutner-Fischer
2008-09-11- remove relocations for clock_getresBernhard Reutner-Fischer
2008-09-09Add optimized memcpy implementation for sh4 (from Stuart Menefy ↵Carmelo Amoroso
@STMicroelectronics). This implementation is based on 'backward copying'. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
2008-09-09Fix some locale multibyte tests failures ad below:Carmelo Amoroso
libc/stdlib/_strtod.c -> tst_wcstod; libc/stdlib/stdlib.c -> tst_mblen, tst_mbtowc, tst_wctomb; libc/stdio/_scanf.c -> tst_swscanf; libc/string/strncmp.c -> tst_wcsncmp; libc/misc/wchar/wchar.c -> tst_mbrlen, tst_mbrtowc, tst_wcswidth. Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
2008-09-09Fix problem in vfprintf when assertion are enabled.Carmelo Amoroso
Here follow the output of my analysis: __stdio_fwrite expects at least 1 bytes. fputs_unlocked(S,F) calls fwrite_unlocked and this calls __stdio_fwrite only if bytes to be written are > 0, otherwise simply returs 0 (that is correct). During the parsing of format spec it could happen that __stdio_fwrite is called passing an empty string and with assertion enabled it will abort. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
2008-09-09Fill in termios_p data structure only if ioctl syscallCarmelo Amoroso
doesn't fail (as glibc indeed does). Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
2008-09-09Hush compiler for extern inline warnings by using Carmelo Amoroso
__extern_inline macro, this also makes gcc 4.3 happy. (Taken from NPTL branch) Signed-off-by: Khem Raj <raj.khem@gmail.com>
2008-09-09Revert latest changes. Instead of applying this work-aroundCarmelo Amoroso
a proper fix should ensure that statically linked mutli-threaded binaries take always the proper locking implementation. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
2008-09-09Use getdents syscall if kernel provide supports for thisCarmelo Amoroso
instead of relying upon getdents64. Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
2008-09-04Follow sh asm convention to indent the instruction into the delay slot.Carmelo Amoroso
(glibc community refused to apply a my patch for this :-) )
2008-09-04Kill off the GOT lookup for init/fini in the sh crti.S. This wasPaul Mundt
inversely conditional on __HAVE_SHARED__, which has been broken since the time it was copied in originally. The compiler properly generates the GOT references on its own, negating the entire purpose for the init/fini reference.
2008-08-28Move ifaddrs.h from uClibc-internal location libc/inet/ to include/, and makeRicard Wanderlof
it conditionally included among the installed header files depending on UCLIBC_HAS_AI_ADDRCONFIG.
2008-08-27- remove a couple of duplicate includesBernhard Reutner-Fischer
2008-08-27Removed redundant includes.Ricard Wanderlof
2008-08-20- Fix powerpc pread/pwrite (Wade Berrier)Bernhard Reutner-Fischer
pread/write wanted to send an 8 byte value in the syscall where only 4 bytes were allowed.
2008-08-08Fix SH ldso sequence startup.Carmelo Amoroso
Pass via r4 the rtld finalizer _dl_fini to the user application. This will be the 6^ arg of __uClibc_main and will be registered with 'atexit'. In this way the dynamic linker will be able to call destructors defined within the loaded DSOs. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com> Acked-by: Paul Mundt <lethal@linux-sh.org> Add missing 7th arg "stack_end". add comment of undocumented usage of r4. fix comment of expected __uClibc_main() prototype. Signed-off-by: Yoshii Takashi <yoshii.takashi@renesas.com> Acked-by: Paul Mundt <lethal@linux-sh.org>
2008-08-06- some more asm keyword fixes (Yann E. MORIN)Bernhard Reutner-Fischer
2008-07-23- trim any trailing whitespaceBernhard Reutner-Fischer
2008-07-23- fix inline keywordBernhard Reutner-Fischer
2008-07-23- fix asm and volatile keywordsBernhard Reutner-Fischer
2008-07-23avr32: Put underscores around asm, inline, etc.Haavard Skinnemoen
This fixes build breakage introduced in r22868.
2008-07-17- pull fix for unwinding from the NPTL branch (Johannes Stezenbach)Bernhard Reutner-Fischer
Repair C89 compliance and severe whitespace-defects while at it.
2008-07-14- improve UCLIBC_LINUX_SPECIFICBernhard Reutner-Fischer
compile-tested only, fixes libc/misc/statfs/fstatfs64.c:29: error: 'fstatfs' undeclared here (not in a function)
2008-07-08sh4 don't need to cope with older RLIMIT implementation.Carmelo Amoroso
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
2008-07-08New .config option UCLIBC_HAS_STUBS, enables fork() stub on NOMMUDenis Vlasenko
2008-07-02Include errno.h from kernel headers instead of using internal errno_values.hCarmelo Amoroso
otherwie some errno will be missed (i.e. ENOKEY used in libusb) Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
2008-07-01Simplified check_pf() so it returns a bit vector in an unsigned int,Ricard Wanderlof
instead of modifying the contents of two bools.
2008-06-28#include <ifaddrs.h> should be #include "ifaddrs.h"Denis Vlasenko
2008-06-27if argv[0] is NULL, dont try to parse it and subsequently crash ... found by ↵Mike Frysinger
running execve05 ltp test on blackfin ([#4194])
2008-06-27Removed include/ifaddrs.h and put contents in libc/inet/ifaddrs.h, as we do notRicard Wanderlof
need the file outside of uClibc anyway.
2008-06-27Fixed #if -> #if defined.Ricard Wanderlof
Take __UCLIBC_HAS_IPV4__ into account.
2008-06-27Added support for the AI_ADDRCONFIG flag in the hints->ai_flags parameter to ↵Ricard Wanderlof
getaddrinfo(3).
2008-06-20- make sure to build crti and crtn with PICFLAGBernhard Reutner-Fischer
2008-06-17- move stripping into do_ar resp compile-m for the sake of simplicityBernhard Reutner-Fischer
2008-06-16- fix build errorBernhard Reutner-Fischer
brk.c:(.text.__GI_sysconf+0xd4): undefined reference to `clock_getres'
2008-06-12Include sys/syscall.h since we are checking for __NR_clock_getres.Peter Kjellerstedt
2008-06-12Revert revision 19347, plus libc_hidden_proto for __uc_malloc.Bernd Schmidt
Some of the code is functionally identical before and after, but for now I'm just mechanically reverting the entire mess.
2008-06-12Revert revision 19345 plus libc_hidden_proto for __uc_malloc.Bernd Schmidt
2008-06-12Revert revision 19344 plus the libc_hidden_proto for __uc_malloc.Bernd Schmidt
2008-06-12Revert revision 19343 and also remove libc_hidden_proto for __uc_malloc.Bernd Schmidt
For now, a straight revert; we can decide later wheter we want to do something more.
2008-06-11Fix two more cases where a libc_hidden_proto was added to string.h whileBernd Schmidt
no libc_hidden_def exists for the function.
2008-06-11xtensa: Fix spill routine.Chris Zankel
The spill routine to flush all windowed registers was missing a 'mov' instruction. Signed-off-by: Chris Zankel <chris@zankel.net>