Date: Fri, 11 May 2012 10:55:39 -0700 From: Garrett Cooper <yanegomi@gmail.com> To: Konstantin Belousov <kostikbel@gmail.com> Cc: svn-src-head@freebsd.org, Konstantin Belousov <kib@freebsd.org>, svn-src-all@freebsd.org, src-committers@freebsd.org, Andrey Chernov <ache@freebsd.org> Subject: Re: svn commit: r235266 - head/lib/libc/stdlib Message-ID: <CAGH67wQnd7rwwUn1ep-3QJzYOdtQ5OayMvLVMBJvVCu6iPtBPg@mail.gmail.com> In-Reply-To: <20120511170412.GR2358@deviant.kiev.zoral.com.ua> References: <201205111129.q4BBT85G081093@svn.freebsd.org> <20120511145432.GA19173@vniz.net> <20120511170412.GR2358@deviant.kiev.zoral.com.ua>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, May 11, 2012 at 10:04 AM, Konstantin Belousov <kostikbel@gmail.com> wrote: > On Fri, May 11, 2012 at 06:54:32PM +0400, Andrey Chernov wrote: >> Thanks, but in this two places old errno value should be saved across >> free() because free() may damage it: > I do not agree. free() cannot change errno. It might depending on the OS (logically it shouldn't, but I digress), but there was some recent discussion on the POSIX list about errno not being mangled via free: http://austingroupbugs.net/view.php?id=385 . Cheers, -Garrett
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGH67wQnd7rwwUn1ep-3QJzYOdtQ5OayMvLVMBJvVCu6iPtBPg>