Re: [PATCH 3/3] testsuite: fix usage of reserved names

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Aug 26, 2013 at 3:20 PM, John Spencer <maillist-kmod@xxxxxxxxxxx> wrote:
> stdout and stderr are names reserved for the implementation
> and musl uses them rightfully as macro - and the expansion
> causes (of course) unexpected results.

couldn't musl just do what glibc does here?

<... define the types here ...>
#define stdin stdin
#define stdout stdout
#define stderr stderr

This would avoid patches like this to several projects.

>
> renaming the struct members stdout to std_out and stderr
> to std_err, to be 1) compliant 2) cause compilation to
> succeed.

uggh.. "out" and "err" otherwise. No need for the "std_" prefix.


Lucas De Marchi
--
To unsubscribe from this list: send the line "unsubscribe linux-modules" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux