Add SCML for close_range

This commit is contained in:
Cautreoxit 2025-12-23 09:42:44 +00:00 committed by Tate, Hongliang Tian
parent 4263b9be33
commit f248b83ecc
2 changed files with 4 additions and 1 deletions

View File

@ -345,7 +345,7 @@ which are summarized in the table below.
| 332 | statx | ✅ | [⚠️](syscall-flag-coverage/file-and-directory-operations/#statx) |
| 434 | pidfd_open | ✅ | 💯 |
| 435 | clone3 | ✅ | [⚠️](syscall-flag-coverage/process-and-thread-management/#clone-and-clone3) |
| 436 | close_range | ✅ | |
| 436 | close_range | ✅ | 💯 |
| 439 | faccessat2 | ✅ | [⚠️](syscall-flag-coverage/file-and-directory-operations/#faccessat2) |
| 441 | epoll_pwait2 | ✅ | 💯 |
| 452 | fchmodat2 | ✅ | 💯 |

View File

@ -31,3 +31,6 @@ select(nfds, readfds, writefds, exceptfds, timeout);
// Obtain a file descriptor that refers to a process
pidfd_open(pid, flags = PIDFD_NONBLOCK);
// Close all file descriptors in the inclusive range [first, last]
close_range(first, last, flags = CLOSE_RANGE_UNSHARE | CLOSE_RANGE_CLOEXEC);