Lines Matching refs:ftruncate
2 Test ftruncate() function : usage variations - truncate file to half 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 half of its current size --\n";
53 var_dump( ftruncate($file_handle, $new_size) ); // truncate it
67 *** Testing ftruncate() : usage variations ***
69 -- Testing ftruncate() with file having data of type numeric --
70 -- Testing ftruncate() with file opening using r mode --
71 -- Testing ftruncate(): truncate file to half of its current size --
78 -- Testing ftruncate() with file opening using rb mode --
79 -- Testing ftruncate(): truncate file to half of its current size --
86 -- Testing ftruncate() with file opening using rt mode --
87 -- Testing ftruncate(): truncate file to half of its current size --
94 -- Testing ftruncate() with file opening using r+ mode --
95 -- Testing ftruncate(): truncate file to half of its current size --
102 -- Testing ftruncate() with file opening using r+b mode --
103 -- Testing ftruncate(): truncate file to half of its current size --
110 -- Testing ftruncate() with file opening using r+t mode --
111 -- Testing ftruncate(): truncate file to half of its current size --
118 -- Testing ftruncate() with file opening using w mode --
119 -- Testing ftruncate(): truncate file to half of its current size --
126 -- Testing ftruncate() with file opening using wb mode --
127 -- Testing ftruncate(): truncate file to half of its current size --
134 -- Testing ftruncate() with file opening using wt mode --
135 -- Testing ftruncate(): truncate file to half of its current size --
142 -- Testing ftruncate() with file opening using w+ mode --
143 -- Testing ftruncate(): truncate file to half of its current size --
150 -- Testing ftruncate() with file opening using w+b mode --
151 -- Testing ftruncate(): truncate file to half of its current size --
158 -- Testing ftruncate() with file opening using w+t mode --
159 -- Testing ftruncate(): truncate file to half of its current size --
166 -- Testing ftruncate() with file opening using x mode --
167 -- Testing ftruncate(): truncate file to half of its current size --
174 -- Testing ftruncate() with file opening using xb mode --
175 -- Testing ftruncate(): truncate file to half of its current size --
182 -- Testing ftruncate() with file opening using xt mode --
183 -- Testing ftruncate(): truncate file to half of its current size --
190 -- Testing ftruncate() with file opening using x+ mode --
191 -- Testing ftruncate(): truncate file to half of its current size --
198 -- Testing ftruncate() with file opening using x+b mode --
199 -- Testing ftruncate(): truncate file to half of its current size --
206 -- Testing ftruncate() with file opening using x+t mode --
207 -- Testing ftruncate(): truncate file to half of its current size --
214 -- Testing ftruncate() with file opening using a mode --
215 -- Testing ftruncate(): truncate file to half of its current size --
222 -- Testing ftruncate() with file opening using ab mode --
223 -- Testing ftruncate(): truncate file to half of its current size --
230 -- Testing ftruncate() with file opening using at mode --
231 -- Testing ftruncate(): truncate file to half of its current size --
238 -- Testing ftruncate() with file opening using a+ mode --
239 -- Testing ftruncate(): truncate file to half of its current size --
246 -- Testing ftruncate() with file opening using a+b mode --
247 -- Testing ftruncate(): truncate file to half of its current size --
254 -- Testing ftruncate() with file opening using a+t mode --
255 -- Testing ftruncate(): truncate file to half of its current size --
263 -- Testing ftruncate() with file having data of type text_with_new_line --
264 -- Testing ftruncate() with file opening using r mode --
265 -- Testing ftruncate(): truncate file to half of its current size --
272 -- Testing ftruncate() with file opening using rb mode --
273 -- Testing ftruncate(): truncate file to half of its current size --
280 -- Testing ftruncate() with file opening using rt mode --
281 -- Testing ftruncate(): truncate file to half of its current size --
288 -- Testing ftruncate() with file opening using r+ mode --
289 -- Testing ftruncate(): truncate file to half of its current size --
296 -- Testing ftruncate() with file opening using r+b mode --
297 -- Testing ftruncate(): truncate file to half of its current size --
304 -- Testing ftruncate() with file opening using r+t mode --
305 -- Testing ftruncate(): truncate file to half of its current size --
312 -- Testing ftruncate() with file opening using w mode --
313 -- Testing ftruncate(): truncate file to half of its current size --
320 -- Testing ftruncate() with file opening using wb mode --
321 -- Testing ftruncate(): truncate file to half of its current size --
328 -- Testing ftruncate() with file opening using wt mode --
329 -- Testing ftruncate(): truncate file to half of its current size --
336 -- Testing ftruncate() with file opening using w+ mode --
337 -- Testing ftruncate(): truncate file to half of its current size --
344 -- Testing ftruncate() with file opening using w+b mode --
345 -- Testing ftruncate(): truncate file to half of its current size --
352 -- Testing ftruncate() with file opening using w+t mode --
353 -- Testing ftruncate(): truncate file to half of its current size --
360 -- Testing ftruncate() with file opening using x mode --
361 -- Testing ftruncate(): truncate file to half of its current size --
368 -- Testing ftruncate() with file opening using xb mode --
369 -- Testing ftruncate(): truncate file to half of its current size --
376 -- Testing ftruncate() with file opening using xt mode --
377 -- Testing ftruncate(): truncate file to half of its current size --
384 -- Testing ftruncate() with file opening using x+ mode --
385 -- Testing ftruncate(): truncate file to half of its current size --
392 -- Testing ftruncate() with file opening using x+b mode --
393 -- Testing ftruncate(): truncate file to half of its current size --
400 -- Testing ftruncate() with file opening using x+t mode --
401 -- Testing ftruncate(): truncate file to half of its current size --
408 -- Testing ftruncate() with file opening using a mode --
409 -- Testing ftruncate(): truncate file to half of its current size --
416 -- Testing ftruncate() with file opening using ab mode --
417 -- Testing ftruncate(): truncate file to half of its current size --
424 -- Testing ftruncate() with file opening using at mode --
425 -- Testing ftruncate(): truncate file to half of its current size --
432 -- Testing ftruncate() with file opening using a+ mode --
433 -- Testing ftruncate(): truncate file to half of its current size --
440 -- Testing ftruncate() with file opening using a+b mode --
441 -- Testing ftruncate(): truncate file to half of its current size --
448 -- Testing ftruncate() with file opening using a+t mode --
449 -- Testing ftruncate(): truncate file to half of its current size --