home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume3 / sps / part2 / selecttty.c < prev    next >
Encoding:
C/C++ Source or Header  |  1986-11-30  |  368 b   |  18 lines

  1. # include       "sps.h"
  2. # include       "flags.h"
  3.  
  4. /* SELECTTTY - Decides whether this process is interesting for its tty */
  5. selecttty ( p )
  6.  
  7. register struct process         *p ;
  8.  
  9. {
  10.     register union flaglist *fp ;
  11.     extern struct flags     Flg ;
  12.  
  13.     for ( fp = Flg.flg_Tlist ; fp->f_ttyline ; fp++ )
  14.         if ( fp->f_ttyline == p->pr_tty )
  15.             return ( 1 ) ;
  16.     return ( 0 ) ;
  17. }
  18.