home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / vms / 12949 < prev    next >
Encoding:
Internet Message Format  |  1992-07-29  |  1.8 KB

  1. Xref: sparky comp.os.vms:12949 comp.databases:5843 vmsnet.misc:675 comp.programming:2133
  2. Newsgroups: comp.os.vms,comp.databases,vmsnet.misc,comp.programming
  3. Path: sparky!uunet!gatech!usenet.ins.cwru.edu!magnus.acs.ohio-state.edu!kcgl1.eng.ohio-state.edu!JONESD
  4. From: JONESD@kcgl1.eng.ohio-state.edu (David Jones)
  5. Subject: Re: Programming question:  VMS region locking
  6. Message-ID: <1992Jul30.154358.3614@magnus.acs.ohio-state.edu>
  7. Sender: news@magnus.acs.ohio-state.edu
  8. Nntp-Posting-Host: kcgl1.eng.ohio-state.edu
  9. Organization: The Ohio State University
  10. References: <1992Jul29.213145.3684@spdcc.com>
  11. Date: Thu, 30 Jul 1992 15:43:58 GMT
  12. Lines: 25
  13.  
  14. In article <1992Jul29.213145.3684@spdcc.com>, rbraun@spdcc.com (Rich Braun) writes:
  15. >Our company has a fairly sizeable application which contains what
  16. >amounts to a home-brew data file access method.  It relies on
  17. >low-level file locking primitives (provided via F_SETLK/F_GETLK
  18. >parameters to fcntl under Unix) to handle access contention in
  19. >multi-user environments.
  20.  
  21. >To reduce the amount of risk, I'm trying to identify some way to do
  22. >the same thing as fcntl under VMS.  Does DEC's commitment to POSIX
  23. >include standard file locking primitives?  Are there any solutions to
  24. >this problem, whether provided by DEC or any other source?
  25.  
  26. The VMS POSIX documentation indicates that fcntl() supports F_GETLK and
  27. F_SETLK.  Apparently, one of the changes made in VMS 5.5 was a change to
  28. the lock manager to allow support of this functionality.  I don't know
  29. the details of these changes.
  30.  
  31.  
  32.  
  33. David L. Jones               |      Phone:    (614) 292-6929
  34. Ohio State Unviversity       |      Internet:
  35. 1971 Neil Ave. Rm. 406       |               jonesd@kcgl1.eng.ohio-state.edu
  36. Columbus, OH 43210           |               jones-d@eng.ohio-state.edu
  37.  
  38. Disclaimer: A repudiation of a claim.
  39.