bug-coreutils
[Top][All Lists]
Advanced

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

bug#14463: coreutils-8.21 darwin regressions


From: Paul Eggert
Subject: bug#14463: coreutils-8.21 darwin regressions
Date: Sat, 25 May 2013 10:22:02 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130510 Thunderbird/17.0.6

On 05/25/2013 07:51 AM, Jack Howarth wrote:
> I am a bit unclear on that issue. Does darwin lack the complete posix support 
> required for
> freadahead.c, freadptr.c, fseterr.c and fseeko.c to be rewritten to support 
> compiling with
> -D_POSIX_C_SOURCE (at least for modern darwin releases)? Or has it just never 
> been implemented
> in order to maintain support for legacy versions of darwin?

Sorry, I don't know Darwin.  But my guess is that applications
routinely need to define _DARWIN_C_SOURCE to get their work
done.

I'm a bit puzzled by this case.  If I understand
https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man5/compat.5.html
correctly, _DARWIN_C_SOURCE nowadays means "conform to POSIX,
but add non-POSIX extensions even if that violates the POSIX
namespace rules", which is normally what we want.  And yet here,
_DARWIN_C_SOURCE seems to mean "change getgroups() so that it
no longer works right".  What gives?  If Apple has
a little "POSIX world" to pacify the standards nerds, but it's
a world that actual programs would never really want to use,
then we don't want to use it either.

The BUGS section of that manual page says that the behavior
is dubious if you compile different sections of a program with
different flags, so I'd prefer a solution that didn't require
disabling _DARWIN_C_SOURCE just for this.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]