/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 1990-2011 AT&T Intellectual Property *
* and is licensed under the *
* Eclipse Public License, Version 1.0 *
* by AT&T Intellectual Property *
* *
* A copy of the License is available at *
* (with md5 checksum b35adb5213ca9657e911e9befb180842) *
* *
* Information and Software Systems Research *
* AT&T Research *
* Florham Park NJ *
* *
* Glenn Fowler <gsf@research.att.com> *
* *
***********************************************************************/
#pragma prototyped
#include <ast.h>
#if _hdr_poll
#include <poll.h>
#endif
#ifdef SCM_RIGHTS
#else
#endif
#endif
int
main()
{
register int m;
register int i;
#if CS_LIB_SOCKET || CS_LIB_V10
#endif
#if CS_LIB_SOCKET_UN || CS_LIB_STREAM
#endif
#if _hdr_poll
#ifdef _nam_revents
#else
#endif
#ifdef _nam_revents
#else
#endif
m = 0;
#ifdef POLLIN
m |= POLLIN;
#endif
#ifdef POLLOUT
m |= POLLOUT;
#endif
#ifdef POLLPRI
m |= POLLPRI;
#endif
#ifdef POLLWRNORM
m |= POLLWRNORM;
#endif
#ifdef POLLRDNORM
m |= POLLRDNORM;
#endif
#ifdef POLLRDBAND
m |= POLLRDBAND;
#endif
#ifdef POLLWRBAND
m |= POLLWRBAND;
#endif
#ifdef POLLMSG
m |= POLLMSG;
#endif
#ifdef POLLSYNC
m |= POLLSYNC;
#endif
#ifdef POLLNVAL
m |= POLLNVAL;
#endif
#ifdef POLLERR
m |= POLLERR;
#endif
#ifdef POLLHUP
m |= POLLHUP;
#endif
#ifdef POLLNORM
m |= POLLNORM;
#endif
sfprintf(sfstdout, "#define CS_POLL_PSEUDO (CS_POLL_AUTH|CS_POLL_CONNECT|CS_POLL_USER|CS_POLL_BEFORE)\n");
for (i = 0; m & (1<<i); i++);
for (i++; m & (1<<i); i++);
for (i++; m & (1<<i); i++);
for (i++; m & (1<<i); i++);
#else
sfprintf(sfstdout, "#define CS_POLL_PSEUDO (CS_POLL_AUTH|CS_POLL_CONNECT|CS_POLL_USER|CS_POLL_BEFORE)\n");
#endif
#ifdef SCM_RIGHTS
#endif
exit(0);
}