Re: [PATCH] mmap error handling
- From
- Morten 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