OSDN Git Service

uclinux-h8/uClibc.git
14 years agoattribute_optimize: fix typo with args
Bernhard Reutner-Fischer [Mon, 12 Apr 2010 13:09:25 +0000 (15:09 +0200)]
attribute_optimize: fix typo with args

curious how 308f5c6e5fd56ea3d1a5512e34388aad788f1180 ever worked.. :P

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agoprettify make clean
Bernhard Reutner-Fischer [Mon, 12 Apr 2010 08:11:53 +0000 (10:11 +0200)]
prettify make clean

forgot extra/config

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years ago*.i depend on generated headers
Bernhard Reutner-Fischer [Mon, 12 Apr 2010 08:00:54 +0000 (10:00 +0200)]
*.i depend on generated headers

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agosilence warning about undefined preprocessor token
Bernhard Reutner-Fischer [Mon, 12 Apr 2010 07:43:08 +0000 (09:43 +0200)]
silence warning about undefined preprocessor token

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agolibc_regex: __libc_lock primitives are actually available on uClibc
Carmelo Amoroso [Mon, 12 Apr 2010 07:23:43 +0000 (09:23 +0200)]
libc_regex: __libc_lock primitives are actually available on uClibc

__libc_lock primitives are actually available on uClibc when threading
support is enable, so in this case they can be used.

It also fixes the following compiler warnings:

In file included from libc/misc/regex/regex.c:55:
libc/misc/regex/regex_internal.h:49:1: warning: "__libc_lock_define" redefined
[SNIP]
libc/misc/regex/regex_internal.h:50:1: warning: "__libc_lock_init" redefined
[SNIP]
libc/misc/regex/regex_internal.h:51:1: warning: "__libc_lock_lock" redefined
[SNIP]
libc/misc/regex/regex_internal.h:52:1: warning: "__libc_lock_unlock" redefined

Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
(cherry picked from commit 65f9ccdafd008abd9892dfc46fb9737ec4d964c5)

Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
14 years agoldso_sh: Provide only one definition for elf_machine_type_class
Carmelo Amoroso [Sun, 11 Apr 2010 20:56:05 +0000 (22:56 +0200)]
ldso_sh: Provide only one definition for elf_machine_type_class

It doesn't need to provide different definition of elf_machine_type_class
macro depending on TLS support.
It also fixes build for sh architecture when thread support is off:
  CC ldso/ldso/ldso.oS
In file included from ./ldso/ldso/sh/dl-sysdep.h:9,
                 from ./ldso/include/dl-string.h:11,
                 from ./ldso/include/ldso.h:40,
                 from ldso/ldso/ldso.c:33:
./include/tls.h:6:22: error: tls.h: No such file or directory
make: *** [ldso/ldso/ldso.oS] Error 1

Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
14 years agoresolv: tentatively fix usage of uninitialized DNS parameters
Denys Vlasenko [Fri, 9 Apr 2010 21:17:34 +0000 (23:17 +0200)]
resolv: tentatively fix usage of uninitialized DNS parameters

See "Possible regression from timeout commit for resolv.conf" thread.
Also remove superfluous NULL check.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years ago.gitignore getconf binaries
Bernhard Reutner-Fischer [Thu, 8 Apr 2010 08:33:53 +0000 (10:33 +0200)]
.gitignore getconf binaries

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agoconfstr: properly stringify version parts
Bernhard Reutner-Fischer [Thu, 8 Apr 2010 08:33:09 +0000 (10:33 +0200)]
confstr: properly stringify version parts

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agogetconf: print arbitrary GNU_LIBPTHREAD_VERSION string
Bernhard Reutner-Fischer [Tue, 6 Apr 2010 15:17:30 +0000 (17:17 +0200)]
getconf: print arbitrary GNU_LIBPTHREAD_VERSION string

