Re: Win32 rename()/unlink() questions

Поиск
Список
Период
Сортировка
От Mike Mascari
Тема Re: Win32 rename()/unlink() questions
Дата
Msg-id 3D8B373C.7060102@mascari.com
обсуждение исходный текст
Ответ на Re: Win32 rename()/unlink() questions  (Bruce Momjian <pgman@candle.pha.pa.us>)
Ответы Re: Win32 rename()/unlink() questions  (Stephan Szabo <sszabo@megazone23.bigpanda.com>)
Re: Win32 rename()/unlink() questions  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-hackers
Bruce Momjian wrote:
> I don't think we are not going to be supporting Win9X so there isn't an
> issue there.  We will be supporting Win2000/NT/XP.
> 
> I don't understand FILE_SHARE_DELETE.  I read the description at:
> 
>     http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/base/createfile.asp
> 
> but I don't understand it:
> 
>     FILE_SHARE_DELETE - Windows NT/2000/XP: Subsequent open operations on
>     the object will succeed only if delete access is requested.

I think that's a rather poor description. I think it just means 
that if the file is opened once via CreateFile() with 
FILE_SHARE_DELETE, then any subsequent CreateFile() calls will 
fail unless they too have FILE_SHARE_DELETE. In other words, if 
one of us can delete this file while its open, any of us can.

Mike Mascari
mascarm@mascari.com






В списке pgsql-hackers по дате отправления:

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: [GENERAL] timestamp parse error
Следующее
От: Andrew Sullivan
Дата:
Сообщение: Re: SCSI Error