You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
367 B
21 lines
367 B
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
/*
|
|
Copyright (c) 2020 Cyril Hrubis <chrubis@suse.cz>
|
|
*/
|
|
|
|
#ifndef LAPI_SETNS_H__
|
|
#define LAPI_SETNS_H__
|
|
|
|
#include "config.h"
|
|
#include "lapi/syscalls.h"
|
|
#include <sched.h>
|
|
|
|
#ifndef HAVE_SETNS
|
|
static inline int setns(int fd, int nstype)
|
|
{
|
|
return tst_syscall(__NR_setns, fd, nstype);
|
|
}
|
|
#endif
|
|
|
|
#endif /* LAPI_SETNS_H__ */
|