tools include uapi x86: Add __NR_setns, if missing

To help us provide a simple setns() in older distros.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Krister Johansen <kjlx@templeofstupid.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-o10a85kf6j7ig87ep6crab2k@git.kernel.orgSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent 047726d1
...@@ -10,3 +10,6 @@ ...@@ -10,3 +10,6 @@
#ifndef __NR_getcpu #ifndef __NR_getcpu
# define __NR_getcpu 318 # define __NR_getcpu 318
#endif #endif
#ifndef __NR_setns
# define __NR_setns 346
#endif
...@@ -10,3 +10,6 @@ ...@@ -10,3 +10,6 @@
#ifndef __NR_getcpu #ifndef __NR_getcpu
# define __NR_getcpu 309 # define __NR_getcpu 309
#endif #endif
#ifndef __NR_setns
#define __NR_setns 308
#endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment