Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!know!pluto.hemel.bull.co.uk!ewoods From: ewoods@hemel.bull.co.uk (Eoin Woods) Newsgroups: comp.unix.questions Subject: Re: how do I hangup the line from a unix-c program? Message-ID: <1990Dec11.095622.5174@hemel.bull.co.uk> Date: 11 Dec 90 09:56:22 GMT References: <80@gdx.UUCP> Sender: @hemel.bull.co.uk Organization: Bull HN UK Lines: 24 Nntp-Posting-Host: brno jay@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@hemel.bull.co.uk > ~ ~ < When do we start news group comp.os.emacs ? :-) > ~