Skip to content

Commit 5222608

Browse files
committed
Auto merge of #3034 - devnexen:missing_linux_clone_flags, r=JohnTitor
adding few more CLONE_* constant for Linux/Android. closes #3033.
2 parents 2cc0b3b + 8a1e081 commit 5222608

File tree

6 files changed

+12
-1
lines changed

6 files changed

+12
-1
lines changed

libc-test/semver/android.txt

+3
Original file line numberDiff line numberDiff line change
@@ -206,15 +206,18 @@ CLOCK_TAI
206206
CLOCK_THREAD_CPUTIME_ID
207207
CLONE_CHILD_CLEARTID
208208
CLONE_CHILD_SETTID
209+
CLONE_CLEAR_SIGHAND
209210
CLONE_DETACHED
210211
CLONE_FILES
211212
CLONE_FS
213+
CLONE_INTO_CGROUP
212214
CLONE_IO
213215
CLONE_NEWCGROUP
214216
CLONE_NEWIPC
215217
CLONE_NEWNET
216218
CLONE_NEWNS
217219
CLONE_NEWPID
220+
CLONE_NEWTIME
218221
CLONE_NEWUSER
219222
CLONE_NEWUTS
220223
CLONE_PARENT

libc-test/semver/linux-gnu.txt

+3-1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ BPF_FS_MAGIC
3131
BTRFS_SUPER_MAGIC
3232
CGROUP2_SUPER_MAGIC
3333
CGROUP_SUPER_MAGIC
34+
CLONE_CLEAR_SIGHAND
35+
CLONE_INTO_CGROUP
3436
CODA_SUPER_MAGIC
3537
CRAMFS_MAGIC
3638
DCCP_SERVICE_LIST_MAX_LEN
@@ -660,4 +662,4 @@ strftime
660662
strptime
661663
dirname
662664
posix_basename
663-
gnu_basename
665+
gnu_basename

libc-test/semver/linux.txt

+1
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,7 @@ CLONE_NEWIPC
263263
CLONE_NEWNET
264264
CLONE_NEWNS
265265
CLONE_NEWPID
266+
CLONE_NEWTIME
266267
CLONE_NEWUSER
267268
CLONE_NEWUTS
268269
CLONE_PARENT

src/unix/linux_like/android/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -2716,6 +2716,8 @@ pub const SCHED_DEADLINE: ::c_int = 6;
27162716
pub const SCHED_RESET_ON_FORK: ::c_int = 0x40000000;
27172717

27182718
pub const CLONE_PIDFD: ::c_int = 0x1000;
2719+
pub const CLONE_CLEAR_SIGHAND: ::c_longlong = 0x100000000;
2720+
pub const CLONE_INTO_CGROUP: ::c_longlong = 0x200000000;
27192721

27202722
// linux/mempolicy.h
27212723
pub const MPOL_DEFAULT: ::c_int = 0;

src/unix/linux_like/linux/gnu/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1117,6 +1117,8 @@ pub const REG_STARTEND: ::c_int = 4;
11171117
pub const REG_EEND: ::c_int = 14;
11181118
pub const REG_ESIZE: ::c_int = 15;
11191119
pub const REG_ERPAREN: ::c_int = 16;
1120+
pub const CLONE_CLEAR_SIGHAND: ::c_longlong = 0x100000000;
1121+
pub const CLONE_INTO_CGROUP: ::c_longlong = 0x200000000;
11201122

11211123
extern "C" {
11221124
pub fn fgetspent_r(

src/unix/linux_like/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1114,6 +1114,7 @@ pub const ONLRET: ::tcflag_t = 0o000040;
11141114
pub const OFILL: ::tcflag_t = 0o000100;
11151115
pub const OFDEL: ::tcflag_t = 0o000200;
11161116

1117+
pub const CLONE_NEWTIME: ::c_int = 0x80;
11171118
pub const CLONE_VM: ::c_int = 0x100;
11181119
pub const CLONE_FS: ::c_int = 0x200;
11191120
pub const CLONE_FILES: ::c_int = 0x400;

0 commit comments

Comments
 (0)