Home
last modified time | relevance | path

Searched refs:file_name (Results 1 – 25 of 50) sorted by relevance

12

/glibc-2.36/hurd/
Dhurdlookup.c48 const char *file_name, int flags, mode_t mode, in __hurd_file_name_lookup() argument
58 return lookup_error ((*lookup) (startdir, file_name, flags, mode, in __hurd_file_name_lookup()
65 if (file_name[0] == '\0') in __hurd_file_name_lookup()
68 startport = (file_name[0] == '/') ? INIT_PORT_CRDIR : INIT_PORT_CWDIR; in __hurd_file_name_lookup()
69 while (file_name[0] == '/') in __hurd_file_name_lookup()
70 file_name++; in __hurd_file_name_lookup()
80 size_t len = strlen (file_name); in __hurd_file_name_lookup()
82 file_name = "/"; in __hurd_file_name_lookup()
83 else if (file_name[len - 1] != '/') in __hurd_file_name_lookup()
86 memcpy (n, file_name, len); in __hurd_file_name_lookup()
[all …]
Dlookup-at.c27 const char *file_name, int flags, mode_t mode) in __file_name_lookup_at() argument
39 if (fd == AT_FDCWD || file_name[0] == '/') in __file_name_lookup_at()
40 return __file_name_lookup (file_name, flags, mode); in __file_name_lookup_at()
42 if (empty != 0 && file_name[0] == '\0') in __file_name_lookup_at()
69 file_name, in __file_name_lookup_at()
78 __file_name_split_at (int fd, const char *file_name, char **name) in __file_name_split_at() argument
83 if (fd == AT_FDCWD || file_name[0] == '/') in __file_name_split_at()
84 return __file_name_split (file_name, name); in __file_name_split_at()
87 file_name, &result, name); in __file_name_split_at()
99 file_name, in __file_name_split_at()
Dpath-lookup.c31 file_name_path_scan (const char *file_name, const char *path, in file_name_path_scan() argument
35 if (path == NULL || strchr (file_name, '/')) in file_name_path_scan()
39 return (*fun)(file_name); in file_name_path_scan()
44 size_t file_name_len = strlen (file_name); in file_name_path_scan()
59 memcpy (pfxed_name + pfx_len, file_name, file_name_len + 1); in file_name_path_scan()
96 const char *file_name, const char *path, in __hurd_file_name_path_lookup() argument
106 return file_name_path_scan (file_name, path, scan_lookup, prefixed_name); in __hurd_file_name_path_lookup()
111 file_name_path_lookup (const char *file_name, const char *path, in strong_alias()
118 file_name, path, flags, mode, in strong_alias()
Dlookup-retry.c61 char *file_name; in __hurd_file_name_lookup_retry() local
67 if (file_name[0] == '/' && file_name[1] != '\0') in __hurd_file_name_lookup_retry()
69 while (file_name[1] == '/') in __hurd_file_name_lookup_retry()
71 file_name++; in __hurd_file_name_lookup_retry()
72 if (file_name[1] != '\0') in __hurd_file_name_lookup_retry()
74 file_name++; in __hurd_file_name_lookup_retry()
77 return lookup_error ((*lookup) (startdir, file_name, flags, mode, in __hurd_file_name_lookup_retry()
199 file_name = retryname; in __hurd_file_name_lookup_retry()
214 file_name = &retryname[1]; in __hurd_file_name_lookup_retry()
261 file_name = end + 1; /* Skip the slash. */ in __hurd_file_name_lookup_retry()
[all …]
/glibc-2.36/sysdeps/mach/hurd/
Dgetcwd.c47 char *file_name; in __hurd_canonicalize_directory_name_internal() local
81 file_name = buf; in __hurd_canonicalize_directory_name_internal()
84 file_name = malloc (size); in __hurd_canonicalize_directory_name_internal()
85 if (file_name == NULL) in __hurd_canonicalize_directory_name_internal()
89 file_namep = file_name + size; in __hurd_canonicalize_directory_name_internal()
226 if (file_namep - file_name < d->d_namlen + 1) in __hurd_canonicalize_directory_name_internal()
236 buf = realloc (file_name, size); in __hurd_canonicalize_directory_name_internal()
239 free (file_name); in __hurd_canonicalize_directory_name_internal()
242 file_namep = &buf[file_namep - file_name + size / 2]; in __hurd_canonicalize_directory_name_internal()
243 file_name = buf; in __hurd_canonicalize_directory_name_internal()
[all …]
Dexecveat.c29 __execveat (int dirfd, const char *file_name, char *const argv[], in __execveat() argument
36 file_t file = __file_name_lookup_at (dirfd, flags, file_name, O_EXEC, 0); in __execveat()
40 if (file_name[0] == '/') in __execveat()
43 abs_path = file_name; in __execveat()
70 int res = __asprintf (&concat_name, "%s/%s", cwd, file_name); in __execveat()
83 file_name, abs_path, argv, envp); in __execveat()
/glibc-2.36/elf/
Dreadlib.c74 process_file (const char *real_file_name, const char *file_name, in process_file() argument
93 if (is_link && strstr (file_name, ".so") != NULL) in process_file()
95 error (0, 0, _("Input file %s not found.\n"), file_name); in process_file()
101 error (0, 0, _("Cannot fstat file %s.\n"), file_name); in process_file()
112 error (0, 0, _("File %s is empty, not checked."), file_name); in process_file()
118 error (0, 0, _("File %s is too small, not checked."), file_name); in process_file()
128 error (0, 0, _("Cannot mmap file %s.\n"), file_name); in process_file()
166 && !is_gdb_python_file (file_name)) in process_file()
168 file_name); in process_file()
174 else if (process_elf_file (file_name, lib, flag, isa_level, soname, in process_file()
/glibc-2.36/misc/
Derror.c76 extern void __error_at_line (int status, int errnum, const char *file_name,
283 __error_at_line_internal (int status, int errnum, const char *file_name, in __error_at_line_internal() argument
293 && (file_name == old_file_name in __error_at_line_internal()
295 && file_name != NULL in __error_at_line_internal()
296 && strcmp (old_file_name, file_name) == 0))) in __error_at_line_internal()
301 old_file_name = file_name; in __error_at_line_internal()
328 __fxprintf (NULL, file_name != NULL ? "%s:%d: " : " ", in __error_at_line_internal()
329 file_name, line_number); in __error_at_line_internal()
331 fprintf (stderr, file_name != NULL ? "%s:%d: " : " ", in __error_at_line_internal()
332 file_name, line_number); in __error_at_line_internal()
[all …]
/glibc-2.36/sysdeps/unix/sysv/linux/
Dupdwtmp.c21 #define TRANSFORM_UTMP_FILE_NAME(file_name) \ argument
22 ((strcmp (file_name, _PATH_UTMP) == 0 \
25 : ((strcmp (file_name, _PATH_WTMP) == 0 \
28 : ((strcmp (file_name, _PATH_UTMP "x") == 0 \
31 : ((strcmp (file_name, _PATH_WTMP "x") == 0 \
34 : file_name))))
Dutmp_file.c21 #define TRANSFORM_UTMP_FILE_NAME(file_name) \ argument
22 ((strcmp (file_name, _PATH_UTMP) == 0 \
25 : ((strcmp (file_name, _PATH_WTMP) == 0 \
28 : ((strcmp (file_name, _PATH_UTMP "x") == 0 \
31 : ((strcmp (file_name, _PATH_WTMP "x") == 0 \
34 : file_name))))
/glibc-2.36/sysdeps/unix/sysv/linux/x86/
Dreadelflib.c18 int process_elf32_file (const char *file_name, const char *lib,
21 int process_elf64_file (const char *file_name, const char *lib,
27 process_elf_file (const char *file_name, const char *lib, int *flag, in process_elf_file() argument
63 file_name, elf_header->e_machine); in process_elf_file()
68 ret = process_elf32_file (file_name, lib, flag, isa_level, soname, in process_elf_file()
71 ret = process_elf64_file (file_name, lib, flag, isa_level, soname, in process_elf_file()
/glibc-2.36/sysdeps/unix/sysv/linux/powerpc/
Dreadelflib.c20 int process_elf32_file (const char *file_name, const char *lib,
23 int process_elf64_file (const char *file_name, const char *lib,
29 process_elf_file (const char *file_name, const char *lib, int *flag, in process_elf_file() argument
37 return process_elf32_file (file_name, lib, flag, isa_level, soname, in process_elf_file()
41 ret = process_elf64_file (file_name, lib, flag, isa_level, soname, in process_elf_file()
/glibc-2.36/sysdeps/unix/sysv/linux/sparc/
Dreadelflib.c19 int process_elf32_file (const char *file_name, const char *lib,
22 int process_elf64_file (const char *file_name, const char *lib,
28 process_elf_file (const char *file_name, const char *lib, int *flag, in process_elf_file() argument
36 return process_elf32_file (file_name, lib, flag, isa_level, soname, in process_elf_file()
40 ret = process_elf64_file (file_name, lib, flag, isa_level, soname, in process_elf_file()
/glibc-2.36/sysdeps/unix/sysv/linux/s390/
Dreadelflib.c19 int process_elf32_file (const char *file_name, const char *lib,
22 int process_elf64_file (const char *file_name, const char *lib,
28 process_elf_file (const char *file_name, const char *lib, int *flag, in process_elf_file() argument
36 return process_elf32_file (file_name, lib, flag, isa_level, soname, in process_elf_file()
40 ret = process_elf64_file (file_name, lib, flag, isa_level, soname, in process_elf_file()
/glibc-2.36/sysdeps/unix/sysv/linux/ia64/
Dreadelflib.c19 int process_elf32_file (const char *file_name, const char *lib,
22 int process_elf64_file (const char *file_name, const char *lib,
28 process_elf_file (const char *file_name, const char *lib, int *flag, in process_elf_file() argument
36 return process_elf32_file (file_name, lib, flag, isa_level, soname, in process_elf_file()
40 ret = process_elf64_file (file_name, lib, flag, isa_level, soname, in process_elf_file()
/glibc-2.36/scripts/
Dtest_printers_common.py198 def get_line_number(file_name, string): argument
210 with open(file_name) as src_file:
217 raise NoLineError(file_name, string)
221 def break_at(file_name, string, temporary=True, thread=None): argument
264 line_number = str(get_line_number(file_name, string))
266 test('{0} {1}:{2} {3}'.format(command, file_name, line_number, thread_str),
268 file_name,
Dtest_printers_exceptions.py25 def __init__(self, file_name, string): argument
34 self.file_name = file_name
41 .format(self.file_name, self.string))
/glibc-2.36/sysdeps/unix/sysv/linux/arm/
Dreadelflib.c19 int process_elf32_file (const char *file_name, const char *lib,
22 int process_elf64_file (const char *file_name, const char *lib,
28 process_elf_file (const char *file_name, const char *lib, int *flag, in process_elf_file() argument
39 ret = process_elf32_file (file_name, lib, flag, isa_level, soname, in process_elf_file()
58 ret = process_elf64_file (file_name, lib, flag, isa_level, soname, in process_elf_file()
/glibc-2.36/sysdeps/unix/sysv/linux/riscv/
Dreadelflib.c20 int process_elf32_file (const char *file_name, const char *lib,
23 int process_elf64_file (const char *file_name, const char *lib,
40 process_elf_file (const char *file_name, const char *lib, int *flag, in process_elf_file() argument
55 ret = process_elf32_file (file_name, lib, flag, isa_level, soname, in process_elf_file()
61 ret = process_elf64_file (file_name, lib, flag, isa_level, soname, in process_elf_file()
/glibc-2.36/sysdeps/unix/sysv/linux/mips/
Dreadelflib.c19 int process_elf32_file (const char *file_name, const char *lib,
22 int process_elf64_file (const char *file_name, const char *lib,
28 process_elf_file (const char *file_name, const char *lib, int *flag, in process_elf_file() argument
44 ret = process_elf32_file (file_name, lib, flag, isa_level, soname, in process_elf_file()
61 ret = process_elf64_file (file_name, lib, flag, isa_level, soname, in process_elf_file()
/glibc-2.36/sysdeps/gnu/
Dupdwtmp.c21 #define TRANSFORM_UTMP_FILE_NAME(file_name) \ argument
22 ((strcmp (file_name, _PATH_UTMP "x") == 0 \
25 : ((strcmp (file_name, _PATH_WTMP "x") == 0 \
28 : file_name))
Dutmp_file.c21 #define TRANSFORM_UTMP_FILE_NAME(file_name) \ argument
22 ((strcmp (file_name, _PATH_UTMP "x") == 0 \
25 : ((strcmp (file_name, _PATH_WTMP "x") == 0 \
28 : file_name))
/glibc-2.36/login/
Dupdwtmp.c23 # define TRANSFORM_UTMP_FILE_NAME(file_name) (file_name) argument
29 const char *file_name = TRANSFORM_UTMP_FILE_NAME (wtmp_file); in __updwtmp() local
31 __libc_updwtmp (file_name, utmp); in __updwtmp()
/glibc-2.36/stdlib/
Disomac.c217 char file_name[HEADER_MAX]; in main() local
218 sprintf (file_name, "%s.h", header[h]); in main()
219 result |= check_header (file_name, ignore_list); in main()
347 check_header (const char *file_name, const char **except) in check_header() argument
353 command = malloc (sizeof fmt + strlen (file_name) + 2 * strlen (CC) in check_header()
362 puts (file_name); in check_header()
363 sprintf (command, fmt, file_name, CC, INC, CC, macrofile); in check_header()
/glibc-2.36/hurd/hurd/
Dlookup.h58 const char *file_name,
69 const char *file_name,
86 const char *file_name,
96 const char *file_name,
167 error_t file_name_path_scan (const char *file_name, const char *path,
190 const char *file_name, const char *path,

12