Skip to content
projects
/
linux
·
blob
master ·
refs
linux
tools
perf
util
setns.c
…
History
History
·
Raw
Raw
·
Diff
Diff
·
Blob
Blob
10 lines · 183 B
1
//
SPDX-License-Identifier: LGPL-2.1
2
3
#include
"
namespaces.h
"
4
#include
<
unistd.h
>
5
#include
<
sys/syscall.h
>
6
7
int
setns
(
int
fd
,
int
nstype
)
8
{
9
return
syscall
(
__NR_setns
,
fd
,
nstype
)
;
10
}