| ... | @@ -1746,11 +1746,12 @@ pub fn close(fd: fd_t) usize { | ... | @@ -1746,11 +1746,12 @@ pub fn close(fd: fd_t) usize { |
| 1746 | } | 1746 | } |
| 1747 | | 1747 | |
| 1748 | pub const CLOSE_RANGE = packed struct(u32) { | 1748 | pub const CLOSE_RANGE = packed struct(u32) { |
| | 1749 | _0: u1 = 0, |
| 1749 | /// Unshare the file descriptor table before closing file descriptors. | 1750 | /// Unshare the file descriptor table before closing file descriptors. |
| 1750 | UNSHARE: bool, // 0x00000001 | 1751 | UNSHARE: bool, // 0x00000001 |
| 1751 | /// Set the FD_CLOEXEC bit instead of closing the file descriptor. | 1752 | /// Set the FD_CLOEXEC bit instead of closing the file descriptor. |
| 1752 | CLOEXEC: bool, // 0x00000002 | 1753 | CLOEXEC: bool, // 0x00000002 |
| 1753 | _: u30 = 0, | 1754 | _: u29 = 0, |
| 1754 | }; | 1755 | }; |
| 1755 | | 1756 | |
| 1756 | pub fn close_range(first: fd_t, last: fd_t, flags: CLOSE_RANGE) usize { | 1757 | pub fn close_range(first: fd_t, last: fd_t, flags: CLOSE_RANGE) usize { |