diff --git a/Modules/posixmodule.h b/Modules/posixmodule.h index 1ec1833825..be2308ea86 100644 --- Modules/posixmodule.h +++ Modules/posixmodule.h @@ -19,6 +19,8 @@ PyAPI_FUNC(int) _Py_Gid_Converter(PyObject *, void *); #endif /* MS_WINDOWS */ #endif +PyAPI_FUNC(void) _Py_closerange(int first, int last); + #ifdef __cplusplus } #endif diff --git a/configure b/configure index 829dd69bb8..2eeadec5f0 100755 --- configure +++ configure @@ -11490,9 +11490,9 @@ fi # checks for library functions for ac_func in alarm accept4 setitimer getitimer bind_textdomain_codeset chown \ - clock confstr ctermid dup3 execv faccessat fchmod fchmodat fchown fchownat \ - fexecve fdopendir fork fpathconf fstatat ftime ftruncate futimesat \ - futimens futimes gai_strerror getentropy \ + clock close_range confstr ctermid dup3 execv faccessat fchmod fchmodat fchown \ + fchownat fdwalk fexecve fdopendir fork fpathconf fstatat ftime ftruncate \ + futimesat futimens futimes gai_strerror getentropy \ getgrouplist getgroups getlogin getloadavg getpeername getpgid getpid \ getpriority getresuid getresgid getpwent getspnam getspent getsid getwd \ if_nameindex \ diff --git a/configure.ac b/configure.ac index f1cc8e9bcb..80952290b7 100644 --- configure.ac +++ configure.ac @@ -3574,9 +3574,9 @@ fi # checks for library functions AC_CHECK_FUNCS(alarm accept4 setitimer getitimer bind_textdomain_codeset chown \ - clock confstr ctermid dup3 execv faccessat fchmod fchmodat fchown fchownat \ - fexecve fdopendir fork fpathconf fstatat ftime ftruncate futimesat \ - futimens futimes gai_strerror getentropy \ + clock close_range confstr ctermid dup3 execv faccessat fchmod fchmodat fchown \ + fchownat fdwalk fexecve fdopendir fork fpathconf fstatat ftime ftruncate \ + futimesat futimens futimes gai_strerror getentropy \ getgrouplist getgroups getlogin getloadavg getpeername getpgid getpid \ getpriority getresuid getresgid getpwent getspnam getspent getsid getwd \ if_nameindex \ diff --git a/pyconfig.h.in b/pyconfig.h.in index ebab5ff518..e1d659059c 100644 --- pyconfig.h.in +++ pyconfig.h.in @@ -128,6 +128,9 @@ /* Define to 1 if you have the `clock_settime' function. */ #undef HAVE_CLOCK_SETTIME +/* Define to 1 if you have the `close_range' function. */ +#undef HAVE_CLOSE_RANGE + /* Define if the C compiler supports computed gotos. */ #undef HAVE_COMPUTED_GOTOS @@ -324,6 +327,9 @@ /* Define to 1 if you have the `fdopendir' function. */ #undef HAVE_FDOPENDIR +/* Define to 1 if you have the `fdwalk' function. */ +#undef HAVE_FDWALK + /* Define to 1 if you have the `fexecve' function. */ #undef HAVE_FEXECVE