/* Copyright (c) 1993 Xerox Corporation. All rights reserved. */ /* */ #ifndef ←←XR←sys←socket←h #define ←←XR←sys←socket←h #include <config/PCR←OS.h> #include <sys/socket.h> /* * 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*/