Changeset 354
- Timestamp:
- Jul 11, 2003, 1:39:47 PM (22 years ago)
- Location:
- trunk/src/emx/include
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/emx/include/arpa/inet.h
-
Property cvs2svn:cvs-rev
changed from
1.3
to1.4
r353 r354 44 44 #endif 45 45 46 47 #ifdef TCPV40HDRS 48 /** @name tcpip40 function mappings. 49 * @{ */ 50 #define inet_addr tcpip40_inet_addr 51 #define inet_lnaof tcpip40_inet_lnaof 52 #define inet_makeaddr tcpip40_inet_makeaddr 53 #define inet_netof tcpip40_inet_netof 54 #define inet_network tcpip40_inet_network 55 #define inet_ntoa tcpip40_inet_ntoa 56 /* @} */ 46 #ifndef TCPCALL 47 #define TCPCALL _System 57 48 #endif 58 49 … … 64 55 #include <sys/types.h> 65 56 #include <sys/cdefs.h> 66 int _Systeminet_aton (const char *, struct in_addr *);67 char * _Systeminet_neta (u_long, char *, size_t);68 char * _Systeminet_net_ntop (int, const void *, int, char *, size_t);69 int _Systeminet_net_pton (int, const char *, void *, size_t);70 int _Systeminet_pton (int af, const char *src, void *dst);71 const char * _Systeminet_ntop (int af, const void *src, char *dst, size_t s);72 u_int _Systeminet_nsap_addr (const char *, u_char *, int maxlen);73 char * _Systeminet_nsap_ntoa (int, const u_char *, char *ascii);57 int TCPCALL inet_aton (const char *, struct in_addr *); 58 char * TCPCALL inet_neta (u_long, char *, size_t); 59 char * TCPCALL inet_net_ntop (int, const void *, int, char *, size_t); 60 int TCPCALL inet_net_pton (int, const char *, void *, size_t); 61 int TCPCALL inet_pton (int af, const char *src, void *dst); 62 const char * TCPCALL inet_ntop (int af, const void *src, char *dst, size_t s); 63 u_int TCPCALL inet_nsap_addr (const char *, u_char *, int maxlen); 64 char * TCPCALL inet_nsap_ntoa (int, const u_char *, char *ascii); 74 65 #endif 75 66 76 extern u_long _Systeminet_addr(__const__ char*);77 extern u_long _Systeminet_lnaof(struct in_addr);78 extern struct in_addr _Systeminet_makeaddr(u_long, u_long);79 extern u_long _Systeminet_netof(struct in_addr);80 extern u_long _Systeminet_network(__const__ char*);81 extern char* _Systeminet_ntoa(struct in_addr);67 extern u_long TCPCALL inet_addr(__const__ char*); 68 extern u_long TCPCALL inet_lnaof(struct in_addr); 69 extern struct in_addr TCPCALL inet_makeaddr(u_long, u_long); 70 extern u_long TCPCALL inet_netof(struct in_addr); 71 extern u_long TCPCALL inet_network(__const__ char*); 72 extern char* TCPCALL inet_ntoa(struct in_addr); 82 73 83 74 #if defined (__cplusplus) -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/include/arpa/nameser.h
-
Property cvs2svn:cvs-rev
changed from
1.3
to1.4
r353 r354 362 362 363 363 364 #ifdef TCPV40HDRS365 /** @name tcpip40 function mappings.366 * @{ */367 #define _getshort tcpip40__getshort368 #define _getlong tcpip40__getlong369 #define putshort tcpip40_putshort370 #define putlong tcpip40_putlong371 #define dn_expand tcpip40_dn_expand372 #define dn_comp tcpip40_dn_comp373 #define dn_find tcpip40_dn_find374 #define dn_skipname tcpip40_dn_skipname375 #define res_init tcpip40_res_init376 #define res_mkquery tcpip40_res_mkquery377 #define res_send tcpip40_res_send378 #define res_query tcpip40_res_query379 #define res_search tcpip40_res_search380 #define res_querydomain tcpip40_res_querydomain381 /* @} */382 #endif383 384 364 /* function prototypes */ 385 u_short _System _getshort(u_char*); 386 u_long _System _getlong(u_char*); 365 #ifndef TCPCALL 366 #define TCPCALL _System 367 #endif 368 369 u_short TCPCALL _getshort(u_char*); 370 u_long TCPCALL _getlong(u_char*); 387 371 #ifdef TCPV40HDRS /* newer have this in resolver */ 388 void _Systemputshort(u_short, u_char *);389 void _Systemputlong(u_long, u_char *);390 int _Systemdn_expand(__const__ u_char*, __const__ u_char*, __const__ u_char*, u_char*, int);391 int _Systemdn_comp(__const__ u_char*, u_char*, int, u_char**, u_char**);392 int _Systemdn_find(u_char*, u_char*, u_char**, u_char**);393 int _Systemdn_skipname(__const__ u_char*, __const__ u_char*);394 int _Systemres_init(void);395 int _Systemres_mkquery(int, __const__ char*, int, int, __const__ char*, int, __const__ struct rrec*, char*, int);396 int _Systemres_send(__const__ char*, int, char*, int);397 int _Systemres_query(char*, int, int, u_char*, int);398 int _Systemres_search(char*, int, int, u_char*, int);399 int _Systemres_querydomain(char*, char*, int, int, u_char*, int);372 void TCPCALL putshort(u_short, u_char *); 373 void TCPCALL putlong(u_long, u_char *); 374 int TCPCALL dn_expand(__const__ u_char*, __const__ u_char*, __const__ u_char*, u_char*, int); 375 int TCPCALL dn_comp(__const__ u_char*, u_char*, int, u_char**, u_char**); 376 int TCPCALL dn_find(u_char*, u_char*, u_char**, u_char**); 377 int TCPCALL dn_skipname(__const__ u_char*, __const__ u_char*); 378 int TCPCALL res_init(void); 379 int TCPCALL res_mkquery(int, __const__ char*, int, int, __const__ char*, int, __const__ struct rrec*, char*, int); 380 int TCPCALL res_send(__const__ char*, int, char*, int); 381 int TCPCALL res_query(char*, int, int, u_char*, int); 382 int TCPCALL res_search(char*, int, int, u_char*, int); 383 int TCPCALL res_querydomain(char*, char*, int, int, u_char*, int); 400 384 #endif 401 385 -
Property cvs2svn:cvs-rev
changed from
-
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
-
trunk/src/emx/include/resolv.h
-
Property cvs2svn:cvs-rev
changed from
1.3
to1.4
r353 r354 34 34 * 35 35 * from: @(#)resolv.h 5.15 (Berkeley) 4/3/91 36 * resolv.h,v 1. 3 2003/05/19 13:20:02bird Exp36 * resolv.h,v 1.4 2003/07/11 11:39:47 bird Exp 37 37 */ 38 38 … … 160 160 #ifdef TCPV40HDRS 161 161 162 /** @name tcpip40 function mappings.163 * @{ */164 #define _res tcpip40__res165 /* @} */166 162 extern struct state _res; 167 163 … … 192 188 res_sendhookact; 193 189 194 typedef res_sendhookact (* _System res_send_qhook)(struct sockaddr_in * const *ns, 190 #ifndef TCPCALL 191 #define TCPCALL _System 192 #endif 193 194 typedef res_sendhookact (* TCPCALL res_send_qhook)(struct sockaddr_in * const *ns, 195 195 const u_char **query, 196 196 int *querylen, … … 199 199 int *resplen); 200 200 201 typedef res_sendhookact (* _Systemres_send_rhook)(const struct sockaddr_in *ns,201 typedef res_sendhookact (* TCPCALL res_send_rhook)(const struct sockaddr_in *ns, 202 202 const u_char *query, 203 203 int querylen, … … 264 264 #define res_close __res_close 265 265 266 int _Systemres_hnok(const char *);267 int _Systemres_ownok(const char *);268 int _Systemres_mailok(const char *);269 int _Systemres_dnok(const char *);270 int _Systemsym_ston(const struct res_sym *, char *, int *);271 const char * _Systemsym_ntos(const struct res_sym *, int, int *);272 const char * _Systemsym_ntop(const struct res_sym *, int, int *);273 int _Systemb64_ntop(u_char const *, size_t, char *, size_t);274 int _Systemb64_pton(char const *, u_char *, size_t);275 int _Systemloc_aton(const char *, u_char *);276 const char * _Systemloc_ntoa(const u_char *, char *);277 int _Systemdn_skipname(const u_char *, const u_char *);278 void _Systemfp_resstat(struct __res_state *, int);279 void _Systemfp_query(const u_char *, int);280 void _Systemfp_nquery(const u_char *, int, int);281 const char * _Systemhostalias(const char *);282 void _Systemputlong(u_int32_t, u_char *);283 void _Systemputshort(u_int16_t, u_char *);284 const char * _Systemp_class(int);285 const char * _Systemp_time(u_int32_t);286 const char * _Systemp_type(int);287 void _Systemp_query(const u_char *);288 const u_char * _Systemp_cdnname(const u_char *, const u_char *, int, int);289 const u_char * _Systemp_cdname(const u_char *, const u_char *, int);290 const u_char * _Systemp_fqnname(const u_char *cp, const u_char *msg,266 int TCPCALL res_hnok(const char *); 267 int TCPCALL res_ownok(const char *); 268 int TCPCALL res_mailok(const char *); 269 int TCPCALL res_dnok(const char *); 270 int TCPCALL sym_ston(const struct res_sym *, char *, int *); 271 const char * TCPCALL sym_ntos(const struct res_sym *, int, int *); 272 const char * TCPCALL sym_ntop(const struct res_sym *, int, int *); 273 int TCPCALL b64_ntop(u_char const *, size_t, char *, size_t); 274 int TCPCALL b64_pton(char const *, u_char *, size_t); 275 int TCPCALL loc_aton(const char *, u_char *); 276 const char * TCPCALL loc_ntoa(const u_char *, char *); 277 int TCPCALL dn_skipname(const u_char *, const u_char *); 278 void TCPCALL fp_resstat(struct __res_state *, int); 279 void TCPCALL fp_query(const u_char *, int); 280 void TCPCALL fp_nquery(const u_char *, int, int); 281 const char * TCPCALL hostalias(const char *); 282 void TCPCALL putlong(u_int32_t, u_char *); 283 void TCPCALL putshort(u_int16_t, u_char *); 284 const char * TCPCALL p_class(int); 285 const char * TCPCALL p_time(u_int32_t); 286 const char * TCPCALL p_type(int); 287 void TCPCALL p_query(const u_char *); 288 const u_char * TCPCALL p_cdnname(const u_char *, const u_char *, int, int); 289 const u_char * TCPCALL p_cdname(const u_char *, const u_char *, int); 290 const u_char * TCPCALL p_fqnname(const u_char *cp, const u_char *msg, 291 291 int, char *, int); 292 const u_char * _Systemp_fqname(const u_char *, const u_char *, int);293 const u_char * _Systemp_rr(const u_char *, const u_char *, int);294 const char * _Systemp_option(u_long option);295 char * _Systemp_secstodate(u_long);296 int _Systemdn_count_labels(char *);297 int _Systemdn_comp(const char *, u_char *, int,292 const u_char * TCPCALL p_fqname(const u_char *, const u_char *, int); 293 const u_char * TCPCALL p_rr(const u_char *, const u_char *, int); 294 const char * TCPCALL p_option(u_long option); 295 char * TCPCALL p_secstodate(u_long); 296 int TCPCALL dn_count_labels(char *); 297 int TCPCALL dn_comp(const char *, u_char *, int, 298 298 u_char **, u_char **); 299 int _Systemdn_expand(const u_char *, const u_char *, const u_char *,299 int TCPCALL dn_expand(const u_char *, const u_char *, const u_char *, 300 300 char *, int); 301 int _Systemres_init(void);302 u_int _Systemres_randomid(void);303 int _Systemres_query(const char *, int, int, u_char *, int);304 int _Systemres_search(const char *, int, int, u_char *, int);305 int _Systemres_querydomain(const char *, const char *, int, int, u_char *, int);306 int _Systemres_mkquery(int, const char *, int, int, const u_char *, int,301 int TCPCALL res_init(void); 302 u_int TCPCALL res_randomid(void); 303 int TCPCALL res_query(const char *, int, int, u_char *, int); 304 int TCPCALL res_search(const char *, int, int, u_char *, int); 305 int TCPCALL res_querydomain(const char *, const char *, int, int, u_char *, int); 306 int TCPCALL res_mkquery(int, const char *, int, int, const u_char *, int, 307 307 const u_char *, u_char *, int); 308 int _Systemres_send(const u_char *, int, u_char *, int);309 int _Systemres_isourserver(const struct sockaddr_in *);310 int _Systemres_nameinquery(const char *, int, int,308 int TCPCALL res_send(const u_char *, int, u_char *, int); 309 int TCPCALL res_isourserver(const struct sockaddr_in *); 310 int TCPCALL res_nameinquery(const char *, int, int, 311 311 const u_char *, const u_char *); 312 int _Systemres_queriesmatch(const u_char *, const u_char *,312 int TCPCALL res_queriesmatch(const u_char *, const u_char *, 313 313 const u_char *, const u_char *); 314 void _Systemres_close(void);315 int _Systemdn_find(u_char *exp_dn, u_char *msg,314 void TCPCALL res_close(void); 315 int TCPCALL dn_find(u_char *exp_dn, u_char *msg, 316 316 u_char **dnptrs, u_char **lastdnptr); 317 317 #endif /* !TCPV40HDRS */ -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/include/sys/ioccom.h
-
Property cvs2svn:cvs-rev
changed from
1.3
to1.4
r353 r354 72 72 #include <sys/cdefs.h> 73 73 74 #ifndef TCPCALL 75 #define TCPCALL _System 76 #endif 77 74 78 __BEGIN_DECLS 75 79 #ifdef TCPV40HDRS 76 /** @name tcpip40 function mappings.77 * @{ */78 #define so_ioctl tcpip40_so_ioctl79 /* @} */80 81 80 /** The v40 socket ioctl interface. 82 81 * @remark sys based libc have separeate handle spaces for sockets and files 83 82 * therefore this socket specific call. 84 83 */ 85 int _Systemso_ioctl __P((int, int, char *, int));84 int TCPCALL so_ioctl __P((int, int, char *, int)); 86 85 #else 87 86 /** The v41+ BSD socket ioctl interface. … … 89 88 * therefore this socket specific call. 90 89 */ 91 int _Systemso_ioctl __P((int, unsigned long, ...));90 int TCPCALL so_ioctl __P((int, unsigned long, ...)); 92 91 /** The v41+ OS/2 specific socket ioctl interface. */ 93 int _Systemos2_ioctl __P((int, unsigned long, char *, int));92 int TCPCALL os2_ioctl __P((int, unsigned long, char *, int)); 94 93 #endif 95 94 -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/include/sys/select.h
-
Property cvs2svn:cvs-rev
changed from
1.4
to1.5
r353 r354 95 95 */ 96 96 int _System bsdselect(int, struct fd_set *, struct fd_set *, struct fd_set *, struct timeval *); 97 /** @name tcpip40 function mappings.98 * @{ */99 #define os2_select tcpip40_os2_select100 /* @} */101 97 #endif 102 98 /** This is the TCPIP OS/2 styled select. */ -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/include/sys/socket.h
-
Property cvs2svn:cvs-rev
changed from
1.3
to1.4
r353 r354 432 432 #endif 433 433 434 #ifdef TCPV40HDRS 435 /** @name tcpip40 function mappings. 436 * @{ */ 437 #define accept tcpip40_accept 438 #define bind tcpip40_bind 439 #define connect tcpip40_connect 440 #define gethostid tcpip40_gethostid 441 #define getpeername tcpip40_getpeername 442 #define getsockname tcpip40_getsockname 443 #define getsockopt tcpip40_getsockopt 444 #define listen tcpip40_listen 445 #define recv tcpip40_recv 446 #define recvfrom tcpip40_recvfrom 447 #define recvmsg tcpip40_recvmsg 448 #define send tcpip40_send 449 #define sendto tcpip40_sendto 450 #define sendmsg tcpip40_sendmsg 451 #define setsockopt tcpip40_setsockopt 452 #define shutdown tcpip40_shutdown 453 #define socket tcpip40_socket 454 #define socketpair tcpip40_socketpair 455 #define addsockettolist tcpip40_addsockettolist 456 #define removesocketfromlist tcpip40_removesocketfromlist 457 #define sock_init tcpip40_sock_init 458 #define sock_errno tcpip40_sock_errno 459 #define psock_errno tcpip40_psock_errno 460 #define soclose tcpip40_soclose 461 #define so_cancel tcpip40_so_cancel 462 #define Raccept tcpip40_Raccept 463 #define Rbind tcpip40_Rbind 464 #define Rconnect tcpip40_Rconnect 465 #define Rgetsockname tcpip40_Rgetsockname 466 #define Rlisten tcpip40_Rlisten 467 /* @} */ 468 #endif 469 470 int _System accept (int, struct sockaddr *, int *); 471 int _System bind (int, __const__ struct sockaddr *, int); 472 int _System connect (int, __const__ struct sockaddr *, int); 473 int _System gethostid (void); 474 int _System getpeername (int, struct sockaddr *, int *); 475 int _System getsockname (int, struct sockaddr *, int *); 476 int _System getsockopt (int, int, int, void *, int *); 477 int _System listen (int, int); 478 int _System recv (int, void *, int, int); 479 int _System recvfrom (int, void *, int, int, struct sockaddr *, int *); 480 int _System recvmsg (int, struct msghdr *, int); 481 int _System send (int, __const__ void *, int, int); 482 int _System sendto (int, __const__ void *, int, int, __const__ struct sockaddr *, int); 483 int _System sendmsg (int, __const__ struct msghdr *, int); 484 int _System setsockopt (int, int, int, __const__ void *, int); 485 int _System shutdown (int, int); 486 int _System socket (int, int, int); 487 int _System socketpair (int, int, int, int *); 434 #ifndef TCPCALL 435 #define TCPCALL _System 436 #endif 437 438 int TCPCALL accept (int, struct sockaddr *, int *); 439 int TCPCALL bind (int, __const__ struct sockaddr *, int); 440 int TCPCALL connect (int, __const__ struct sockaddr *, int); 441 int TCPCALL gethostid (void); 442 int TCPCALL getpeername (int, struct sockaddr *, int *); 443 int TCPCALL getsockname (int, struct sockaddr *, int *); 444 int TCPCALL getsockopt (int, int, int, void *, int *); 445 int TCPCALL listen (int, int); 446 int TCPCALL recv (int, void *, int, int); 447 int TCPCALL recvfrom (int, void *, int, int, struct sockaddr *, int *); 448 int TCPCALL recvmsg (int, struct msghdr *, int); 449 int TCPCALL send (int, __const__ void *, int, int); 450 int TCPCALL sendto (int, __const__ void *, int, int, __const__ struct sockaddr *, int); 451 int TCPCALL sendmsg (int, __const__ struct msghdr *, int); 452 int TCPCALL setsockopt (int, int, int, __const__ void *, int); 453 int TCPCALL shutdown (int, int); 454 int TCPCALL socket (int, int, int); 455 int TCPCALL socketpair (int, int, int, int *); 488 456 489 457 /* EMX addition */ … … 491 459 492 460 #ifndef TCPV40HDRS 493 int _Systemaccept_and_recv (long, long*, struct sockaddr *, long*, struct sockaddr*, long*, caddr_t, size_t);461 int TCPCALL accept_and_recv (long, long*, struct sockaddr *, long*, struct sockaddr*, long*, caddr_t, size_t); 494 462 #endif 495 463 496 464 /* OS/2 additions */ 497 void _Systemaddsockettolist(int);498 int _Systemremovesocketfromlist(int);465 void TCPCALL addsockettolist(int); 466 int TCPCALL removesocketfromlist(int); 499 467 #include <sys/ioccom.h> 500 468 #ifdef TCPV40HDRS 501 469 #include <sys/select.h> 502 470 #endif 503 int _Systemsock_init( void );504 int _Systemsock_errno( void );505 void _Systempsock_errno( char * );506 int _Systemsoclose( int );507 int _Systemso_cancel(int);508 int _SystemRaccept(int, struct sockaddr *, int *);471 int TCPCALL sock_init( void ); 472 int TCPCALL sock_errno( void ); 473 void TCPCALL psock_errno( char * ); 474 int TCPCALL soclose( int ); 475 int TCPCALL so_cancel(int); 476 int TCPCALL Raccept(int, struct sockaddr *, int *); 509 477 #ifdef TCPV40HDRS 510 478 struct sockaddr_in; 511 int _SystemRbind(int, struct sockaddr_in *, int, struct sockaddr_in *);512 #else 513 int _SystemRbind(int, struct sockaddr *, int, struct sockaddr *);514 #endif 515 int _SystemRconnect(int, const struct sockaddr *, int);516 int _SystemRgetsockname(int, struct sockaddr *, int *);517 int _SystemRlisten(int, int);518 #ifndef TCPV40HDRS 519 ssize_t _Systemsend_file(int *, struct sf_parms *, int );520 char * _Systemsock_strerror(int);521 int _Systemgetinetversion(char *);479 int TCPCALL Rbind(int, struct sockaddr_in *, int, struct sockaddr_in *); 480 #else 481 int TCPCALL Rbind(int, struct sockaddr *, int, struct sockaddr *); 482 #endif 483 int TCPCALL Rconnect(int, const struct sockaddr *, int); 484 int TCPCALL Rgetsockname(int, struct sockaddr *, int *); 485 int TCPCALL Rlisten(int, int); 486 #ifndef TCPV40HDRS 487 ssize_t TCPCALL send_file(int *, struct sf_parms *, int ); 488 char * TCPCALL sock_strerror(int); 489 int TCPCALL getinetversion(char *); 522 490 #endif 523 491 … … 525 493 /* more OS/2 stuff. */ 526 494 #ifndef MAXSOCKETS 527 #define MAXSOCKETS 2048 495 #ifdef TCPV40HDRS 496 #define MAXSOCKETS 2048 497 #else 498 #define MAXSOCKETS 32768 499 #endif 528 500 #endif 529 501 -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/include/sys/time.h
-
Property cvs2svn:cvs-rev
changed from
1.4
to1.5
r353 r354 156 156 157 157 #if defined(TCPV40HDRS) || !defined(_POSIX_SOURCE) 158 /** @name tcpip40 function mappings.159 * @{ */160 /* utimes, gettimeofday and settimeofday is EMX so no mapping is needed. */161 #define adjtime tcpip40_adjtime162 #define getitimer tcpip40_getitimer163 #define setitimer tcpip40_setitimer164 /* @} */165 158 /* These are libc functions so no _System convention. */ 166 159 int utimes (__const__ char *, __const__ struct timeval *); 167 160 int gettimeofday (struct timeval *, struct timezone *); 168 161 int settimeofday (__const__ struct timeval *, __const__ struct timezone *); 162 169 163 #ifndef TCPV40HDRS 170 164 #include <sys/cdefs.h> 171 int _System adjtime(const struct timeval *, struct timeval *); 172 int _System getitimer(int, struct itimerval *); 173 int _System setitimer(int, const struct itimerval *, struct itimerval *); 165 166 #ifndef TCPCALL 167 #define TCPCALL _System 168 #endif 169 170 int TCPCALL adjtime(const struct timeval *, struct timeval *); 171 int TCPCALL getitimer(int, struct itimerval *); 172 int TCPCALL setitimer(int, const struct itimerval *, struct itimerval *); 174 173 #endif 175 174 #endif /* TCPV40HDRS */ -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/include/sys/uio.h
-
Property cvs2svn:cvs-rev
changed from
1.7
to1.8
r353 r354 62 62 UIO_USERISPACE /* from user I space */ 63 63 }; 64 /** @name tcpip40 function mappings.65 * @{ */66 #define so_readv tcpip40_readv67 #define so_writev tcpip40_writev68 /* @} */69 64 #endif 70 65 71 66 /* TCPIP versions */ 72 int _System so_readv (int, __const__ struct iovec *, int); 73 int _System so_writev (int, __const__ struct iovec *, int); 67 #ifndef TCPCALL 68 #define TCPCALL _System 69 #endif 70 71 int TCPCALL so_readv (int, __const__ struct iovec *, int); 72 int TCPCALL so_writev (int, __const__ struct iovec *, int); 74 73 75 74 /* EMX versions */ -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/include/unistd.h
-
Property cvs2svn:cvs-rev
changed from
1.6
to1.7
r353 r354 226 226 227 227 /* Toolkit compatibility */ 228 #ifndef TCPCALL 229 #define TCPCALL _System 230 #endif 231 228 232 #include <sys/cdefs.h> 229 233 #include <sys/types.h> 230 /** @name tcpip40 function mappings. 231 * @{ */ 232 #define soclose tcpip40_soclose 233 #define gethostid tcpip40_gethostid 234 #define gethostname tcpip40_gethostname 235 #define iruserok tcpip40_iruserok 236 #define rcmd tcpip40_rcmd 237 #define rresvport tcpip40_rresvport 238 #define ruserok tcpip40_ruserok 239 /* @} */ 240 int _System soclose (int); 234 int TCPCALL soclose (int); 241 235 #ifndef _POSIX_SOURCE 242 int _System gethostid (void); 243 int _System gethostname (char *, int); 244 int _System iruserok (unsigned long, int, const char *, const char *); 245 int _System rcmd (char **, int, const char *, const char *, const char *, int *); 246 int _System rresvport (int *); 247 int _System ruserok (const char *, int, const char *, const char *); 236 int TCPCALL gethostid (void); 237 int TCPCALL gethostname (char *, int); 238 #ifndef TCPV40HDRS 239 int TCPCALL iruserok (unsigned long, int, const char *, const char *); 240 int TCPCALL rcmd (char **, int, const char *, const char *, const char *, int *); 241 int TCPCALL rresvport (int *); 242 int TCPCALL ruserok (const char *, int, const char *, const char *); 248 243 #include <sys/select.h> 244 #endif /* !TCP40HDRS */ 249 245 #endif /* !_POSIX_SOURCE */ 250 246 -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/include/utils.h
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r353 r354 3 3 #define _UTILS_H_ 4 4 5 #ifndef TCPCALL 6 #define TCPCALL _System 7 #endif 8 5 9 #ifdef TCPV40HDRS 6 10 7 /** @name tcpip40 function mappings. 8 * @{ */ 9 #define lswap tcpip40_lswap 10 #define bswap tcpip40_bswap 11 #define rexec tcpip40_rexec 12 /* @} */ 13 unsigned long _System lswap(unsigned long); 14 unsigned short _System bswap(unsigned short); 15 int _System rexec(char **, int, char *, char *, char *, int *); 11 unsigned long TCPCALL lswap(unsigned long); 12 unsigned short TCPCALL bswap(unsigned short); 13 int TCPCALL rexec(char **, int, char *, char *, char *, int *); 16 14 17 15 /* Definition for bswap */ … … 23 21 #define copyout(x,y,z) memcpy((y),(x),(z)) 24 22 #ifndef XP_OS2_VACPP /* mozilla */ 23 /* We've got the real thing now. (aliased at least) 25 24 #define strcasecmp(x,y) strcmpi((x),(y)) 26 25 #define strncasecmp(x,y,z) strnicmp(x,y,z) 26 */ 27 27 #endif 28 int strcasecmp (__const__ char *, __const__ char *); 29 int strncasecmp (__const__ char *, __const__ char *, size_t); 28 30 29 31 #ifndef MIN … … 39 41 40 42 #else 41 int _Systemrexec(char **, int, char *, char *, char *, int *);43 int TCPCALL rexec(char **, int, char *, char *, char *, int *); 42 44 #endif /*TCPV40HDRS*/ 43 45 -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.