*BSD News Article 59111


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.bhp.com.au!mel.dit.csiro.au!munnari.OZ.AU!news.ecn.uoknor.edu!paladin.american.edu!europa.chnt.gtegsc.com!gatech!newsfeed.internetmci.com!EU.net!sun4nl!xs4all!rob
From: rob@xs4all.nl (Rob J. Nauta)
Newsgroups: comp.unix.bsd.freebsd.misc,comp.unix.bsd.386bsd.misc,comp.unix.programmer,comp.unix.questions,comp.unix.internals
Subject: revoke() system call
Date: 16 Jan 1996 12:59:47 GMT
Organization: XS4ALL, networking for the masses
Lines: 16
Message-ID: <4dg7g3$mnm@news.xs4all.nl>
NNTP-Posting-Host: xs1.xs4all.nl
X-Newsreader: NN version 6.5.0 #666 (NOV)
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:12182 comp.unix.bsd.386bsd.misc:251 comp.unix.programmer:32717 comp.unix.questions:75545 comp.unix.internals:9560

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 ?

Rob
--
      -=*=-	| Across 50 states of mind, I didn't feel inclined. You waited
  Rob J. Nauta	| yesterday, I didn't come your way. Now time is moving on,
 rob@xs4all.nl	| I know it won't be long.  Till I'm shuffling away, with
      -=*=-	| nothing more to say. (Ride - 'Going blank again')