Add SCML for waitid syscall

This commit is contained in:
Chen Chengjun 2025-12-16 02:31:48 +00:00 committed by Tate, Hongliang Tian
parent b9e640f697
commit 7caababf8d
3 changed files with 22 additions and 1 deletions

View File

@ -267,7 +267,7 @@ which are summarized in the table below.
| 244 | mq_notify | ❌ | N/A |
| 245 | mq_getsetattr | ❌ | N/A |
| 246 | kexec_load | ❌ | N/A |
| 247 | waitid | ✅ | |
| 247 | waitid | ✅ | [⚠️](syscall-flag-coverage/process-and-thread-management/#waitid) |
| 248 | add_key | ❌ | N/A |
| 249 | request_key | ❌ | N/A |
| 250 | keyctl | ❌ | N/A |

View File

@ -66,3 +66,17 @@ Unsupported policies or flags:
For more information,
see [the man page](https://man7.org/linux/man-pages/man2/sched_setscheduler.2.html).
### `waitid`
Supported functionality in SCML:
```c
{{#include waitid.scml}}
```
Ignored options:
* `WEXITED`
For more information,
see [the man page](https://man7.org/linux/man-pages/man2/waitid.2.html).

View File

@ -0,0 +1,7 @@
// Wait for a child process to change state
waitid(
which = P_PID | P_PIDFD | P_PGID | P_ALL,
pid, infop,
options = WNOHANG | WSTOPPED | WCONTINUED | WNOWAIT,
ru
);