Main Page | Class List | File List | Class Members | File Members

sched.h

Go to the documentation of this file.
00001 /* Copyright (c) 1993-2002
00002  *      Juergen Weigert (jnweiger@immd4.informatik.uni-erlangen.de)
00003  *      Michael Schroeder (mlschroe@immd4.informatik.uni-erlangen.de)
00004  * Copyright (c) 1987 Oliver Laumann
00005  *
00006  * This program is free software; you can redistribute it and/or modify
00007  * it under the terms of the GNU General Public License as published by
00008  * the Free Software Foundation; either version 2, or (at your option)
00009  * any later version.
00010  *
00011  * This program is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with this program (see the file COPYING); if not, write to the
00018  * Free Software Foundation, Inc.,
00019  * 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA
00020  *
00021  ****************************************************************
00022  * $Id: sched.h,v 1.1.1.1 1993/06/16 23:51:13 jnweiger Exp $ FAU
00023  */
00024 
00025 struct event
00026 {
00027   struct event *next;
00028   void (*handler) __P((struct event *, char *));
00029   char *data;
00030   int fd;
00031   int type;
00032   int pri;
00033   struct timeval timeout;
00034   int queued;           /* in evs queue */
00035   int active;           /* in fdset */
00036   int *condpos;         /* only active if condpos - condneg > 0 */
00037   int *condneg;
00038 };
00039 
00040 #define EV_TIMEOUT      0
00041 #define EV_READ         1
00042 #define EV_WRITE        2
00043 #define EV_ALWAYS       3

Generated on Sat Jul 2 20:56:16 2005 for GNU Screen by  doxygen 1.4.3