HomeSort by: relevance | last modified time | path
    Searched defs:sizeof_file (Results 1 - 2 of 2) sorted by relevancy

  /src/tests/lib/libc/gen/posix_spawn/
t_spawn.c 173 size_t sizeof_file = (size_t)filesize(file); local in function:check_success
177 REQUIRE_LIBC(contents = malloc(sizeof_file), NULL);
183 * Therefore sizeof_file - 1
186 ATF_CHECK_MSG(sizeof_str == sizeof_file - 1, "%zu (%s) != %zu (%s)",
187 sizeof_str, dir, sizeof_file - 1, file);
189 bytes_read = read(fd, contents, sizeof_file - 1);
190 contents[sizeof_file - 1] = '\0';
t_spawn.c 173 size_t sizeof_file = (size_t)filesize(file); local in function:check_success
177 REQUIRE_LIBC(contents = malloc(sizeof_file), NULL);
183 * Therefore sizeof_file - 1
186 ATF_CHECK_MSG(sizeof_str == sizeof_file - 1, "%zu (%s) != %zu (%s)",
187 sizeof_str, dir, sizeof_file - 1, file);
189 bytes_read = read(fd, contents, sizeof_file - 1);
190 contents[sizeof_file - 1] = '\0';

Completed in 21 milliseconds