Lines Matching defs:cleanup
76 void cleanup(void)
88 tst_sig(FORK, DEF_HANDLER, cleanup);
95 SAFE_PIPE(cleanup, parent_pipe);
96 SAFE_PIPE(cleanup, child_pipe);
103 SAFE_WRITE(cleanup, SAFE_WRITE_ANY, fd, buf, STRINGSIZE);
110 tst_brkm(TBROK | TERRNO, cleanup,
206 SAFE_WRITE(cleanup, SAFE_WRITE_ALL, parent_pipe[1], l, sizeof(*l));
211 SAFE_READ(cleanup, 1, child_pipe[0], l, sizeof(*l));
238 tst_brkm(TFAIL, cleanup, "Unexpected death of child process");
265 tst_brkm(TBROK | TERRNO, cleanup,
271 tst_brkm(TBROK | TERRNO, cleanup, "fork failed");
273 SAFE_CLOSE(cleanup, parent_pipe[0]);
274 SAFE_CLOSE(cleanup, child_pipe[1]);
639 SAFE_CLOSE(cleanup, fd);
641 cleanup();