Lines Matching refs:ftruncate
2 Test ftruncate() function : usage variations - truncate file to current size
14 echo "*** Testing ftruncate() : usage variations ***\n";
16 /* test ftruncate with file opened in different modes */
25 echo "\n-- Testing ftruncate() with file having data of type ". $file_content_type ." --\n";
28 echo "-- Testing ftruncate() with file opening using $file_modes[$mode_counter] mode --\n";
48 echo "-- Testing ftruncate(): truncate file to size = current size --\n";
54 var_dump( ftruncate($file_handle, $new_size) ); // truncate it
68 *** Testing ftruncate() : usage variations ***
70 -- Testing ftruncate() with file having data of type numeric --
71 -- Testing ftruncate() with file opening using r mode --
72 -- Testing ftruncate(): truncate file to size = current size --
79 -- Testing ftruncate() with file opening using rb mode --
80 -- Testing ftruncate(): truncate file to size = current size --
87 -- Testing ftruncate() with file opening using rt mode --
88 -- Testing ftruncate(): truncate file to size = current size --
95 -- Testing ftruncate() with file opening using r+ mode --
96 -- Testing ftruncate(): truncate file to size = current size --
103 -- Testing ftruncate() with file opening using r+b mode --
104 -- Testing ftruncate(): truncate file to size = current size --
111 -- Testing ftruncate() with file opening using r+t mode --
112 -- Testing ftruncate(): truncate file to size = current size --
119 -- Testing ftruncate() with file opening using w mode --
120 -- Testing ftruncate(): truncate file to size = current size --
127 -- Testing ftruncate() with file opening using wb mode --
128 -- Testing ftruncate(): truncate file to size = current size --
135 -- Testing ftruncate() with file opening using wt mode --
136 -- Testing ftruncate(): truncate file to size = current size --
143 -- Testing ftruncate() with file opening using w+ mode --
144 -- Testing ftruncate(): truncate file to size = current size --
151 -- Testing ftruncate() with file opening using w+b mode --
152 -- Testing ftruncate(): truncate file to size = current size --
159 -- Testing ftruncate() with file opening using w+t mode --
160 -- Testing ftruncate(): truncate file to size = current size --
167 -- Testing ftruncate() with file opening using x mode --
168 -- Testing ftruncate(): truncate file to size = current size --
175 -- Testing ftruncate() with file opening using xb mode --
176 -- Testing ftruncate(): truncate file to size = current size --
183 -- Testing ftruncate() with file opening using xt mode --
184 -- Testing ftruncate(): truncate file to size = current size --
191 -- Testing ftruncate() with file opening using x+ mode --
192 -- Testing ftruncate(): truncate file to size = current size --
199 -- Testing ftruncate() with file opening using x+b mode --
200 -- Testing ftruncate(): truncate file to size = current size --
207 -- Testing ftruncate() with file opening using x+t mode --
208 -- Testing ftruncate(): truncate file to size = current size --
215 -- Testing ftruncate() with file opening using a mode --
216 -- Testing ftruncate(): truncate file to size = current size --
223 -- Testing ftruncate() with file opening using ab mode --
224 -- Testing ftruncate(): truncate file to size = current size --
231 -- Testing ftruncate() with file opening using at mode --
232 -- Testing ftruncate(): truncate file to size = current size --
239 -- Testing ftruncate() with file opening using a+ mode --
240 -- Testing ftruncate(): truncate file to size = current size --
247 -- Testing ftruncate() with file opening using a+b mode --
248 -- Testing ftruncate(): truncate file to size = current size --
255 -- Testing ftruncate() with file opening using a+t mode --
256 -- Testing ftruncate(): truncate file to size = current size --
264 -- Testing ftruncate() with file having data of type text_with_new_line --
265 -- Testing ftruncate() with file opening using r mode --
266 -- Testing ftruncate(): truncate file to size = current size --
273 -- Testing ftruncate() with file opening using rb mode --
274 -- Testing ftruncate(): truncate file to size = current size --
281 -- Testing ftruncate() with file opening using rt mode --
282 -- Testing ftruncate(): truncate file to size = current size --
289 -- Testing ftruncate() with file opening using r+ mode --
290 -- Testing ftruncate(): truncate file to size = current size --
297 -- Testing ftruncate() with file opening using r+b mode --
298 -- Testing ftruncate(): truncate file to size = current size --
305 -- Testing ftruncate() with file opening using r+t mode --
306 -- Testing ftruncate(): truncate file to size = current size --
313 -- Testing ftruncate() with file opening using w mode --
314 -- Testing ftruncate(): truncate file to size = current size --
321 -- Testing ftruncate() with file opening using wb mode --
322 -- Testing ftruncate(): truncate file to size = current size --
329 -- Testing ftruncate() with file opening using wt mode --
330 -- Testing ftruncate(): truncate file to size = current size --
337 -- Testing ftruncate() with file opening using w+ mode --
338 -- Testing ftruncate(): truncate file to size = current size --
345 -- Testing ftruncate() with file opening using w+b mode --
346 -- Testing ftruncate(): truncate file to size = current size --
353 -- Testing ftruncate() with file opening using w+t mode --
354 -- Testing ftruncate(): truncate file to size = current size --
361 -- Testing ftruncate() with file opening using x mode --
362 -- Testing ftruncate(): truncate file to size = current size --
369 -- Testing ftruncate() with file opening using xb mode --
370 -- Testing ftruncate(): truncate file to size = current size --
377 -- Testing ftruncate() with file opening using xt mode --
378 -- Testing ftruncate(): truncate file to size = current size --
385 -- Testing ftruncate() with file opening using x+ mode --
386 -- Testing ftruncate(): truncate file to size = current size --
393 -- Testing ftruncate() with file opening using x+b mode --
394 -- Testing ftruncate(): truncate file to size = current size --
401 -- Testing ftruncate() with file opening using x+t mode --
402 -- Testing ftruncate(): truncate file to size = current size --
409 -- Testing ftruncate() with file opening using a mode --
410 -- Testing ftruncate(): truncate file to size = current size --
417 -- Testing ftruncate() with file opening using ab mode --
418 -- Testing ftruncate(): truncate file to size = current size --
425 -- Testing ftruncate() with file opening using at mode --
426 -- Testing ftruncate(): truncate file to size = current size --
433 -- Testing ftruncate() with file opening using a+ mode --
434 -- Testing ftruncate(): truncate file to size = current size --
441 -- Testing ftruncate() with file opening using a+b mode --
442 -- Testing ftruncate(): truncate file to size = current size --
449 -- Testing ftruncate() with file opening using a+t mode --
450 -- Testing ftruncate(): truncate file to size = current size --