git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] mmap implementation for mingw.

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Nov 21, 2008, 20:51 UTC
Message-ID
<alpine.DEB.1.00.0811212148550.30769@pacific.mpi-cbg.de>
In-Reply-To
<3e8340490811211225g6e479dcbyeeb793eb0f825441@mail.gmail.com>
Hi,
On Fri, 21 Nov 2008, Bryan Donlan wrote:
> I'm not overly familiar with the windows API, but wouldn't passing 
> FILE_SHARE_DELETE | FILE_SHARE_READ in the dwShareMode argument of 
> CreateFile() be enough to allow rename/deletion of the file in question 
> while it is mapped?

A very quick Google research already revealed that your suggestion has any meaning _only_ for NTFS.

So that leaves FAT behind.

I could also imagine that Windows 2K does not even bother heeding those flags (it speaks volumes about Microsoft's documentation that you cannot find out if that is the case spending less than 15 minutes, and possibly more than that).

So I think your objection is irrelevant, sorry, Dscho

Previous: Bryan Donlan
Message 7 of 7 in “mmap implementation for mingw.”
  1. mmap implementation for mingw.Vasyl Vavrychuk, Nov 21, 2008
  2. Johannes SixtNov 21, 2008
  3. Vasyl' VavrychukNov 21, 2008
  4. Johannes SixtNov 21, 2008
  5. Johannes SchindelinNov 21, 2008
  6. Bryan DonlanNov 21, 2008
  7. Johannes SchindelinNov 21, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.