8645 Commits

Author SHA1 Message Date
Carmelo Amoroso
ae14cd49a8 buildsys: s/CROSS/CROSS_COMPILE/g
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>
2011-11-25 06:31:07 +01:00
Bernhard Reutner-Fischer
c79f09a9a3 nptl: add missing pt-tempname.c
fix bd3c1a2495cbcb51b606f8e4892fcd127f91e645 forgotten file.

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2011-11-24 19:22:59 +01:00
Carmelo Amoroso
1b6c5c4f32 libc: do not rely upon ulimit kernel syscall.
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>
2011-11-23 17:24:54 +01:00
Filippo Arcidiacono
9b42da7d05 libdl: fix size parameter when unmap library in dlclose
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>
2011-11-23 16:12:09 +01:00
Mike Frysinger
117a32a63b stdio: add support for "e" flag with fopen()
Support this useful glibc extension for optionally setting O_CLOEXEC
on fopen streams.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-11-20 02:47:50 -05:00
Mike Frysinger
4a2b0641a3 libcrypt: do not cast away const of key/salt
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-11-20 02:35:00 -05:00
Bernhard Reutner-Fischer
69cba61dd2 libubacktrace: use .so.$(ABI_VERSION)
Thanks to William Pitcock for noticing

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2011-11-18 08:49:25 +01:00
Bernhard Reutner-Fischer
e548078de1 nptl: sem_open: use open64 if LFS
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2011-11-18 08:24:19 +01:00
Bernhard Reutner-Fischer
bd3c1a2495 misc: hide __gen_tempname
fix signed vs. unsigned comparison warnings while at it

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2011-11-17 14:46:07 +01:00
Bernhard Reutner-Fischer
1ea3c5e6f1 stdio: hide _stdio_validate_FILE
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2011-11-17 11:33:35 +01:00
Bernhard Reutner-Fischer
90d597eac8 regex_old: make some internal helpers static
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2011-11-17 11:25:52 +01:00
Bernhard Reutner-Fischer
fbe324024d inet: hide relocations
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2011-11-17 11:01:04 +01:00
Bernhard Reutner-Fischer
5a2b42a483 unistd: hide relocations
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2011-11-17 10:55:29 +01:00
Bernhard Reutner-Fischer
dcf56488da resolv: hide relocations
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2011-11-17 10:52:25 +01:00
Bernd Schmidt
eb51b7f135 Add a C6X-specific ipc.h.
Signed-off-by: Bernd Schmidt <bernds@codesourcery.com>
2011-11-14 14:46:49 +01:00
Carmelo Amoroso
632dbe851c buildsys: do not install ld.so linker script
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
2011-11-08 14:36:58 +01:00
Jason Woodward
f1505e1581 libubacktrace: Conditionally link libgcc_eh
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>
2011-11-08 09:16:15 +01:00
Bernhard Reutner-Fischer
5f1678b1df libm: pass CFLAGS to e500 fenv
As noted by Jason Woodward

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2011-11-08 09:14:43 +01:00
Jason Woodward
c894249c87 honor UCLIBC_HAS_FENV for e500
Signed-off-by: Jason Woodward <jason.woodward@timesys.com>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2011-11-08 08:55:42 +01:00
Jason Woodward
beb1c62829 Fix e500 fpu libm build
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>
2011-11-08 08:54:16 +01:00
Henning Heinold
19dd090a0f libc: flesh out linux scheduler functions
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>
2011-11-07 20:57:02 +01:00
Timo Teräs
0c7690f6a5 ldso: support RTLD_NOLOAD
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>
2011-11-07 18:10:32 +01:00
Bernhard Reutner-Fischer
515d544331 stdlib: add qsort_r
GNU extension like qsort but takes a 3 parameter comparision function.

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2011-11-07 09:24:30 +01:00
Bernhard Reutner-Fischer
84144d142c powerpc: Fix typo in clone()
Thanks to strauman at slac stanford edu for noticing

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2011-11-04 13:02:09 +01:00
Jean-Christian de Rivaz
d10475f823 Add stub for eventfd.
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>
2011-11-04 11:44:26 +01:00
William Pitcock
7ae07d4f02 libm: implement a generic sincos().
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>
2011-11-04 10:30:19 +01:00
William Pitcock
2086015b9a libm: add cabsf() and cabsl() functions.
Signed-off-by: William Pitcock <nenolod@dereferenced.org>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2011-11-04 10:25:21 +01:00
William Pitcock
6471fc450b libm: implement generic cexp(), cexpf() and cexpl().
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>
2011-11-04 10:24:57 +01:00
Bernhard Reutner-Fischer
25790afdad config: document eventfd
in LINUX_SPECIFIC

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2011-11-04 10:23:06 +01:00
Bernhard Reutner-Fischer
2f88f917c2 setegid: use setresgid conditionally
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2011-11-02 17:31:51 +01:00
Bernhard Reutner-Fischer
3dbeeb8395 stubs: remove leftover undefs
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2011-11-02 17:28:15 +01:00
Bernhard Reutner-Fischer
fafa38973d buildsys: eventually remove sys/eventfd.h
rm sys/eventfd.h unless linux_specific was chosen

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2011-11-02 17:00:52 +01:00
Bernhard Reutner-Fischer
d36bc81bb4 stubs: handle linux module functions
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2011-11-02 16:49:04 +01:00
Bernhard Reutner-Fischer
04df27ce98 stubs: handle linux-specific
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2011-11-02 16:49:04 +01:00
Bernhard Reutner-Fischer
3c331f4519 stubs: fix inverted socket logic
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2011-11-02 16:21:41 +01:00
Bernhard Reutner-Fischer
5724141a03 stubs: undef linux specific unless they were asked for
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2011-11-02 16:21:41 +01:00
Jean-Christian de Rivaz
9ed163dc0e Add eventfd support.
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>
2011-10-31 06:54:06 +01:00
Rob Landley
015179a2c8 sparc: fix build for linuxthreads.old
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>
2011-10-27 07:32:55 -07:00
Carmelo Amoroso
e0b741c2cb resolver: add a dependencies for DNS resolver feature
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>
2011-10-27 12:48:31 +02:00
Bernhard Reutner-Fischer
eb7d589d07 pthreads: fix build when DNS resolver is not enabled.
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>
2011-10-27 12:41:26 +02:00
Rob Landley
24a3d38605 sh: fix build for SH in !NPTL case
Signed-off-by: Rob Landley <rob@landley.net>
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
2011-10-27 12:32:34 +02:00
Carmelo Amoroso
abdfc79373 linuxthreads: fix typo in __UCLIBC_HAS_IPv4__ macro
IPv4 should has 'V' capital letter.

Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
2011-10-27 10:00:58 +02:00
Carmelo Amoroso
e4aa966cf2 ldso: let people disable to lookup into LD_LIBRARY_PATH
On hardened system it could be useful to disable the use
of LD_LIBRARY_PATH.

Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
2011-10-25 12:28:51 +02:00
Carmelo Amoroso
6d71db548d ldso: minor fixes to implicit search path
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>
2011-10-25 11:26:50 +02:00
Carmelo Amoroso
7846b17d4c ldso: disable the implicit path search in stand-alone mode as well
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>
2011-10-25 10:24:06 +02:00
Carmelo Amoroso
b9055a68dd config: add support for <custom>_defconfig
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>
2011-10-25 06:54:34 +02:00
Carmelo Amoroso
eee423c9ed config: revise defconfigs strategy
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>
2011-10-25 06:44:11 +02:00
Carmelo Amoroso
4ba7f26cb9 config: tidy-up of config targets
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>
2011-10-25 06:35:10 +02:00
Bernhard Reutner-Fischer
bb8d500a75 resolv: fix memory leak
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>
2011-10-21 08:23:22 +02:00
Bernhard Reutner-Fischer
e3fea65f50 resolv: commentary typo fix
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2011-10-20 18:55:51 +02:00