| Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/coreutils/src/gnulib/lib/cloexec.c |
| Switch to Source code | Preprocessed file |
| Line | Source | Count | ||||||
|---|---|---|---|---|---|---|---|---|
| 1 | - | |||||||
| 2 | - | |||||||
| 3 | - | |||||||
| 4 | int | - | ||||||
| 5 | set_cloexec_flag (int desc, | - | ||||||
| 6 | _Bool | - | ||||||
| 7 | value) | - | ||||||
| 8 | { | - | ||||||
| 9 | - | |||||||
| 10 | - | |||||||
| 11 | int flags = | - | ||||||
| 12 | rpl_fcntl | - | ||||||
| 13 | (desc, | - | ||||||
| 14 | 1 | - | ||||||
| 15 | , 0); | - | ||||||
| 16 | - | |||||||
| 17 | if (0 <= flags
| 0 | ||||||
| 18 | { | - | ||||||
| 19 | int newflags = (value
| 0 | ||||||
| 20 | 1 | - | ||||||
| 21 | : flags & ~ | - | ||||||
| 22 | 1 | - | ||||||
| 23 | ); | - | ||||||
| 24 | - | |||||||
| 25 | if (flags == newflags
| 0 | ||||||
| 26 | || | - | ||||||
| 27 | rpl_fcntl
| 0 | ||||||
| 28 | (desc,
| 0 | ||||||
| 29 | 2
| 0 | ||||||
| 30 | , newflags) != -1
| 0 | ||||||
| 31 | return never executed: 0;return 0;never executed: return 0; | 0 | ||||||
| 32 | } never executed: end of block | 0 | ||||||
| 33 | - | |||||||
| 34 | return never executed: -1;return -1;never executed: return -1; | 0 | ||||||
| 35 | } | - | ||||||
| 36 | - | |||||||
| 37 | - | |||||||
| 38 | - | |||||||
| 39 | - | |||||||
| 40 | - | |||||||
| 41 | - | |||||||
| 42 | int | - | ||||||
| 43 | dup_cloexec (int fd) | - | ||||||
| 44 | { | - | ||||||
| 45 | return never executed: return rpl_fcntl (fd, 1030 , 0);never executed: return rpl_fcntl (fd, 1030 , 0); | 0 | ||||||
| 46 | rpl_fcntl never executed: return rpl_fcntl (fd, 1030 , 0); | 0 | ||||||
| 47 | (fd, never executed: return rpl_fcntl (fd, 1030 , 0); | 0 | ||||||
| 48 | 1030 never executed: return rpl_fcntl (fd, 1030 , 0); | 0 | ||||||
| 49 | , 0); never executed: return rpl_fcntl (fd, 1030 , 0); | 0 | ||||||
| 50 | } | - | ||||||
| Switch to Source code | Preprocessed file |