From owner-freebsd-current@FreeBSD.ORG Wed Nov 26 02:38:47 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 2A10416A4CE for ; Wed, 26 Nov 2003 02:38:47 -0800 (PST) Received: from smtp.noos.fr (nan-smtp-22.noos.net [212.198.2.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 06EE143FE0 for ; Wed, 26 Nov 2003 02:38:45 -0800 (PST) (envelope-from boyd@insultant.net) Received: (qmail 19901 invoked by uid 0); 26 Nov 2003 10:36:16 -0000 Received: from unknown (HELO coma) ([81.64.132.185]) (envelope-sender ) by 212.198.2.115 (qmail-ldap-1.03) with SMTP for ; 26 Nov 2003 10:36:16 -0000 Message-ID: <05d001c3b408$ed0b88c0$b9844051@insultant.net> From: "boyd, rounin" To: "Maxime Henrion" , "Terry Lambert" References: <20031123141408.GA1426@ratsnest.hole> <20031124174457.GB27782@madman.celabo.org> <20031124182322.GB621@wombat.fafoe.narf.at> <3FC40E19.6A2989B6@mindspring.com> <20031126095315.GH8404@elvis.mu.org> Date: Wed, 26 Nov 2003 11:34:51 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 cc: Stefan Farfeleder 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: Wed, 26 Nov 2003 10:38:47 -0000 > Wrong, strtol() can set errno in two cases, when the value is outside > the range of representable values or when no conversion could be > performed. well 'natch. it's trying to do math.h style hacks and overloads errno. iirc those sorts of things stem from V6/V7 on the PDP/11 when you may have had no FPU and 32 bit ops were library functions.