OSDN Git Service

uclinux-h8/uClibc.git
14 years agoMerge remote branch 'origin/master' into nptl_merge
Austin Foxley [Mon, 23 Nov 2009 03:30:07 +0000 (19:30 -0800)]
Merge remote branch 'origin/master' into nptl_merge

Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
14 years agoRevert "libc: add hidden calls to pthread cleanup funcs"
Austin Foxley [Mon, 23 Nov 2009 03:20:56 +0000 (19:20 -0800)]
Revert "libc: add hidden calls to pthread cleanup funcs"

This reverts commit e0ac4efbdb498319f03a2a95d75d061ab6c68491.

Was causing segfaults on every pthread linked executable

Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
14 years agosh: Add new optimisation to the SH4 memcpy
Austin Foxley [Sun, 22 Nov 2009 20:17:38 +0000 (12:17 -0800)]
sh: Add new optimisation to the SH4 memcpy

This optimization is based on prefetching and 64bit data transfer via FPU
(only for the little endianess)

Tests shows that:

  ----------------------------------------
  Memory bandwidth    |        Gain
                      | sh4-300 | sh4-200
  ----------------------------------------
  512 bytes to 16KiB  | ~20%    | ~25%
  from 32KiB to 16MiB | ~190%   | ~5%
  ----------------------------------------

Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
14 years agoMerge remote branch 'origin/master' into nptl_merge
Austin Foxley [Sun, 22 Nov 2009 19:46:31 +0000 (11:46 -0800)]
Merge remote branch 'origin/master' into nptl_merge

Conflicts:
Rules.mak
libc/misc/sysvipc/msgq.c
test/Rules.mak

Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
14 years agomake tls and nptl test build
Bernhard Reutner-Fischer [Wed, 18 Nov 2009 15:56:49 +0000 (16:56 +0100)]
make tls and nptl test build

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
14 years agoLook at HAVE_SHARED
Bernhard Reutner-Fischer [Wed, 18 Nov 2009 15:02:54 +0000 (16:02 +0100)]
Look at HAVE_SHARED

We do not have UCLIBC_STATIC (anymore) but !HAVE_SHARED

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
14 years agoremove wait callbacks for non-cancelation funcs
Bernhard Reutner-Fischer [Fri, 13 Nov 2009 12:11:00 +0000 (13:11 +0100)]
remove wait callbacks for non-cancelation funcs

No need to install a cancellation handler, these are no cancellation
point.

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
14 years agoinclude string.h for memset()
Bernhard Reutner-Fischer [Thu, 12 Nov 2009 12:53:25 +0000 (13:53 +0100)]
include string.h for memset()

This avoids a warnings about implicit declaration of function 'memset'.

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
14 years agoMakefile: fix indentation
Bernhard Reutner-Fischer [Tue, 17 Nov 2009 19:48:43 +0000 (20:48 +0100)]
Makefile: fix indentation

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
14 years agoinstall_headers.sh: make more user friendly
Mike Frysinger [Sun, 22 Nov 2009 08:37:56 +0000 (03:37 -0500)]
install_headers.sh: make more user friendly

Make it easier to run this by hand and don't abort when recursive chown
and chmod fail as these often aren't due to uClibc settings.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
14 years agoremove incorrect text from abspath option
Mike Frysinger [Sun, 22 Nov 2009 08:17:46 +0000 (03:17 -0500)]
remove incorrect text from abspath option

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
14 years agoinstall shared libs with +x perms
Mike Frysinger [Sun, 22 Nov 2009 01:09:42 +0000 (20:09 -0500)]
install shared libs with +x perms

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
14 years agorealclean: wipe kconfig objects
Bernhard Reutner-Fischer [Fri, 20 Nov 2009 19:30:02 +0000 (20:30 +0100)]
realclean: wipe kconfig objects

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agosilence rule overriding
Bernhard Reutner-Fischer [Fri, 20 Nov 2009 19:28:49 +0000 (20:28 +0100)]
silence rule overriding

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agofutimens: add function
Bernhard Reutner-Fischer [Fri, 20 Nov 2009 19:05:07 +0000 (20:05 +0100)]
futimens: add function

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agomake test-skeleton C89 compliant
Bernhard Reutner-Fischer [Fri, 20 Nov 2009 18:38:53 +0000 (19:38 +0100)]
make test-skeleton C89 compliant

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agoremove superfluous extra semicolons
Bernhard Reutner-Fischer [Fri, 20 Nov 2009 09:13:16 +0000 (10:13 +0100)]
remove superfluous extra semicolons

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agoppoll: get NULL from stddef.h
Bernhard Reutner-Fischer [Fri, 20 Nov 2009 08:41:04 +0000 (09:41 +0100)]
ppoll: get NULL from stddef.h

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years ago__assert: include unistd.h for smallint
Bernhard Reutner-Fischer [Fri, 20 Nov 2009 08:37:56 +0000 (09:37 +0100)]
__assert: include unistd.h for smallint

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agofeatures.h: reorganize
Peter S. Mazinger [Sat, 17 Oct 2009 02:27:18 +0000 (04:27 +0200)]
features.h: reorganize

