* Re: xfsprogs commit 4944defad4ae2cbcf056207490d7c597bb92cd7c
2017-07-25 5:56 ` xfsprogs commit 4944defad4ae2cbcf056207490d7c597bb92cd7c Darrick J. Wong
@ 2017-07-25 9:51 ` Jory A. Pratt
0 siblings, 0 replies; 2+ messages in thread
From: Jory A. Pratt @ 2017-07-25 9:51 UTC (permalink / raw)
To: Darrick J. Wong, David Shaw; +Cc: cmaiolino, xfs
[-- Attachment #1.1: Type: text/plain, Size: 2026 bytes --]
On 07/25/17 00:56, Darrick J. Wong wrote:
> [cc xfs list]
>
> On Sun, Jul 23, 2017 at 10:21:56AM -0400, David Shaw wrote:
>> On Jul 22, 2017, at 10:13 PM, Jory A. Pratt <anarchy@gentoo.org> wrote:
>>>
>>> Is there any specific reason you all have drop'd away from the posix
>>> standard? This change introduces build failure as it no longer follows
>>> the posix standard for stdout.
>>>
>>> metadump.c:2875:10: error: assignment of read-only variable 'stdout'
>>> stdout = stderr;
>>> ^
>>> metadump.c:2911:10: error: assignment of read-only variable 'stdout'
>>> stdout = outf;
>
> Huh? What system configuration (libc, etc.) is this?
>
> The Open Group Base Specifications Issue 7
> http://pubs.opengroup.org/onlinepubs/9699919799/functions/stdin.html
> only mentions this:
>
> extern FILE *stderr, *stdin, *stdout;
>
> and says that it defers to the ISO C standard.
>
> The ISO C11 standard (draft 1570, anyway)
> https://port70.net/~nsz/c/c11/n1570.txt
> has this to say:
>
> stderr
> stdin
> stdout
> which are expressions of type ''pointer to FILE'' that point to the
> FILE objects associated, respectively, with the standard error,
> input, and output streams.
>
> I don't see anything in there about stdout being read only, though I
> suppose there's nothing in that explicitly requiring they be assignable.
>
> <grumble> musl, isn't it...?
Yes that is correct musl.
>
> --D
>
>>
>> Hi,
>>
>> I think you may have meant this to go to Darrick Wong
>> (darrick.wong@oracle.com), cc'd. I reported the bug (well,
>> indirectly), but Darrick was the person who fixed it.
>>
>> David
>>
>
--
=======================================================
Jory A. Pratt
Gentoo Linux Developer [Mozilla Lead]
E-Mail : anarchy@gentoo.org
GnuPG FP : D4AC 8D63 0B16 F7C9 08E9 B909 A0CC C3BA B4D0 88B4
GnuPG ID : B4D088B4
=======================================================
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread