home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!mcsun!sunic!kth.se!byse.nada.kth.se!d88-jwa
- From: d88-jwa@byse.nada.kth.se (Jon WΣtte)
- Subject: Re: AFP, Files, and Byte Range Locking
- Message-ID: <1993Jan11.220934.26655@kth.se>
- Sender: usenet@kth.se (Usenet)
- Nntp-Posting-Host: byse.nada.kth.se
- Organization: Royal Institute of Technology, Stockholm, Sweden
- References: <cshotton-110193134404@oac2.hsc.uth.tmc.edu>
- Date: Mon, 11 Jan 1993 22:09:34 GMT
- Lines: 22
-
- In <cshotton-110193134404@oac2.hsc.uth.tmc.edu> cshotton@oac.hsc.uth.tmc.edu (Chuck Shotton) writes:
-
- >I know that byte range locking on files is possible on the Mac when using
- >AppleShare. Is it possible to do it on a stand-alone Mac so that 2
- >applications on the one Mac can read/write the same data file? Is there a
-
- PBLockRange works on local volumes IF Personal File Share
- is active; else it doesn't (I think)
-
- However, you can always open the file with fsRdWrPerm
- (fsDenyNone I think) and since the Mac has cooperative
- multitasking, you are guaranteed that noone else will
- change the file unless you call WaitNextEvent. You win
- one, occasionally :-)
-
- Cheers,
-
- / h+
- --
- -- Jon W{tte, h+@nada.kth.se, Mac Hacker Deluxe --
- This signature is kept shorter than 4 lines in the interests of UseNet
- S/N ratio.
-