Home
last modified time | relevance | path

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

/scripts/dtc/
Dsrcpos.c71 static char *try_open(const char *dirname, const char *fname, FILE **fp) in try_open() argument
75 if (!dirname || fname[0] == '/') in try_open()
76 fullname = xstrdup(fname); in try_open()
78 fullname = join_path(dirname, fname); in try_open()
98 static char *fopen_any_on_path(const char *fname, FILE **fp) in fopen_any_on_path() argument
108 fullname = try_open(cur_dir, fname, fp); in fopen_any_on_path()
112 fullname = try_open(node->dirname, fname, fp); in fopen_any_on_path()
117 FILE *srcfile_relative_open(const char *fname, char **fullnamep) in srcfile_relative_open() argument
122 if (streq(fname, "-")) { in srcfile_relative_open()
126 fullname = fopen_any_on_path(fname, &f); in srcfile_relative_open()
[all …]
Ddtc.c109 static const char *guess_type_by_name(const char *fname, const char *fallback) in guess_type_by_name() argument
113 s = strrchr(fname, '.'); in guess_type_by_name()
123 static const char *guess_input_format(const char *fname, const char *fallback) in guess_input_format() argument
129 if (stat(fname, &statbuf) != 0) in guess_input_format()
138 f = fopen(fname, "r"); in guess_input_format()
151 return guess_type_by_name(fname, fallback); in guess_input_format()
Dsrcpos.h56 FILE *srcfile_relative_open(const char *fname, char **fullnamep);
58 void srcfile_push(const char *fname);
Dtreesource.c31 struct boot_info *dt_from_source(const char *fname) in dt_from_source() argument
36 srcfile_push(fname); in dt_from_source()
Ddtc.h258 struct boot_info *dt_from_blob(const char *fname);
Dflattree.c804 struct boot_info *dt_from_blob(const char *fname) in dt_from_blob() argument
821 f = srcfile_relative_open(fname, NULL); in dt_from_blob()
/scripts/
Drecordmcount.c245 static void *mmap_file(char const *fname) in mmap_file() argument
247 fd_map = open(fname, O_RDONLY); in mmap_file()
249 perror(fname); in mmap_file()
253 fprintf(stderr, "not a regular file: %s\n", fname); in mmap_file()
271 static void write_file(const char *fname) in write_file() argument
273 char tmp_file[strlen(fname) + 4]; in write_file()
279 sprintf(tmp_file, "%s.rc", fname); in write_file()
288 perror(fname); in write_file()
304 if (rename(tmp_file, fname) < 0) { in write_file()
305 perror(fname); in write_file()
[all …]
Dsortextable.c89 static void *mmap_file(char const *fname) in mmap_file() argument
93 fd_map = open(fname, O_RDWR); in mmap_file()
95 perror(fname); in mmap_file()
99 fprintf(stderr, "not a regular file: %s\n", fname); in mmap_file()
106 fprintf(stderr, "Could not mmap file: %s\n", fname); in mmap_file()
268 do_file(char const *const fname) in do_file() argument
271 Elf32_Ehdr *ehdr = mmap_file(fname); in do_file()
277 ehdr->e_ident[EI_DATA], fname); in do_file()
300 fprintf(stderr, "unrecognized ET_EXEC/ET_DYN file %s\n", fname); in do_file()
308 r2(&ehdr->e_machine), fname); in do_file()
[all …]
Dsortextable.h93 do_func(Elf_Ehdr *ehdr, char const *const fname, table_sort_t custom_sort) in do_func() argument
150 fprintf(stderr, "no .strtab in file: %s\n", fname); in do_func()
154 fprintf(stderr, "no .symtab in file: %s\n", fname); in do_func()
160 fprintf(stderr, "no __ex_table in file: %s\n", fname); in do_func()
194 fname); in do_func()
Drecordmcount.h455 char const *const fname) in __has_rel_mcount() argument
463 fname); in __has_rel_mcount()
475 char const *const fname) in has_rel_mcount() argument
479 return __has_rel_mcount(relhdr, shdr0, shstrtab, fname); in has_rel_mcount()
486 const char *const fname) in tot_relsize() argument
493 txtname = has_rel_mcount(shdrp, shdr0, shstrtab, fname); in tot_relsize()
503 do_func(Elf_Ehdr *const ehdr, char const *const fname, unsigned const reltype) in do_func() argument
516 unsigned const totrelsz = tot_relsize(shdr0, nhdr, shstrtab, fname); in do_func()
529 shstrtab, fname); in do_func()
/scripts/mod/
Dsumversion.c256 static int parse_file(const char *fname, struct md4_ctx *md) in parse_file() argument
261 file = grab_file(fname, &len); in parse_file()
405 char *sources, *end, *fname; in get_src_version() local
442 while ((fname = strsep(&sources, " ")) != NULL) { in get_src_version()
443 if (!*fname) in get_src_version()
445 if (!(is_static_library(fname)) && in get_src_version()
446 !parse_source_files(fname, &md)) in get_src_version()
Dmodpost.c1995 char fname[PATH_MAX]; in read_symbols_from_files() local
2003 while (fgets(fname, PATH_MAX, in) != NULL) { in read_symbols_from_files()
2004 if (strends(fname, "\n")) in read_symbols_from_files()
2005 fname[strlen(fname)-1] = '\0'; in read_symbols_from_files()
2006 read_symbols(fname); in read_symbols_from_files()
2257 static void write_if_changed(struct buffer *b, const char *fname) in write_if_changed() argument
2263 file = fopen(fname, "r"); in write_if_changed()
2289 file = fopen(fname, "w"); in write_if_changed()
2291 perror(fname); in write_if_changed()
2295 perror(fname); in write_if_changed()
[all …]