| 611 | } |
| 612 | |
| 613 | static bool fd_set_cloexec(int fd) { |
| 614 | int flags = fcntl(fd, F_GETFD); |
| 615 | return flags >= 0 && fcntl(fd, F_SETFD, flags | FD_CLOEXEC) == 0; |
| 616 | } |
| 617 | |
| 618 | static bool fd_set_nonblocking(int fd) { |
| 619 | int flags = fcntl(fd, F_GETFL); |
no outgoing calls
no test coverage detected