From: "Olton, Chris" <Chris.Olton@iti-global.com>
To: "libc-help@sourceware.org" <libc-help@sourceware.org>
Subject: POSIX conformance question
Date: Wed, 13 Jun 2018 03:23:00 -0000 [thread overview]
Message-ID: <CY4PR1301MB21970C92B829E9EAFA808346DC7E0@CY4PR1301MB2197.namprd13.prod.outlook.com> (raw)
When we use the -ansi flag and include string.h, strdup isn't included. I don't know the rationale for keeping POSIX out when doing this, but that's not really my question. I understand I can still have this functionality if I define _POSIX_C_SOURCE to be >= 200809, but my question is why do I have to use this version? Why couldn't I use an earlier POSIX version (e.g. 200112) which also has strdup?
next reply other threads:[~2018-06-13 3:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-13 3:23 Olton, Chris [this message]
2018-06-14 21:55 ` Adhemerval Zanella
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CY4PR1301MB21970C92B829E9EAFA808346DC7E0@CY4PR1301MB2197.namprd13.prod.outlook.com \
--to=chris.olton@iti-global.com \
--cc=libc-help@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).