Skip navigation.
 
mlre: open file
FROM : Alex Reynolds
DATE : Fri Nov 29 22:30:15 2002

> Message: 10
> Date: Fri, 29 Nov 2002 14:23:06 +0000
> Subject: Re: open file
> From: Chris Ridd <<email_removed>>
> To: <<email_removed>>
>
> ...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_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

Related mailsAuthorDate
mlopen file Alex Reynolds Nov 29, 09:39
mlRe: open file Jeff Disher Nov 29, 09:56
mlRe: open file Chris Ridd Nov 29, 15:23
mlre: open file Alex Reynolds Nov 29, 22:30
mlRe: open file Fritz Anderson Nov 29, 23:00