summaryrefslogtreecommitdiffstats
path: root/libc
Commit message (Collapse)AuthorAgeFilesLines
* Use getdents syscall if kernel provide supports for thisCarmelo Amoroso2008-09-091-6/+33
| | | | | | | instead of relying upon getdents64. Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* Follow sh asm convention to indent the instruction into the delay slot.Carmelo Amoroso2008-09-041-2/+2
| | | | (glibc community refused to apply a my patch for this :-) )
* Kill off the GOT lookup for init/fini in the sh crti.S. This wasPaul Mundt2008-09-041-23/+0
| | | | | | | | 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.
* Move ifaddrs.h from uClibc-internal location libc/inet/ to include/, and makeRicard Wanderlof2008-08-283-76/+2
| | | | | it conditionally included among the installed header files depending on UCLIBC_HAS_AI_ADDRCONFIG.
* - remove a couple of duplicate includesBernhard Reutner-Fischer2008-08-2712-16/+0
|
* Removed redundant includes.Ricard Wanderlof2008-08-271-2/+0
|
* - Fix powerpc pread/pwrite (Wade Berrier)Bernhard Reutner-Fischer2008-08-201-10/+11
| | | | | pread/write wanted to send an 8 byte value in the syscall where only 4 bytes were allowed.
* Fix SH ldso sequence startup.Carmelo Amoroso2008-08-081-2/+8
| | | | | | | | | | | | | | | | | | 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>
* - some more asm keyword fixes (Yann E. MORIN)Bernhard Reutner-Fischer2008-08-063-20/+18
|
* - trim any trailing whitespaceBernhard Reutner-Fischer2008-07-23170-536/+536
|
* - fix inline keywordBernhard Reutner-Fischer2008-07-2391-135/+135
|
* - fix asm and volatile keywordsBernhard Reutner-Fischer2008-07-239-156/+156
|
* avr32: Put underscores around asm, inline, etc.Haavard Skinnemoen2008-07-232-10/+10
| | | | | This fixes build breakage introduced in r22868.
* - pull fix for unwinding from the NPTL branch (Johannes Stezenbach)Bernhard Reutner-Fischer2008-07-171-6/+10
| | | | Repair C89 compliance and severe whitespace-defects while at it.
* - improve UCLIBC_LINUX_SPECIFICBernhard Reutner-Fischer2008-07-146-9/+55
| | | | | compile-tested only, fixes libc/misc/statfs/fstatfs64.c:29: error: 'fstatfs' undeclared here (not in a function)
* sh4 don't need to cope with older RLIMIT implementation.Carmelo Amoroso2008-07-081-1/+1
| | | | Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* New .config option UCLIBC_HAS_STUBS, enables fork() stub on NOMMUDenis Vlasenko2008-07-081-0/+14
|
* Include errno.h from kernel headers instead of using internal errno_values.hCarmelo Amoroso2008-07-025-536/+1
| | | | | | otherwie some errno will be missed (i.e. ENOKEY used in libusb) Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* Simplified check_pf() so it returns a bit vector in an unsigned int,Ricard Wanderlof2008-07-014-106/+75
| | | | instead of modifying the contents of two bools.
* #include <ifaddrs.h> should be #include "ifaddrs.h"Denis Vlasenko2008-06-281-1/+1
|
* if argv[0] is NULL, dont try to parse it and subsequently crash ... found by ↵Mike Frysinger2008-06-271-6/+8
| | | | running execve05 ltp test on blackfin ([#4194])
* Removed include/ifaddrs.h and put contents in libc/inet/ifaddrs.h, as we do notRicard Wanderlof2008-06-272-1/+16
| | | | need the file outside of uClibc anyway.
* Fixed #if -> #if defined.Ricard Wanderlof2008-06-271-6/+15
| | | | Take __UCLIBC_HAS_IPV4__ into account.
* Added support for the AI_ADDRCONFIG flag in the hints->ai_flags parameter to ↵Ricard Wanderlof2008-06-276-18/+184
| | | | getaddrinfo(3).
* - make sure to build crti and crtn with PICFLAGBernhard Reutner-Fischer2008-06-201-0/+3
|
* - move stripping into do_ar resp compile-m for the sake of simplicityBernhard Reutner-Fischer2008-06-171-3/+0
|
* - fix build errorBernhard Reutner-Fischer2008-06-161-1/+1
| | | | brk.c:(.text.__GI_sysconf+0xd4): undefined reference to `clock_getres'
* Include sys/syscall.h since we are checking for __NR_clock_getres.Peter Kjellerstedt2008-06-121-0/+1
|
* Revert revision 19347, plus libc_hidden_proto for __uc_malloc.Bernd Schmidt2008-06-127-29/+19
| | | | | Some of the code is functionally identical before and after, but for now I'm just mechanically reverting the entire mess.
* Revert revision 19345 plus libc_hidden_proto for __uc_malloc.Bernd Schmidt2008-06-122-16/+6
|
* Revert revision 19344 plus the libc_hidden_proto for __uc_malloc.Bernd Schmidt2008-06-121-93/+39
|
* Revert revision 19343 and also remove libc_hidden_proto for __uc_malloc.Bernd Schmidt2008-06-121-34/+16
| | | | | For now, a straight revert; we can decide later wheter we want to do something more.
* Fix two more cases where a libc_hidden_proto was added to string.h whileBernd Schmidt2008-06-112-0/+2
| | | | no libc_hidden_def exists for the function.
* xtensa: Fix spill routine.Chris Zankel2008-06-111-0/+1
| | | | | | | | The spill routine to flush all windowed registers was missing a 'mov' instruction. Signed-off-by: Chris Zankel <chris@zankel.net>
* Revert revison 19346, except parts needed by later patches (r19347 also addedBernd Schmidt2008-06-101-19/+6
| | | | | | __uc_malloc calls in getnetent.c, so we must retain the include and libc_hidden_proto).
* - Improve prerequisites and avoid spurious reconfigurations.Bernhard Reutner-Fischer2008-06-091-6/+3
| | | | More details: http://uclibc.org/lists/uclibc/2008-June/019509.html
* - revert incorrect parts of r22257 and 22259Bernhard Reutner-Fischer2008-06-073-7/+6
| | | | since posix_openpt lives in getpt.c it has to stay there unconditionally.
* - remove __USE_BSD guard from __bsd_getpt().Bernhard Reutner-Fischer2008-06-071-2/+0
| | | | | Fixes compilation error for defined UCLIBC_HAS_PTY && !defined UNIX98PTY_ONLY which need both __libc_ptyname1 and __libc_ptyname2 for ptsname_r().
* - UCLIBC_HAS_GETPT pulls in getpt.Bernhard Reutner-Fischer2008-06-071-1/+4
| | | | - ptsname_r depends on UCLIBC_HAS_PTY just like ptsname()
* Remove superfluous attribute_hidden from functionDenis Vlasenko2008-06-061-1/+1
| | | | | | | | | | | definition. I seems to produce spurious warning: libc/inet/resolv.c:1549: warning: 'visibility' attribute ignored on non-class types (seems like gcc bug) and it is not really needed - attribute_hidden was already specified in function _declaration_ so it is not necessary here. No code changes (verified with objdump).
* Fix hard-to-rigger locking bug in vsyslog():Denis Vlasenko2008-06-061-9/+13
| | | | | | | | | | | | | SIGPIPE handler was attempting to re-acquire an already taken lock. While at it, stop checking for sigaction failure which is not possible here. Sizes: text data bss dec hex filename - 1123 13 2 1138 472 libc/misc/syslog/syslog.o + 1112 13 2 1127 467 libc/misc/syslog/syslog.o Run tested.
* Use more natural way to return a value in __read_etc_hosts_r:Denis Vlasenko2008-06-061-24/+21
| | | | | | | | | | | text data bss dec hex filename - 230 0 9 239 ef libc/inet/gethostent.o + 224 0 9 233 e9 libc/inet/gethostent.o - 782 0 0 782 30e libc/inet/read_etc_hosts_r.o + 767 0 0 767 2ff libc/inet/read_etc_hosts_r.o Run tested.
* Fix failure in test/inet/gethost_r-align:Denis Vlasenko2008-06-061-4/+8
| | | | | | | | | | | | we were closing a FILE, but did not record that fact by setting a variable to NULL, and then we used it for reading! While at it, small reduction in bss. Run tested. text data bss dec hex filename - 210 0 12 222 de libc/inet/gethostent.o + 230 0 9 239 ef libc/inet/gethostent.o
* shrink getopt a bit by using smallints. Run tested (busybox testsuite)Denis Vlasenko2008-06-061-16/+18
| | | | | | | text data bss dec hex filename - 2403 12 40 2455 997 libc/unistd/getopt.o + 2388 12 28 2428 97c libc/unistd/getopt.o
* Revert revision 22027 which totally broke getopt.Bernd Schmidt2008-06-052-18/+20
|
* - forgot to checkin this s/check/FORCE/Bernhard Reutner-Fischer2008-06-051-1/+1
|
* Fix typo that prevented "make clean" from removing objects in libc/misc/locale.Bernd Schmidt2008-06-041-1/+1
|
* - strip the targets and not prerequisitesBernhard Reutner-Fischer2008-06-041-1/+1
| | | | | | - tidy up PTHREADS_DEBUG_SUPPORT by using per-target STRIP_FLAGS for the few This fixes the spurious rebuilds bernd and vda were seeing with libpthreads.
* This fixes a problem with the move of libc_hidden_proto to string.h.Bernd Schmidt2008-06-049-9/+0
| | | | | | | | | | | | | The obsolete functions bcopy, index, etc. are not supposed to be used within uClibc itself. Hence, there is no libc_hidden_def for them, but the previous patch did not just move libc_hidden_protos, it also added new ones for the legacy functions. As a result, programs which use these functions can no longer link with uClibc. This fixes it by removing the unnecessary libc_hidden_protos. I've also removed all inclusions of <strings.h> from uClibc source files: since we define _GNU_SOURCE, it is sufficient to include <string.h>. We then do not need to duplicate the libc_hidden_proto block in <strings.h>.
* Fix merge error: mmap.c no longer exists in bfin/.Bernd Schmidt2008-06-031-1/+1
|