Changeset 187


Ignore:
Timestamp:
May 19, 2003, 3:20:02 PM (22 years ago)
Author:
bird
Message:

TCPV40HDRS function wrappers.

Location:
trunk/src/emx/include
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/include/arpa/inet.h

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r186 r187  
    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/* @} */
     57#endif
     58
     59
    4660/* External definitions for functions in inet(3) */
    4761
  • trunk/src/emx/include/arpa/nameser.h

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r186 r187  
    361361#endif /*!TCPV40HDRS*/
    362362
     363
     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
    363384/* function prototypes */
    364385u_short _System _getshort(u_char*);
  • trunk/src/emx/include/netdb.h

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r186 r187  
    3434 *
    3535 *      from: @(#)netdb.h       5.15 (Berkeley) 4/3/91
    36  *      netdb.h,v 1.2 2003/05/19 02:41:00 bird Exp
     36 *      netdb.h,v 1.3 2003/05/19 13:20:02 bird Exp
    3737 */
    3838
     
    163163        int     _serv_stayopen;
    164164};
     165#endif
     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/* @} */
    165195#endif
    166196
  • trunk/src/emx/include/resolv.h

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r186 r187  
    3434 *
    3535 *      from: @(#)resolv.h      5.15 (Berkeley) 4/3/91
    36  *      resolv.h,v 1.2 2003/05/19 02:41:00 bird Exp
     36 *      resolv.h,v 1.3 2003/05/19 13:20:02 bird Exp
    3737 */
    3838
     
    160160#ifdef TCPV40HDRS
    161161
     162/** @name tcpip40 function mappings.
     163 * @{ */
     164#define _res tcpip40__res
     165/* @} */
    162166extern  struct state _res;
    163167
    164 #else
     168#else /* !TCPV40HDRS: */
    165169
    166170/*
  • trunk/src/emx/include/sys/ioccom.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r186 r187  
    7474__BEGIN_DECLS
    7575#ifdef TCPV40HDRS
    76 /* We must use a different ioctl function in this mode because of the
    77  * different _IOC macro and hence IOCTL value.
    78  */
    79 #define ioctl       tcpip40_ioctl
    80 #define _ioctl      tcpip40__ioctl
     76/** @name tcpip40 function mappings.
     77 * @{ */
    8178#define so_ioctl    tcpip40_so_ioctl
     79/* @} */
    8280
    8381/** The v40 socket ioctl interface.
  • trunk/src/emx/include/sys/select.h

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r186 r187  
    8686 */
    8787int _System bsdselect(int, struct fd_set *, struct fd_set *, struct fd_set *, struct timeval *);
     88/** @name tcpip40 function mappings.
     89 * @{ */
    8890#define os2_select  tcpip40_os2_select
     91/* @} */
    8992#endif
    9093/** This is the TCPIP OS/2 styled select. */
  • trunk/src/emx/include/sys/socket.h

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r186 r187  
    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
    434470int     _System accept (int, struct sockaddr *, int *);
    435471int     _System bind (int, __const__ struct sockaddr *, int);
  • trunk/src/emx/include/sys/time.h

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r186 r187  
    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/* @} */
    158165int     _System utimes (__const__ char *, __const__ struct timeval *);
    159166int     _System gettimeofday (struct timeval *, struct timezone *);
  • trunk/src/emx/include/sys/uio.h

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r186 r187  
    4646#endif
    4747
     48/** @name tcpip40 function mappings.
     49 * @{ */
     50#define readv         tcpip40_readv
     51#define writev       tcpip40_writev
     52/* @} */
     53
    4854int _System readv (int, __const__ struct iovec *, int);
    4955int _System writev (int, __const__ struct iovec *, int);
  • trunk/src/emx/include/types.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r186 r187  
    1111#include <sys/types.h>
    1212
    13 
    1413#ifdef TCPV40HDRS
    1514
    16 #define NIL ((char *) 0)
    17 
    18 #define PZERO 0
    19 #define BSD 43
    2015#include <errno.h>
    2116/*#include <nerrno.h> */
    2217#include <sys/time.h>
    2318#include <utils.h>
     19#include <strings.h> /* index() */
    2420
    25 #define MAXHOSTNAMELEN 120
    26 #ifndef MAXPATHLEN
    27 #define MAXPATHLEN 260
    28 #endif
    29 #define MAXSOCKETS 2048
    30 
    31 #define index(string,c) strchr((string),(c))
    32 
     21#define NIL ((char *) 0)
     22#define PZERO 0
     23#define BSD 43
    3324#ifndef TRUE
    3425#define TRUE 1
     
    3728#define FALSE 0
    3829#endif
    39 
     30#define MAXHOSTNAMELEN 120
     31#ifndef MAXPATHLEN
     32#define MAXPATHLEN 260
     33#endif
     34#define MAXSOCKETS 2048
    4035
    4136#else  /* TCPV40HDRS */
  • trunk/src/emx/include/unistd.h

    • Property cvs2svn:cvs-rev changed from 1.4 to 1.5
    r186 r187  
    225225#include <sys/cdefs.h>
    226226#include <sys/types.h>
     227/** @name tcpip40 function mappings.
     228 * @{ */
     229#define soclose         tcpip40_soclose
     230#define gethostid       tcpip40_gethostid
     231#define gethostname     tcpip40_gethostname
     232#define iruserok        tcpip40_iruserok
     233#define rcmd            tcpip40_rcmd
     234#define rresvport       tcpip40_rresvport
     235#define ruserok         tcpip40_ruserok
     236/* @} */
    227237int     _System     soclose (int);
    228 
    229238#ifndef _POSIX_SOURCE
    230239int     _System     gethostid (void);
  • trunk/src/emx/include/utils.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r186 r187  
    55#ifdef TCPV40HDRS
    66
     7/** @name tcpip40 function mappings.
     8 * @{ */
     9#define lswap   tcpip40_lswap
     10#define bswap   tcpip40_bswap
     11#define rexec   tcpip40_rexec
     12/* @} */
    713unsigned long   _System lswap(unsigned long);
    814unsigned short  _System bswap(unsigned short);
Note: See TracChangeset for help on using the changeset viewer.