Re: How to tell if a file is busy?
Re: How to tell if a file is busy?
- Subject: Re: How to tell if a file is busy?
- From: Chris Page <email@hidden>
- Date: Wed, 03 Oct 2001 00:13:14 -0700
nigh on 2001.09.27 6:10 PM, Doug McNutt at email@hidden wrote:
>
At 17:44 -0700 9/27/01, Chris Page wrote:
>
> A file can be opened for read access multiple times, from within the same or
>
> different processes at the same time. Only one process can open a given file
>
> with write access
>
>
That is simply NOT TRUE. I complained to Apple about it and was
>
specifically informed of the fact. In fact I think it was Mr. Nebel
>
who said so. What really surprised me is that even in UNIX it's not
>
true. There is a busy bit but it only applies to cooperating
>
applications (processes).
From the File Manager documentation:
<
http://developer.apple.com/techpubs/macosx/Carbon/Files/FileManager/File_Ma
nager/index.html>
"fsRdWrPerm
Requests exclusive read and write permission. If exclusive read/ write
permission is granted, no other users are granted permission to write to the
file. Other users may, however, be granted permission to read the file."
What documentation do you have that contradicts this?
--
Chris Page
Mac OS Lead, Palm Desktop
Palm, Inc.
One of the symptoms of an approaching nervous breakdown is the belief that
one's work is terribly important. - Bertrand Russell