the NPTL should probably print the version-string of the glibc it's
compatible with and not the uClibc version (check what mysql expects).

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agogetconf: move to utils/
Bernhard Reutner-Fischer [Tue, 6 Apr 2010 14:19:46 +0000 (16:19 +0200)]
getconf: move to utils/

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agoFix use-after-free bug in __dns_lookup
Gabor Juhos [Tue, 6 Apr 2010 07:55:19 +0000 (09:55 +0200)]
Fix use-after-free bug in __dns_lookup

If the type of the first answer does not match with the requested type,
then the dotted name was freed. If there are no further answers in
the DNS reply, this pointer was used later on in the same function.
Additionally it is passed to the caller, and caused strange
behaviour.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agoi386/bits/syscalls.h: more compact, but stack-hungry syscall code. disabled so far
Denys Vlasenko [Tue, 6 Apr 2010 03:33:01 +0000 (05:33 +0200)]
i386/bits/syscalls.h: more compact, but stack-hungry syscall code. disabled so far

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoi386/bits/syscalls.h: explain _BITS_SYSCALLS_ASM
Denys Vlasenko [Tue, 6 Apr 2010 03:32:09 +0000 (05:32 +0200)]
i386/bits/syscalls.h: explain _BITS_SYSCALLS_ASM

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoi386/bits/syscalls.h: generate better code using more restrictive asm constraints
Denys Vlasenko [Tue, 6 Apr 2010 03:29:26 +0000 (05:29 +0200)]
i386/bits/syscalls.h: generate better code using more restrictive asm constraints

Example: time() doesn't push/pop two registers now, and is smaller:

    <__GI_time>:
    -57                     push   %edi
    -8b 7c 24 08            mov    0x8(%esp),%edi
    -53                     push   %ebx
    -89 fb                  mov    %edi,%ebx
    +8b 4c 24 04            mov    0x4(%esp),%ecx
    +87 cb                  xchg   %ecx,%ebx
     b8 0d 00 00 00         mov    $0xd,%eax
     cd 80                  int    $0x80
    -5b                     pop    %ebx
    -5f                     pop    %edi
    +87 cb                  xchg   %ecx,%ebx
     c3                     ret

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoi386/bits/syscalls.h: explain how it works. no code changes
Denys Vlasenko [Tue, 6 Apr 2010 03:28:29 +0000 (05:28 +0200)]
i386/bits/syscalls.h: explain how it works. no code changes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agolibutil/login: was totally broken. fixed
Denys Vlasenko [Mon, 5 Apr 2010 17:27:41 +0000 (19:27 +0200)]
libutil/login: was totally broken. fixed

Also made login() and logout() usable with utmpname(non_std_utmp_file)
   text           data     bss     dec     hex filename
    111              0       0     111      6f libutil/login.o
    217              0       0     217      d9 libutil/login.o
   text           data     bss     dec     hex filename
    164              0       0     164      a4 libutil/logout.o
    134              0       0     134      86 libutil/logout.o

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoutent: do not create extra static functions if !THREADS
Denys Vlasenko [Mon, 5 Apr 2010 17:25:54 +0000 (19:25 +0200)]
utent: do not create extra static functions if !THREADS

   text           data     bss     dec     hex filename
    547              8     384     939     3ab libc/misc/utmp/utent.o
    519              8     384     911     38f libc/misc/utmp/utent.o

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoregex_old: convert static flag variable to smallint
Denys Vlasenko [Sun, 4 Apr 2010 23:32:19 +0000 (01:32 +0200)]
regex_old: convert static flag variable to smallint

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agogetutid is not used internally, removing hidden_proto
Denys Vlasenko [Sun, 4 Apr 2010 23:31:27 +0000 (01:31 +0200)]
getutid is not used internally, removing hidden_proto

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agobump version to 0.9.32-git
Bernhard Reutner-Fischer [Fri, 2 Apr 2010 16:01:41 +0000 (18:01 +0200)]
bump version to 0.9.32-git

