summaryrefslogtreecommitdiffstats
path: root/libc/inet
Commit message (Collapse)AuthorAgeFilesLines
...
* docs/defines.txt: document _extern_inlineDenis Vlasenko2008-12-222-74/+64
| | | | | | | | | | | | | 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
* Deal with a few data fields which may be made constant.Denis Vlasenko2008-12-201-1/+1
| | | | | | | | | 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
* resolv: fix testcase failureDenis Vlasenko2008-12-171-2/+2
| | | | | test/regex/tst-regex2.c: fix testcase to compile with just "gcc <file>.c"
* heed compiler warnings about checking non-defined variables in #if directivesDenis Vlasenko2008-12-141-2/+2
|
* *: remove some __libc_XXX functions:Denis Vlasenko2008-12-101-57/+26
| | | | | | | | | | | | __libc_accept __libc_close __libc_connect __libc_creat __libc_creat64 __libc_fsync __libc_lseek __libc_lseek64 __libc_msync __libc_nanosleep __libc_open __libc_open64 __libc_pause __libc_read __libc_readv __libc_recv __libc_recvfrom __libc_recvmsg __libc_send __libc_sendmsg __libc_sendto __libc_tcdrain __libc_wait __libc_waitpid __libc_write __libc_writev They were removed from glibc 1 May 2004: http://sources.redhat.com/ml/libc-hacker/2004-05/msg00001.html
* remove __libc_getdomainname alias. google says only we have it.Denis Vlasenko2008-12-101-6/+1
|
* getaddrinfo: runp->ifa_addr indeed can be NULL, don't dereference itDenis Vlasenko2008-12-092-4/+3
| | | | | ifaddrs.c: cosmetics, no code changes
* getaddrinfo: remove superfluout indentation, fix incorrect one.Denis Vlasenko2008-12-081-61/+64
| | | | | remove one superfluous statement.
* - fix loop for checking ifaddr on both IPv4 and IPv6Bernhard Reutner-Fischer2008-12-081-2/+2
|
* resolver: make new name resolutions reread /etc/resolv.confDenis Vlasenko2008-12-061-219/+197
| | | | | | | | | | | | | | | | 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
* hostid: improve extremely unreadable partsDenis Vlasenko2008-12-011-16/+15
| | | | | | | | | | | | | | | | | | | | *: 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
* constify more dataDenis Vlasenko2008-12-013-3/+3
| | | | | | | | | | | 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
* rpc: constify data, localize unnecessarily static dataDenis Vlasenko2008-12-011-2/+2
| | | | | | | 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
* random: use smaller data fields where appropriateDenis Vlasenko2008-12-011-0/+1
| | | | | | | | | 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
* gethostbyname can use gethostbyname2, saving one nearly 0.5k static bufferDenis Vlasenko2008-12-011-15/+20
| | | | | | | text data bss dec hex filename - 45 0 480 525 20d libc/inet/gethostbyname.o + 18 0 0 18 12 libc/inet/gethostbyname.o
* rpc: should check against max for int32, not intDenis Vlasenko2008-12-011-4/+4
|
* rpc: ifdef out xdrrec_{get,put}long if int32 == long,Denis Vlasenko2008-12-014-76/+54
| | | | | | | otherwise use xdrrec_{get,put}int32 + trivial transform. eliminate warnings. des: small shrink + eliminate a warning
* Last portion of libc_hidden_proto removal.Denis Vlasenko2008-11-2060-404/+405
| | | | | Appears to build fine (several .configs tried)
* next portion of libc_hidden_proto removalDenis Vlasenko2008-11-2042-134/+134
|
* libc_hidden_proto removal, a few more functionsDenis Vlasenko2008-11-1815-28/+28
|
* libc_hidden_proto removal, just a few functionsDenis Vlasenko2008-11-1823-28/+28
|
* resolver: use timeout of 5 (glibc uses that).Denis Vlasenko2008-11-171-10/+7
| | | | | delete some duplication in constants.
* resolver: separate gethostent and gethostent_r into two .o files;Denis Vlasenko2008-11-174-151/+151
| | | | | delete two stray files which compile to nothing
* resolver: move large code blocks to arrange related functions closer.Denis Vlasenko2008-11-171-510/+489
| | | | | almost no code changes
* resolver: fix some previous TODOs, add new ones.Denis Vlasenko2008-11-171-179/+198
|
* resolver: improved support for overriding DNS server addressesDenis Vlasenko2008-11-161-48/+114
| | | | | in _res structure. Used by busybox's nslookup.
* resolver: make getaddrinfo actually respect _res.nsaddr_list;Denis Vlasenko2008-11-162-204/+337
| | | | | | add largish comment explaining what we are doing, and why; fixes to make IPv6-only resolver possible
* resolver: more locking fixes.Denis Vlasenko2008-11-151-108/+138
|
* fixing resolver part 3: fix completely bogus lockingDenis Vlasenko2008-11-141-304/+311
| | | | | in __dns_lookup.
* fixing resolver part 2: make _res structure membersDenis Vlasenko2008-11-141-11/+17
| | | | | configurable. we don't use most of it anyway.
* fixing resolver, part 1Denis Vlasenko2008-11-141-90/+136
|
* - silence shadow warningBernhard Reutner-Fischer2008-11-131-3/+3
|
* - less verbose make cleanBernhard Reutner-Fischer2008-11-072-8/+8
|
* resolver: reinstate searching if search domains accidentally nukedDenis Vlasenko2008-11-021-4/+15
| | | | | in one of recent commits :)
* __dns_lookup: document and optimize a bitDenis Vlasenko2008-11-011-33/+45
| | | | | | | text data bss dec hex filename - 1545 2 4 1551 60f libc/inet/dnslookup.o + 1528 2 4 1534 5fe libc/inet/dnslookup.o
* resolver: partially fix bug 660 -Denis Vlasenko2008-11-011-21/+42
| | | | | do not treat negative response as error
* resolver: fix part of bug 1468:Denis Vlasenko2008-11-011-7/+20
| | | | | "gethostbyname() fails if DNS server returns more than 23 addresses"
* resolver: trivial code trasformations for readability.Denis Vlasenko2008-11-011-89/+96
| | | | | No logic changes. Code size is the same too.
* trivial code shrink by making some strings staticDenis Vlasenko2008-11-012-10/+10
| | | | | | | | | 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
* getaddrinfo.c: improve readabilityDenis Vlasenko2008-10-281-30/+26
|
* getaddrinfo.c: reformat. no code changesDenis Vlasenko2008-10-281-738/+630
|
* Remove all references to __no_netlink_support as after thurough scrutiny of Ricard Wanderlof2008-10-282-23/+1
| | | | the code it was never used in any useful way.
* make getaddrinfo to NOT query DNS for IPv6 address if host is inDenis Vlasenko2008-10-281-17/+31
| | | | | | | | | | | /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
* - fix typo in r23808Bernhard Reutner-Fischer2008-10-271-1/+1
|
* libc/inet/getaddrinfo.c: const'ify some data;Denis Vlasenko2008-10-271-26/+45
| | | | | | | | | 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
* - remove superfluous ';'. No objcode changes.Bernhard Reutner-Fischer2008-10-221-17/+17
|
* - need to grab features before looking at eventually requested netlink supportBernhard Reutner-Fischer2008-10-201-3/+3
| | | | | | 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..
* - do not include netlink headers if netlink is turned off (Michael Deutschmann)Bernhard Reutner-Fischer2008-10-191-11/+10
| | | | Closes #5544
* - des uses ntohlBernhard Reutner-Fischer2008-10-171-1/+5
|
* - hide relocation (Peter S. Mazinger)Bernhard Reutner-Fischer2008-10-061-1/+0
|