Reorganize so uClibc related changes are better seen when syncing with glibc.

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agolimits.h: update
Peter S. Mazinger [Sat, 17 Oct 2009 02:17:57 +0000 (04:17 +0200)]
limits.h: update

Should we care about compilers not defining __LONG_LONG_MAX__?

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agohelp broken apps to detect __GLIBC__ headers
Peter S. Mazinger [Sat, 17 Oct 2009 02:16:12 +0000 (04:16 +0200)]
help broken apps to detect __GLIBC__ headers

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agoupdate headers and disable prototypes
Peter S. Mazinger [Sat, 17 Oct 2009 02:07:01 +0000 (04:07 +0200)]
update headers and disable prototypes

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agoprotocols.h: remove
Peter S. Mazinger [Sat, 17 Oct 2009 01:51:49 +0000 (03:51 +0200)]
protocols.h: remove

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agosync some headers and disable unused prototypes
Peter S. Mazinger [Sat, 17 Oct 2009 01:45:53 +0000 (03:45 +0200)]
sync some headers and disable unused prototypes

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agomsgrcv is of type ssize_t
Peter S. Mazinger [Sat, 17 Oct 2009 01:36:43 +0000 (03:36 +0200)]
msgrcv is of type ssize_t

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agouse __BYTE_ORDER and __*ENDIAN
Peter S. Mazinger [Sat, 17 Oct 2009 01:31:36 +0000 (03:31 +0200)]
use __BYTE_ORDER and __*ENDIAN

Those without the __ prefix are BSD specific.

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agoSUSv4: disable isascii, toascii, _toupper, _tolower
Bernhard Reutner-Fischer [Thu, 19 Nov 2009 22:00:32 +0000 (23:00 +0100)]
SUSv4: disable isascii, toascii, _toupper, _tolower

[__]isascii need to be defined all the time for the build.

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agomove __linux__ to libc-internal.h
Peter S. Mazinger [Sat, 17 Oct 2009 00:19:35 +0000 (02:19 +0200)]
move __linux__ to libc-internal.h

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agoassert: make linenumber unsigned
Peter S. Mazinger [Sat, 17 Oct 2009 00:04:20 +0000 (02:04 +0200)]
assert: make linenumber unsigned

Move attribute_noreturn to header.

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agonameser.h: sync with glibc
Peter S. Mazinger [Fri, 16 Oct 2009 23:46:10 +0000 (01:46 +0200)]
nameser.h: sync with glibc

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agoinet.h: mark inet_ntoa_r as uClibc specific
Peter S. Mazinger [Fri, 16 Oct 2009 23:40:34 +0000 (01:40 +0200)]
inet.h: mark inet_ntoa_r as uClibc specific

Ddisable some prototypes of unimplemented funcs.

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agomove extend_alloca macro to alloca.h
Peter S. Mazinger [Fri, 16 Oct 2009 23:14:16 +0000 (01:14 +0200)]
move extend_alloca macro to alloca.h

guard it by _LIBC. __MAX_ALLOCA_CUTOFF is not needed on target either

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agoa.out.h: why was this needed?
Peter S. Mazinger [Fri, 16 Oct 2009 23:10:38 +0000 (01:10 +0200)]
a.out.h: why was this needed?

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agoFORCE_SHAREABLE_TEXT_SEGMENTS requires DOPIC
Peter S. Mazinger [Fri, 16 Oct 2009 22:41:08 +0000 (00:41 +0200)]
FORCE_SHAREABLE_TEXT_SEGMENTS requires DOPIC

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agoremove ARCH_CFLAGS, ARCH_LDFLAGS and CROSS
Peter S. Mazinger [Fri, 16 Oct 2009 22:38:07 +0000 (00:38 +0200)]
remove ARCH_CFLAGS, ARCH_LDFLAGS and CROSS

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agoremove some unneeded headers on install
Peter S. Mazinger [Fri, 16 Oct 2009 22:30:42 +0000 (00:30 +0200)]
remove some unneeded headers on install

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agono need for bits/syscalls.h on target
Peter S. Mazinger [Fri, 16 Oct 2009 22:22:23 +0000 (00:22 +0200)]
no need for bits/syscalls.h on target

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agoAdd missing order-only prereq for unifdef
Bernhard Reutner-Fischer [Thu, 19 Nov 2009 21:28:50 +0000 (22:28 +0100)]
Add missing order-only prereq for unifdef

