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

Re: [PATCH] Replacing the system call pread() with real mmap().

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Jan 7, 2007, 17:10 UTC
Message-ID
<Pine.LNX.4.63.0701071810220.22628@wbgn013.biozentrum.uni-wuerzburg.de>
In-Reply-To
<20070107163637.GE9909@scotty.home>
Hi,
On Sun, 7 Jan 2007, Stefan-W. Hahn wrote:
Show 11 quoted lines
> Also sprach Shawn O. Pearce am Sun, 07 Jan 2007 at 06:24:45 -0500:
> > Better to emulate pread using lseek/xread/lseek:
> > 
> > 	off_t p = lseek(fd, offset, SEEK_SET);
> > 	xread(fd, buf, count);
> > 	lseek(fd, p, SEEK_SET);
> > 
> > If you look at the history for contrib/mmap.c you will see an
> > implementation like that before it was called git_mmap().
> 
> This doesn't work;I tried it before.

Care to elaborate? It worked pretty well on _all_ cygwin setups I tested with.

Ciao, Dscho

Previous: Stefan-W. HahnNext: Stefan-W. Hahn
Message 7 of 12 in “problem with git clone on cygwin”
  1. Stefan-W. HahnJan 6, 2007
  2. Juergen RuehleJan 6, 2007
  3. Shawn O. PearceJan 7, 2007
  4. Replacing the system call pread() with real mmap().Stefan-W. Hahn, Jan 7, 2007
  5. Shawn O. PearceJan 7, 2007
  6. Stefan-W. HahnJan 7, 2007
  7. Johannes SchindelinJan 7, 2007
  8. Stefan-W. HahnJan 7, 2007
  9. Test for failing pread() on cygwin.Stefan-W. Hahn, Jan 7, 2007
  10. Stefan-W. HahnJan 7, 2007
  11. Juergen RuehleJan 7, 2007
  12. Stefan-W. HahnJan 7, 2007

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.