Date: Fri, 13 Dec 2002 11:40:38 -0500 From: Mike Barcroft <mike@FreeBSD.org> To: standards@FreeBSD.org Subject: strerror() Message-ID: <20021213114038.A61753@espresso.q9media.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021213114038.A61753>