~ubuntu-branches/ubuntu/dapper/screen/dapper-updates

« back to all changes in this revision

Viewing changes to sched.h

  • Committer: Bazaar Package Importer
  • Author(s): Nathaniel McCallum
  • Date: 2004-09-03 15:15:33 UTC
  • Revision ID: james.westby@ubuntu.com-20040903151533-px02yqlrchs4fv2t
Tags: upstream-4.0.2
ImportĀ upstreamĀ versionĀ 4.0.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Copyright (c) 1993-2002
 
2
 *      Juergen Weigert (jnweiger@immd4.informatik.uni-erlangen.de)
 
3
 *      Michael Schroeder (mlschroe@immd4.informatik.uni-erlangen.de)
 
4
 * Copyright (c) 1987 Oliver Laumann
 
5
 *
 
6
 * This program is free software; you can redistribute it and/or modify
 
7
 * it under the terms of the GNU General Public License as published by
 
8
 * the Free Software Foundation; either version 2, or (at your option)
 
9
 * any later version.
 
10
 *
 
11
 * This program is distributed in the hope that it will be useful,
 
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14
 * GNU General Public License for more details.
 
15
 *
 
16
 * You should have received a copy of the GNU General Public License
 
17
 * along with this program (see the file COPYING); if not, write to the
 
18
 * Free Software Foundation, Inc.,
 
19
 * 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA
 
20
 *
 
21
 ****************************************************************
 
22
 * $Id: sched.h,v 1.1.1.1 1993/06/16 23:51:13 jnweiger Exp $ FAU
 
23
 */
 
24
 
 
25
struct event
 
26
{
 
27
  struct event *next;
 
28
  void (*handler) __P((struct event *, char *));
 
29
  char *data;
 
30
  int fd;
 
31
  int type;
 
32
  int pri;
 
33
  struct timeval timeout;
 
34
  int queued;           /* in evs queue */
 
35
  int active;           /* in fdset */
 
36
  int *condpos;         /* only active if condpos - condneg > 0 */
 
37
  int *condneg;
 
38
};
 
39
 
 
40
#define EV_TIMEOUT      0
 
41
#define EV_READ         1
 
42
#define EV_WRITE        2
 
43
#define EV_ALWAYS       3