Changeset 354 for trunk/src/emx/include/netdb.h
- Timestamp:
- Jul 11, 2003, 1:39:47 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/emx/include/netdb.h
-
Property cvs2svn:cvs-rev
changed from
1.3
to1.4
r353 r354 34 34 * 35 35 * from: @(#)netdb.h 5.15 (Berkeley) 4/3/91 36 * netdb.h,v 1. 3 2003/05/19 13:20:02bird Exp36 * netdb.h,v 1.4 2003/07/11 11:39:47 bird Exp 37 37 */ 38 38 … … 165 165 #endif 166 166 167 #ifdef TCPV40HDRS 168 /** @name tcpip40 function mappings. 169 * @{ */ 170 #define gethostname tcpip40_gethostname 171 #define gethostbyname tcpip40_gethostbyname 172 #define gethostbyaddr tcpip40_gethostbyaddr 173 #define getnetbyname tcpip40_getnetbyname 174 #define getnetbyaddr tcpip40_getnetbyaddr 175 #define getservbyname tcpip40_getservbyname 176 #define getservbyport tcpip40_getservbyport 177 #define getservent tcpip40_getservent 178 #define getprotobyname tcpip40_getprotobyname 179 #define getprotobynumber tcpip40_getprotobynumber 180 #define sethostent tcpip40_sethostent 181 #define gethostent tcpip40_gethostent 182 #define endhostent tcpip40_endhostent 183 #define setnetent tcpip40_setnetent 184 #define getnetent tcpip40_getnetent 185 #define endnetent tcpip40_endnetent 186 #define setprotoent tcpip40_setprotoent 187 #define getprotoent tcpip40_getprotoent 188 #define endprotoent tcpip40_endprotoent 189 #define setservent tcpip40_setservent 190 #define getservent tcpip40_getservent 191 #define endservent tcpip40_endservent 192 #define tcp_h_errno tcpip40_tcp_h_errno 193 #define Rgethostbyname tcpip40_Rgethostbyname 194 /* @} */ 195 #endif 196 167 #ifndef TCPCALL 168 #define TCPCALL _System 169 #endif 197 170 198 171 /* BSD */ 199 int _Systemgethostname( char *, int );200 struct hostent * _Systemgethostbyname( __const__ char * );201 struct hostent * _Systemgethostbyaddr( __const__ char *, int, int );202 struct netent * _Systemgetnetbyname( __const__ char * );203 struct netent * _Systemgetnetbyaddr( unsigned long, int );204 struct servent * _Systemgetservbyname( __const__ char *, char * );205 struct servent * _Systemgetservbyport( int, __const__ char * );206 struct servent * _Systemgetservent( void );207 struct protoent * _Systemgetprotobyname( __const__ char * );208 struct protoent * _Systemgetprotobynumber( int );209 void _Systemsethostent( int );210 struct hostent * _Systemgethostent( void );211 void _Systemendhostent(void);212 void _Systemsetnetent( int );213 struct netent * _Systemgetnetent( void );214 void _Systemendnetent(void);215 void _Systemsetprotoent( int );216 struct protoent * _Systemgetprotoent( void );217 void _Systemendprotoent(void);218 void _Systemsetservent( int );219 struct servent * _Systemgetservent( void );220 void _Systemendservent(void);172 int TCPCALL gethostname( char *, int ); 173 struct hostent * TCPCALL gethostbyname( __const__ char * ); 174 struct hostent * TCPCALL gethostbyaddr( __const__ char *, int, int ); 175 struct netent * TCPCALL getnetbyname( __const__ char * ); 176 struct netent * TCPCALL getnetbyaddr( unsigned long, int ); 177 struct servent * TCPCALL getservbyname( __const__ char *, char * ); 178 struct servent * TCPCALL getservbyport( int, __const__ char * ); 179 struct servent * TCPCALL getservent( void ); 180 struct protoent * TCPCALL getprotobyname( __const__ char * ); 181 struct protoent * TCPCALL getprotobynumber( int ); 182 void TCPCALL sethostent( int ); 183 struct hostent * TCPCALL gethostent( void ); 184 void TCPCALL endhostent(void); 185 void TCPCALL setnetent( int ); 186 struct netent * TCPCALL getnetent( void ); 187 void TCPCALL endnetent(void); 188 void TCPCALL setprotoent( int ); 189 struct protoent * TCPCALL getprotoent( void ); 190 void TCPCALL endprotoent(void); 191 void TCPCALL setservent( int ); 192 struct servent * TCPCALL getservent( void ); 193 void TCPCALL endservent(void); 221 194 #ifndef TCPV40HDRS 222 struct hostent * _Systemgethostbyname2( __const__ char *, int );195 struct hostent * TCPCALL gethostbyname2( __const__ char *, int ); 223 196 #endif 224 197 … … 226 199 /* OS2 Additions */ 227 200 #ifdef TCPV40HDRS 228 int _Systemtcp_h_errno(void);229 struct hostent * _SystemRgethostbyname(char *); /* Socks additions */201 int TCPCALL tcp_h_errno(void); 202 struct hostent * TCPCALL Rgethostbyname(char *); /* Socks additions */ 230 203 #else 231 const char * _Systemhstrerror(int);232 /* void _Systemsethostfile(const char *); */233 int * _Systemtcp_h_errno1(void);204 const char * TCPCALL hstrerror(int); 205 /* void TCPCALL sethostfile(const char *); */ 206 int * TCPCALL tcp_h_errno1(void); 234 207 #endif 235 208 -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.