File: closefrom.texi

package info (click to toggle)
gnulib 20250303-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 188,756 kB
  • sloc: ansic: 378,600; sh: 30,630; python: 8,358; cpp: 2,811; yacc: 1,846; perl: 920; makefile: 577; lisp: 328; sed: 11; java: 5
file content (34 lines) | stat: -rw-r--r-- 1,112 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
@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.''