Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!helios!bcm!dimacs.rutgers.edu!rutgers!cbmvax!jesup From: jesup@cbmvax.commodore.com (Randell Jesup) Newsgroups: comp.sys.amiga.programmer Subject: Re: Questions to the keeper(s) of AmigaDos Message-ID: <18256@cbmvax.commodore.com> Date: 29 Jan 91 19:07:40 GMT References: <1991Jan29.095740.9133@ccu.umanitoba.ca> Reply-To: jesup@cbmvax.commodore.com (Randell Jesup) Organization: Commodore, West Chester, PA Lines: 23 In article <1991Jan29.095740.9133@ccu.umanitoba.ca> umrobbin@ccu.umanitoba.ca writes: >On the disks I checked, these two values were always identical. Directories >were 2 and files were -3. Apparently there is no difference between them, >so what is their history? Are they the same in FFS as well? For maximum >safety in upward compatibility, should I be using DirEntryType? >Why 2 and -3? Because of that unfortunate lack of documentation, we're kind of stuck with keeping them the same. However, you should use fib_DirEntryType. >bugs and possible similar ones been killed? What is the safest way to lock >the current directory? I've been using > cd_lock = Lock("",ACCESS_READ); >with no apparent problems, is this okay? That's fine. -- Randell Jesup, Keeper of AmigaDos, Commodore Engineering. {uunet|rutgers}!cbmvax!jesup, jesup@cbmvax.commodore.com BIX: rjesup The compiler runs Like a swift-flowing river I wait in silence. (From "The Zen of Programming") ;-)