Home
last modified time | relevance | path

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

1234

/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
198 struct file *file; /* what file was this property defined */ member
259 struct file *file; member
281 extern struct file *file_list;
282 extern struct file *current_file;
283 struct file *lookup_file(const char *name);
/scripts/
Dcheckversion.pl15 foreach my $file (@ARGV) {
16 next if $file =~ "include/generated/uapi/linux/version\.h";
17 next if $file =~ "usr/include/linux/version\.h";
19 open( my $f, '<', $file )
20 or die "Can't open $file: $!\n";
57 print "$file: $.: need linux/version.h\n";
62 print "$file: $iLinuxVersion linux/version.h not needed.\n";
68 print "$file: version use is OK ($iLinuxVersion)\n";
71 print "$file: version use is OK (none)\n";
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 …]
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-doc464 my $file = shift @ARGV;
465 push(@export_file_list, $file);
569 my $file = shift;
589 print STDERR "${file}:$.: warning: duplicate section name '$name'\n";
606 my $file = shift;
620 dump_section($file, $name, $contents);
1200 my ($prototype, $file) = @_;
1211 my $file = shift;
1232 …print STDERR "${file}:$.: warning: expecting prototype for $decl_type $identifier. Prototype was f…
1337 create_parameterlist($members, ';', $file, $declaration_name);
[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);
Dcheckdeclares.pl29 foreach my $file (@ARGV) {
30 open(my $f, '<', $file)
31 or die "Cannot open $file: $!.\n";
45 print "$file: struct $structname is declared more than once.\n";
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 …]
Dget_feat.pl56 my ($file, $ln, $msg, $data) = @_;
60 print STDERR "Warning: file $file#$ln:\n\t$msg";
91 my $file = $File::Find::name;
93 my $mode = (stat($file))[2];
95 return if ($file =~ m,($prefix)/arch-support.txt,);
96 return if (!($file =~ m,arch-support.txt$,));
113 print STDERR "Opening $file\n" if ($debug > 1);
114 open IN, $file;
174 parse_error($file, $ln, "line is invalid", $_);
179 parse_error($file, $ln, "Feature name not found", "");
[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");
Dsetlocalversion121 local file res=
123 for file; do
124 case "$file" in
129 if test -e "$file"; then
130 res="$res$(cat "$file")"
Dcoccicheck248 $FLAGS --cocci-file $COCCI $OPT $OPTIONS || \
250 $FLAGS --cocci-file $COCCI $OPT $OPTIONS --no-show-diff || \
252 $FLAGS --cocci-file $COCCI $OPT $OPTIONS || \
254 $FLAGS --cocci-file $COCCI $OPT $OPTIONS --no-show-diff || exit 1
257 $FLAGS --cocci-file $COCCI $OPT $OPTIONS --no-show-diff && \
259 $FLAGS --cocci-file $COCCI $OPT $OPTIONS || exit 1
261 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;
/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}"

1234