Ignore:
Timestamp:
Jul 11, 2003, 1:39:47 PM (22 years ago)
Author:
bird
Message:

#434: no function redefinitions. TCPCALL not _System.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/include/sys/socket.h

    • Property cvs2svn:cvs-rev changed from 1.3 to 1.4
    r353 r354  
    432432#endif
    433433
    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
     438int     TCPCALL accept (int, struct sockaddr *, int *);
     439int     TCPCALL bind (int, __const__ struct sockaddr *, int);
     440int     TCPCALL connect (int, __const__ struct sockaddr *, int);
     441int     TCPCALL gethostid (void);
     442int     TCPCALL getpeername (int, struct sockaddr *, int *);
     443int     TCPCALL getsockname (int, struct sockaddr *, int *);
     444int     TCPCALL getsockopt (int, int, int, void *, int *);
     445int     TCPCALL listen (int, int);
     446int     TCPCALL recv (int, void *, int, int);
     447int     TCPCALL recvfrom (int, void *, int, int, struct sockaddr *, int *);
     448int     TCPCALL recvmsg (int, struct msghdr *, int);
     449int     TCPCALL send (int, __const__ void *, int, int);
     450int     TCPCALL sendto (int, __const__ void *, int, int, __const__ struct sockaddr *, int);
     451int     TCPCALL sendmsg (int, __const__ struct msghdr *, int);
     452int     TCPCALL setsockopt (int, int, int, __const__ void *, int);
     453int     TCPCALL shutdown (int, int);
     454int     TCPCALL socket (int, int, int);
     455int     TCPCALL socketpair (int, int, int, int *);
    488456
    489457/* EMX addition */
     
    491459
    492460#ifndef TCPV40HDRS
    493 int     _System accept_and_recv (long, long*, struct sockaddr *, long*, struct sockaddr*, long*, caddr_t, size_t);
     461int     TCPCALL accept_and_recv (long, long*, struct sockaddr *, long*, struct sockaddr*, long*, caddr_t, size_t);
    494462#endif
    495463
    496464/* OS/2 additions */
    497 void    _System addsockettolist(int);
    498 int     _System removesocketfromlist(int);
     465void    TCPCALL addsockettolist(int);
     466int     TCPCALL removesocketfromlist(int);
    499467#include <sys/ioccom.h>
    500468#ifdef TCPV40HDRS
    501469#include <sys/select.h>
    502470#endif
    503 int     _System sock_init( void );
    504 int     _System sock_errno( void );
    505 void    _System psock_errno( char * );
    506 int     _System soclose( int );
    507 int     _System so_cancel(int);
    508 int     _System Raccept(int, struct sockaddr *, int *);
     471int     TCPCALL sock_init( void );
     472int     TCPCALL sock_errno( void );
     473void    TCPCALL psock_errno( char * );
     474int     TCPCALL soclose( int );
     475int     TCPCALL so_cancel(int);
     476int     TCPCALL Raccept(int, struct sockaddr *, int *);
    509477#ifdef TCPV40HDRS
    510478struct sockaddr_in;
    511 int     _System Rbind(int, struct sockaddr_in *, int, struct sockaddr_in *);
    512 #else
    513 int     _System Rbind(int, struct sockaddr *, int, struct sockaddr *);
    514 #endif
    515 int     _System Rconnect(int, const struct sockaddr *, int);
    516 int     _System Rgetsockname(int, struct sockaddr *, int *);
    517 int     _System Rlisten(int, int);
    518 #ifndef TCPV40HDRS
    519 ssize_t _System send_file(int *, struct sf_parms *, int );
    520 char *  _System sock_strerror(int);
    521 int     _System getinetversion(char *);
     479int     TCPCALL Rbind(int, struct sockaddr_in *, int, struct sockaddr_in *);
     480#else
     481int     TCPCALL Rbind(int, struct sockaddr *, int, struct sockaddr *);
     482#endif
     483int     TCPCALL Rconnect(int, const struct sockaddr *, int);
     484int     TCPCALL Rgetsockname(int, struct sockaddr *, int *);
     485int     TCPCALL Rlisten(int, int);
     486#ifndef TCPV40HDRS
     487ssize_t TCPCALL send_file(int *, struct sf_parms *, int );
     488char *  TCPCALL sock_strerror(int);
     489int     TCPCALL getinetversion(char *);
    522490#endif
    523491
     
    525493/* more OS/2 stuff. */
    526494#ifndef MAXSOCKETS
    527 #define MAXSOCKETS      2048
     495#ifdef TCPV40HDRS
     496#define MAXSOCKETS  2048
     497#else
     498#define MAXSOCKETS  32768
     499#endif
    528500#endif
    529501
Note: See TracChangeset for help on using the changeset viewer.