For O= make sure that top_builddir/extra/scripts is created
before trying to build unifdef into it.

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agorm uClibc_arch_features.h on install
Peter S. Mazinger [Fri, 16 Oct 2009 22:03:53 +0000 (00:03 +0200)]
rm uClibc_arch_features.h on install

uClibc_arch_features.h is included already by libc-symbols.h.
If gcc needs it, fix gcc.

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agodisable libutil related prototypes if asked to
Bernhard Reutner-Fischer [Thu, 19 Nov 2009 18:07:30 +0000 (19:07 +0100)]
disable libutil related prototypes if asked to

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agofix misplaced HAS_LIBUTIL knob
Bernhard Reutner-Fischer [Thu, 19 Nov 2009 17:57:32 +0000 (18:57 +0100)]
fix misplaced HAS_LIBUTIL knob

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agoDO_XSI_MATH: add config knob
Bernhard Reutner-Fischer [Thu, 19 Nov 2009 17:49:24 +0000 (18:49 +0100)]
DO_XSI_MATH: add config knob

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agoUCLIBC_HAS_RESOLV_STUB: Rename config symbol
Bernhard Reutner-Fischer [Thu, 19 Nov 2009 17:23:41 +0000 (18:23 +0100)]
UCLIBC_HAS_RESOLV_STUB: Rename config symbol

s/UCLIBC_HAS_RESOLV_STUB/UCLIBC_HAS_LIBRESOLV_STUB/
for consistency.

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agolibutil: provide knob to disable it
Bernhard Reutner-Fischer [Thu, 19 Nov 2009 17:17:06 +0000 (18:17 +0100)]
libutil: provide knob to disable it

These tty utility functions are non-standard. They usually
are available on BSD and/or glibc based systems.

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agolibnsl: add knob to disable it
Bernhard Reutner-Fischer [Thu, 19 Nov 2009 17:03:00 +0000 (18:03 +0100)]
libnsl: add knob to disable it

It's a dummy either way.

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agofixup working in helptexts
Bernhard Reutner-Fischer [Thu, 19 Nov 2009 16:57:37 +0000 (17:57 +0100)]
fixup working in helptexts

and spell out suggested defaults for LDSO_RUNPATH

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agotest: sync up with toplevel buildsys
Bernhard Reutner-Fischer [Wed, 18 Nov 2009 15:06:49 +0000 (16:06 +0100)]
test: sync up with toplevel buildsys

test/Rules.mak was duplicating too much from the toplevel Rules.mak (which
is included anyway).

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years ago.gitignore more testfiles
Bernhard Reutner-Fischer [Thu, 19 Nov 2009 14:59:19 +0000 (15:59 +0100)]
.gitignore more testfiles

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agoMAXFLOAT: obsolescent in SUSv4
Bernhard Reutner-Fischer [Wed, 18 Nov 2009 15:00:43 +0000 (16:00 +0100)]
MAXFLOAT: obsolescent in SUSv4

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years ago_Exit(): add weak alias to _exit() for C99
Bernhard Reutner-Fischer [Wed, 18 Nov 2009 12:24:07 +0000 (13:24 +0100)]
_Exit(): add weak alias to _exit() for C99

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agocorrect documentation
Bernhard Reutner-Fischer [Wed, 11 Nov 2009 09:57:57 +0000 (10:57 +0100)]
correct documentation

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years ago.gitignore: remove unneeded pattern
Bernhard Reutner-Fischer [Tue, 17 Nov 2009 19:47:44 +0000 (20:47 +0100)]
.gitignore: remove unneeded pattern

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agolibm: use int_WRAPPER_C99 macro
Bernhard Reutner-Fischer [Sun, 15 Nov 2009 18:34:35 +0000 (19:34 +0100)]
libm: use int_WRAPPER_C99 macro

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agoldso: Add missing newlines to some debug messages
Bernhard Reutner-Fischer [Sun, 15 Nov 2009 18:30:00 +0000 (19:30 +0100)]
ldso: Add missing newlines to some debug messages

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agoRevert "libm: fix C99_MATH on __NO_LONG_DOUBLE_MATH hosts"
Bernhard Reutner-Fischer [Sat, 14 Nov 2009 16:50:41 +0000 (17:50 +0100)]
Revert "libm: fix C99_MATH on __NO_LONG_DOUBLE_MATH hosts"

