setns.c 183 B

12345678910
  1. // SPDX-License-Identifier: LGPL-2.1
  2. #include "namespaces.h"
  3. #include <unistd.h>
  4. #include <sys/syscall.h>
  5. int setns(int fd, int nstype)
  6. {
  7. return syscall(__NR_setns, fd, nstype);
  8. }