selinfo moves out to select.h
authorKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Tue, 18 Feb 1992 15:45:53 +0000 (07:45 -0800)
committerKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Tue, 18 Feb 1992 15:45:53 +0000 (07:45 -0800)
SCCS-vsn: sys/sys/proc.h 7.32

usr/src/sys/sys/proc.h

index 311d3f6..0dc428b 100644 (file)
@@ -4,13 +4,14 @@
  *
  * %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.
@@ -145,16 +146,6 @@ struct     pcred {
        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) */
@@ -233,8 +224,6 @@ int unsleep __P((struct proc *));
 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 *));
 
 #endif /* KERNEL */
 
 
 #endif /* KERNEL */