Lines Matching refs:pidfd
55 static void run_negative_tests(int pidfd)
59 if (!syscall(__NR_process_mrelease, pidfd, (unsigned int)-1) ||
69 if (!syscall(__NR_process_mrelease, pidfd, 0) || errno != EINVAL) {
89 int pipefd[2], pidfd;
96 /* Test a wrong pidfd */
99 perror("process_mrelease with wrong pidfd");
143 pidfd = syscall(__NR_pidfd_open, pid, 0);
144 if (pidfd < 0) {
152 run_negative_tests(pidfd);
160 success = (syscall(__NR_process_mrelease, pidfd, 0) == 0);
184 close(pidfd);