| 74 | } |
| 75 | |
| 76 | static int create_file(const char *filename) |
| 77 | { |
| 78 | int fd, save_errno; |
| 79 | |
| 80 | fd = open(filename, O_RDWR | O_CREAT, 0644); |
| 81 | save_errno = errno; |
| 82 | unlink(filename); |
| 83 | errno = save_errno; |
| 84 | return fd; |
| 85 | } |
| 86 | |
| 87 | static int init_splice_ctx(struct test_ctx *ctx) |
| 88 | { |