From owner-freebsd-standards Fri Dec 13 8:50:47 2002 Delivered-To: freebsd-standards@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0A7BA37B401 for ; Fri, 13 Dec 2002 08:50:47 -0800 (PST) Received: from espresso.q9media.com (espresso.q9media.com [65.39.129.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id BAFB743EC5 for ; Fri, 13 Dec 2002 08:50:46 -0800 (PST) (envelope-from mike@espresso.q9media.com) Received: by espresso.q9media.com (Postfix, from userid 1002) id 9A39D9C10; Fri, 13 Dec 2002 11:40:38 -0500 (EST) Date: Fri, 13 Dec 2002 11:40:38 -0500 From: Mike Barcroft To: standards@FreeBSD.org Subject: strerror() Message-ID: <20021213114038.A61753@espresso.q9media.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Organization: The FreeBSD Project Sender: owner-freebsd-standards@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I'm working on fixing strerror_r() in light of PR 44356. I'm wondering if anyone can explain why strerror() has an inline itoa procedure, instead of using snprintf(3). The comment says: /* Do this by hand, so we don't link to stdio(3). */ ...and the commit log says: revision 5.6 date: 1991/05/04 13:45:45; author: bostic; state: Exp; lines: +20 -6 don't include stdio(3), do itoa inline I thought it may have been to make strerror() async-signal-safe, but POSIX doesn't list it as an async-signal-safe function. Best regards, Mike Barcroft To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message