This reverts commit 73d6e5c41b61633e22ea74e3aa2df721512dca57.

barking up the wrong tree

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agolibm: fix C99_MATH on __NO_LONG_DOUBLE_MATH hosts
Bernhard Reutner-Fischer [Sat, 14 Nov 2009 14:59:35 +0000 (15:59 +0100)]
libm: fix C99_MATH on __NO_LONG_DOUBLE_MATH hosts

alias l to their normal double counterparts.
Works around problems with libgcc blindly calling __finitel on e.g. ppc32

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agorealpath: SUSv4 compliant
Bernhard Reutner-Fischer [Sat, 14 Nov 2009 14:57:47 +0000 (15:57 +0100)]
realpath: SUSv4 compliant

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agosilence warning about undefined CPP token
Bernhard Reutner-Fischer [Fri, 13 Nov 2009 14:59:25 +0000 (15:59 +0100)]
silence warning about undefined CPP token

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agoSimplify kconfig wording of thread support
Bernhard Reutner-Fischer [Wed, 28 Oct 2009 19:56:34 +0000 (20:56 +0100)]
Simplify kconfig wording of thread support

Use a choice for thread support selection.

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
14 years agoremove wrong default for choice
Bernhard Reutner-Fischer [Wed, 28 Oct 2009 19:49:18 +0000 (20:49 +0100)]
remove wrong default for choice

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
14 years agosupport selecting which locales to build
Bernhard Reutner-Fischer [Wed, 28 Oct 2009 19:12:54 +0000 (20:12 +0100)]
support selecting which locales to build

Introduce UCLIBC_BUILD_MINIMAL_LOCALES and if selected
build only those locales.

Based on a patch by Bernhard Reutner-Fischer.

Signed-off-by: Marc Andre Tanner <mat@brain-dump.org>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
14 years agoremember some TODOs for 0.9.31
Bernhard Reutner-Fischer [Fri, 23 Oct 2009 11:36:55 +0000 (13:36 +0200)]
remember some TODOs for 0.9.31

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
14 years agodisable _POSIX_SPAWN define
Mike Frysinger [Thu, 22 Oct 2009 13:01:03 +0000 (09:01 -0400)]
disable _POSIX_SPAWN define

We don't provide spawn.h let alone any other spawn funcs/types, so don't
set up the _POSIX_SPAWN define that some packages (like vlc) check.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
14 years agobuild with -fmerge-all-constants
Mike Frysinger [Thu, 22 Oct 2009 05:17:46 +0000 (01:17 -0400)]
build with -fmerge-all-constants

Glibc is already using this flag and it gives us a slight code shrink in
a few functions.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
14 years agotest/plt: add a script to find PLT usage
Mike Frysinger [Thu, 22 Oct 2009 05:12:47 +0000 (01:12 -0400)]
test/plt: add a script to find PLT usage

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
14 years agolibc: add hidden calls to pthread cleanup funcs
Mike Frysinger [Thu, 22 Oct 2009 05:05:28 +0000 (01:05 -0400)]
libc: add hidden calls to pthread cleanup funcs

A lot of libc code calls the pthread cleanup funcs implicitly (for stdio)
which currently goes through the PLT.  Since we already have forwarding
symbols for these funcs, it's safe to declare the internal libc usage
hidden as a loaded libpthread will have the real symbols found.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
14 years agoregex: call memcpy() ourselves
Mike Frysinger [Thu, 22 Oct 2009 05:04:07 +0000 (01:04 -0400)]
regex: call memcpy() ourselves

Call the hidden memcpy() ourselves otherwise gcc will emit a call to the
public memcpy() which goes through the PLT.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
14 years agosysctl: avoid inline initialization
Mike Frysinger [Thu, 22 Oct 2009 04:43:19 +0000 (00:43 -0400)]
sysctl: avoid inline initialization

