Age | Commit message (Collapse) | Author | |
---|---|---|---|
2007-09-28 | cleanup code style | Mike Frysinger | |
2007-07-30 | patch #3: make resolv.c use __uc_malloc | Denis Vlasenko | |
2007-04-23 | - include stdbool.h | Bernhard Reutner-Fischer | |
2007-04-17 | - shrink resolver code | Bernhard Reutner-Fischer | |
2007-03-28 | Warning fix for uninitialized variable, by Al Stone. | Rob Landley | |
2007-02-02 | Ronald 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-02 | use the correct lock for access to __nameserver[] | Eric Andersen | |
2007-02-02 | fix lock naming | Eric Andersen | |
2007-02-02 | Ronald 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-02 | fix 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. | |||
2006-12-08 | __resolv_lock is supposed to be shared, not static | Eric Andersen | |
2006-12-07 | Major cleanup of internal mutex locking. Be more consistant in how we do | Eric 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-07-31 | fix 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-03-23 | select 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-22 | Correct build if UCLIBC_HAS_CTYPE_TABLES is not defined | Peter S. Mazinger | |
2006-03-10 | Remove all non-constant libc_hidden_data_def(), it is too unreliable, sorry, ↵ | Peter S. Mazinger | |
most of global data relocations are back | |||
2006-02-01 | global data uses libc_hidden_data_def, convert all -I hope- and add some new | Peter S. Mazinger | |
2006-01-26 | Get rid of missing prototype warnings | Peter S. Mazinger | |
2006-01-16 | Last relocs jump and global data, (even locales) that I could remove are ↵ | Peter S. Mazinger | |
gone from libc. The remaining are left as exercise for others ;-) | |||
2006-01-16 | some global data relocs gone | Peter S. Mazinger | |
2006-01-14 | make DODEBUG=y happy, update sysdeps/common/* copyright | Peter S. Mazinger | |
2006-01-14 | hidden_def/hidden_proto: convert all users (I hope) termios split, add some ↵ | Peter S. Mazinger | |
missing headers, other jump relocs removed | |||
2006-01-08 | hide internal symbols | Mike Frysinger | |
2005-12-16 | Convert some users and get rid of __rpc_thread_createerr jump reloc, this ↵ | Peter S. Mazinger | |
was indeed a badly chosen name | |||
2005-12-09 | Implement hidden poll, switch user to hidden *printf/*scanf/poll | Peter S. Mazinger | |
2005-12-08 | mmap/mremap/socket/rewind gone | Peter S. Mazinger | |
2005-12-08 | Convert the rest of users to hidden | Peter S. Mazinger | |
2005-12-08 | Again rpc ;-( , all *inet*, *addr* | Peter S. Mazinger | |
2005-12-07 | Hide more | Peter S. Mazinger | |
2005-12-06 | Make use internal str*casecmp/wcscoll | Peter S. Mazinger | |
2005-12-06 | macro out the thread funcs in libc if threading is disabled | Mike Frysinger | |
2005-12-03 | Rename newly created __libc_x (reserved for libpthread overwrites) w/ ↵ | Peter S. Mazinger | |
x_internal, do not use cascading aliases | |||
2005-12-03 | More hiding, including __mempcpy | Peter S. Mazinger | |
2005-12-01 | Hide mostly used functions | Peter S. Mazinger | |
2005-11-29 | Hiding again | Peter S. Mazinger | |
2005-11-27 | Hide some of mem* and str* | Peter S. Mazinger | |
2005-11-26 | 100 JUMP relocs less (remaining 431) by hiding internally used ones | Peter S. Mazinger | |
2005-11-26 | Some more hidden internals | Peter S. Mazinger | |
2005-10-20 | Better solution to duplicate locking defines | Peter S. Mazinger | |
2005-10-20 | Change 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-05-10 | The default static buffer sizes are too small to handle the 8 entries returned | Eric 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-28 | Fix 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-28 | Cleanup error case a bit | Eric Andersen | |
2005-04-28 | This might actually now be thread safe, assuming I havn't broken it. | Eric Andersen | |
2005-04-28 | trim trailing whitespace | Eric Andersen | |
2005-01-11 | Jan 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 | |||
2004-09-07 | Implement gethostent_r | Eric Andersen | |
2004-09-07 | Remove stale leftovers | Eric Andersen | |
2004-08-15 | Do 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-14 | req_search returned garbage. This teaches it to behave itself and | Eric Andersen | |
return the length and the actual dns packet as received, rather than making stuff up. -Erik |