OSDN Git Service
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
Carmelo Amoroso [Mon, 29 Sep 2008 13:19:35 +0000 (13:19 -0000)]
sh_ldso: Fix typo: missing semi-colon.
Bernhard Reutner-Fischer [Mon, 29 Sep 2008 13:04:10 +0000 (13:04 -0000)]
- honour UCLIBC_HAS_SYSLOG
Carmelo Amoroso [Mon, 29 Sep 2008 12:59:45 +0000 (12:59 -0000)]
Fix comment.
Carmelo Amoroso [Mon, 29 Sep 2008 12:09:52 +0000 (12:09 -0000)]
ldso: allow undefined references to weak symbols
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Carmelo Amoroso [Mon, 29 Sep 2008 11:58:15 +0000 (11:58 -0000)]
libdl: use stderr consistently.
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Carmelo Amoroso [Mon, 29 Sep 2008 11:56:03 +0000 (11:56 -0000)]
ldso: do not use hard-coded fd in _dl_dprintf. Use dl_debug_file consinstently.
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Bernhard Reutner-Fischer [Mon, 29 Sep 2008 11:36:48 +0000 (11:36 -0000)]
- now passes all LTP tests
Carmelo Amoroso [Mon, 29 Sep 2008 08:51:31 +0000 (08:51 -0000)]
i18n: Fix mbrtowc function to handle 0xc0 and 0xc1 sequence.
When the first byte of the multibyte sequence start with 0xc0
or 0xc1, the whole sequence is invalid, so the return value must
be -1 (instead of -2).
Fix bug #686.
Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com>
Acked-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Bernhard Reutner-Fischer [Mon, 29 Sep 2008 08:16:51 +0000 (08:16 -0000)]
- fix ISO C keywords
Denis Vlasenko [Sat, 27 Sep 2008 23:38:26 +0000 (23:38 -0000)]
getgrouplist(): ...add files which I forgot to add.
Denis Vlasenko [Sat, 27 Sep 2008 23:36:50 +0000 (23:36 -0000)]
implement getgrouplist()
Rob Landley [Sat, 27 Sep 2008 22:00:34 +0000 (22:00 -0000)]
Dependencies tweak: make install should depend on all, or
"make -j 3 all install" can't work without two separate invocations of make.
Mike Frysinger [Fri, 26 Sep 2008 23:54:59 +0000 (23:54 -0000)]
use __UCLIBC_HAS_STUBS__
Bernhard Reutner-Fischer [Fri, 26 Sep 2008 15:33:27 +0000 (15:33 -0000)]
- revert r23469. If gnu getopt is disabled, then there is no getopt.h.
In these cases the getopt stuff comes from unistd.h (which includes bits/getopt.h for us)
Bernhard Reutner-Fischer [Fri, 26 Sep 2008 14:50:16 +0000 (14:50 -0000)]
- move libm_hidden_proto to the corresponding headers. Remove from callsites.
Note that gamma_r is not provided by glibc, perhaps add a SUN specific knob later
Bernhard Reutner-Fischer [Fri, 26 Sep 2008 14:46:41 +0000 (14:46 -0000)]
- remove all *_hidden_proto(...) on install_headers
Peter Kjellerstedt [Fri, 26 Sep 2008 14:37:08 +0000 (14:37 -0000)]
Rebased the memcpy() and memset() implementations for CRIS on the versions
found in newlib rather than the ones found in glibc. This should make them
smaller and (hopefully) make them compile with newer versions of gcc.
Peter Kjellerstedt [Fri, 26 Sep 2008 14:00:26 +0000 (14:00 -0000)]
Correct _init()/_fini() for CRISv32 as suggested by Stefan de Konink.
Bernhard Reutner-Fischer [Fri, 26 Sep 2008 08:05:23 +0000 (08:05 -0000)]
- revert inappropriate part of r23478
Bernhard Reutner-Fischer [Thu, 25 Sep 2008 19:07:18 +0000 (19:07 -0000)]
- add some more math functions (patch from gentoo/solar)
Bernhard Reutner-Fischer [Thu, 25 Sep 2008 18:57:11 +0000 (18:57 -0000)]
- add __ieee754_log2()
Bernhard Reutner-Fischer [Thu, 25 Sep 2008 17:49:20 +0000 (17:49 -0000)]
- fix typo
Bernhard Reutner-Fischer [Thu, 25 Sep 2008 17:43:58 +0000 (17:43 -0000)]
- remove files that are not either LGPL or Public Domain.
- pull replacement funcs for fpmacros.c from glibc
This removes the powerpc/classic implementation which did not state any
license but read:
Copyright © 1991 Apple Computer, Inc. All rights reserved.
and thus was dubious (and not needed).
Bernhard Reutner-Fischer [Thu, 25 Sep 2008 16:12:29 +0000 (16:12 -0000)]
- cast both times to double for consistency
Bernhard Reutner-Fischer [Thu, 25 Sep 2008 15:07:27 +0000 (15:07 -0000)]
- add CONFIG_MIPS_ISA_MIPS32R2 (Julian Brown)
Bernhard Reutner-Fischer [Thu, 25 Sep 2008 14:36:11 +0000 (14:36 -0000)]
- also clean .oS
Bernhard Reutner-Fischer [Thu, 25 Sep 2008 13:56:40 +0000 (13:56 -0000)]
- disable gettext support in obstack.
In function `print_and_abort':
obstack.c:(.text.print_and_abort+0x1b): undefined reference to `__dcgettext'
Bernhard Reutner-Fischer [Thu, 25 Sep 2008 13:55:14 +0000 (13:55 -0000)]
- add prototypes
Bernhard Reutner-Fischer [Thu, 25 Sep 2008 13:23:05 +0000 (13:23 -0000)]
- fix compilation of legacy mode
Bernhard Reutner-Fischer [Thu, 25 Sep 2008 13:04:05 +0000 (13:04 -0000)]
- add missing hidden_def
Bernhard Reutner-Fischer [Thu, 25 Sep 2008 12:59:13 +0000 (12:59 -0000)]
- fix !LFS case for i386
Bernhard Reutner-Fischer [Thu, 25 Sep 2008 12:51:24 +0000 (12:51 -0000)]
- RPC support currently requires either IPv4 and/or IPv6 support
Bernhard Reutner-Fischer [Thu, 25 Sep 2008 12:23:21 +0000 (12:23 -0000)]
- if we only have socket support then there is no resolver state:
In function `__pthread_reset_main_thread': undefined reference to `_res'
Bernhard Reutner-Fischer [Thu, 25 Sep 2008 11:48:42 +0000 (11:48 -0000)]
- add missing dependency on lt_defines.h
- retry with some different locale if en_US happens not to be there
Bernhard Reutner-Fischer [Thu, 25 Sep 2008 09:13:21 +0000 (09:13 -0000)]
- expand documentation
Bernhard Reutner-Fischer [Thu, 25 Sep 2008 09:03:14 +0000 (09:03 -0000)]
- adjust helptext
Bernhard Reutner-Fischer [Thu, 25 Sep 2008 08:50:56 +0000 (08:50 -0000)]
- arm eabi needs __UCLIBC_TRUNCATE64_HAS_4_ARGS__
(75_all_uClibc-arm-ftruncate64.patch from gentoo)
Bernhard Reutner-Fischer [Thu, 25 Sep 2008 08:35:20 +0000 (08:35 -0000)]
- ARMV5 can use STRD and LDRD access instructions but these accesses need to be
8 byte aligned. The dynamic linker's malloc needs to match this so structures
become 8 byte aligned to void unaligned accesses.
(71_all_uClibc-arm_fix_alignment.patch from gentoo)
Carmelo Amoroso [Thu, 25 Sep 2008 06:58:20 +0000 (06:58 -0000)]
sh: Fix SYSCALL_INST_STRx to work for SH-2[A] core by using the
__SH_SYSCALL_TRAP_BASE macro.
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Carmelo Amoroso [Thu, 25 Sep 2008 06:38:21 +0000 (06:38 -0000)]
Add globally __stringify macro in libc-symbols.h.
Remove all other duplicated definitions.
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Mike Frysinger [Thu, 25 Sep 2008 01:21:34 +0000 (01:21 -0000)]
delete/init module functions are not 2.4 specific
Bernhard Reutner-Fischer [Wed, 24 Sep 2008 16:31:29 +0000 (16:31 -0000)]
- only compile them if the respective syscalls are available
Bernhard Reutner-Fischer [Wed, 24 Sep 2008 16:15:01 +0000 (16:15 -0000)]
- silence warning about possibly undefined preprocessor token
Bernhard Reutner-Fischer [Wed, 24 Sep 2008 15:30:59 +0000 (15:30 -0000)]
- Fix arguments to compare function. Closes #1081
Bernhard Reutner-Fischer [Wed, 24 Sep 2008 15:19:14 +0000 (15:19 -0000)]
- remove debug cruft
Bernhard Reutner-Fischer [Wed, 24 Sep 2008 15:17:12 +0000 (15:17 -0000)]
- deal with ARM specific syscalls. Closes #2894
Bernhard Reutner-Fischer [Wed, 24 Sep 2008 14:45:57 +0000 (14:45 -0000)]
- both getopt gnu and susv3 want {bits/,}getopt.h installed. Closes #1297
Bernhard Reutner-Fischer [Wed, 24 Sep 2008 11:57:47 +0000 (11:57 -0000)]
- do not segfault if we end up with empty tables
- silence some warnings while at it
Paul Mundt [Wed, 24 Sep 2008 10:49:32 +0000 (10:49 -0000)]
Use __SH_SYSCALL_TRAP_BASE for pthread vfork trap, as it will
change depending on ABI.
Carmelo Amoroso [Tue, 23 Sep 2008 15:07:43 +0000 (15:07 -0000)]
ldso: removed dead code.
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Carmelo Amoroso [Mon, 22 Sep 2008 13:16:55 +0000 (13:16 -0000)]
Add work-around for powerpc.
Do noy use syscall wrapper based on INTERNAL_SYSCALL.
A proper fix would require an arch specific implementation.
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Paul Mundt [Sun, 21 Sep 2008 05:08:59 +0000 (05:08 -0000)]
Fix up memset() argument ordering in open_memstream(). Previously
parts of the buffers were not being zeroed out as expected. Reported
by Dmytro Gorbunov <dmitro.gorbunov@gmail.com>.
Bernhard Reutner-Fischer [Fri, 19 Sep 2008 19:45:45 +0000 (19:45 -0000)]
- fix for r23427. Thanks to psm for mentioning this and sorry for the breakage
Bernhard Reutner-Fischer [Fri, 19 Sep 2008 19:43:57 +0000 (19:43 -0000)]
- add posix_fadvise. Not yet tested most likely broken in advise64
Bernhard Reutner-Fischer [Fri, 19 Sep 2008 10:31:02 +0000 (10:31 -0000)]
- take LFS into account and add fallback via fadvise64
Bernhard Reutner-Fischer [Fri, 19 Sep 2008 09:54:32 +0000 (09:54 -0000)]
- posix_fadvise64 for i386
Carmelo Amoroso [Thu, 18 Sep 2008 15:10:12 +0000 (15:10 -0000)]
Use __always_inline for _dl_gettimeofday as well.
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Carmelo Amoroso [Thu, 18 Sep 2008 15:06:24 +0000 (15:06 -0000)]
Fix posix_fadvise[64] functions to return the error number in case
of failure instead of -1 and setting errno, according to SuSv3
(IEEE Std 1003.1 2004 edition) specification.
Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com>
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Bernhard Reutner-Fischer [Thu, 18 Sep 2008 12:08:55 +0000 (12:08 -0000)]
- remove non stdc path (old style definitions). No obj-code changes
Bernhard Reutner-Fischer [Thu, 18 Sep 2008 12:03:40 +0000 (12:03 -0000)]
- exec_comm_child can not return ever
Hans-Christian Egtvedt [Wed, 17 Sep 2008 11:45:37 +0000 (11:45 -0000)]
avr32: add defines and prototype function for sync_file_range syscall
This patch adds the needed defines and function prototype for the
sync_file_range syscall on AVR32 architecture.
Signed-off-by: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>