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/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
Note: See TracChangeset for help on using the changeset viewer.