summaryrefslogtreecommitdiffstats
path: root/libc/sysdeps/linux
Commit message (Collapse)AuthorAgeFilesLines
...
| * 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>
| * bits/mmap.h: unify ala linux asm-generic effortsMike Frysinger2009-11-2320-1786/+19
| | | | | | | | | | | | | | | | | | | | Most ports have the same exact mman bit defines, so let's unify things like the linux kernel has with the asm-generic efforts. A few ports are left behind as they are non-trivial to merge -- the arch maintainers can tackle it if they care. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
| * futimens: Ducument why we need manual hidden_protoBernhard Reutner-Fischer2009-11-231-1/+6
| | | | | | | | | | | | | | Also, remove unneeded __need_timespec (It cuts off a tiny bit of work for CPP but is of course not strictly needed). Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* | Merge remote branch 'origin/master' into nptl_mergeAustin Foxley2009-11-227-3/+33
|\| | | | | | | | | | | | | | | | | Conflicts: Rules.mak libc/misc/sysvipc/msgq.c test/Rules.mak Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
| * futimens: add functionBernhard Reutner-Fischer2009-11-202-0/+25
| | | | | | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
| * ppoll: get NULL from stddef.hBernhard Reutner-Fischer2009-11-201-3/+2
| | | | | | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
| * sync some headers and disable unused prototypesPeter S. Mazinger2009-11-191-0/+1
| | | | | | | | | | Signed-off-by: Peter S. Mazinger <ps.m@gmx.net> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
| * SUSv4: disable isascii, toascii, _toupper, _tolowerBernhard Reutner-Fischer2009-11-191-0/+2
| | | | | | | | | | | | | | [__]isascii need to be defined all the time for the build. Signed-off-by: Peter S. Mazinger <ps.m@gmx.net> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
| * DO_XSI_MATH: add config knobBernhard Reutner-Fischer2009-11-191-0/+2
| | | | | | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
| * _Exit(): add weak alias to _exit() for C99Bernhard Reutner-Fischer2009-11-191-0/+1
| | | | | | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
| * disable _POSIX_SPAWN defineMike Frysinger2009-10-221-0/+2
| | | | | | | | | | | | | | We don't provide spawn.h let alone any other spawn funcs/types, so don't set up the _POSIX_SPAWN define that some packages (like vlc) check. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
| * sysctl: avoid inline initializationMike Frysinger2009-10-221-17/+9
| | | | | | | | | | | | | | | | Assign each field one by one rather than stack initialization as gcc will call memset() to zero out the rest of the structure -- which we don't care about as the field is unused and not seen outside of the libc. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
| * sparc: use fputs to write to stderrMike Frysinger2009-10-221-1/+1
| | | | | | | | | | | | | | This also has the advantage of fputs() having a hidden alias while puts does not. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
| * sparc: use HIDDEN_JUMPTARGET for errnoMike Frysinger2009-10-223-3/+3
| | | | | | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* | disable _POSIX_SPAWN defineMike Frysinger2009-11-091-0/+2
| | | | | | | | | | | | | | | | We don't provide spawn.h let alone any other spawn funcs/types, so don't set up the _POSIX_SPAWN define that some packages (like vlc) check. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | sysctl: avoid inline initializationMike Frysinger2009-11-091-17/+9
| | | | | | | | | | | | | | | | | | Assign each field one by one rather than stack initialization as gcc will call memset() to zero out the rest of the structure -- which we don't care about as the field is unused and not seen outside of the libc. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | sparc: use fputs to write to stderrMike Frysinger2009-11-091-1/+1
| | | | | | | | | | | | | | | | This also has the advantage of fputs() having a hidden alias while puts does not. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | sparc: use HIDDEN_JUMPTARGET for errnoMike Frysinger2009-11-093-3/+3
| | | | | | | | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | whitespace fixesAustin Foxley2009-10-1712-22/+20
| | | | | | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | cancellation support for a large amount of the required syscallsAustin Foxley2009-10-1719-172/+570
| | | | | | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | use *_not_cancel variants to avoid accidental cancellations with nptlAustin Foxley2009-10-171-0/+19
| | | | | | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>