Hash :
e253528c
Author :
Date :
2024-06-17T13:50:43
doc: Update for macOS 12, 13, 14. * doc/posix-headers/*.texi: Update. * doc/glibc-headers/*.texi: Update. * doc/posix-functions/*.texi: Likewise. * doc/pastposix-functions/*.texi: Likewise. * doc/glibc-functions/*.texi: Likewise. * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Update cross-compilation guess. * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Update comments. * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Likewise.
@node closefrom
@subsection @code{closefrom}
@findex closefrom
Documentation:@*
@ifinfo
@ref{Opening and Closing Files,,Opening and Closing Files,libc}
@end ifinfo
@ifnotinfo
@url{https://www.gnu.org/software/libc/manual/html_node/Opening-and-Closing-Files.html}
@end ifnotinfo
Gnulib module: ---
Portability problems fixed by Gnulib:
@itemize
@end itemize
Portability problems not fixed by Gnulib:
@itemize
@item
This function is missing on some platforms:
glibc 2.33, macOS 14, FreeBSD 7.2, Minix 3.3.0, AIX 7.1, HP-UX 11.31, Cygwin 2.9, mingw, MSVC 14, Android 9.0.
@end itemize
Note (quoted from
@uref{https://www.kernel.org/doc/man-pages/online/pages/man3/close.3p.html,,man close}):
``The [POSIX] standard developers rejected a proposal to add
@code{closefrom()} to the [POSIX] standard. Because the standard
permits implementations to use inherited file descriptors as a means of
providing a conforming environment for the child process, it is not
possible to standardize an interface that closes arbitrary file
descriptors above a certain value while still guaranteeing a conforming
environment.''