Searched refs:trunc_size (Results 1 – 1 of 1) sorted by relevance
| /xnu-12377.61.12/bsd/tests/ |
| H A D | copyio_tests.c | 241 const vm_size_t trunc_size = strlen(copyio_test_string) - 4; in copyinstr_test() local 242 err = copyinstr(data->user_addr, in_buf, trunc_size, &lencopied); in copyinstr_test() 244 …T_EXPECT_EQ_ULONG(lencopied, trunc_size, "truncated copyinstr() should copy exactly `maxlen' bytes… in copyinstr_test() 245 cmp = memcmp(in_buf, copyio_test_string, trunc_size); in copyinstr_test() 311 const vm_size_t trunc_size = strlen(copyio_test_string) - 4; in copyoutstr_test() local 312 err = copyoutstr(copyio_test_string, data->user_addr, trunc_size, &lencopied); in copyoutstr_test() 314 …T_EXPECT_EQ_ULONG(lencopied, trunc_size, "truncated copyoutstr() should copy exactly `maxlen' byte… in copyoutstr_test() 315 cmp = strncmp(data->kern_addr, copyio_test_string, trunc_size); in copyoutstr_test()
|