Lines Matching refs:info
59 sigchld (int signo, siginfo_t *info, void *ctx) in sigchld() argument
91 siginfo_t info; in do_test_waitd_common() local
94 info.si_signo = 0; /* A successful call sets it to SIGCHLD. */ in do_test_waitd_common()
95 fail = waitid (P_PID, pid, &info, WEXITED|WCONTINUED|WNOHANG); in do_test_waitd_common()
99 TEST_COMPARE (info.si_signo, 0); in do_test_waitd_common()
102 info.si_signo = 0; /* A successful call sets it to SIGCHLD. */ in do_test_waitd_common()
103 info.si_pid = -1; in do_test_waitd_common()
104 info.si_status = -1; in do_test_waitd_common()
105 fail = waitid (P_PID, pid, &info, WSTOPPED|WNOHANG); in do_test_waitd_common()
109 TEST_COMPARE (info.si_signo, SIGCHLD); in do_test_waitd_common()
110 TEST_COMPARE (info.si_code, CLD_STOPPED); in do_test_waitd_common()
111 TEST_COMPARE (info.si_status, SIGSTOP); in do_test_waitd_common()
112 TEST_COMPARE (info.si_pid, pid); in do_test_waitd_common()
123 info.si_signo = 0; /* A successful call sets it to SIGCHLD. */ in do_test_waitd_common()
124 info.si_pid = -1; in do_test_waitd_common()
125 info.si_status = -1; in do_test_waitd_common()
126 fail = waitid (P_PID, pid, &info, WCONTINUED|WNOWAIT); in do_test_waitd_common()
130 TEST_COMPARE (info.si_signo, SIGCHLD); in do_test_waitd_common()
131 TEST_COMPARE (info.si_code, CLD_CONTINUED); in do_test_waitd_common()
132 TEST_COMPARE (info.si_status, SIGCONT); in do_test_waitd_common()
133 TEST_COMPARE (info.si_pid, pid); in do_test_waitd_common()
136 info.si_signo = 0; /* A successful call sets it to SIGCHLD. */ in do_test_waitd_common()
137 info.si_pid = -1; in do_test_waitd_common()
138 info.si_status = -1; in do_test_waitd_common()
139 fail = waitid (P_PID, pid, &info, WCONTINUED); in do_test_waitd_common()
143 TEST_COMPARE (info.si_signo, SIGCHLD); in do_test_waitd_common()
144 TEST_COMPARE (info.si_code, CLD_CONTINUED); in do_test_waitd_common()
145 TEST_COMPARE (info.si_status, SIGCONT); in do_test_waitd_common()
146 TEST_COMPARE (info.si_pid, pid); in do_test_waitd_common()
149 info.si_signo = 0; /* A successful call sets it to SIGCHLD. */ in do_test_waitd_common()
150 fail = waitid (P_PID, pid, &info, WCONTINUED|WNOHANG); in do_test_waitd_common()
154 TEST_COMPARE (info.si_signo, 0); in do_test_waitd_common()
166 fail = waitid (type, pid, &info, WEXITED|WSTOPPED); in do_test_waitd_common()
168 TEST_COMPARE (info.si_signo, SIGCHLD); in do_test_waitd_common()
169 TEST_COMPARE (info.si_code, CLD_STOPPED); in do_test_waitd_common()
170 TEST_COMPARE (info.si_status, SIGSTOP); in do_test_waitd_common()
171 TEST_COMPARE (info.si_pid, pid); in do_test_waitd_common()
183 fail = waitid (type, pid, &info, WCONTINUED); in do_test_waitd_common()
185 TEST_COMPARE (info.si_signo, SIGCHLD); in do_test_waitd_common()
186 TEST_COMPARE (info.si_code, CLD_CONTINUED); in do_test_waitd_common()
187 TEST_COMPARE (info.si_status, SIGCONT); in do_test_waitd_common()
188 TEST_COMPARE (info.si_pid, pid); in do_test_waitd_common()
196 info.si_signo = 0; /* A successful call sets it to SIGCHLD. */ in do_test_waitd_common()
197 info.si_pid = -1; in do_test_waitd_common()
198 info.si_status = -1; in do_test_waitd_common()
199 fail = waitid (type, pid, &info, WEXITED|WNOWAIT); in do_test_waitd_common()
203 TEST_COMPARE (info.si_signo, SIGCHLD); in do_test_waitd_common()
204 TEST_COMPARE (info.si_code, CLD_KILLED); in do_test_waitd_common()
205 TEST_COMPARE (info.si_status, SIGKILL); in do_test_waitd_common()
206 TEST_COMPARE (info.si_pid, pid); in do_test_waitd_common()
212 info.si_signo = 0; /* A successful call sets it to SIGCHLD. */ in do_test_waitd_common()
213 info.si_pid = -1; in do_test_waitd_common()
214 info.si_status = -1; in do_test_waitd_common()
215 fail = waitid (type, pid, &info, WEXITED | WNOHANG); in do_test_waitd_common()
217 TEST_COMPARE (info.si_signo, SIGCHLD); in do_test_waitd_common()
218 TEST_COMPARE (info.si_code, CLD_KILLED); in do_test_waitd_common()
219 TEST_COMPARE (info.si_status, SIGKILL); in do_test_waitd_common()
220 TEST_COMPARE (info.si_pid, pid); in do_test_waitd_common()
222 fail = waitid (P_PID, pid, &info, WEXITED); in do_test_waitd_common()