Plan 9 from Bell Labs’s /usr/web/sources/contrib/fgb/root/sys/include/ape/poll.h

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


#ifndef	___POLL
#define	__POLL
#pragma lib "/$M/lib/ape/libpoll.a"

typedef unsigned int	nfds_t;

typedef struct pollfd {
	int	fd;
	short	events;
	short	revents;
} pollfd_t;


#define POLLIN	0x0001
#define POLLOUT	0x0004
#define POLLERR	0x0008
#define POLLPRI	0x0002
#define POLLHUP	0x0010
#define POLLNVAL	0x0020
#define POLLRDNORM	0x0040
#define POLLNORM	POLLRDNORM
#define POLLWRNORM	POLLOUT
#define POLLRDBAND	0x0080
#define POLLWRBAND	0x0100

extern	int	poll(struct pollfd *, nfds_t, int);

#endif /* __POLL */

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.