summaryrefslogtreecommitdiffstats
path: root/libc
Commit message (Collapse)AuthorAgeFilesLines
...
| * arc4random.c, stdlib.h: get rid of hidden arc4random_stirPeter S. Mazinger2011-03-091-5/+5
| | | | | | | | | | | | The function is used only in one file, make an internal static version for this Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
| * regcomp.c, aeabi_mb_cur_max.c: use unconditionally MB_CUR_MAX from stdlib.hPeter S. Mazinger2011-03-092-8/+0
| | | | | | | | Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
| * fnmatch.c: use MB_CUR_MAX from stdlib.h included earlierPeter S. Mazinger2011-03-091-5/+0
| | | | | | | | Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
| * move prototype for __drand48_iterate and __libc_drand48_data to stdlib.hPeter S. Mazinger2011-03-0912-45/+0
| | | | | | | | | | | | Move them to a common header guarded by _LIBC Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
| * stdlib.c: remove duplicate libc_hidden_proto for strtoul/strtoul_lPeter S. Mazinger2011-03-091-1/+0
| | | | | | | | Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
| * _strtod.c: only strtod hidden version is neededPeter S. Mazinger2011-03-091-2/+3
| | | | | | | | | | | | Do not provide hidden strtod_l, wcstod and wcstod_l Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
| * remove trailing ';' from _syscallX()Peter S. Mazinger2011-03-095-5/+5
| | | | | | | | Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
| * bits/statvfs.h: update, adding ST_RELATIMEPeter S. Mazinger2011-03-091-2/+4
| | | | | | | | Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
| * add bits/atomic.h for hppaPeter S. Mazinger2011-03-091-0/+103
| | | | | | | | Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
| * bits/statvfs.h: the common one is good for alpha and sparcPeter S. Mazinger2011-03-092-202/+0
| | | | | | | | Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
| * bits/kernel_stat.h: no need for _LIBC guard, the file is not installed on targetPeter S. Mazinger2011-03-0923-92/+0
| | | | | | | | Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
| * bits/kernel_stat.h: use the same guard on all archsPeter S. Mazinger2011-03-094-9/+9
| | | | | | | | Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
| * types.h: remove __ipc_pid_tPeter S. Mazinger2011-03-091-5/+0
| | | | | | | | | | | | | | Remove __ipc_pid_t, not needed internally, we do not support pre glibc-2.2 version of shmid_ds structure. Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
| * guard *_chk() related stuff with UCLIBC_HAS_FORTIFYPeter S. Mazinger2011-03-094-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | Guard x86_64 memset_chk/memcpy_chk be guarded by UCLIBC_HAS_FORTIFY. Compile ssp.c if one of SSP/FORTIFY is defined. Guard __chk_fail() with UCLIBC_HAS_FORTIFY and move its prototype to libc-internal.h. Disable _FORTIFY_SOURCE if UCLIBC_HAS_FORTIFY is not set. The config option itself is omitted on purpose, headers need to be reviewed and generic *_chk() functions need to be first provided. Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
| * nios2: Correct guard #defines in bits/kernel_types.hTobias Klauser2011-03-081-3/+3
| | | | | | | | | | | | | | | | | | The guards in posix_types.h are called _ASM_NIOS2_POSIX_TYPES_H, so correctly use them here. Otherwise we wont be able to build uClibc with headers exported from the current nios2 kernel. Signed-off-by: Tobias Klauser <tklauser@distanz.ch> Signed-off-by: Khem Raj <raj.khem@gmail.com>
| * shm.h: fix vax's bits/shm.hPeter S. Mazinger2011-03-081-3/+9
| | | | | | | | | | | | | | | | Do not use __ipc_pid_t, since that is not visible after install. Provide and use shmatt_t. Add missing __END_DECLS. Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
| * locale.c: export newlocale only if XLOCALE is definedPeter S. Mazinger2011-03-071-0/+2
| | | | | | | | | | | | | | newlocale is used by setlocale, so we need the hidden version even if XLOCALE is not defined Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
| * locale.c, locale.h: no need for hidden duplocalePeter S. Mazinger2011-03-071-1/+0
| | | | | | | | Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
| * simplify ffs* codePeter S. Mazinger2011-03-063-17/+11
| | | | | | | | | | | | Remove __libc_ffs*, unneeded Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
| * Implement ffsl and ffsll.Bernd Schmidt2011-03-053-7/+51
| | | | | | | | | | | | | | | | | | This imports and adapts ffsll.c from glibc. The same mechanism as in glibc is used to choose between ffs and ffsll to implement ffsl. The single user in libc is changed to use the hidden version __libc_ffs. Signed-off-by: Bernd Schmidt <bernds@codesourcery.com> Acked-by: Bernhard Reutner-Fischer <aldot@uclibc.org>
| * The C6X portAurelien Jacquiot2011-03-0539-0/+2460
| | | | | | | | | | | | | | | | This adds support for the TI C6X family of processors. Signed-off-by: Mark Salter <msalter@redhat.com> Signed-off-by: Aurelien Jacquiot <a-jacquiot@ti.com> Signed-off-by: Bernd Schmidt <bernds@codesourcery.com>
| * Add support for DSBT ELF to ld.soMark Salter2011-03-051-1/+3
| | | | | | | | | | | | | | | | | | | | This adds support for DSBT ELF to ld.so. This uses loadmaps like FD-PIC. Some code is added in ld.so to initialize the DSBT tables, and there's also a new target macro FINISH_BOOTSTRAP_RELOC. Signed-off-by: Mark Salter <msalter@redhat.com> Signed-off-by: Aurelien Jacquiot <a-jacquiot@ti.com> Signed-off-by: Bernd Schmidt <bernds@codesourcery.com>
| * Add Makefile support for DSBT ELF.Bernd Schmidt bernds_cb1@t-online.de2011-03-051-0/+1
| | | | | | | | | | | | | | | | | | | | | | This adds support for a new binary format, DSBT ELF, to the Makefiles. Every shared library is assigned a DSBT index, and the link.so macro is adjusted to ensure the correct linker argument is passed. Configuration and ldso support will follow in separate commits. Signed-off-by: Bernd Schmidt <bernds@codesourcery.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
| * provide internal hidden version of __fcntl_nocancelPeter S. Mazinger2011-03-031-0/+1
| | | | | | | | | | | | guard the prototype with _LIBC, it is only for internal use Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
| * add _dl_errno support to errno.h, cleanupPeter S. Mazinger2011-03-031-43/+0
| | | | | | | | | | | | | | | | Add support to use errno.h in ldso. Move __set_errno into _LIBC guard. Remove uClibc_errno.h, unused. Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
| * sgtty.h is useless, remove it on STRICT_HEADERSPeter S. Mazinger2011-03-031-0/+2
| | | | | | | | Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
| * strcpy: remove unneeded includes from the generic versionPeter S. Mazinger2011-03-031-3/+0
| | | | | | | | Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
| * update some headersPeter S. Mazinger2011-03-031-0/+1
| | | | | | | | Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
| * simplify guard of uClibc internalsPeter S. Mazinger2011-03-031-1/+1
| | | | | | | | | | | | Simplify guard of uClibc internals, since _LIBC sections are removed on install. Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
| * remove ucontext.h and guard sigstack structure with SUSV4_LEGACY and ↵Peter S. Mazinger2011-03-035-0/+10
| | | | | | | | | | | | | | | | | | | | STRICT_HEADERS Remove ucontext.h if SUSV4_LEGACY is not set and fix it's references. Guard sigstack structure with SUSV4_LEGACY and STRICT_HEADERS. Disable sigstack function prototype, it is not provided by uClibc. Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
| * make parse_printf_format() depend on UCLIBC_HAS_GLIBC_CUSTOM_PRINTFPeter S. Mazinger2011-03-031-0/+4
| | | | | | | | | | | | we already remove the printf.h header if this option is disabled Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
| * remove error handling from some syscallsPeter S. Mazinger2011-03-039-51/+33
| | | | | | | | | | | | | | Remove error handling from getegid/getgid/geteuid/getuid/getppid/getpid/getpgrp Use strong_alias if fallbacks are needed Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
| * fix stubsPeter S. Mazinger2011-03-031-5/+1
| | | | | | | | | | | | We use enosys_stub only in this file so make it static Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
| * initialize 2 variables to get rid of compiler warningPeter S. Mazinger2011-03-031-1/+1
| | | | | | | | Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
| * Correct ssp codePeter S. Mazinger2011-03-032-19/+9
| | | | | | | | | | | | | | | | Avoid using strong_alias in ssp, some archs dislike it. Make stack_chk_guard static. Export __stack_smash_handler only if compatibility option is enabled. Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
| * add missing prototypesPeter S. Mazinger2011-03-032-2/+9
| | | | | | | | | | | | Add some missing prototypes Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
| * use common sigthread.hPeter S. Mazinger2011-03-031-1/+7
| | | | | | | | | | | | | | NPTL build did not use the correct bits/sigthread.h, use a common version avoiding this. Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
| * add missing prototypesPeter S. Mazinger2011-03-031-0/+1
| | | | | | | | | | | | Add some missing prototypes Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
| * style updatePeter S. Mazinger2011-03-031-12/+5
| | | | | | | | | | | | Style update avoiding compile warnings Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
| * syntax fixesPeter S. Mazinger2011-03-031-2/+2
| | | | | | | | | | | | Avoid compile warnings about the use of undefined constants Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
| * guard IPv6 stuffPeter S. Mazinger2011-03-033-0/+18
| | | | | | | | | | | | disable IPv6 related stuff if feature is disabled. Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
| * nptl:arm: add a wrapper for .cfi_sections pseudo-opsCarmelo Amoroso2011-02-251-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ARM disables by default the support for ASM CFI directives. Anyway using an old version of binutils that does not support some new pseudo-op, the build fails as below: AS libpthread/nptl/sysdeps/unix/sysv/linux/close.oS libpthread/nptl/sysdeps/unix/sysv/linux/close.S: Assembler messages: libpthread/nptl/sysdeps/unix/sysv/linux/close.S:9: Error: unknown pseudo-op: `.cfi_sections' The problem is that the .cfi_sections pseudo should be wrapped by a macro that expands to nothing when the CFI is off. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com> CC: Khem Ray <ray.khem@gmail.com>
| * unify stub logicMike Frysinger2011-02-2430-266/+195
| | | | | | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
| * bfin: fix fp reference in _JMPBUF_UNWINDSMike Frysinger2011-02-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | We want to access the frame pointer, so do so directly rather than "overflowing" the pregs array and ending up at the fp member. This fixes the Blackfin build warnings: libpthread/linuxthreads.old/ptlongjmp.c: In function 'pthread_cleanup_upto': libpthread/linuxthreads.old/ptlongjmp.c:35: warning: array subscript is above array bounds libpthread/linuxthreads.old/ptlongjmp.c:56: warning: array subscript is above array bounds Signed-off-by: Mike Frysinger <vapier@gentoo.org>
| * tempname: fix int precision warningsMike Frysinger2011-02-221-1/+4
| | | | | | | | | | | | | | | | | | | | | | The printf precision takes an integer, not a size_t. Otherwise we get: libc/misc/internals/tempname.c: In function '___path_search': libc/misc/internals/tempname.c:116: warning: field precision should have type 'int', but argument 3 has type 'size_t' field precision should have type 'int', but argument 5 has type 'size_t' Signed-off-by: Mike Frysinger <vapier@gentoo.org>
| * nptl: imit waitpid just for MIPS O32Bernhard Reutner-Fischer2011-02-221-1/+0
| | | | | | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
| * bfin: add support for new cacheflush syscallSteve Kilbane2011-02-213-1/+40
| | | | | | | | | | | | | | | | | | Newer gcc's will generate a call to cacheflush when updating jump tables, and that has to be done in kernel space (to avoid hardware anomalies). So make sure uClibc provides that symbol. Signed-off-by: Steve Kilbane <steve@whitecrow.demon.co.uk> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
| * bfin: fix sram/dma syscall definitionsSteve Kilbane2011-02-213-5/+5
| | | | | | | | | | | | | | | | Once we pull in the header, we're forced to declare the syscall with all the right types. Signed-off-by: Steve Kilbane <steve@whitecrow.demon.co.uk> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
| * bfin: add missing GNU-stack markings to __longjmpMike Frysinger2011-02-211-0/+2
| | | | | | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
| * buildsys: fix inverted logic with thread implsBernhard Reutner-Fischer2011-02-161-3/+2
| | | | | | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>