From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96076337821736.tru64-unix-managers.marc@archive.invalid> From: Christophe Colle Date: Wed, 28 Aug 1996 19:22:51 +0000 To: tru64-unix-managers Subject: file locking and file sharing.... X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96076337821736 Hi, I'm trying to port a small program which I wrote on a IBM running AIX. Under AIX there is a possibility to specify O_NSHARE and O_DELAY when opening a file with the open system call. If you specify both flags, the process will hang until no other process has the specified file open. Is there a possibility to perform the same action under digital unix (3.2c)? I need this because there is a medical device which uses a file to check for concurrent processes accessing one database. So I want a way to be sure that 2 processes won't open the same file at the same time... Any help is welcome. Thanks in advance! Christophe Colle | \ ============================================================= | \ Colle Christophe Phone: +32-(0)9-2403955 | \ mail: colle@krtkg1.rug.ac.be http://krtkg1.rug.ac.be/~colle +----- christophe.colle@rug.ac.be | ----------+ When I'm in Ghent, then I'm probably at Anouk's place \________| ======= Radiotherapy Department, Ghent =============