summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux
AgeCommit message (Collapse)Author
2008-12-04Remove __NTH from the declation.Khem Raj
2008-12-03A missing change when we recently released a lot of fixCarmelo Amoroso
on localae support
2008-12-03Two other absolutely safe change that will be used by NPTL, aimedCarmelo Amoroso
to simplify merge.
2008-12-01hostid: improve extremely unreadable partsDenis Vlasenko
*: remove checks of sigaction and sigprocmask results in cases where they clearly can't fail: sigaction(known_good_sig) sigprocmask(known_good_how) text data bss dec hex filename - 393 4 0 397 18d libc/pwd_grp/lckpwdf.o + 382 4 0 386 182 libc/pwd_grp/lckpwdf.o - 56 0 0 56 38 libc/signal/sigblock.o + 44 0 0 44 2c libc/signal/sigblock.o - 211 0 0 211 d3 libc/signal/sigset.o + 202 0 0 202 ca libc/signal/sigset.o - 56 0 0 56 38 libc/signal/sigsetmask.o + 44 0 0 44 2c libc/signal/sigsetmask.o - 309 0 0 309 135 libc/unistd/sleep.o + 256 0 0 256 100 libc/unistd/sleep.o
2008-12-01on Bernd's request, remove commented-out code snippetsDenis Vlasenko
2008-12-01remove checks for "impossible" errors,Denis Vlasenko
clarify uses of unoptimized sigXXX ops (they check signo), use faster sigops where approproate. text data bss dec hex filename - 68 0 0 68 44 libc/signal/sighold.o + 63 0 0 63 3f libc/signal/sighold.o - 114 0 0 114 72 libc/signal/sigintr.o + 110 0 0 110 6e libc/signal/sigintr.o - 113 0 0 113 71 libc/signal/sigpause.o + 108 0 0 108 6c libc/signal/sigpause.o - 68 0 0 68 44 libc/signal/sigrelse.o + 63 0 0 63 3f libc/signal/sigrelse.o
2008-12-01fix sigset_t size for mips (it's the only arch with 128 signals).Denis Vlasenko
fix _NSIG for it. better document what's going on in sigaction(). seems to not induce any actual code changes (sans mips).
2008-12-01optimize signal mask ops. comment out "impossible" errorsDenis Vlasenko
text data bss dec hex filename - 1179 13 2 1194 4aa libc/misc/syslog/syslog.o + 1165 13 2 1180 49c libc/misc/syslog/syslog.o - 435 4 0 439 1b7 libc/pwd_grp/lckpwdf.o + 393 4 0 397 18d libc/pwd_grp/lckpwdf.o - 38 0 0 38 26 libc/signal/sigandset.o + 32 0 0 32 20 libc/signal/sigandset.o - 63 0 0 63 3f libc/signal/sigblock.o + 56 0 0 56 38 libc/signal/sigblock.o - 22 0 0 22 16 libc/signal/sigempty.o + 20 0 0 20 14 libc/signal/sigempty.o - 25 0 0 25 19 libc/signal/sigfillset.o + 20 0 0 20 14 libc/signal/sigfillset.o - 34 0 0 34 22 libc/signal/sigisempty.o + 16 0 0 16 10 libc/signal/sigisempty.o - 38 0 0 38 26 libc/signal/sigorset.o + 32 0 0 32 20 libc/signal/sigorset.o - 119 0 0 119 77 libc/signal/sigpause.o + 113 0 0 113 71 libc/signal/sigpause.o - 215 0 0 215 d7 libc/signal/sigset.o + 211 0 0 211 d3 libc/signal/sigset.o - 63 0 0 63 3f libc/signal/sigsetmask.o + 56 0 0 56 38 libc/signal/sigsetmask.o - 194 0 1 195 c3 libc/stdlib/abort.o + 183 0 1 184 b8 libc/stdlib/abort.o - 323 0 0 323 143 libc/unistd/sleep.o + 309 0 0 309 135 libc/unistd/sleep.o
2008-11-29add libc_hidden_proto(__cmsg_nxthdr) for mipsDenis Vlasenko
2008-11-29shring sugnal-relared stuff a bit. BTW why constant memset is not inlined by ↵Denis Vlasenko
gcc? text data bss dec hex filename - 38015 18096 8636 64747 fceb lib/libpthread-0.9.30-svn.so + 38001 18096 8636 64733 fcdd lib/libpthread-0.9.30-svn.so - 274842 1835 19012 295689 48309 lib/libuClibc-0.9.30-svn.so + 274779 1835 19012 295626 482ca lib/libuClibc-0.9.30-svn.so
2008-11-29reduce sigset_t size for 128 bytes to 64 bits:Denis Vlasenko
text data bss dec hex filename - 38457 18352 8636 65445 ffa5 lib/libpthread-0.9.30-svn.so + 38015 18096 8636 64747 fceb lib/libpthread-0.9.30-svn.so - 8205 280 12 8497 2131 lib/libthread_db-0.9.30-svn.so + 8193 280 12 8485 2125 lib/libthread_db-0.9.30-svn.so - 275208 1823 19132 296163 484e3 lib/libuClibc-0.9.30-svn.so + 274787 1823 19012 295622 482c6 lib/libuClibc-0.9.30-svn.so
2008-11-27Make __UCLIBC_HAVE_ASM_CFI_DIRECTIVES__ visible in case the archCarmelo Amoroso
supports this feature. SH4 will use this in some aseembly files for the NPTL implementation. Add now safely on trunk. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
2008-11-26- revert 24148:24151Bernhard Reutner-Fischer
2008-11-25- hide locksBernhard Reutner-Fischer
2008-11-25- hide __libc_{f,}statfs. Thanks to Peter S. Mazinger for mentioning this fact.Bernhard Reutner-Fischer
2008-11-25- cosmetic tidy up of clean targetBernhard Reutner-Fischer
2008-11-25- Fix thumb2 PIE (Joseph S. Myers)Bernhard Reutner-Fischer
This patch fixes position-independent executables (PIEs) for Thumb-2. In Thumb assembly, instructions reading pc give a value 4 greater than the address of the instruction, rather than 8 greater as in ARM mode, so the offset to the GOT needs to have the right offset. (The Thumb-1 code already gets this right; it's the code shared by ARM and Thumb-2 that needs fixing.)
2008-11-22signal ops: avoid calls through PLT for __sigXXX opsDenis Vlasenko
linuxthreads.old/manager: pointless style fixes, no code changes
2008-11-22fix some unneeded PLT referencesDenis Vlasenko
2008-11-21fix ioperm build problems caused by libc_hidden_proto removalDenis Vlasenko
2008-11-21deal with TODOs left over from libc_hidden_proto removalDenis Vlasenko
(fixes build with locale enabled)
2008-11-20Last portion of libc_hidden_proto removal.Denis Vlasenko
Appears to build fine (several .configs tried)
2008-11-20next portion of libc_hidden_proto removalDenis Vlasenko
2008-11-18- add __hot and __cold annotationsBernhard Reutner-Fischer
Will spare us quite some likely()/unlikely() occurances. See http://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html for details
2008-11-18libc_hidden_proto removal, a few more functionsDenis Vlasenko
2008-11-18libc_hidden_proto removal, just a few functionsDenis Vlasenko
2008-11-16- cleanup {,f}stat{,v}fs{,64} relocsBernhard Reutner-Fischer
2008-11-15- Remove linux-specific prototypes if asked to.Bernhard Reutner-Fischer
2008-11-15- revert wrong r24049Bernhard Reutner-Fischer
2008-11-15- Remove linux-specific prototypes if asked to.Bernhard Reutner-Fischer
2008-11-14Current kernels support more than 8 bit major/minor. Pass dev_t through toRob Landley
the kernel unmolested.
2008-11-07- less verbose make cleanBernhard Reutner-Fischer
2008-11-03Add extern reference to __libc_sigaction in sigaction.c for AVR32 archHans-Christian Egtvedt
Signed-off-by: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
2008-11-03Sync clone() function declaration for AVR32 with sched.h declarationHans-Christian Egtvedt
This patch fixes the previous commit for clone on AVR32 arch, where the function parameters where not updated after adding #include <sched.h>. Signed-off-by: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
2008-11-03Add hint for read ahead function in fcntl.h for AVR32 archHans-Christian Egtvedt
Signed-off-by: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
2008-11-03Add include to silence compiler warning when compiling clone.c for AVR32Hans-Christian Egtvedt
Signed-off-by: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
2008-10-30File removed as it was not only redundant but also horribly out of date.Ricard Wanderlof
2008-10-28- trim superfluous ';'. No objcode changesBernhard Reutner-Fischer
2008-10-28- fix compilation if LFS is off and STUBs are requestedBernhard Reutner-Fischer
2008-10-24- fix mips syscall (Atsushi Nemoto)Bernhard Reutner-Fischer
2008-10-24- tidy up inline:Bernhard Reutner-Fischer
ldso and syscalls are __always_inline (the latter would need more cleanup)
2008-10-22- remove superfluous ';'. No objcode changes.Bernhard Reutner-Fischer
2008-10-22- delete_module() takes two arguments on linux-2.6Bernhard Reutner-Fischer
Closes #5644
2008-10-19- fix sigaction on older kernels (Michael Deutschmann)Bernhard Reutner-Fischer
In issue #5554 Michael wrote: The implementation of sigaction on i386 for older kernels makes the system call using an inline asm element with two flaws: 1. The asm is not marked as depending on the kact structure or modifying the koact structure. Thus, GCC is free to assume these structures need not be kept consistent, allowing it to remove all initialization of kact. 2. The asm allows the signal number to be provided as a memory reference. But this allows GCC to provide a stack-relative operand, which will break because the assembler saves %ebx on the stack before using that operand. 1 didn't use to be a problem in practice because GCC 4.2.* didn't seize the optimization opportunity. GCC 4.3.2, however, optimizes out the "kact.sa_flags = act->sa_flags | SA_RESTORER;" line, so that the kernel sees garbage in sa_flags. This can result in the kernel seeing the SA_RESETHAND flag, causing erratic behaviour in signal dependent programs. 2 becomes an issue if "-fomit-frame-pointer" is provided. In uClibc-0.9.29 it isn't, uClibc-0.9.30-rc2 does use the flag by default.
2008-10-10- fix copy'n paste errorBernhard Reutner-Fischer
2008-10-10- fix return valueBernhard Reutner-Fischer
2008-10-10- add signalfd()Bernhard Reutner-Fischer
2008-10-06- fix typo in previous commitBernhard Reutner-Fischer
2008-10-06- add libc_hidden_def(clock_getres) as spotted by Ned LuddBernhard Reutner-Fischer
2008-10-06- Fallback waitid impl (Peter S. Mazinger)Bernhard Reutner-Fischer