diff options
author | Christian Franke <christian.franke@t-online.de> | 2024-01-15 14:13:30 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2024-01-15 14:52:56 +0300 |
commit | d8c0fb090ca637bba5337fb3b0a1f3ee107b21dd (patch) | |
tree | b70b4361eb285af0f5d25a3594e5a02a0897b162 /winsup/doc | |
parent | 4ecfb5b7292af4baf0a2f199f5351b67c8faf4cc (diff) |
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 <christian.franke@t-online.de>
Diffstat (limited to 'winsup/doc')
-rw-r--r-- | winsup/doc/new-features.xml | 4 | ||||
-rw-r--r-- | winsup/doc/posix.xml | 5 |
2 files changed, 9 insertions, 0 deletions
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 @@ -75,6 +75,10 @@ New API calls: c8rtomb, c16rtomb, c32rtomb, mbrtoc8, mbrtoc16, mbrtoc32. </para></listitem> <listitem><para> +New API call: close_range (available on FreeBSD and Linux). +</para></listitem> + +<listitem><para> New API call: fallocate (Linux-specific). </para></listitem> 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).</para> cfmakeraw cfsetspeed clearerr_unlocked + close_range daemon dn_comp dn_expand @@ -1297,6 +1298,7 @@ also IEEE Std 1003.1-2017 (POSIX.1-2017).</para> clog10 clog10f clog10l + close_range (see <xref linkend="std-notes">chapter "Implementation Notes"</xref>) crypt_r (available in external "crypt" library) dladdr (see <xref linkend="std-notes">chapter "Implementation Notes"</xref>) dremf @@ -1656,6 +1658,9 @@ CLOCK_REALTIME and CLOCK_MONOTONIC. <function>clock_setres</function>, <function>clock_settime</function>, and <function>timer_create</function> currently support only CLOCK_REALTIME.</para> +<para><function>close_range</function> does not support the Linux-specific +flag CLOSE_RANGE_UNSHARE.</para> + <para>POSIX file locks via <function>fcntl</function> or <function>lockf</function>, as well as BSD <function>flock</function> locks are advisory locks. They don't interact with Windows mandatory locks, nor |