| 62 | } |
| 63 | |
| 64 | static int check_content(int fd, void *buf, int len, const void *src) |
| 65 | { |
| 66 | int ret; |
| 67 | |
| 68 | ret = read_buf(fd, buf, len); |
| 69 | if (ret) |
| 70 | return ret; |
| 71 | |
| 72 | ret = memcmp(buf, src, len); |
| 73 | return (ret != 0) ? -1 : 0; |
| 74 | } |
| 75 | |
| 76 | static int create_file(const char *filename) |
| 77 | { |
no test coverage detected