OSDN Git Service

uclinux-h8/uclibc-ng.git
15 years agolibm_sh: Re-added sh specific files erroneously removed recently,
Carmelo Amoroso [Wed, 14 Jan 2009 12:49:24 +0000 (12:49 -0000)]
libm_sh: Re-added sh specific files erroneously removed recently,
and moved under a better folder.

Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
15 years agoldso: do not comment out unused variables, just delete it.
Carmelo Amoroso [Mon, 12 Jan 2009 17:01:58 +0000 (17:01 -0000)]
ldso: do not comment out unused variables, just delete it.

SIgned-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
15 years ago- fixup incomplete r24515 (fix redefinitions of posix_types for i386->x86_64 with...
Bernhard Reutner-Fischer [Mon, 12 Jan 2009 15:07:42 +0000 (15:07 -0000)]
- fixup incomplete r24515 (fix redefinitions of posix_types for i386->x86_64 with linux >= 2.6.28)

15 years ago- fix typo in r24594
Bernhard Reutner-Fischer [Mon, 12 Jan 2009 08:32:46 +0000 (08:32 -0000)]
- fix typo in r24594

15 years agoutils/Makefile.in: de-obfuscate it a bit
Denis Vlasenko [Sun, 11 Jan 2009 22:11:29 +0000 (22:11 -0000)]
utils/Makefile.in: de-obfuscate it a bit
Rules.mak: use -Os, not -O2

15 years agoreplace yet another _dl_malloc + _dl_memset with _dl_zalloc
Denis Vlasenko [Sun, 11 Jan 2009 18:56:38 +0000 (18:56 -0000)]
replace yet another _dl_malloc + _dl_memset with _dl_zalloc

15 years agosimple optimizations and style fixes in dynamic loading
Denis Vlasenko [Sat, 10 Jan 2009 21:02:48 +0000 (21:02 -0000)]
simple optimizations and style fixes in dynamic loading

    text           data     bss     dec     hex filename
-  16709            240      92   17041    4291 lib/ld-uClibc.so
+  16634            236      92   16962    4242 lib/ld-uClibc.so
-   4602            344       4    4950    1356 lib/libdl-0.9.30-svn.so
+   4571            328       4    4903    1327 lib/libdl-0.9.30-svn.so
-   4602            344       4    4950    1356 lib/libdl.so
+   4571            328       4    4903    1327 lib/libdl.so

15 years agolibc/signal/sigaction.c: s/!=/==/
Denis Vlasenko [Sat, 10 Jan 2009 18:49:32 +0000 (18:49 -0000)]
libc/signal/sigaction.c: s/!=/==/

15 years agoSilent compiler warning regarding undefined macro
Carmelo Amoroso [Thu, 8 Jan 2009 11:11:26 +0000 (11:11 -0000)]
Silent compiler warning regarding undefined macro

15 years agoldso/ldso/dl-startup.c: make _dl_elf_main static; remove one dead variable.
Denis Vlasenko [Sun, 4 Jan 2009 21:19:43 +0000 (21:19 -0000)]
ldso/ldso/dl-startup.c: make _dl_elf_main static; remove one dead variable.
ldso/ldso/avr32/dl-startup.h: remove superfluous definition of START() macro.
ldso/ldso/*/dl-startup.h: fix a typo in comment

    text           data     bss     dec     hex filename
-  16752            244      92   17088    42c0 lib/ld-uClibc.so
+  16709            240      92   17041    4291 lib/ld-uClibc.so

15 years agoforgot to remove one #endif...
Denis Vlasenko [Sun, 4 Jan 2009 21:12:23 +0000 (21:12 -0000)]
forgot to remove one #endif...

15 years agoGet rid of the following annoying warnings on ppc:
Denis Vlasenko [Sat, 3 Jan 2009 15:05:20 +0000 (15:05 -0000)]
Get rid of the following annoying warnings on ppc:
 warning: nested extern declaration of '__illegally_sized_syscall_argN'
 From Stefan Assmann (sassmann AT suse.de)

15 years agolibm/e_scalb.c: remove unused #ifdef _SCALB_INT branches
Denis Vlasenko [Sat, 3 Jan 2009 14:42:54 +0000 (14:42 -0000)]
libm/e_scalb.c: remove unused #ifdef _SCALB_INT branches
libm/s_ldexp.c: add TODO

15 years agofix small goof in last commit: should use "long" function (scalbln)
Denis Vlasenko [Sat, 3 Jan 2009 13:58:09 +0000 (13:58 -0000)]
fix small goof in last commit: should use "long" function (scalbln)
as a main one, not "int" one (scalbn).

15 years agolibm: remove scalbln implementation, it seems to be less correct than scalbn.
Denis Vlasenko [Sat, 3 Jan 2009 13:51:12 +0000 (13:51 -0000)]
libm: remove scalbln implementation, it seems to be less correct than scalbn.
 instead, either alias scalbln to scalbn if int == long on this arch, or
 just call scalbn form scalbln.

    text           data     bss     dec     hex filename
-  45297            180       4   45481    b1a9 lib/libm.so
+  44969            180       4   45153    b061 lib/libm.so

15 years agoMerge some pre-work from branch, needed by NPTL.
Khem Raj [Wed, 31 Dec 2008 00:31:38 +0000 (00:31 -0000)]
Merge some pre-work from branch, needed by NPTL.

15 years agolibm/e_lgamma_r.c: cosmetic whitespace fixes
Denis Vlasenko [Mon, 29 Dec 2008 16:03:34 +0000 (16:03 -0000)]
libm/e_lgamma_r.c: cosmetic whitespace fixes

15 years agolibm/*: delete many incarnations of logarithmic gamma function,
Denis Vlasenko [Mon, 29 Dec 2008 16:00:21 +0000 (16:00 -0000)]
libm/*: delete many incarnations of logarithmic gamma function,
 aliasing them instead af appropriate. Also alias drem to remainder.

    text           data     bss     dec     hex filename
-  43568            176       4   43748    aae4 lib/libm.so
+  43444            176       4   43624    aa68 lib/libm.so

15 years agolibc/stdlib/_strtod.c: add parens around a | b
Denis Vlasenko [Mon, 29 Dec 2008 15:56:22 +0000 (15:56 -0000)]
libc/stdlib/_strtod.c: add parens around a | b

15 years ago- whitespace cleanup; no obj-code changes
Bernhard Reutner-Fischer [Mon, 29 Dec 2008 15:06:30 +0000 (15:06 -0000)]
- whitespace cleanup; no obj-code changes

15 years agolibm/s_nearbyint.c: delete (forgot to do it in prev commit)
Denis Vlasenko [Mon, 29 Dec 2008 14:53:27 +0000 (14:53 -0000)]
libm/s_nearbyint.c: delete (forgot to do it in prev commit)
libm/*.c: minor style tweaks, no code changes

15 years ago- ethers only make sense if we want to play with ethernet addresses
Bernhard Reutner-Fischer [Mon, 29 Dec 2008 14:09:28 +0000 (14:09 -0000)]
- ethers only make sense if we want to play with ethernet addresses
  as in /etc/ethers (man 5 ethers)
  Assume that any of socket- or IP support indicate that need.

15 years ago- expand SUSv3_LEGACY
Bernhard Reutner-Fischer [Mon, 29 Dec 2008 13:55:44 +0000 (13:55 -0000)]
- expand SUSv3_LEGACY
- SUSv4_LEGACY part #1 (non-networking)

15 years ago- pthread_attr_{g,s}etstacksize would depend on SUSv3 legacy but are not
Bernhard Reutner-Fischer [Mon, 29 Dec 2008 13:44:44 +0000 (13:44 -0000)]
- pthread_attr_{g,s}etstacksize would depend on SUSv3 legacy but are not
  implemented anyway.

15 years agoremove many functions which just call __ieee754_<function>,
Denis Vlasenko [Sun, 28 Dec 2008 22:15:07 +0000 (22:15 -0000)]
remove many functions which just call __ieee754_<function>,
define them as aliases instead.

    text           data     bss     dec     hex filename
-  45402            180       4   45586    b212 lib/libm-0.9.30-svn.so
+  45302            180       4   45486    b1ae lib/libm-0.9.30-svn.so

15 years agofix another corner case in unifdef
Denis Vlasenko [Sun, 28 Dec 2008 12:06:04 +0000 (12:06 -0000)]
fix another corner case in unifdef

15 years agopatch up unifdef to recognize and remove "#if defined _LIBC && something"
Denis Vlasenko [Sun, 28 Dec 2008 11:48:01 +0000 (11:48 -0000)]
patch up unifdef to recognize and remove "#if defined _LIBC && something"
blocks too (and similar)

15 years agoHelp unifdef to remove private parts of headers
Denis Vlasenko [Sat, 27 Dec 2008 11:01:17 +0000 (11:01 -0000)]
Help unifdef to remove private parts of headers

15 years agoctype: remove some trivial macros from ctype.h;
Denis Vlasenko [Sat, 27 Dec 2008 10:19:19 +0000 (10:19 -0000)]
ctype: remove some trivial macros from ctype.h;
 remove __tolower and __toupper (they existed only in SOME configs!);
 remove usages of _tolower (some of them clearly buggy) from uclibc code;
 add a few more -U<define> options to unifdef pass over installed headers;
 document it on docs/wchar_and_locale.txt

    text           data     bss     dec     hex filename
- 514963           2727   15396  533086   8225e lib/libuClibc-0.9.30-svn.so
+ 514888           2727   15396  533011   82213 lib/libuClibc-0.9.30-svn.so

15 years agoconvert yet another old-style function definition
Denis Vlasenko [Fri, 26 Dec 2008 19:08:45 +0000 (19:08 -0000)]
convert yet another old-style function definition

15 years agonew regex: stop confusing ourself with _LIBC being undefined;
Denis Vlasenko [Fri, 26 Dec 2008 17:18:43 +0000 (17:18 -0000)]
new regex: stop confusing ourself with _LIBC being undefined;
 nuke one struct initializer which was invisibly becoming a memset -
 this improves speed by x2:

 test 0 pattern 0 '.?.?.?.?.?.?.?Log\.13'
- 0.249795s
+ 0.133522s
 test 0 pattern 1 '(.?)(.?)(.?)(.?)(.?)(.?)(.?)Log\.13'
- 0.360115s
+ 0.191959s

    text           data     bss     dec     hex filename
- 515009           2731   15396  533136   82290 lib/libuClibc-0.9.30-svn.so
+ 514961           2727   15396  533084   8225c lib/libuClibc-0.9.30-svn.so

15 years agoregex: remove useless casts on allocations;
Denis Vlasenko [Fri, 26 Dec 2008 16:09:46 +0000 (16:09 -0000)]
regex: remove useless casts on allocations;
 remove old-style-C function params declarations;
 change re_comp_buf from struct to pointer (more static build friendly)

    text           data     bss     dec     hex filename
- 514952           2731   15424  533107   82273 lib/libuClibc-0.9.30-svn.so
+ 515011           2731   15396  533138   82292 lib/libuClibc-0.9.30-svn.so

15 years agoregex: drop __<funcname> aliases. remove much of unused code.
Denis Vlasenko [Fri, 26 Dec 2008 04:25:09 +0000 (04:25 -0000)]
regex: drop __<funcname> aliases. remove much of unused code.
shrink offset tables. disable "likely/unlikely" BE() macro.

    text           data     bss     dec     hex filename
- 515032           2731   15424  533187   822c3 lib/libuClibc-0.9.30-svn.so
+ 515014           2731   15424  533169   822b1 lib/libuClibc-0.9.30-svn.so

15 years agoinclude/libc-string_i386.h: fix a bug where memset('\xff') misbehaves
Denis Vlasenko [Fri, 26 Dec 2008 02:50:13 +0000 (02:50 -0000)]
include/libc-string_i386.h: fix a bug where memset('\xff') misbehaves
Rules.mak: add -funsigned-char, to forestall future PITA

15 years agodocument internal_function
Denis Vlasenko [Thu, 25 Dec 2008 19:26:09 +0000 (19:26 -0000)]
document internal_function

15 years agotest/regex/tst-regexloc.c: include ok/bad indicator in the message
Denis Vlasenko [Thu, 25 Dec 2008 18:03:40 +0000 (18:03 -0000)]
test/regex/tst-regexloc.c: include ok/bad indicator in the message
test/regex/tst-regex2.c: do not exit at the first error

15 years agotest/regex/tst-regex2.c: fix the rest of testsuite failures
Denis Vlasenko [Thu, 25 Dec 2008 03:33:41 +0000 (03:33 -0000)]
test/regex/tst-regex2.c: fix the rest of testsuite failures

15 years agotest/regex/tst-regex2.c: fix test failure. Next one is immediately after...
Denis Vlasenko [Thu, 25 Dec 2008 01:17:58 +0000 (01:17 -0000)]
test/regex/tst-regex2.c: fix test failure. Next one is immediately after...

 test 2 pattern 0 '.?.?.?.?.?.?.?Log\.13'
-incorrect num_regs 30, expected 2
+ 1.283480s
+test 2 pattern 1 '(.?)(.?)(.?)(.?)(.?)(.?)(.?)Log\.13'
+ 3.429810s
+test 2 pattern 2 '((((((((((.?))))))))))((((((((((.?))))))))))....'
+incorrect num_regs 30, expected 72

15 years agotest/regex: make it faster to rebuild and run regex testcase
Denis Vlasenko [Wed, 24 Dec 2008 22:46:06 +0000 (22:46 -0000)]
test/regex: make it faster to rebuild and run regex testcase

15 years agorename test file
Denis Vlasenko [Wed, 24 Dec 2008 22:01:03 +0000 (22:01 -0000)]
rename test file

15 years agotest/Makefile: make "make compile" install headers first
Denis Vlasenko [Wed, 24 Dec 2008 21:58:57 +0000 (21:58 -0000)]
test/Makefile: make "make compile" install headers first
test/regex/Makefile: remove superfluous oprions
test/regex/tst-regex2.c: reformat, simplify, and make error messages
 more informative
test/test-skeleton.c: kill child test process on ^C

15 years agolibc/sysdeps/linux/hppa/bits/signum.h: _NSIG == 65 is the common value,
Denis Vlasenko [Tue, 23 Dec 2008 11:00:30 +0000 (11:00 -0000)]
libc/sysdeps/linux/hppa/bits/signum.h: _NSIG == 65 is the common value,
 no need to define it here

15 years agoThese defines needs to be considered after recent linux kernel combined i386 and...
Khem Raj [Tue, 23 Dec 2008 09:04:50 +0000 (09:04 -0000)]
These defines needs to be considered after recent linux kernel combined i386 and x86_64 into x86

15 years ago- mark capset() as linux specific
Bernhard Reutner-Fischer [Mon, 22 Dec 2008 20:18:56 +0000 (20:18 -0000)]
- mark capset() as linux specific

15 years ago- capget() is linux specific; Sync helptext with current exclude list.
Bernhard Reutner-Fischer [Mon, 22 Dec 2008 19:16:14 +0000 (19:16 -0000)]
- capget() is linux specific; Sync helptext with current exclude list.

15 years ago- remove leftover from r13277
Bernhard Reutner-Fischer [Mon, 22 Dec 2008 19:01:38 +0000 (19:01 -0000)]
- remove leftover from r13277

15 years ago- fix for !GETOPT_LONG
Bernhard Reutner-Fischer [Mon, 22 Dec 2008 18:17:37 +0000 (18:17 -0000)]
- fix for !GETOPT_LONG

15 years agolibm/*: mass removal of:
Denis Vlasenko [Mon, 22 Dec 2008 15:58:54 +0000 (15:58 -0000)]
libm/*: mass removal of:

1. static char rcsid[] = "$NetBSD: ..."
2. /* @(#)s_scalbn.c 5.1 93/09/24 */
3. #ifdef __STDC__

No code changes (verified with objdump)

15 years agoextra/locale/gen_wctype.c: remove __CTYPE_isalnum and friends;
Denis Vlasenko [Mon, 22 Dec 2008 14:51:20 +0000 (14:51 -0000)]
extra/locale/gen_wctype.c: remove __CTYPE_isalnum and friends;
 stop using macros with hidden parameter - that's evil;
 reformat broken indenting (it was not matching the number of {}s);
 fix format warnings (int vs size_t vs long)

No code changes (verified with objdump)

15 years agoUCLIBC_CTYPE_HEADER define is removed, as it always
Denis Vlasenko [Mon, 22 Dec 2008 13:51:28 +0000 (13:51 -0000)]
UCLIBC_CTYPE_HEADER define is removed, as it always
equal to "include/bits/uClibc_ctype.h"

__CTYPE_unclassified and other similar __CTYPE_xxxx
constants are moved to separate include file,
bits/uClibc_charclass.h

Duplicate declaration of these constants is
removed from libc/misc/wctype/_wctype.c

Ugly re-inclusion trick in extra/locale/gen_wctype.c deleted

Large ifdefed-out chunk in extra/locale/gen_wctype.c removed

Move __CTYPE_isalnum() etc macros from uClibc_ctype.h
to their single user, extra/locale/gen_wctype.c
(can be simplified further)

Overall, no code changes (verified with objdump)

15 years ago- remove whitespace
Bernhard Reutner-Fischer [Mon, 22 Dec 2008 11:53:33 +0000 (11:53 -0000)]
- remove whitespace

15 years ago- fix fpclassify, signbit, isfinite, isnan, isinf macros for long double math support
Bernhard Reutner-Fischer [Mon, 22 Dec 2008 11:31:12 +0000 (11:31 -0000)]
- fix fpclassify, signbit, isfinite, isnan, isinf macros for long double math support
- add rule to create preprocessor output for float- and long double math wrapper

15 years agoadd new file to docs/
Denis Vlasenko [Mon, 22 Dec 2008 11:27:14 +0000 (11:27 -0000)]
add new file to docs/

15 years agoremove stray comment (the identical one is just a few lines down)
Denis Vlasenko [Mon, 22 Dec 2008 10:15:27 +0000 (10:15 -0000)]
remove stray comment (the identical one is just a few lines down)

15 years ago- non-pic support for MIPS (Catherine Moore, clm at codesourcery com)
Bernhard Reutner-Fischer [Mon, 22 Dec 2008 09:58:25 +0000 (09:58 -0000)]
- non-pic support for MIPS (Catherine Moore, clm at codesourcery com)

15 years agoRemove unused macros
Denis Vlasenko [Mon, 22 Dec 2008 04:20:11 +0000 (04:20 -0000)]
Remove unused macros

15 years agodocs/defines.txt: document _extern_inline
Denis Vlasenko [Mon, 22 Dec 2008 01:01:40 +0000 (01:01 -0000)]
docs/defines.txt: document _extern_inline
libc/inet/ether_addr.c: optimize tolower, we ever use it on 0-9a-f
libc/inet/ntop.c: optimize tolower, we ever use it on 0-9a-f
 with locale support on, code size change is:

    text           data     bss     dec     hex filename
-    396              0      24     420     1a4 libc/inet/ether_addr.os
+    306              0      24     330     14a libc/inet/ether_addr.os
-   1453              0       0    1453     5ad libc/inet/ntop.os
+   1430              0       0    1430     596 libc/inet/ntop.os

15 years agomore of warning fixes, mostly pointer signedness mismatches
Denis Vlasenko [Sun, 21 Dec 2008 14:50:55 +0000 (14:50 -0000)]
more of warning fixes, mostly pointer signedness mismatches

15 years agomore of pointer signedness warnings removed
Denis Vlasenko [Sun, 21 Dec 2008 14:12:08 +0000 (14:12 -0000)]
more of pointer signedness warnings removed

15 years agoheed multiple warnings of the type
Denis Vlasenko [Sun, 21 Dec 2008 13:27:02 +0000 (13:27 -0000)]
heed multiple warnings of the type
 libc/stdio/_vfprintf.c:1892: warning: passing argument 1
 of '_[w]stdio_fwrite' from incompatible pointer type

15 years agolibc/stdio/_scanf.c: heed lots of warnings about signed/unsigned chars
Denis Vlasenko [Sat, 20 Dec 2008 17:35:25 +0000 (17:35 -0000)]
libc/stdio/_scanf.c: heed lots of warnings about signed/unsigned chars
 and such; remove two unneeded static string (inline "str" works better
 code-size wise).

15 years agoextra/locale/locale_mmap.h: fix broken whitespace
Denis Vlasenko [Sat, 20 Dec 2008 16:54:46 +0000 (16:54 -0000)]
extra/locale/locale_mmap.h: fix broken whitespace

15 years agolibc/misc/locale/locale.c: heed a pile of warnings
Denis Vlasenko [Sat, 20 Dec 2008 16:33:54 +0000 (16:33 -0000)]
libc/misc/locale/locale.c: heed a pile of warnings
 from signed/unsigned char conversions

15 years agolibc/misc/locale/locale.c: remove one unneeded static data,
Denis Vlasenko [Sat, 20 Dec 2008 16:08:45 +0000 (16:08 -0000)]
libc/misc/locale/locale.c: remove one unneeded static data,
 rewrite one exceptionally unreadable loop. Heed a few warnings
 (wrong type for string op params)

    text           data     bss     dec     hex filename
-   1164             16       0    1180     49c libc/misc/locale/newlocale.os
+   1180              0       0    1180     49c libc/misc/locale/newlocale.os
- 494480           2751   15684  512915   7d393 lib/libuClibc-0.9.30-svn.so
+ 494472           2735   15684  512891   7d37b lib/libuClibc-0.9.30-svn.so

15 years agoDeal with a few data fields which may be made constant.
Denis Vlasenko [Sat, 20 Dec 2008 15:25:51 +0000 (15:25 -0000)]
Deal with a few data fields which may be made constant.

    text           data     bss     dec     hex filename
-   1237              9      28    1274     4fa libc/inet/rpc/getrpcent.os
+   1246              0      28    1274     4fa libc/inet/rpc/getrpcent.os
-    773             24       0     797     31d libc/misc/time/_time_localtime_tzi.os
+    772             16       0     788     314 libc/misc/time/_time_localtime_tzi.os

15 years agolibc/string/i386/rawmemchr.c: i386 version, adapted from strlen()
Denis Vlasenko [Sat, 20 Dec 2008 14:34:19 +0000 (14:34 -0000)]
libc/string/i386/rawmemchr.c: i386 version, adapted from strlen()
libc/string/i386/strlen.c: small optimization, same code size)

    text           data     bss     dec     hex filename
