jpoll.h 651 Bytes
Newer Older
1
2
3
4
/* jpoll.h
 *
 * Header file for my poll() SVID3 emulation function.
 *
5
 */
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30

/*
 * AUTHOR:     Sean Reifschneider <jafo@tummy.com>
 * DATE:       1998-10-10
 * Copyright (c) 1998 Sean Reifschneider
 *
 */

#ifndef LSH_POLL_H_INCLUDED
#define LSH_POLL_H_INCLUDED

#define POLLIN		0x0001		/*  check for input  */
#define POLLOUT	0x0004		/*  check for output  */

struct pollfd {
	int fd;				/*  file descriptor to poll  */
	short events;		/*  events we are interested in  */
	short revents;		/*  events that occured  */
	};

typedef unsigned int nfds_t;

int poll(struct pollfd *fdlist, nfds_t count, int timeoutInMS);

#endif /* LSH_POLL_H_INCLUDED */