OSDN Git Service
Denis Vlasenko [Sat, 22 Nov 2008 14:24:04 +0000 (14:24 -0000)]
libc-symbols: improve comments and make macros a bit more readable.
no code changes
Denis Vlasenko [Sat, 22 Nov 2008 14:22:37 +0000 (14:22 -0000)]
fix some unneeded PLT references
Denis Vlasenko [Sat, 22 Nov 2008 01:07:44 +0000 (01:07 -0000)]
fix "make utils" build failure in ldconfig
(undefined reference to 'getopt')
Denis Vlasenko [Fri, 21 Nov 2008 11:50:13 +0000 (11:50 -0000)]
fix "make install" with relative PREFIX
Denis Vlasenko [Fri, 21 Nov 2008 11:15:58 +0000 (11:15 -0000)]
fix ioperm build problems caused by libc_hidden_proto removal
Denis Vlasenko [Fri, 21 Nov 2008 08:16:33 +0000 (08:16 -0000)]
fix apparent typo (unnoticed for long time, probably
because it didn't affect little endian arches)
Denis Vlasenko [Fri, 21 Nov 2008 08:15:19 +0000 (08:15 -0000)]
deal with TODOs left over from libc_hidden_proto removal
(fixes build with locale enabled)
Denis Vlasenko [Thu, 20 Nov 2008 22:11:44 +0000 (22:11 -0000)]
Last portion of libc_hidden_proto removal.
Appears to build fine (several .configs tried)
Denis Vlasenko [Thu, 20 Nov 2008 22:07:43 +0000 (22:07 -0000)]
next portion of libc_hidden_proto removal
Peter Kjellerstedt [Wed, 19 Nov 2008 12:34:25 +0000 (12:34 -0000)]
Make sure __hot and __cold are always defined.
Carmelo Amoroso [Tue, 18 Nov 2008 13:53:08 +0000 (13:53 -0000)]
Changed Copyright and License statement according to COPYING.LIB.boilerplate
Carmelo Amoroso [Tue, 18 Nov 2008 13:31:13 +0000 (13:31 -0000)]
Changed Copyright and License statement according to COPYING.LIB.boilerplate
Bernhard Reutner-Fischer [Tue, 18 Nov 2008 13:03:34 +0000 (13:03 -0000)]
- add __hot and __cold annotations
Will spare us quite some likely()/unlikely() occurances.
See http://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html for details
Carmelo Amoroso [Tue, 18 Nov 2008 12:56:05 +0000 (12:56 -0000)]
Fix typo: missing )
Carmelo Amoroso [Tue, 18 Nov 2008 12:48:13 +0000 (12:48 -0000)]
Move _dl_iterate_phdr into libc.so.0 and libc.a (as glibc does).
Currently we have an implementation in ld.so and libdl.a.
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Denis Vlasenko [Tue, 18 Nov 2008 01:10:26 +0000 (01:10 -0000)]
libc_hidden_proto removal, a few more functions
Denis Vlasenko [Tue, 18 Nov 2008 01:09:55 +0000 (01:09 -0000)]
libc_hidden_proto removal, just a few functions
Bernhard Reutner-Fischer [Mon, 17 Nov 2008 22:37:05 +0000 (22:37 -0000)]
- add hack to check if generating sysnum.h worked out
Denis Vlasenko [Mon, 17 Nov 2008 15:55:35 +0000 (15:55 -0000)]
resolver: use timeout of 5 (glibc uses that).
delete some duplication in constants.
Denis Vlasenko [Mon, 17 Nov 2008 03:31:47 +0000 (03:31 -0000)]
resolver: separate gethostent and gethostent_r into two .o files;
delete two stray files which compile to nothing
Denis Vlasenko [Mon, 17 Nov 2008 03:01:01 +0000 (03:01 -0000)]
resolver: move large code blocks to arrange related functions closer.
almost no code changes
Denis Vlasenko [Mon, 17 Nov 2008 02:40:05 +0000 (02:40 -0000)]
resolver: fix some previous TODOs, add new ones.
Bernhard Reutner-Fischer [Sun, 16 Nov 2008 20:38:09 +0000 (20:38 -0000)]
- cleanup {,f}stat{,v}fs{,64} relocs
Denis Vlasenko [Sun, 16 Nov 2008 19:00:21 +0000 (19:00 -0000)]
resolver: improved support for overriding DNS server addresses
in _res structure. Used by busybox's nslookup.
Denis Vlasenko [Sun, 16 Nov 2008 04:07:16 +0000 (04:07 -0000)]
resolver: make getaddrinfo actually respect _res.nsaddr_list;
add largish comment explaining what we are doing, and why;
fixes to make IPv6-only resolver possible
Denis Vlasenko [Sat, 15 Nov 2008 16:15:25 +0000 (16:15 -0000)]
resolver: more locking fixes.
Bernhard Reutner-Fischer [Sat, 15 Nov 2008 16:10:29 +0000 (16:10 -0000)]
- if ssp is enabled then make sure that __stack_chk_fail resolves
Bernhard Reutner-Fischer [Sat, 15 Nov 2008 15:54:53 +0000 (15:54 -0000)]
- Remove linux-specific prototypes if asked to.
Bernhard Reutner-Fischer [Sat, 15 Nov 2008 15:42:40 +0000 (15:42 -0000)]
- revert wrong r24049
Bernhard Reutner-Fischer [Sat, 15 Nov 2008 15:38:10 +0000 (15:38 -0000)]
- Remove linux-specific prototypes if asked to.
Rob Landley [Fri, 14 Nov 2008 22:12:11 +0000 (22:12 -0000)]
Current kernels support more than 8 bit major/minor. Pass dev_t through to
the kernel unmolested.
Denis Vlasenko [Fri, 14 Nov 2008 00:37:48 +0000 (00:37 -0000)]
fixing resolver part 3: fix completely bogus locking
in __dns_lookup.
Denis Vlasenko [Fri, 14 Nov 2008 00:35:40 +0000 (00:35 -0000)]
fixing resolver part 2: make _res structure members
configurable. we don't use most of it anyway.
Denis Vlasenko [Fri, 14 Nov 2008 00:34:02 +0000 (00:34 -0000)]
fixing resolver, part 1
Bernhard Reutner-Fischer [Thu, 13 Nov 2008 14:07:50 +0000 (14:07 -0000)]
- do not fail if mktemp is not available.
Thanks to Peter Mazinger for the report. (r24023 from branch)
Bernhard Reutner-Fischer [Thu, 13 Nov 2008 10:38:52 +0000 (10:38 -0000)]
- silence shadow warning
Bernhard Reutner-Fischer [Wed, 12 Nov 2008 12:35:01 +0000 (12:35 -0000)]
- adjust trunk version info
Bernhard Reutner-Fischer [Tue, 11 Nov 2008 11:05:57 +0000 (11:05 -0000)]
- update recommendation for pregenerated locales.
- update name of locale-tarball. We will retroactively fill them in, eventually
Bernhard Reutner-Fischer [Sun, 9 Nov 2008 13:13:05 +0000 (13:13 -0000)]
- for !UNIX98PTY_ONLY we have to fallback to old-style pty's.
Closes #6024
Bernhard Reutner-Fischer [Sun, 9 Nov 2008 13:10:50 +0000 (13:10 -0000)]
- Add temporary hack to wipe dep files even on clean for utils.
utils lives outside of the normal build so this is needed until it is
properly pulled into the normal system.
Bernhard Reutner-Fischer [Fri, 7 Nov 2008 21:15:53 +0000 (21:15 -0000)]
- less verbose make clean
Bernhard Reutner-Fischer [Fri, 7 Nov 2008 20:55:54 +0000 (20:55 -0000)]
- tidy up indentation
Bernhard Reutner-Fischer [Fri, 7 Nov 2008 19:13:06 +0000 (19:13 -0000)]
- document more environment variables
Hans-Christian Egtvedt [Mon, 3 Nov 2008 16:14:04 +0000 (16:14 -0000)]
Add extern reference to __libc_sigaction in sigaction.c for AVR32 arch
Signed-off-by: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
Hans-Christian Egtvedt [Mon, 3 Nov 2008 16:02:52 +0000 (16:02 -0000)]
Sync clone() function declaration for AVR32 with sched.h declaration
This patch fixes the previous commit for clone on AVR32 arch, where the
function parameters where not updated after adding #include <sched.h>.
Signed-off-by: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
Hans-Christian Egtvedt [Mon, 3 Nov 2008 15:54:24 +0000 (15:54 -0000)]
Prefix variables defined in INIT_GOT define for AVR32 arch
This patch will prefix the i and nr_got variable with an underscore to seperate
them from any variables already present in the functions where the macro is
used.
Needed to silence compiler warnings.
Signed-off-by: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
Hans-Christian Egtvedt [Mon, 3 Nov 2008 15:52:38 +0000 (15:52 -0000)]
Make sure functions in dl-sysdep.h for AVR32 are always inlined
Replace __inline__ with __always_inline.
Signed-off-by: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
Hans-Christian Egtvedt [Mon, 3 Nov 2008 15:48:07 +0000 (15:48 -0000)]
Add hint for read ahead function in fcntl.h for AVR32 arch
Signed-off-by: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
Hans-Christian Egtvedt [Mon, 3 Nov 2008 15:46:30 +0000 (15:46 -0000)]
Add include to silence compiler warning when compiling clone.c for AVR32
Signed-off-by: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
Hans-Christian Egtvedt [Mon, 3 Nov 2008 15:44:09 +0000 (15:44 -0000)]
Remove commented out CFLAGS assigment which is also set on next line
Signed-off-by: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
Hans-Christian Egtvedt [Mon, 3 Nov 2008 15:41:17 +0000 (15:41 -0000)]
Fix whitespace damage in file.
Signed-off-by: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
Bernhard Reutner-Fischer [Mon, 3 Nov 2008 12:28:17 +0000 (12:28 -0000)]
- jmp on coldfire accepts only address registers
Closes #3824
Bernhard Reutner-Fischer [Sun, 2 Nov 2008 12:13:00 +0000 (12:13 -0000)]
- Fix __user_locking with stdio buffers (Carmelo AMOROSO)
Closes #5254
Denis Vlasenko [Sun, 2 Nov 2008 00:25:33 +0000 (00:25 -0000)]
resolver: reinstate searching if search domains accidentally nuked
in one of recent commits :)
Denis Vlasenko [Sat, 1 Nov 2008 23:33:16 +0000 (23:33 -0000)]
__dns_lookup: document and optimize a bit
text data bss dec hex filename
- 1545 2 4 1551 60f libc/inet/dnslookup.o
+ 1528 2 4 1534 5fe libc/inet/dnslookup.o
Denis Vlasenko [Sat, 1 Nov 2008 23:25:50 +0000 (23:25 -0000)]
resolver: partially fix bug 660 -
do not treat negative response as error
Denis Vlasenko [Sat, 1 Nov 2008 23:24:00 +0000 (23:24 -0000)]
resolver: fix part of bug 1468:
"gethostbyname() fails if DNS server returns more than 23 addresses"
Denis Vlasenko [Sat, 1 Nov 2008 23:17:54 +0000 (23:17 -0000)]
resolver: trivial code trasformations for readability.
No logic changes. Code size is the same too.
Denis Vlasenko [Sat, 1 Nov 2008 23:15:48 +0000 (23:15 -0000)]
trivial code shrink by making some strings static
text data bss dec hex filename
- 259 0 0 259 103 libc/inet/herror.o
+ 243 0 0 243 f3 libc/inet/herror.o
- 720 0 0 720 2d0 libc/inet/ns_name.o
+ 710 0 0 710 2c6 libc/inet/ns_name.o
Bernhard Reutner-Fischer [Fri, 31 Oct 2008 14:18:04 +0000 (14:18 -0000)]
- whitespace fixes
Bernhard Reutner-Fischer [Fri, 31 Oct 2008 14:17:23 +0000 (14:17 -0000)]
- improve readability, no objcode changes.
Looks a bit like we wouldn't need to calculate the carry flag there?
Hans-Christian Egtvedt [Fri, 31 Oct 2008 09:50:42 +0000 (09:50 -0000)]
Resync pt-machine.h for AVR32 linuxthreads and linuxthreads.old
This patch synchronizes the AVR32 specific pt-machine.h header file for
linuxthreads and linuxthreads.old implementation.
Signed-off-by: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
Hans-Christian Egtvedt [Fri, 31 Oct 2008 09:40:57 +0000 (09:40 -0000)]
Replace inline with __inline__ in AVR32 pt-machine.h header file
This patch replaces inline with __inline__ to be more ANSI compatible.
Signed-off-by: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
Bernhard Reutner-Fischer [Thu, 30 Oct 2008 08:05:36 +0000 (08:05 -0000)]
- helper config symbol has to depend on thread support
Ricard Wanderlof [Thu, 30 Oct 2008 07:58:02 +0000 (07:58 -0000)]
File removed as it was not only redundant but also horribly out of date.
Bernhard Reutner-Fischer [Wed, 29 Oct 2008 19:40:21 +0000 (19:40 -0000)]
- minor shrinkage (-50b)
Bernhard Reutner-Fischer [Wed, 29 Oct 2008 13:34:35 +0000 (13:34 -0000)]
- fix use after free (Kevin Day)
dl_cleanup will call do_dlclose with the handle.
Inside of do_dlclose, the handle will ultimately get free'd.
Bernhard Reutner-Fischer [Wed, 29 Oct 2008 12:24:29 +0000 (12:24 -0000)]
- fix another fallout from r23660
Bernhard Reutner-Fischer [Tue, 28 Oct 2008 20:07:38 +0000 (20:07 -0000)]
- mark trunk as BUGFIX-ONLY after 0.9.30-rc3
Bernhard Reutner-Fischer [Tue, 28 Oct 2008 20:05:48 +0000 (20:05 -0000)]
- bump version to 0.9.30-rc3
Denis Vlasenko [Tue, 28 Oct 2008 16:25:10 +0000 (16:25 -0000)]
getaddrinfo.c: improve readability
Denis Vlasenko [Tue, 28 Oct 2008 16:22:56 +0000 (16:22 -0000)]
getaddrinfo.c: reformat. no code changes
Bernhard Reutner-Fischer [Tue, 28 Oct 2008 13:05:24 +0000 (13:05 -0000)]
- trim superfluous ';'. No objcode changes
Bernhard Reutner-Fischer [Tue, 28 Oct 2008 12:50:10 +0000 (12:50 -0000)]
- fix compilation if LFS is off and STUBs are requested
Ricard Wanderlof [Tue, 28 Oct 2008 09:55:44 +0000 (09:55 -0000)]
Remove all references to __no_netlink_support as after thurough scrutiny of
the code it was never used in any useful way.
Rob Landley [Tue, 28 Oct 2008 06:48:06 +0000 (06:48 -0000)]
Finally fix the MALLOC=y and MALLOC_SIMPLE=y breakage from svn 23660. (I found it, this is Bernhard's patch to fix it. Tested and it Works For Me (tm)).
Denis Vlasenko [Tue, 28 Oct 2008 00:12:25 +0000 (00:12 -0000)]
make getaddrinfo to NOT query DNS for IPv6 address if host is in
/etc/hosts and it has IPv4 address there.
The most common example is "127.0.0.1 localhost".
We don't want "ping localhost" to stall and time out on IPv6
queries to, say, inaccessible DNS server, right?
- 655 0 0 655 28f libc/inet/gethostbyname2_r.o
+ 685 0 0 685 2ad libc/inet/gethostbyname2_r.o
Rob Landley [Mon, 27 Oct 2008 22:02:54 +0000 (22:02 -0000)]
Explain what malloc simple is good for, and what it isn't good for.
Bernhard Reutner-Fischer [Mon, 27 Oct 2008 17:04:51 +0000 (17:04 -0000)]
- pull in prototype for memalign()
Bernhard Reutner-Fischer [Mon, 27 Oct 2008 14:15:26 +0000 (14:15 -0000)]
- add helpful help string
Bernhard Reutner-Fischer [Mon, 27 Oct 2008 14:14:05 +0000 (14:14 -0000)]
- Print helptexts of choices. If a choice (but not it's children) has help, print that.
If a choice's child has no help, print parents help.
Bernhard Reutner-Fischer [Mon, 27 Oct 2008 10:02:10 +0000 (10:02 -0000)]
- fix typo in r23808
Denis Vlasenko [Mon, 27 Oct 2008 08:27:43 +0000 (08:27 -0000)]
libc/inet/getaddrinfo.c: const'ify some data;
avoid using zero-filled constants in bss:
text data bss dec hex filename
3182 24 48 3254 cb6 getaddrinfo_old.o
3280 0 0 3280 cd0 getaddrinfo.o
Khem Raj [Sat, 25 Oct 2008 00:58:41 +0000 (00:58 -0000)]
Use C implementation of strncmp.
Add a new strncmp testcase.
Bernhard Reutner-Fischer [Fri, 24 Oct 2008 16:33:36 +0000 (16:33 -0000)]
- fix mips syscall (Atsushi Nemoto)
Bernhard Reutner-Fischer [Fri, 24 Oct 2008 08:34:31 +0000 (08:34 -0000)]
- tidy up inline:
ldso and syscalls are __always_inline (the latter would need more cleanup)
Bernhard Reutner-Fischer [Wed, 22 Oct 2008 13:36:10 +0000 (13:36 -0000)]
- remove superfluous ';'. No objcode changes.
Bernhard Reutner-Fischer [Wed, 22 Oct 2008 08:47:03 +0000 (08:47 -0000)]
- delete_module() takes two arguments on linux-2.6
Closes #5644
Bernhard Reutner-Fischer [Mon, 20 Oct 2008 21:29:27 +0000 (21:29 -0000)]
- need to grab features before looking at eventually requested netlink support
Thanks to Peter S. Mazinger for pointing out this (obvious) error.
The __ASSUME_NETLINK from ricardw's r22531 references a non-existing
variable in certain cases. I don't see how that could possibly work..
Bernhard Reutner-Fischer [Sun, 19 Oct 2008 17:03:03 +0000 (17:03 -0000)]
- do not include netlink headers if netlink is turned off (Michael Deutschmann)
Closes #5544
Bernhard Reutner-Fischer [Sun, 19 Oct 2008 13:27:09 +0000 (13:27 -0000)]
- fix sigaction on older kernels (Michael Deutschmann)
In issue #5554 Michael wrote:
The implementation of sigaction on i386 for older kernels makes the system call using an inline asm element with two flaws:
1. The asm is not marked as depending on the kact structure or modifying the koact structure. Thus, GCC is free to assume these structures need not be kept consistent, allowing it to remove all initialization of kact.
2. The asm allows the signal number to be provided as a memory reference. But this allows GCC to provide a stack-relative operand, which will break because the assembler saves %ebx on the stack before using that operand.
1 didn't use to be a problem in practice because GCC 4.2.* didn't seize the optimization opportunity. GCC 4.3.2, however, optimizes out the "kact.sa_flags = act->sa_flags | SA_RESTORER;" line, so that the kernel sees garbage in sa_flags. This can result in the kernel seeing the SA_RESETHAND flag, causing erratic behaviour in signal dependent programs.
2 becomes an issue if "-fomit-frame-pointer" is provided. In uClibc-0.9.29 it isn't, uClibc-0.9.30-rc2 does use the flag by default.
Bernhard Reutner-Fischer [Sat, 18 Oct 2008 12:52:17 +0000 (12:52 -0000)]
- do not list non-existing files in the threads prerequisites
Bernhard Reutner-Fischer [Sat, 18 Oct 2008 12:48:09 +0000 (12:48 -0000)]
- sync fix for scandir errno handling to scandir64 (r23600)
Thanks to Peter S. Mazinger for mentioning this.
Bernhard Reutner-Fischer [Fri, 17 Oct 2008 14:05:53 +0000 (14:05 -0000)]
- fix toggling thread implementation.
Previously the old headers were left in include/ leading to spurious compile failures.
This is ugly as it can get (we resort to sneaking -L in for the moment) but
good enough for now. The worst thing which can happen is that we ln these
headers once per invocation of make, nothing more.
If some installation of make(1) complains about the "-L" then wrap it in
ifneq ($(findstring check-symlink,$(.FEATURES)),)
Bernhard Reutner-Fischer [Fri, 17 Oct 2008 11:46:53 +0000 (11:46 -0000)]
- des uses ntohl
Bernhard Reutner-Fischer [Fri, 17 Oct 2008 11:38:08 +0000 (11:38 -0000)]
- guard socket calls with UCLIBC_HAS_SOCKET
Bernhard Reutner-Fischer [Fri, 17 Oct 2008 07:52:50 +0000 (07:52 -0000)]
- document environment variables for make(1)
Bernhard Reutner-Fischer [Thu, 16 Oct 2008 21:16:46 +0000 (21:16 -0000)]
This should fix malloc with debug and without threads. (Chase N Douglas)
This should have been in r23660. Untested.
Bernhard Reutner-Fischer [Wed, 15 Oct 2008 08:53:19 +0000 (08:53 -0000)]
- mark trunk as -rc2-svn
Bernhard Reutner-Fischer [Wed, 15 Oct 2008 08:29:37 +0000 (08:29 -0000)]
- bump version to 0.9.30-rc2