Lines Matching defs:cleanup
90 static void cleanup(void);
134 tst_brkm(TBROK, cleanup, "fork failed");
139 tst_brkm(TBROK, cleanup, "self_exec failed");
154 cleanup();
162 * SIGTERM the child and cleanup.
166 cleanup();
186 SAFE_CLOSE(cleanup, parentfd);
190 cleanup();
363 pfd = SAFE_OPEN(cleanup, parenttty, O_RDWR, 0777);
369 SAFE_IOCTL(cleanup, pfd, TCFLSH, 2);
431 /* Save the current device information - to be restored in cleanup() */
432 SAFE_IOCTL(cleanup, fd, TCGETA, &save_io);
435 SAFE_CLOSE(cleanup, fd);
460 static void cleanup(void)
464 tst_resm(TINFO, "ioctl restore failed in cleanup()");
466 tst_resm(TINFO, "close() failed in cleanup()");