diff options
author | Ludovic Courtès <ludo@gnu.org> | 2022-09-07 17:48:12 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2022-09-07 18:00:30 +0200 |
commit | a356ceebee000efe91a2a16dbcaa64d6c6a3a922 (patch) | |
tree | 53bd9e04b45d01e33337252324feb1517a0422d6 /NEWS | |
parent | 3cd488150416cac7bddbc270108545330c1fea4f (diff) | |
download | guile-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 'NEWS')
-rw-r--r-- | NEWS | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -11,6 +11,13 @@ Changes in 3.0.9 (since 3.0.8) * New interfaces and functionality +** `open-file' now supports an "e" flag for O_CLOEXEC + +Until now, the high-level `open-file' facility did not provide a way to +pass O_CLOEXEC to the underlying `open' call. It can now be done by +appending "e" to the `mode' string passed as a second argument. See +"File Ports" in the manual for more info. + ** Abstract Unix-domain sockets are supported It is now possible to create an AF_UNIX socket with a leading zero byte |