From owner-svn-src-head@FreeBSD.ORG Tue Jun 5 13:10:08 2012 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 27A0B1065670; Tue, 5 Jun 2012 13:10:08 +0000 (UTC) (envelope-from des@des.no) Received: from smtp.des.no (smtp.des.no [194.63.250.102]) by mx1.freebsd.org (Postfix) with ESMTP id CAEC28FC0A; Tue, 5 Jun 2012 13:10:07 +0000 (UTC) Received: from ds4.des.no (smtp.des.no [194.63.250.102]) by smtp.des.no (Postfix) with ESMTP id 2130B6F77; Tue, 5 Jun 2012 13:10:07 +0000 (UTC) Received: by ds4.des.no (Postfix, from userid 1001) id DB8CD9600; Tue, 5 Jun 2012 15:10:06 +0200 (CEST) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Pawel Jakub Dawidek References: <201206042134.q54LYoVJ067685@svn.freebsd.org> <20120605074741.GA1391@garage.freebsd.pl> Date: Tue, 05 Jun 2012 15:10:06 +0200 In-Reply-To: <20120605074741.GA1391@garage.freebsd.pl> (Pawel Jakub Dawidek's message of "Tue, 5 Jun 2012 09:47:42 +0200") Message-ID: <86txypvr9t.fsf@ds4.des.no> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, "Andrey A. Chernov" , freebsd-arch@FreeBSD.org Subject: Re: svn commit: r236582 - head/lib/libc/stdlib X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jun 2012 13:10:08 -0000 Pawel Jakub Dawidek writes: > Very interesting. However free(3) is always successful. Maybe we need > more context here, but the sentence above might talk about functions > that can either succeed or fail and such functions do set errno on > failure, but we don't know what they do to errno on success - they > sometimes interact with the errno, free(3) never does. Even if free() itself never fails, it might have side effects such as unmapping a slab, logging a KTR event etc. which can modify errno. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no