Home
last modified time | relevance | path

Searched refs:filename (Results 1 – 25 of 150) sorted by relevance

123456

/glibc-2.36/libio/
Dtst-ftell-active-handler.c34 #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()
[all …]
Dtst-ftell-append.c55 init_file (const char *filename) in init_file() argument
57 FILE *fp = fopen (filename, "w"); in init_file()
77 fp = fopen (filename, "a+"); in init_file()
88 do_one_test (const char *filename) in do_one_test() argument
90 FILE *fp = init_file (filename); in do_one_test()
134 char *filename; in do_test() local
135 int fd = create_temp_file ("tst-ftell-append-tmp.", &filename); in do_test()
152 ret |= do_one_test (filename); in do_test()
166 ret |= do_one_test (filename); in do_test()
Diofopen.c56 __fopen_internal (const char *filename, const char *mode, int is32) in __fopen_internal() argument
75 if (_IO_file_fopen ((FILE *) new_f, filename, mode, is32) != NULL) in __fopen_internal()
84 _IO_new_fopen (const char *filename, const char *mode) in _IO_new_fopen() argument
86 return __fopen_internal (filename, mode, 1); in _IO_new_fopen()
/glibc-2.36/stdlib/
Dtst-canon-bz26341.c33 static char *filename; variable
44 int fd = create_temp_file ("tst-canon-bz26341", &filename); in create_link()
49 char *saved_filename = filename; in create_link()
50 filename = realpath (filename, NULL); in create_link()
52 TEST_VERIFY (filename != NULL); in create_link()
56 char *prevlink = filename; in create_link()
60 linkname = xasprintf ("%s%d", filename, i); in create_link()
66 filenamelen = strlen (filename); in create_link()
91 TEST_COMPARE_BLOB (resolved, filenamelen, filename, filenamelen); in do_realpath()
Dxpg_basename.c24 __xpg_basename (char *filename) in __xpg_basename() argument
28 if (filename == NULL || filename[0] == '\0') in __xpg_basename()
33 p = strrchr (filename, '/'); in __xpg_basename()
37 p = filename; in __xpg_basename()
43 while (p > filename && p[-1] == '/') in __xpg_basename()
51 if (p > filename) in __xpg_basename()
54 while (p > filename && p[-1] != '/') in __xpg_basename()
Dtst-empty-env.c36 char *filename = program_invocation_name; in do_test() local
37 char *newargv[] = {filename, filename, NULL}; in do_test()
47 int ret = execve (filename, newargv, newenviron); in do_test()
Dtst-setcontext3.c37 static char *filename; variable
53 fd = open (filename, O_WRONLY | O_CREAT, S_IRUSR | S_IWUSR); in exit_called()
56 printf ("FAIL: Unable to create test file %s\n", filename); in exit_called()
97 filename = argv[1]; in do_test()
/glibc-2.36/sysdeps/unix/sysv/linux/
Dlddlibc4.c41 const char *filename; in main() local
75 filename = argv[1]; in main()
78 fp = fopen (filename, "rb"); in main()
80 error (2, errno, gettext ("cannot open `%s'"), filename); in main()
84 error (2, errno, gettext ("cannot read header from `%s'"), filename); in main()
95 filename_len = strlen (filename); in main()
98 filename, filename_len + 1); in main()
103 return execv (filename, &argv[argc]) ? 4 : 0; in main()
/glibc-2.36/iconvdata/
Drun-iconv-test.sh145 while read utf8 from filename; do
147 if test -z "$filename" || test "$utf8" = '#'; then continue; fi
154 $PROG -f $utf8 -t $from < testdata/${filename}..${utf8} > $temp1
155 LC_ALL=C cmp $temp1 testdata/${filename}..${from}.BE > /dev/null 2>&1 ||
156 LC_ALL=C cmp $temp1 testdata/${filename}..${from}.LE > /dev/null 2>&1 ||
162 $PROG -f $from -t $utf8 < testdata/${filename}..${from}.BE > $temp1
163 LC_ALL=C cmp $temp1 testdata/${filename}..${utf8} > /dev/null 2>&1 ||
165 $PROG -f $from -t $utf8 < testdata/${filename}..${from}.LE > $temp1
166 LC_ALL=C cmp $temp1 testdata/${filename}..${utf8} > /dev/null 2>&1 ||
172 $PROG -f ${from}BE -t ${from}LE < testdata/${filename}..${from}.BE > $temp1
[all …]
/glibc-2.36/benchtests/
Dbench-strcoll.c63 read_file (const char *filename) in read_file() argument
67 int fd = open (filename, O_CLOEXEC); in read_file()
215 bench_file (json_ctx_t *json_ctx, const char *testname, const char *filename, in bench_file() argument
221 char *text = read_file (filename); in bench_file()
256 char *filename; in main() local
257 asprintf (&filename, INPUT_PREFIX "%s", input_files[i]); in main()
258 result = bench_file (json_ctx, input_files[i], filename, locale + 1); in main()
265 printf ("Failed to read file %s, aborting!\n", filename); in main()
266 free (filename); in main()
269 free (filename); in main()
/glibc-2.36/math/
Dgen-auto-libm-tests.c1147 const char *filename, unsigned int lineno) in handle_input_arg() argument
1180 error_at_line (EXIT_FAILURE, 0, filename, lineno, in handle_input_arg()
1242 error_at_line (EXIT_FAILURE, 0, filename, lineno, in handle_input_arg()
1250 error_at_line (EXIT_FAILURE, 0, filename, lineno, in handle_input_arg()
1255 error_at_line (EXIT_FAILURE, 0, filename, lineno, "too many input cases"); in handle_input_arg()
1287 const char *filename, unsigned int lineno) in handle_input_flag() argument
1308 error_at_line (EXIT_FAILURE, 0, filename, lineno, "unknown flag: '%s'", in handle_input_flag()
1321 add_test (char *line, const char *filename, unsigned int lineno) in add_test() argument
1331 error_at_line (EXIT_FAILURE, 0, filename, lineno, in add_test()
1342 error_at_line (EXIT_FAILURE, 0, filename, lineno, in add_test()
[all …]
/glibc-2.36/stdio-common/
Dtest_rdwr.c30 char filename[FILENAME_MAX]; in main() local
41 (void) sprintf (filename, OBJPFX "%s.test", name); in main()
43 f = fopen (filename, "w+"); in main()
46 perror (filename); in main()
120 printf ("Test FAILED! Losing file is \"%s\".\n", filename); in main()
123 (void) remove (filename); in main()
Dbug7.c11 char filename[] = "/tmp/bug7.XXXXXX"; in main() local
14 int fd = mkstemp (filename); in main()
23 fp = fopen (filename, "w+"); in main()
33 remove (filename); in main()
Dbug4.c13 const char filename[] = OBJPFX "bug4.test"; in main() local
26 f = fopen (filename, "w+"); in main()
36 remove (filename); in main()
Dbug3.c9 const char filename[] = OBJPFX "bug3.test"; in main() local
11 f = fopen(filename, "w+"); in main()
48 remove(filename); in main()
/glibc-2.36/posix/
Dtst-pathconf.c72 char *filename = xmalloc (filenamelen); in do_test() local
74 snprintf (filename, filenamelen, "%s/%s", dirbuf, fifo_name); in do_test()
77 int e = mkfifo (filename, 0777); in do_test()
94 long fifo_pathconf = pathconf (filename, _PC_PIPE_BUF); in do_test()
103 int fifo = open (filename, O_RDONLY | O_NONBLOCK); in do_test()
159 if (unlink (filename) != 0) in do_test()
Dglob.c254 is_dir (char const *filename, int flags, glob_t const *pglob) in is_dir() argument
259 ? pglob->gl_stat (filename, &st) == 0 && S_ISDIR (st.st_mode) in is_dir()
260 : (GLOB_FSTATAT64 (AT_FDCWD, filename, &st64, 0) == 0 in is_dir()
305 const char *filename; in __glob() local
489 filename = strrchr (pattern, '/'); in __glob()
496 if (filename == NULL) in __glob()
497 filename = strchr (pattern, ':'); in __glob()
501 if (filename == NULL) in __glob()
513 filename = NULL; in __glob()
523 filename = pattern; in __glob()
[all …]
/glibc-2.36/locale/programs/
Drepertoire.c55 repertoire_read (const char *filename) in repertoire_read() argument
66 search.name = filename; in repertoire_read()
72 repfile = lr_open (filename, repertoiremap_hash); in repertoire_read()
75 if (strchr (filename, '/') == NULL) in repertoire_read()
82 char path[strlen (filename) + 1 + pathlen in repertoire_read()
91 filename); in repertoire_read()
97 stpcpy (stpcpy (stpcpy (path, next), "/"), filename); in repertoire_read()
107 char *buf = xmalloc (strlen (filename) + 1 in repertoire_read()
111 filename); in repertoire_read()
129 result->name = xstrdup (filename); in repertoire_read()
Dcharmap-dir.c92 char *filename; in charmap_readdir() local
116 filename = cdir->pathname + cdir->directory_len; in charmap_readdir()
135 if (len > 3 && memcmp (&filename[len - 3], ".gz", 3) == 0) in charmap_readdir()
136 filename[len - 3] = '\0'; in charmap_readdir()
137 else if (len > 4 && memcmp (&filename[len - 4], ".bz2", 4) == 0) in charmap_readdir()
138 filename[len - 4] = '\0'; in charmap_readdir()
140 return filename; in charmap_readdir()
Dcharmap.c88 charmap_read (const char *filename, int verbose, int error_not_found, in charmap_read() argument
93 if (filename != NULL) in charmap_read()
98 cmfile = lr_open (filename, charmap_hash); in charmap_read()
103 if (strchr (filename, '/') == NULL) in charmap_read()
118 cmfile = cmlr_open (path, filename, charmap_hash); in charmap_read()
122 cmfile = cmlr_open (next, filename, charmap_hash); in charmap_read()
128 cmfile = cmlr_open (CHARMAP_PATH, filename, charmap_hash); in charmap_read()
138 filename); in charmap_read()
141 if (result == NULL && filename != NULL && strchr (filename, '/') == NULL) in charmap_read()
162 if (strcasecmp (*p, filename) == 0) in charmap_read()
[all …]
/glibc-2.36/intl/
Dl10nflist.c156 const char *filename, int do_allocate) in _nl_make_l10nflist() argument
176 + 1 + strlen (filename) + 1); in _nl_make_l10nflist()
213 stpcpy (cp, filename); in _nl_make_l10nflist()
219 if (retval->filename != NULL) in _nl_make_l10nflist()
221 int compare = strcmp (retval->filename, abs_filename); in _nl_make_l10nflist()
251 retval->filename = abs_filename; in _nl_make_l10nflist()
287 normalized_codeset, modifier, filename, 1); in _nl_make_l10nflist()
/glibc-2.36/localedata/unicode-gen/
Dunicode_utils.py105 def fill_attributes(filename): argument
119 with open(filename, mode='r') as unicode_data_file:
126 'f': filename, 'l': line})
142 'f': filename, 'l': line})
153 def fill_derived_core_properties(filename): argument
167 with open(filename, mode='r') as derived_core_properties_file:
187 def fill_east_asian_widths(filename): argument
200 with open(filename, mode='r') as east_asian_widths_file:
/glibc-2.36/grp/
Dtst_fgetgrent.c46 write_group (const char *filename, int pos) in write_group() argument
50 f = fopen (filename, "w"); in write_group()
82 test_fgetgrent (const char *filename) in test_fgetgrent() argument
87 f = fopen (filename,"r"); in test_fgetgrent()
/glibc-2.36/string/
Dbasename.c22 __basename (const char *filename) in __basename() argument
24 char *p = strrchr (filename, '/'); in __basename()
25 return p ? p + 1 : (char *) filename; in __basename()
/glibc-2.36/support/
Dtemp_file.c79 create_temp_file_in_dir (const char *base, const char *dir, char **filename) in create_temp_file_in_dir() argument
95 if (filename != NULL) in create_temp_file_in_dir()
96 *filename = fname; in create_temp_file_in_dir()
104 create_temp_file (const char *base, char **filename) in create_temp_file() argument
106 return create_temp_file_in_dir (base, test_dir, filename); in create_temp_file()

123456