home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!bonnie.concordia.ca!IRO.UMontreal.CA!thomas
- From: thomas@IRO.UMontreal.CA (Steve Thomas)
- Newsgroups: comp.unix.internals
- Subject: file locks
- Summary: help with file locks
- Keywords: lockf, mutual exclusion
- Message-ID: <thomas.714424054@iros1>
- Date: 21 Aug 92 19:07:34 GMT
- Sender: news@IRO.UMontreal.CA
- Organization: Universite de Montreal
- Lines: 24
-
- Could someone explain or provide an example
- of how to properly use file locks.
-
- I am aware that chmod +l file will allow
- locks to be placed on a file and that
- the function lockf will lock the file.
-
- I would like to allow multiple processes
- the ability to change the same record
- (or separate records) in a file but
- with mutual exclusion enforced.
-
- Specifically I need the order of calls
- to fopen, lockf et.
-
- I would also like each process to get the
- lateest (updated) copy of the file
- once it is allowed access to the file.
-
- thanks
- Steve
-
- --
- internet: thomas@kovic.iro.umontreal.ca
-