SCCS-vsn: sys/sys/proc.h 7.32
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)proc.h 7.31 (Berkeley) %G%
+ * @(#)proc.h 7.32 (Berkeley) %G%
*/
#ifndef _PROC_H_
#define _PROC_H_
#include <machine/proc.h> /* machine-dependent proc substruct */
*/
#ifndef _PROC_H_
#define _PROC_H_
#include <machine/proc.h> /* machine-dependent proc substruct */
+#include <sys/select.h> /* for struct selinfo */
/*
* One structure allocated per session.
/*
* One structure allocated per session.
int p_refcnt; /* number of references */
};
int p_refcnt; /* number of references */
};
-/*
- * Used to maintain information about processes that wish to be
- * notified when I/O becomes possible.
- */
-struct selinfo {
- pid_t si_pid; /* process to be notified */
- short si_flags; /* see below */
-};
-#define SI_COLL 0x0001 /* collision occurred */
-
/* stat codes */
#define SSLEEP 1 /* awaiting an event */
#define SWAIT 2 /* (abandoned state) */
/* stat codes */
#define SSLEEP 1 /* awaiting an event */
#define SWAIT 2 /* (abandoned state) */
int wakeup __P((caddr_t));
int setrun __P((struct proc *));
int setpri __P((struct proc *));
int wakeup __P((caddr_t));
int setrun __P((struct proc *));
int setpri __P((struct proc *));
-void selrecord __P((struct proc *selector, struct selinfo *));
-void selwakeup __P((struct selinfo *));