summaryrefslogtreecommitdiffstats
path: root/libc
Commit message (Collapse)AuthorAgeFilesLines
...
| * x86_64: fix .size of _init/_finiBernhard Reutner-Fischer2011-05-051-2/+2
| | | | | | | | | | | | | | binutils-2.21 barf on .size that do not evaluate to const, so use the section size and not a function that is not visible here. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
| * Revert "*/crt?.S: remove .size directives"Bernhard Reutner-Fischer2011-05-0524-0/+39
| | | | | | | | | | | | Removing them generally was not a good idea This reverts commit 233c504cd940d9802226b6a3a092368b86978f5e.
| * */crt?.S: remove .size directivesBernhard Reutner-Fischer2011-05-0424-39/+0
| | | | | | | | | | | | sed -i -e '/\.size[[:space:]]/d' $(grep -l "\.size" libc/sysdeps/linux/*/crt*.[sSc]) Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* | Merge remote-tracking branch 'origin/master' into prelinkCarmelo Amoroso2011-05-0416-53/+1237
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * origin/master: (32 commits) libubacktrace: fix backtrace support on arm-eabi, which needs libgcc_eh linked too getaddrinfo.c: fix incorrect check for ERANGE from gethostbyaddr_r getaddrinfo.c: improve code readability. No functional changes string: remove unused variable x86_64: silence warning if !TLS buildsys: prettify ssp.c handling madvise is LINUX_SPECIFIC test_nptl: fix expected result for tst-cputimer[123] test_nptl: fix expected result for tst-clock2 test buildsys: make $(LOCAL_INSTALL_PATH) phony ether_aton: reject invalid input tests: disable ether tests if !HAS_SOCKET inet: add ether_aton testcase sysconf: clock_getres depends on HAS_REALTIME __rt_sigwaitinfo: depends on HAS_REALTIME buildsys: minor fixes in Makefile.arch for C6X buildsys: minor fixes in Makefile.arch for microblaze libubacktrace: enabled for all archs indeed. sparc: don't access fp registers when configured for no fpu libubacktrace: generic implementation based dwarf ... Conflicts: ldso/ldso/dl-elf.c ldso/ldso/mips/elfinterp.c ldso/ldso/x86_64/elfinterp.c Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
| * getaddrinfo.c: fix incorrect check for ERANGE from gethostbyaddr_rDenys Vlasenko2011-05-031-2/+2
| | | | | | | | | | | | | | Also, freeaddrinfo(NULL) is ok, no need to check parameted for NULL before calling it. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
| * getaddrinfo.c: improve code readability. No functional changesDenys Vlasenko2011-05-031-26/+30
| | | | | | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
| * string: remove unused variableBernhard Reutner-Fischer2011-05-031-3/+1
| | | | | | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
| * buildsys: prettify ssp.c handlingBernhard Reutner-Fischer2011-05-031-4/+1
| | | | | | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
| * madvise is LINUX_SPECIFICBernhard Reutner-Fischer2011-05-031-1/+1
| | | | | | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
| * ether_aton: reject invalid inputBernhard Reutner-Fischer2011-05-021-2/+4
| | | | | | | | | | | | fixes PR2227 Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
| * sysconf: clock_getres depends on HAS_REALTIMEBernhard Reutner-Fischer2011-04-291-3/+2
| | | | | | | | | | | | Bug was introduced in revision a202cf6f. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
| * __rt_sigwaitinfo: depends on HAS_REALTIMEBernhard Reutner-Fischer2011-04-291-1/+1
| | | | | | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
| * buildsys: minor fixes in Makefile.arch for C6XCarmelo Amoroso2011-04-271-5/+0
| | | | | | | | | | | | Just a tidy-up by removing commented-out lines. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
| * buildsys: minor fixes in Makefile.arch for microblazeCarmelo Amoroso2011-04-271-2/+0
| | | | | | | | | | | | | | Do not include Makefile.commonarch directly from within arch specific Makefile, as it is already done in parent Maefile.in. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
| * sparc: don't access fp registers when configured for no fpuAustin Foxley2011-04-221-0/+2
| | | | | | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
| * Added fts support for traversing UNIX file hierarchies.Salvatore Cro2011-04-204-0/+1183
| | | | | | | | | | | | | | It is required by libdwfl in elfutils package. Signed-off-by: Salvatore Cro <salvatore.cro at st.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
| * buildsys: do_rm ARCH_HEADERSBernhard Reutner-Fischer2011-04-141-1/+1
| | | | | | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
| * resolv: really fix res_close not to hang with ipv6Bernhard Reutner-Fischer2011-04-131-2/+2
| | | | | | | | | | | | Fix goof in previous commit. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
| * buildsys: fix GNU make v3.80 compatibility againKevin Cernekee2011-04-131-2/+6
| | | | | | | | | | | | | | | | GNU make 3.80 cannot handle "$(and)" or "$(or)" from commit 18e7136e (buildsys: use kbuild style). Replace them with ifeq/ifneq. Signed-off-by: Kevin Cernekee <cernekee@gmail.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
| * resolv: fix res_close not to hang with ipv6Bernhard Reutner-Fischer2011-04-121-1/+1
| | | | | | | | | | | | | | Timo Teräs writes: The memory release loop is missing an obvious counter increment. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
| * Fix malloc alignmentBernd Schmidt2011-04-112-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | In commit 3e0a1f388, Richard tried to fix malloc alignments by using alignof (double __attribute_aligned__(sizeof (size_t))). This doesn't work, since attribute_aligned overrides the alignment rather than providing a minimum. On C6X, malloc returns four-byte aligned values rather than the necessary eight-byte alignment. It's simpler to use a comparison and pick the bigger of the two values, so that's what I've done. Signed-off-by: Bernd Schmidt <bernds@codesourcery.com>
* | Merge remote-tracking branch 'origin/master' into prelinkCarmelo Amoroso2011-04-06198-997/+3347
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * origin/master: (137 commits) utils/ldd: Check for returned pointer from strrchr not the value it holds cris: add provide arch-specific vfork implementation lutimes.c, stubs.c: fix compiling lutimes, if __NR_utimensat is not defined bump version to 0.9.32-rc3-git release 0.9.32-rc3 memalign: include sys/param.h for MAX arm/bits/atomic.h: Include common/bit/atomic.h for thumb1 wctype.h: fix libc_hidden_proto for iswupper and add it for iswspace add libc_hidden_proto for wcs[n]casecmp_l really fix missing __libc_drand48_data Revert "missing prototype of __libc_drand48_data fixed" missing prototype of __libc_drand48_data fixed time.c, time.h: remove unused hidden strftime/strptime nanosleep.c: remove duplicated libc_hidden_proto ctype.c, ctype.h: remove commented parts that were banned for removal after 0.9.31 _wctype.c, wctype.h: remove unused isw* and wctype_l hidden functions time.c, wchar.h: remove unused hidden wcsftime str[n]casecmp.c: fix hidden usage remove unused hidden functions frv/memset.S: add missing libc_hidden_def ... Conflicts: ldso/ldso/ldso.c Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
| * cris: add provide arch-specific vfork implementationThorsten Glaser2011-03-262-1/+31
| | | | | | | | | | | | | | | | | | vfork must be called with nothing at all on the stack, so implementing it via syscall() does not work. Signed-off-by: Thorsten Glaser <tg@mirbsd.org> Signed-off-by: Waldemar Brodkorb <wbx@openadk.org> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
| * lutimes.c, stubs.c: fix compiling lutimes, if __NR_utimensat is not definedPeter S. Mazinger2011-03-192-1/+9
| | | | | | | | | | | | | | | | while there, provide stubs for functions depending on utimensat syscall. Reported-by: Sedat Dilek <sedat.dilek@googlemail.com> Signed-off-by: Peter S. Mazinger <ps.m@gmx.net> Signed-off-by: Khem Raj <raj.khem@gmail.com>
| * memalign: include sys/param.h for MAXBernhard Reutner-Fischer2011-03-161-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | libc/stdlib/malloc/memalign.c:22:1: warning: "MAX" redefined In file included from ./libpthread/nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h:25, from ./include/bits/libc-lock.h:36, from ./include/bits/stdio-lock.h:23, from ./include/bits/uClibc_mutex.h:71, from libc/stdlib/malloc/malloc.h:135, from libc/stdlib/malloc/memalign.c:18: ./include/sys/param.h:75:1: warning: this is the location of the previous definition Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
| * arm/bits/atomic.h: Include common/bit/atomic.h for thumb1Khem Raj2011-03-141-0/+5
| | | | | | | | | | | | | | This restores the behavior for thumb1 builds and yet uses the new atomic.h for arm and thumb2 modes. Signed-off-by: Khem Raj <raj.khem@gmail.com>
| * really fix missing __libc_drand48_dataPeter S. Mazinger2011-03-101-0/+4
| | | | | | | | Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
| * Revert "missing prototype of __libc_drand48_data fixed"Peter S. Mazinger2011-03-101-1/+0
| | | | | | | | | | | | This reverts commit e2cea9b9edabe885b9bf2586f9541ffb8fe93f3f. Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
| * missing prototype of __libc_drand48_data fixedPeter S. Mazinger2011-03-101-0/+1
| | | | | | | | Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
| * time.c, time.h: remove unused hidden strftime/strptimePeter S. Mazinger2011-03-101-6/+6
| | | | | | | | Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
| * nanosleep.c: remove duplicated libc_hidden_protoPeter S. Mazinger2011-03-101-1/+0
| | | | | | | | Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
| * ctype.c, ctype.h: remove commented parts that were banned for removal after ↵Peter S. Mazinger2011-03-101-4/+0
| | | | | | | | | | | | 0.9.31 Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
| * _wctype.c, wctype.h: remove unused isw* and wctype_l hidden functionsPeter S. Mazinger2011-03-101-7/+16
| | | | | | | | Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
| * time.c, wchar.h: remove unused hidden wcsftimePeter S. Mazinger2011-03-101-3/+3
| | | | | | | | Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
| * str[n]casecmp.c: fix hidden usagePeter S. Mazinger2011-03-102-2/+2
| | | | | | | | | | | | Provide visible str[n]casecmp[_l], wcs[n]casecmp[_l]. Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
| * remove unused hidden functionsPeter S. Mazinger2011-03-096-12/+7
| | | | | | | | Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
| * frv/memset.S: add missing libc_hidden_defPeter S. Mazinger2011-03-091-0/+1
| | | | | | | | Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
| * memmem.c, string.h: remove unused hidden memmemPeter S. Mazinger2011-03-092-2/+0
| | | | | | | | | | | | It is used only by gen_collate, not included into libc. Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
| * _collate.c: remove duplicated libc_hidden_proto() for strcoll*/wcscoll*Peter S. Mazinger2011-03-091-1/+0
| | | | | | | | Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
| * wchar.h, _collate.c, strlcpy.c: use a common prototype of __wcslcpyPeter S. Mazinger2011-03-092-18/+5
| | | | | | | | Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
| * ctype.c, _collate.c, str[n]casecmp.c, strlcpy.c: remove unused hidden functionsPeter S. Mazinger2011-03-095-6/+12
| | | | | | | | Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
| * stdlib.c, _strtod.c, stdlib.h: remove unused hidden functionsPeter S. Mazinger2011-03-092-23/+6
| | | | | | | | Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
| * Add a missing macro to C6X syscalls.h.Bernd Schmidt2011-03-091-0/+1
| | | | | | | | | | | | We need _syscall_noerr0 to fix compilation of getuid.c. Signed-off-by: Bernd Schmidt <bernds@codesourcery.com>
| * cleanup hardcoded syscall numbersMark Salter2011-03-091-1/+2
| | | | | | | | | | Signed-off-by: Mark Salter <msalter@redhat.com> Signed-off-by: Bernd Schmidt <bernds@codesourcery.com>
| * support c6x kernel using generic stat.hMark Salter2011-03-092-205/+28
| | | | | | | | | | | | Signed-off-by: Ken Cox <jkc@redhat.com> Signed-off-by: Mark Salter <msalter@redhat.com> Signed-off-by: Bernd Schmidt <bernds@codesourcery.com>
| * support generic kernel posix_types.hMark Salter2011-03-091-15/+15
| | | | | | | | | | Signed-off-by: Mark Salter <msalter@redhat.com> Signed-off-by: Bernd Schmidt <bernds@codesourcery.com>
| * use clone syscall for vforkMark Salter2011-03-091-41/+52
| | | | | | | | | | Signed-off-by: Mark Salter <msalter@redhat.com> Signed-off-by: Bernd Schmidt <bernds@codesourcery.com>
| * remove unused vfork.cMark Salter2011-03-091-26/+0
| | | | | | | | | | Signed-off-by: Mark Salter <msalter@redhat.com> Signed-off-by: Bernd Schmidt <bernds@codesourcery.com>
| * sunrpc: fix spurious fall-throughMark Salter2011-03-093-0/+3
| | | | | | | | | | | | | | Fix spurious fall-through. Signed-off-by: Mark Salter <msalter@redhat.com> Signed-off-by: Bernd Schmidt <bernds@codesourcery.com>
| * Add C6X-specific sys/ptrace.hBernd Schmidt2011-03-091-0/+176
| | | | | | | | | | | | | | The debugger needs some C6X-specific ptrace operations to get information about the DSBT binaries; similar to what's done on FD-PIC targets. Signed-off-by: Bernd Schmidt <bernds@codesourcery.com>