no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD CLOSED TREE
[gecko.git] / security / sandbox / linux / LinuxSched.h
blob3ec34df670c81c269d836e9271879bc531df9fcf
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).
16 #ifndef CLONE_NEWUTS
17 # define CLONE_NEWUTS 0x04000000
18 #endif
19 #ifndef CLONE_NEWIPC
20 # define CLONE_NEWIPC 0x08000000
21 #endif
22 #ifndef CLONE_NEWUSER
23 # define CLONE_NEWUSER 0x10000000
24 #endif
25 #ifndef CLONE_NEWPID
26 # define CLONE_NEWPID 0x20000000
27 #endif
28 #ifndef CLONE_NEWNET
29 # define CLONE_NEWNET 0x40000000
30 #endif
31 #ifndef CLONE_IO
32 # define CLONE_IO 0x80000000
33 #endif
35 #endif