| 34 | static int has_tee = 0; |
| 35 | |
| 36 | static int read_buf(int fd, void *buf, int len) |
| 37 | { |
| 38 | int ret; |
| 39 | |
| 40 | while (len) { |
| 41 | ret = read(fd, buf, len); |
| 42 | if (ret < 0) |
| 43 | return ret; |
| 44 | len -= ret; |
| 45 | buf += ret; |
| 46 | } |
| 47 | return 0; |
| 48 | } |
| 49 | |
| 50 | static int write_buf(int fd, const void *buf, int len) |
| 51 | { |
no outgoing calls
no test coverage detected