From: Tom Tromey <tom@tromey.com>
To: Simon Marchi <simon.marchi@efficios.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [pushed] gdb: remove O_NOCTTY fallback definitions
Date: Thu, 22 Oct 2026 12:36:22 -0600 [thread overview]
Message-ID: <87bj8lshuh.fsf@tromey.com> (raw)
In-Reply-To: <20261022165739.232325-1-simon.marchi@efficios.com> (Simon Marchi's message of "Thu, 22 Oct 2026 12:57:37 -0400")
>>>>> "Simon" == Simon Marchi <simon.marchi@efficios.com> writes:
Simon> top.c and inflow.c define O_NOCTTY to 0 if it is not defined. This is
Simon> unnecessary, since gnulib's fcntl.h already provides the same fallback:
Simon> ‘O_DSYNC’, ‘O_NOCTTY’, ‘O_NOFOLLOW’, ‘O_RSYNC’, ‘O_SYNC’, and
Simon> ‘O_TTY_INIT’ are not defined on some platforms. When not otherwise
Simon> defined, Gnulib defines these macros to 0, which is generally safe.
Simon> Other files use O_NOCTTY without defining the fallback, showing that the
Simon> gnulib fallback works.
Simon> Add fcntl-h to the list of imported gnulib modules, since we now
Simon> explicitly rely on it. Nothing changes in the import, since that module
Simon> was already imported as a dependency.
Thanks.
Approved-By: Tom Tromey <tom@tromey.com>
Tom
prev parent reply other threads:[~2026-10-22 18:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-22 16:57 Simon Marchi
2026-10-22 18:36 ` Tom Tromey [this message]
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=87bj8lshuh.fsf@tromey.com \
--to=tom@tromey.com \
--cc=gdb-patches@sourceware.org \
--cc=simon.marchi@efficios.com \
/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