/scripts/kconfig/ |
D | util.c | 84 gs.s = xmalloc(sizeof(char) * 64); in str_new() 87 strcpy(gs.s, "\0"); in str_new() 94 if (gs->s) in str_free() 95 free(gs->s); in str_free() 96 gs->s = NULL; in str_free() 101 void str_append(struct gstr *gs, const char *s) in str_append() argument 104 if (s) { in str_append() 105 l = strlen(gs->s) + strlen(s) + 1; in str_append() 107 gs->s = realloc(gs->s, l); in str_append() 110 strcat(gs->s, s); in str_append() [all …]
|
D | zconf.tab.c_shipped | 329 /* Pacify GCC's `empty if-body' warning. */ 832 in Bison 2.4.2's NEWS entry, where a plan to phase it out is 837 /* This is here to suppress warnings from the GCC cpp's 926 YYFPRINTF (stderr, "%s ", Title); \ 986 YYFPRINTF (yyoutput, "token %s (", yytname[yytype]); 988 YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]); 1074 /* YYINITDEPTH -- initial size of the parser's stacks. */ 1146 quotes and backslashes, so that it's suitable for yyerror. The 1217 - Assume YYFAIL is not used. It's too flawed to consider. See 1285 YYCASE_(1, YY_("syntax error, unexpected %s")); [all …]
|
D | zconf.l | 187 printf("%s:%d:warning: multi-line strings not supported\n", zconf_curname(), zconf_lineno()); 288 sprintf(fullname, "%s/%s", env, name); 320 printf("%s:%d: can't open file \"%s\"\n", 330 printf("%s:%d: recursive inclusion detected. "
|
/scripts/ |
D | docproc.c | 332 char *s; in docsect() local 334 for (s = line; *s; s++) in docsect() 335 if (*s == '\n') in docsect() 336 *s = '\0'; in docsect() 338 if (asprintf(&s, "DOC: %s", line) < 0) { in docsect() 342 consume_symbol(s); in docsect() 343 free(s); in docsect() 446 char * s; in parse_file() local 449 s = line + 2; in parse_file() 452 while (*s && !isspace(*s)) s++; in parse_file() [all …]
|
D | headerdep.pl | 127 printf "%s from %s,\n", $msg, $last->[1] if defined $last; 130 printf "%s from %s:%d%s\n", 136 printf "%s:%d: warning: recursive header inclusion\n", 177 printf "\t%s [label=\"%s\"];\n", 186 printf "\t%s -> %s;\n",
|
D | extract-sys-certs.pl | 102 my $s = undef; 116 die "Cert object in multiple sections: ", $s_name, " and ", $s->{name}, "\n" 117 if ($s); 118 $s = $sec; 122 unless ($s); 124 print "Certificate list in section ", $s->{name}, "\n"; 126 my $foff = $start - $s->{vma} + $s->{foff};
|
D | kallsyms.c | 112 static int read_symbol(FILE *in, struct sym_entry *s) in read_symbol() argument 118 rc = fscanf(in, "%llx %c %499s\n", &s->addr, &stype, str); in read_symbol() 138 _text = s->addr; in read_symbol() 139 else if (check_symbol_range(sym, s->addr, text_ranges, in read_symbol() 167 s->len = strlen(str) + 1; in read_symbol() 168 s->sym = malloc(s->len + 1); in read_symbol() 169 if (!s->sym) { in read_symbol() 174 strcpy((char *)s->sym + 1, str); in read_symbol() 175 s->sym[0] = stype; in read_symbol() 178 check_symbol_range(sym, s->addr, &percpu_range, 1); in read_symbol() [all …]
|
D | decodecode | 10 rm -f $T $T.s $T.o $T.oo $T.aa $T.dis 51 ${CROSS_COMPILE}as $AFLAGS -o $1.o $1.s > /dev/null 2>&1 75 echo -n " .$type 0x" > $T.s 76 echo $beforemark | sed -e 's/ /,0x/g; s/[<>()]//g' >> $T.s 79 rm -f $T.o $T.s $T.dis 87 echo -n " .$type 0x" > $T.s 88 echo $code >> $T.s
|
D | bootgraph.pl | 191 my ($s, $s2, $s3, $e, $w, $y, $y2, $style); 198 $s = ($start{$key} - $firsttime) * $mult; 199 $s2 = $s + 6; 200 $s3 = $s + 1; 202 $w = $e - $s; 215 print "<rect x=\"$s\" width=\"$w\" y=\"$y\" height=\"115\" style=\"$style_wait\"/>\n"; 217 print "<rect x=\"$s\" width=\"$w\" y=\"$y\" height=\"145\" style=\"$style\"/>\n";
|
D | checkpatch.pl | 698 my $output = `git log --no-color --format='%H %s' -1 $commit 2>&1`; 2985 my $s = $stat; 2986 $s =~ s/{.*$//s; 2989 if ($s =~ /$Ident:\*$/s) { 2992 } elsif ($s =~ /^.\s*$Ident\s*\(/s) { 2994 } elsif ($s =~ /^.\s*else\b/s) { 2997 …} elsif ($prev_values eq 'E' && $s =~ /^.\s*(?:$Storage\s+)?(?:$Inline\s+)?(?:const\s+)?((?:\s*$Id… 3000 possible($type, "A:" . $s); 3003 } elsif ($s =~ /^.(?:$Storage\s+)?(?:$Inline\s+)?(?:const\s+)?($Ident)\b\s*(?!:)/s) { 3004 possible($1, "B:" . $s); [all …]
|
D | export_report.pl | 145 printf("%s\n\n\n","x"x80); 149 printf("%s\n\n\n","x"x80); 166 printf("%s\n\n\n","x"x80);
|
/scripts/dtc/ |
D | util.c | 39 char *xstrdup(const char *s) in xstrdup() argument 41 int len = strlen(s) + 1; in xstrdup() 44 memcpy(d, s, len); in xstrdup() 105 const char *s = data; in util_is_printable_string() local 113 if (s[len - 1] != '\0') in util_is_printable_string() 116 se = s + len; in util_is_printable_string() 118 while (s < se) { in util_is_printable_string() 119 ss = s; in util_is_printable_string() 120 while (s < se && *s && isprint((unsigned char)*s)) in util_is_printable_string() 121 s++; in util_is_printable_string() [all …]
|
D | fdtdump.c | 58 const char *p, *s, *t; in dump_blob() local 103 s = p; in dump_blob() 104 p = PALIGN(p + strlen(s) + 1, 4); in dump_blob() 106 if (*s == '\0') in dump_blob() 107 s = "/"; in dump_blob() 109 printf("%*s%s {\n", depth * shift, "", s); in dump_blob() 132 s = p_strings + fdt32_to_cpu(GET_CELL(p)); in dump_blob() 139 printf("%*s%s", depth * shift, "", s); in dump_blob()
|
D | fdtget.c | 71 const char *s; in show_data() local 87 for (s = data; s - data < len; s += strlen(s) + 1) { in show_data() 88 if (s != data) in show_data() 90 printf("%s", (const char *)s); in show_data()
|
D | dtc.c | 126 const char *s; in guess_type_by_name() local 128 s = strrchr(fname, '.'); in guess_type_by_name() 129 if (s == NULL) in guess_type_by_name() 131 if (!strcasecmp(s, ".dts")) in guess_type_by_name() 133 if (!strcasecmp(s, ".dtb")) in guess_type_by_name()
|
/scripts/mod/ |
D | modpost.c | 195 struct symbol *s = NOFAIL(malloc(sizeof(*s) + strlen(name) + 1)); in alloc_symbol() local 197 memset(s, 0, sizeof(*s)); in alloc_symbol() 198 strcpy(s->name, name); in alloc_symbol() 199 s->weak = weak; in alloc_symbol() 200 s->next = next; in alloc_symbol() 201 return s; in alloc_symbol() 220 struct symbol *s; in find_symbol() local 226 for (s = symbolhash[tdb_hash(name) % SYMBOL_HASH_SIZE]; s; s = s->next) { in find_symbol() 227 if (strcmp(s->name, name) == 0) in find_symbol() 228 return s; in find_symbol() [all …]
|
/scripts/coccinelle/misc/ |
D | doubleinit.cocci | 17 identifier I, s, fld; 22 struct I s =@p0 { ..., .fld@p = E, ...}; 24 @s@ 25 identifier I, s, r.fld; 30 struct I s =@p0 { ..., .fld@p = E, ...}; 35 ps << s.p; 41 cocci.print_secs("s",ps) 47 ps << s.p; 52 msg = "%s: first occurrence line %s, second occurrence line %s" % (fld,ps[0].line,pr[0].line)
|
D | orplus.cocci | 32 @s@ 45 p << s.p; 51 p << s.p;
|
/scripts/basic/ |
D | fixdep.c | 254 static int strrcmp(char *s, char *sub) in strrcmp() argument 256 int slen = strlen(s); in strrcmp() 262 return memcmp(s + slen - sublen, sub, sublen); in strrcmp() 306 char s[PATH_MAX]; in parse_dep_file() local 327 memcpy(s, m, p-m); in parse_dep_file() 328 s[p - m] = 0; in parse_dep_file() 331 if (strrcmp(s, "include/generated/autoconf.h") && in parse_dep_file() 332 strrcmp(s, "arch/um/include/uml-config.h") && in parse_dep_file() 333 strrcmp(s, "include/linux/kconfig.h") && in parse_dep_file() 334 strrcmp(s, ".ver")) { in parse_dep_file() [all …]
|
/scripts/tracing/ |
D | draw_functrace.py | 72 s = "%s----%s (%s)\n" % (branch, self._func, self._time) 74 s = "%s----%s\n" % (branch, self._func) 81 s += "%s" % self._children[i].__toString(branch +\ 84 s += "%s" % self._children[i].__toString(branch +\ 87 return s
|
/scripts/dtc/libfdt/ |
D | fdt_strerror.c | 95 const char *s = fdt_errtable[-errval].str; in fdt_strerror() local 97 if (s) in fdt_strerror() 98 return s; in fdt_strerror()
|
/scripts/coccinelle/free/ |
D | pci_free_consistent.cocci | 42 …ssing pci_free_consistent; pci_alloc_consistent on line %s and return without freeing on line %s" … 50 …ssing pci_free_consistent; pci_alloc_consistent on line %s and return without freeing on line %s" …
|
/scripts/selinux/genheaders/ |
D | genheaders.c | 26 static char *stoupperx(const char *s) in stoupperx() argument 28 char *s2 = strdup(s); in stoupperx() 86 const char *s = initial_sid_to_string[i]; in main() local 87 fprintf(fout, "#define SECINITSID_%s", s); in main() 88 for (j = 0; j < max(1, 40 - strlen(s)); j++) in main()
|
/scripts/coccinelle/api/ |
D | resource_size.cocci | 66 msg="ERROR with %s" % (x) 75 msg="ERROR: Missing resource_size with %s" % (x) 83 msg="WARNING with %s" % (x) 92 msg="WARNING: Suspicious code. resource_size is maybe missing with %s" % (x)
|
/scripts/coccinelle/null/ |
D | deref_null.cocci | 97 msg="ERROR: %s is NULL but dereferenced." % (x) 107 msg="ERROR: %s is NULL but dereferenced." % (x) 112 @s depends on !context && (org || report) exists@ 152 p << s.p; 157 msg="ERROR: %s is NULL but dereferenced." % (x) 161 p << s.p; 166 msg="ERROR: %s is NULL but dereferenced." % (x)
|