Subject: Re: [PATCH] mmap error handling

From: Morten Welinder <[email-masked]>
Date: Thu, 28 Jul 2005 19:29:57 -0400

> 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