*BSD News Article 20201


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!elroy.jpl.nasa.gov!usc!howland.reston.ans.net!usenet.ins.cwru.edu!odin!chet
From: chet@odin.ins.cwru.edu (Chet Ramey)
Newsgroups: comp.os.386bsd.questions
Subject: Re: revoke() and login_tty()
Date: 30 Aug 1993 18:17:30 GMT
Organization: Information Network Services, Case Western Reserve University
Lines: 27
Message-ID: <25tg7q$s3d@usenet.INS.CWRU.Edu>
References: <1993Aug30.081144.25873@softwords.bc.ca>
NNTP-Posting-Host: odin.ins.cwru.edu

In article <1993Aug30.081144.25873@softwords.bc.ca>,
John Nemeth <jnemeth@cue.bc.ca> wrote:
>     Can anybody tell me what revoke() and login_tty() do?  revoke()

revoke(2):

     The revoke function invalidates all current open file descriptors in the
     system for the file named by path. Subsequent operations on any such de-
     scriptors fail, with the exceptions that a read() from a character device
     file which has been revoked returns a count of zero (end of file), and a
     close() call will succeed.  If the file is a special file for a device
     which is open, the device close function is called as if all open refer-
     ences to the file had been closed.

login_tty(3):

    Do everything to make `fd' the controlling terminal for the current
    process, which is made a session leader.

Chet


-- 
``The good news is that this year two million people will pass through
Washington's new Holocaust Memorial Museum, which will survive the
survivors and be their testimony.''
Chet Ramey, Case Western Reserve University	Internet: chet@po.CWRU.Edu