home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!enterpoop.mit.edu!ira.uka.de!rz.uni-karlsruhe.de!rz.uni-karlsruhe.de!ry41
- From: ry41@rz.uni-karlsruhe.de (Bernhard Moellemann)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Detecting root directories
- Date: 11 Dec 1992 19:07:51 GMT
- Organization: University of Karlsruhe, Germany
- Lines: 17
- Distribution: world
- Message-ID: <1gaou7INNcku@nz12.rz.uni-karlsruhe.de>
- References: <1g5q65INN97p@cs.tut.fi> <1992Dec9.225928.17421@jato.jpl.nasa.gov> <1992Dec10.021818.20474@sparky.imd.sterling.com> <1g78cnINNrqf@cs.tut.fi>
- NNTP-Posting-Host: tp70.rz.uni-karlsruhe.de
- MIME-Version: 1.0
- Content-Type: text/plain; charset=ISO-8859-1
- Content-Transfer-Encoding: 8bit
-
- In article <1g78cnINNrqf@cs.tut.fi>, po87553@cs.tut.fi (Pasi 'Albert' Ojala) writes:
- >In article <1992Dec10.021818.20474@sparky.imd.sterling.com> rick@IMD.Sterling.COM (Richard Ohnemus) writes:
- >>>In article <1g5q65INN97p@cs.tut.fi> po87553@cs.tut.fi (Pasi 'Albert' Ojala) writes:
- >>>>How can I detect if a Locked directory is a root directory
-
- >> parent = ParentDir(lock); /* 0 if lock is root */
-
- This is _only_ true, if no error occurs! Otherwise a real error prevented
- locking of the parent! (LOCK_EXCLUSIVE, ERROR_NO_FREE_STORE, ...)
-
- So check the result of IoErr().
-
- --
- Bernhard M÷llemann <spare space> Chairman of the Nessy-Fan-Club //
- internet=zza@rz.uni-karlsruhe.de <space> FIDO=2:241/7506.42 IRC=ZZA //
- nessynet=008 Lifenet=77:7700/11.42 greetings to my Marsupilami \\ //
- 2000/500 Technical Reference Manual: "A1000, the original Amiga" \X/
-