Lines Matching refs:close
38 * 1. test close-on-exec with a regular file
39 * 2. test close-on-exec with a pipe
40 * 3. test close-on-exec with a fifo
178 if (file_fd > 0 && close(file_fd))
179 tst_resm(TWARN | TERRNO, "close(file_fd) failed");
181 if (pipe_fds[0] > 0 && close(pipe_fds[0]))
182 tst_resm(TWARN | TERRNO, "close(pipe_fds[0]) failed");
184 if (pipe_fds[1] > 0 && close(pipe_fds[1]))
185 tst_resm(TWARN | TERRNO, "close(pipe_fds[1]) failed");
187 if (fifo_fd > 0 && close(fifo_fd))
188 tst_resm(TWARN | TERRNO, "close(fifo_fd) failed");