home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / amiga / programm / 17217 next >
Encoding:
Text File  |  1992-12-11  |  1.5 KB  |  33 lines

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