Penguin
Diff: gethostbyname(3)
EditPageHistoryDiffInfoLikePages

Differences between current version and revision by previous author of gethostbyname(3).

Other diffs: Previous Major Revision, Previous Revision, or view the Annotated Edit History

Newer page: version 4 Last edited on Monday, July 21, 2003 11:40:42 am by SamJansen
Older page: version 3 Last edited on Saturday, November 30, 2002 3:02:48 pm by PerryLorier Revert
@@ -1,14 +1,17 @@
 !!NAME 
 gethostbyname, gethostbyaddr, sethostent, endhostent, herror, hstrerror - get network host entry 
 !!SYNOPSIS 
-__#include__  
- struct hostent *gethostbyname(const char *__''name''__);  
- struct hostent *gethostbyname2(const char *__''name''__, int__ ''af''__);  
- #include  
- __''addr''__, int__ ''len''__, int__ ''type''__);__  
- __void sethostent(int__ ''stayopen''__);  
- __void endhostent(void); 
+ __#include <netdb.h> __  
+ __extern int__ ''h_errno''__;__  
+  
+ __ struct hostent *gethostbyname(const char *__''name''__);__  
+ __ struct hostent *gethostbyname2(const char *__''name''__, int__ ''af''__);__  
+  
+ __ #include <sys/socket.h> /* For AF_INET */__  
+ __struct hostent *gethostbyaddr(const char * __''addr''__, int__ ''len''__, int__ ''type''__);__  
+ __void sethostent(int__ ''stayopen''__);__  
+ __void endhostent(void);__  
  __void herror(const char *__''s''__);__ 
  __const char * hstrerror(int__ ''err''__);__ 
 !!DESCRIPTION 
  
@@ -81,10 +84,10 @@
 __struct hostent *gethostbyname2(const char *__''name''__, int__ ''af''__);__ that works like __gethostbyname()__, but permits to specify the address family to which the address must belong. 
  
 The Austin draft marks __gethostbyaddr()__ and __gethostbyname()__ legacy, and introduces 
  
- __struct hostent *getipnodebyaddr (const void *restrict__ ''addr''__, socklen_t__ ''len''__, int__ ''type''__, int *restrict__ ''error_num''__);  
- struct hostent *getipnodebyname (const char *__''name''__, int__ ''type''__, int__ ''flags''__, int *__''error_num''__);__ 
+ __struct hostent *getipnodebyaddr (const void *restrict__ ''addr''__, socklen_t__ ''len''__, int__ ''type''__, int *restrict__ ''error_num''__);__  
+ __ struct hostent *getipnodebyname (const char *__''name''__, int__ ''type''__, int__ ''flags''__, int *__''error_num''__);__ 
  
 !!SEE ALSO 
  
 resolver(3), hosts(5), hostname(7), resolv+(8), named(8) 
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.