summaryrefslogtreecommitdiff
path: root/libc
AgeCommit message (Collapse)Author
2008-10-28Finally fix the MALLOC=y and MALLOC_SIMPLE=y breakage from svn 23660. (I ↵Rob Landley
found it, this is Bernhard's patch to fix it. Tested and it Works For Me (tm)).
2008-10-28make getaddrinfo to NOT query DNS for IPv6 address if host is inDenis Vlasenko
/etc/hosts and it has IPv4 address there. The most common example is "127.0.0.1 localhost". We don't want "ping localhost" to stall and time out on IPv6 queries to, say, inaccessible DNS server, right? - 655 0 0 655 28f libc/inet/gethostbyname2_r.o + 685 0 0 685 2ad libc/inet/gethostbyname2_r.o
2008-10-27- pull in prototype for memalign()Bernhard Reutner-Fischer
2008-10-27- fix typo in r23808Bernhard Reutner-Fischer
2008-10-27libc/inet/getaddrinfo.c: const'ify some data;Denis Vlasenko
avoid using zero-filled constants in bss: text data bss dec hex filename 3182 24 48 3254 cb6 getaddrinfo_old.o 3280 0 0 3280 cd0 getaddrinfo.o
2008-10-25Use C implementation of strncmp.Khem Raj
Add a new strncmp testcase.
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-20- need to grab features before looking at eventually requested netlink supportBernhard Reutner-Fischer
Thanks to Peter S. Mazinger for pointing out this (obvious) error. The __ASSUME_NETLINK from ricardw's r22531 references a non-existing variable in certain cases. I don't see how that could possibly work..
2008-10-19- do not include netlink headers if netlink is turned off (Michael Deutschmann)Bernhard Reutner-Fischer
Closes #5544
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-18- sync fix for scandir errno handling to scandir64 (r23600)Bernhard Reutner-Fischer
Thanks to Peter S. Mazinger for mentioning this.
2008-10-17- des uses ntohlBernhard Reutner-Fischer
2008-10-16This should fix malloc with debug and without threads. (Chase N Douglas)Bernhard Reutner-Fischer
This should have been in r23660. Untested.
2008-10-11Fix bug 4994 hangs on read(). I have tested the patch extensibly on ARM/LT.old.Khem Raj
Thank you Chase Douglas for reporting it and for the patch.
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-08- Fix strtol*() with xlocale (on e.g. x86_64) (closes #2544)Bernhard Reutner-Fischer
2008-10-08- add/use variables to make build-tools configurableBernhard Reutner-Fischer
2008-10-06Fix scandir function to reset the errno when the Carmelo Amoroso
selector returns zero(no entries) modifying the errno. The attached test case implements a dummy filter that returns alway no entries, but change the errno. scandir is not expected to fail, just returning 0 entries. Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com> Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
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- sync obstack.{c,h} with glibc (Peter S. Mazinger)Bernhard Reutner-Fischer
2008-10-06- Fallback waitid impl (Peter S. Mazinger)Bernhard Reutner-Fischer
2008-10-06- hide relocation (Peter S. Mazinger)Bernhard Reutner-Fischer
2008-10-06- tweak inclusion of asm/socket.h for linux-2.4 (Peter S. Mazinger)Bernhard Reutner-Fischer
2008-10-03- add long double math wrappers (Ned Ludd)Bernhard Reutner-Fischer
2008-10-03- use c89-style commentsBernhard Reutner-Fischer
Closes issue #5194
2008-10-01Fix compilation problem whit the following config options:Carmelo Amoroso
UCLIBC_HAS_STRING_GENERIC_OPT=y UCLIBC_HAS_STRING_ARCH_OPT is not set by making WORD_COPY_FWD macros visible. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
2008-09-30- add missing const qualifier for !__NR_sched_setaffinity && HAVE_STUBSBernhard Reutner-Fischer
2008-09-30- remove some duplicate includesBernhard Reutner-Fischer
2008-09-30- fix compilation of UCLIBC_HAS_PTY && !ASSUME_DEVPTS && !LINUX_SPECIFICBernhard Reutner-Fischer
2008-09-29- add a copy of user_regsBernhard Reutner-Fischer
2008-09-29- honour UCLIBC_HAS_SYSLOGBernhard Reutner-Fischer
2008-09-29- now passes all LTP testsBernhard Reutner-Fischer
2008-09-29i18n: Fix mbrtowc function to handle 0xc0 and 0xc1 sequence.Carmelo Amoroso
When the first byte of the multibyte sequence start with 0xc0 or 0xc1, the whole sequence is invalid, so the return value must be -1 (instead of -2). Fix bug #686. Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com> Acked-by: Carmelo Amoroso <carmelo.amoroso@st.com>
2008-09-29- fix ISO C keywordsBernhard Reutner-Fischer
2008-09-27getgrouplist(): ...add files which I forgot to add.Denis Vlasenko
2008-09-27implement getgrouplist()Denis Vlasenko
2008-09-26use __UCLIBC_HAS_STUBS__Mike Frysinger
2008-09-26- move libm_hidden_proto to the corresponding headers. Remove from callsites.Bernhard Reutner-Fischer
Note that gamma_r is not provided by glibc, perhaps add a SUN specific knob later
2008-09-26Rebased the memcpy() and memset() implementations for CRIS on the versionsPeter Kjellerstedt
found in newlib rather than the ones found in glibc. This should make them smaller and (hopefully) make them compile with newer versions of gcc.
2008-09-26Correct _init()/_fini() for CRISv32 as suggested by Stefan de Konink.Peter Kjellerstedt
2008-09-25- cast both times to double for consistencyBernhard Reutner-Fischer
2008-09-25- also clean .oSBernhard Reutner-Fischer
2008-09-25- disable gettext support in obstack.Bernhard Reutner-Fischer
In function `print_and_abort': obstack.c:(.text.print_and_abort+0x1b): undefined reference to `__dcgettext'
2008-09-25- fix compilation of legacy modeBernhard Reutner-Fischer