Assign each field one by one rather than stack initialization as gcc will
call memset() to zero out the rest of the structure -- which we don't care
about as the field is unused and not seen outside of the libc.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
14 years agoinet_ntop4: avoid inline initialization
Mike Frysinger [Thu, 22 Oct 2009 04:41:29 +0000 (00:41 -0400)]
inet_ntop4: avoid inline initialization

We only need to set the first byte to 0, but gcc likes to zero out the
rest of the string with memset() when using this initialization style.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
14 years agosparc: use fputs to write to stderr
Mike Frysinger [Thu, 22 Oct 2009 04:39:59 +0000 (00:39 -0400)]
sparc: use fputs to write to stderr

This also has the advantage of fputs() having a hidden alias while
puts does not.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
14 years agosparc: use HIDDEN_JUMPTARGET for errno
Mike Frysinger [Thu, 22 Oct 2009 04:39:44 +0000 (00:39 -0400)]
sparc: use HIDDEN_JUMPTARGET for errno

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
14 years agomake the sem_open changes actually compile
Austin Foxley [Mon, 9 Nov 2009 22:57:12 +0000 (14:57 -0800)]
make the sem_open changes actually compile

__gen_tempname now needs to not be hidden so libpthread can get at it

Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
14 years agoUnbreak sem_open when UCLIBC_SUSV3_LEGACY is not defined
Mikhail Gusarov [Sat, 7 Nov 2009 20:33:16 +0000 (02:33 +0600)]
Unbreak sem_open when UCLIBC_SUSV3_LEGACY is not defined

sem_open uses mktemp to create temporary file. Reimplement it
using __gen_tmpname, removing ugly while(1) loop. As a side-effect
remove the potential source of EAGAIN errors.

Signed-off-by: Mikhail Gusarov <dottedmag@dottedmag.net>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
14 years agoExtend __gen_tempname with mode argument
Mikhail Gusarov [Sat, 7 Nov 2009 20:33:15 +0000 (02:33 +0600)]
Extend __gen_tempname with mode argument

sem_open(3) needs to create a temporary file in a way which can't
be efficiently implemented in terms of POSIX API. Extend
__gen_tempname with mode_t mode argument in order to ease
sem_open implementation.

Signed-off-by: Mikhail Gusarov <dottedmag@dottedmag.net>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
14 years agoRules.mak fix typo (qstrup -> qstrip)
Austin Foxley [Mon, 9 Nov 2009 21:17:04 +0000 (13:17 -0800)]
Rules.mak fix typo (qstrup -> qstrip)

Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
14 years agoRules.mak fix typo (qstrup -> qstrip)
Austin Foxley [Mon, 9 Nov 2009 21:17:04 +0000 (13:17 -0800)]
Rules.mak fix typo (qstrup -> qstrip)

Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
14 years agoSimplify kconfig wording of thread support
Bernhard Reutner-Fischer [Wed, 28 Oct 2009 19:56:34 +0000 (20:56 +0100)]
Simplify kconfig wording of thread support

Use a choice for thread support selection.

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agoremove wrong default for choice
Bernhard Reutner-Fischer [Wed, 28 Oct 2009 19:49:18 +0000 (20:49 +0100)]
remove wrong default for choice

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agosupport selecting which locales to build
Bernhard Reutner-Fischer [Wed, 28 Oct 2009 19:12:54 +0000 (20:12 +0100)]
support selecting which locales to build

Introduce UCLIBC_BUILD_MINIMAL_LOCALES and if selected
build only those locales.

Based on a patch by Bernhard Reutner-Fischer.

Signed-off-by: Marc Andre Tanner <mat@brain-dump.org>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agoremember some TODOs for 0.9.31
Bernhard Reutner-Fischer [Fri, 23 Oct 2009 11:36:55 +0000 (13:36 +0200)]
remember some TODOs for 0.9.31

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agodisable _POSIX_SPAWN define
Mike Frysinger [Thu, 22 Oct 2009 13:01:03 +0000 (09:01 -0400)]
disable _POSIX_SPAWN define

We don't provide spawn.h let alone any other spawn funcs/types, so don't
set up the _POSIX_SPAWN define that some packages (like vlc) check.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
14 years agobuild with -fmerge-all-constants
Mike Frysinger [Thu, 22 Oct 2009 05:17:46 +0000 (01:17 -0400)]
build with -fmerge-all-constants

Glibc is already using this flag and it gives us a slight code shrink in
a few functions.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
14 years agotest/plt: add a script to find PLT usage
Mike Frysinger [Thu, 22 Oct 2009 05:12:47 +0000 (01:12 -0400)]
test/plt: add a script to find PLT usage

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
14 years agolibc: add hidden calls to pthread cleanup funcs
Mike Frysinger [Thu, 22 Oct 2009 05:05:28 +0000 (01:05 -0400)]
libc: add hidden calls to pthread cleanup funcs

