summaryrefslogtreecommitdiffstats
path: root/Include/pyport.h
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-09-02 13:46:43 (GMT)
committerGitHub <noreply@github.com>2023-09-02 13:46:43 (GMT)
commit1f3e797dc0451f48e649bcab2c9fd80224ffdac0 (patch)
treed168a07c4dc8eeed2861947c04042d33d52dd0e4 /Include/pyport.h
parent5141b1ebe07ad54279e0770b4704eaf76f24951d (diff)
downloadcpython-1f3e797dc0451f48e649bcab2c9fd80224ffdac0.zip
cpython-1f3e797dc0451f48e649bcab2c9fd80224ffdac0.tar.gz
cpython-1f3e797dc0451f48e649bcab2c9fd80224ffdac0.tar.bz2
gh-108765: Remove old prototypes from pyport.h (#108782)
Move prototypes of gethostname(), _getpty() and struct termios from pyport.h to the C code using them: posixmodule.c, socketmodule.c and termios.c. Replace "#ifdef SOLARIS" with "#ifdef __sun".
Diffstat (limited to 'Include/pyport.h')
-rw-r--r--Include/pyport.h26
1 files changed, 0 insertions, 26 deletions
diff --git a/Include/pyport.h b/Include/pyport.h
index 511c3fd..6716432 100644
--- a/Include/pyport.h
+++ b/Include/pyport.h
@@ -417,32 +417,6 @@ extern "C" {
# define Py_NO_INLINE
#endif
-/**************************************************************************
-Prototypes that are missing from the standard include files on some systems
-(and possibly only some versions of such systems.)
-
-Please be conservative with adding new ones, document them and enclose them
-in platform-specific #ifdefs.
-**************************************************************************/
-
-#ifdef SOLARIS
-/* Unchecked */
-extern int gethostname(char *, int);
-#endif
-
-#ifdef HAVE__GETPTY
-#include <sys/types.h> /* we need to import mode_t */
-extern char * _getpty(int *, int, mode_t, int);
-#endif
-
-/* On QNX 6, struct termio must be declared by including sys/termio.h
- if TCGETA, TCSETA, TCSETAW, or TCSETAF are used. sys/termio.h must
- be included before termios.h or it will generate an error. */
-#if defined(HAVE_SYS_TERMIO_H) && !defined(__hpux)
-#include <sys/termio.h>
-#endif
-
-
/* On 4.4BSD-descendants, ctype functions serves the whole range of
* wchar_t character set rather than single byte code points only.
* This characteristic can break some operations of string object