| 618 | } |
| 619 | |
| 620 | static bool fd_set_cloexec(int fd) { |
| 621 | int flags = fcntl(fd, F_GETFD); |
| 622 | return flags >= 0 && fcntl(fd, F_SETFD, flags | FD_CLOEXEC) == 0; |
| 623 | } |
| 624 | |
| 625 | static bool fd_set_nonblocking(int fd) { |
| 626 | int flags = fcntl(fd, F_GETFL); |
no outgoing calls
no test coverage detected