summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* include/: ignore new sys/eventfd.h symlinkMike Frysinger2011-11-261-0/+1
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* buildsys: s/CROSS/CROSS_COMPILE/gCarmelo Amoroso2011-11-256-31/+29
| | | | | | | | Use CROSS_COMPILE instead of CROSS as other projects are doing (i.e. kernel, busybox, buildroot). CROSS is still supported for backward compatibility only Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* nptl: add missing pt-tempname.cBernhard Reutner-Fischer2011-11-241-0/+1
| | | | | | fix bd3c1a2495cbcb51b606f8e4892fcd127f91e645 forgotten file. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* libc: do not rely upon ulimit kernel syscall.Carmelo Amoroso2011-11-231-8/+0
| | | | | | | | | | | | On several architectures __NR_ulimit syscall number is currently defined but it is remapped onto sys_ni_syscall, while on other architectures they are not longer defined. So use {get,set}rlimit only to implement ulimit interface. It fixes LTP ulimit01 test case. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com> Acked-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* libdl: fix size parameter when unmap library in dlcloseFilippo Arcidiacono2011-11-231-2/+6
| | | | | | | | | | | Fix size parameter when unmap a library by means of dlclose, by taking into account the p_vaddr of first PT_LOAD segment, so it works also for prelinked shared objects. Unmapping of dlopen shared libraries is broken since 94cc6edb78a12655c0602a246fa1cbdc8c6d0ad9 Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* stdio: add support for "e" flag with fopen()Mike Frysinger2011-11-202-1/+17
| | | | | | | Support this useful glibc extension for optionally setting O_CLOEXEC on fopen streams. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* libcrypt: do not cast away const of key/saltMike Frysinger2011-11-201-2/+5
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* libubacktrace: use .so.$(ABI_VERSION)Bernhard Reutner-Fischer2011-11-181-1/+1
| | | | | | Thanks to William Pitcock for noticing Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* nptl: sem_open: use open64 if LFSBernhard Reutner-Fischer2011-11-181-9/+10
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* misc: hide __gen_tempnameBernhard Reutner-Fischer2011-11-173-5/+5
| | | | | | fix signed vs. unsigned comparison warnings while at it Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* stdio: hide _stdio_validate_FILEBernhard Reutner-Fischer2011-11-172-2/+2
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* regex_old: make some internal helpers staticBernhard Reutner-Fischer2011-11-171-5/+5
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* inet: hide relocationsBernhard Reutner-Fischer2011-11-172-1/+4
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* unistd: hide relocationsBernhard Reutner-Fischer2011-11-172-0/+6
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* resolv: hide relocationsBernhard Reutner-Fischer2011-11-173-0/+14
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* Add a C6X-specific ipc.h.Bernd Schmidt2011-11-141-0/+55
| | | | Signed-off-by: Bernd Schmidt <bernds@codesourcery.com>
* buildsys: do not install ld.so linker scriptCarmelo Amoroso2011-11-081-1/+2
| | | | Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* libubacktrace: Conditionally link libgcc_ehJason Woodward2011-11-081-1/+1
| | | | | | | | When libubacktrace is not enabled there is no need to link in libgcc_eh Fixes bootstrap failures with (gcc-4.5.x) stage1 compilers that --disable-shared Signed-off-by: Jason Woodward <jason.woodward@timesys.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* libm: pass CFLAGS to e500 fenvBernhard Reutner-Fischer2011-11-081-0/+2
| | | | | | As noted by Jason Woodward Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* honor UCLIBC_HAS_FENV for e500Jason Woodward2011-11-081-0/+2
| | | | | Signed-off-by: Jason Woodward <jason.woodward@timesys.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* Fix e500 fpu libm buildJason Woodward2011-11-081-0/+1
| | | | | | | | | | | | Define libm_ARCH_fpu_OUT in libm/powerpc/e500/Makefile.arch as it is used in libm/powerpc/e500/fpu/Makefile.arch libm_ARCH_OBJ:=$(patsubst $(libm_ARCH_fpu_DIR)/%.c,$(libm_ARCH_fpu_OUT)/%.o,$(libm_ARCH_SRC)) This appears to have been broken since cd3a494e99fa4bcad1c2a621b71361005528bead Signed-off-by: Jason Woodward <jason.woodward@timesys.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* libc: flesh out linux scheduler functionsHenning Heinold2011-11-0710-29/+317
| | | | | | | Most stuff was taken from the eglibc. Signed-off-by: Henning Heinold <heinold@inf.fu-berlin.de> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* ldso: support RTLD_NOLOADTimo Teräs2011-11-075-22/+33
| | | | | | | | So application query if specified module is loaded or not with dlopen. Signed-off-by: Timo Teräs <timo.teras@iki.fi> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* stdlib: add qsort_rBernhard Reutner-Fischer2011-11-074-7/+35
| | | | | | GNU extension like qsort but takes a 3 parameter comparision function. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* powerpc: Fix typo in clone()Bernhard Reutner-Fischer2011-11-041-1/+1
| | | | | | Thanks to strauman at slac stanford edu for noticing Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* Add stub for eventfd.Jean-Christian de Rivaz2011-11-041-0/+4
| | | | | | | Warn if the enventfd() function is not implemented. Signed-off-by: Jean-Christian de Rivaz <jc@eclis.ch> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* libm: implement a generic sincos().William Pitcock2011-11-043-2/+50
| | | | | | | We already provide sincos() on some archs, so we should ship a generic version. Signed-off-by: William Pitcock <nenolod@dereferenced.org> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* libm: add cabsf() and cabsl() functions.William Pitcock2011-11-041-0/+16
| | | | | Signed-off-by: William Pitcock <nenolod@dereferenced.org> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* libm: implement generic cexp(), cexpf() and cexpl().William Pitcock2011-11-042-1/+65
| | | | | | | | The cexp*() family of functions is defined by the C99 math standard as implementing exponential functions for complex types. Signed-off-by: William Pitcock <nenolod@dereferenced.org> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* config: document eventfdBernhard Reutner-Fischer2011-11-041-1/+2
| | | | | | in LINUX_SPECIFIC Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* setegid: use setresgid conditionallyBernhard Reutner-Fischer2011-11-021-0/+6
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* stubs: remove leftover undefsBernhard Reutner-Fischer2011-11-021-61/+0
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* buildsys: eventually remove sys/eventfd.hBernhard Reutner-Fischer2011-11-021-1/+1
| | | | | | rm sys/eventfd.h unless linux_specific was chosen Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* stubs: handle linux module functionsBernhard Reutner-Fischer2011-11-023-6/+16
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* stubs: handle linux-specificBernhard Reutner-Fischer2011-11-024-24/+194
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* stubs: fix inverted socket logicBernhard Reutner-Fischer2011-11-021-19/+19
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* stubs: undef linux specific unless they were asked forBernhard Reutner-Fischer2011-11-021-0/+34
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* Add eventfd support.Jean-Christian de Rivaz2011-10-313-1/+68
| | | | | | | | | | | | Hello, I whould like to share this simple patch that add the eventfd call to uClibc. Please review so it can be accepted to be merged. Jean-Christian Signed-off-by: Jean-Christian de Rivaz <jc@eclis.ch> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* sparc: fix build for linuxthreads.oldRob Landley2011-10-272-1/+2
| | | | | | | | | sparc target has assembly implementations of clone.S that doesn't get used, and thus the build breaks. Also, sparc is missing a header file in pthreads.old that exists in pthreads.new. Signed-off-by: Rob Landley <rob@landley.net> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* resolver: add a dependencies for DNS resolver featureCarmelo Amoroso2011-10-271-0/+1
| | | | | | | DNS resolver needs at least IPV4 or IPV6 support enabled to be correctly built. Add such dependency. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* pthreads: fix build when DNS resolver is not enabled.Bernhard Reutner-Fischer2011-10-274-7/+7
| | | | | | | Resolver state is only available if DNS resolver is enabled. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* sh: fix build for SH in !NPTL caseRob Landley2011-10-271-1/+1
| | | | | Signed-off-by: Rob Landley <rob@landley.net> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* linuxthreads: fix typo in __UCLIBC_HAS_IPv4__ macroCarmelo Amoroso2011-10-271-4/+4
| | | | | | IPv4 should has 'V' capital letter. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* ldso: let people disable to lookup into LD_LIBRARY_PATHCarmelo Amoroso2011-10-254-2/+24
| | | | | | | On hardened system it could be useful to disable the use of LD_LIBRARY_PATH. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* ldso: minor fixes to implicit search pathCarmelo Amoroso2011-10-252-1/+3
| | | | | | | | Do not defined _dl_ldsopatch if implicit search path if not enabled, and avoid to call search_for_named_library (even if it is able to handle NULL search path). Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* ldso: disable the implicit path search in stand-alone mode as wellCarmelo Amoroso2011-10-251-9/+13
| | | | | | | | Honour LDSO_SEARCH_INTERP_PATH knob option also when running in stand-alone mode. Signed-off-by: Rune <u-uclibc-y2lt@aetey.se> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* config: add support for <custom>_defconfigCarmelo Amoroso2011-10-252-0/+11
| | | | | | | | Add support for platform specific and/or custom defconfig per arch. They have to be suffixed by '_defconfig' and are automatically detected and displayed by issuing 'make ARCH=<arch> help'. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* config: revise defconfigs strategyCarmelo Amoroso2011-10-2525-1/+1
| | | | | | | | Revise the way defconfigs are defined, by renaming them from defconfigs/<arch> to defconfigs/<arch>/defconfig. It allows to have multiple defconfigs per arch. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* config: tidy-up of config targetsCarmelo Amoroso2011-10-251-20/+22
| | | | | | | Introduce two local variables for 'conf' and 'mconf' binaries. Use $^ automatic variable to invoke [m]conf tool. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* resolv: fix memory leakBernhard Reutner-Fischer2011-10-211-0/+2
| | | | | | | | Timothy Holdener writes: small memory leak in __dns_lookup() when the A record in the DNS answer is preceded by one or more CNAME records. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>