summaryrefslogtreecommitdiff
path: root/doc/ref/api-io.texi
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2022-09-07 17:48:12 +0200
committerLudovic Courtès <ludo@gnu.org>2022-09-07 18:00:30 +0200
commita356ceebee000efe91a2a16dbcaa64d6c6a3a922 (patch)
tree53bd9e04b45d01e33337252324feb1517a0422d6 /doc/ref/api-io.texi
parent3cd488150416cac7bddbc270108545330c1fea4f (diff)
downloadguile-a356ceebee000efe91a2a16dbcaa64d6c6a3a922.tar.gz
Add support for "e" flag (O_CLOEXEC) to 'open-file'.
* libguile/fports.c (scm_i_mode_to_open_flags): Add 'e' case. (scm_open_file_with_encoding): Document it. * test-suite/standalone/test-close-on-exec: New file. * test-suite/standalone/Makefile.am (check_SCRIPTS, TESTS): Add it. * doc/ref/api-io.texi (File Ports): Document it. * NEWS: Update.
Diffstat (limited to 'doc/ref/api-io.texi')
-rw-r--r--doc/ref/api-io.texi3
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/ref/api-io.texi b/doc/ref/api-io.texi
index 93bbca5ba..a0be2dd57 100644
--- a/doc/ref/api-io.texi
+++ b/doc/ref/api-io.texi
@@ -996,6 +996,9 @@ Also, open the file using the binary-compatible character encoding
@item +
Open the port for both input and output. E.g., @code{r+}: open
an existing file for both input and output.
+@item e
+Mark the underlying file descriptor as close-on-exec, as per the
+@code{O_CLOEXEC} flag.
@item 0
Create an "unbuffered" port. In this case input and output
operations are passed directly to the underlying port