NPTL merge candidate, finally!

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agoRelease 0.9.31
Bernhard Reutner-Fischer [Fri, 2 Apr 2010 15:34:27 +0000 (17:34 +0200)]
Release 0.9.31

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agoresolv: DEBUG-print nameserver we talk to
Bernhard Reutner-Fischer [Tue, 30 Mar 2010 15:18:03 +0000 (17:18 +0200)]
resolv: DEBUG-print nameserver we talk to

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agoutils: hide comment if !V
Bernhard Reutner-Fischer [Tue, 30 Mar 2010 09:45:48 +0000 (11:45 +0200)]
utils: hide comment if !V

14 years agopass CFLAGS-dir to CC-m
Bernhard Reutner-Fischer [Thu, 25 Mar 2010 15:42:04 +0000 (16:42 +0100)]
pass CFLAGS-dir to CC-m

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agoprettify make clean
Bernhard Reutner-Fischer [Thu, 25 Mar 2010 14:17:10 +0000 (15:17 +0100)]
prettify make clean

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agonios2: Define INTERNAL_SYSCALL_NCS, use common sycall defines
Tobias Klauser [Thu, 18 Mar 2010 11:24:08 +0000 (12:24 +0100)]
nios2: Define INTERNAL_SYSCALL_NCS, use common sycall defines

Define the nios2 version of INTERNAL_SYSCALL_NCS and remove all sycall
defines already defined by the common syscall defines.

This will make the master branch of uClibc compile again for nios2.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
14 years agonios2: Update fcntl.h from m68k
Tobias Klauser [Thu, 18 Mar 2010 11:24:07 +0000 (12:24 +0100)]
nios2: Update fcntl.h from m68k

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
14 years agolift printf field width limit
Michael Deutschmann [Wed, 17 Mar 2010 12:36:34 +0000 (13:36 +0100)]
lift printf field width limit

uClibc mishandles printf field width limits larger than 40959, as a
result of misguided overflow-protection code.  This causes spurious test
failures with GNU coreutils, which depends on "%65536s" and "%20000000f"
working according to spec.

Signed-off-by: Michael Deutschmann <michael@talamasca.ocis.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agonios2: Add sys/user.h
Tobias Klauser [Mon, 15 Mar 2010 10:04:05 +0000 (11:04 +0100)]
nios2: Add sys/user.h

This is a fixed version containing copyright information. The patch should now
apply using 'git am'.

linux/user.h is no longer exported during kernel make headers_install

Signed-off-by: Atle Nissestad <atle@nissestad.no>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agoconfig: tweak text
Bernhard Reutner-Fischer [Fri, 12 Mar 2010 23:31:36 +0000 (00:31 +0100)]
config: tweak text

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agobuildsys: touchup 'make dist' a tiny bit
Bernhard Reutner-Fischer [Fri, 12 Mar 2010 20:58:29 +0000 (21:58 +0100)]
buildsys: touchup 'make dist' a tiny bit

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agobump version
Bernhard Reutner-Fischer [Fri, 12 Mar 2010 20:50:18 +0000 (21:50 +0100)]
bump version

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agobump version to 0.9.31-rc1
Bernhard Reutner-Fischer [Fri, 12 Mar 2010 20:49:21 +0000 (21:49 +0100)]
bump version to 0.9.31-rc1

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agobuildsys: Fix O= PREFIX= case
Bernhard Reutner-Fischer [Fri, 12 Mar 2010 18:13:49 +0000 (19:13 +0100)]
buildsys: Fix O= PREFIX= case

