Home
last modified time | relevance | path

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

/xnu-8019.80.24/bsd/tests/
H A Dcopyio_tests.c237 const vm_size_t trunc_size = strlen(copyio_test_string) - 4; in copyinstr_test() local
238 err = copyinstr(data->user_addr, in_buf, trunc_size, &lencopied); in copyinstr_test()
240 …T_EXPECT_EQ_ULONG(lencopied, trunc_size, "truncated copyinstr() should copy exactly `maxlen' bytes… in copyinstr_test()
241 cmp = memcmp(in_buf, copyio_test_string, trunc_size); in copyinstr_test()
307 const vm_size_t trunc_size = strlen(copyio_test_string) - 4; in copyoutstr_test() local
308 err = copyoutstr(copyio_test_string, data->user_addr, trunc_size, &lencopied); in copyoutstr_test()
310 …T_EXPECT_EQ_ULONG(lencopied, trunc_size, "truncated copyoutstr() should copy exactly `maxlen' byte… in copyoutstr_test()
311 cmp = strncmp(data->kern_addr, copyio_test_string, trunc_size); in copyoutstr_test()