Lines Matching refs:rbuf_size
940 size_t rbuf_size; in TEST() local
950 …ssert_se(read_full_file_full(AT_FDCWD, fn, UINT64_MAX, SIZE_MAX, 0, NULL, &rbuf, &rbuf_size) >= 0); in TEST()
951 assert_se(rbuf_size == sizeof(buf)); in TEST()
952 assert_se(memcmp(buf, rbuf, rbuf_size) == 0); in TEST()
955 … assert_se(read_full_file_full(AT_FDCWD, fn, UINT64_MAX, 128, 0, NULL, &rbuf, &rbuf_size) >= 0); in TEST()
956 assert_se(rbuf_size == 128); in TEST()
957 assert_se(memcmp(buf, rbuf, rbuf_size) == 0); in TEST()
960 …T_FDCWD, fn, UINT64_MAX, 128, READ_FULL_FILE_FAIL_WHEN_LARGER, NULL, &rbuf, &rbuf_size) == -E2BIG); in TEST()
961 …n, UINT64_MAX, sizeof(buf)-1, READ_FULL_FILE_FAIL_WHEN_LARGER, NULL, &rbuf, &rbuf_size) == -E2BIG); in TEST()
962 …DCWD, fn, UINT64_MAX, sizeof(buf), READ_FULL_FILE_FAIL_WHEN_LARGER, NULL, &rbuf, &rbuf_size) >= 0); in TEST()
963 assert_se(rbuf_size == sizeof(buf)); in TEST()
964 assert_se(memcmp(buf, rbuf, rbuf_size) == 0); in TEST()
967 …e_full(AT_FDCWD, fn, 47, 128, READ_FULL_FILE_FAIL_WHEN_LARGER, NULL, &rbuf, &rbuf_size) == -E2BIG); in TEST()
968 …WD, fn, 47, sizeof(buf)-47-1, READ_FULL_FILE_FAIL_WHEN_LARGER, NULL, &rbuf, &rbuf_size) == -E2BIG); in TEST()
969 …(AT_FDCWD, fn, 47, sizeof(buf)-47, READ_FULL_FILE_FAIL_WHEN_LARGER, NULL, &rbuf, &rbuf_size) >= 0); in TEST()
970 assert_se(rbuf_size == sizeof(buf)-47); in TEST()
971 assert_se(memcmp(buf+47, rbuf, rbuf_size) == 0); in TEST()
974 …WD, fn, UINT64_MAX, sizeof(buf)+1, READ_FULL_FILE_FAIL_WHEN_LARGER, NULL, &rbuf, &rbuf_size) >= 0); in TEST()
975 assert_se(rbuf_size == sizeof(buf)); in TEST()
976 assert_se(memcmp(buf, rbuf, rbuf_size) == 0); in TEST()
979 … assert_se(read_full_file_full(AT_FDCWD, fn, 1234, SIZE_MAX, 0, NULL, &rbuf, &rbuf_size) >= 0); in TEST()
980 assert_se(rbuf_size == sizeof(buf) - 1234); in TEST()
981 assert_se(memcmp(buf + 1234, rbuf, rbuf_size) == 0); in TEST()
984 assert_se(read_full_file_full(AT_FDCWD, fn, 2345, 777, 0, NULL, &rbuf, &rbuf_size) >= 0); in TEST()
985 assert_se(rbuf_size == 777); in TEST()
986 assert_se(memcmp(buf + 2345, rbuf, rbuf_size) == 0); in TEST()
989 assert_se(read_full_file_full(AT_FDCWD, fn, 4700, 20, 0, NULL, &rbuf, &rbuf_size) >= 0); in TEST()
990 assert_se(rbuf_size == 11); in TEST()
991 assert_se(memcmp(buf + 4700, rbuf, rbuf_size) == 0); in TEST()
994 assert_se(read_full_file_full(AT_FDCWD, fn, 10000, 99, 0, NULL, &rbuf, &rbuf_size) >= 0); in TEST()
995 assert_se(rbuf_size == 0); in TEST()