[PATCH] don't name parameter "errno"

Dmitry V. Levin ldv at altlinux.org
Tue May 24 22:24:45 UTC 2011

On Tue, May 24, 2011 at 10:41:31PM +0200, Denys Vlasenko wrote:
> http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/errno.h.html
> says:
> "The <errno.h> header shall provide a declaration or definition for
> errno. The symbol errno shall expand to a modifiable lvalue of type int.
> It is unspecified whether errno is a macro or an identifier declared
> with external linkage. If a macro definition is suppressed in order to
> access an actual object, or a program defines an identifier with the
> name errno, the behavior is undefined."
> strace source does use identifier "errno" at a parameter of one
> function. I propose to rename it, so that we don't risk
> getting build breakage here on obscure platforms or libcs.

It certainly won't harm, OK with me.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20110525/66d92297/attachment.bin>

More information about the Strace-devel mailing list