Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!hplabs!hpda!hpcuhb!hpindda!ash From: ash@hpindda.cup.hp.com (Art Harkin) Newsgroups: comp.sys.hp Subject: Re: TIOCNOTTY and /usr/include/sys/ioctl.h Message-ID: <4310157@hpindda.cup.hp.com> Date: 16 Mar 91 01:44:01 GMT References: <1150066@misty.boeing.com> Organization: HP Information Networks, Cupertino, CA Lines: 25 / 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