[comp.sys.hp] TIOCNOTTY and /usr/include/sys/ioctl.h

jsadler@misty.boeing.com (Jim Sadler) (03/14/91)

Anyone know why TIOCNOTTY is ifdef'ed the way it is in
/usr/include/sys/ioctl ?

#ifdef  notdef
#define TIOCNOTTY       _IO('t', 113)           /* void tty association */
#endif /* notdef */

This "notdef" also shows up in /usr/include/sys/inode.h

jim sadler
206-234-9009	email	uunet!bcstec!jsadler | jsadler@misty.boeing.com

This service is brought to you by the computing mafia of Boeing (BCS).
Oh ya
None of the above is an opinion of The Boeing Co.  

ash@hpindda.cup.hp.com (Art Harkin) (03/16/91)

/ comp.sys.hp / jsadler@misty.boeing.com (Jim Sadler) / 10:31 pm  Mar 13, 1991 /

> Anyone know why TIOCNOTTY is ifdef'ed the way it is in
> /usr/include/sys/ioctl ?
> 
> #ifdef  notdef
> #define TIOCNOTTY       _IO('t', 113)           /* void tty association */
> #endif /* notdef */
> 
> This "notdef" also shows up in /usr/include/sys/inode.h

#ifdef HELPFUL_GUESS

I am not to sure why it is "ifdef'd" out, other than the HP-UX termio
is based on sysV with some BSD enhancements. I belive our goal is to be
compatible with POSIX in this area.

#endif HELPFUL_GUESS

However, guessing a possible future question, if you are porting code
or want to use this functionaliy (ie. tty disassociation) then you can
use the setpgrp() call. Which will do the same thing.

Art Harkin					ash@hpda.cup.hp.com
Hewlett Packard					Cupertino, CA