1 /* Check that TRT happens for pipe corner cases.
12 void err (const char *s
)
30 pipemax
= fpathconf (pip
[1], _PC_PIPE_BUF
);
35 fprintf (stderr
, "Bad pipemax %d\n", pipemax
);
39 /* Writing to wrong end of pipe. */
40 if (write (pip
[0], "argh", 1) != -1
46 /* Reading from wrong end of pipe. */
47 if (read (pip
[1], &c
, 1) != -1
53 if (close (pip
[0]) != 0)
56 if (signal (SIGPIPE
, SIG_IGN
) != SIG_DFL
)
59 /* Writing to pipe with closed read end. */
60 if (write (pip
[1], "argh", 1) != -1
This page took 0.029953 seconds and 4 git commands to generate.