1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
5 * You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #ifndef mozilla_LinuxSched_h
8 #define mozilla_LinuxSched_h
10 #include <linux/sched.h>
12 // Some build environments, in particular the Android NDK, don't
13 // define some of the newer clone/unshare flags ("newer" relatively
14 // speaking; CLONE_NEWUTS is present since kernel 2.6.19 in 2006).
17 # define CLONE_NEWUTS 0x04000000
20 # define CLONE_NEWIPC 0x08000000
23 # define CLONE_NEWUSER 0x10000000
26 # define CLONE_NEWPID 0x20000000
29 # define CLONE_NEWNET 0x40000000
32 # define CLONE_IO 0x80000000