OSDN Git Service

uclinux-h8/uClibc.git
15 years ago- fix loop for checking ifaddr on both IPv4 and IPv6
Bernhard Reutner-Fischer [Mon, 8 Dec 2008 13:12:42 +0000 (13:12 -0000)]
- fix loop for checking ifaddr on both IPv4 and IPv6

15 years agoresolver: make new name resolutions reread /etc/resolv.conf
Denis Vlasenko [Sat, 6 Dec 2008 20:12:15 +0000 (20:12 -0000)]
resolver: make new name resolutions reread /etc/resolv.conf
 if 256+ seconds passed since last read;
 fix cases where we switch to next search domain instead of switching
 to new server
 optimize ip4/ip6 combined cases;
 rewrite for(;;) loops so that it's clearer what's going on;
 document buffer usage;
 add TODOs and FIXMEs (for one, gethostbyname2 does not fill
 ->h_aliases field in the result AT ALL, and is iffy in general)

    text    data     bss     dec     hex filename
- 245898    1403   11904  259205   3f485 libuClibc-0.9.30-svn.so
+ 245785    1403   11904  259092   3f414 libuClibc-0.9.30-svn.so

15 years agoRemove __NTH from the declation.
Khem Raj [Thu, 4 Dec 2008 19:57:38 +0000 (19:57 -0000)]
Remove __NTH from the declation.

