File tree Expand file tree Collapse file tree 3 files changed +9
-0
lines changed
src/unix/linux_like/linux/gnu Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -3378,6 +3378,7 @@ fn test_linux(target: &str) {
3378
3378
"sys/fanotify.h" ,
3379
3379
// <sys/auxv.h> is not present on uclibc
3380
3380
[ !uclibc] : "sys/auxv.h" ,
3381
+ [ gnu] : "linux/close_range.h" ,
3381
3382
}
3382
3383
3383
3384
// note: aio.h must be included before sys/mount.h
Original file line number Diff line number Diff line change @@ -665,3 +665,4 @@ getmntent_r
665
665
putpwent
666
666
putgrent
667
667
execveat
668
+ close_range
Original file line number Diff line number Diff line change @@ -1399,6 +1399,13 @@ extern "C" {
1399
1399
envp : * const * mut c_char ,
1400
1400
flags : :: c_int ,
1401
1401
) -> :: c_int ;
1402
+
1403
+ // Added in `glibc` 2.34
1404
+ pub fn close_range (
1405
+ first : :: c_uint ,
1406
+ last : :: c_uint ,
1407
+ flags : :: c_int ,
1408
+ ) -> :: c_int ;
1402
1409
}
1403
1410
1404
1411
cfg_if ! {
You can’t perform that action at this time.
0 commit comments