Home
last modified time | relevance | path

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

/external/ltp/testcases/kernel/syscalls/writev/
Dwritev06.c59 char *good_addr[2] = { NULL, NULL }; variable
183 good_addr[0] = mmap(NULL, page_size, PROT_READ | PROT_WRITE, in setup()
185 if (good_addr[0] == MAP_FAILED) in setup()
193 good_addr[1] = mmap(NULL, page_size, PROT_READ | PROT_WRITE, in setup()
195 if (good_addr[1] == MAP_FAILED) in setup()
199 memset(good_addr[0], 'a', page_size); in setup()
200 memset(good_addr[1], 'b', page_size); in setup()
202 wr_iovec[0].iov_base = good_addr[0] + page_size - 1; in setup()
203 wr_iovec[1].iov_base = good_addr[1] + page_size - 1; in setup()