OSDN Git Service
Denis Vlasenko [Mon, 1 Dec 2008 09:43:37 +0000 (09:43 -0000)]
random: use smaller data fields where appropriate
text data bss dec hex filename
- 130 156 0 286 11e libc/stdlib/random.o
+ 130 148 0 278 116 libc/stdlib/random.o
- 586 0 0 586 24a libc/stdlib/random_r.o
+ 570 0 0 570 23a libc/stdlib/random_r.o
Denis Vlasenko [Mon, 1 Dec 2008 09:41:41 +0000 (09:41 -0000)]
gethostbyname can use gethostbyname2, saving one nearly 0.5k static buffer
text data bss dec hex filename
- 45 0 480 525 20d libc/inet/gethostbyname.o
+ 18 0 0 18 12 libc/inet/gethostbyname.o
Denis Vlasenko [Mon, 1 Dec 2008 08:40:30 +0000 (08:40 -0000)]
rpc: should check against max for int32, not int
Denis Vlasenko [Mon, 1 Dec 2008 08:37:27 +0000 (08:37 -0000)]
rpc: ifdef out xdrrec_{get,put}long if int32 == long,
otherwise use xdrrec_{get,put}int32 + trivial transform.
eliminate warnings.
des: small shrink + eliminate a warning
Denis Vlasenko [Sat, 29 Nov 2008 21:45:14 +0000 (21:45 -0000)]
add libc_hidden_proto(__cmsg_nxthdr) for mips
Denis Vlasenko [Sat, 29 Nov 2008 21:24:21 +0000 (21:24 -0000)]
fix improperly hidden fputc_unlocked
Denis Vlasenko [Sat, 29 Nov 2008 20:45:56 +0000 (20:45 -0000)]
fix improperly hidden fwprintf.
make two data objects static.
text data bss dec hex filename
- 274779 1835 19012 295626 482ca lib/libuClibc-0.9.30-svn.so
+ 274693 1835 19012 295540 48274 lib/libuClibc-0.9.30-svn.so
Denis Vlasenko [Sat, 29 Nov 2008 16:46:07 +0000 (16:46 -0000)]
shring sugnal-relared stuff a bit. BTW why constant memset is not inlined by gcc?
text data bss dec hex filename
- 38015 18096 8636 64747 fceb lib/libpthread-0.9.30-svn.so
+ 38001 18096 8636 64733 fcdd lib/libpthread-0.9.30-svn.so
- 274842 1835 19012 295689 48309 lib/libuClibc-0.9.30-svn.so
+ 274779 1835 19012 295626 482ca lib/libuClibc-0.9.30-svn.so
Denis Vlasenko [Sat, 29 Nov 2008 15:35:51 +0000 (15:35 -0000)]
reduce sigset_t size for 128 bytes to 64 bits:
text data bss dec hex filename
- 38457 18352 8636 65445 ffa5 lib/libpthread-0.9.30-svn.so
+ 38015 18096 8636 64747 fceb lib/libpthread-0.9.30-svn.so
- 8205 280 12 8497 2131 lib/libthread_db-0.9.30-svn.so
+ 8193 280 12 8485 2125 lib/libthread_db-0.9.30-svn.so
- 275208 1823 19132 296163 484e3 lib/libuClibc-0.9.30-svn.so
+ 274787 1823 19012 295622 482c6 lib/libuClibc-0.9.30-svn.so
Carmelo Amoroso [Thu, 27 Nov 2008 14:52:15 +0000 (14:52 -0000)]
Make __UCLIBC_HAVE_ASM_CFI_DIRECTIVES__ visible in case the arch
supports this feature. SH4 will use this in some aseembly files
for the NPTL implementation. Add now safely on trunk.
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Bernhard Reutner-Fischer [Thu, 27 Nov 2008 14:17:13 +0000 (14:17 -0000)]
- make isascii visible again
TODO: *_l() should go
Carmelo Amoroso [Wed, 26 Nov 2008 15:12:16 +0000 (15:12 -0000)]
This patch fixes locale-mbwc test failures when __UCLIBC_HAS_LOCALE__ is
disabled and __UCLIBC_HAS_WCHAR__ is enabled. The only locale available
when __UCLIBC_HAS_LOCALE__ is disabled is the C locale, the others locale
are skipped.
Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com>
Bernhard Reutner-Fischer [Wed, 26 Nov 2008 09:24:33 +0000 (09:24 -0000)]
- remove fstatfs() and statfs() related headers upon request
Bernhard Reutner-Fischer [Wed, 26 Nov 2008 08:41:09 +0000 (08:41 -0000)]
- revert 24148:24151
Denis Vlasenko [Wed, 26 Nov 2008 01:21:10 +0000 (01:21 -0000)]
libc/string: need additional work to remove libc_hidden_proto's properly
Bernhard Reutner-Fischer [Tue, 25 Nov 2008 16:27:39 +0000 (16:27 -0000)]
- hide locks
Bernhard Reutner-Fischer [Tue, 25 Nov 2008 16:27:07 +0000 (16:27 -0000)]
- remove some bloat that was added in r23660 and subsequent r23698.
The sbrk lock is only needed for LT.old
Bernhard Reutner-Fischer [Tue, 25 Nov 2008 15:52:24 +0000 (15:52 -0000)]
- hide some time related relocs
Carmelo Amoroso [Tue, 25 Nov 2008 14:37:24 +0000 (14:37 -0000)]
Make wcsxfrm visible also when LOCALE support is disabled.
Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com>
Bernhard Reutner-Fischer [Tue, 25 Nov 2008 13:56:17 +0000 (13:56 -0000)]
- hide __libc_{f,}statfs. Thanks to Peter S. Mazinger for mentioning this fact.
Bernhard Reutner-Fischer [Tue, 25 Nov 2008 13:36:26 +0000 (13:36 -0000)]
- cosmetic tidy up of clean target
Bernhard Reutner-Fischer [Tue, 25 Nov 2008 12:59:16 +0000 (12:59 -0000)]
- cosmetic tidy up of clean target
Bernhard Reutner-Fischer [Tue, 25 Nov 2008 12:31:20 +0000 (12:31 -0000)]
- make sure isspace() is exported.
Thanks to Skinkie for noticing.
Bernhard Reutner-Fischer [Tue, 25 Nov 2008 12:26:42 +0000 (12:26 -0000)]
- Fix thumb2 PIE (Joseph S. Myers)
This patch fixes position-independent executables (PIEs) for Thumb-2. In
Thumb assembly, instructions reading pc give a value 4 greater than the
address of the instruction, rather than 8 greater as in ARM mode, so the
offset to the GOT needs to have the right offset. (The Thumb-1 code
already gets this right; it's the code shared by ARM and Thumb-2 that
needs fixing.)
Bernhard Reutner-Fischer [Sun, 23 Nov 2008 21:11:27 +0000 (21:11 -0000)]
- fix args (untested)
Denis Vlasenko [Sat, 22 Nov 2008 17:15:56 +0000 (17:15 -0000)]
signal ops: avoid calls through PLT for __sigXXX ops
linuxthreads.old/manager: pointless style fixes, no code changes
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