From: Bruno Haible <bruno@clisp.org>
To: Gavin Smith <GavinSmith0123@gmail.com>,
Bruno Haible <bruno@clisp.org>,
bug-gnulib@gnu.org, bug-texinfo@gnu.org
Subject: Re: Avoid gnulib redefinitions - MDA
Date: Sun, 30 Oct 2022 00:09:50 +0200 [thread overview]
Message-ID: <8965388.O52NOvI7LO@nimes> (raw)
In-Reply-To: <Y12iJc8iY+zftRDg@starmint>
Gavin Smith wrote:
> so it sounds like we are better off using #undef before
> including the Perl headers to avoid depending on undocumented
> functionalities. Thanks.
Using #undef means to decline all corrections done by Gnulib.
These are documented in the manual. For example, for 'fdopen' [1]
we have documented
Portability problems fixed by Gnulib:
This function crashes when invoked with invalid arguments on
some platforms: MSVC 14.
On Windows platforms (excluding Cygwin), this function does not
set errno upon failure.
So, if you always use fdopen() with correct arguments and if, in
case of a NULL return of this function, the code does not look at
errno, then the '#undef fdopen' is OK. (On those platforms where
the Microsoft deprecated alias still work, or when it is overridden
by a redirect to some perl internal function.)
Bruno
[1] https://www.gnu.org/software/gnulib/manual/html_node/fdopen.html
next prev parent reply other threads:[~2022-10-29 22:10 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-29 13:36 Avoid gnulib redefinitions - MDA, free-posix Gavin Smith
2022-10-29 16:58 ` Paul Eggert
2022-10-29 18:53 ` Gavin Smith
2022-10-30 13:37 ` Avoid gnulib redefinitions - free-posix Bruno Haible
2022-10-29 21:48 ` Avoid gnulib redefinitions - MDA Bruno Haible
2022-10-29 21:59 ` Gavin Smith
2022-10-29 22:09 ` Bruno Haible [this message]
2022-10-29 22:20 ` Gavin Smith
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
List information: https://lists.gnu.org/mailman/listinfo/bug-gnulib
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8965388.O52NOvI7LO@nimes \
--to=bruno@clisp.org \
--cc=GavinSmith0123@gmail.com \
--cc=bug-gnulib@gnu.org \
--cc=bug-texinfo@gnu.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).