aboutsummaryrefslogtreecommitdiff
path: root/libc
Commit message (Collapse)AuthorAgeFilesLines
* SH-2A FDPIC supportsuperh_fdpicGravatar Andrew Stubbs2011-02-239-7/+613
| | | | | | These are the changes used in CodeSourcery's SH-2A uClinux Lite toolchains. Signed-off-by: Andrew Stubbs <ams@codesourcery.com>
* Add missing CLIBABI variables __aeabi_stdin, __aeabi_stdout, __aeabi_stderr.Gravatar Joseph Myers2009-06-281-0/+15
| | | | | | | | | | | The ARM EABI has a document CLIBABI specifying various __aeabi_* functions and variables to be provided for the use of portable objects that can be linked with different EABI-conforming C libraries. __aeabi_stdin, __aeabi_stdout and __aeabi_stderr were missing in uClibc; this patch (originally from Nathan Froyd and for glibc) adds them. Signed-off-by: Joseph Myers <joseph@codesourcery.com>
* wchar: fix inverted parameters in error messageGravatar André Goddard Rosa2009-06-281-1/+1
| | | | | | | | | | The error message should output "fromcode -> tocode" rather than "tocode -> fromcode". Seems to be a typo due to the order of the func called: iconv_t iconv_open(const char *tocode, const char *fromcode); Signed-off-by: André Goddard Rosa <andre.goddard@gmail.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* libc.so: include all output formats in linker scriptGravatar Steve Bennett2009-06-281-2/+2
| | | | | | | | | | Rather than ripping out the default output format from the linker, include the big/little endian alternatives for the people who link with bi-endian toolchains. URL: http://lists.uclibc.org/pipermail/uclibc/2009-June/042595.html Signed-off-by: Steve Bennett <steveb@workware.net.au> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* waitid: linux ABI takes 5 args, not 4Gravatar Mike Frysinger2009-05-271-4/+16
| | | | | | | | The POSIX waitid() takes 4 args, but the Linux one takes 5 args, so make sure we stuff the 5th arg with a NULL. Otherwise garbage gets randomly passed up and considering this is a pointer, that's baaaad. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Add working pipe implementation for sparcGravatar Austin Foxley2009-05-263-3/+69
| | | | | | Also get rid of warning in sparc sigaction Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* Add a sigaction implementation for sparcGravatar Austin Foxley2009-05-202-1/+95
| | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* Add position independent code for crt1.S.Gravatar Carmelo Amoroso2009-05-051-0/+45
| | | | | | | | | This will generate a Scrt1.o that is linked to executabled when compiled as PIE code (position independent executable) without requiring relocation in .text section (not allowed on uclibc/sh4). Signed-off-by: Peter Griffin <pgriffin@mpc-data.co.uk> Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com>
* libc/string/i386/memset.c: memset 1 byte at a time is a bit grossGravatar Denis Vlasenko2009-04-231-9/+56
|
* libc/inet/resolv.c:Gravatar Denis Vlasenko2009-04-182-278/+467
| | | | | | | | | | | | | | | | Collapse __length_dotted into __length_question (the sole user of it). Make __length_question and __decode_answer static, they are used only once by only one function. Delete __decode_question, it is unused. All in all, four less .o files in libc.a. Document what __dns_lookup returns (length of the packet). Propagate packet len into __decode_answer, __length_question, __decode_dotted and check that we do not use data past the end of the packet. Rename some variables/parameters to better names (len -> packet_len, data -> packet etc). Add mini-doc how DNS packets look like. Style cleanup.
* make sure to block all signals when calling daemon() to prevent delivery ↵Gravatar Mike Frysinger2009-04-131-1/+13
| | | | while the parent is sharing the stack
* implement daemon() using clone() on no-mmu systems as suggested by Jamie LokierGravatar Mike Frysinger2009-04-072-15/+26
|
* 32/64 bit sparc got unified in 2.6.29 the way x86/x86_64 did in 2.6.28.Gravatar Rob Landley2009-03-271-1/+2
| | | | The new guard symbol is "__SPARC_POSIX_TYPES_H".
* - Add strtouq alias (to strtoul) for 64bitGravatar Bernhard Reutner-Fischer2009-03-251-0/+3
| | | | | | | | The strtouq alias was only available on 32bit, breaking compilation of stuff using strtouq on 64bit machines. At the same time use the correct return type (u_quad_t). Signed-of-by: Peter Korsgaard <jacmet@sunsite.dk>
* enable mprotect() regardless of MMU as some systems have MPUs which allows ↵Gravatar Mike Frysinger2009-03-161-1/+1
| | | | memory protection
* import user.h from the kernel as it is no longer exported by the kernelGravatar Mike Frysinger2009-03-161-0/+57
|
* Update copyright header.Gravatar Khem Raj2009-03-161-1/+1
|
* add GNU extension for select timeouts where the sub-second field is actually ↵Gravatar Mike Frysinger2009-03-131-1/+20
| | | | longer than one second
* resolver:Gravatar Denis Vlasenko2009-03-101-63/+7
| | | | | | | res_query: do not unconditionally set h_errno to TRY_AGAIN (closes bug 173). cleanups: s/__dn_expand/dn_expand/, remove superfluous dn_expand declaration, remove libc_hidden_proto junk
* Define creat in an independent fileGravatar Khem Raj2009-03-052-5/+15
|
* mknod: widen the parameters to match kernelGravatar Denis Vlasenko2009-03-035-18/+21
| | | | | | | | | ustat: same, + remove superfluous "conversion" which does nothing at best, loses high dev bits at worst i386/bits/kernel_stat.h: update to reflect reality (wider dev_t) h8300/bits/kernel_stat.h: same arm/bits/kernel_stat.h: cosmetics to match kernel header to the letter
* Add EPOLLRDHUP constantGravatar Denis Vlasenko2009-03-021-0/+2
|
* fix breakage in x86_64 defconfigGravatar Denis Vlasenko2009-02-277-57/+13
|
* Reinstate __libc_foo's needed for linuxthreads.old.Gravatar Denis Vlasenko2009-02-2517-55/+154
| | | | | Now they are only enabled if linuxthreads.old are selected.
* Use gcc built-in defines for detecting SH cores instead ofGravatar Carmelo Amoroso2009-02-236-7/+7
| | | | | | | | | | | | | uclibc config option macros (aligning SH to all other archs). Changes applied as below: __CONFIG_SH4__ -> __SH4__ __CONFIG_SH2__ -> __sh2__ __CONFIG_SH2A__ -> __SH2A__ Note: pay attention to capital letters Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* Fix my previous commit to use preprocessor in the right way !Gravatar Carmelo Amoroso2009-02-201-1/+1
|
* Fix typo.Gravatar Carmelo Amoroso2009-02-201-1/+1
|
* sh: Fix __SH_SYSCALL_TRAP_BASE for SH2A architectureGravatar Carmelo Amoroso2009-02-201-1/+1
| | | | Signed-off-by: Peter Griffin <pgriffin@mpc-data.co.uk>
* mathcalls.h: remove tons of redundant semicolons; better comment about macrosGravatar Denis Vlasenko2009-02-181-85/+87
| | | | | | | math.h: make macro machinery a bit more understandable No code changes (verified with objdump)
* test/math/compile_test.c: "are long double functions even compile/link?" testGravatar Denis Vlasenko2009-02-171-0/+7
| | | | | *: fix everything which prevents above from building
* suppress bogus ioctl on fd==INT_MAX when vasprintf() is calledGravatar Denis Vlasenko2009-02-154-14/+23
|
* - repair my r25322 that ment to deal with getdomainname()'s visibilityGravatar Bernhard Reutner-Fischer2009-02-131-3/+7
|
* - fix comment style to make it compile againGravatar Bernhard Reutner-Fischer2009-02-131-27/+37
| | | | - add note about "/etc/config/" and the resolver code per se.
* - we may need getdomainname internallyGravatar Bernhard Reutner-Fischer2009-02-131-0/+2
|
* - fix link failures coming from recently added, misplaced strverscmp.Gravatar Bernhard Reutner-Fischer2009-02-131-0/+0
|
* - fix fallout from r24140 and r24160 for !CTYPE_TABLESGravatar Bernhard Reutner-Fischer2009-02-131-0/+1
|
* - fix compilation of !UCLIBC_HAS_CTYPE_TABLES by merging duplicate bitsGravatar Bernhard Reutner-Fischer2009-02-131-23/+0
| | | | into ctype.h
* - workaround oddity with position of function attributesGravatar Bernhard Reutner-Fischer2009-02-131-1/+1
|
* docs/probe_math_exception.c:Gravatar Denis Vlasenko2009-02-111-3/+14
| | | | | | | | | | | | update example libc/sysdeps/linux/i386/bits/mathinline.h: improve __finite() macro, add __finitef macro (why they aren't always macros? why aren't they arch independent?) libm/math_private.h: much better comments on math_opt_barrier() and math_force_eval() libm/s_finite[f].c: improve out-of-line __finite[f]() too (one byte less, yay...)
* forgot to add libc/string/generic/strverscmp.cGravatar Denis Vlasenko2009-02-081-0/+117
|
* Add strverscmp() and versionsort[64]().Gravatar Denis Vlasenko2009-02-083-2/+34
| | | | | By Hai Zaar (haizaar AT codefidence.com)
* libm/ldouble_wrappers.c: add libm_hidden_def's to fix testsuite buildGravatar Denis Vlasenko2009-02-022-2/+2
| | | | | | | test/Rules.mak: don't pass target options to host build test/math/basic-test.c: fix test build error patching file test/unistd/errno.c: fix test build warning
* fix ppoll. we forgot to pass 5th parameter to the syscallGravatar Denis Vlasenko2009-01-281-14/+17
|
* "make utils" now successfully makes utils for targetGravatar Denis Vlasenko2009-01-281-1/+1
|
* - make sure __user is defined when including kernel's sigcontext.hGravatar Bernhard Reutner-Fischer2009-01-221-0/+3
|
* - remove unavailable functionality upon request (Peter Mazinger)Gravatar Bernhard Reutner-Fischer2009-01-211-0/+4
|
* *: remove __UCLIBC_CURLOCALE_DATA, __UCLIBC_CURLOCALE_DATA.xGravatar Denis Vlasenko2009-01-2111-129/+114
| | | | | | | | | | | | | | | | | | | is always equivalent to __UCLIBC_CURLOCALE->x. remove typedef __uclibc_locale_t, it used only in a few places, it is lees confusing to use struct __uclibc_locale_struct everywhere. xlocale.h: hide __global_locale back under _LIBC, bug 53 is wrong in claiming it should be exported. Also hide under _LIBC: extern __locale_t __curlocale_var; extern __locale_t __curlocale(void); extern __locale_t __curlocale_set(__locale_t newloc); # define __UCLIBC_CURLOCALE # define __XL_NPP(N) # define __LOCALE_PARAM # define __LOCALE_ARG # define __LOCALE_PTR
* __global_locale must be visible to users, move it outside of #ifdef _LIBCGravatar Denis Vlasenko2009-01-181-1/+2
|
* - fixup incomplete r24515 (fix redefinitions of posix_types for i386->x86_64 ↵Gravatar Bernhard Reutner-Fischer2009-01-122-1/+11
| | | | with linux >= 2.6.28)
* libc/signal/sigaction.c: s/!=/==/Gravatar Denis Vlasenko2009-01-101-1/+1
|