Changeset 354


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

#434: no function redefinitions. TCPCALL not _System.

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 to 1.4
    r353 r354  
    4444#endif
    4545
    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
    5748#endif
    5849
     
    6455#include <sys/types.h>
    6556#include <sys/cdefs.h>
    66 int             _System inet_aton (const char *, struct in_addr *);
    67 char *          _System inet_neta (u_long, char *, size_t);
    68 char *          _System inet_net_ntop (int, const void *, int, char *, size_t);
    69 int             _System inet_net_pton (int, const char *, void *, size_t);
    70 int             _System inet_pton (int af, const char *src, void *dst);
    71 const char *    _System inet_ntop (int af, const void *src, char *dst, size_t s);
    72 u_int           _System inet_nsap_addr (const char *, u_char *, int maxlen);
    73 char *          _System inet_nsap_ntoa (int, const u_char *, char *ascii);
     57int             TCPCALL inet_aton (const char *, struct in_addr *);
     58char *          TCPCALL inet_neta (u_long, char *, size_t);
     59char *          TCPCALL inet_net_ntop (int, const void *, int, char *, size_t);
     60int             TCPCALL inet_net_pton (int, const char *, void *, size_t);
     61int             TCPCALL inet_pton (int af, const char *src, void *dst);
     62const char *    TCPCALL inet_ntop (int af, const void *src, char *dst, size_t s);
     63u_int           TCPCALL inet_nsap_addr (const char *, u_char *, int maxlen);
     64char *          TCPCALL inet_nsap_ntoa (int, const u_char *, char *ascii);
    7465#endif
    7566
    76 extern u_long   _System inet_addr(__const__ char*);
    77 extern u_long   _System inet_lnaof(struct in_addr);
    78 extern struct in_addr _System inet_makeaddr(u_long, u_long);
    79 extern u_long   _System inet_netof(struct in_addr);
    80 extern u_long   _System inet_network(__const__ char*);
    81 extern char*    _System inet_ntoa(struct in_addr);
     67extern u_long   TCPCALL inet_addr(__const__ char*);
     68extern u_long   TCPCALL inet_lnaof(struct in_addr);
     69extern struct in_addr TCPCALL inet_makeaddr(u_long, u_long);
     70extern u_long   TCPCALL inet_netof(struct in_addr);
     71extern u_long   TCPCALL inet_network(__const__ char*);
     72extern char*    TCPCALL inet_ntoa(struct in_addr);
    8273
    8374#if defined (__cplusplus)
  • trunk/src/emx/include/arpa/nameser.h

    • Property cvs2svn:cvs-rev changed from 1.3 to 1.4
    r353 r354  
    362362
    363363
    364 #ifdef TCPV40HDRS
    365 /** @name tcpip40 function mappings.
    366  * @{ */
    367 #define _getshort           tcpip40__getshort
    368 #define _getlong            tcpip40__getlong
    369 #define putshort            tcpip40_putshort
    370 #define putlong             tcpip40_putlong
    371 #define dn_expand           tcpip40_dn_expand
    372 #define dn_comp             tcpip40_dn_comp
    373 #define dn_find             tcpip40_dn_find
    374 #define dn_skipname         tcpip40_dn_skipname
    375 #define res_init            tcpip40_res_init
    376 #define res_mkquery         tcpip40_res_mkquery
    377 #define res_send            tcpip40_res_send
    378 #define res_query           tcpip40_res_query
    379 #define res_search          tcpip40_res_search
    380 #define res_querydomain     tcpip40_res_querydomain
    381 /* @} */
    382 #endif
    383 
    384364/* 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
     369u_short TCPCALL _getshort(u_char*);
     370u_long  TCPCALL _getlong(u_char*);
    387371#ifdef TCPV40HDRS /* newer have this in resolver */
    388 void    _System putshort(u_short, u_char *);
    389 void    _System putlong(u_long, u_char *);
    390 int     _System dn_expand(__const__ u_char*, __const__ u_char*, __const__ u_char*, u_char*, int);
    391 int     _System dn_comp(__const__ u_char*, u_char*, int, u_char**, u_char**);
    392 int     _System dn_find(u_char*, u_char*, u_char**, u_char**);
    393 int     _System dn_skipname(__const__ u_char*, __const__ u_char*);
    394 int     _System res_init(void);
    395 int     _System res_mkquery(int, __const__ char*, int, int, __const__ char*, int, __const__ struct rrec*, char*, int);
    396 int     _System res_send(__const__ char*, int, char*, int);
    397 int     _System res_query(char*, int, int, u_char*, int);
    398 int     _System res_search(char*, int, int, u_char*, int);
    399 int     _System res_querydomain(char*, char*, int, int, u_char*, int);
     372void    TCPCALL putshort(u_short, u_char *);
     373void    TCPCALL putlong(u_long, u_char *);
     374int     TCPCALL dn_expand(__const__ u_char*, __const__ u_char*, __const__ u_char*, u_char*, int);
     375int     TCPCALL dn_comp(__const__ u_char*, u_char*, int, u_char**, u_char**);
     376int     TCPCALL dn_find(u_char*, u_char*, u_char**, u_char**);
     377int     TCPCALL dn_skipname(__const__ u_char*, __const__ u_char*);
     378int     TCPCALL res_init(void);
     379int     TCPCALL res_mkquery(int, __const__ char*, int, int, __const__ char*, int, __const__ struct rrec*, char*, int);
     380int     TCPCALL res_send(__const__ char*, int, char*, int);
     381int     TCPCALL res_query(char*, int, int, u_char*, int);
     382int     TCPCALL res_search(char*, int, int, u_char*, int);
     383int     TCPCALL res_querydomain(char*, char*, int, int, u_char*, int);
    400384#endif
    401385
  • trunk/src/emx/include/netdb.h

    • Property cvs2svn:cvs-rev changed from 1.3 to 1.4
    r353 r354  
    3434 *
    3535 *      from: @(#)netdb.h       5.15 (Berkeley) 4/3/91
    36  *      netdb.h,v 1.3 2003/05/19 13:20:02 bird Exp
     36 *      netdb.h,v 1.4 2003/07/11 11:39:47 bird Exp
    3737 */
    3838
     
    165165#endif
    166166
    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
    197170
    198171/* BSD */
    199 int                 _System gethostname( char *, int );
    200 struct hostent *    _System gethostbyname( __const__ char * );
    201 struct hostent *    _System gethostbyaddr( __const__ char *, int, int );
    202 struct netent *     _System getnetbyname( __const__ char * );
    203 struct netent *     _System getnetbyaddr( unsigned long, int );
    204 struct servent *    _System getservbyname( __const__ char *, char * );
    205 struct servent *    _System getservbyport( int, __const__ char * );
    206 struct servent *    _System getservent( void );
    207 struct protoent *   _System getprotobyname( __const__ char * );
    208 struct protoent *   _System getprotobynumber( int );
    209 void                _System sethostent( int );
    210 struct hostent *    _System gethostent( void );
    211 void                _System endhostent(void);
    212 void                _System setnetent( int );
    213 struct netent *     _System getnetent( void );
    214 void                _System endnetent(void);
    215 void                _System setprotoent( int );
    216 struct protoent *   _System getprotoent( void );
    217 void                _System endprotoent(void);
    218 void                _System setservent( int );
    219 struct servent *    _System getservent( void );
    220 void                _System endservent(void);
     172int                 TCPCALL gethostname( char *, int );
     173struct hostent *    TCPCALL gethostbyname( __const__ char * );
     174struct hostent *    TCPCALL gethostbyaddr( __const__ char *, int, int );
     175struct netent *     TCPCALL getnetbyname( __const__ char * );
     176struct netent *     TCPCALL getnetbyaddr( unsigned long, int );
     177struct servent *    TCPCALL getservbyname( __const__ char *, char * );
     178struct servent *    TCPCALL getservbyport( int, __const__ char * );
     179struct servent *    TCPCALL getservent( void );
     180struct protoent *   TCPCALL getprotobyname( __const__ char * );
     181struct protoent *   TCPCALL getprotobynumber( int );
     182void                TCPCALL sethostent( int );
     183struct hostent *    TCPCALL gethostent( void );
     184void                TCPCALL endhostent(void);
     185void                TCPCALL setnetent( int );
     186struct netent *     TCPCALL getnetent( void );
     187void                TCPCALL endnetent(void);
     188void                TCPCALL setprotoent( int );
     189struct protoent *   TCPCALL getprotoent( void );
     190void                TCPCALL endprotoent(void);
     191void                TCPCALL setservent( int );
     192struct servent *    TCPCALL getservent( void );
     193void                TCPCALL endservent(void);
    221194#ifndef TCPV40HDRS
    222 struct hostent *    _System gethostbyname2( __const__ char *, int );
     195struct hostent *    TCPCALL gethostbyname2( __const__ char *, int );
    223196#endif
    224197
     
    226199/* OS2 Additions */
    227200#ifdef TCPV40HDRS
    228 int                 _System tcp_h_errno(void);
    229 struct hostent *    _System Rgethostbyname(char *); /* Socks additions */
     201int                 TCPCALL tcp_h_errno(void);
     202struct hostent *    TCPCALL Rgethostbyname(char *); /* Socks additions */
    230203#else
    231 const char *        _System hstrerror(int);
    232 /* void               _System sethostfile(const char *); */
    233 int *               _System tcp_h_errno1(void);
     204const char *        TCPCALL hstrerror(int);
     205/* void               TCPCALL sethostfile(const char *); */
     206int *               TCPCALL tcp_h_errno1(void);
    234207#endif
    235208
  • trunk/src/emx/include/resolv.h

    • Property cvs2svn:cvs-rev changed from 1.3 to 1.4
    r353 r354  
    3434 *
    3535 *      from: @(#)resolv.h      5.15 (Berkeley) 4/3/91
    36  *      resolv.h,v 1.3 2003/05/19 13:20:02 bird Exp
     36 *      resolv.h,v 1.4 2003/07/11 11:39:47 bird Exp
    3737 */
    3838
     
    160160#ifdef TCPV40HDRS
    161161
    162 /** @name tcpip40 function mappings.
    163  * @{ */
    164 #define _res tcpip40__res
    165 /* @} */
    166162extern  struct state _res;
    167163
     
    192188        res_sendhookact;
    193189
    194 typedef res_sendhookact (* _System res_send_qhook)(struct sockaddr_in * const *ns,
     190#ifndef TCPCALL
     191#define TCPCALL _System
     192#endif
     193
     194typedef res_sendhookact (* TCPCALL res_send_qhook)(struct sockaddr_in * const *ns,
    195195                                              const u_char **query,
    196196                                              int *querylen,
     
    199199                                              int *resplen);
    200200
    201 typedef res_sendhookact (* _System res_send_rhook)(const struct sockaddr_in *ns,
     201typedef res_sendhookact (* TCPCALL res_send_rhook)(const struct sockaddr_in *ns,
    202202                                              const u_char *query,
    203203                                              int querylen,
     
    264264#define res_close       __res_close
    265265
    266 int             _System res_hnok(const char *);
    267 int             _System res_ownok(const char *);
    268 int             _System res_mailok(const char *);
    269 int             _System res_dnok(const char *);
    270 int             _System sym_ston(const struct res_sym *, char *, int *);
    271 const char *    _System sym_ntos(const struct res_sym *, int, int *);
    272 const char *    _System sym_ntop(const struct res_sym *, int, int *);
    273 int             _System b64_ntop(u_char const *, size_t, char *, size_t);
    274 int             _System b64_pton(char const *, u_char *, size_t);
    275 int             _System loc_aton(const char *, u_char *);
    276 const char *    _System loc_ntoa(const u_char *, char *);
    277 int             _System dn_skipname(const u_char *, const u_char *);
    278 void            _System fp_resstat(struct __res_state *, int);
    279 void            _System fp_query(const u_char *, int);
    280 void            _System fp_nquery(const u_char *, int, int);
    281 const char *    _System hostalias(const char *);
    282 void            _System putlong(u_int32_t, u_char *);
    283 void            _System putshort(u_int16_t, u_char *);
    284 const char *    _System p_class(int);
    285 const char *    _System p_time(u_int32_t);
    286 const char *    _System p_type(int);
    287 void            _System p_query(const u_char *);
    288 const u_char *  _System p_cdnname(const u_char *, const u_char *, int, int);
    289 const u_char *  _System p_cdname(const u_char *, const u_char *, int);
    290 const u_char *  _System p_fqnname(const u_char *cp, const u_char *msg,
     266int             TCPCALL res_hnok(const char *);
     267int             TCPCALL res_ownok(const char *);
     268int             TCPCALL res_mailok(const char *);
     269int             TCPCALL res_dnok(const char *);
     270int             TCPCALL sym_ston(const struct res_sym *, char *, int *);
     271const char *    TCPCALL sym_ntos(const struct res_sym *, int, int *);
     272const char *    TCPCALL sym_ntop(const struct res_sym *, int, int *);
     273int             TCPCALL b64_ntop(u_char const *, size_t, char *, size_t);
     274int             TCPCALL b64_pton(char const *, u_char *, size_t);
     275int             TCPCALL loc_aton(const char *, u_char *);
     276const char *    TCPCALL loc_ntoa(const u_char *, char *);
     277int             TCPCALL dn_skipname(const u_char *, const u_char *);
     278void            TCPCALL fp_resstat(struct __res_state *, int);
     279void            TCPCALL fp_query(const u_char *, int);
     280void            TCPCALL fp_nquery(const u_char *, int, int);
     281const char *    TCPCALL hostalias(const char *);
     282void            TCPCALL putlong(u_int32_t, u_char *);
     283void            TCPCALL putshort(u_int16_t, u_char *);
     284const char *    TCPCALL p_class(int);
     285const char *    TCPCALL p_time(u_int32_t);
     286const char *    TCPCALL p_type(int);
     287void            TCPCALL p_query(const u_char *);
     288const u_char *  TCPCALL p_cdnname(const u_char *, const u_char *, int, int);
     289const u_char *  TCPCALL p_cdname(const u_char *, const u_char *, int);
     290const u_char *  TCPCALL p_fqnname(const u_char *cp, const u_char *msg,
    291291                                             int, char *, int);
    292 const u_char *  _System p_fqname(const u_char *, const u_char *, int);
    293 const u_char *  _System p_rr(const u_char *, const u_char *, int);
    294 const char *    _System p_option(u_long option);
    295 char *          _System p_secstodate(u_long);
    296 int             _System dn_count_labels(char *);
    297 int             _System dn_comp(const char *, u_char *, int,
     292const u_char *  TCPCALL p_fqname(const u_char *, const u_char *, int);
     293const u_char *  TCPCALL p_rr(const u_char *, const u_char *, int);
     294const char *    TCPCALL p_option(u_long option);
     295char *          TCPCALL p_secstodate(u_long);
     296int             TCPCALL dn_count_labels(char *);
     297int             TCPCALL dn_comp(const char *, u_char *, int,
    298298                                u_char **, u_char **);
    299 int             _System dn_expand(const u_char *, const u_char *, const u_char *,
     299int             TCPCALL dn_expand(const u_char *, const u_char *, const u_char *,
    300300                                  char *, int);
    301 int             _System res_init(void);
    302 u_int           _System res_randomid(void);
    303 int             _System res_query(const char *, int, int, u_char *, int);
    304 int             _System res_search(const char *, int, int, u_char *, int);
    305 int             _System res_querydomain(const char *, const char *, int, int, u_char *, int);
    306 int             _System res_mkquery(int, const char *, int, int, const u_char *, int,
     301int             TCPCALL res_init(void);
     302u_int           TCPCALL res_randomid(void);
     303int             TCPCALL res_query(const char *, int, int, u_char *, int);
     304int             TCPCALL res_search(const char *, int, int, u_char *, int);
     305int             TCPCALL res_querydomain(const char *, const char *, int, int, u_char *, int);
     306int             TCPCALL res_mkquery(int, const char *, int, int, const u_char *, int,
    307307                                    const u_char *, u_char *, int);
    308 int             _System res_send(const u_char *, int, u_char *, int);
    309 int             _System res_isourserver(const struct sockaddr_in *);
    310 int             _System res_nameinquery(const char *, int, int,
     308int             TCPCALL res_send(const u_char *, int, u_char *, int);
     309int             TCPCALL res_isourserver(const struct sockaddr_in *);
     310int             TCPCALL res_nameinquery(const char *, int, int,
    311311                                        const u_char *, const u_char *);
    312 int             _System res_queriesmatch(const u_char *, const u_char *,
     312int             TCPCALL res_queriesmatch(const u_char *, const u_char *,
    313313                                         const u_char *, const u_char *);
    314 void            _System res_close(void);
    315 int             _System dn_find(u_char *exp_dn, u_char *msg,
     314void            TCPCALL res_close(void);
     315int             TCPCALL dn_find(u_char *exp_dn, u_char *msg,
    316316                               u_char **dnptrs, u_char **lastdnptr);
    317317#endif /* !TCPV40HDRS */
  • trunk/src/emx/include/sys/ioccom.h

    • Property cvs2svn:cvs-rev changed from 1.3 to 1.4
    r353 r354  
    7272#include <sys/cdefs.h>
    7373
     74#ifndef TCPCALL
     75#define TCPCALL _System
     76#endif
     77
    7478__BEGIN_DECLS
    7579#ifdef TCPV40HDRS
    76 /** @name tcpip40 function mappings.
    77  * @{ */
    78 #define so_ioctl    tcpip40_so_ioctl
    79 /* @} */
    80 
    8180/** The v40 socket ioctl interface.
    8281 * @remark sys based libc have separeate handle spaces for sockets and files
    8382 *         therefore this socket specific call.
    8483 */
    85 int         _System so_ioctl __P((int, int, char *, int));
     84int         TCPCALL so_ioctl __P((int, int, char *, int));
    8685#else
    8786/** The v41+ BSD socket ioctl interface.
     
    8988 *         therefore this socket specific call.
    9089 */
    91 int         _System so_ioctl __P((int, unsigned long, ...));
     90int         TCPCALL so_ioctl __P((int, unsigned long, ...));
    9291/** The v41+ OS/2 specific socket ioctl interface. */
    93 int         _System os2_ioctl __P((int, unsigned long, char *, int));
     92int         TCPCALL os2_ioctl __P((int, unsigned long, char *, int));
    9493#endif
    9594
  • trunk/src/emx/include/sys/select.h

    • Property cvs2svn:cvs-rev changed from 1.4 to 1.5
    r353 r354  
    9595 */
    9696int _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_select
    100 /* @} */
    10197#endif
    10298/** This is the TCPIP OS/2 styled select. */
  • 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
  • trunk/src/emx/include/sys/time.h

    • Property cvs2svn:cvs-rev changed from 1.4 to 1.5
    r353 r354  
    156156
    157157#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_adjtime
    162 #define getitimer     tcpip40_getitimer
    163 #define setitimer     tcpip40_setitimer
    164 /* @} */
    165158/* These are libc functions so no _System convention. */
    166159int     utimes (__const__ char *, __const__ struct timeval *);
    167160int     gettimeofday (struct timeval *, struct timezone *);
    168161int     settimeofday (__const__ struct timeval *, __const__ struct timezone *);
     162
    169163#ifndef TCPV40HDRS
    170164#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
     170int     TCPCALL adjtime(const struct timeval *, struct timeval *);
     171int     TCPCALL getitimer(int, struct itimerval *);
     172int     TCPCALL setitimer(int, const struct itimerval *, struct itimerval *);
    174173#endif
    175174#endif /* TCPV40HDRS */
  • trunk/src/emx/include/sys/uio.h

    • Property cvs2svn:cvs-rev changed from 1.7 to 1.8
    r353 r354  
    6262        UIO_USERISPACE          /* from user I space */
    6363};
    64 /** @name tcpip40 function mappings.
    65  * @{ */
    66 #define so_readv        tcpip40_readv
    67 #define so_writev       tcpip40_writev
    68 /* @} */
    6964#endif
    7065
    7166/* 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
     71int TCPCALL so_readv (int, __const__ struct iovec *, int);
     72int TCPCALL so_writev (int, __const__ struct iovec *, int);
    7473
    7574/* EMX versions */
  • trunk/src/emx/include/unistd.h

    • Property cvs2svn:cvs-rev changed from 1.6 to 1.7
    r353 r354  
    226226
    227227/* Toolkit compatibility */
     228#ifndef TCPCALL
     229#define TCPCALL _System
     230#endif
     231
    228232#include <sys/cdefs.h>
    229233#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);
     234int     TCPCALL     soclose (int);
    241235#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 *);
     236int     TCPCALL     gethostid (void);
     237int     TCPCALL     gethostname (char *, int);
     238#ifndef TCPV40HDRS
     239int     TCPCALL     iruserok (unsigned long, int, const char *, const char *);
     240int     TCPCALL     rcmd (char **, int, const char *, const char *, const char *, int *);
     241int     TCPCALL     rresvport (int *);
     242int     TCPCALL     ruserok (const char *, int, const char *, const char *);
    248243#include <sys/select.h>
     244#endif /* !TCP40HDRS */
    249245#endif /* !_POSIX_SOURCE */
    250246
  • trunk/src/emx/include/utils.h

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r353 r354  
    33#define _UTILS_H_
    44
     5#ifndef TCPCALL
     6#define TCPCALL _System
     7#endif
     8
    59#ifdef TCPV40HDRS
    610
    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 *);
     11unsigned long   TCPCALL lswap(unsigned long);
     12unsigned short  TCPCALL bswap(unsigned short);
     13int             TCPCALL rexec(char **, int, char *, char *, char *, int *);
    1614
    1715/* Definition for bswap */
     
    2321#define copyout(x,y,z)  memcpy((y),(x),(z))
    2422#ifndef XP_OS2_VACPP /* mozilla */
     23/* We've got the real thing now. (aliased at least)
    2524#define strcasecmp(x,y)     strcmpi((x),(y))
    2625#define strncasecmp(x,y,z)  strnicmp(x,y,z)
     26*/
    2727#endif
     28int strcasecmp (__const__ char *, __const__ char *);
     29int strncasecmp (__const__ char *, __const__ char *, size_t);
    2830
    2931#ifndef MIN
     
    3941
    4042#else
    41 int     _System rexec(char **, int, char *, char *, char *, int *);
     43int     TCPCALL rexec(char **, int, char *, char *, char *, int *);
    4244#endif /*TCPV40HDRS*/
    4345
Note: See TracChangeset for help on using the changeset viewer.