home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.os.vms:12916 comp.databases:5832 vmsnet.misc:674 comp.programming:2130
- Newsgroups: comp.os.vms,comp.databases,vmsnet.misc,comp.programming
- Path: sparky!uunet!think.com!spdcc!rbraun
- From: rbraun@spdcc.com (Rich Braun)
- Subject: Programming question: VMS region locking
- Message-ID: <1992Jul29.213145.3684@spdcc.com>
- Organization: Kronos Inc., Waltham, Mass.
- Date: Wed, 29 Jul 1992 21:31:45 GMT
- Lines: 22
-
- Our company has a fairly sizeable application which contains what
- amounts to a home-brew data file access method. It relies on
- low-level file locking primitives (provided via F_SETLK/F_GETLK
- parameters to fcntl under Unix) to handle access contention in
- multi-user environments.
-
- We're trying to port this application to a VAX/VMS environment, and I'm
- looking for other developers who've had to go through this.
-
- VAX RMS supports record-locking but not region-locking. I draw this
- distinction because our application treats the file as a raw stream of
- bytes, not as a collection of records, and it issues a number of
- low-level calls (namely, lseek) which don't fit at all into any
- standard approach to data access methods. Converting the application
- to use RMS record-locking would be an enormous undertaking for us.
-
- To reduce the amount of risk, I'm trying to identify some way to do
- the same thing as fcntl under VMS. Does DEC's commitment to POSIX
- include standard file locking primitives? Are there any solutions to
- this problem, whether provided by DEC or any other source?
-
- -rich
-