Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 beta 3/9/83; site basservax.SUN Path: utzoo!linus!decvax!mulga!munnari!basservax! From: chris@basservax.SUN (Chris Maltby) Newsgroups: net.unix-wizards Subject: Re: un-dedicating a line to a dialer Message-ID: <212@basservax.SUN> Date: Tue, 10-Jan-84 21:22:04 EST Article-I.D.: basserva.212 Posted: Tue Jan 10 21:22:04 1984 Date-Received: Wed, 11-Jan-84 08:42:51 EST References: <15002@sri-arpa.UUCP> <209@basservax.SUN>, <1526@rlgvax.UUCP> Sender: chris@basserva.SUN Organization: Dept of C.S., University of Sydney Lines: 21 Sorry about the item suggesting O_EXCL open as the dialler solution. Long ago, we changed our various terminal drivers to look for FEXCL in open calls, and examine and set XCLUDE in the tty flags. It really is quite useful (see example above). The code goes something like this: if ((tp->t_state&(ISOPEN|WOPEN)) == 0) { ... } else if (((tp->t_state & XCLUDE) || (flag&FEXCL)) && !(flag&FFORCE)) { u.u_error = ENXIO; return; } if (flag&FEXCL) tp->t_state |= XCLUDE; FFORCE corresponds to a new open option O_FORCE (super user only) which allows the XCLUDE to be overridden.