Home
last modified time | relevance | path

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

/scripts/dtc/
Dsrcpos.c49 static void set_initial_path(char *fname) in set_initial_path() argument
51 int i, len = strlen(fname); in set_initial_path()
53 xasprintf(&initial_path, "%s", fname); in set_initial_path()
60 static char *shorten_to_initial_path(char *fname) in shorten_to_initial_path() argument
65 for (p1 = fname, p2 = initial_path; *p1 && *p2; p1++, p2++) { in shorten_to_initial_path()
76 int restlen = strlen(fname) - (p1 - fname); in shorten_to_initial_path()
102 static char *try_open(const char *dirname, const char *fname, FILE **fp) in try_open() argument
106 if (!dirname || fname[0] == '/') in try_open()
107 fullname = xstrdup(fname); in try_open()
109 fullname = join_path(dirname, fname); in try_open()
[all …]
Ddtc.c116 static const char *guess_type_by_name(const char *fname, const char *fallback) in guess_type_by_name() argument
120 s = strrchr(fname, '.'); in guess_type_by_name()
134 static const char *guess_input_format(const char *fname, const char *fallback) in guess_input_format() argument
140 if (stat(fname, &statbuf) != 0) in guess_input_format()
149 f = fopen(fname, "r"); in guess_input_format()
161 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.h353 struct dt_info *dt_from_blob(const char *fname);
Dflattree.c793 struct dt_info *dt_from_blob(const char *fname) in dt_from_blob() argument
811 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/
Dsorttable.c81 static void *mmap_file(char const *fname, size_t *size) in mmap_file() argument
87 fd = open(fname, O_RDWR); in mmap_file()
89 perror(fname); in mmap_file()
93 perror(fname); in mmap_file()
97 fprintf(stderr, "not a regular file: %s\n", fname); in mmap_file()
103 fprintf(stderr, "Could not mmap file: %s\n", fname); in mmap_file()
268 static int do_file(char const *const fname, void *addr) in do_file() argument
293 ehdr->e_ident[EI_DATA], fname); in do_file()
300 fprintf(stderr, "unrecognized ET_EXEC/ET_DYN file %s\n", fname); in do_file()
327 r2(&ehdr->e_machine), fname); in do_file()
[all …]
Drecordmcount.c176 static void *mmap_file(char const *fname) in mmap_file() argument
186 fd_map = open(fname, O_RDONLY); in mmap_file()
188 perror(fname); in mmap_file()
192 perror(fname); in mmap_file()
196 fprintf(stderr, "not a regular file: %s\n", fname); in mmap_file()
205 perror(fname); in mmap_file()
209 perror(fname); in mmap_file()
329 static int write_file(const char *fname) in write_file() argument
331 char tmp_file[strlen(fname) + 4]; in write_file()
337 sprintf(tmp_file, "%s.rc", fname); in write_file()
[all …]
Dmake_fit.py194 def output_dtb(fsw, seq, fname, arch, compress): argument
205 fsw.property_string('description', os.path.basename(fname))
210 with open(fname, 'rb') as inf:
215 def process_dtb(fname, args): argument
228 with open(fname, 'rb') as inf:
236 path, basename = os.path.split(fname)
246 files = [fname]
248 files = [fname]
277 for fname in args.dtbs:
279 if os.path.splitext(fname)[1] != '.dtb':
[all …]
Dspdxcheck.py38 def update(self, fname, basedir, miss): argument
42 fname = './' + fname
43 bdir = os.path.dirname(fname)
45 self.files.append(fname)
197 def parse_lines(self, fd, maxlines, fname): argument
233 sys.stdout.write('%s: %d:%d %s: %s\n' %(fname, self.curline, col, pe.txt, tok))
235 sys.stdout.write('%s: %d:0 %s\n' %(fname, self.curline, pe.txt))
238 if fname == '-':
241 base = os.path.dirname(fname)
256 di.update(fname, base, fail)
[all …]
Dsorttable.h265 char const *const fname, in do_sort() argument
359 "incomplete ORC unwind tables in file: %s\n", fname); in do_sort()
369 fname); in do_sort()
378 strerror(errno), fname); in do_sort()
387 fname); in do_sort()
395 strerror(errno), fname); in do_sort()
400 fprintf(stderr, "no __ex_table in file: %s\n", fname); in do_sort()
405 fprintf(stderr, "no .symtab in file: %s\n", fname); in do_sort()
410 fprintf(stderr, "no .strtab in file: %s\n", fname); in do_sort()
447 fname); in do_sort()
[all …]
Dsphinx-pre-install248 my $fname = "sphinx-build";
249 return $fname if findprog($fname);
251 $fname = "sphinx-build-3";
252 if (findprog($fname)) {
254 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()
/scripts/coccinelle/api/
Datomic_as_refcounter.cocci16 identifier fname =~ ".*free.*";
40 fname@p2(a, ...);
64 identifier fname =~ ".*free.*";
84 fname@p2(y, ...);
/scripts/mod/
Dmodpost.c1653 char fname[PATH_MAX]; in read_symbols_from_files() local
1659 while (fgets(fname, PATH_MAX, in) != NULL) { in read_symbols_from_files()
1660 if (strends(fname, "\n")) in read_symbols_from_files()
1661 fname[strlen(fname)-1] = '\0'; in read_symbols_from_files()
1662 read_symbols(fname); in read_symbols_from_files()
1977 static void write_buf(struct buffer *b, const char *fname) in write_buf() argument
1984 file = fopen(fname, "w"); in write_buf()
1986 perror(fname); in write_buf()
1990 perror(fname); in write_buf()
1994 perror(fname); in write_buf()
[all …]
Dsumversion.c258 static int parse_file(const char *fname, struct md4_ctx *md) in parse_file() argument
263 file = read_text_file(fname); in parse_file()
397 char *fname; in get_src_version() local
407 while ((fname = strsep(&pos, "\n"))) { in get_src_version()
408 if (!*fname) in get_src_version()
410 if (!(is_static_library(fname)) && in get_src_version()
411 !parse_source_files(fname, &md)) in get_src_version()