File: jpoll.h

package info (click to toggle)
lsh-utils 2.1-12
  • links: PTS
  • area: main
  • in suites: buster
  • size: 12,884 kB
  • sloc: ansic: 51,017; sh: 5,683; lisp: 657; makefile: 381; perl: 63
file content (30 lines) | stat: -rw-r--r-- 651 bytes parent folder | download | duplicates (9)
1
2
3
4
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
/* jpoll.h
 *
 * Header file for my poll() SVID3 emulation function.
 *
 */

/*
 * 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 */