how do I hangup the line from a unix-c program?
Eoin Woods
ewoods at hemel.bull.co.uk
Tue Dec 11 20:56:22 AEST 1990
jay at gdx.UUCP (Jay A. Snyder) writes:
>how do I hangup the line from a unix-c program?
Use the ioctl(2) system call on the terminal to hang up the line by setting
the baud rate to 0 - On Berkley systems use fcntl(2) to perform a similar
function.
See : ioctl (2) < SysV
termio (7) <
or : fcntl (2) < BSD
Xenix, Minix, Coherent ... I'm not too sure!
Eoin.
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~ Eoin Woods, Software Development Group, Bull HN Information Systems, ~
~ Maxted Road, Hemel Hempstead, Herts HP2 7DZ ~
~ Tel : +44 442 232222 x4823 ~
~ Fax : +44 442 234084 ~
~ < Eoin.Woods at hemel.bull.co.uk > ~
~ < When do we start news group comp.os.emacs ? :-) > ~
More information about the Comp.unix.questions
mailing list