1: #ifndef lint
   2: static char sccsid[] = "@(#)ioctl.c	5.1 (Berkeley) 7/2/83";
   3: #endif
   4: 
   5: #include "uucp.h"
   6: #include <sgtty.h>
   7: 
   8: /*******
   9:  *	ioctl(fn, com, ttbuf)	for machines without ioctl
  10:  *	int fn, com;
  11:  *	struct sgttyb *ttbuf;
  12:  *
  13:  *	return codes - same as stty and gtty
  14:  */
  15: 
  16: ioctl(fn, com, ttbuf)
  17: register int fn, com;
  18: struct sgttyb *ttbuf;
  19: {
  20:     struct sgttyb tb;
  21: 
  22:     switch (com) {
  23:     case TIOCHPCL:
  24:         gtty(fn, &tb);
  25:         tb.sg_flags |= 1;
  26:         return(stty(fn, &tb));
  27:     case TIOCGETP:
  28:         return(gtty(fn, ttbuf));
  29:     case TIOCSETP:
  30:         return(stty(fn, ttbuf));
  31:     case TIOCEXCL:
  32:     default:
  33:         return(-1);
  34:     }
  35: }

Defined functions

Defined variables

sccsid defined in line 2; never used
Last modified: 1983-07-03
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 690
Valid CSS Valid XHTML 1.0 Strict