Home
last modified time | relevance | path

Searched refs:fname (Results 1 – 16 of 16) 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()
132 static const char *guess_input_format(const char *fname, const char *fallback) in guess_input_format() argument
138 if (stat(fname, &statbuf) != 0) in guess_input_format()
147 f = fopen(fname, "r"); in guess_input_format()
159 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.h317 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/coccinelle/misc/
Dnewline_in_nl_msg.cocci30 identifier fname;
35 fname(e,m@p)
42 identifier r1.fname;
46 * fname(e,m)
53 fname << r1.fname;
59 msg="WARNING avoid newline at end of message in %s" % (fname)
68 fname << r1.fname;
74 msg="WARNING avoid newline at end of message in %s" % (fname)
/scripts/
Drecordmcount.c168 static void *mmap_file(char const *fname) in mmap_file() argument
178 fd_map = open(fname, O_RDONLY); in mmap_file()
180 perror(fname); in mmap_file()
184 perror(fname); in mmap_file()
188 fprintf(stderr, "not a regular file: %s\n", fname); in mmap_file()
197 perror(fname); in mmap_file()
201 perror(fname); in mmap_file()
321 static int write_file(const char *fname) in write_file() argument
323 char tmp_file[strlen(fname) + 4]; in write_file()
329 sprintf(tmp_file, "%s.rc", fname); in write_file()
[all …]
Dsorttable.c75 static void *mmap_file(char const *fname, size_t *size) in mmap_file() argument
81 fd = open(fname, O_RDWR); in mmap_file()
83 perror(fname); in mmap_file()
87 perror(fname); in mmap_file()
91 fprintf(stderr, "not a regular file: %s\n", fname); in mmap_file()
97 fprintf(stderr, "Could not mmap file: %s\n", fname); in mmap_file()
301 static int do_file(char const *const fname, void *addr) in do_file() argument
326 ehdr->e_ident[EI_DATA], fname); in do_file()
333 fprintf(stderr, "unrecognized ET_EXEC/ET_DYN file %s\n", fname); in do_file()
361 r2(&ehdr->e_machine), fname); in do_file()
[all …]
Dsorttable.h196 char const *const fname, in do_sort() argument
274 "incomplete ORC unwind tables in file: %s\n", fname); in do_sort()
284 fname); in do_sort()
293 strerror(errno), fname); in do_sort()
298 fprintf(stderr, "no __ex_table in file: %s\n", fname); in do_sort()
303 fprintf(stderr, "no .symtab in file: %s\n", fname); in do_sort()
308 fprintf(stderr, "no .strtab in file: %s\n", fname); in do_sort()
345 fname); in do_sort()
370 strerror(errno), fname); in do_sort()
375 (char *)retval, fname); in do_sort()
Dsphinx-pre-install246 my $fname = "sphinx-build";
247 return $fname if findprog($fname);
249 $fname = "sphinx-build-3";
250 if (findprog($fname)) {
252 return $fname;
Drecordmcount.h556 char const *const fname) in __has_rel_mcount() argument
564 fname); in __has_rel_mcount()
576 char const *const fname) in has_rel_mcount() argument
580 return __has_rel_mcount(relhdr, shdr0, shstrtab, fname); in has_rel_mcount()
587 const char *const fname) in tot_relsize() argument
594 txtname = has_rel_mcount(shdrp, shdr0, shstrtab, fname); in tot_relsize()
606 static int do_func(Elf_Ehdr *const ehdr, char const *const fname, in do_func() argument
636 totrelsz = tot_relsize(shdr0, nhdr, shstrtab, fname); in do_func()
656 shstrtab, fname); in do_func()
Dspdxcheck.py167 def parse_lines(self, fd, maxlines, fname): argument
201 sys.stdout.write('%s: %d:%d %s: %s\n' %(fname, self.curline, col, pe.txt, tok))
203 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 = read_text_file(fname); in parse_file()
397 char *fname; in get_src_version() local
406 while ((fname = strsep(&buf, "\n"))) { in get_src_version()
407 if (!*fname) in get_src_version()
409 if (!(is_static_library(fname)) && in get_src_version()
410 !parse_source_files(fname, &md)) in get_src_version()
Dmodpost.c2055 char fname[PATH_MAX]; in read_symbols_from_files() local
2063 while (fgets(fname, PATH_MAX, in) != NULL) { in read_symbols_from_files()
2064 if (strends(fname, "\n")) in read_symbols_from_files()
2065 fname[strlen(fname)-1] = '\0'; in read_symbols_from_files()
2066 read_symbols(fname); in read_symbols_from_files()
2315 static void write_buf(struct buffer *b, const char *fname) in write_buf() argument
2319 file = fopen(fname, "w"); in write_buf()
2321 perror(fname); in write_buf()
2325 perror(fname); in write_buf()
2329 perror(fname); in write_buf()
[all …]