/*
 * @DEC_COPYRIGHT@
 */
/*
 * HISTORY
 * $Log:	poll.h,v $
 * Revision 4.2.2.2  91/12/20  13:09:36  William_Burns
 * 	Merge from ODE/TIN: revision 3.1.9.2
 * 	date: 91/11/19 13:41:56;  author: devrcs;  state: Exp;  lines added/del: 13/3
 * 	sccs rev: 3.2;  orig date: 91/11/06 20:04:02;  orig author: kachrani
 * 	Add C no proto for poll() system call
 * 	[91/12/20  09:15:47  William_Burns]
 * 
 * Revision 4.2  91/09/19  22:59:16  devbld
 * 	Adding ODE Headers
 * 
 * $EndLog$
 */
/*	
 *	@(#)$RCSfile: poll.h,v $ $Revision: 4.2.2.2 $ (DEC) $Date: 91/12/20 13:09:36 $
 */ 
/*
 * (c) Copyright 1990, OPEN SOFTWARE FOUNDATION, INC.
 * ALL RIGHTS RESERVED
 */
/*
 * OSF/1 Release 1.0
 */
/** Copyright (c) 1989  Mentat Inc.
 ** poll.h 1.1, last change 8/8/89
 **/
/*
 *	x0.8	Ajay Kachrani	Add no C poroto for poll() (QAR 1610)
 *
 */
#include <standards.h>		/* define feature-test macros */

#ifdef _AES_SOURCE

/* Poll masks */
#define	POLLNORM	01	/* message available on read queue */
#define	POLLOUT		04	/* stream is writable */
#define	POLLERR		010	/* error message has arrived */
#define	POLLHUP		020	/* hangup has occurred */
#define	POLLNVAL	040	/* invalid fd */

#ifdef _OSF_SOURCE
#define POLLIN		POLLNORM
#define	POLLPRI		02	/* priority message available */
#endif /* _OSF_SOURCE */

/* array of streams to poll */
struct pollfd {
	int	fd;
	short	events;
	short	revents;
};

#ifndef _KERNEL
#ifdef _NO_PROTO
extern int poll();
#else /* _NO_PROTO */
extern int poll( struct pollfd[], unsigned int, int );
#endif /* _NO_PROTO */
#endif /* _KERNEL */

#endif /* _AES_SOURCE */

#ifdef _OSF_SOURCE

#define	NPOLLFILE	20

#endif /* _OSF_SOURCE */
