aboutsummaryrefslogtreecommitdiff
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* unwind.h: Move to libc/sysdeps from nptl sysdepsGravatar Khem Raj2011-05-131-220/+0
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* linux_specific: handle accept4 and pipe2Gravatar Bernhard Reutner-Fischer2011-05-122-2/+2
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* libubacktrace: mv unwind.h to includeGravatar Bernhard Reutner-Fischer2011-05-111-0/+220
| | | | | | | Fixes compilation if NPTL is off. I hope this doesn't break ARM EABI but cannot check ATM. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* add pipe2()Gravatar Bernhard Reutner-Fischer2011-05-111-0/+7
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* accept4: Implement cancellationGravatar Bernhard Reutner-Fischer2011-05-111-0/+9
| | | | | | | .. and add proper prototype, move it into it's own obj and other such cleanups. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* Added fts support for traversing UNIX file hierarchies.Gravatar Salvatore Cro2011-04-201-0/+131
| | | | | | | It is required by libdwfl in elfutils package. Signed-off-by: Salvatore Cro <salvatore.cro at st.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* wctype.h: fix libc_hidden_proto for iswupper and add it for iswspaceGravatar Peter S. Mazinger2011-03-101-1/+2
| | | | | | Old typo, became visible due to other changes. Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* add libc_hidden_proto for wcs[n]casecmp_lGravatar Peter S. Mazinger2011-03-101-0/+2
| | | | Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* time.c, time.h: remove unused hidden strftime/strptimeGravatar Peter S. Mazinger2011-03-101-2/+0
| | | | Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* ctype.c, ctype.h: remove commented parts that were banned for removal after ↵Gravatar Peter S. Mazinger2011-03-101-6/+0
| | | | | | 0.9.31 Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* _wctype.c, wctype.h: remove unused isw* and wctype_l hidden functionsGravatar Peter S. Mazinger2011-03-101-1/+0
| | | | Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* time.c, wchar.h: remove unused hidden wcsftimeGravatar Peter S. Mazinger2011-03-101-1/+0
| | | | Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* remove unused hidden functionsGravatar Peter S. Mazinger2011-03-093-5/+0
| | | | Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* memmem.c, string.h: remove unused hidden memmemGravatar Peter S. Mazinger2011-03-091-1/+0
| | | | | | It is used only by gen_collate, not included into libc. Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* wchar.h, _collate.c, strlcpy.c: use a common prototype of __wcslcpyGravatar Peter S. Mazinger2011-03-091-0/+5
| | | | Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* ctype.c, _collate.c, str[n]casecmp.c, strlcpy.c: remove unused hidden functionsGravatar Peter S. Mazinger2011-03-093-7/+0
| | | | Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* stdlib.c, _strtod.c, stdlib.h: remove unused hidden functionsGravatar Peter S. Mazinger2011-03-091-1/+0
| | | | Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* arc4random.c, stdlib.h: get rid of hidden arc4random_stirGravatar Peter S. Mazinger2011-03-091-1/+0
| | | | | | 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>
* stdlib.h: move MB_CUR_MAX = 1 from wchar-stub.hGravatar Peter S. Mazinger2011-03-092-2/+3
| | | | Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* move prototype for __drand48_iterate and __libc_drand48_data to stdlib.hGravatar Peter S. Mazinger2011-03-091-0/+7
| | | | | | Move them to a common header guarded by _LIBC Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* disable _POSIX2_LOCALEDEFGravatar Peter S. Mazinger2011-03-091-0/+2
| | | | | | uClibc does not provide the localedef utility Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* guard *_chk() related stuff with UCLIBC_HAS_FORTIFYGravatar Peter S. Mazinger2011-03-092-1/+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>
* resolv.h: disable unneeded prototypesGravatar Peter S. Mazinger2011-03-081-0/+20
| | | | Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* locale.c, locale.h: no need for hidden duplocaleGravatar Peter S. Mazinger2011-03-071-1/+0
| | | | Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* simplify ffs* codeGravatar Peter S. Mazinger2011-03-061-7/+1
| | | | | | Remove __libc_ffs*, unneeded Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* Implement ffsl and ffsll.Gravatar Bernd Schmidt2011-03-051-2/+8
| | | | | | | | | 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 portGravatar Aurelien Jacquiot2011-03-051-0/+45
| | | | | | | | 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.soGravatar Mark Salter2011-03-051-1/+12
| | | | | | | | | | 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>
* fix locale buildGravatar Peter S. Mazinger2011-03-042-6/+6
| | | | | | | make xlocale.h a dummy, locale_t is needed without it and uClibc_locale.h is already included by locale.h Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* remove obsoleted and incorrect commentGravatar Peter S. Mazinger2011-03-031-5/+0
| | | | Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* provide internal hidden version of __fcntl_nocancelGravatar Peter S. Mazinger2011-03-031-0/+3
| | | | | | 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, cleanupGravatar Peter S. Mazinger2011-03-031-5/+7
| | | | | | | | 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_HEADERSGravatar Peter S. Mazinger2011-03-031-0/+6
| | | | Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* paths.h: add _PATH_GSHADOWGravatar Peter S. Mazinger2011-03-031-0/+1
| | | | Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* guard nl_catd structure and related constants with STRICT_HEADERSGravatar Peter S. Mazinger2011-03-031-0/+4
| | | | Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* better guard of IPV6 related stuffGravatar Peter S. Mazinger2011-03-031-3/+6
| | | | | | | | Function prototypes are visible whenever IPV6 option is enabled. Structures and constants are visible either if IPV6 is enabled or STRICT_HEADERS is disabled. Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* update some headersGravatar Peter S. Mazinger2011-03-033-33/+40
| | | | | | | | Sync some headers with glibc. realpath is an XSI extension in SuSv4, add back guard and update comment, since it seems to allow != NULL in second arg. Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* update some headersGravatar Peter S. Mazinger2011-03-039-44/+80
| | | | Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* make it possible to compile with -std=gnu99/c99 and use extern inlinesGravatar Peter S. Mazinger2011-03-031-1/+1
| | | | | | When compiled with -std=gnu99/c99 __GNUC_GNU_INLINE__ is not defined Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* remove ucontext.h and guard sigstack structure with SUSV4_LEGACY and ↵Gravatar Peter S. Mazinger2011-03-031-1/+4
| | | | | | | | | | 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>
* add missing prototypesGravatar Peter S. Mazinger2011-03-031-0/+6
| | | | | | Add some missing prototypes Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* add missing prototypesGravatar Peter S. Mazinger2011-03-031-0/+2
| | | | | | Add some missing prototypes Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* syntax fixesGravatar Peter 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 stuffGravatar Peter S. Mazinger2011-03-032-2/+19
| | | | | | disable IPv6 related stuff if feature is disabled. Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* include features.hGravatar Peter S. Mazinger2011-03-031-0/+1
| | | | | | include features.h to make the next ifdef work. Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* libc: fix strtoqGravatar Natanael Copa2010-12-011-1/+1
| | | | | | | | strtoq should always return a quad_t and be an alias of strtol on 64 bit and strtoll on 32 bit. Signed-off-by: Natanael Copa <natanael.copa@gmail.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* config_parser: hide symbolsGravatar Bernhard Reutner-Fischer2010-11-241-0/+4
| | | | | | Our impl has diverged from busybox' so make sure nobody else uses it. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* libm: improve readability of math.h; expand comments and docsGravatar Denys Vlasenko2010-10-312-32/+30
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* nptl: Fix libpthread build when UCLIBC_LINUX_SPECIFIC is disabledGravatar Carmelo Amoroso2010-09-201-1/+1
| | | | | | | | | | | | | | | | | NPTL library needs both madvise and statfs symbols, that are guarded by UCLIBC_LINUX_SPECIFIC option. This fix provides these symbols too when NPTL is used, indipendently by UCLIBC_LINUX_SPECIFIC choice. Otherwise libpthread link fails as below: LD libpthread-0.9.32-git.so libpthread/nptl/libpthread_so.a(pthread_create.oS): In function `__free_tcb': pthread_create.c:(.text+0x1184): undefined reference to `madvise' libpthread/nptl/libpthread_so.a(sem_open.oS): In function `__where_is_shmfs': sem_open.c:(.text+0x764): undefined reference to `statfs' collect2: ld returned 1 exit status make: *** [lib/libpthread.so] Error 1 Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* libc: Add canonicalize_file_name functionGravatar Carmelo Amoroso2010-09-161-7/+6
| | | | | | | | Add canonicalize_file_name function and its related tests. Required by elfutils and coreutils (readlink). Signed-off-by: Salvatore Cro <salvatore.cro@st.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>