tools include uapi x86: Add __NR_setns, if missing
tip-bot for Arnaldo Carvalho de Melo
merge botCommit-ID: 59291f19824200b5a9046b79d37f02fb415335b0 Gitweb: http://git.kernel.org/tip/59291f19824200b5a9046b79d37f02fb415335b0 Author: Arnaldo Carvalho de Melo <[email protected]> AuthorDate: Tue, 18 Jul 2017 17:13:40 -0300 Committer: Arnaldo Carvalho de Melo <[email protected]> CommitDate: Tue, 18 Jul 2017 23:14:07 -0300
tools include uapi x86: Add __NR_setns, if missing
To help us provide a simple setns() in older distros.
Cc Adrian Hunter <[email protected]>
Cc David Ahern <[email protected]>
Cc Jiri Olsa <[email protected]>
Cc Krister Johansen <[email protected]>
Cc Namhyung Kim <[email protected]>
Cc Wang Nan <[email protected]>
Signed-off-by Arnaldo Carvalho de Melo <[email protected]>
--- tools/arch/x86/include/asm/unistd_32.h | 3 +++ tools/arch/x86/include/asm/unistd_64.h | 3 +++ 2 files changed, 6 insertions(+)
tools/arch/x86/include/asm/unistd_32.h +3 -0
@@ -10,3 +10,6 @@#ifndef __NR_getcpu# define __NR_getcpu 318#endif +#ifndef __NR_setns +# define __NR_setns 346 +#endif
tools/arch/x86/include/asm/unistd_64.h +3 -0
@@ -10,3 +10,6 @@#ifndef __NR_getcpu# define __NR_getcpu 309#endif +#ifndef __NR_setns +#define __NR_setns 308 +#endif