summaryrefslogtreecommitdiffstats
path: root/libc/sysdeps
Commit message (Collapse)AuthorAgeFilesLines
...
| * libc: Add a common sysdep headerCarmelo Amoroso2010-02-101-0/+139
| | | | | | | | | | | | | | | | | | | | Add a common header file to provide macros useful in asm code: C_LABEL to construct the asm name for a C symbol cfi_xxx to generate eh_frame unwind information. Ported from NPTL branch. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
| * getdents: Fix mips64 buildAtsushi Nemoto2010-02-051-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On Wed, 27 Jan 2010 07:14:08 +0100, Carmelo AMOROSO <carmelo.amoroso@st.com> wrote: > I would re-write your patch in a simpler way. > > We already have the following > > 136 #if defined __UCLIBC_HAS_LFS__ && ! defined __NR_getdents64 > 137 attribute_hidden strong_alias(__getdents,__getdents64) > 138 #endif > > I think that it's simpler to move in the proper place this statement. Thanks, indeed. If we came into "#elif WORDSIZE == 32" block, above condition never be true. So we can just move this statement out of "#if...#elif...#elif...#endif" block. Here is a revised patch. ------------------------------------------------------ From: Atsushi Nemoto <anemo@mba.ocn.ne.jp> Subject: [PATCH] getdents: Fix mips64 build Some archs (such as mips64) do not have getdents64 syscall but have getdents syscall. Define alias for it. This fixes regression from 0.9.30.1. Backgrounds: This is once done by commit e8b1c674. But after the commit 33bcf733 ("Use getdents syscall if kernel provide supports for this instead of relying upon getdents64."), if __ASSUME_GETDENTS32_D_TYPE was defined the alias for getdents64 is not defined. The macro __ASSUME_GETDENTS32_D_TYPE had been effectively ignored until 0.9.30.1 but the commit 0f0f20ab ("Move kernel-features.h header from the linuxthread directory to a common one...") really enables it. Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* | Get x86_64 compile to succeed.Khem Raj2010-02-191-1/+2
| | | | | | | | | | | | * The changes to clone.S needs testing Signed-off-by: Khem Raj <raj.khem@gmail.com>
* | add dwarf defines used in cfi statementsAustin Foxley2010-02-191-0/+19
| | | | | | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | update kernel-features.h with futex featuresAustin Foxley2010-02-191-0/+17
| | | | | | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | fixes to get nptl compiling for x86_64Austin Foxley2010-02-192-8/+5
| | | | | | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | i386 unify sysdep.hAustin Foxley2010-02-181-1/+125
| | | | | | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | x86_64: unify sysdep.hAustin Foxley2010-02-181-0/+352
| | | | | | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | Get new nptl building on SH4Khem Raj2010-02-172-1/+21
| | | | | | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* | compile fixes for i386 nptlAustin Foxley2010-02-171-0/+336
| | | | | | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | fix nptl build for sparcAustin Foxley2010-02-171-1/+5
| | | | | | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | Fix nptl build for mipsKhem Raj2010-02-171-0/+3
| | | | | | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* | Add missing libgcc_s.h header.Khem Raj2010-02-171-0/+2
| | | | | | | | | | | | * Do not include tls.h in aeabi_read_tp.S. Its not needed. Signed-off-by: Khem Raj <raj.khem@gmail.com>
* | Assorted fixed to get nptl compiling on ARMKhem Raj2010-02-173-15/+56
| | | | | | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* | sparc/sigaction: revert change. These semantics are needed for nptlAustin Foxley2010-02-131-4/+5
| | | | | | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | sparc/sysdep: Unify sparc sysdep.hAustin Foxley2010-02-131-0/+65
| | | | | | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | arm/sysdep: Unify arm sysdep.hKhem Raj2010-02-111-7/+278
| | | | | | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* | mips/sysdep.h: Unify mips sysdep.hKhem Raj2010-02-111-16/+350
| | | | | | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* | nptl: sysdep headers re-factoringCarmelo Amoroso2010-02-093-0/+507
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch will re-factor and simplify sysdep headers handling for nptl branch. The reason is to use some useful macros in asm code (i.e. ENTRY()) that are available only into nptl branch because are defined in sysdep.h header under the nptl folder even if they are not related to NPTL at all (this was likely due to a bad choice done at the early stage of NPTL porting). This is a required steps for integrating into master branch some asm code available in nptl branch for sh4. The main changes are described below: nptl/sysdeps/generic/sysdep.h (moved) ---> libc/sysdeps/linux/common/sysdep.h nptl/sysdeps/arm/sysdep.h (moved) ---> libc/sysdeps/linux/arm/sysdep.h nptl/sysdeps/sh/sysdep.h ---------------------| nptl/sysdeps/unix/sh/sysdep.h ----------------| nptl/sysdeps/unix/sysv/linux/sh/sysdep.h -----| nptl/sysdeps/unix/sysv/linux/sh/sh4/sysdep.h -| |(merged) ---> libc/sysdeps/linux/sh nptl/sysdeps/unix/sysdep.h (deleted) Similarly the mips and arm sysdep.h should be merged and updated as for sh arch. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* | Merge commit 'origin/master' into nptlAustin Foxley2010-02-057-23/+40
|\| | | | | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
| * prctl: silence shadow warningsBernhard Reutner-Fischer2010-02-051-1/+1
| | | | | | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
| * Unbreak build for sparc on some config'sAustin Foxley2010-02-031-5/+4
| | | | | | | | | | | | Thanks to rob@landley.net Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
| * powerpc/bits/sysdep.h: move confusingly placed #undefDenys Vlasenko2010-02-031-5/+5
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * remove two checks for gettimeofday errorDenys Vlasenko2010-02-021-4/+6
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * time,times: stop interpreting negative return values ar errorsDenys Vlasenko2010-02-023-8/+24
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* | kernel-features: add __ASSUME_POSIX_CPU_TIMERSBernhard Reutner-Fischer2010-02-051-0/+5
| | | | | | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* | Merge branch 'master' into nptlCarmelo Amoroso2010-01-251-1/+3
|\| | | | | | | | | | | | | | | | | | | Conflicts: libc/inet/Makefile.in libc/inet/hostid.c Synchronise nptl branch with master branch @ c4b750195714ec7c10aa4de15610c5aae0751c1c Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
| * silence warning about implicit decl of sysctlBernhard Reutner-Fischer2010-01-221-1/+3
| | | | | | | | | | | | ... and reinstate comment explaining the gory details Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
| * avr32: add varargs handling of prctl syscallHans-Christian Egtvedt2010-01-212-1/+37
| | | | | | | | | | | | | | | | prctl is defined to use varargs in the header file, hence it needs varargs specific handling in the source. This patch properly handles the variodic argument before the syscall is passed to the kernel for the AVR32 architecture. Signed-off-by: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
| * futimens: add missing local prototypeBernhard Reutner-Fischer2010-01-161-0/+1
| | | | | | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
| * mips/nptl: Pass correct parameters to dl_find_hash when resolving TLS ↵Khem Raj2010-01-141-33/+13
| | | | | | | | | | | | | | | | | | relocations. Make use of macros from sys/asm.h in crt1.S These two changes are needed for mips nptl to boot once again. Signed-off-by: Khem Raj <raj.khem@gmail.com>
* | futimens: add missing local prototypeBernhard Reutner-Fischer2010-01-211-0/+1
| | | | | | | | | | | | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> (cherry picked from commit d0a8b14169c6f01dadd07f6b4e14cc335a62f234) Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* | mips/nptl: Pass correct parameters to dl_find_hash when resolving TLS ↵Khem Raj2010-01-211-33/+13
| | | | | | | | | | | | | | | | | | | | | | | | relocations. Make use of macros from sys/asm.h in crt1.S These two changes are needed for mips nptl to boot once again. Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit 9c343fd4030dcd7a52616f365893177dded50346) Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* | avr32: add varargs handling of prctl syscallHans-Christian Egtvedt2010-01-212-1/+37
| | | | | | | | | | | | | | | | prctl is defined to use varargs in the header file, hence it needs varargs specific handling in the source. This patch properly handles the variodic argument before the syscall is passed to the kernel for the AVR32 architecture. Signed-off-by: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
* | Merge commit 'origin/master' into nptlAustin Foxley2009-12-191-2/+1
|\| | | | | | | | | | | | | | | Conflicts: libc/signal/sigpause.c libc/string/x86_64/memset.S Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
| * x86_64: fix multiple definition of chk functionsAustin Foxley2009-12-191-2/+1
| | | | | | | | | | | | also enable __chk_fail and only try to call it when SSP is on Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
| * build: Get rids of PIC macro using compiler flag __PIC__ insteadCarmelo Amoroso2009-12-161-1/+1
| | | | | | | | | | | | | | Based on Peter Mazinger's comments on a recent commit, I decided to get rids of all occurrences of PIC changing them to __PIC__ Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
| * sh: Add a prototype for the gcc __set_fpscr internal functionCarmelo Amoroso2009-12-031-1/+3
| | | | | | | | | | | | | | | | | | The sh port uses the gcc __set_fpscr internal function, but neither gcc nor glibc creates a prototype for it. This leads to a bunch of random warnings about implicit decls during the build. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
| * uClibc_ctype.h: fix inverted check for susv4 macroAustin Foxley2009-11-301-1/+1
| | | | | | | | | | | | Was causing build failures if ctype tables were disabled and susv4 was on Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | fix multiple definitions of pthread_once for x86_64Austin Foxley2009-12-161-0/+1
| | | | | | | | | | | | also add a missing weak for clone Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | x86_64: no waitpid syscall exists, so use wait4Austin Foxley2009-12-161-3/+5
| | | | | | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | build: Get rids of PIC macro using compiler flag __PIC__ insteadCarmelo Amoroso2009-12-161-1/+1
| | | | | | | | | | | | | | Based on Peter Mazinger's comments on a recent commit, I decided to get rids of all occurrences of PIC changing them to __PIC__ Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* | get x86_64 nptl buildingAustin Foxley2009-12-113-5/+21
| | | | | | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | sh: Add a prototype for the gcc __set_fpscr internal functionCarmelo Amoroso2009-12-031-1/+3
| | | | | | | | | | | | | | | | | | The sh port uses the gcc __set_fpscr internal function, but neither gcc nor glibc creates a prototype for it. This leads to a bunch of random warnings about implicit decls during the build. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* | uClibc_ctype.h: fix inverted check for susv4 macroAustin Foxley2009-11-301-1/+1
| | | | | | | | | | | | Was causing build failures if ctype tables were disabled and susv4 was on Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | Merge remote branch 'origin/master' into nptlAustin Foxley2009-11-2831-1805/+143
|\| | | | | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
| * make x86_64 struct utmp glibc-compatibleDenys Vlasenko2009-11-271-1/+2
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * sync confname, environments with glibcBernhard Reutner-Fischer2009-11-262-17/+102
| | | | | | | | | | | | | | Plus related synch. Add a testcase for the sysconf variables based on the one from glibc Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
| * in6_{pktinfo,mtuinfo}: provide type if IPV6 is onBernhard Reutner-Fischer2009-11-251-0/+2
| | | | | | | | | | | | Disable some IPv6 header defines if IPv6 is off. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
| * nommu: use MAP_UNINITIALIZE for mallocsMike Frysinger2009-11-236-0/+12
| | | | | | | | | | | | | | | | | | Now that the kernel supports MAP_UNINITIALIZE, have the malloc places use it to get real uninitialized memory on no-mmu systems. This avoids a lot of normally useless overhead involved in zeroing out all of the memory (sometimes multiple times). Signed-off-by: Mike Frysinger <vapier@gentoo.org>