- 240449           1759   11960  254168   3e0d8 lib/libuClibc-0.9.30-svn.so
+ 240339           1759   11960  254058   3e06a lib/libuClibc-0.9.30-svn.so

15 years agostring/i386/strncpy.c: fixlet for testing code
Denis Vlasenko [Sat, 20 Dec 2008 01:54:55 +0000 (01:54 -0000)]
string/i386/strncpy.c: fixlet for testing code
string/i386/strchrnul.c: new function, adapted from strchr.c

    text           data     bss     dec     hex filename
- 240604           1759   11960  254323   3e173 lib/libuClibc-0.9.30-svn.so
+ 240449           1759   11960  254168   3e0d8 lib/libuClibc-0.9.30-svn.so

15 years agostring/i386/strncpy: faster i386 version (same code size), testing code
Denis Vlasenko [Sat, 20 Dec 2008 01:34:52 +0000 (01:34 -0000)]
string/i386/strncpy: faster i386 version (same code size), testing code
string/i386/*: formatiing and commentary tidying up

15 years agostrchr: a bit faster version for i386 (same code size)
Denis Vlasenko [Fri, 19 Dec 2008 15:10:25 +0000 (15:10 -0000)]
strchr: a bit faster version for i386 (same code size)

15 years agomemmove: smaller one for i386, with added testing, and with
Denis Vlasenko [Fri, 19 Dec 2008 14:45:51 +0000 (14:45 -0000)]
memmove: smaller one for i386, with added testing, and with
 added check for src == dest. run tested.

    text           data     bss     dec     hex filename
-     39              0       0      39      27 libc/string/i386/memmove.os
+     37              0       0      37      25 libc/string/i386/memmove.os

15 years agostrncat: shorter version for i386, add small embedded test
Denis Vlasenko [Fri, 19 Dec 2008 13:51:38 +0000 (13:51 -0000)]
strncat: shorter version for i386, add small embedded test
memchr: add small embedded test
strnlen: make small embedded test easier to use
strncmp: reformat assembly to make it readable, no code changes
 (verified with objdump)

    text           data     bss     dec     hex filename
-     46              0       0      46      2e libc/string/i386/strncat.os
+     39              0       0      39      27 libc/string/i386/strncat.os

15 years agoremove one forgotten '##'. Heeds:
Denis Vlasenko [Fri, 19 Dec 2008 04:26:16 +0000 (04:26 -0000)]
remove one forgotten '##'. Heeds:
warning: type defaults to 'int' in declaration of 'intfcntl'

15 years agostring/i386: smaller, and hopefully easier to read, strnlen().
Denis Vlasenko [Fri, 19 Dec 2008 00:25:56 +0000 (00:25 -0000)]
string/i386: smaller, and hopefully easier to read, strnlen().

    text           data     bss     dec     hex filename
-     25              0       0      25      19 libc/string/i386/strnlen.os
+     24              0       0      24      18 libc/string/i386/strnlen.os

15 years agofix for build failures resulting from "string ops for i386" change
Denis Vlasenko [Wed, 17 Dec 2008 22:17:17 +0000 (22:17 -0000)]
fix for build failures resulting from "string ops for i386" change

15 years ago- provide INTERNAL_SYSCALL for ia64 (Stefan Assmann, sassmann at suse de)
Bernhard Reutner-Fischer [Wed, 17 Dec 2008 16:01:39 +0000 (16:01 -0000)]
- provide INTERNAL_SYSCALL for ia64 (Stefan Assmann, sassmann at suse de)

15 years agosince gcc -Os hates us and does not inline string ops,
Denis Vlasenko [Wed, 17 Dec 2008 01:36:31 +0000 (01:36 -0000)]
since gcc -Os hates us and does not inline string ops,
implement inline versions of some of them.
Enable only those which result roughly in the same
code size as using out-or-line versions.

None of this affects users, installed headers won't have
any trace of it.

15 years agomemchr: smaller i386 version
Denis Vlasenko [Wed, 17 Dec 2008 01:31:29 +0000 (01:31 -0000)]
memchr: smaller i386 version
strrchr: smaller i386 version

    text           data     bss     dec     hex filename
-     33              0       0      33      21 libc/string/i386/memchr.o
+     28              0       0      28      1c libc/string/i386/memchr.o
-     31              0       0      31      1f libc/string/i386/strrchr.o
+     26              0       0      26      1a libc/string/i386/strrchr.o

15 years agoresolv: fix testcase failure
Denis Vlasenko [Wed, 17 Dec 2008 01:28:36 +0000 (01:28 -0000)]
resolv: fix testcase failure
test/regex/tst-regex2.c: fix testcase to compile with just "gcc <file>.c"

15 years ago- emulate unavailable syscall getpgrp on e.g. ia64 (Stefan Assmann)
Bernhard Reutner-Fischer [Tue, 16 Dec 2008 15:40:15 +0000 (15:40 -0000)]
- emulate unavailable syscall getpgrp on e.g. ia64 (Stefan Assmann)

15 years ago- install utils into the proper directories
Bernhard Reutner-Fischer [Tue, 16 Dec 2008 13:55:57 +0000 (13:55 -0000)]
- install utils into the proper directories

15 years agofix testing "gcc -mpreferred-stack-boundary=2" on x86_64
Denis Vlasenko [Tue, 16 Dec 2008 07:48:29 +0000 (07:48 -0000)]
fix testing "gcc -mpreferred-stack-boundary=2" on x86_64

15 years agoRemove __libc_posix_fadvise[64] alias. It existed on i386 and arm only,
Denis Vlasenko [Mon, 15 Dec 2008 21:34:59 +0000 (21:34 -0000)]
Remove __libc_posix_fadvise[64] alias. It existed on i386 and arm only,
 and google says only uclibc has it, no users at all.

    text           data     bss     dec     hex filename
- 229374           1367   11280  242021   3b165 lib/libuClibc-0.9.30-svn.so
+ 229347           1367   11280  241994   3b14a lib/libuClibc-0.9.30-svn.so

15 years agoremove some duplicates in bits/signum.h. No code changes.
Denis Vlasenko [Mon, 15 Dec 2008 09:49:15 +0000 (09:49 -0000)]
remove some duplicates in bits/signum.h. No code changes.

 include/signal.h                        |   42 +++++++++++++++++++-------------
 libc/sysdeps/linux/alpha/bits/signum.h  |   19 --------------
 libc/sysdeps/linux/common/bits/signum.h |   22 ----------------
 libc/sysdeps/linux/hppa/bits/signum.h   |   17 ------------
 libc/sysdeps/linux/mips/bits/signum.h   |   23 +----------------
 libc/sysdeps/linux/sparc/bits/signum.h  |   20 ---------------
 6 files changed, 27 insertions(+), 116 deletions(-)

15 years agosigaction overhaul as described in docs/sigaction.txt
Denis Vlasenko [Mon, 15 Dec 2008 09:29:33 +0000 (09:29 -0000)]
sigaction overhaul as described in docs/sigaction.txt
Run tested on i386.

15 years agoheed compiler warnings about checking non-defined variables in #if directives
Denis Vlasenko [Sun, 14 Dec 2008 16:04:01 +0000 (16:04 -0000)]
heed compiler warnings about checking non-defined variables in #if directives

15 years agoAdd proposed plan of sanitizing sigaction to docs/*
Denis Vlasenko [Sun, 14 Dec 2008 03:39:28 +0000 (03:39 -0000)]
Add proposed plan of sanitizing sigaction to docs/*

15 years agoRemove the rest of "bounded pointers" scaffolding. gcc website says"
Denis Vlasenko [Sat, 13 Dec 2008 21:11:40 +0000 (21:11 -0000)]
Remove the rest of "bounded pointers" scaffolding. gcc website says"
"Bounds Checking Projects... This project has been abandoned"
for four years at least.

15 years agofeatures.h: add TODO (changing __OPTIMIZE_SIZE__ is a wrong thing to do)
Denis Vlasenko [Sat, 13 Dec 2008 15:21:07 +0000 (15:21 -0000)]
features.h: add TODO (changing __OPTIMIZE_SIZE__ is a wrong thing to do)

15 years agodoc snippets about defines we provide and/or use
Denis Vlasenko [Sat, 13 Dec 2008 15:02:30 +0000 (15:02 -0000)]
doc snippets about defines we provide and/or use

15 years agoDo not install libc-XXXX.h files in "make install".
Denis Vlasenko [Sat, 13 Dec 2008 12:43:23 +0000 (12:43 -0000)]
Do not install libc-XXXX.h files in "make install".
 glibc does not have them, so should be safe.

15 years agomake all "XXXhidden_proto(" consistently not use a space before '('
Denis Vlasenko [Sat, 13 Dec 2008 12:37:04 +0000 (12:37 -0000)]
make all "XXXhidden_proto(" consistently not use a space before '('

15 years agoMake it again possible to have compact and small stack usage
Denis Vlasenko [Sat, 13 Dec 2008 03:34:47 +0000 (03:34 -0000)]
Make it again possible to have compact and small stack usage
on non-SSE capable processors. I'm doing it the second time.

   text    data     bss     dec     hex filename
 238539    1367   11280  251186   3d532 uClibc.z2/lib/libuClibc-0.9.30-svn.so
 229457    1367   11280  242104   3b1b8 uClibc.z3/lib/libuClibc-0.9.30-svn.so

15 years agostring/generic/memcmp.c: remove some really paranoid guards
Denis Vlasenko [Sat, 13 Dec 2008 03:00:59 +0000 (03:00 -0000)]
string/generic/memcmp.c: remove some really paranoid guards
 for ancient compilers. none of other string/*.c files have them.

15 years ago*: document __USE_EXTERN_INLINES better;
Denis Vlasenko [Sat, 13 Dec 2008 01:53:28 +0000 (01:53 -0000)]
*: document __USE_EXTERN_INLINES better;
 fix uclibc build if it is forcibly enabled

15 years agoi386/brk.c: gcc can't figure out how to use %ebx in PIC mode,
Denis Vlasenko [Fri, 12 Dec 2008 23:34:42 +0000 (23:34 -0000)]
i386/brk.c: gcc can't figure out how to use %ebx in PIC mode,
 help it. Code size is the same.

15 years ago- only strip if cc compiled fine
Bernhard Reutner-Fischer [Fri, 12 Dec 2008 15:21:51 +0000 (15:21 -0000)]
- only strip if cc compiled fine
  Avoids displaying an additional error from strip when your cc ICEs or
  fails otherwise.

15 years ago*: remove vestiges of gcc's "bounded pointers" feature,
Denis Vlasenko [Fri, 12 Dec 2008 14:48:10 +0000 (14:48 -0000)]
*: remove vestiges of gcc's "bounded pointers" feature,
 it is dead (not supported by gcc) for years.
 (more of it remains in multiple copies of sigaction.c)

15 years agosmaller brk() for i386. Inspected assembly to see it's still valid.
Denis Vlasenko [Fri, 12 Dec 2008 14:23:17 +0000 (14:23 -0000)]
smaller brk() for i386. Inspected assembly to see it's still valid.
    text           data     bss     dec     hex filename
-     44              0       4      48      30 libc/sysdeps/linux/i386/brk.o
+     42              0       4      46      2e libc/sysdeps/linux/i386/brk.o

15 years agoMove kernel-features.h header from the linuxthread directory
Carmelo Amoroso [Thu, 11 Dec 2008 14:45:14 +0000 (14:45 -0000)]
Move kernel-features.h header from the linuxthread directory
to a common one (libc/sysdeps/linux/common/bits) so that any
function can access to supported kernel feature (i.e. getdents).

Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
15 years agocreate arch-generic brk() based on blackfin one
Mike Frysinger [Thu, 11 Dec 2008 10:08:00 +0000 (10:08 -0000)]
create arch-generic brk() based on blackfin one