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.c124 static const char *guess_type_by_name(const char *fname, const char *fallback) in guess_type_by_name() argument
128 s = strrchr(fname, '.'); in guess_type_by_name()
138 static const char *guess_input_format(const char *fname, const char *fallback) in guess_input_format() argument
144 if (stat(fname, &statbuf) != 0) in guess_input_format()
153 f = fopen(fname, "r"); in guess_input_format()
166 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 dt_info *dt_from_source(const char *fname) in dt_from_source() argument
36 srcfile_push(fname); in dt_from_source()
Ddtc.h273 struct dt_info *dt_from_blob(const char *fname);
Dflattree.c817 struct dt_info *dt_from_blob(const char *fname) in dt_from_blob() argument
834 f = srcfile_relative_open(fname, NULL); in dt_from_blob()
/scripts/
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()
239 do_file(char const *const fname) in do_file() argument
242 Elf32_Ehdr *ehdr = mmap_file(fname); in do_file()
248 ehdr->e_ident[EI_DATA], fname); in do_file()
271 fprintf(stderr, "unrecognized ET_EXEC/ET_DYN file %s\n", fname); in do_file()
279 r2(&ehdr->e_machine), fname); in do_file()
[all …]
Drecordmcount.c249 static void *mmap_file(char const *fname) in mmap_file() argument
251 fd_map = open(fname, O_RDONLY); in mmap_file()
253 perror(fname); in mmap_file()
257 fprintf(stderr, "not a regular file: %s\n", fname); in mmap_file()
275 static void write_file(const char *fname) in write_file() argument
277 char tmp_file[strlen(fname) + 4]; in write_file()
283 sprintf(tmp_file, "%s.rc", fname); in write_file()
292 perror(fname); in write_file()
308 if (rename(tmp_file, fname) < 0) { in write_file()
309 perror(fname); in write_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.h456 char const *const fname) in __has_rel_mcount() argument
464 fname); in __has_rel_mcount()
476 char const *const fname) in has_rel_mcount() argument
480 return __has_rel_mcount(relhdr, shdr0, shstrtab, fname); in has_rel_mcount()
487 const char *const fname) in tot_relsize() argument
494 txtname = has_rel_mcount(shdrp, shdr0, shstrtab, fname); in tot_relsize()
504 do_func(Elf_Ehdr *const ehdr, char const *const fname, unsigned const reltype) in do_func() argument
517 unsigned const totrelsz = tot_relsize(shdr0, nhdr, shstrtab, fname); in do_func()
530 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.c2008 char fname[PATH_MAX]; in read_symbols_from_files() local
2016 while (fgets(fname, PATH_MAX, in) != NULL) { in read_symbols_from_files()
2017 if (strends(fname, "\n")) in read_symbols_from_files()
2018 fname[strlen(fname)-1] = '\0'; in read_symbols_from_files()
2019 read_symbols(fname); in read_symbols_from_files()
2270 static void write_if_changed(struct buffer *b, const char *fname) in write_if_changed() argument
2276 file = fopen(fname, "r"); in write_if_changed()
2302 file = fopen(fname, "w"); in write_if_changed()
2304 perror(fname); in write_if_changed()
2308 perror(fname); in write_if_changed()
[all …]