Home
last modified time | relevance | path

Searched refs:fname (Results 1 – 8 of 8) sorted by relevance

/libio/
A Dbug-ungetwc2.c15 char *fname; variable
32 fname = (char *) malloc (strlen (test_dir) + sizeof "/bug-ungetwc2.XXXXXX"); in do_test()
33 if (fname == NULL) in do_test()
38 strcpy (stpcpy (fname, test_dir), "/bug-ungetwc2.XXXXXX"); in do_test()
39 fd = mkstemp (fname); in do_test()
45 add_temp_file (fname); in do_test()
59 fprintf (stderr, "Cannot make `%s' file.\n", fname); in do_test()
66 fp = fopen (fname, "r"); in do_test()
70 error (EXIT_FAILURE, errno, "cannot open %s", fname); in do_test()
73 printf ("%s is opened.\n", fname); in do_test()
A Dbug-ungetwc1.c10 char *fname; variable
26 fname = (char *) malloc (strlen (test_dir) + sizeof "/bug-ungetwc1.XXXXXX"); in do_test()
27 if (fname == NULL) in do_test()
32 strcpy (stpcpy (fname, test_dir), "/bug-ungetwc1.XXXXXX"); in do_test()
33 fd = mkstemp (fname); in do_test()
39 add_temp_file (fname); in do_test()
46 fprintf (stderr, "Cannot make `%s' file\n", fname); in do_test()
54 fp = fopen (fname, "r"); in do_test()
A Dtst-ext2.c5 static char *fname; variable
9 int fd = create_temp_file ("tst-ext2", &fname); \
26 fp = fopen (fname, "w"); in do_test()
33 fp = fopen (fname, "r"); in do_test()
40 fp = fopen (fname, "r+"); in do_test()
47 fp = fopen (fname, "w+"); in do_test()
A Dbug-mmap-fflush.c8 static char *fname; variable
22 int fd = create_temp_file ("bug-mmap-fflush.", &fname); in prepare()
37 snprintf (buffer, sizeof (buffer), "echo 'From foo@bar.com' > %s", fname); in do_test()
39 f = fopen (fname, "r"); in do_test()
44 snprintf (buffer, sizeof (buffer), "echo 'From bar@baz.edu' >> %s", fname); in do_test()
A Dbug-fseek.c7 static char *fname; variable
21 int fd = create_temp_file ("bug-fseek.", &fname); in do_prepare()
46 if ((f = fopen (fname, "r")) == (FILE *) NULL) in do_test()
70 if ((f = fopen (fname, "r+")) == (FILE *) NULL) in do_test()
94 if ((f = fopen (fname, "r+")) == (FILE *) NULL) in do_test()
A Dtst-ungetwc1.c16 char fname[] = "/tmp/tst-ungetwc1.out.XXXXXX"; in do_test() local
27 fd = mkstemp (fname); in do_test()
44 if ((fp = fopen (fname, "r")) == NULL) in do_test()
78 unlink (fname); in do_test()
A Dbug-fopena+.c7 static char *fname; variable
22 fd = create_temp_file ("wrewind.", &fname); in prepare()
50 fp = fopen (fname, "a+"); in do_test()
71 fd = open (fname, O_RDWR); in do_test()
A Dtst-ungetwc2.c16 char fname[] = "/tmp/tst-ungetwc2.out.XXXXXX"; in do_test() local
29 fd = mkstemp (fname); in do_test()
44 if ((fp = fopen (fname, "r")) == NULL) in do_test()
78 unlink (fname); in do_test()

Completed in 11 milliseconds