From owner-freebsd-current@FreeBSD.ORG Mon Nov 24 14:34:31 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2192F16A4CE for ; Mon, 24 Nov 2003 14:34:31 -0800 (PST) Received: from harmony.village.org (rover.bsdimp.com [204.144.255.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id D8C4243F3F for ; Mon, 24 Nov 2003 14:34:29 -0800 (PST) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.12.9p2/8.12.9) with ESMTP id hAOMYClg026145; Mon, 24 Nov 2003 15:34:12 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Mon, 24 Nov 2003 15:33:49 -0700 (MST) Message-Id: <20031124.153349.13027396.imp@bsdimp.com> To: stefan@fafoe.narf.at From: "M. Warner Losh" In-Reply-To: <20031124182322.GB621@wombat.fafoe.narf.at> References: <20031124174457.GB27782@madman.celabo.org> <03a601c3b2b5$7bc15b80$b9844051@insultant.net> <20031124182322.GB621@wombat.fafoe.narf.at> X-Mailer: Mew version 2.1 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: boyd@insultant.net cc: current@freebsd.org Subject: Re: [PATCH] libc_r bug: successful close(2) sets errno to ENOTTY X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Nov 2003 22:34:31 -0000 In message: <20031124182322.GB621@wombat.fafoe.narf.at> Stefan Farfeleder writes: : On Mon, Nov 24, 2003 at 07:05:02PM +0100, boyd, rounin wrote: : > From: "Jacques A. Vidrine" : > > The application is broken. You must only check errno if you get an : > > error indication from the library call. : > : > errno is only meaningful after a syscall error. : : Wrong, counter-example: strtol(). errno is meaningful for syscalls after an error (the original message). The fact that other functions also dink with errno is not relevant to that statement. Warner