Home
last modified time | relevance | path

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

1234

/glibc-2.36/scripts/
Dcheck-obsolete-constructs.py390 def ObsoleteTypedefChecker(reporter, fname): argument
398 if (fname.startswith("rpc/")
399 or fname.startswith("rpcsvc/")
400 or "/rpc/" in fname
401 or "/rpcsvc/" in fname):
406 if (fname == "bits/types.h"
407 or fname.endswith("/bits/types.h")):
412 if (fname == "sys/types.h"
413 or fname.endswith("/sys/types.h")):
427 self.fname = None
[all …]
/glibc-2.36/sysdeps/pthread/
Dtst-umask1.c42 work (const char *fname, int mask) in work() argument
48 remove (fname); in work()
49 int fd = fcts[i].fp (fname, 0777); in work()
52 printf ("cannot %s %s: %m\n", fcts[i].name, fname); in work()
58 if (stat64 (fname, &st) == -1) in work()
60 printf ("cannot stat %s after %s: %m\n", fname, fcts[i].name); in work()
95 do_test (const char *fname) in do_test() argument
100 result |= work (fname, 0); in do_test()
105 if (pthread_create (&th, NULL, tf, (void *) fname) != 0) in do_test()
112 result |= work (fname, 022); in do_test()
[all …]
Dtst-cancel4.c87 char fname[] = "/tmp/tst-cancel4-fd-XXXXXX"; in tf_read() local
88 tempfd = fd = mkstemp (fname); in tf_read()
91 unlink (fname); in tf_read()
119 char fname[] = "/tmp/tst-cancel4-fd-XXXXXX"; in tf_readv() local
120 tempfd = fd = mkstemp (fname); in tf_readv()
123 unlink (fname); in tf_readv()
152 char fname[] = "/tmp/tst-cancel4-fd-XXXXXX"; in tf_write() local
153 tempfd = fd = mkstemp (fname); in tf_write()
156 unlink (fname); in tf_write()
189 char fname[] = "/tmp/tst-cancel4-fd-XXXXXX"; in tf_writev() local
[all …]
Dtst-cancel19.c170 char fname[] = "/tmp/tst-cancel19-dir-XXXXXX\0foo/bar"; in do_test() local
171 char *enddir = strchr (fname, '\0'); in do_test()
172 if (mkdtemp (fname) == NULL) in do_test()
180 creat (fname, 0400); in do_test()
196 creat (fname, 0400); in do_test()
212 open (fname, O_CREAT, 0400); in do_test()
228 open (fname, O_CREAT, 0400); in do_test()
244 rmdir (fname); in do_test()
/glibc-2.36/io/
Dbug-ftw2.c32 callback (const char *fname, const struct stat *st, int flag) in callback() argument
34 printf ("%d: \"%s\" -> ", ++cnt, fname); in callback()
35 if (strcmp (fname, ".") == 0 && sawcur) in callback()
40 else if (strcmp (fname, "./bug-ftw2.c") == 0 && sawown) in callback()
45 else if (fname[0] != '.') in callback()
50 else if (fname[1] != '\0' && fname[1] != '/') in callback()
58 sawcur |= strcmp (fname, ".") == 0; in callback()
59 sawown |= strcmp (fname, "./bug-ftw2.c") == 0; in callback()
Dbug-ftw1.c31 callback (const char *fname, const struct stat *st, int flag) in callback() argument
36 printf ("%d: \"%s\" -> ", cnt, fname); in callback()
37 if (strcmp (fname, "/") == 0 && sawroot) in callback()
42 else if (fname[0] != '/') in callback()
47 else if (fname[1] == '/') in callback()
55 sawroot |= strcmp (fname, "/") == 0; in callback()
/glibc-2.36/libio/
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()
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()
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()
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()
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()
/glibc-2.36/catgets/
Dgencat.c55 const char *fname; member
70 const char *fname; member
144 const char *fname);
148 static void normalize_line (const char *fname, size_t line, iconv_t cd,
264 read_input_file (struct catalog *current, const char *fname) in read_input_file() argument
277 if (strcmp (fname, "-") == 0 || strcmp (fname, "/dev/stdin") == 0) in read_input_file()
280 fname = gettext ("*standard input*"); in read_input_file()
283 fp = fopen (fname, "r"); in read_input_file()
286 error (0, errno, gettext ("cannot open input file `%s'"), fname); in read_input_file()
414 error_at_line (0, 0, fname, start_line, in read_input_file()
[all …]
/glibc-2.36/dirent/
Dtst-fdopendir.c17 char fname[] = "/tmp/jXXXXXX"; in do_test() local
18 int fd = mkstemp (fname); in do_test()
29 if (stat64 (fname, &st) == -1) in do_test()
38 fd = open (fname, O_RDONLY | O_NOATIME); in do_test()
50 if (stat64 (fname, &st2) == -1) in do_test()
68 unlink(fname); in do_test()
70 strcpy(fname, "/tmp/dXXXXXX"); in do_test()
71 char *d = mkdtemp (fname); in do_test()
121 rmdir(fname); in do_test()
/glibc-2.36/elf/
Dtst-tls-manydynamic.c61 char fname[100]; in init_functions() local
62 snprintf (fname, sizeof (fname), "set_value_%02d", i); in init_functions()
63 void *func = dlsym (handles[i], fname); in init_functions()
74 char fname[100]; in init_functions() local
75 snprintf (fname, sizeof (fname), "get_value_%02d", i); in init_functions()
76 void *func = dlsym (handles[i], fname); in init_functions()
/glibc-2.36/posix/
Dtst-glob_symlinks.c42 create_link (const char *base, const char *fname, char *linkname, in create_link() argument
50 if (symlink (fname, linkname) == 0) in create_link()
70 char *fname; in do_prepare() local
72 create_temp_file ("tst-glob_symlinks.", &fname); in do_prepare()
75 create_link ("valid-symlink-tst-glob_symlinks", fname, valid_link, in do_prepare()
79 int fd = create_temp_file ("dangling-tst-glob_file", &fname); in do_prepare()
83 TEST_VERIFY_EXIT (unlink (fname) == 0); in do_prepare()
84 create_link ("dangling-symlink-file-tst-glob", fname, dangling_link, in do_prepare()
Dtst-mmap-offset.c33 static char fname[] = "/tmp/tst-mmap-offset-XXXXXX"; variable
38 fd = mkstemp64 (fname); in do_prepare()
42 if (unlink (fname)) in do_prepare()
73 memcpy (addr, fname, sizeof (fname)); in do_test_bz18877()
Dtst-execvp3.c19 static char *fname; variable
24 int fd = create_temp_file ("testscript", &fname); in do_prepare()
40 char *argv[] = { fname, NULL }; in do_test()
41 EXECVP (basename (fname), argv); in do_test()
/glibc-2.36/stdio-common/
Dtst-rndseek.c7 static char fname[] = "/tmp/rndseek.XXXXXX"; variable
72 fd = mkstemp (fname); in do_test()
79 add_temp_file (fname); in do_test()
126 fp = fopen (fname, "r"); in do_test()
129 fp = fopen64 (fname, "r"); in do_test()
136 fp = fopen (fname, "rw"); in do_test()
139 fp = fopen64 (fname, "rw"); in do_test()
Dscanf15.c70 char fname[strlen (tmpdir) + sizeof "/tst-scanf15.XXXXXX"]; in main() local
71 sprintf (fname, "%s/tst-scanf15.XXXXXX", tmpdir); in main()
74 int fd = mkstemp (fname); in main()
92 if (freopen (fname, "r", stdin) == NULL) in main()
105 remove (fname); in main()
/glibc-2.36/locale/programs/
Dlocarchive.c123 char fname[strlen (archivefname) + sizeof (".XXXXXX")]; in create_archive() local
127 strcpy (stpcpy (fname, archivefname), ".XXXXXX"); in create_archive()
130 fd = mkstemp (fname); in create_archive()
132 error (EXIT_FAILURE, errno, _("cannot create temporary file: %s"), fname); in create_archive()
165 unlink (fname); in create_archive()
172 unlink (fname); in create_archive()
187 unlink (fname); in create_archive()
194 if (link (fname, archivefname) == -1) in create_archive()
200 unlink (fname); in create_archive()
214 unlink (fname); in create_archive()
[all …]
Dlocfile.c345 ah.fname = NULL; in write_all_categories()
703 char *fname; in write_locale_data() local
747 fname = xmalloc (strlen (output_path) + 2 * strlen (category) + 7); in write_locale_data()
753 sprintf (fname, "%s%s", output_path, category); in write_locale_data()
759 if (stat64 (fname, &st) < 0) in write_locale_data()
761 if (mkdir (fname, 0777) >= 0) in write_locale_data()
779 unlink (fname); in write_locale_data()
780 fd = creat (fname, 0666); in write_locale_data()
789 sprintf (fname, "%1$s%2$s/SYS_%2$s", output_path, category); in write_locale_data()
790 unlink (fname); in write_locale_data()
[all …]
/glibc-2.36/support/
Dtemp_file.c81 char *fname; in create_temp_file_in_dir() local
84 fname = xasprintf ("%s/%sXXXXXX", dir, base); in create_temp_file_in_dir()
86 fd = mkstemp (fname); in create_temp_file_in_dir()
89 printf ("cannot open temporary file '%s': %m\n", fname); in create_temp_file_in_dir()
90 free (fname); in create_temp_file_in_dir()
94 add_temp_file (fname); in create_temp_file_in_dir()
96 *filename = fname; in create_temp_file_in_dir()
98 free (fname); in create_temp_file_in_dir()
/glibc-2.36/resolv/
Dres_hconf.c102 arg_trimdomain_list (const char *fname, int line_num, const char *args) in arg_trimdomain_list() argument
119 fname, line_num, TRIMDOMAINS_MAX) < 0) in arg_trimdomain_list()
140 fname, line_num) < 0) in arg_trimdomain_list()
158 arg_bool (const char *fname, int line_num, const char *args, unsigned flag) in arg_bool() argument
176 fname, line_num, args) < 0) in arg_bool()
189 parse_line (const char *fname, int line_num, const char *str) in parse_line() argument
219 fname, line_num, start) < 0) in parse_line()
232 str = arg_trimdomain_list (fname, line_num, str); in parse_line()
234 str = arg_bool (fname, line_num, str, c->arg); in parse_line()
252 fname, line_num, str) < 0) in parse_line()
/glibc-2.36/dlfcn/
Dtstatexit.c26 const char fname[] = "modatexit.so"; in main() local
31 h = dlopen (fname, RTLD_NOW); in main()
34 printf ("cannot open \"%s\": %s\n", fname, dlerror ()); in main()
49 printf ("cannot close \"%s\": %s\n", fname, dlerror ()); in main()
Dtstcxaatexit.c25 const char fname[] = "modcxaatexit.so"; in main() local
30 h = dlopen (fname, RTLD_LAZY); in main()
33 printf ("cannot open \"%s\": %s\n", fname, dlerror ()); in main()
48 printf ("cannot close \"%s\": %s\n", fname, dlerror ()); in main()

1234