Lines Matching refs:pidfd
38 int pidfd = -1, status = 0; in test_pidfd_wait_simple() local
42 .pidfd = ptr_to_u64(&pidfd), in test_pidfd_wait_simple()
52 pidfd = open("/proc/self", O_DIRECTORY | O_RDONLY | O_CLOEXEC); in test_pidfd_wait_simple()
53 if (pidfd < 0) in test_pidfd_wait_simple()
57 pid = sys_waitid(P_PIDFD, pidfd, &info, WEXITED, NULL); in test_pidfd_wait_simple()
62 close(pidfd); in test_pidfd_wait_simple()
63 pidfd = -1; in test_pidfd_wait_simple()
65 pidfd = open("/dev/null", O_RDONLY | O_CLOEXEC); in test_pidfd_wait_simple()
66 if (pidfd == 0) in test_pidfd_wait_simple()
70 pid = sys_waitid(P_PIDFD, pidfd, &info, WEXITED, NULL); in test_pidfd_wait_simple()
75 close(pidfd); in test_pidfd_wait_simple()
76 pidfd = -1; in test_pidfd_wait_simple()
86 pid = sys_waitid(P_PIDFD, pidfd, &info, WEXITED, NULL); in test_pidfd_wait_simple()
90 test_name, parent_tid, pidfd, strerror(errno)); in test_pidfd_wait_simple()
95 test_name, parent_tid, pidfd, strerror(errno)); in test_pidfd_wait_simple()
96 close(pidfd); in test_pidfd_wait_simple()
101 test_name, info.si_signo, parent_tid, pidfd, in test_pidfd_wait_simple()
107 test_name, info.si_code, parent_tid, pidfd, in test_pidfd_wait_simple()
113 test_name, info.si_pid, parent_tid, pidfd, in test_pidfd_wait_simple()
123 int pidfd = -1, status = 0; in test_pidfd_wait_states() local
127 .pidfd = ptr_to_u64(&pidfd), in test_pidfd_wait_states()
148 ret = sys_waitid(P_PIDFD, pidfd, &info, WSTOPPED, NULL); in test_pidfd_wait_states()
152 test_name, parent_tid, pidfd, strerror(errno)); in test_pidfd_wait_states()
157 test_name, info.si_signo, parent_tid, pidfd, in test_pidfd_wait_states()
163 test_name, info.si_code, parent_tid, pidfd, in test_pidfd_wait_states()
169 test_name, info.si_pid, parent_tid, pidfd, in test_pidfd_wait_states()
172 ret = sys_pidfd_send_signal(pidfd, SIGCONT, NULL, 0); in test_pidfd_wait_states()
176 test_name, parent_tid, pidfd, strerror(errno)); in test_pidfd_wait_states()
178 ret = sys_waitid(P_PIDFD, pidfd, &info, WCONTINUED, NULL); in test_pidfd_wait_states()
182 test_name, parent_tid, pidfd, strerror(errno)); in test_pidfd_wait_states()
187 test_name, info.si_signo, parent_tid, pidfd, in test_pidfd_wait_states()
193 test_name, info.si_code, parent_tid, pidfd, in test_pidfd_wait_states()
199 test_name, info.si_pid, parent_tid, pidfd, in test_pidfd_wait_states()
202 ret = sys_waitid(P_PIDFD, pidfd, &info, WUNTRACED, NULL); in test_pidfd_wait_states()
206 test_name, parent_tid, pidfd, strerror(errno)); in test_pidfd_wait_states()
211 test_name, info.si_signo, parent_tid, pidfd, in test_pidfd_wait_states()
217 test_name, info.si_code, parent_tid, pidfd, in test_pidfd_wait_states()
223 test_name, info.si_pid, parent_tid, pidfd, in test_pidfd_wait_states()
226 ret = sys_pidfd_send_signal(pidfd, SIGKILL, NULL, 0); in test_pidfd_wait_states()
230 test_name, parent_tid, pidfd, strerror(errno)); in test_pidfd_wait_states()
232 ret = sys_waitid(P_PIDFD, pidfd, &info, WEXITED, NULL); in test_pidfd_wait_states()
236 test_name, parent_tid, pidfd, strerror(errno)); in test_pidfd_wait_states()
241 test_name, info.si_signo, parent_tid, pidfd, in test_pidfd_wait_states()
247 test_name, info.si_code, parent_tid, pidfd, in test_pidfd_wait_states()
253 test_name, info.si_pid, parent_tid, pidfd, in test_pidfd_wait_states()
256 close(pidfd); in test_pidfd_wait_states()