OSDN Git Service
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
Bernhard Reutner-Fischer [Tue, 14 Oct 2008 15:16:20 +0000 (15:16 -0000)]
- fix locale dependencies and make default locale generation less verbose.
The verbosity can be set to the previous level by passing V=2 to make.
Khem Raj [Sat, 11 Oct 2008 08:52:58 +0000 (08:52 -0000)]
Fix bug 4994 hangs on read(). I have tested the patch extensibly on ARM/LT.old.
Thank you Chase Douglas for reporting it and for the patch.
Bernhard Reutner-Fischer [Fri, 10 Oct 2008 20:22:28 +0000 (20:22 -0000)]
- fix copy'n paste error
Bernhard Reutner-Fischer [Fri, 10 Oct 2008 18:06:58 +0000 (18:06 -0000)]
- fix return value
Bernhard Reutner-Fischer [Fri, 10 Oct 2008 17:10:26 +0000 (17:10 -0000)]
- add signalfd()
Bernhard Reutner-Fischer [Fri, 10 Oct 2008 13:50:38 +0000 (13:50 -0000)]
- .. and don't install the config dir, too
Bernhard Reutner-Fischer [Fri, 10 Oct 2008 13:46:01 +0000 (13:46 -0000)]
- remove bashism; don't install config/* to the target
Bernhard Reutner-Fischer [Fri, 10 Oct 2008 13:14:15 +0000 (13:14 -0000)]
- pull kconfig from linux-2.6.27
Bernhard Reutner-Fischer [Fri, 10 Oct 2008 13:10:57 +0000 (13:10 -0000)]
- make sure to match the start of the MAKE_VERSION
Bernhard Reutner-Fischer [Fri, 10 Oct 2008 13:09:59 +0000 (13:09 -0000)]
- remove suspicious_dependency
Bernhard Reutner-Fischer [Fri, 10 Oct 2008 07:53:52 +0000 (07:53 -0000)]
- add and use EXTRA_DIRS to wipe the test/locale/C directory
Bernhard Reutner-Fischer [Fri, 10 Oct 2008 07:19:34 +0000 (07:19 -0000)]
- Include stdio.h for the perror prototype, use constants from stdlib.h,
tidy up old-style function definition.
Bernhard Reutner-Fischer [Thu, 9 Oct 2008 13:22:20 +0000 (13:22 -0000)]
- prevent spurious rebuilds
Previously this led to superfluous re-stripping and the re-ar'ing
Bernhard Reutner-Fischer [Thu, 9 Oct 2008 12:59:45 +0000 (12:59 -0000)]
- cut down on attempted pattern rule matches
Bernhard Reutner-Fischer [Thu, 9 Oct 2008 12:24:37 +0000 (12:24 -0000)]
- reinstate hostutils target
TODO: utils/* should be pulled in again to live in the normal buildsys..
Bernhard Reutner-Fischer [Thu, 9 Oct 2008 12:23:29 +0000 (12:23 -0000)]
- tidy up utils_install
Bernhard Reutner-Fischer [Thu, 9 Oct 2008 12:22:48 +0000 (12:22 -0000)]
- beautify hcompile.u
Bernhard Reutner-Fischer [Thu, 9 Oct 2008 12:21:41 +0000 (12:21 -0000)]
- standardize fopen error message a bit
Bernhard Reutner-Fischer [Thu, 9 Oct 2008 12:19:05 +0000 (12:19 -0000)]
- fix errno setting (we're outside of libc here)
Bernhard Reutner-Fischer [Thu, 9 Oct 2008 12:18:24 +0000 (12:18 -0000)]
- mention a FIXME for some make guru :)
Bernhard Reutner-Fischer [Thu, 9 Oct 2008 10:46:42 +0000 (10:46 -0000)]
- fix test. Tests are normal userspace and are _not_ part of the libc itself
Thanks to Tobias Poschwatta for pointing out this error.
Bernhard Reutner-Fischer [Wed, 8 Oct 2008 23:22:11 +0000 (23:22 -0000)]
- sync comment to rule as pointed out by psm.
Bernhard Reutner-Fischer [Wed, 8 Oct 2008 21:22:38 +0000 (21:22 -0000)]
- fix bad r23573 from egtvedt
Bernhard Reutner-Fischer [Wed, 8 Oct 2008 18:40:40 +0000 (18:40 -0000)]
- fix building locale (pre- and generated, even parallel)
Bernhard Reutner-Fischer [Wed, 8 Oct 2008 16:30:43 +0000 (16:30 -0000)]
- revert bad hunk from (my) r22403
CRT need config too
Bernhard Reutner-Fischer [Wed, 8 Oct 2008 14:06:07 +0000 (14:06 -0000)]
- Fix strtol*() with xlocale (on e.g. x86_64) (closes #2544)
Bernhard Reutner-Fischer [Wed, 8 Oct 2008 14:05:03 +0000 (14:05 -0000)]
- add/use variables to make build-tools configurable
Carmelo Amoroso [Mon, 6 Oct 2008 15:04:46 +0000 (15:04 -0000)]
Fix scandir function to reset the errno when the
selector returns zero(no entries) modifying the errno.
The attached test case implements a dummy filter that returns
alway no entries, but change the errno. scandir is not expected
to fail, just returning 0 entries.
Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com>
Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Bernhard Reutner-Fischer [Mon, 6 Oct 2008 14:54:09 +0000 (14:54 -0000)]
- fix typo in previous commit
Bernhard Reutner-Fischer [Mon, 6 Oct 2008 14:46:37 +0000 (14:46 -0000)]
- add libc_hidden_def(clock_getres) as spotted by Ned Ludd
Bernhard Reutner-Fischer [Mon, 6 Oct 2008 10:24:41 +0000 (10:24 -0000)]
- implement log2()
Bernhard Reutner-Fischer [Mon, 6 Oct 2008 09:54:03 +0000 (09:54 -0000)]
- mention the architectures that currently support fenv(3).
i387 works (could be that it works on x86_64, untested), sse code disabled.
Bernhard Reutner-Fischer [Mon, 6 Oct 2008 09:16:43 +0000 (09:16 -0000)]
- wrap overlong lines
Bernhard Reutner-Fischer [Mon, 6 Oct 2008 09:15:39 +0000 (09:15 -0000)]
- move helptexts to their config symbols so that they are actually displayed
TODO: trick kconfig into displaying choice help properly
Bernhard Reutner-Fischer [Mon, 6 Oct 2008 09:13:43 +0000 (09:13 -0000)]
- sync obstack.{c,h} with glibc (Peter S. Mazinger)
Bernhard Reutner-Fischer [Mon, 6 Oct 2008 08:56:48 +0000 (08:56 -0000)]
- Fallback waitid impl (Peter S. Mazinger)
Bernhard Reutner-Fischer [Mon, 6 Oct 2008 08:56:16 +0000 (08:56 -0000)]
- hide relocation (Peter S. Mazinger)
Bernhard Reutner-Fischer [Mon, 6 Oct 2008 08:55:46 +0000 (08:55 -0000)]
- silence warning
Bernhard Reutner-Fischer [Mon, 6 Oct 2008 08:55:23 +0000 (08:55 -0000)]
- disentangle REALTIME from ADVANCED_REALTIME (Peter S. Mazinger)
Bernhard Reutner-Fischer [Mon, 6 Oct 2008 08:54:40 +0000 (08:54 -0000)]
- tweak inclusion of asm/socket.h for linux-2.4 (Peter S. Mazinger)
Bernhard Reutner-Fischer [Fri, 3 Oct 2008 14:24:28 +0000 (14:24 -0000)]
- add long double math wrappers (Ned Ludd)
Bernhard Reutner-Fischer [Fri, 3 Oct 2008 13:59:52 +0000 (13:59 -0000)]
- use c89-style comments
Closes issue #5194
Hans-Christian Egtvedt [Thu, 2 Oct 2008 14:15:05 +0000 (14:15 -0000)]
Fix bad commit 23574 for io redirecting when running the test suite
This patch fixes the previous r23574 and uses a correct syntax for redirecting.
./foo > bar.out 2>&1
Hans-Christian Egtvedt [Thu, 2 Oct 2008 12:54:43 +0000 (12:54 -0000)]
Use more generic redirecting of output in the test suite
This patch replaces the "&> file" with "> file 2>> file". The latter is
compatible with Busybox ash shell, which makes it easier to run the test suite
on target.
Signed-off-by: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
Hans-Christian Egtvedt [Thu, 2 Oct 2008 05:21:27 +0000 (05:21 -0000)]
Ensure that headers are generated before libs
This patch makes libs: rule depend on pregen, that way all generated headers
are available before starting to compile. This makes the build process parallel
safe.
Signed-off-by: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
Carmelo Amoroso [Wed, 1 Oct 2008 14:58:13 +0000 (14:58 -0000)]
Fix compilation problem whit the following config options:
UCLIBC_HAS_STRING_GENERIC_OPT=y
UCLIBC_HAS_STRING_ARCH_OPT is not set
by making WORD_COPY_FWD macros visible.
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Bernhard Reutner-Fischer [Tue, 30 Sep 2008 12:17:04 +0000 (12:17 -0000)]
- fix whitespace
Bernhard Reutner-Fischer [Tue, 30 Sep 2008 12:09:55 +0000 (12:09 -0000)]
- avoid warning about undefined preprocessor token
Bernhard Reutner-Fischer [Tue, 30 Sep 2008 11:58:17 +0000 (11:58 -0000)]
- add missing const qualifier for !__NR_sched_setaffinity && HAVE_STUBS
Bernhard Reutner-Fischer [Tue, 30 Sep 2008 11:50:50 +0000 (11:50 -0000)]
- remove some duplicate includes
Bernhard Reutner-Fischer [Tue, 30 Sep 2008 11:36:18 +0000 (11:36 -0000)]
- fix compilation of UCLIBC_HAS_PTY && !ASSUME_DEVPTS && !LINUX_SPECIFIC
Bernhard Reutner-Fischer [Tue, 30 Sep 2008 11:28:52 +0000 (11:28 -0000)]
- tweak helptext
Bernhard Reutner-Fischer [Tue, 30 Sep 2008 11:26:24 +0000 (11:26 -0000)]
- remove shadows declaration of struct st (already declared in function scope)
Bernhard Reutner-Fischer [Mon, 29 Sep 2008 16:57:31 +0000 (16:57 -0000)]
- add a copy of user_regs
Bernhard Reutner-Fischer [Mon, 29 Sep 2008 14:34:40 +0000 (14:34 -0000)]
- do not pass bitwise-or to the assembler. Closes #3164