Lines Matching refs:ftruncate
2 Test ftruncate() function : usage variations - truncate when file pointer at EOF
15 echo "*** Testing ftruncate() : usage variations ***\n";
17 /* test ftruncate with file opened in different modes */
26 echo "\n-- Testing ftruncate() with file having data of type ". $file_content_type ." --\n";
29 echo "-- Testing ftruncate() with file opening using $file_modes[$mode_counter] mode --\n";
49 echo "-- Testing ftruncate(): File pointer at the end --\n";
55 var_dump( ftruncate($file_handle, $new_size) ); // truncate it
69 *** Testing ftruncate() : usage variations ***
71 -- Testing ftruncate() with file having data of type numeric --
72 -- Testing ftruncate() with file opening using r mode --
73 -- Testing ftruncate(): File pointer at the end --
80 -- Testing ftruncate() with file opening using rb mode --
81 -- Testing ftruncate(): File pointer at the end --
88 -- Testing ftruncate() with file opening using rt mode --
89 -- Testing ftruncate(): File pointer at the end --
96 -- Testing ftruncate() with file opening using r+ mode --
97 -- Testing ftruncate(): File pointer at the end --
104 -- Testing ftruncate() with file opening using r+b mode --
105 -- Testing ftruncate(): File pointer at the end --
112 -- Testing ftruncate() with file opening using r+t mode --
113 -- Testing ftruncate(): File pointer at the end --
120 -- Testing ftruncate() with file opening using w mode --
121 -- Testing ftruncate(): File pointer at the end --
128 -- Testing ftruncate() with file opening using wb mode --
129 -- Testing ftruncate(): File pointer at the end --
136 -- Testing ftruncate() with file opening using wt mode --
137 -- Testing ftruncate(): File pointer at the end --
144 -- Testing ftruncate() with file opening using w+ mode --
145 -- Testing ftruncate(): File pointer at the end --
152 -- Testing ftruncate() with file opening using w+b mode --
153 -- Testing ftruncate(): File pointer at the end --
160 -- Testing ftruncate() with file opening using w+t mode --
161 -- Testing ftruncate(): File pointer at the end --
168 -- Testing ftruncate() with file opening using x mode --
169 -- Testing ftruncate(): File pointer at the end --
176 -- Testing ftruncate() with file opening using xb mode --
177 -- Testing ftruncate(): File pointer at the end --
184 -- Testing ftruncate() with file opening using xt mode --
185 -- Testing ftruncate(): File pointer at the end --
192 -- Testing ftruncate() with file opening using x+ mode --
193 -- Testing ftruncate(): File pointer at the end --
200 -- Testing ftruncate() with file opening using x+b mode --
201 -- Testing ftruncate(): File pointer at the end --
208 -- Testing ftruncate() with file opening using x+t mode --
209 -- Testing ftruncate(): File pointer at the end --
216 -- Testing ftruncate() with file opening using a mode --
217 -- Testing ftruncate(): File pointer at the end --
224 -- Testing ftruncate() with file opening using ab mode --
225 -- Testing ftruncate(): File pointer at the end --
232 -- Testing ftruncate() with file opening using at mode --
233 -- Testing ftruncate(): File pointer at the end --
240 -- Testing ftruncate() with file opening using a+ mode --
241 -- Testing ftruncate(): File pointer at the end --
248 -- Testing ftruncate() with file opening using a+b mode --
249 -- Testing ftruncate(): File pointer at the end --
256 -- Testing ftruncate() with file opening using a+t mode --
257 -- Testing ftruncate(): File pointer at the end --
265 -- Testing ftruncate() with file having data of type text_with_new_line --
266 -- Testing ftruncate() with file opening using r mode --
267 -- Testing ftruncate(): File pointer at the end --
274 -- Testing ftruncate() with file opening using rb mode --
275 -- Testing ftruncate(): File pointer at the end --
282 -- Testing ftruncate() with file opening using rt mode --
283 -- Testing ftruncate(): File pointer at the end --
290 -- Testing ftruncate() with file opening using r+ mode --
291 -- Testing ftruncate(): File pointer at the end --
298 -- Testing ftruncate() with file opening using r+b mode --
299 -- Testing ftruncate(): File pointer at the end --
306 -- Testing ftruncate() with file opening using r+t mode --
307 -- Testing ftruncate(): File pointer at the end --
314 -- Testing ftruncate() with file opening using w mode --
315 -- Testing ftruncate(): File pointer at the end --
322 -- Testing ftruncate() with file opening using wb mode --
323 -- Testing ftruncate(): File pointer at the end --
330 -- Testing ftruncate() with file opening using wt mode --
331 -- Testing ftruncate(): File pointer at the end --
338 -- Testing ftruncate() with file opening using w+ mode --
339 -- Testing ftruncate(): File pointer at the end --
346 -- Testing ftruncate() with file opening using w+b mode --
347 -- Testing ftruncate(): File pointer at the end --
354 -- Testing ftruncate() with file opening using w+t mode --
355 -- Testing ftruncate(): File pointer at the end --
362 -- Testing ftruncate() with file opening using x mode --
363 -- Testing ftruncate(): File pointer at the end --
370 -- Testing ftruncate() with file opening using xb mode --
371 -- Testing ftruncate(): File pointer at the end --
378 -- Testing ftruncate() with file opening using xt mode --
379 -- Testing ftruncate(): File pointer at the end --
386 -- Testing ftruncate() with file opening using x+ mode --
387 -- Testing ftruncate(): File pointer at the end --
394 -- Testing ftruncate() with file opening using x+b mode --
395 -- Testing ftruncate(): File pointer at the end --
402 -- Testing ftruncate() with file opening using x+t mode --
403 -- Testing ftruncate(): File pointer at the end --
410 -- Testing ftruncate() with file opening using a mode --
411 -- Testing ftruncate(): File pointer at the end --
418 -- Testing ftruncate() with file opening using ab mode --
419 -- Testing ftruncate(): File pointer at the end --
426 -- Testing ftruncate() with file opening using at mode --
427 -- Testing ftruncate(): File pointer at the end --
434 -- Testing ftruncate() with file opening using a+ mode --
435 -- Testing ftruncate(): File pointer at the end --
442 -- Testing ftruncate() with file opening using a+b mode --
443 -- Testing ftruncate(): File pointer at the end --
450 -- Testing ftruncate() with file opening using a+t mode --
451 -- Testing ftruncate(): File pointer at the end --