*BSD News Article 59115


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!munnari.OZ.AU!news.ecn.uoknor.edu!paladin.american.edu!gatech!newsfeed.internetmci.com!howland.reston.ans.net!news.nic.surfnet.nl!tuegate.tue.nl!news.win.tue.nl!charm.il.ft.hse.nl!not-for-mail
From: robert@il.ft.hse.nl (Robert Klep)
Newsgroups: comp.unix.bsd.freebsd.misc,comp.unix.bsd.386bsd.misc,comp.unix.programmer,comp.unix.questions,comp.unix.internals
Subject: Re: revoke() system call
Date: 16 Jan 1996 16:59:21 +0100
Organization: LSD...melts in your mind, not in your hand
Lines: 15
Message-ID: <4dgi0p$9r5@charm.il.ft.hse.nl>
References: <4dg7g3$mnm@news.xs4all.nl>
NNTP-Posting-Host: charm.il.ft.hse.nl
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:12186 comp.unix.bsd.386bsd.misc:252 comp.unix.programmer:32720 comp.unix.questions:75548 comp.unix.internals:9561

rob@xs4all.nl (Rob J. Nauta):
 >I want to compile a BSD 4.4 program (that uses forkpty()/openpty() from
 >libc.a). I've grabbed pty.c and it works except that I am missing
 >revoke(). This is a system call so I cannot get it from the libc.a
 >source. 
 >Basically revoke() revokes all accesses to a file, other processes
 >that have it open will get an error on further reading. I'll even
 >settle for a revoke() that just works for a newly opened file by
 >my process.
 >Any ideas ?

If it's ok if it just works on a newly opened device, can't you make the
device un(read|write)able for anyone but yourself?

                                                                robert