| 48 | } |
| 49 | |
| 50 | static int write_buf(int fd, const void *buf, int len) |
| 51 | { |
| 52 | int ret; |
| 53 | |
| 54 | while (len) { |
| 55 | ret = write(fd, buf, len); |
| 56 | if (ret < 0) |
| 57 | return ret; |
| 58 | len -= ret; |
| 59 | buf += ret; |
| 60 | } |
| 61 | return 0; |
| 62 | } |
| 63 | |
| 64 | static int check_content(int fd, void *buf, int len, const void *src) |
| 65 | { |
no outgoing calls
no test coverage detected