A lot of libc code calls the pthread cleanup funcs implicitly (for stdio)
which currently goes through the PLT.  Since we already have forwarding
symbols for these funcs, it's safe to declare the internal libc usage
hidden as a loaded libpthread will have the real symbols found.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
14 years agoregex: call memcpy() ourselves
Mike Frysinger [Thu, 22 Oct 2009 05:04:07 +0000 (01:04 -0400)]
regex: call memcpy() ourselves

Call the hidden memcpy() ourselves otherwise gcc will emit a call to the
public memcpy() which goes through the PLT.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
14 years agosysctl: avoid inline initialization
Mike Frysinger [Thu, 22 Oct 2009 04:43:19 +0000 (00:43 -0400)]
sysctl: avoid inline initialization

Assign each field one by one rather than stack initialization as gcc will
call memset() to zero out the rest of the structure -- which we don't care
about as the field is unused and not seen outside of the libc.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
14 years agoinet_ntop4: avoid inline initialization
Mike Frysinger [Thu, 22 Oct 2009 04:41:29 +0000 (00:41 -0400)]
inet_ntop4: avoid inline initialization

We only need to set the first byte to 0, but gcc likes to zero out the
rest of the string with memset() when using this initialization style.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
14 years agosparc: use fputs to write to stderr
Mike Frysinger [Thu, 22 Oct 2009 04:39:59 +0000 (00:39 -0400)]
sparc: use fputs to write to stderr

This also has the advantage of fputs() having a hidden alias while
puts does not.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
14 years agosparc: use HIDDEN_JUMPTARGET for errno
Mike Frysinger [Thu, 22 Oct 2009 04:39:44 +0000 (00:39 -0400)]
sparc: use HIDDEN_JUMPTARGET for errno

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
14 years agoremove useless .gitignore
Austin Foxley [Tue, 20 Oct 2009 20:19:35 +0000 (13:19 -0700)]
remove useless .gitignore

Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
14 years agoremove useless .gitignore
Austin Foxley [Tue, 20 Oct 2009 20:19:35 +0000 (13:19 -0700)]
remove useless .gitignore

Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
14 years agowhitespace fixes
Austin Foxley [Sat, 17 Oct 2009 23:18:35 +0000 (16:18 -0700)]
whitespace fixes

Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
14 years agouClibc_main: add the needed support for nptl
Austin Foxley [Sat, 17 Oct 2009 21:47:18 +0000 (14:47 -0700)]
uClibc_main: add the needed support for nptl

 * setup memory for the cancellation buffer
 * remove unneeded weak's
 * deallocation of tsd on main thread exit

Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
14 years agoConfig.in: don't attempt to disable lt.old automatically, just have the user get...
Austin Foxley [Sat, 17 Oct 2009 21:45:31 +0000 (14:45 -0700)]
Config.in: don't attempt to disable lt.old automatically, just have the user get it right

Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
14 years agolibrt additions that are now possible with nptl
Austin Foxley [Sat, 17 Oct 2009 21:42:01 +0000 (14:42 -0700)]
librt additions that are now possible with nptl

 * clock_getcpuclockid, clock_gettime, clock_nanosleep, mq_receive,
   mq_send, mq_timedreceive, mq_timedsend, _SC_MONOTONIC_CLOCK

Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
14 years agonptl provides sigaction and raise
Austin Foxley [Sat, 17 Oct 2009 21:36:17 +0000 (14:36 -0700)]
nptl provides sigaction and raise

Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
14 years agocancellation support for a large amount of the required syscalls
Austin Foxley [Sat, 17 Oct 2009 21:32:36 +0000 (14:32 -0700)]
cancellation support for a large amount of the required syscalls

Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
14 years agouse *_not_cancel variants to avoid accidental cancellations with nptl
Austin Foxley [Sat, 17 Oct 2009 21:25:01 +0000 (14:25 -0700)]
use *_not_cancel variants to avoid accidental cancellations with nptl

Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
14 years agorework internal uClibc mutexes to support futex locking, and nptl
Austin Foxley [Sat, 17 Oct 2009 20:37:52 +0000 (13:37 -0700)]
rework internal uClibc mutexes to support futex locking, and nptl

Signed-off-by: Austin Foxley <austinf@cetoncorp.com>