re: open file
re: open file
- Subject: re: open file
- From: Alex Reynolds <email@hidden>
- Date: Fri, 29 Nov 2002 16:30:15 -0500
Message: 10
Date: Fri, 29 Nov 2002 14:23:06 +0000
Subject: Re: open file
From: Chris Ridd <email@hidden>
To: <email@hidden>
...As Jeff says, Unix can do advisory locking of files using flock and
fcntl,
but if a program wants to ignore advisory locks it can..
May one ask why one wanted to know this? The last person asking this
turned
out to want to prevent multiple users from opening the same file so
that one
user couldn't accidentally overwrite changes saved by another user.
This
sparked a bit of a discussion here ;-)
I am working on an application that creates, destroys, and archives
RAM-based disks. I am now working on the archival part and I don't want
to destroy or archive a disk which contains a file that is currently
open by another application.
I don't want to spark a flame war, but why would wanting to know how to
do this be a bad thing?
-Alex
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.