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

Re: [PATCH] mmap error handling

From
MWMorten Welinder <mwelinder@gmail.com>
Date
Jul 28, 2005, 23:29 UTC
Message-ID
<118833cc05072816294f80a829@mail.gmail.com>
In-Reply-To
<1122586842.17837.9.camel@dv>
> I have verified that successful close() after failed mmap() won't reset
> the output of perror() to "Success".
Does $standard guarantee that?

In general, successful libc calls can set errno to whatever they please, except zero. And they sometimes do. This follows from C99.

Morten
Previous: Pavel RoskinNext: Linus Torvalds
Message 2 of 4 in “mmap error handling”
  1. mmap error handlingPavel Roskin, Jul 28, 2005
  2. Morten WelinderJul 28, 2005
  3. Linus TorvaldsJul 29, 2005
  4. Pavel RoskinJul 29, 2005

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.