Lines Matching refs:filename

34 #define get_handles_fdopen(filename, fd, fp, fd_mode, mode) \  argument
37 (fd) = open ((filename), (fd_mode), 0); \
56 #define get_handles_fopen(filename, fd, fp, mode) \ argument
59 (fp) = fopen ((filename), (mode)); \
98 do_ftruncate_test (const char *filename) in do_ftruncate_test() argument
125 fileret = get_handles_fopen (filename, fd, fp, test_modes[i].mode); in do_ftruncate_test()
127 fileret = get_handles_fdopen (filename, fd, fp, in do_ftruncate_test()
184 do_rewind_test (const char *filename) in do_rewind_test() argument
206 FILE *fp = fopen (filename, "w"); in do_rewind_test()
226 fileret = get_handles_fdopen (filename, fd, fp, in do_rewind_test()
230 fileret = get_handles_fopen (filename, fd, fp, test_modes[i].mode); in do_rewind_test()
286 do_ftell_test (const char *filename) in do_ftell_test() argument
324 fileret = get_handles_fdopen (filename, fd, fp, in do_ftell_test()
328 fileret = get_handles_fopen (filename, fd, fp, test_modes[i].mode); in do_ftell_test()
404 do_write_test (const char *filename) in do_write_test() argument
428 fileret = get_handles_fopen (filename, fd, fp, test_modes[i].mode); in do_write_test()
430 fileret = get_handles_fdopen (filename, fd, fp, in do_write_test()
480 do_append_test (const char *filename) in do_append_test() argument
505 fileret = get_handles_fopen (filename, fd, fp, test_modes[i].mode); in do_append_test()
507 fileret = get_handles_fdopen (filename, fd, fp, in do_append_test()
544 fd = open (filename, O_WRONLY | O_APPEND, 0); in do_append_test()
601 do_one_test (const char *filename) in do_one_test() argument
605 ret |= do_ftell_test (filename); in do_one_test()
606 ret |= do_write_test (filename); in do_one_test()
607 ret |= do_append_test (filename); in do_one_test()
608 ret |= do_rewind_test (filename); in do_one_test()
609 ret |= do_ftruncate_test (filename); in do_one_test()
620 char *filename; in do_test() local
622 int fd = create_temp_file ("tst-active-handler-tmp.", &filename); in do_test()
659 ret |= do_one_test (filename); in do_test()
662 fp = fopen (filename, "w"); in do_test()
681 ret |= do_one_test (filename); in do_test()