Searched defs:ns_fd (Results 1 - 5 of 5) sorted by relevance

/external/strace/tests/
H A Dioctl_nsfs.c64 int ns_fd = open(path, O_RDONLY); local
65 if (ns_fd == -1)
68 int userns_fd = ioctl(ns_fd, NS_GET_USERNS);
69 printf("ioctl(%d, NS_GET_USERNS) = %s\n", ns_fd, sprintrc(userns_fd));
/external/strace/tests-m32/
H A Dioctl_nsfs.c64 int ns_fd = open(path, O_RDONLY); local
65 if (ns_fd == -1)
68 int userns_fd = ioctl(ns_fd, NS_GET_USERNS);
69 printf("ioctl(%d, NS_GET_USERNS) = %s\n", ns_fd, sprintrc(userns_fd));
/external/strace/tests-mx32/
H A Dioctl_nsfs.c64 int ns_fd = open(path, O_RDONLY); local
65 if (ns_fd == -1)
68 int userns_fd = ioctl(ns_fd, NS_GET_USERNS);
69 printf("ioctl(%d, NS_GET_USERNS) = %s\n", ns_fd, sprintrc(userns_fd));
/external/ltp/testcases/kernel/containers/share/
H A Dns_exec.c38 int ns_fd[NS_TOTAL]; variable
65 ns_fd[ns_fds] = fd;
81 close(ns_fd[i]);
112 memset(ns_fd, 0, sizeof(ns_fd));
133 if (syscall(__NR_setns, ns_fd[i], 0) == -1) {
/external/minijail/
H A Dlibminijail.c425 int ns_fd = open(ns_path, O_RDONLY | O_CLOEXEC); local
426 if (ns_fd < 0) {
429 j->mountns_fd = ns_fd;
485 int ns_fd = open(ns_path, O_RDONLY | O_CLOEXEC); local
486 if (ns_fd < 0) {
489 j->netns_fd = ns_fd;

Completed in 343 milliseconds