Home
last modified time | relevance | path

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

/external/ltp/testcases/kernel/syscalls/truncate/
Dtruncate02.c91 char tst_buff[BUF_SIZE]; /* buffer to hold testfile contents */ variable
149 while ((rbytes = read(fd, tst_buff, in main()
150 sizeof(tst_buff))) > 0) { in main()
190 while ((rbytes = read(fd, tst_buff, in main()
191 sizeof(tst_buff))) > 0) { in main()
193 if (tst_buff[i] != 0) { in main()
249 tst_buff[i] = 'a'; in setup()
261 if ((wbytes = write(fd, tst_buff, sizeof(tst_buff))) <= 0) { in setup()
Dtruncate01.c167 char tst_buff[BUF_SIZE]; /* buffer to hold data */ in setup() local
182 tst_buff[i] = 'a'; in setup()
194 if ((c = write(fd, tst_buff, sizeof(tst_buff))) <= 0) { in setup()
/external/ltp/testcases/kernel/syscalls/ftruncate/
Dftruncate02.c90 char tst_buff[BUF_SIZE]; /* buffer to hold testfile contents */ variable
149 while ((rbytes = read(fd, tst_buff, in main()
150 sizeof(tst_buff))) > 0) { in main()
183 while ((rbytes = read(fd, tst_buff, in main()
184 sizeof(tst_buff))) > 0) { in main()
186 if (tst_buff[i] != 0) { in main()
255 tst_buff[i] = 'a'; in setup()
262 if ((wbytes = write(fd, tst_buff, sizeof(tst_buff))) <= 0) { in setup()
Dftruncate01.c160 char tst_buff[BUF_SIZE]; /* buffer to hold data */ in setup() local
170 tst_buff[i] = 'a'; in setup()
178 if ((c = write(fildes, tst_buff, sizeof(tst_buff))) <= 0) { in setup()
/external/ltp/testcases/kernel/syscalls/mmap/
Dmmap07.c108 char *tst_buff; in setup() local
117 if ((tst_buff = calloc(page_sz, sizeof(char))) == NULL) { 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) < page_sz) { in setup()
135 free(tst_buff); in setup()
139 free(tst_buff); in setup()
Dmmap06.c106 char *tst_buff; in setup() local
115 if ((tst_buff = calloc(page_sz, sizeof(char))) == NULL) { in setup()
120 memset(tst_buff, 'A', page_sz); in setup()
126 free(tst_buff); in setup()
131 if (write(fildes, tst_buff, page_sz) < page_sz) { in setup()
132 free(tst_buff); in setup()
136 free(tst_buff); in setup()
Dmmap08.c100 char *tst_buff; in setup() local
108 if ((tst_buff = calloc(page_sz, sizeof(char))) == NULL) { in setup()
114 memset(tst_buff, 'A', page_sz); in setup()
120 free(tst_buff); in setup()
125 if (write(fildes, tst_buff, page_sz) != page_sz) { in setup()
126 free(tst_buff); in setup()
131 free(tst_buff); in setup()
Dmmap04.c126 char *tst_buff; in setup() local
134 if ((tst_buff = calloc(page_sz, sizeof(char))) == NULL) { 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) < page_sz) { in setup()
151 free(tst_buff); in setup()
156 free(tst_buff); in setup()
Dmmap05.c130 char *tst_buff; in setup() local
139 if ((tst_buff = calloc(page_sz, sizeof(char))) == NULL) { in setup()
144 memset(tst_buff, 'A', page_sz); in setup()
150 free(tst_buff); in setup()
156 if (write(fildes, tst_buff, page_sz) != page_sz) { in setup()
157 free(tst_buff); in setup()
162 free(tst_buff); in setup()
Dmmap02.c121 char *tst_buff; in setup() local
130 if ((tst_buff = calloc(page_sz, sizeof(char))) == NULL) { in setup()
135 memset(tst_buff, 'A', page_sz); in setup()
141 free(tst_buff); in setup()
147 if (write(fildes, tst_buff, page_sz) < page_sz) { in setup()
148 free(tst_buff); in setup()
154 free(tst_buff); in setup()
Dmmap03.c152 char *tst_buff; in setup() local
161 if ((tst_buff = calloc(page_sz, sizeof(char))) == NULL) { 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) < page_sz) { in setup()
179 free(tst_buff); in setup()
185 free(tst_buff); in setup()
/external/ltp/testcases/kernel/syscalls/fstat/
Dfstat02.c112 char tst_buff[BUF_SIZE]; in setup() local
132 memset(tst_buff, 'a', BUF_SIZE - 1); in setup()
136 if ((wbytes = write(fildes, tst_buff, sizeof(tst_buff))) <= 0) in setup()
/external/ltp/testcases/kernel/syscalls/stat/
Dstat01.c112 char tst_buff[BUF_SIZE]; in setup() local
133 memset(tst_buff, 'a', BUF_SIZE - 1); in setup()
137 if ((wbytes = write(fd, tst_buff, sizeof(tst_buff))) <= 0) in setup()
Dstat02.c160 char tst_buff[BUF_SIZE]; /* data buffer for file */ in setup() local
193 tst_buff[i] = 'a'; in setup()
198 if ((wbytes = write(fd, tst_buff, sizeof(tst_buff))) <= 0) { in setup()