Home
last modified time | relevance | path

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

/systemd-251/src/test/
Dtest-fileio.c940 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()
[all …]