From owner-svn-src-all@FreeBSD.ORG Fri May 11 17:55:41 2012 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 773ED106564A; Fri, 11 May 2012 17:55:41 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-vb0-f54.google.com (mail-vb0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id B17E38FC0A; Fri, 11 May 2012 17:55:40 +0000 (UTC) Received: by vbmv11 with SMTP id v11so4091622vbm.13 for ; Fri, 11 May 2012 10:55:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=yZ+HKWnf5nKu6sI1sqBSvilV1EFKNbETkhQvyTMjAqM=; b=KnC+OBOS+SKe1sJyHzMOdL2P9EDzUhi0qRvdE65YtjoRYiS6qjZUofSFXA2d9l2wLA KGT0YJw8oo70fppSuRHlLnS74py6DmwNTtTLy066QlQxzjsw2FB6z9klbs0N/e3mTanl XDj7M310FP9PCI/3s/Q+YKLAl6gL5TGBtw9817BOLJ8XidOiJbHA8ti0C6/Qxbzm+yBQ GjcMKRbnazGMDk9qGBYdIaqJhCDoqbCP32pwwTMhlFPijOfi4iRAVzFsePrUR81TOBVT 18PyMYtviNfubien9Y8XjvcRFGThwcHjCLU7p3QH2U/j4Q9T5vHotsFc70rNO8HxS7xB b39g== MIME-Version: 1.0 Received: by 10.52.22.79 with SMTP id b15mr309055vdf.10.1336758940028; Fri, 11 May 2012 10:55:40 -0700 (PDT) Received: by 10.220.7.148 with HTTP; Fri, 11 May 2012 10:55:39 -0700 (PDT) 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> Date: Fri, 11 May 2012 10:55:39 -0700 Message-ID: From: Garrett Cooper To: Konstantin Belousov Content-Type: text/plain; charset=ISO-8859-1 Cc: svn-src-head@freebsd.org, Konstantin Belousov , svn-src-all@freebsd.org, src-committers@freebsd.org, Andrey Chernov Subject: Re: svn commit: r235266 - head/lib/libc/stdlib X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 May 2012 17:55:41 -0000 On Fri, May 11, 2012 at 10:04 AM, Konstantin Belousov 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