summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2024-07-10 13:47:08 (GMT)
committerGitHub <noreply@github.com>2024-07-10 13:47:08 (GMT)
commitca0fb3423c13822d909d75eb616ecf1965e619ae (patch)
tree4954f9c13072caba730b71f1bd852f054bcb763a
parent84a5597b08b7d53aced2fbd0048271ce762807a8 (diff)
downloadcpython-ca0fb3423c13822d909d75eb616ecf1965e619ae.zip
cpython-ca0fb3423c13822d909d75eb616ecf1965e619ae.tar.gz
cpython-ca0fb3423c13822d909d75eb616ecf1965e619ae.tar.bz2
gh-89364: Export PySignal_SetWakeupFd() function (#121537)
Export the PySignal_SetWakeupFd() function. Previously, the function was documented but it couldn't be used in 3rd party code.
-rw-r--r--Include/cpython/pyerrors.h2
-rw-r--r--Misc/NEWS.d/next/C_API/2024-07-09-15-55-20.gh-issue-89364.yYYroI.rst3
2 files changed, 4 insertions, 1 deletions
diff --git a/Include/cpython/pyerrors.h b/Include/cpython/pyerrors.h
index 42b4b03..b36b468 100644
--- a/Include/cpython/pyerrors.h
+++ b/Include/cpython/pyerrors.h
@@ -100,7 +100,7 @@ PyAPI_FUNC(PyObject*) PyUnstable_Exc_PrepReraiseStar(
/* In signalmodule.c */
-int PySignal_SetWakeupFd(int fd);
+PyAPI_FUNC(int) PySignal_SetWakeupFd(int fd);
/* Support for adding program text to SyntaxErrors */
diff --git a/Misc/NEWS.d/next/C_API/2024-07-09-15-55-20.gh-issue-89364.yYYroI.rst b/Misc/NEWS.d/next/C_API/2024-07-09-15-55-20.gh-issue-89364.yYYroI.rst
new file mode 100644
index 0000000..b82e784
--- /dev/null
+++ b/Misc/NEWS.d/next/C_API/2024-07-09-15-55-20.gh-issue-89364.yYYroI.rst
@@ -0,0 +1,3 @@
+Export the :c:func:`PySignal_SetWakeupFd` function. Previously, the function
+was documented but it couldn't be used in 3rd party code. Patch by Victor
+Stinner.