~ubuntu-branches/ubuntu/saucy/python-scipy/saucy

« back to all changes in this revision

Viewing changes to Lib/sandbox/xplt/src/play/unix/upoll.h

  • Committer: Bazaar Package Importer
  • Author(s): Ondrej Certik
  • Date: 2008-06-16 22:58:01 UTC
  • mfrom: (2.1.24 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080616225801-irdhrpcwiocfbcmt
Tags: 0.6.0-12
* The description updated to match the current SciPy (Closes: #489149).
* Standards-Version bumped to 3.8.0 (no action needed)
* Build-Depends: netcdf-dev changed to libnetcdf-dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * upoll.h -- $Id: upoll.h 685 2003-03-08 15:26:51Z travo $
3
 
 *
4
 
 * UNIX poll.h header, when poll() must be implemented using select
5
 
 *
6
 
 * Copyright (c) 1998.  See accompanying LEGAL file for details.
7
 
 */
8
 
 
9
 
struct pollfd {
10
 
  int fd;         /* file descriptor */
11
 
  short events;   /* events desired */
12
 
  short revents;  /* events returned */
13
 
};
14
 
 
15
 
/* events or revents */
16
 
#define POLLIN          01              /* ready to read */
17
 
#define POLLPRI         02              /* urgently ready to read */
18
 
#define POLLOUT         04              /* fd is writable */
19
 
 
20
 
/* revents only */
21
 
#define POLLERR         010             /* error */
22
 
#define POLLHUP         020             /* hangup */
23
 
#define POLLNVAL        040             /* fd not open */
24
 
 
25
 
/* timeout is in milliseconds, -1 to wait forever
26
 
 * returns number of fds with non-zero revents,
27
 
 *   or -1 and sets errno to
28
 
 *     EAGAIN, EFAULT, EINTR (signal during poll), EINVAL */
29
 
extern int u__poll(struct pollfd *fds, unsigned long int nfds, int timeout);