From d8c0fb090ca637bba5337fb3b0a1f3ee107b21dd Mon Sep 17 00:00:00 2001 From: Christian Franke Date: Mon, 15 Jan 2024 12:13:30 +0100 Subject: Cygwin: introduce close_range(2) This function closes or sets the close-on-exec flag for a specified range of file descriptors. It is available on FreeBSD and Linux. Signed-off-by: Christian Franke --- winsup/doc/new-features.xml | 4 ++++ winsup/doc/posix.xml | 5 +++++ 2 files changed, 9 insertions(+) (limited to 'winsup/doc') diff --git a/winsup/doc/new-features.xml b/winsup/doc/new-features.xml index 6ae420031..0abe1c41c 100644 --- a/winsup/doc/new-features.xml +++ b/winsup/doc/new-features.xml @@ -74,6 +74,10 @@ posix_spawn_file_actions_addfchdir_np. New API calls: c8rtomb, c16rtomb, c32rtomb, mbrtoc8, mbrtoc16, mbrtoc32. + +New API call: close_range (available on FreeBSD and Linux). + + New API call: fallocate (Linux-specific). diff --git a/winsup/doc/posix.xml b/winsup/doc/posix.xml index 1a4eee1ab..89056915b 100644 --- a/winsup/doc/posix.xml +++ b/winsup/doc/posix.xml @@ -1143,6 +1143,7 @@ also IEEE Std 1003.1-2017 (POSIX.1-2017). cfmakeraw cfsetspeed clearerr_unlocked + close_range daemon dn_comp dn_expand @@ -1297,6 +1298,7 @@ also IEEE Std 1003.1-2017 (POSIX.1-2017). clog10 clog10f clog10l + close_range (see chapter "Implementation Notes") crypt_r (available in external "crypt" library) dladdr (see chapter "Implementation Notes") dremf @@ -1656,6 +1658,9 @@ CLOCK_REALTIME and CLOCK_MONOTONIC. clock_setres, clock_settime, and timer_create currently support only CLOCK_REALTIME. +close_range does not support the Linux-specific +flag CLOSE_RANGE_UNSHARE. + POSIX file locks via fcntl or lockf, as well as BSD flock locks are advisory locks. They don't interact with Windows mandatory locks, nor -- cgit v1.2.3