summaryrefslogtreecommitdiff
path: root/libc/inet
AgeCommit message (Collapse)Author
2007-07-30patch #3: make resolv.c use __uc_mallocDenis Vlasenko
2007-04-23- include stdbool.hBernhard Reutner-Fischer
2007-04-18Bugfix from Atsushi Nemoto: return nonzero error code on failure Rob Landley
(without which busybox ping segfaults on error). Broken during locking changes in in svn 16801.
2007-04-17- shrink resolver codeBernhard Reutner-Fischer
2007-03-28Warning fix for uninitialized variable, by Al Stone.Rob Landley
2007-02-08do not use ghbn_buf after it goes out of scopeEric Andersen
2007-02-04the sun rpc code has too many alias violations to worry over now; just ↵Mike Frysinger
disable strict-aliasing until someone gets the balls to clean this stuff up
2007-02-02Ronald Maeder writes:Eric Andersen
I have successfully made gethostbyname_r(), res_init(), and gethostid() fully reentrant. In addition, I have added a NULL check to inet_aton(). This is where SEG FAULTs were coming from when gethostbyname_r() was called.
2007-02-02use the correct lock for access to __nameserver[]Eric Andersen
2007-02-02fix lock namingEric Andersen
2007-02-02Ronald Maeder writes:Eric Andersen
Hi Erik, Thanks for all your great work. I found a set of bugs in resolv.c . Basically, there is code that looks like: BIGLOCK; __nameserversXX=__nameservers; __nameserverXX=__nameserver; BIGUNLOCK; i = __dns_lookup(dname, type, __nameserversXX, __nameserverXX, &packet, &a); which is a problem because the declarations are int __nameservers; char * __nameserver[MAX_SERVERS]; int __searchdomains; char * __searchdomain[MAX_SEARCH]; so you can see that __nameserver is a pointer. Copying the pointer to __nameserverXX doesn't protect the global variable space. I have attached a patch and the new file. I hope you will incorporate these bug fixes. I spent quite a bit of time tracking them down. Many thanks, Ron
2007-02-02fix obvious bug in ipv4/ipv6 resolving. When not using AF_INET,Eric Andersen
gethostbyname2_r tries to resolve an ipv6 address from /etc/hosts using get_hosts_byname_r, but with AF_INET instead of the supplied address family. This returns ipv4 addresses marked as ipv6 ones. Fix from nbd.
2007-01-29sync some fixes from glibcMike Frysinger
2007-01-10need to keep __check_rhosts_file exported for proper rhost controlMike Frysinger
2006-12-08__resolv_lock is supposed to be shared, not static Eric Andersen
2006-12-07Major cleanup of internal mutex locking. Be more consistant in how we doEric Andersen
things, and avoid potential deadlocks caused when a thread holding a uClibc internal lock get canceled and terminates without releasing the lock. This change also provides a single place, bits/uClibc_mutex.h, for thread libraries to modify to change all instances of internal locking.
2006-12-07Major cleanup of internal mutex locking. Be more consistant in how we doEric Andersen
things, and avoid potential deadlocks caused when a thread holding a uClibc internal lock get canceled and terminates without releasing the lock. This change also provides a single place, bits/uClibc_mutex.h, for thread libraries to modify to change all instances of internal locking.
2006-08-24fix from psm: only define __ASSUME_NETLINK_SUPPORT if not definedMike Frysinger
2006-07-31fix h_alias handling in gethostbyaddr_r() just like in gethostbyname_r()Mike Frysinger
otherwise we get messed up alias memory and this simple test case will segfault: python -c 'import socket; print socket.gethostbyaddr("80.68.88.204")[2];' see bug report in blackfin tracker for more info: http://blackfin.uclinux.org/tracker/index.php?func=detail&aid=1503&group_id=17&atid=141
2006-07-05fixup my copyright notice, trim stale remnants of older notices whichEric Andersen
I had clearly run search/replace on that were cluttering things up.
2006-07-05update licenseMike Frysinger
2006-06-20need hidden proto for rtime() as wellMike Frysinger
2006-06-19sync fix fixes from glibcMike Frysinger
2006-06-19dont shadow the socket() functionMike Frysinger
2006-03-24Move hidden xdr_rmtcall_args prototype before first usePeter S. Mazinger
2006-03-23Mark some functions as BSD onlyPeter S. Mazinger
2006-03-23select needs sys/select.h, str[n]casecmp/ffs needs strings.h, if BSD is not ↵Peter S. Mazinger
defined, gettimeofday has other prototype and tm_gmtoff/tm_zone do not exist
2006-03-22Correct build if UCLIBC_HAS_CTYPE_TABLES is not definedPeter S. Mazinger
2006-03-22Mark some functions as GNU, provide missing hidden memmem, remove ↵Peter S. Mazinger
_ISOC99/XOPEN_SOURCE
2006-03-10Remove all non-constant libc_hidden_data_def(), it is too unreliable, sorry, ↵Peter S. Mazinger
most of global data relocations are back
2006-03-09Get rid of nested extern warnings if threads are disabledPeter S. Mazinger
2006-03-09Add back sjhill's 14625 commit, correcting the typo that made it failPeter S. Mazinger
2006-03-01Update copyrightPeter S. Mazinger
2006-03-01Remove duplicate includePeter S. Mazinger
2006-02-25Remove commented include."Steven J. Hill"
2006-02-25Revert change. Calls can only be used when utilizing TLS. Sorry for the ↵"Steven J. Hill"
breakage.
2006-02-25Use the TSD macros and get rid of warnings."Steven J. Hill"
2006-02-18tweak the idea between having a MMU and actually using itMike Frysinger
2006-02-15hide xdr_u_shortPeter S. Mazinger
2006-02-15DOMULTI may be used for libc, the excluded files need work, ↵Peter S. Mazinger
linuxthreads[_db] as well, don't try on slow box
2006-02-13libc-{a,so,multi}-y replaced by libc-y covering common objects both in ↵Peter S. Mazinger
libc.a/libc.so, the diffs go into libc-static-y/libc-shared-y exclusively, add IMA to libc, don't use any MSRC anymore
2006-02-13Weaken all that I remember being used in libpthreadPeter S. Mazinger
2006-02-13Add files for IMA. Yes, I know it's a hack and no, I won't split the ↵Peter S. Mazinger
affected files
2006-02-10eat whitespaceMike Frysinger
2006-02-01weaks for __pthread_internal_tsd* are added if not built w/ -DSHARED, header ↵Peter S. Mazinger
issue
2006-02-01global data uses libc_hidden_data_def, convert all -I hope- and add some newPeter S. Mazinger
2006-01-31don't include wchar.h if WCHAR is disabledPeter S. Mazinger
2006-01-30Change the only bcopy user to memmove and remove internal version of bcopyPeter S. Mazinger
2006-01-29sync with glibc and rename local socket var to _socketMike Frysinger
2006-01-29sync func def with glibc and dont include sys/socket.h since we dont use ↵Mike Frysinger
socket()