summaryrefslogtreecommitdiffstats
path: root/lib/libc/net
Commit message (Collapse)AuthorAgeFilesLines
* Add $Id$, to make it simpler for members of the translation teams tonik1999-07-126-0/+6
| | | | | | | | | | | | | | | | | track. The $Id$ line is normally at the bottom of the main comment block in the man page, separated from the rest of the manpage by an empty comment, like so; .\" $Id$ .\" If the immediately preceding comment is a @(#) format ID marker than the the $Id$ will line up underneath it with no intervening blank lines. Otherwise, an additional blank line is inserted. Approved by: bde
* Ensure that host_addr (which is returned in struct hostent::h_addr_list[0])dt1999-06-071-2/+2
| | | | is aligned so that pointer to it can be safely casted to struct in_addr *.
* Change an internal variable from "class" to "ns_class" for C++'s benefit.peter1999-06-041-2/+2
| | | | | | Apparently BIND-8.2.1 uses ns_class. Submitted by: John Plevyak <jplevyak@inktomi.com>
* Mention that getservbyport requires its port parameter to be inghelmer1999-03-021-2/+3
| | | | | | network byte order. PR: docs/9376
* Removed occurrences of consecutive repeated words (such as "the the").alex1999-02-122-3/+2
|
* gethostbyname2() was broken for lookups via NIS on FreeBSD/alphagallatin1999-01-251-4/+7
| | | | | due to _gethostbynis() setting h.h_length to sizeof(u_long), which works out to 8 on alphas. And 8!= NS_INADDRSZ.
* 64bit portability fixes.dfr1998-10-051-11/+11
| | | | Submitted by: Andrew Gallatin <gallatin@cs.duke.edu>
* o use strncpy safelyimp1998-09-141-3/+8
| | | | | | | o Only allow options and domain name to be set when we aren't running setuid. Obtained from: OpenBSD
* Implement the weak aliases for private entry points in the inet_*jdp1998-09-0220-90/+167
| | | | | | | | | | | 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.
* Fixed bitrot in prototypes in synopsis.bde1998-08-031-5/+5
|
* Fixed printf format errors.bde1998-06-301-1/+1
|
* 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-1125-1733/+3219
| | | | | | getXXXXbyYYYY() interfaces yet. Obtained from: diff relative to bind-8.1.2 sources
* Spelling corrections.jkoshy1998-06-062-3/+3
| | | | | PR: 6868 Submitted by: Josh Gilliam <josh@quick.net>
* 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-023-249/+753
| | | | | | 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.
* (Ab)use .Vt instead of .Fd for a variable declaration.bde1998-03-231-2/+2
|
* .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aqcharnier1998-03-191-3/+4
|
* Change MACHINE references to MACHINE_ARCH.jb1998-02-201-3/+3
|
* Add #include <string.h> to get prototypes.jb1998-02-201-1/+2
|
* Fixed #includes in the synopsis and in an example. <sys/socket.h>bde1998-01-201-1/+1
| | | | | | isn't a prerequisite, since it isn't required for the prototypes and isn't always needed to call the functions (the address family might be a variable).
* handle long usernames more carefullyimp1998-01-071-5/+8
| | | | | Reviewed by: guido Obtained from: OpenBSD (Theo de Raadt)
* Removed unnecessary initialization of hp in gethostbyaddr_r.alex1997-12-251-3/+3
|
* Sorted lists.bde1997-10-211-20/+19
|
* Removed the subdirectory paths from the definitions of MAN[1-9]. Theybde1997-10-151-7/+5
| | | | | were a workaround for limitations in bsd.man.mk that were fixed about 2 years ago.
* 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.
* Add "options no_tld_query" to resolv.conf.brian1997-09-012-4/+6
| | | | | | Mention the capability in resolver(5). Mention that RES_OPTIONS can be used in resolver(5). Discussed with: -hackers
* kill the undeadpeter1997-07-133-239/+0
|
* This commit was generated by cvs2svn to compensate for changes in r27180,bde1997-07-033-0/+239
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Import Lite2's src/lib, except for non-i386 machine-dependent directories,bde1997-07-034-4/+243
| | | | | | | | | | libc/db, libc/gen/crypt.* and libtelnet. All affected files except 3 unimportant ones have already left the vendor branch.
| * pull this in to avoid fixing these twicepeter1996-08-301-5/+6
| |
| * recording cvs-1.6 file deathpeter1995-12-303-239/+0
| |
* | 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
* | compensate for res_send <-> __res_send changespeter1997-06-271-2/+4
| |
* | Merge in bind-4.9.6 resolver changes. Note that they resolve thepeter1997-06-2710-69/+97
| | | | | | | | overflow problem differently.
* | Typo.charnier1997-06-181-2/+3
| |
* | Add MAXHOSTNAMELEN checkache1997-06-131-1/+3
| | | | | | | | Obtained from: OpenBSD
* | Changed all paths to be relative to src/lib instead of src/lib/libcjb1997-05-031-3/+7
| | | | | | | | | | | | | | | | | | | | so that all these makefiles can be used to build libc_r too. Added .if ${LIB} == "c" tests to restrict man page builds to libc to avoid needlessly building them with libc_r too. Split libc Makefile into Makefile and Makefile.inc to allow the libc_r Makefile to include Makefile.inc too.
* | Fixed #include and/or prototype bugs in synopsis.bde1997-04-134-10/+21
| |
* | If we're running setuid/setguid then don't open the host alias file toimp1997-03-241-1/+4
| | | | | | | | | | | | | | | | prevent information leakage. Closes PR 2578 Submitted by: Julian Assange
* | Fixed missing #include of <sys/types.h> and wrong arg types in synopsis.bde1997-03-191-5/+6
| | | | | | | | Reviewed by: wollman
* | Fixed missing function types in synopsis.bde1997-03-191-0/+3
| |
* | 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
* | _res_close() -> res_close()peter1997-03-121-2/+2
| | | | | | | | Pointed out by: bde
* | Check for overflow of FD_SETguido1997-03-101-1/+6
| |
* | getnetbyaddr now takes an unsigned long as its first argument.mpp1997-02-281-1/+1
| |
* | Buffer overflow from DNS name information which could cause root accessimp1997-02-261-1/+2
| | | | | | | | | | | | | | when called from lpd. Reviewed by: jkh, pst Submitted by: Oliver Friedrichs <oliver@secnet.com>
* | Revert $FreeBSD$ to $Id$peter1997-02-2231-35/+35
| |
OpenPOWER on IntegriCloud