]> Savannah Git Hosting - gnulib.git/commit
open, openat: Really support O_CLOEXEC.
authorBruno Haible <bruno@clisp.org>
Sun, 24 May 2020 18:27:39 +0000 (20:27 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 24 May 2020 18:27:39 +0000 (20:27 +0200)
commited8d8e847ab8c26165eaf8b446aee78c493dfce3
tree078459b1e42fbe5100a6b13f969ddc59a827e205
parenta7e878621dc2fb8430fccb461b7b669b6bf86190
open, openat: Really support O_CLOEXEC.

* lib/open.c (open): When have_cloexec is still undecided, do pass a
O_CLOEXEC flag to orig_open.
* lib/openat.c (rpl_openat): When have_cloexec is still undecided, do
pass a O_CLOEXEC flag to orig_openat.
* tests/test-open.h (test_open): Verify that O_CLOEXEC is honoured.
* modules/open-tests (Depends-on): Add fcntl.
* modules/openat-tests (Depends-on): Likewise.
* modules/fcntl-safer-tests (Depends-on): Likewise.
ChangeLog
lib/open.c
lib/openat.c
modules/fcntl-safer-tests
modules/open-tests
modules/openat-tests
tests/test-open.h