summaryrefslogtreecommitdiffstats
path: root/lib/libc/net/res_send.c
Commit message (Collapse)AuthorAgeFilesLines
* Implement the weak aliases for private entry points in the inet_*jdp1998-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.
* Don't compile in the use of poll() when building libc_r. This isn'tpeter1998-06-141-1/+15
| | | | | so much a "fix", rather a bandaid to buy time to fix it properly within the thread engine.
* Update the resolver parts to bind-8.1.2 level. I have not touched thepeter1998-06-111-44/+71
| | | | | | getXXXXbyYYYY() interfaces yet. Obtained from: diff relative to bind-8.1.2 sources
* Resolve some unexpected differences when comparing with the 2.2 version.peter1998-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().
* Update libc dns code to 4.9.7-T1B level. This involved chopping out largepeter1998-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.
* Some adjustments for the resolver use of poll(). For some reason I thoughtpeter1997-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.
* Call poll(2) from within the resolver but adapt to older kernels without itpeter1997-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.
* replace the OpenBSD fd_set sizing code with something more efficient.peter1997-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.
* Dynamically size fd_set in select rather than fail if too many filespeter1997-06-271-8/+9
| | | | | are open. Obtained from: OpenBSD; by deraadt and dm
* Merge in bind-4.9.6 resolver changes. Note that they resolve thepeter1997-06-271-7/+3
| | | | overflow problem differently.
* Fix problem with FD_SET* overflow reporting.. Perror() didn't have enoughpeter1997-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
* Check for overflow of FD_SETguido1997-03-101-1/+6
|
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-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.
* Here goes.. Bring the 4.9.5-P1 resolver into -current. This has thepeter1996-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..
* Sigh, back out the last bright idea I had here about compiling the res_*peter1996-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.
* Merge in bind-4.9.4-P1 resolver...peter1996-08-291-727/+0
|
* General -Wall warning cleanup, part I.jkh1996-07-121-2/+2
| | | | Submitted-By: Kent Vander Velden <graphix@iastate.edu>
* Merge the 4.9.3-rel code into the res_* parts. The gethostXXXbyYYYpeter1996-01-071-57/+61
| | | | parts are not quite so simple..
* Fix bogus include paths, some of which stopped libresolv from compiling.bde1995-08-211-2/+2
|
* Update the resolver part of libc to bind-4.9.3-beta24 level (from beta9p1)peter1995-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>
* Remove trailing whitespace.rgrimes1995-05-301-3/+3
|
* remove need for -DDEBUG from resolver code (conflict with db/hash)pst1994-09-251-38/+33
|
* get* rework and new bind codepst1994-09-251-210/+468
|
* BSD 4.4 Lite Lib Sourcesrgrimes1994-05-271-0/+468
OpenPOWER on IntegriCloud