Home
last modified time | relevance | path

Searched refs:file (Results 1 – 25 of 74) sorted by relevance

123

/scripts/kconfig/
Dutil.c13 struct file *file_lookup(const char *name) in file_lookup()
15 struct file *file; in file_lookup() local
17 for (file = file_list; file; file = file->next) { in file_lookup()
18 if (!strcmp(name, file->name)) { in file_lookup()
19 return file; in file_lookup()
23 file = xmalloc(sizeof(*file)); in file_lookup()
24 memset(file, 0, sizeof(*file)); in file_lookup()
25 file->name = xstrdup(name); in file_lookup()
26 file->next = file_list; in file_lookup()
27 file_list = file; in file_lookup()
[all …]
Dexpr.h20 struct file { struct
21 struct file *next; argument
22 struct file *parent; argument
201 struct file *file; /* what file was this property defined */ member
262 struct file *file; member
286 extern struct file *file_list;
287 extern struct file *current_file;
288 struct file *lookup_file(const char *name);
/scripts/
Dleaking_addresses.pl239 my $file = '/boot/config-' . `uname -r`;
240 chomp $file;
241 @config_files = ($file, '/boot/config');
244 foreach my $file (@config_files) {
245 dprint("parsing config file: $file\n");
246 $value = option_from_file($option, $file);
262 my ($option, $file) = @_;
266 open(my $fh, "<", $file) or return "";
429 my ($file) = @_;
434 parse_file($file);
[all …]
Dcheckversion.pl15 foreach my $file (@ARGV) {
16 next if $file =~ "include/linux/version\.h";
18 open( my $f, '<', $file )
19 or die "Can't open $file: $!\n";
53 print "$file: $.: need linux/version.h\n";
58 print "$file: $iLinuxVersion linux/version.h not needed.\n";
64 print "$file: version use is OK ($iLinuxVersion)\n";
67 print "$file: version use is OK (none)\n";
Dget_abi.pl51 my ($file, $ln, $msg, $data) = @_;
55 print STDERR "Warning: file $file#$ln:\n\t$msg";
68 my $file = $File::Find::name;
70 my $mode = (stat($file))[2];
72 return if ($file =~ m,/README,);
74 my $name = $file;
77 my $fn = $file;
83 $data{$nametag}->{file} = $name;
84 $data{$nametag}->{filepath} = $file;
88 my $type = $file;
[all …]
Dcheckincludes.pl43 foreach my $file (@ARGV) {
44 open(my $f, '<', $file)
45 or die "Cannot open $file: $!.\n";
62 print "$file: $filename is included more than once.\n";
69 open($f, '>', $file)
70 or die("Cannot write to $file: $!");
91 print "$file: removed $dups duplicate includes\n";
Dkernel-doc453 my $file = shift @ARGV;
454 push(@export_file_list, $file);
558 my $file = shift;
578 print STDERR "${file}:$.: warning: duplicate section name '$name'\n";
595 my $file = shift;
609 dump_section($file, $name, $contents);
1188 my ($prototype, $file) = @_;
1199 my $file = shift;
1306 create_parameterlist($members, ';', $file, $declaration_name);
1307 check_sections($file, $declaration_name, $decl_type, $sectcheck, $struct_actual);
[all …]
Dparse-maintainers.pl113 open(my $file, '>', "$filename") or die "$P: $filename: open failed - $!\n";
117 print $file $$hashref{$key};
122 print $file $separator;
124 print $file $key . "\n";
127 print $file ($pattern . "\n");
131 print $file ($pattern . "\n");
136 close($file);
146 open(my $file, '<', "$filename") or die "$P: $filename: open failed - $!\n";
148 while (<$file>) {
174 close($file);
Dfind-unused-docs.sh52 for file in `find $1 -name '*.c'`; do
54 if [[ ${FILES_INCLUDED[$file]+_} ]]; then
57 str=$(scripts/kernel-doc -export "$file" 2>/dev/null)
59 echo "$file"
Dcheckstack.pl138 my ($func, $file, $lastslash, $total_size, $addr, $intro);
150 $intro = "$addr $func [$file]:";
159 elsif ($line =~ m/(.*):\s*file format/) {
160 $file = $1;
161 $file =~ s/\.ko//;
162 $lastslash = rindex($file, "/");
164 $file = substr($file, $lastslash + 1);
Dget_maintainer.pl349 my ($file) = @_;
351 open (my $maint, '<', "$file")
352 or die "$P: Can't open MAINTAINERS file '$file': $!\n";
379 push(@self_test_info, {file=>$file, linenr=>$i, line=>$line});
387 my ($file) = $_;
388 return if ($file !~ m@/MAINTAINERS$@);
389 $file = $File::Find::name;
390 return if (! -f $file);
391 push(@mfiles, $file);
419 foreach my $file (@files) {
[all …]
Dgenerate_initcall_order.pl98 my ($index, $file) = @_;
100 die "$0: ERROR: file $file doesn't exist?" if (! -f $file);
102 open(my $fh, "\"$nm\" --defined-only \"$file\" 2>/dev/null |")
138 die "$0: ERROR: invalid initcall name $symbol in $file($path)"
193 while (my $file = shift(@ARGV)) {
206 find_initcalls($index, "$objtree/$file");
Dgenerate_cfi_kallsyms.pl14 my $file;
19 } elsif (!defined($file)) {
20 $file = $_;
56 open(my $fh, "\"$readelf\" --symbols \"$file\" 2>/dev/null | grep __cfi_jt_ |")
176 " \"$file\" 2>/dev/null |")
244 open(my $fh, "\"$objdump\" --syms \"$file\" 2>/dev/null |")
277 open(my $fh, "\"$nm\" -n \"$file\" 2>/dev/null |")
Dsetlocalversion163 local file res=
165 for file; do
166 case "$file" in
171 if test -e "$file"; then
172 res="$res$(cat "$file")"
Dcoccicheck240 $FLAGS --cocci-file $COCCI $OPT $OPTIONS || \
242 $FLAGS --cocci-file $COCCI $OPT $OPTIONS --no-show-diff || \
244 $FLAGS --cocci-file $COCCI $OPT $OPTIONS || \
246 $FLAGS --cocci-file $COCCI $OPT $OPTIONS --no-show-diff || exit 1
249 $FLAGS --cocci-file $COCCI $OPT $OPTIONS --no-show-diff && \
251 $FLAGS --cocci-file $COCCI $OPT $OPTIONS || exit 1
253 run_cmd $SPATCH -D $MODE $FLAGS --cocci-file $COCCI $OPT $OPTIONS || exit 1
Dstackdelta25 my ($file, $func, $size, $type) = split;
40 $file =~ s/:[0-9]+$//;
41 $su{"${file}\t${func}"} = {size => $size, type => $type};
Dconfig15 Manipulate options in a .config file from the command line.
39 --file config-file .config file to change (default .config)
Dextract-cert.c45 const char *file; in display_openssl_errors() local
53 while ((e = ERR_get_error_line(&file, &line))) { in display_openssl_errors()
55 fprintf(stderr, "- SSL %s: %s:%d\n", buf, file, line); in display_openssl_errors()
62 const char *file; in drain_openssl_errors() local
67 while (ERR_get_error_line(&file, &line)) {} in drain_openssl_errors()
Dexport_report.pl54 my @file;
58 push (@file, $_)
61 chomp @file;
62 return @file;
DMakefile14 hostprogs-always-$(CONFIG_MODULE_SIG_FORMAT) += sign-file
21 HOSTCFLAGS_sign-file.o = $(CRYPTO_CFLAGS)
22 HOSTLDLIBS_sign-file = $(CRYPTO_LIBS)
/scripts/mod/
Dsumversion.c230 static int parse_string(const char *file, unsigned long len, in parse_string() argument
235 add_char(file[0], md); in parse_string()
237 add_char(file[i], md); in parse_string()
238 if (file[i] == '"' && file[i-1] != '\\') in parse_string()
244 static int parse_comment(const char *file, unsigned long len) in parse_comment() argument
249 if (file[i-1] == '*' && file[i] == '/') in parse_comment()
258 char *file; in parse_file() local
261 file = read_text_file(fname); in parse_file()
262 len = strlen(file); in parse_file()
266 if (file[i] == '\\' && (i+1 < len) && file[i+1] == '\n') { in parse_file()
[all …]
DMakefile10 devicetable-offsets-file := devicetable-offsets.h
12 $(obj)/$(devicetable-offsets-file): $(obj)/devicetable-offsets.s FORCE
15 targets += $(devicetable-offsets-file) devicetable-offsets.s
20 $(obj)/file2alias.o: $(obj)/$(devicetable-offsets-file)
/scripts/dtc/
Dsrcpos.h62 struct srcfile_state *file; member
75 (Current).file = YYRHSLOC(Rhs, N).file; \
81 (Current).file = YYRHSLOC (Rhs, 0).file; \
Dsrcpos.c236 pos->file = current_srcfile; in srcpos_update()
268 memcpy(srcfile_state, pos->file, sizeof(struct srcfile_state)); in srcpos_copy()
269 pos_new->file = srcfile_state; in srcpos_copy()
292 if (pos->file && pos->file->name) in srcpos_string()
293 fname = pos->file->name; in srcpos_string()
326 if (!pos->file) in srcpos_string_comment()
328 else if (!pos->file->name) in srcpos_string_comment()
331 fname = pos->file->name; in srcpos_string_comment()
333 fname = shorten_to_initial_path(pos->file->name); in srcpos_string_comment()
337 fname = pos->file->name; in srcpos_string_comment()
/scripts/atomic/
Datomic-tbl.sh48 local file=""
56 file="${ATOMICDIR}/fallbacks/${base}"
58 if [ -f "${file}" ]; then
59 printf "${file}"

123