On macOS and NetBSD, the :mod:`!fcntl` module exposes the ``F_GETNOSIGPIPE``
and ``F_SETNOSIGPIPE`` constant.
+.. versionchanged:: next
+ On Linux >= 6.1, the :mod:`!fcntl` module exposes the ``F_DUPFD_QUERY``
+ to query a file descriptor pointing to the same file.
+
The module defines the following functions:
#ifdef F_NOTIFY
if (PyModule_AddIntMacro(m, F_NOTIFY)) return -1;
#endif
+#ifdef F_DUPFD_QUERY
+ if (PyModule_AddIntMacro(m, F_DUPFD_QUERY)) return -1;
+#endif
/* Old BSD flock(). */
#ifdef F_EXLCK
if (PyModule_AddIntMacro(m, F_EXLCK)) return -1;