Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Various Linux CLONE_* flags are missing #3033

Closed
purplesyringa opened this issue Dec 10, 2022 · 0 comments · Fixed by #3034
Closed

Various Linux CLONE_* flags are missing #3033

purplesyringa opened this issue Dec 10, 2022 · 0 comments · Fixed by #3034
Labels

Comments

@purplesyringa
Copy link

The complete list of the flags can be seen e.g. here:

https://elixir.bootlin.com/linux/v6.0.12/source/include/uapi/linux/sched.h#L11

The ones that are missing from libc at the moment seem to be:

pub const CLONE_PIDFD: ::c_int = 0x1000;
pub const CLONE_CLEAR_SIGHAND: ::c_int = 0x100000000;
pub const CLONE_INTO_CGROUP: ::c_int = 0x200000000;
pub const CLONE_NEWTIME: ::c_int = 0x80;

I believe they should be added to this list:

pub const CLONE_VM: ::c_int = 0x100;

Sadly I've got my hands full at the moment, so I can't exactly patch it and see if it works, but as this is pretty minor and seems easy to fix, I thought I'd report it anyway.

@purplesyringa purplesyringa added the C-API-request Category: API request label Dec 10, 2022
devnexen added a commit to devnexen/libc that referenced this issue Dec 10, 2022
bors added a commit that referenced this issue Dec 11, 2022
adding few more CLONE_* constant for Linux/Android.

closes #3033.
devnexen added a commit to devnexen/libc that referenced this issue Dec 11, 2022
bors added a commit that referenced this issue Dec 14, 2022
adding few more CLONE_* constant for Linux/Android.

closes #3033.
devnexen added a commit to devnexen/libc that referenced this issue Dec 14, 2022
devnexen added a commit to devnexen/libc that referenced this issue Dec 14, 2022
bors added a commit that referenced this issue Dec 20, 2022
adding few more CLONE_* constant for Linux/Android.

closes #3033.
devnexen added a commit to devnexen/libc that referenced this issue Dec 20, 2022
bors added a commit that referenced this issue Dec 21, 2022
adding few more CLONE_* constant for Linux/Android.

closes #3033.
devnexen added a commit to devnexen/libc that referenced this issue Jan 8, 2023
bors added a commit that referenced this issue Feb 22, 2023
adding few more CLONE_* constant for Linux/Android.

closes #3033.
devnexen added a commit to devnexen/libc that referenced this issue Feb 22, 2023
bors added a commit that referenced this issue Mar 3, 2023
adding few more CLONE_* constant for Linux/Android.

closes #3033.
devnexen added a commit to devnexen/libc that referenced this issue Apr 19, 2023
devnexen added a commit to devnexen/libc that referenced this issue Jul 10, 2023
bors added a commit that referenced this issue Jul 12, 2023
adding few more CLONE_* constant for Linux/Android.

closes #3033.
devnexen added a commit to devnexen/libc that referenced this issue Oct 15, 2023
devnexen added a commit to devnexen/libc that referenced this issue Oct 15, 2023
bors added a commit that referenced this issue Oct 16, 2023
adding few more CLONE_* constant for Linux/Android.

closes #3033.
@bors bors closed this as completed in 360f7b0 Oct 16, 2023
Brijeshkrishna pushed a commit to Brijeshkrishna/libc that referenced this issue Oct 22, 2023
Brijeshkrishna pushed a commit to Brijeshkrishna/libc that referenced this issue Oct 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants