summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-09-30 20:06:45 (GMT)
committerGitHub <noreply@github.com>2023-09-30 20:06:45 (GMT)
commit7513994c927857679544449392744be308d36586 (patch)
tree7d8bf43e49011f210dac2d282223aa1ee88f7d01 /Doc
parent0def8c712bb6f66f1081cab71deb3681566b846d (diff)
downloadcpython-7513994c927857679544449392744be308d36586.zip
cpython-7513994c927857679544449392744be308d36586.tar.gz
cpython-7513994c927857679544449392744be308d36586.tar.bz2
gh-110014: Include explicitly <unistd.h> header (#110155)
* Remove unused <locale.h> includes. * Remove unused <fcntl.h> include in traceback.h. * Remove redundant <assert.h> and <stddef.h> includes. They are already included by "Python.h". * Remove <object.h> include in faulthandler.c. Python.h already includes it. * Add missing <stdbool.h> in pycore_pythread.h if HAVE_PTHREAD_STUBS is defined. * Fix also warnings in pthread_stubs.h: don't redefine macros if they are already defined, like the __NEED_pthread_t macro.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/whatsnew/3.13.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/whatsnew/3.13.rst b/Doc/whatsnew/3.13.rst
index d6188e6..56618b9 100644
--- a/Doc/whatsnew/3.13.rst
+++ b/Doc/whatsnew/3.13.rst
@@ -988,7 +988,8 @@ Porting to Python 3.13
* ``Python.h`` no longer includes the ``<unistd.h>`` standard header file. If
needed, it should now be included explicitly. For example, it provides the
- functions: ``close()``, ``getpagesize()``, ``getpid()`` and ``sysconf()``.
+ functions: ``read()``, ``write()``, ``close()``, ``isatty()``, ``lseek()``,
+ ``getpid()``, ``getcwd()``, ``sysconf()`` and ``getpagesize()``.
As a consequence, ``_POSIX_SEMAPHORES`` and ``_POSIX_THREADS`` macros are no
longer defined by ``Python.h``. The ``HAVE_UNISTD_H`` and ``HAVE_PTHREAD_H``
macros defined by ``Python.h`` can be used to decide if ``<unistd.h>`` and