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) {
33783378 "sys/fanotify.h" ,
33793379 // <sys/auxv.h> is not present on uclibc
33803380 [ !uclibc] : "sys/auxv.h" ,
3381+ [ gnu] : "linux/close_range.h" ,
33813382 }
33823383
33833384 // 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
665665putpwent
666666putgrent
667667execveat
668+ close_range
Original file line number Diff line number Diff line change @@ -1399,6 +1399,13 @@ extern "C" {
13991399 envp : * const * mut c_char ,
14001400 flags : :: c_int ,
14011401 ) -> :: 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 ;
14021409}
14031410
14041411cfg_if ! {
You can’t perform that action at this time.
0 commit comments