This is the mail archive of the
mailing list for the glibc project.
Re: _DEFAULT_SOURCE expected semantic
- From: Carlos O'Donell <codonell at redhat dot com>
- To: Andreas Schwab <schwab at suse dot de>, Adhemerval Zanella <adhemerval dot zanella at linaro dot org>
- Cc: GNU C Library <libc-alpha at sourceware dot org>
- Date: Wed, 10 Apr 2019 09:08:48 -0400
- Subject: Re: _DEFAULT_SOURCE expected semantic
- References: <firstname.lastname@example.org> <email@example.com>
On 4/10/19 8:57 AM, Andreas Schwab wrote:
On Apr 10 2019, Adhemerval Zanella <firstname.lastname@example.org> wrote:
So _DEFAULT_SOURCE always defines -D_POSIX_C_SOURCE=200809L without
implicit _XOPEN_SOURCE from glibc 2.19 to 2.30. Afaik there is no need to
currently to add POSIX1.2017 support, so the question is whether
glibc will continue to eforce -D_POSIX_C_SOURCE=200809L for
_DEFAULT_SOURCE in future versions or if the flag will eventually be update
whether/once a new POSIX1 version is required.
I think _DEFAULT_SOURCE should always be what is considered state of the
art, similar to gcc default for -std moving forward.