Path: utzoo!mnetor!uunet!lll-winken!lll-tis!ames!pasteur!ucbvax!CORY.BERKELEY.EDU!dillon From: dillon@CORY.BERKELEY.EDU (Matt Dillon) Newsgroups: comp.sys.amiga Subject: Re: Dangling Locks Message-ID: <8803180147.AA16931@cory.Berkeley.EDU> Date: 18 Mar 88 01:47:02 GMT Sender: daemon@ucbvax.BERKELEY.EDU Lines: 11 :Both of these methods seem rather more complicated than: : : currentDir := Lock("",AccessRead); : :(I write in Modula-2, but I believe this will work the same in C) Yes, that works fine. An interesting variation which is also valid (which the workbench uses) is to open files by (A) lock'ing them, (B) setting the current directory to the FILELOCK, and (C) openning "": Open("", 1005). Cute, eh? -Matt