/* Copyright (c) 1993 Xerox Corporation. All rights reserved. */ /* */ #ifndef __XR_sys_socket_h #define __XR_sys_socket_h #include #include /* * This one is heavy, but reading of SunOS4.1.3 and 5.2 headers * suggests they agree on everything but the SOCK_XXXXX types, * and those are pretty easy ... */ #if defined(PCR_OS_SUNOS4) # define XR_sys_socket_TypeToHost(t) (t) # define XR_sys_socket_AFToHost(af) (af) # define XR_sys_socket_PFToHost(pf) (pf) #elif defined(PCR_OS_SUNOS5) extern int XR_sys_socket_TypeToHost(int t); # define XR_sys_socket_AFToHost(af) (af) # define XR_sys_socket_PFToHost(pf) (pf) #else # error xr os #endif #define XR_SOCK_STREAM 1 #define XR_SOCK_DGRAM 2 /* datagram socket */ #define XR_SOCK_RAW 3 /* raw-protocol interface */ #define XR_SOCK_RDM 4 /* reliably-delivered message */ #define XR_SOCK_SEQPACKET 5 /* sequenced packet stream */ #endif /*!__XR_stropts_h*/