summaryrefslogtreecommitdiffstats
path: root/src/kernel/tests/include/lapi/setns.h
blob: 7b0a7afc479373c890a031b25bfb5294714bda1e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// 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
int setns(int fd, int nstype)
{
	return tst_syscall(__NR_setns, fd, nstype);
}
#endif

#endif /* LAPI_SETNS_H__ */