15 years agoCLean librt/*.oS too (NPTL will add some).
Carmelo Amoroso [Thu, 4 Dec 2008 15:49:26 +0000 (15:49 -0000)]
CLean librt/*.oS too (NPTL will add some).

15 years agoGo deeper while cleaning string directory to remove
Carmelo Amoroso [Thu, 4 Dec 2008 14:30:50 +0000 (14:30 -0000)]
Go deeper while cleaning string directory to remove
TARGET_SUBARCH implementation too.

Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
15 years agoAdded do_awk commanf for invoking awk parser. It will be used
Carmelo Amoroso [Thu, 4 Dec 2008 08:50:56 +0000 (08:50 -0000)]
Added do_awk commanf for invoking awk parser. It will be used
for generating some file on-the-fly on the NPTL case.

Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
15 years ago- use proper macros
Bernhard Reutner-Fischer [Wed, 3 Dec 2008 19:43:01 +0000 (19:43 -0000)]
- use proper macros

15 years ago- use proper macro (no obj-code changes)
Bernhard Reutner-Fischer [Wed, 3 Dec 2008 19:41:55 +0000 (19:41 -0000)]
- use proper macro (no obj-code changes)

15 years ago- Use runtime pagesize (Jeremy Kerr)
Bernhard Reutner-Fischer [Wed, 3 Dec 2008 19:40:55 +0000 (19:40 -0000)]
- Use runtime pagesize (Jeremy Kerr)
Some powerpc machines can support 64k pages, enabled by the
CONFIG_64K_PAGES option in linux.

However, the uClibc dynamic loader won't currently work on these
machines, as it uses hard-coded values (PAGE_ALIGN, ADDR_ALIGN and
OFFS_ALIGN) in the ldso architecture-specific headers.  When running on
a kernel with 64k pages, ld.so tries to mmap with 4k-aligned addresses,
rather than 64k, so mmap fails with -EINVAL.

When booting a 64k machine with a uClibc dynamic linker, init fails
with:

/init:500: can't map '/lib/libc.so.0'
/init:500: can't map '/lib/libc.so.0'
/init:500: can't map '/lib/libc.so.0'
/init: can't load library 'libc.so.0'
Kernel panic - not syncing: Attempted to kill init!

This change allows ld.so determine these alignment masks at runtime,
rather than compile-time. Since we have the _dl_pagesize variable
available, we can use that to generate the appropriate masks.

Since almost all of the architectures can use the common definitions for
the _ALIGN macros, we can consolidate them all in ldso.h, and override
in the sysdep headers where necessary (ie, mips).

This allows me to start a uClibc-based root fs on a 64k machine.

Signed-off-by: Jeremy Kerr <jk at ozlabs org>
15 years agoA missing change when we recently released a lot of fix
Carmelo Amoroso [Wed, 3 Dec 2008 14:07:45 +0000 (14:07 -0000)]
A missing change when we recently released a lot of fix
on localae support

15 years agoTwo other absolutely safe change that will be used by NPTL, aimed
Carmelo Amoroso [Wed, 3 Dec 2008 14:06:15 +0000 (14:06 -0000)]
Two other absolutely safe change that will be used by NPTL, aimed
to simplify merge.

15 years agoFix wcswidth function when LOCALE support is disabled
Carmelo Amoroso [Tue, 2 Dec 2008 17:14:47 +0000 (17:14 -0000)]
Fix wcswidth function when LOCALE support is disabled
while keeping WCHAR support enabled. This solves two
testcases: tst_wcwidth and tst_wcswidth.

Fix dat_iswctype.c fiinput file: character 0x80 is not
a control character: it fixes tst_iswctype test.

Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com>
15 years agohostid: improve extremely unreadable parts
Denis Vlasenko [Mon, 1 Dec 2008 21:16:46 +0000 (21:16 -0000)]
hostid: improve extremely unreadable parts
*: remove checks of sigaction and sigprocmask results
 in cases where they clearly can't fail:
 sigaction(known_good_sig)
 sigprocmask(known_good_how)

    text           data     bss     dec     hex filename
-    393              4       0     397     18d libc/pwd_grp/lckpwdf.o
+    382              4       0     386     182 libc/pwd_grp/lckpwdf.o
-     56              0       0      56      38 libc/signal/sigblock.o
+     44              0       0      44      2c libc/signal/sigblock.o
-    211              0       0     211      d3 libc/signal/sigset.o
+    202              0       0     202      ca libc/signal/sigset.o
-     56              0       0      56      38 libc/signal/sigsetmask.o
+     44              0       0      44      2c libc/signal/sigsetmask.o
-    309              0       0     309     135 libc/unistd/sleep.o
+    256              0       0     256     100 libc/unistd/sleep.o

15 years agoon Bernd's request, remove commented-out code snippets
Denis Vlasenko [Mon, 1 Dec 2008 20:29:52 +0000 (20:29 -0000)]
on Bernd's request, remove commented-out code snippets

15 years agoremove checks for "impossible" errors,
Denis Vlasenko [Mon, 1 Dec 2008 18:41:55 +0000 (18:41 -0000)]
remove checks for "impossible" errors,
clarify uses of unoptimized sigXXX ops (they check signo),
use faster sigops where approproate.

    text           data     bss     dec     hex filename
-     68              0       0      68      44 libc/signal/sighold.o
+     63              0       0      63      3f libc/signal/sighold.o
-    114              0       0     114      72 libc/signal/sigintr.o
+    110              0       0     110      6e libc/signal/sigintr.o
-    113              0       0     113      71 libc/signal/sigpause.o
+    108              0       0     108      6c libc/signal/sigpause.o
-     68              0       0      68      44 libc/signal/sigrelse.o
+     63              0       0      63      3f libc/signal/sigrelse.o

15 years agofix sigset_t size for mips (it's the only arch with 128 signals).
Denis Vlasenko [Mon, 1 Dec 2008 18:00:04 +0000 (18:00 -0000)]
fix sigset_t size for mips (it's the only arch with 128 signals).
fix _NSIG for it.
better document what's going on in sigaction().
seems to not induce any actual code changes (sans mips).

15 years agooptimize signal mask ops. comment out "impossible" errors
Denis Vlasenko [Mon, 1 Dec 2008 15:31:22 +0000 (15:31 -0000)]
optimize signal mask ops. comment out "impossible" errors

    text           data     bss     dec     hex filename
-   1179             13       2    1194     4aa libc/misc/syslog/syslog.o
+   1165             13       2    1180     49c libc/misc/syslog/syslog.o
-    435              4       0     439     1b7 libc/pwd_grp/lckpwdf.o
+    393              4       0     397     18d libc/pwd_grp/lckpwdf.o
-     38              0       0      38      26 libc/signal/sigandset.o
+     32              0       0      32      20 libc/signal/sigandset.o
-     63              0       0      63      3f libc/signal/sigblock.o
+     56              0       0      56      38 libc/signal/sigblock.o
-     22              0       0      22      16 libc/signal/sigempty.o
+     20              0       0      20      14 libc/signal/sigempty.o
-     25              0       0      25      19 libc/signal/sigfillset.o
+     20              0       0      20      14 libc/signal/sigfillset.o
-     34              0       0      34      22 libc/signal/sigisempty.o
+     16              0       0      16      10 libc/signal/sigisempty.o
-     38              0       0      38      26 libc/signal/sigorset.o
+     32              0       0      32      20 libc/signal/sigorset.o
-    119              0       0     119      77 libc/signal/sigpause.o
+    113              0       0     113      71 libc/signal/sigpause.o
-    215              0       0     215      d7 libc/signal/sigset.o
+    211              0       0     211      d3 libc/signal/sigset.o
-     63              0       0      63      3f libc/signal/sigsetmask.o
+     56              0       0      56      38 libc/signal/sigsetmask.o
-    194              0       1     195      c3 libc/stdlib/abort.o
+    183              0       1     184      b8 libc/stdlib/abort.o
-    323              0       0     323     143 libc/unistd/sleep.o
+    309              0       0     309     135 libc/unistd/sleep.o

15 years agol64a: shrink by 13 bytes, and -1 reloc
Denis Vlasenko [Mon, 1 Dec 2008 11:03:35 +0000 (11:03 -0000)]
l64a: shrink by 13 bytes, and -1 reloc

15 years agoconstify more data
Denis Vlasenko [Mon, 1 Dec 2008 10:33:19 +0000 (10:33 -0000)]
constify more data

 text+data text+rodata    rwdata       bss filename
-     2534        2510        24         0 libc/inet/rpc/clnt_udp.o
+     2534        2534         0         0 libc/inet/rpc/clnt_udp.o
-     1904        1880        24         0 libc/inet/rpc/clnt_tcp.o
+     1904        1904         0         0 libc/inet/rpc/clnt_tcp.o
-      770         746        24         4 libc/inet/rpc/clnt_raw.o
+      770         770         0         4 libc/inet/rpc/clnt_raw.o

15 years agorpc: constify data, localize unnecessarily static data
Denis Vlasenko [Mon, 1 Dec 2008 10:02:44 +0000 (10:02 -0000)]
rpc: constify data, localize unnecessarily static data

 text+data text+rodata    rwdata       bss filename
-     2308        2284        24        24 libc/inet/rpc/clnt_unix.o
+     2308        2308         0         0 libc/inet/rpc/clnt_unix.o

15 years agorandom: use smaller data fields where appropriate
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

15 years agogethostbyname can use gethostbyname2, saving one nearly 0.5k static buffer
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

15 years agorpc: should check against max for int32, not int
Denis Vlasenko [Mon, 1 Dec 2008 08:40:30 +0000 (08:40 -0000)]
rpc: should check against max for int32, not int

15 years agorpc: ifdef out xdrrec_{get,put}long if int32 == long,
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

15 years agoadd libc_hidden_proto(__cmsg_nxthdr) for mips
Denis Vlasenko [Sat, 29 Nov 2008 21:45:14 +0000 (21:45 -0000)]
add libc_hidden_proto(__cmsg_nxthdr) for mips

15 years agofix improperly hidden fputc_unlocked
Denis Vlasenko [Sat, 29 Nov 2008 21:24:21 +0000 (21:24 -0000)]
fix improperly hidden fputc_unlocked

15 years agofix improperly hidden fwprintf.
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

15 years agoshring sugnal-relared stuff a bit. BTW why constant memset is not inlined by gcc?
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

15 years agoreduce sigset_t size for 128 bytes to 64 bits:
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

15 years agoMake __UCLIBC_HAVE_ASM_CFI_DIRECTIVES__ visible in case the arch
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>
15 years ago- make isascii visible again
Bernhard Reutner-Fischer [Thu, 27 Nov 2008 14:17:13 +0000 (14:17 -0000)]
- make isascii visible again
  TODO: *_l() should go

15 years agoThis patch fixes locale-mbwc test failures when __UCLIBC_HAS_LOCALE__ is
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>
15 years ago- remove fstatfs() and statfs() related headers upon request
Bernhard Reutner-Fischer [Wed, 26 Nov 2008 09:24:33 +0000 (09:24 -0000)]
- remove fstatfs() and statfs() related headers upon request

15 years ago- revert 24148:24151
Bernhard Reutner-Fischer [Wed, 26 Nov 2008 08:41:09 +0000 (08:41 -0000)]
- revert 24148:24151

15 years agolibc/string: need additional work to remove libc_hidden_proto's properly
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

15 years ago- hide locks
Bernhard Reutner-Fischer [Tue, 25 Nov 2008 16:27:39 +0000 (16:27 -0000)]
- hide locks

15 years ago- remove some bloat that was added in r23660 and subsequent r23698.
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

15 years ago- hide some time related relocs
Bernhard Reutner-Fischer [Tue, 25 Nov 2008 15:52:24 +0000 (15:52 -0000)]
- hide some time related relocs

15 years agoMake wcsxfrm visible also when LOCALE support is disabled.
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>
15 years ago- hide __libc_{f,}statfs. Thanks to Peter S. Mazinger for mentioning this fact.
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.

15 years ago- cosmetic tidy up of clean target
Bernhard Reutner-Fischer [Tue, 25 Nov 2008 13:36:26 +0000 (13:36 -0000)]
- cosmetic tidy up of clean target

15 years ago- 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

15 years ago- make sure isspace() is exported.
Bernhard Reutner-Fischer [Tue, 25 Nov 2008 12:31:20 +0000 (12:31 -0000)]
- make sure isspace() is exported.
  Thanks to Skinkie for noticing.

15 years ago- Fix thumb2 PIE (Joseph S. Myers)
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.)

15 years ago- fix args (untested)
Bernhard Reutner-Fischer [Sun, 23 Nov 2008 21:11:27 +0000 (21:11 -0000)]
- fix args (untested)

15 years agosignal ops: avoid calls through PLT for __sigXXX ops
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

15 years agolibc-symbols: improve comments and make macros a bit more readable.
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

15 years agofix some unneeded PLT references
Denis Vlasenko [Sat, 22 Nov 2008 14:22:37 +0000 (14:22 -0000)]
fix some unneeded PLT references

15 years agofix "make utils" build failure in ldconfig
Denis Vlasenko [Sat, 22 Nov 2008 01:07:44 +0000 (01:07 -0000)]
fix "make utils" build failure in ldconfig
(undefined reference to 'getopt')

15 years agofix "make install" with relative PREFIX
Denis Vlasenko [Fri, 21 Nov 2008 11:50:13 +0000 (11:50 -0000)]
fix "make install" with relative PREFIX

15 years agofix ioperm build problems caused by libc_hidden_proto removal
Denis Vlasenko [Fri, 21 Nov 2008 11:15:58 +0000 (11:15 -0000)]
fix ioperm build problems caused by libc_hidden_proto removal

15 years agofix apparent typo (unnoticed for long time, probably
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)

15 years agodeal with TODOs left over from libc_hidden_proto removal
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)

15 years agoLast portion of libc_hidden_proto removal.
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)

15 years agonext portion of libc_hidden_proto removal
Denis Vlasenko [Thu, 20 Nov 2008 22:07:43 +0000 (22:07 -0000)]
next portion of libc_hidden_proto removal

15 years agoMake sure __hot and __cold are always defined.
Peter Kjellerstedt [Wed, 19 Nov 2008 12:34:25 +0000 (12:34 -0000)]
Make sure __hot and __cold are always defined.

15 years agoChanged Copyright and License statement according to COPYING.LIB.boilerplate
Carmelo Amoroso [Tue, 18 Nov 2008 13:53:08 +0000 (13:53 -0000)]
Changed Copyright and License statement according to COPYING.LIB.boilerplate

15 years agoChanged 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

15 years ago- add __hot and __cold annotations
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

15 years agoFix typo: missing )
Carmelo Amoroso [Tue, 18 Nov 2008 12:56:05 +0000 (12:56 -0000)]
Fix typo: missing )

15 years agoMove _dl_iterate_phdr into libc.so.0 and libc.a (as glibc does).
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>
15 years agolibc_hidden_proto removal, a few more functions
Denis Vlasenko [Tue, 18 Nov 2008 01:10:26 +0000 (01:10 -0000)]
libc_hidden_proto removal, a few more functions

15 years agolibc_hidden_proto removal, just a few functions
Denis Vlasenko [Tue, 18 Nov 2008 01:09:55 +0000 (01:09 -0000)]
libc_hidden_proto removal, just a few functions

15 years ago- add hack to check if generating sysnum.h worked out
Bernhard Reutner-Fischer [Mon, 17 Nov 2008 22:37:05 +0000 (22:37 -0000)]
- add hack to check if generating sysnum.h worked out

15 years agoresolver: use timeout of 5 (glibc uses that).
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.

15 years agoresolver: separate gethostent and gethostent_r into two .o files;
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

15 years agoresolver: move large code blocks to arrange related functions closer.
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

15 years agoresolver: fix some previous TODOs, add new ones.
Denis Vlasenko [Mon, 17 Nov 2008 02:40:05 +0000 (02:40 -0000)]
resolver: fix some previous TODOs, add new ones.

15 years ago- cleanup {,f}stat{,v}fs{,64} relocs
Bernhard Reutner-Fischer [Sun, 16 Nov 2008 20:38:09 +0000 (20:38 -0000)]
- cleanup {,f}stat{,v}fs{,64} relocs

15 years agoresolver: improved support for overriding DNS server addresses
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.

15 years agoresolver: make getaddrinfo actually respect _res.nsaddr_list;
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

15 years agoresolver: more locking fixes.
Denis Vlasenko [Sat, 15 Nov 2008 16:15:25 +0000 (16:15 -0000)]
resolver: more locking fixes.

15 years ago- if ssp is enabled then make sure that __stack_chk_fail resolves
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

15 years ago- Remove linux-specific prototypes if asked to.
Bernhard Reutner-Fischer [Sat, 15 Nov 2008 15:54:53 +0000 (15:54 -0000)]
- Remove linux-specific prototypes if asked to.

15 years ago- revert wrong r24049
Bernhard Reutner-Fischer [Sat, 15 Nov 2008 15:42:40 +0000 (15:42 -0000)]
- revert wrong r24049

15 years ago- Remove linux-specific prototypes if asked to.
Bernhard Reutner-Fischer [Sat, 15 Nov 2008 15:38:10 +0000 (15:38 -0000)]
- Remove linux-specific prototypes if asked to.

15 years agoCurrent kernels support more than 8 bit major/minor. Pass dev_t through 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.

15 years agofixing resolver part 3: fix completely bogus locking
Denis Vlasenko [Fri, 14 Nov 2008 00:37:48 +0000 (00:37 -0000)]
fixing resolver part 3: fix completely bogus locking
 in __dns_lookup.

15 years agofixing resolver part 2: make _res structure members
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.

15 years agofixing resolver, part 1
Denis Vlasenko [Fri, 14 Nov 2008 00:34:02 +0000 (00:34 -0000)]
fixing resolver, part 1

15 years ago- do not fail if mktemp is not available.
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)

15 years ago- silence shadow warning
Bernhard Reutner-Fischer [Thu, 13 Nov 2008 10:38:52 +0000 (10:38 -0000)]
- silence shadow warning

15 years ago- adjust trunk version info
Bernhard Reutner-Fischer [Wed, 12 Nov 2008 12:35:01 +0000 (12:35 -0000)]
- adjust trunk version info

15 years ago- update recommendation for pregenerated locales.
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

15 years ago- for !UNIX98PTY_ONLY we have to fallback to old-style pty's.
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

15 years ago- Add temporary hack to wipe dep files even on clean for utils.
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.

15 years ago- less verbose make clean
Bernhard Reutner-Fischer [Fri, 7 Nov 2008 21:15:53 +0000 (21:15 -0000)]
- less verbose make clean

15 years ago- tidy up indentation
Bernhard Reutner-Fischer [Fri, 7 Nov 2008 20:55:54 +0000 (20:55 -0000)]
- tidy up indentation

15 years ago- document more environment variables
Bernhard Reutner-Fischer [Fri, 7 Nov 2008 19:13:06 +0000 (19:13 -0000)]
- document more environment variables

15 years agoAdd extern reference to __libc_sigaction in sigaction.c for AVR32 arch
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>
15 years agoSync clone() function declaration for AVR32 with sched.h declaration
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>
15 years agoPrefix variables defined in INIT_GOT define for AVR32 arch
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>
15 years agoMake sure functions in dl-sysdep.h for AVR32 are always inlined
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>
15 years agoAdd hint for read ahead function in fcntl.h for AVR32 arch
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>
15 years agoAdd include to silence compiler warning when compiling clone.c for AVR32
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>
15 years agoRemove commented out CFLAGS assigment which is also set on next line
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>
15 years agoFix whitespace damage in file.
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>
15 years ago- jmp on coldfire accepts only address registers
Bernhard Reutner-Fischer [Mon, 3 Nov 2008 12:28:17 +0000 (12:28 -0000)]
- jmp on coldfire accepts only address registers
  Closes #3824

15 years ago- Fix __user_locking with stdio buffers (Carmelo AMOROSO)
Bernhard Reutner-Fischer [Sun, 2 Nov 2008 12:13:00 +0000 (12:13 -0000)]
- Fix __user_locking with stdio buffers (Carmelo AMOROSO)
  Closes #5254

15 years agoresolver: reinstate searching if search domains accidentally nuked
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 :)