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.questions
- Subject: lockf (file locks)
- Summary: Help!
- Keywords: mutual exclusion, file locking
- Message-ID: <thomas.714423728@iros1>
- Date: 21 Aug 92 19:02:08 GMT
- Sender: news@IRO.UMontreal.CA
- Organization: Universite de Montreal
- Lines: 19
-
- 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, etc that is required.
-
- Thanks !
- Steve
- --
- internet: thomas@kovic.iro.umontreal.ca
-