summaryrefslogtreecommitdiff
path: root/src/sched.rs
diff options
context:
space:
mode:
authorBryant Mairs <bryant@mai.rs>2017-08-09 09:32:56 -0700
committerBryant Mairs <bryant@mai.rs>2017-08-16 19:36:51 -0700
commiteabdced459c0108613db8363d3ed76e9fd966565 (patch)
tree26532fde8adf0ad575e275bbd75d00ab685acfb1 /src/sched.rs
parentf067e73bdbb589a0e3c991eab2c26de8bb00e924 (diff)
downloadnix-eabdced459c0108613db8363d3ed76e9fd966565.zip
Match libc_bitflags! syntax to upstream bitflags!
Diffstat (limited to 'src/sched.rs')
-rw-r--r--src/sched.rs48
1 files changed, 24 insertions, 24 deletions
diff --git a/src/sched.rs b/src/sched.rs
index 0b98c580..2ecc0564 100644
--- a/src/sched.rs
+++ b/src/sched.rs
@@ -8,30 +8,30 @@ use ::unistd::Pid;
// For some functions taking with a parameter of type CloneFlags,
// only a subset of these flags have an effect.
libc_bitflags!{
- pub flags CloneFlags: libc::c_int {
- CLONE_VM,
- CLONE_FS,
- CLONE_FILES,
- CLONE_SIGHAND,
- CLONE_PTRACE,
- CLONE_VFORK,
- CLONE_PARENT,
- CLONE_THREAD,
- CLONE_NEWNS,
- CLONE_SYSVSEM,
- CLONE_SETTLS,
- CLONE_PARENT_SETTID,
- CLONE_CHILD_CLEARTID,
- CLONE_DETACHED,
- CLONE_UNTRACED,
- CLONE_CHILD_SETTID,
- CLONE_NEWCGROUP,
- CLONE_NEWUTS,
- CLONE_NEWIPC,
- CLONE_NEWUSER,
- CLONE_NEWPID,
- CLONE_NEWNET,
- CLONE_IO,
+ pub struct CloneFlags: libc::c_int {
+ CLONE_VM;
+ CLONE_FS;
+ CLONE_FILES;
+ CLONE_SIGHAND;
+ CLONE_PTRACE;
+ CLONE_VFORK;
+ CLONE_PARENT;
+ CLONE_THREAD;
+ CLONE_NEWNS;
+ CLONE_SYSVSEM;
+ CLONE_SETTLS;
+ CLONE_PARENT_SETTID;
+ CLONE_CHILD_CLEARTID;
+ CLONE_DETACHED;
+ CLONE_UNTRACED;
+ CLONE_CHILD_SETTID;
+ CLONE_NEWCGROUP;
+ CLONE_NEWUTS;
+ CLONE_NEWIPC;
+ CLONE_NEWUSER;
+ CLONE_NEWPID;
+ CLONE_NEWNET;
+ CLONE_IO;
}
}