mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-24 22:10:13 +00:00
286286283e
It was added on Linux 5.9 (278a5fbaed89) with CLOSE_RANGE_CLOEXEC added on 5.11 (582f1fb6b721f). Although FreeBSD has added the same syscall, this only adds the symbol on Linux ports. This syscall is required to provided a fail-safe way to implement the closefrom symbol (BZ #10353). Checked on x86_64-linux-gnu and i686-linux-gnu on kernel 5.11 and 4.15.
7 lines
172 B
C
7 lines
172 B
C
#include_next <bits/unistd_ext.h>
|
|
|
|
#ifndef _ISOMAC
|
|
extern int __close_range (unsigned int lowfd, unsigned int highfd, int flags);
|
|
libc_hidden_proto (__close_range);
|
|
#endif
|