aboutsummaryrefslogtreecommitdiffstats
path: root/lib/libc/net/gethostbyname.3
Commit message (Collapse)AuthorAgeFilesLines
* libc: Fix most issues reported by mandocGordon Bergling2020-12-191-20/+20
| | | | | | | | | | | | | | - varios "new sentence, new line" warnings - varios "sections out of conventional order" warnings - varios "unusual Xr order" warnings - varios "missing section argument" warnings - varios "no blank before trailing delimiter" warnings - varios "normalizing date format" warnings MFC after: 1 month Notes: svn path=/head/; revision=368817
* mdoc style: start new sentence on new lineBenjamin Kaduk2017-10-041-2/+4
| | | | Notes: svn path=/head/; revision=324277
* Fix typo.Cy Schubert2017-10-041-1/+1
| | | | | | | Reported by: se Notes: svn path=/head/; revision=324260
* Clarify the wording describing the stayopen flag.Cy Schubert2017-10-041-9/+8
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=324249
* Renumber copyright clause 4Warner Losh2017-02-281-1/+1
| | | | | | | | | | | | Renumber cluase 4 to 3, per what everybody else did when BSD granted them permission to remove clause 3. My insistance on keeping the same numbering for legal reasons is too pedantic, so give up on that point. Submitted by: Jan Schaumann <jschauma@stevens.edu> Pull Request: https://github.com/freebsd/freebsd/pull/96 Notes: svn path=/head/; revision=314436
* Consistently use 'af' as an argument name for address family.Pawel Jakub Dawidek2013-08-181-2/+2
| | | | | | | | Now both gethostbyname2(3) and gethostbyaddr(3) use the same argument name. The same argument name is also used in implementations of those functions. Notes: svn path=/head/; revision=254484
* Per Regents of the University of Calfornia letter, remove advertisingWarner Losh2007-01-091-4/+0
| | | | | | | | | clause. # If I've done so improperly on a file, please let me know. Notes: svn path=/head/; revision=165903
* Document return values for res_query and res_search.Sam Lawrance2006-11-041-2/+2
| | | | | | | | | | | | h_errno is not an extern int, just a macro providing an integer lvalue. PR: doc/50573 Submitted by: Ronald F.Guilmette <rfg@monkeys.com> Reviewed by: trhodes MFC after: 3 days Notes: svn path=/head/; revision=163982
* Markup fixes.Ruslan Ermilov2006-09-171-1/+1
| | | | Notes: svn path=/head/; revision=162385
* Fix gethostbyaddr() prototype to conform to IEEE Std 1003.1:Hajimu UMEMOTO2006-05-121-2/+2
| | | | | | | | | | | | | http://www.opengroup.org/onlinepubs/009695399/functions/gethostbyaddr.html gethostbyaddr_r() is changed as well. It breaks ABI backward compatibility on 64 bit arch. So, we fix it on 32 bit arch only for now. Reported by: Rostislav Krasny <rosti.bsd@gmail.com> Notes: svn path=/head/; revision=158477
* make gethostby*() thread-safe.Hajimu UMEMOTO2005-04-281-6/+6
| | | | Notes: svn path=/head/; revision=145633
* add IPv6 awareness for NIS query of gethostby*().Hajimu UMEMOTO2005-04-261-10/+0
| | | | | | | Inspired by: NetBSD Notes: svn path=/head/; revision=145550
* Mechanically kill hard sentence breaks.Ruslan Ermilov2004-07-021-1/+1
| | | | Notes: svn path=/head/; revision=131504
* Make the resolver(3) and many associated interfaces much more reentrant.Brian Feldman2004-02-251-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The getaddrinfo(3), getipnodebyname(3) and resolver(3) can coincide now with what should be totally reentrant, and h_errno values will now be preserved correctly, but this does not affect interfaces such as gethostbyname(3) which are still mostly non-reentrant. In all of these relevant functions, the thread-safety has been pushed down as far as it seems possible right now. This means that operations that are selected via nsdispatch(3) (i.e. files, yp, dns) are protected still under global locks that getaddrinfo(3) defines, but where possible the locking is greatly reduced. The most noticeable improvement is that multiple DNS lookups can now be run at the same time, and this shows major improvement in performance of DNS-lookup threaded programs, and solves the "Mozilla tab serialization" problem. No single-threaded applications need to be recompiled. Multi-threaded applications that reference "_res" to change resolver(3) options will need to be recompiled, and ones which reference "h_errno" will also if they desire the correct h_errno values. If the applications already understood that _res and h_errno were not thread-safe and had their own locking, they will see no performance improvement but will not actually break in any way. Please note that when NSS modules are used, or when nsdispatch(3) defaults to adding any lookups of its own to the individual libc _nsdispatch() calls, those MUST be reentrant as well. Notes: svn path=/head/; revision=126243
* .Xr -> .Lb for librairy. There is no manual page corresponding to .Xr.Philippe Charnier2003-06-081-1/+1
| | | | Notes: svn path=/head/; revision=116022
* The .Fn functionPhilippe Charnier2003-02-061-1/+2
| | | | Notes: svn path=/head/; revision=110440
* mdoc(7) police: "The .Fa argument.".Ruslan Ermilov2002-12-191-6/+6
| | | | Notes: svn path=/head/; revision=108087
* mdoc(7) police: "The .Fn function".Ruslan Ermilov2002-12-181-0/+2
| | | | Notes: svn path=/head/; revision=108037
* yp(4) -> yp(8).Ruslan Ermilov2002-01-141-1/+1
| | | | | | | PR: docs/30797 Notes: svn path=/head/; revision=89362
* mdoc(7) police: Use the new .In macro for #include statements.Ruslan Ermilov2001-10-011-1/+1
| | | | Notes: svn path=/head/; revision=84306
* Urge the reader to start using getaddrinfo(3) and getnameinfo(3)Ruslan Ermilov2001-08-081-0/+14
| | | | | | | | | | protocol-independant functions that don't use static memory area. Suggested by: nik Liked by: ume, brian Notes: svn path=/head/; revision=81283
* Remove whitespace at EOL.Dima Dorfman2001-07-151-5/+5
| | | | Notes: svn path=/head/; revision=79754
* mdoc(7) police: removed HISTORY info from the .Os call.Ruslan Ermilov2001-07-101-1/+1
| | | | Notes: svn path=/head/; revision=79531
* mdoc(7) police: sort xrefs.Ruslan Ermilov2001-05-151-1/+1
| | | | Notes: svn path=/head/; revision=76620
* gethostbyname2() can't do AF_INET6 lookups over NIS.Alexander Langer2001-05-081-0/+7
| | | | | | | | | getaddrinfo(3) must be used. Submitted by: ume Notes: svn path=/head/; revision=76369
* Add getaddrinfo(3) to the "SEE ALSO" list.Archie Cobbs2001-04-271-0/+1
| | | | Notes: svn path=/head/; revision=76076
* mdoc(7) police: polishing.Ruslan Ermilov2001-02-101-32/+43
| | | | Notes: svn path=/head/; revision=72314
* Describe the arguments to gethostbyaddr.Nik Clayton2001-02-091-1/+46
| | | | | | | | | PR: docs/24225 Submitted by: Joakim Henriksson <jurduth@ludd.luth.se> Patch from: ben Notes: svn path=/head/; revision=72251
* mdoc(7) police: Ft/Vt now accept punctuation-type arguments.Ruslan Ermilov2001-01-121-1/+1
| | | | Notes: svn path=/head/; revision=70974
* gethostbyname2() is able to lookup AF_INET6.Alexander Langer2001-01-061-10/+0
| | | | | | | | PR: 23823 Noticed by: Andrew Arensburger <arensb@ooblick.com> Notes: svn path=/head/; revision=70710
* Add nsswitch support. By creating an /etc/nsswitch.conf file, you canJacques Vidrine2000-09-061-6/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | configure FreeBSD so that various databases such as passwd and group can be looked up using flat files, NIS, or Hesiod. = Hesiod has been added to libc (see hesiod(3)). = A library routine for parsing nsswitch.conf and invoking callback functions as specified has been added to libc (see nsdispatch(3)). = The following C library functions have been modified to use nsdispatch: . getgrent, getgrnam, getgrgid . getpwent, getpwnam, getpwuid . getusershell . getaddrinfo . gethostbyname, gethostbyname2, gethostbyaddr . getnetbyname, getnetbyaddr . getipnodebyname, getipnodebyaddr, getnodebyname, getnodebyaddr = host.conf has been removed from src/etc. rc.network has been modified to warn that host.conf is no longer used at boot time. In addition, if there is a host.conf but no nsswitch.conf, the latter is created at boot time from the former. Obtained from: NetBSD Notes: svn path=/head/; revision=65532
* Introduce ".Lb" macro to libc manpages.Alexey Zelkin2000-04-211-0/+2
| | | | | | | More libraries manpages updates following. Notes: svn path=/head/; revision=59460
* Fix typoAlexey Zelkin1999-09-191-1/+1
| | | | | | | | PR: docs/13814 Submitted by: Alex Vasylenko <lxv@mix.nest.org> Notes: svn path=/head/; revision=51419
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50476
* Spelling corrections.Joseph Koshy1998-06-061-2/+2
| | | | | | | | PR: 6868 Submitted by: Josh Gilliam <josh@quick.net> Notes: svn path=/head/; revision=36692
* (Ab)use .Vt instead of .Fd for a variable declaration.Bruce Evans1998-03-231-2/+2
| | | | Notes: svn path=/head/; revision=34817
* Typo.Philippe Charnier1997-06-181-2/+3
| | | | Notes: svn path=/head/; revision=26721
* Fixed missing function types in synopsis.Bruce Evans1997-03-191-0/+3
| | | | Notes: svn path=/head/; revision=24006
* Doc updates and cleanups made with the bind-4.9.4 update some time ago.Peter Wemm1996-11-011-11/+63
| | | | | | | I thought I had committed these, but it seems not. Notes: svn path=/head/; revision=19302
* Fix an error in the description of "h_errno". Add "const" to a fewJohn Polstra1996-10-081-4/+4
| | | | | | | declarations to make them agree with the actual prototypes in <netdb.h>. Notes: svn path=/head/; revision=18824
* back out last two changes, this caused the mandoc pages to be replaced byPeter Wemm1996-08-301-155/+178
| | | | | | | man pages. I'll fold in the real changes in a seperate commit. Notes: svn path=/head/; revision=17955
* The last commit failed part-way through, re-add the generatedPeter Wemm1996-08-291-0/+226
| | | | | | | resolver man pages. Notes: svn path=/head/; revision=17917
* Merge in bind-4.9.4-P1 resolver...Peter Wemm1996-08-291-249/+0
| | | | Notes: svn path=/head/; revision=17903
* BSD 4.4 Lite Lib SourcesRodney W. Grimes1994-05-271-0/+249
Notes: svn path=/cvs2svn/branches/unlabeled-1.1.1/; revision=1573