summaryrefslogtreecommitdiff
path: root/lib/libc/net/res_update.c
Commit message (Collapse)AuthorAgeFilesLines
* Upgrade res_update(3) and the friends to BIND9's one excluding TSIGHajimu UMEMOTO2006-05-211-522/+0
| | | | | | | | | support. X-MFC after: never Notes: svn path=/head/; revision=158787
* Expose res_update and friends again. At least, ports/mail/spamilterHajimu UMEMOTO2006-03-301-22/+22
| | | | | | | | | | | | uses them. Now, we have res_nupdate and res_nmkupdate as well, but they are still based on our old resolver for binary backward compatibility. So, they don't provide new features such as TSIG support. Reported by: pointyhat via kris Notes: svn path=/head/; revision=157308
* Update the resolver in libc to BIND9's one.Hajimu UMEMOTO2006-03-211-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | Since, res_sendsigned(3) and the friends use MD5 functions, it is hard to include them without having MD5 functions in libc. So, res_sendsigned(3) is not merged into libc. Since, res_update(3) in BIND9 is not binary compatible with our res_update(3), res_update(3) is leaved as is, except some necessary modifications. The res_update(3) and the friends are not essential part of the resolver. They are not defined in resolv.h but defined in res_update.h separately in BIND9. Further, they are not called from our tree. So, I hide them from our resolv.h, but leave them only for binary backward compatibility (perhaps, no one calls them). Since, struct __res_state_ext is not exposed in BIND9, I hide it from our resolv.h. And, global variable _res_ext is removed. It breaks binary backward compatibility. But, since it is not used from outside of our libc, I think it is safe. Reviewed by: arch@ (no objection) Notes: svn path=/head/; revision=156960
* Check for truncation in calls to res_send/res_query/res_search.Jacques Vidrine2002-09-151-1/+7
| | | | | | | Fail when it is detected. Notes: svn path=/head/; revision=103350
* Backout the increase of MAXPACKET from 1024 to 65536: itJacques Vidrine2002-09-151-2/+1
| | | | | | | | | broke pthreads. Reported by: mbr, tjr Notes: svn path=/head/; revision=103335
* When using res_send/res_query/res_search, the caller must eitherJacques Vidrine2002-09-131-1/+2
| | | | | | | | | | | | insure enough space is available for the response, or be prepared to resize the buffer and retry as necessary. Do the conservative thing and make sure enough space is available. Reviewed by: silence on freebsd-audit Notes: svn path=/head/; revision=103307
* Fix the style of the SCM ID's.David E. O'Brien2002-03-221-4/+3
| | | | | | | I believe have made all of libc .c's as consistent as possible. Notes: svn path=/head/; revision=92986
* Remove _THREAD_SAFE and make libc thread-safe by default byDaniel Eischen2001-01-241-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | adding (weak definitions to) stubs for some of the pthread functions. If the threads library is linked in, the real pthread functions will pulled in. Use the following convention for system calls wrapped by the threads library: __sys_foo - actual system call _foo - weak definition to __sys_foo foo - weak definition to __sys_foo Change all libc uses of system calls wrapped by the threads library from foo to _foo. In order to define the prototypes for _foo(), we introduce namespace.h and un-namespace.h (suggested by bde). All files that need to reference these system calls, should include namespace.h before any standard includes, then include un-namespace.h after the standard includes and before any local includes. <db.h> is an exception and shouldn't be included in between namespace.h and un-namespace.h namespace.h will define foo to _foo, and un-namespace.h will undefine foo. Try to eliminate some of the recursive calls to MT-safe functions in libc/stdio in preparation for adding a mutex to FILE. We have recursive mutexes, but would like to avoid using them if possible. Remove uneeded includes of <errno.h> from a few files. Add $FreeBSD$ to a few files in order to pass commitprep. Approved by: -arch Notes: svn path=/head/; revision=71579
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50476
* Update the resolver parts to bind-8.1.2 level. I have not touched thePeter Wemm1998-06-111-0/+516
getXXXXbyYYYY() interfaces yet. Obtained from: diff relative to bind-8.1.2 sources Notes: svn path=/head/; revision=36891