summaryrefslogtreecommitdiff
path: root/libc/inet
AgeCommit message (Collapse)Author
2005-11-03Correct IMAPeter S. Mazinger
2005-11-01Only because of multi sources I had to touch up these and add code duplicationPeter S. Mazinger
2005-11-01Remove last unused references to libc-a-pic-, we use only the lists in ↵Peter S. Mazinger
libc-a-y for objects that go into static libs, changing their suffix to .os, of they should be PIC
2005-10-29Replace all Makefiles for new build infrastucturePeter S. Mazinger
2005-10-25All Makefile.in's. Only arm/i386/mips/powerpc/x86_64 are done, the other ↵Peter S. Mazinger
archs lack proper crt1. The Makefiles in extra/scripts are intended to be linked into each dir, where it is necessary to build locally.
2005-10-20Better solution to duplicate locking definesPeter S. Mazinger
2005-10-20Change in_addr_t inet_aton to int, glibc has it as int and uClibc uses it in ↵Peter S. Mazinger
addr.c also as int. Rename mylock/LOCK/UNLOCK in resolv.c to allow IMA compiling
2005-10-20only include libc-tsd.h if we have threads supportMike Frysinger
2005-10-12Rewrote almost all Makefiles: do not use strip $(x),y; run strip on all ↵Peter S. Mazinger
objects at once; use :=//$</$^; use CRT_SRC/CRT_OBJ/SCRT_OBJ/CSRC/COBJ/SSRC/SOBJ/MSRC/MOBJ where no more is needed, if only CSRC is present use OBJS directly instead of COBJ; CTOR_TARGETS are created directly in lib; remove unused/unneeded parts. Hope I haven't broken too much.
2005-10-04One more addition."Steven J. Hill"
2005-10-04Clean up pthread include mess. Some of these will be needed to support NPTL, ↵"Steven J. Hill"
but they do no harm for the linuxthreads case. Yes, I tested this.
2005-08-18add support for getrpcbynumber_r/getrpcbyname_r/getrpcent_r and a config ↵Mike Frysinger
option to enable REENTRANT RPC
2005-08-18add support for getrpcbynumber_r/getrpcbyname_r/getrpcent_r and a config ↵Mike Frysinger
option to enable REENTRANT RPC
2005-08-18rework some of the code to shrink sizeMike Frysinger
2005-08-18style tweaksMike Frysinger
2005-08-18we have getprotobyname_r() now so use itMike Frysinger
2005-06-29if both __NR_send and __NR_socketcall do not exist, fall back to __NR_sendto ↵Mike Frysinger
(same goes for recv/recvfrom)
2005-06-29ifdef out check which always failsMike Frysinger
2005-05-10The default static buffer sizes are too small to handle the 8 entries returnedEric Andersen
by 'nslookup www.yahoo.com' and 'nslookup mail.hotmail.com', and thus we currently return ERANGE when trying to lookup some of the most popular hosts on the planet. Whether these sites deserve to be popular is a question I'll leave for someone else to worry about. This change makes certain we have enough static buffer space to handle about 21 IPv4 IP address replies per DNS query. Far more than enough to handle common cases such as www.yahoo.com and mail.hotmail.com.
2005-04-28Fix it so uClibc returns multiple ips via h_addr_list,Eric Andersen
This fix, based on this patch http://bugs.uclibc.org/view.php?id=104 makes it so uClibc fills out round robin dns lists for applications such as nslookup: Before: $ nslookup google.com Server: mace.codepoet.org Address: 10.10.10.1 Name: google.com Address: 216.239.39.99 After: $ nslookup google.com Server: mace.codepoet.org Address: 10.10.10.1 Name: google.com Addresses: 216.239.57.99, 216.239.37.99, 216.239.39.99
2005-04-28Cleanup error case a bitEric Andersen
2005-04-28This might actually now be thread safe, assuming I havn't broken it.Eric Andersen
2005-04-28trim trailing whitespaceEric Andersen
2005-02-13x86_64 fixes: __NR_socketcall doesnt exist, nor does __NR_recv / __NR_send ↵Mike Frysinger
... so dont try using socketcall() unless the system call exists
2005-01-25merge parallel build supportMike Frysinger
2005-01-11Jan Lana writes:Eric Andersen
uClibc resolver doesn't lookup all search domains. For example, if you have computer 'jenda.prague.my.cz' and resolv.conf: search my.cz nameserver xx.xx.xx.xx try this: ping jenda.prague.my.cz #works ping jenda.prague #unknown host libc/inet/resolv.c doesn't want to try search domains if the domain name contains '.'. I don't find any reason for the behaviour in literature and it is inconsistent with the glibc. Patch is attached. regards, - jenda
2005-01-06Document more things inet_aton() 'should' support but actually doesn't.Mike Frysinger
Most of the time, no one ever notices, so there's not point eh ? Also standardize tab usage.
2004-10-31Revert Peter's __lib_gettimeofday patch. There's the minor issue ofManuel Novoa III
adding cruft to include/sys/time.h. But also, there's no sense in making changes like this until we decide how we're going to approach the hidden symbol transition.
2004-10-19Peter S. Mazinger writes:Eric Andersen
Hello! Would the attached patch be acceptable (maybe instead of __libc_gettimeofday using __gettimeofday) We have some issues, see http://bugs.gentoo.org/show_bug.cgi?id=65892
2004-09-07Implement gethostent_rEric Andersen
2004-09-07Remove stale leftoversEric Andersen
2004-08-15Do not fail all lookups when /etc/resolv.conf is missing, as i.e.Eric Andersen
checking on 127.0.0.1 is still valid w/o resolv.conf -Erik
2004-08-14req_search returned garbage. This teaches it to behave itself andEric Andersen
return the length and the actual dns packet as received, rather than making stuff up. -Erik
2004-08-10On Monday 02 August 2004 08:44 am, Mike Frysinger wrote:Manuel Novoa III
> the gethostbyname_r() call itself is not segfaulting, but the memory > returned in the h_aliases array seems to be wrong ... was playing around with the source today and eventually the obvious answer hit me ... while read_etc_hosts_r() generatings an array of strings fo h_aliases and populates it, the dns path does not :) find attached a patch that'll actually generate the h_aliases list in the normal dns code path ... i used the etc_hosts_r() code as a template for some of it ... note that this is just a simple fix ... it fills the alias list with just the hostname gethostbyname_r was passed ... the proper fix i think would be to parse the dns packet down in __dns_lookup() and pass the info back via the resolv_answer struct ... but this fix is better than the current state of things ... that is, h_aliases currently is never initailized in the dns code path :)
2004-06-12Stephen Hemminger from osdl dot org writes:Eric Andersen
Rather than copy more code back into the bridge-utilities, how about applying this change to uClibc? I hate when packages get cluttered for workarounds for other incompatibilities. The problem is that SIOCGIFCONF only lists interfaces that have IP addresses, so it doesn't find the other interfaces that are being used for bridging. It could be fixed in the kernel to return all interfaces, but then something else might break; and still it mean a kernel update for the 2.4 users. The whole use of ifindex in the bridge API is a bad idea. But we probably have to live with it for compatibility. Patch against uClibc 0.9.26
2004-05-14Joakim Tjernlund writes:Eric Andersen
Hi Erik It seems to me that __pthread_once and __pthread_initialize_minimal could be made WEAKs with no stub. The code in rpc_thread.c and __uClibc_main.c appears to expect this. Also, __pthread_return_0 __pthread_return_1 and __pthread_return_void can be static, not to pollute the name space. Jocke
2004-05-07Add missing include.Manuel Novoa III
2004-05-07Change the global 'buf' to 'servbuf' since some functions in here useEric Andersen
a local named 'buf' and we want to avoid shadowing that.
2004-04-20Cope with gcc 3.4's more aggressive persuit of attribute unusedEric Andersen
2004-03-18Based on a patch from Alexandre Oliva, remove all reference to 'bzero' (whichEric Andersen
is not a SuSv3 symbol). Rather than using __bzero internally per Alexandre's original patch, use memset instead.
2004-03-18Reduce memory used by static buffers and allocate that memory dynamiclyEric Andersen
instead. Based on an initial patch from Tobias Anderberg, but reworked. I asked Tobias to look into doing something more like what is done in busybox, but that proved to be a pain. One possible concern is that these buffers will probably show up as memory leaks i.e. with valgrind. Perhaps we should add in an atexit call to free this memory right after we allocate it?
2004-03-10Bug fix: gethostbyname2_r would fail if /etc/host was missing.Manuel Novoa III
Bug fix: gethostbyname_r checked errno without first setting it to a known value.
2004-02-18Alexandre Oliva writes:Eric Andersen
While testing the FR-V code with GCC mainline, I ran into some problems in the RPC code. It relies on a GCC extension that is no longer available, namely, the result of a cast is no longer considered an lvalue. This patch enables the code to compile. I haven't been able to test RPC though, especially in a multi-threaded environment.
2004-02-11New stdio core. Should be more maintainable. Fixes a couple of bugs.Manuel Novoa III
Codepaths streamlined. Improved performance for nonthreaded apps when linked with a thread-enabled libc. Minor iconv bug and some locale/thread related startup issues fixed. These showed up in getting a gcj-compiled java helloworld app running. Removed some old extension functions... _stdio_fdout and _stdio_fsfopen.
2004-01-24Imre Sunyi writes:Eric Andersen
Hi Erik I have corrected a bug in uClibc/libc/inet/resolv.c in function __dns_lookup(). Have attaced a txt file with my diffs regarding to uClibc 0.9.26. If two nameservers are included in /etc/resolv.conf and the first one is wrong and the secondary is correct the algorithm never looked up the secondary one. Please review my diff and feel free to submit the patch onto your CVS. If reading manual page resolv.conf(5) under nameserver and how the algorithm should work the previous dns_lookup did not fully followed that. Regards Imre Sunyi
2004-01-16s/UCLIBC_HAS_MMU/ARCH_HAS_MMU/gEric Andersen
2004-01-04Implement res_search and res_querydomain based on netbsd code,Eric Andersen
but remove support for host aliases (the HOSTALIASES env variable) which looks like a very bad idea. -Erik
2003-12-28Fix a really dumb bug introduced in version 1.4 of this file (a patch for ipv6Eric Andersen
support) which could cause things like EOF and read errors while reading /etc/services to always return a TRY_AGAIN. The perl test suite would alloc a larger buffer and try again until all memory was exhausted. When we get a read error, or EOF, it means we didn't get what we wanted, and so we should return an error. Doing so fixes the failing perl 5.8.2 test. -Erik
2003-12-28Fix whitespaceEric Andersen
2003-12-27Fix a long-standing bug with pthreads. A couple of linuxthreads filesManuel Novoa III
were including libc-lock.h which had a bunch of weak pragmas. Also, uClibc supplied a number of no-op weak thread functions even though many weren't needed. This combined result was that sometimes the functional versions of thread functions in pthread would not override the weaks in libc. While fixing this, I also prepended double-underscore to all necessary weak thread funcs in uClibc, and removed all unused weaks. I did a test build, but haven't tested this since these changes are a backport from my working tree. I did test the changes there and no longer need to explicitly add -lpthread in the perl build for perl to pass its thread self tests.