summaryrefslogtreecommitdiff
path: root/lib/libc/net
Commit message (Collapse)AuthorAgeFilesLines
* This commit was manufactured by cvs2svn to create tagrelease/3.0.0_cvscvs2svn1999-01-2141-44/+44
| | | | | | | 'RELENG_3_0_0_RELEASE'. This commit was manufactured to restore the state of the 3.0-RELEASE image. Releases prior to 5.3-RELEASE are omitting the secure/ and crypto/ subdirs.
* 64bit portability fixes.Doug Rabson1998-10-051-11/+11
| | | | | | | Submitted by: Andrew Gallatin <gallatin@cs.duke.edu> Notes: svn path=/head/; revision=39979
* o use strncpy safelyWarner Losh1998-09-141-3/+8
| | | | | | | | | | o Only allow options and domain name to be set when we aren't running setuid. Obtained from: OpenBSD Notes: svn path=/head/; revision=39194
* Implement the weak aliases for private entry points in the inet_*John Polstra1998-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. Notes: svn path=/head/; revision=38736
* Fixed bitrot in prototypes in synopsis.Bruce Evans1998-08-031-5/+5
| | | | Notes: svn path=/head/; revision=38060
* Fixed printf format errors.Bruce Evans1998-06-301-1/+1
| | | | Notes: svn path=/head/; revision=37301
* 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-1125-1733/+3219
| | | | | | | | | getXXXXbyYYYY() interfaces yet. Obtained from: diff relative to bind-8.1.2 sources Notes: svn path=/head/; revision=36891
* Spelling corrections.Joseph Koshy1998-06-062-3/+3
| | | | | | | | PR: 6868 Submitted by: Josh Gilliam <josh@quick.net> Notes: svn path=/head/; revision=36692
* 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-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. Notes: svn path=/head/; revision=35623
* (Ab)use .Vt instead of .Fd for a variable declaration.Bruce Evans1998-03-231-2/+2
| | | | Notes: svn path=/head/; revision=34817
* .Sh AUTHOR -> .Sh AUTHORS. Use .An/.AqPhilippe Charnier1998-03-191-3/+4
| | | | Notes: svn path=/head/; revision=34669
* Change MACHINE references to MACHINE_ARCH.John Birrell1998-02-201-3/+3
| | | | Notes: svn path=/head/; revision=33668
* Add #include <string.h> to get prototypes.John Birrell1998-02-201-1/+2
| | | | Notes: svn path=/head/; revision=33667
* Fixed #includes in the synopsis and in an example. <sys/socket.h>Bruce Evans1998-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). Notes: svn path=/head/; revision=32647
* handle long usernames more carefullyWarner Losh1998-01-071-5/+8
| | | | | | | | Reviewed by: guido Obtained from: OpenBSD (Theo de Raadt) Notes: svn path=/head/; revision=32299
* Removed unnecessary initialization of hp in gethostbyaddr_r.Alexander Langer1997-12-251-3/+3
| | | | Notes: svn path=/head/; revision=31984
* Sorted lists.Bruce Evans1997-10-211-20/+19
| | | | Notes: svn path=/head/; revision=30624
* Removed the subdirectory paths from the definitions of MAN[1-9]. TheyBruce Evans1997-10-151-7/+5
| | | | | | | | were a workaround for limitations in bsd.man.mk that were fixed about 2 years ago. Notes: svn path=/head/; revision=30447
* 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
* Add "options no_tld_query" to resolv.conf.Brian Somers1997-09-012-4/+6
| | | | | | | | | Mention the capability in resolver(5). Mention that RES_OPTIONS can be used in resolver(5). Discussed with: -hackers Notes: svn path=/head/; revision=28982
* kill the undeadPeter Wemm1997-07-133-239/+0
| | | | Notes: svn path=/head/; revision=27369
* This commit was generated by cvs2svn to compensate for changes in r27180,Bruce Evans1997-07-033-0/+239
|\ | | | | | | | | | | | | which included commits to RCS files with non-trunk default branches. Notes: svn path=/head/; revision=27181
| * Import Lite2's src/lib, except for non-i386 machine-dependent directories,Bruce Evans1997-07-0310-0/+2712
| | | | | | | | | | | | | | | | libc/db, libc/gen/crypt.* and libtelnet. All affected files except 3 unimportant ones have already left the vendor branch. Notes: svn path=/vendor/CSRG/dist/; revision=27180
| * pull this in to avoid fixing these twicePeter Wemm1996-08-301-0/+250
| | | | Notes: svn path=/vendor/CSRG/dist/; revision=17961
* 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
* compensate for res_send <-> __res_send changesPeter Wemm1997-06-271-2/+4
| | | | Notes: svn path=/head/; revision=26976
* Merge in bind-4.9.6 resolver changes. Note that they resolve thePeter Wemm1997-06-2710-69/+97
| | | | | | | overflow problem differently. Notes: svn path=/head/; revision=26974
* Typo.Philippe Charnier1997-06-181-2/+3
| | | | Notes: svn path=/head/; revision=26721
* Add MAXHOSTNAMELEN checkAndrey A. Chernov1997-06-131-1/+3
| | | | | | | Obtained from: OpenBSD Notes: svn path=/head/; revision=26616
* Changed all paths to be relative to src/lib instead of src/lib/libcJohn Birrell1997-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. Notes: svn path=/head/; revision=25401
* Fixed #include and/or prototype bugs in synopsis.Bruce Evans1997-04-134-10/+21
| | | | Notes: svn path=/head/; revision=24877
* If we're running setuid/setguid then don't open the host alias file toWarner Losh1997-03-241-1/+4
| | | | | | | | | | | prevent information leakage. Closes PR 2578 Submitted by: Julian Assange Notes: svn path=/head/; revision=24196
* Fixed missing #include of <sys/types.h> and wrong arg types in synopsis.Bruce Evans1997-03-191-5/+6
| | | | | | | Reviewed by: wollman Notes: svn path=/head/; revision=24047
* Fixed missing function types in synopsis.Bruce Evans1997-03-191-0/+3
| | | | Notes: svn path=/head/; revision=24006
* 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
* _res_close() -> res_close()Peter Wemm1997-03-121-2/+2
| | | | | | | Pointed out by: bde Notes: svn path=/head/; revision=23766
* Check for overflow of FD_SETGuido van Rooij1997-03-101-1/+6
| | | | Notes: svn path=/head/; revision=23617
* getnetbyaddr now takes an unsigned long as its first argument.Mike Pritchard1997-02-281-1/+1
| | | | Notes: svn path=/head/; revision=23180
* Buffer overflow from DNS name information which could cause root accessWarner Losh1997-02-261-1/+2
| | | | | | | | | | when called from lpd. Reviewed by: jkh, pst Submitted by: Oliver Friedrichs <oliver@secnet.com> Notes: svn path=/head/; revision=23128
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-2231-35/+35
| | | | Notes: svn path=/head/; revision=22993
* Fix PR2579: potential security hole in rcmd.cWarner Losh1997-02-091-2/+2
| | | | | | | Submitted by: Julian Assange Notes: svn path=/head/; revision=22469
* Update to reflect current include files.Mike Pritchard1997-01-301-3/+12
| | | | Notes: svn path=/head/; revision=22140
* Sort cross references.Wolfram Schneider1997-01-202-2/+3
| | | | Notes: svn path=/head/; revision=21907
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-1431-35/+35
| | | | | | | | | | | 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
* Fix fake failures on the short names which looks like hexadecimal numbersAndrey A. Chernov1997-01-081-8/+4
| | | | | | | Submitted by: paul@vix.com Notes: svn path=/head/; revision=21433
* Disable isxdigit block until proper solution will be foundAndrey A. Chernov1997-01-051-2/+7
| | | | | | | | isxdigit(name[0]) gives false failures on short names which looks like hexadecimal digits, f.e. "fade", "babe", "d133", etc. Notes: svn path=/head/; revision=21343