From owner-freebsd-current@FreeBSD.ORG Mon Nov 24 10:23:30 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 7141B16A4CE for ; Mon, 24 Nov 2003 10:23:30 -0800 (PST) Received: from fafoe.narf.at (chello212186121237.14.vie.surfer.at [212.186.121.237]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5CF5443FDF for ; Mon, 24 Nov 2003 10:23:28 -0800 (PST) (envelope-from stefan@fafoe.narf.at) Received: from wombat.fafoe.narf.at (wombat.fafoe.narf.at [192.168.1.42]) by fafoe.narf.at (Postfix) with ESMTP id 378E040B8; Mon, 24 Nov 2003 19:23:25 +0100 (CET) Received: by wombat.fafoe.narf.at (Postfix, from userid 1001) id 95A301AC; Mon, 24 Nov 2003 19:23:24 +0100 (CET) Date: Mon, 24 Nov 2003 19:23:23 +0100 From: Stefan Farfeleder To: "boyd, rounin" Message-ID: <20031124182322.GB621@wombat.fafoe.narf.at> Mail-Followup-To: "boyd, rounin" , current@freebsd.org References: <20031123141408.GA1426@ratsnest.hole> <20031124174457.GB27782@madman.celabo.org> <03a601c3b2b5$7bc15b80$b9844051@insultant.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <03a601c3b2b5$7bc15b80$b9844051@insultant.net> User-Agent: Mutt/1.5.5.1i 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 18:23:30 -0000 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(). Stefan