Searched refs:tst_buff (Results 1 - 3 of 3) sorted by relevance
/third_party/ltp/testcases/kernel/syscalls/mmap/ |
H A D | mmap07.c | 108 char *tst_buff; in setup() local 117 if ((tst_buff = calloc(page_sz, sizeof(char))) == NULL) { in setup() 119 "calloc() failed to allocate space for tst_buff"); in setup() 123 memset(tst_buff, 'A', page_sz); in setup() 129 free(tst_buff); in setup() 134 if (write(fildes, tst_buff, page_sz) < (int)page_sz) { in setup() 135 free(tst_buff); in setup() 139 free(tst_buff); in setup()
|
H A D | mmap03.c | 152 char *tst_buff; in setup() local 161 if ((tst_buff = calloc(page_sz, sizeof(char))) == NULL) { in setup() 162 tst_brkm(TFAIL, NULL, "calloc failed (tst_buff)"); in setup() 166 memset(tst_buff, 'A', page_sz); in setup() 172 free(tst_buff); in setup() 178 if (write(fildes, tst_buff, page_sz) < (long)page_sz) { in setup() 179 free(tst_buff); in setup() 185 free(tst_buff); in setup()
|
H A D | mmap04.c | 126 char *tst_buff; in setup() local 134 if ((tst_buff = calloc(page_sz, sizeof(char))) == NULL) { in setup() 135 tst_brkm(TFAIL, NULL, "calloc failed (tst_buff)"); in setup() 139 memset(tst_buff, 'A', page_sz); in setup() 145 free(tst_buff); in setup() 150 if (write(fildes, tst_buff, page_sz) < (ssize_t)page_sz) { in setup() 151 free(tst_buff); in setup() 156 free(tst_buff); in setup()
|
Completed in 1 milliseconds