| Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/coreutils/src/gnulib/lib/pipe-safer.c |
| Switch to Source code | Preprocessed file |
| Line | Source | Count | ||||||
|---|---|---|---|---|---|---|---|---|
| 1 | - | |||||||
| 2 | - | |||||||
| 3 | - | |||||||
| 4 | - | |||||||
| 5 | - | |||||||
| 6 | - | |||||||
| 7 | - | |||||||
| 8 | - | |||||||
| 9 | int | - | ||||||
| 10 | pipe_safer (int fd[2]) | - | ||||||
| 11 | { | - | ||||||
| 12 | - | |||||||
| 13 | if (pipe (fd) == 0
| 0 | ||||||
| 14 | { | - | ||||||
| 15 | int i; | - | ||||||
| 16 | for (i = 0; i < 2
| 0 | ||||||
| 17 | { | - | ||||||
| 18 | fd[i] = fd_safer (fd[i]); | - | ||||||
| 19 | if (fd[i] < 0
| 0 | ||||||
| 20 | { | - | ||||||
| 21 | int e = | - | ||||||
| 22 | (*__errno_location ()) | - | ||||||
| 23 | ; | - | ||||||
| 24 | close (fd[1 - i]); | - | ||||||
| 25 | - | |||||||
| 26 | (*__errno_location ()) | - | ||||||
| 27 | = e; | - | ||||||
| 28 | return never executed: -1;return -1;never executed: return -1; | 0 | ||||||
| 29 | } | - | ||||||
| 30 | } never executed: end of block | 0 | ||||||
| 31 | - | |||||||
| 32 | return never executed: 0;return 0;never executed: return 0; | 0 | ||||||
| 33 | } | - | ||||||
| 34 | - | |||||||
| 35 | - | |||||||
| 36 | - | |||||||
| 37 | - | |||||||
| 38 | return never executed: -1;return -1;never executed: return -1; | 0 | ||||||
| 39 | } | - | ||||||
| Switch to Source code | Preprocessed file |