Home
last modified time | relevance | path

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

/scripts/dtc/
Dsrcpos.c47 static void set_initial_path(char *fname) in set_initial_path() argument
49 int i, len = strlen(fname); in set_initial_path()
51 xasprintf(&initial_path, "%s", fname); in set_initial_path()
58 static char *shorten_to_initial_path(char *fname) in shorten_to_initial_path() argument
63 for (p1 = fname, p2 = initial_path; *p1 && *p2; p1++, p2++) { in shorten_to_initial_path()
74 int restlen = strlen(fname) - (p1 - fname); in shorten_to_initial_path()
100 static char *try_open(const char *dirname, const char *fname, FILE **fp) in try_open() argument
104 if (!dirname || fname[0] == '/') in try_open()
105 fullname = xstrdup(fname); in try_open()
107 fullname = join_path(dirname, fname); in try_open()
[all …]
Ddtc.c114 static const char *guess_type_by_name(const char *fname, const char *fallback) in guess_type_by_name() argument
118 s = strrchr(fname, '.'); in guess_type_by_name()
130 static const char *guess_input_format(const char *fname, const char *fallback) in guess_input_format() argument
136 if (stat(fname, &statbuf) != 0) in guess_input_format()
145 f = fopen(fname, "r"); in guess_input_format()
157 return guess_type_by_name(fname, fallback); in guess_input_format()
Dsrcpos.h43 FILE *srcfile_relative_open(const char *fname, char **fullnamep);
45 void srcfile_push(const char *fname);
Dtreesource.c16 struct dt_info *dt_from_source(const char *fname) in dt_from_source() argument
21 srcfile_push(fname); in dt_from_source()
Ddtc.h286 struct dt_info *dt_from_blob(const char *fname);
Dflattree.c795 struct dt_info *dt_from_blob(const char *fname) in dt_from_blob() argument
813 f = srcfile_relative_open(fname, NULL); in dt_from_blob()
/scripts/
Drecordmcount.c162 static void *mmap_file(char const *fname) in mmap_file() argument
172 fd_map = open(fname, O_RDONLY); in mmap_file()
174 perror(fname); in mmap_file()
178 perror(fname); in mmap_file()
182 fprintf(stderr, "not a regular file: %s\n", fname); in mmap_file()
191 perror(fname); in mmap_file()
195 perror(fname); in mmap_file()
315 static int write_file(const char *fname) in write_file() argument
317 char tmp_file[strlen(fname) + 4]; in write_file()
323 sprintf(tmp_file, "%s.rc", 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 …]
Dsphinx-pre-install217 my $fname = "sphinx-build";
218 return $fname if findprog($fname);
220 $fname = "sphinx-build-3";
221 if (findprog($fname)) {
223 return $fname;
Dsortextable.h91 do_func(Elf_Ehdr *ehdr, char const *const fname, table_sort_t custom_sort) in do_func() argument
148 fprintf(stderr, "no .strtab in file: %s\n", fname); in do_func()
152 fprintf(stderr, "no .symtab in file: %s\n", fname); in do_func()
158 fprintf(stderr, "no __ex_table in file: %s\n", fname); in do_func()
192 fname); in do_func()
Drecordmcount.h470 char const *const fname) in __has_rel_mcount() argument
478 fname); in __has_rel_mcount()
490 char const *const fname) in has_rel_mcount() argument
494 return __has_rel_mcount(relhdr, shdr0, shstrtab, fname); in has_rel_mcount()
501 const char *const fname) in tot_relsize() argument
508 txtname = has_rel_mcount(shdrp, shdr0, shstrtab, fname); in tot_relsize()
521 static int do_func(Elf_Ehdr *const ehdr, char const *const fname, in do_func() argument
548 totrelsz = tot_relsize(shdr0, nhdr, shstrtab, fname); in do_func()
566 shstrtab, fname); in do_func()
Dspdxcheck.py167 def parse_lines(self, fd, maxlines, fname): argument
198 sys.stdout.write('%s: %d:%d %s: %s\n' %(fname, self.curline, col, pe.txt, tok))
200 sys.stdout.write('%s: %d:0 %s\n' %(fname, self.curline, col, pe.txt))
/scripts/coccinelle/api/
Datomic_as_refcounter.cocci16 identifier fname =~ ".*free.*";
40 fname@p2(a, ...);
64 identifier fname =~ ".*free.*";
84 fname@p2(y, ...);
/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()
398 char *sources, *end, *fname; in get_src_version() local
420 while ((fname = strsep(&sources, " ")) != NULL) { in get_src_version()
421 if (!*fname) in get_src_version()
423 if (!(is_static_library(fname)) && in get_src_version()
424 !parse_source_files(fname, &md)) in get_src_version()
Dmodpost.c2112 char fname[PATH_MAX]; in read_symbols_from_files() local
2120 while (fgets(fname, PATH_MAX, in) != NULL) { in read_symbols_from_files()
2121 if (strends(fname, "\n")) in read_symbols_from_files()
2122 fname[strlen(fname)-1] = '\0'; in read_symbols_from_files()
2123 read_symbols(fname); in read_symbols_from_files()
2399 static void write_if_changed(struct buffer *b, const char *fname) in write_if_changed() argument
2405 file = fopen(fname, "r"); in write_if_changed()
2431 file = fopen(fname, "w"); in write_if_changed()
2433 perror(fname); in write_if_changed()
2437 perror(fname); in write_if_changed()
[all …]