Home
last modified time | relevance | path

Searched refs:fd_copy (Results 1 – 1 of 1) sorted by relevance

/systemd-251/src/test/
Dtest-copy.c330 int r, fd, fd_copy; in TEST_RET() local
336 fd_copy = mkostemp_safe(fn_copy); in TEST_RET()
337 assert_se(fd_copy >= 0); in TEST_RET()
359 assert_se(copy_bytes(fd, fd_copy, UINT64_MAX, COPY_HOLES) >= 0); in TEST_RET()
362 assert_se(lseek(fd_copy, 0, SEEK_HOLE) == 0); in TEST_RET()
364 assert_se(lseek(fd_copy, 0, SEEK_DATA) == blksz); in TEST_RET()
365 assert_se(lseek(fd_copy, blksz, SEEK_HOLE) == 2 * blksz); in TEST_RET()
366 assert_se(lseek(fd_copy, 2 * blksz, SEEK_DATA) < 0 && errno == ENXIO); in TEST_RET()
369 assert_se(fstat(fd_copy, &stat) >= 0); in TEST_RET()
373 close(fd_copy); in TEST_RET()