Add SCML for clone3

This commit is contained in:
jiangjianfeng 2025-12-17 06:38:30 +00:00 committed by Tate, Hongliang Tian
parent e238c56d5a
commit 4a9820cb11
3 changed files with 13 additions and 4 deletions

View File

@ -76,7 +76,7 @@ which are summarized in the table below.
| 53 | socketpair | ✅ | [⚠️](syscall-flag-coverage/networking-and-sockets/#socketpair) |
| 54 | setsockopt | ✅ | [⚠️](syscall-flag-coverage/networking-and-sockets/#getsockopt-and-setsockopt) |
| 55 | getsockopt | ✅ | [⚠️](syscall-flag-coverage/networking-and-sockets/#getsockopt-and-setsockopt) |
| 56 | clone | ✅ | [⚠️](syscall-flag-coverage/process-and-thread-management/#clone) |
| 56 | clone | ✅ | [⚠️](syscall-flag-coverage/process-and-thread-management/#clone-and-clone3) |
| 57 | fork | ✅ | 💯 |
| 58 | vfork | ❌ | N/A |
| 59 | execve | ✅ | 💯 |
@ -344,7 +344,7 @@ which are summarized in the table below.
| 328 | pwritev2 | ✅ | [⚠️](syscall-flag-coverage/file-and-directory-operations/#preadv2-and-pwritev2) |
| 332 | statx | ✅ | ❓ |
| 434 | pidfd_open | ✅ | 💯 |
| 435 | clone3 | ✅ | |
| 435 | clone3 | ✅ | [⚠️](syscall-flag-coverage/process-and-thread-management/#clone-and-clone3) |
| 436 | close_range | ✅ | ❓ |
| 439 | faccessat2 | ✅ | ❓ |
| 441 | epoll_pwait2 | ✅ | 💯 |

View File

@ -42,12 +42,12 @@ Ignored options:
For more information,
see [the man page](https://man7.org/linux/man-pages/man2/wait4.2.html).
### `clone`
### `clone` and `clone3`
Supported functionality in SCML:
```c
{{#include clone.scml}}
{{#include clone_and_clone3.scml}}
```
For more information,

View File

@ -45,3 +45,12 @@ clone(
flags = <opt_flags> | <signal_flags>,
func_arg, ..
);
// Create a thread or process with enhanced control by providing structured arguments
clone3(
clone_args = {
flags = <opt_flags>,
..
},
size
);