/* $XConsortium: Xlibnet.h,v 1.18 91/07/23 19:01:27 rws Exp $ */
/*
Copyright 1991 Massachusetts Institute of Technology
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all copies and that both that
copyright notice and this permission notice appear in supporting
documentation, and that the name of M.I.T. not be used in advertising or
publicity pertaining to distribution of the software without specific,
written prior permission. M.I.T. makes no representations about the
suitability of this software for any purpose. It is provided "as is"
without express or implied warranty.
*/
/*
* Xlibnet.h - Xlib networking include files for UNIX Systems.
*/
#ifndef X_UNIX_PATH
#ifdef hpux
#else
#endif
#endif /* X_UNIX_PATH */
#ifdef STREAMSCONN
#ifdef SYSV
/*
* UNIX System V Release 3.2
*/
#define MALLOC_0_RETURNS_NULL
#endif /* SYSV */
#ifdef SVR4
/*
* TLI (Streams-based) networking
*/
#endif /* SVR4 */
#else /* not STREAMSCONN */
/*
* socket-based systems
*/
#include <netdb.h>
#ifdef SVR4
#endif
#if !defined(__SCO__)
#endif
#else
#endif
#endif /* STREAMSCONN else */
/*
* If your BytesReadable correctly detects broken connections, then
* you should NOT define XCONN_CHECK_FREQ.
*/
#ifndef X_NOT_POSIX
#ifdef _POSIX_SOURCE
#include <limits.h>
#else
#define _POSIX_SOURCE
#include <limits.h>
#endif
#endif
#ifndef OPEN_MAX
#ifdef SVR4
#else
#ifndef OPEN_MAX
#ifdef NOFILE
#else
#if !defined(__UNIXOS2__) && !defined(__QNX__)
#else
#endif
#endif
#endif
#endif
#endif
#if OPEN_MAX > 256
#endif
/* Adobe additions */
#ifdef MSKCNT
#endif
#ifdef BITMASK
#endif
#ifdef MASKIDX
#endif
#if (MSKCNT==1)
#define MASKIDX(i) 0
#endif
#if (MSKCNT>1)
#endif
/* Adobe additions */
#ifdef COPYBITS
#endif
#if (MSKCNT==1)
#endif
#if (MSKCNT==2)
#endif
#if (MSKCNT==3)
#endif
#if (MSKCNT==4)
#endif
#if (MSKCNT>4)
MSKCNT*sizeof(long))
{ int cri; \
{ int cri; \
{ int cri; \
/*
* If MSKCNT>4, then _XANYSET is a routine defined in XlibInt.c.
*
* #define _XANYSET(src) (src[0] || src[1] || src[2] || src[3] || src[4] ...)
*/
extern int N_XANYSET(unsigned long *);
#endif
/*
* ReadvFromServer and WritevToSever use struct iovec, normally found
* manual pages for details.
*
* struct iovec {
* caddr_t iov_base;
* int iov_len;
* };
*/
struct iovec {
int iov_len;
};
#endif /* USG */
#ifdef STREAMSCONN
#include "Xstreams.h"
extern char _XsTypeOfStream[];
#else /* else not STREAMSCONN */
/*
* bsd can read from sockets directly
*/
#endif /* STREAMSCONN */
#ifndef USL_COMPAT
defined(__UNIXWARE__)
#endif
#endif /* !USL_COMPAT */