summaryrefslogtreecommitdiff
path: root/lib/libc/net/res_send.c
Commit message (Collapse)AuthorAgeFilesLines
* $Id$ -> $FreeBSD$Peter Wemm1999-08-291-1/+1
| | | | Notes: svn path=/stable/3/; revision=50569
* Implement the weak aliases for private entry points in the inet_*John Polstra1998-09-021-1/+10
| | | | | | | | | | | | | | and res_* modules in a way that works for ELF. I moved the aliases out of res_stubs.c and into the individual modules where the entry points are defined. Weak aliases don't work in ELF unless that is the case. (Actually, I'm surprised it worked for a.out.) This should fix the undefined "inet_addr" and related symbols in various applications that fail to include <arpa/inet.h> or <resolv.h> as they are supposed to do. Notes: svn path=/head/; revision=38736
* Don't compile in the use of poll() when building libc_r. This isn'tPeter Wemm1998-06-141-1/+15
| | | | | | | | so much a "fix", rather a bandaid to buy time to fix it properly within the thread engine. Notes: svn path=/head/; revision=36967
* Update the resolver parts to bind-8.1.2 level. I have not touched thePeter Wemm1998-06-111-44/+71
| | | | | | | | | getXXXXbyYYYY() interfaces yet. Obtained from: diff relative to bind-8.1.2 sources Notes: svn path=/head/; revision=36891
* Resolve some unexpected differences when comparing with the 2.2 version.Peter Wemm1998-05-021-2/+10
| | | | | | | | | One bug was relatively harmless (select's timeout had an uninitialized tv_usec), the other I'm not so sure.. (neglected to catch select returns less than zero). Both of these were irrelevant on kernels with poll(). Notes: svn path=/head/; revision=35624
* Update libc dns code to 4.9.7-T1B level. This involved chopping out largePeter Wemm1998-05-021-2/+43
| | | | | | | | | chunks of res_comp.c and replacing it with chunks of bind-8.1.1's resolver code. (There are no interface changes though) The other parts are better bounds checking related. Notes: svn path=/head/; revision=35623
* Some adjustments for the resolver use of poll(). For some reason I thoughtPeter Wemm1997-09-161-7/+8
| | | | | | | | | | an unimplemented syscall returned ENOSYS, rather than EINVAL. I have run statically linked code with this wrapper and it does appear to work fine on 2.2-stable which doesn't have poll(). ktrace shows the poll syscall fail once and the fallback to select() working. Notes: svn path=/head/; revision=29488
* Call poll(2) from within the resolver but adapt to older kernels without itPeter Wemm1997-09-141-26/+68
| | | | | | | | | | | | | | | | if necessary. This removes the need to malloc large fd_set's for selecting on high fd's (larger than FD_SETSIZE at libc compile time). The syscall adaptive stuff only happens on the very first call. SIGSYS is masked, and if the call to poll fails with ENOSYS, then we use select for the life of the program. If poll does not fail with ENOSYS, then we always use poll and skip the once-off signal masking gunk. This may be overkill, but it saved my neck a few times while working on multiple different sets of kernel sources, some with poll, some without. Notes: svn path=/head/; revision=29380
* replace the OpenBSD fd_set sizing code with something more efficient.Peter Wemm1997-06-281-9/+16
| | | | | | | | | | Only call malloc() if the fd is too big for the compiled in fd_set size, and don't use calloc either. This should reduce the impact of conflicts with private malloc implementations etc. When using the fd_set on the stack, only zero what is needed rather than all 1024 bits like FD_ZERO did. Notes: svn path=/head/; revision=27016
* Dynamically size fd_set in select rather than fail if too many filesPeter Wemm1997-06-271-8/+9
| | | | | | | | are open. Obtained from: OpenBSD; by deraadt and dm Notes: svn path=/head/; revision=26983
* Merge in bind-4.9.6 resolver changes. Note that they resolve thePeter Wemm1997-06-271-7/+3
| | | | | | | overflow problem differently. Notes: svn path=/head/; revision=26974
* Fix problem with FD_SET* overflow reporting.. Perror() didn't have enoughPeter Wemm1997-03-121-2/+6
| | | | | | | | | | args, and errno hasn't actually been set so it probably doesn't make sense to report it via strerror(). Pointed out by: bde Notes: svn path=/head/; revision=23767
* Check for overflow of FD_SETGuido van Rooij1997-03-101-1/+6
| | | | Notes: svn path=/head/; revision=23617
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-221-1/+1
| | | | Notes: svn path=/head/; revision=22993
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-141-1/+1
| | | | | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise. Notes: svn path=/head/; revision=21673
* Here goes.. Bring the 4.9.5-P1 resolver into -current. This has thePeter Wemm1996-12-301-26/+39
| | | | | | | | DNSSEC stuff, among other things. There are also some renamed functions, I've left out the res_stubs.c from this commit in case cvs bombs out.. Notes: svn path=/head/; revision=21057
* Sigh, back out the last bright idea I had here about compiling the res_*Peter Wemm1996-08-301-0/+741
| | | | | | | | | | | routines from contrib/bind directly. There were too many problems, including having to add -DUSE_OPTIONS_H to the entire libc source in order for the contrib code to pick up it's options, and so on. Instead, I've merged the changes, libc is now self contained again. Notes: svn path=/head/; revision=17957
* Merge in bind-4.9.4-P1 resolver...Peter Wemm1996-08-291-727/+0
| | | | Notes: svn path=/head/; revision=17903
* General -Wall warning cleanup, part I.Jordan K. Hubbard1996-07-121-2/+2
| | | | | | | Submitted-By: Kent Vander Velden <graphix@iastate.edu> Notes: svn path=/head/; revision=17141
* Merge the 4.9.3-rel code into the res_* parts. The gethostXXXbyYYYPeter Wemm1996-01-071-57/+61
| | | | | | | parts are not quite so simple.. Notes: svn path=/head/; revision=13308
* Fix bogus include paths, some of which stopped libresolv from compiling.Bruce Evans1995-08-211-2/+2
| | | | Notes: svn path=/head/; revision=10150
* Update the resolver part of libc to bind-4.9.3-beta24 level (from beta9p1)Peter Wemm1995-08-201-70/+72
| | | | | | | | | | | Note that this was done by selective patching from diffs, to not conflict with the 4.4bsd base code.. This was *not* a trivial task.. I have been testing this code (apart from cosmetic changes) in my libc for a while now. Obtained from: Paul Vixie <paul@vix.com> Notes: svn path=/head/; revision=10133
* Remove trailing whitespace.Rodney W. Grimes1995-05-301-3/+3
| | | | Notes: svn path=/head/; revision=8870
* remove need for -DDEBUG from resolver code (conflict with db/hash)Paul Traina1994-09-251-38/+33
| | | | Notes: svn path=/head/; revision=3094
* get* rework and new bind codePaul Traina1994-09-251-210/+468
| | | | Notes: svn path=/head/; revision=3070
* BSD 4.4 Lite Lib SourcesRodney W. Grimes1994-05-271-0/+468
Notes: svn path=/cvs2svn/branches/unlabeled-1.1.1/; revision=1573