From: Morten Welinder Date: Thu, 28 Jul 2005 23:29:57 GMT Subject: Re: [PATCH] mmap error handling 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