make sure that something like:
$ rm -rf /dev/shm/o/* /dev/shm/o/.conf* /dev/shm/DELME
$ time (make defconfig O=/dev/shm/o 2>&1 >& /dev/null && make \
install_dev -j O=/dev/shm/o PREFIX=/dev/shm/DELME 2>&1 >& /dev/null)
works

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agobuildsys: fix dir order-only prereq of unifdef
Bernhard Reutner-Fischer [Fri, 12 Mar 2010 17:56:49 +0000 (18:56 +0100)]
buildsys: fix dir order-only prereq of unifdef

|$(@D) -> zilch, so spell it out

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agoadd MULTILIB_DIR: Path component for libdirs
Bernhard Reutner-Fischer [Fri, 12 Mar 2010 17:14:16 +0000 (18:14 +0100)]
add MULTILIB_DIR: Path component for libdirs

forgot to checkin this file

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agoconfig: support make defconfig O=/f/o/o
Bernhard Reutner-Fischer [Fri, 12 Mar 2010 16:21:02 +0000 (17:21 +0100)]
config: support make defconfig O=/f/o/o

previously wanted to create the temporary cfg file in the srcdir (which
failed on a RO srcdir)

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agoadd MULTILIB_DIR: Path component for libdirs
Bernhard Reutner-Fischer [Fri, 12 Mar 2010 16:06:35 +0000 (17:06 +0100)]
add MULTILIB_DIR: Path component for libdirs

defaults to "lib". Other prominent values include "lib32" or "lib64"

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agoinstall: fix O= PREFIX= install
Bernhard Reutner-Fischer [Fri, 12 Mar 2010 15:27:42 +0000 (16:27 +0100)]
install: fix O= PREFIX= install

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agoreduce number of mkdir calls
Bernhard Reutner-Fischer [Fri, 12 Mar 2010 15:19:39 +0000 (16:19 +0100)]
reduce number of mkdir calls

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agoremove config knobs that belong to the nptl branch
Bernhard Reutner-Fischer [Fri, 12 Mar 2010 13:47:15 +0000 (14:47 +0100)]
remove config knobs that belong to the nptl branch

Fixes bug #1243

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agopull kernel-features.h from NPTL
Bernhard Reutner-Fischer [Wed, 3 Mar 2010 20:38:49 +0000 (21:38 +0100)]
pull kernel-features.h from NPTL

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agopoll: unavailable on linux < 2.2.0
Bernhard Reutner-Fischer [Thu, 4 Mar 2010 11:59:10 +0000 (12:59 +0100)]
poll: unavailable on linux < 2.2.0

fixes bug #253

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agolibc_sh: Update memcpy to use the ENTRY macro
Carmelo Amoroso [Wed, 10 Feb 2010 14:24:03 +0000 (15:24 +0100)]
libc_sh: Update memcpy to use the ENTRY macro

Use the ENTRY macro now available through the sysdep.h header

Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
14 years agolibc_sh: Add a sysdep header for sh
Carmelo Amoroso [Wed, 10 Feb 2010 14:18:26 +0000 (15:18 +0100)]
libc_sh: Add a sysdep header for sh

A new sysdep header for sh (ported from NPTL branch) to provide some
useful macros in asm code:
ENTRY: an entry point visible from C
PSEUDO: a wrapper for syscall with proper errno checking
SYSCALL_ERROR_HANDLER: errno check (suitable for TLS)

This will help in NPTL integration.

Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
14 years agolibc: Add a common sysdep header
Carmelo Amoroso [Wed, 10 Feb 2010 14:14:14 +0000 (15:14 +0100)]
libc: Add a common sysdep header

Add a common header file to provide macros useful in asm code:
C_LABEL to construct the asm name for a C symbol
cfi_xxx to generate eh_frame unwind information.

Ported from NPTL branch.

Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
14 years agolibc: Fix typo in include/rpc
Carmelo Amoroso [Mon, 8 Feb 2010 15:24:06 +0000 (16:24 +0100)]
libc: Fix typo in include/rpc

s/GNU_SOUCE/GNU_SOURCE/ in include/rcp/

Signed-off-by: Jason Woodward <jason.woodward@timesys.com>
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
14 years agogetdents: Fix mips64 build
Atsushi Nemoto [Fri, 29 Jan 2010 15:24:37 +0000 (00:24 +0900)]
getdents: Fix mips64 build

On Wed, 27 Jan 2010 07:14:08 +0100, Carmelo AMOROSO <carmelo.amoroso@st.com> wrote:
> I would re-write your patch in a simpler way.
>
> We already have the following
>
> 136 #if defined __UCLIBC_HAS_LFS__ && ! defined __NR_getdents64
> 137 attribute_hidden strong_alias(__getdents,__getdents64)
> 138 #endif
>
> I think that it's simpler to move in the proper place this statement.

Thanks, indeed.  If we came into "#elif WORDSIZE == 32" block, above
condition never be true.  So we can just move this statement out of
"#if...#elif...#elif...#endif" block.  Here is a revised patch.

------------------------------------------------------
From: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Subject: [PATCH] getdents: Fix mips64 build

Some archs (such as mips64) do not have getdents64 syscall but have
getdents syscall.  Define alias for it.

This fixes regression from 0.9.30.1.

Backgrounds:
This is once done by commit e8b1c674.  But after the commit 33bcf733
("Use getdents syscall if kernel provide supports for this instead of
relying upon getdents64."), if __ASSUME_GETDENTS32_D_TYPE was defined
the alias for getdents64 is not defined.  The macro
__ASSUME_GETDENTS32_D_TYPE had been effectively ignored until 0.9.30.1
but the commit 0f0f20ab ("Move kernel-features.h header from the
linuxthread directory to a common one...") really enables it.

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
14 years agoprctl: silence shadow warnings
Bernhard Reutner-Fischer [Fri, 5 Feb 2010 18:19:08 +0000 (19:19 +0100)]
prctl: silence shadow warnings

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agoldso: add missing prototypes
Bernhard Reutner-Fischer [Fri, 5 Feb 2010 18:15:46 +0000 (19:15 +0100)]
ldso: add missing prototypes

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agoRevert "ftw.h installation: fix inverted logic"
Bernhard Reutner-Fischer [Fri, 5 Feb 2010 10:58:47 +0000 (11:58 +0100)]
Revert "ftw.h installation: fix inverted logic"

The logic was fine previously.
Thanks to Peter Kjellerstedt for pointing out my confusion.

This reverts commit d75f980f379dfbbe70ae8fb0956693a95af2fca2.

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agolibm: explain why some funcs are not implemented (yet)
Bernhard Reutner-Fischer [Thu, 4 Feb 2010 22:36:29 +0000 (23:36 +0100)]
libm: explain why some funcs are not implemented (yet)

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agolibm: enable log2f and exp2f
Aurelien Jacobs [Thu, 4 Feb 2010 17:26:08 +0000 (09:26 -0800)]
libm: enable log2f and exp2f

Signed-off-by: Aurelien Jacobs <aurel@gnuage.org>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
14 years agoUnbreak build for sparc on some config's
Austin Foxley [Wed, 3 Feb 2010 20:12:10 +0000 (12:12 -0800)]
Unbreak build for sparc on some config's

Thanks to rob@landley.net

Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
14 years ago__uClibc_main: use __pagesize to protect against recursion
Bernhard Reutner-Fischer [Wed, 3 Feb 2010 19:15:24 +0000 (20:15 +0100)]
__uClibc_main: use __pagesize to protect against recursion

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agoadd gethostid() testcase
Bernhard Reutner-Fischer [Wed, 3 Feb 2010 14:56:24 +0000 (15:56 +0100)]
add gethostid() testcase

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agolibc: Fix l64a to return the correct buffer pointer
Filippo Arcidiacono [Wed, 3 Feb 2010 12:14:18 +0000 (07:14 -0500)]
libc: Fix l64a to return the correct buffer pointer

l64a was returning the pointer to the end of the internal
buffer instead of the start. This caused an infinite loop
in passwd application.

Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com>
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
14 years agopowerpc/bits/sysdep.h: move confusingly placed #undef
Denys Vlasenko [Wed, 3 Feb 2010 10:44:11 +0000 (11:44 +0100)]
powerpc/bits/sysdep.h: move confusingly placed #undef

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years ago/etc/resolv.conf: support "timeout:n" and "attempts:n" options
Denys Vlasenko [Tue, 2 Feb 2010 23:11:34 +0000 (00:11 +0100)]
/etc/resolv.conf: support "timeout:n" and "attempts:n" options

    text           data     bss     dec     hex filename
-   1745              2       4    1751     6d7 libc/inet/dnslookup.o
+   1760              2       4    1766     6e6 libc/inet/dnslookup.o
-    962              0       4     966     3c6 libc/inet/opennameservers.o
+   1099              0       4    1103     44f libc/inet/opennameservers.o
-    462              4     472     938     3aa libc/inet/res_init.o
+    454              4     468     926     39e libc/inet/res_init.o
-    870              0       0     870     366 libc/inet/res_query.o
+    867              0       0     867     363 libc/inet/res_query.o

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoremove two checks for gettimeofday error
Denys Vlasenko [Tue, 2 Feb 2010 22:09:16 +0000 (23:09 +0100)]
remove two checks for gettimeofday error

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agotime,times: stop interpreting negative return values ar errors
Denys Vlasenko [Tue, 2 Feb 2010 22:07:24 +0000 (23:07 +0100)]
time,times: stop interpreting negative return values ar errors

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agolxdialog: remove objectfiles on clean
Bernhard Reutner-Fischer [Tue, 2 Feb 2010 09:38:42 +0000 (10:38 +0100)]
lxdialog: remove objectfiles on clean

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agoerrno: hide __libc_resp, __libc_errno, and __libc_h_errno
Khem Raj [Mon, 25 Jan 2010 23:11:05 +0000 (15:11 -0800)]
errno: hide __libc_resp, __libc_errno, and __libc_h_errno

Signed-off-by: Khem Raj <raj.khem@gmail.com>
14 years agodocument UCLIBC_EXTRA_CFLAGS
Bernhard Reutner-Fischer [Tue, 26 Jan 2010 17:00:52 +0000 (18:00 +0100)]
document UCLIBC_EXTRA_CFLAGS

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agoconvert to foo-y kbuild style
Bernhard Reutner-Fischer [Tue, 26 Jan 2010 12:54:26 +0000 (13:54 +0100)]
convert to foo-y kbuild style

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agomips/ldso: Check for TLS relocation in elf_machine_type_class.
Khem Raj [Mon, 25 Jan 2010 22:24:26 +0000 (14:24 -0800)]
mips/ldso: Check for TLS relocation in elf_machine_type_class.

* Store the symbol adress received from _dl_find_hash
  and do not recompute it.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
14 years agoMakefile.in: Make install_dev depend on install_runtime.
Henning Heinold [Sun, 24 Jan 2010 05:29:42 +0000 (21:29 -0800)]
Makefile.in: Make install_dev depend on install_runtime.

* Helps in parallel build.

Signed-off-by: Henning Heinold <heinold@inf.fu-berlin.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
14 years agowchar.c: fix indentation
Denys Vlasenko [Sun, 24 Jan 2010 01:26:26 +0000 (02:26 +0100)]
wchar.c: fix indentation

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agogethostid: switch to getaddrinfo and shrink
Bernhard Reutner-Fischer [Sat, 23 Jan 2010 23:39:57 +0000 (00:39 +0100)]
gethostid: switch to getaddrinfo and shrink

text    data     bss     dec     hex filename
    382       0       0     382     17e libc/inet/hostid.os.old
    326       0       0     326     146 libc/inet/hostid.os

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agogetprotoent_r: use correct define for return value
Bernhard Reutner-Fischer [Sat, 23 Jan 2010 22:25:01 +0000 (23:25 +0100)]
getprotoent_r: use correct define for return value

Doesn't correctly set result=NULL on error or EOF.

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agofix typo in previous commit
Bernhard Reutner-Fischer [Sat, 23 Jan 2010 21:41:25 +0000 (22:41 +0100)]
fix typo in previous commit

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agosilence some warnings about unused params
Bernhard Reutner-Fischer [Sat, 23 Jan 2010 21:37:01 +0000 (22:37 +0100)]
silence some warnings about unused params

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agoftw.h installation: fix inverted logic
Bernhard Reutner-Fischer [Sat, 23 Jan 2010 21:36:27 +0000 (22:36 +0100)]
ftw.h installation: fix inverted logic

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agolibc/inet: mark other odd /etc/conf/ spot
Bernhard Reutner-Fischer [Sat, 23 Jan 2010 20:29:19 +0000 (21:29 +0100)]
libc/inet: mark other odd /etc/conf/ spot

and wrap it in FALLBACK_TO_CONFIG_RESOLVCONF too. -24b

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agolibc/inet: set path to resolver file via CPP
Bernhard Reutner-Fischer [Sat, 23 Jan 2010 20:22:32 +0000 (21:22 +0100)]
libc/inet: set path to resolver file via CPP

No objcode changes.

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agolibc/inet: convert to foo-y kbuild style
Bernhard Reutner-Fischer [Sat, 23 Jan 2010 20:11:47 +0000 (21:11 +0100)]
libc/inet: convert to foo-y kbuild style

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agosilence warning about implicit decl of sysctl
Bernhard Reutner-Fischer [Fri, 22 Jan 2010 12:57:32 +0000 (13:57 +0100)]
silence warning about implicit decl of sysctl

... and reinstate comment explaining the gory details

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agoavr32: add varargs handling of prctl syscall
Hans-Christian Egtvedt [Wed, 16 Dec 2009 12:16:08 +0000 (13:16 +0100)]
avr32: add varargs handling of prctl syscall

prctl is defined to use varargs in the header file, hence it needs varargs
specific handling in the source. This patch properly handles the variodic
argument before the syscall is passed to the kernel for the AVR32 architecture.

Signed-off-by: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
14 years agowordexp: silence shadow warning
Bernhard Reutner-Fischer [Thu, 21 Jan 2010 09:42:02 +0000 (10:42 +0100)]
wordexp: silence shadow warning

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agofix typo in version mismatch msg
Bernhard Reutner-Fischer [Thu, 21 Jan 2010 09:36:13 +0000 (10:36 +0100)]
fix typo in version mismatch msg

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agoldso: tweak shadow warning with preload file support
Bernhard Reutner-Fischer [Tue, 19 Jan 2010 16:33:14 +0000 (17:33 +0100)]
ldso: tweak shadow warning with preload file support

The stat buffer is already declared at the top of the function.

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agorename exp(onent) to _exp
Bernhard Reutner-Fischer [Tue, 19 Jan 2010 16:26:11 +0000 (17:26 +0100)]
rename exp(onent) to _exp

    to avoid shadow warnings

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agoether_line: fix build for socket && !ip
Bernhard Reutner-Fischer [Tue, 19 Jan 2010 16:21:52 +0000 (17:21 +0100)]
ether_line: fix build for socket && !ip

The internal __ether_line helper needs ether_ntoa_r()

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agotest commit
Bernhard Reutner-Fischer [Wed, 20 Jan 2010 22:42:57 +0000 (23:42 +0100)]
test commit

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agofutimens: add missing local prototype
Bernhard Reutner-Fischer [Sat, 16 Jan 2010 18:18:38 +0000 (19:18 +0100)]
futimens: add missing local prototype

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agorename exp(onent) to ex
Bernhard Reutner-Fischer [Sat, 16 Jan 2010 18:14:12 +0000 (19:14 +0100)]
rename exp(onent) to ex

to avoid shadow warnings

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agorandconfig.sh: set number of make jobs
Bernhard Reutner-Fischer [Fri, 15 Jan 2010 14:59:56 +0000 (15:59 +0100)]
randconfig.sh: set number of make jobs

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agoinclude unistd.h for smallint
Yoshinori Sato [Sat, 16 Jan 2010 18:14:29 +0000 (19:14 +0100)]
include unistd.h for smallint

Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agomips/nptl: Pass correct parameters to dl_find_hash when resolving TLS relocations.
Khem Raj [Wed, 13 Jan 2010 01:51:32 +0000 (17:51 -0800)]
mips/nptl: Pass correct parameters to dl_find_hash when resolving TLS relocations.

Make use of macros from sys/asm.h in crt1.S
These two changes are needed for mips nptl to boot once again.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
14 years agoctime: do not use static struct tm buffer
Denys Vlasenko [Sat, 9 Jan 2010 20:58:50 +0000 (21:58 +0100)]
ctime: do not use static struct tm buffer

    text           data     bss     dec     hex filename
-     19              0       0      19      13 libc/misc/time/ctime.o
+     25              0       0      25      19 libc/misc/time/ctime.o

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agotest/math: put scalbf test under susv3 legacy define
Austin Foxley [Sun, 27 Dec 2009 20:13:52 +0000 (12:13 -0800)]
test/math: put scalbf test under susv3 legacy define

Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
14 years agoMake _dl_dprintf buf non-static to avoid multithreading bugs.
Chris Metcalf [Wed, 23 Dec 2009 20:00:55 +0000 (15:00 -0500)]
Make _dl_dprintf buf non-static to avoid multithreading bugs.

Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
14 years agomalloc: fix race condition and other bugs in the no-mmu malloc
Freeman Wang [Sat, 19 Dec 2009 21:43:00 +0000 (13:43 -0800)]
malloc: fix race condition and other bugs in the no-mmu malloc

Fixes multiple race conditions on mmb list. This was done by
making the mmb_heap_lock into a recursive lock and making the
regular heap_lock extend to cover the mmb heap handling.

Also move the new_mmb allocation up to before the mmb list is
iterated through to find the insertion point. When the mmb_heap
also runs out and needs to be extended when the regular heap is
just extended, the mmb list could be messed up.

Signed-off-by: Freeman Wang <xwang@ubicom.com>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
14 years agox86_64: fix multiple definition of chk functions
Austin Foxley [Sat, 19 Dec 2009 21:35:52 +0000 (13:35 -0800)]
x86_64: fix multiple definition of chk functions

also enable __chk_fail and only try to call it when SSP is on

Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
14 years agocheck if USE_TLS is defined before use
Hans-Christian Egtvedt [Wed, 16 Dec 2009 12:12:00 +0000 (13:12 +0100)]
check if USE_TLS is defined before use

This patch will convert all the #ifdef USE_TLS and #if USE_TLS to
 #if defined(USE_TLS) && USE_TLS.

By checking if the USE_TLS is defined before checking its value will result in
correct behavior for architectures not defining this config symbol.

Signed-off-by: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
Acked-by: Carmelo AMOROSO <carmelo.amoroso@st.com>
14 years agolibc: Remove pointless header string.h
Carmelo Amoroso [Wed, 16 Dec 2009 11:37:07 +0000 (12:37 +0100)]
libc: Remove pointless header string.h

It is already include from the internal header sigset-cvt-mask.h

Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
14 years agolibc: Add missing header for memset
Carmelo Amoroso [Wed, 16 Dec 2009 11:07:43 +0000 (12:07 +0100)]
libc: Add missing header for memset

Silence compiler warning by adding the missing string.h header
to include memset prototype.
Do some code tidy-up removing commented out libc_hidden_proto macros
in the meanwhile.

Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
14 years agobuild: Get rids of PIC macro using compiler flag __PIC__ instead
Carmelo Amoroso [Wed, 16 Dec 2009 08:09:38 +0000 (09:09 +0100)]
build: Get rids of PIC macro using compiler flag __PIC__ instead

Based on Peter Mazinger's comments on a recent commit, I decided
to get rids of all occurrences of PIC changing them to __PIC__

Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
14 years agosh: fix endianess and optimise the SH4 memcpy
Giuseppe Cavallaro [Mon, 14 Dec 2009 15:45:49 +0000 (16:45 +0100)]
sh: fix endianess and optimise the SH4 memcpy

This patch fixes the big-endian code and adds a new optimization
only for little endian mode.
This optimization is based on prefetching and 64bit data transfer via FPU.
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: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>