home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / mac / programm / 21215 < prev    next >
Encoding:
Text File  |  1993-01-11  |  1.3 KB  |  35 lines

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