Home
last modified time | relevance | path

Searched refs:s (Results 1 – 25 of 107) sorted by relevance

12345

/scripts/kconfig/
Dutil.c84 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 …]
Dzconf.tab.c_shipped355 /* Pacify GCC's 'empty if-body' warning. */
852 YYFPRINTF (stderr, "%s ", Title); \
861 | Print this symbol's value on YYOUTPUT. |
886 YYFPRINTF (yyoutput, "%s %s (",
958 /* YYINITDEPTH -- initial size of the parser's stacks. */
1015 quotes and backslashes, so that it's suitable for yyerror. The
1151 YYCASE_(1, YY_("syntax error, unexpected %s"));
1152 YYCASE_(2, YY_("syntax error, unexpected %s, expecting %s"));
1153 YYCASE_(3, YY_("syntax error, unexpected %s, expecting %s or %s"));
1154 YYCASE_(4, YY_("syntax error, unexpected %s, expecting %s or %s or %s"));
[all …]
Dzconf.l187 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/dtc/
Dutil.c39 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 …]
Dfdtdump.c59 const char *p, *s, *t; in dump_blob() local
104 s = p; in dump_blob()
105 p = PALIGN(p + strlen(s) + 1, 4); in dump_blob()
107 if (*s == '\0') in dump_blob()
108 s = "/"; in dump_blob()
110 printf("%*s%s {\n", depth * shift, "", s); in dump_blob()
133 s = p_strings + fdt32_to_cpu(GET_CELL(p)); in dump_blob()
140 printf("%*s%s", depth * shift, "", s); in dump_blob()
Dfdtget.c71 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()
Ddtc.c126 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/
Dinsert-sys-cert.c94 struct sym *s) in get_symbol_from_map() argument
99 s->size = 0; in get_symbol_from_map()
100 s->address = 0; in get_symbol_from_map()
101 s->offset = 0; in get_symbol_from_map()
125 s->address = strtoul(l, NULL, 16); in get_symbol_from_map()
126 if (s->address == 0) in get_symbol_from_map()
128 s->offset = get_offset_from_address(hdr, s->address); in get_symbol_from_map()
129 s->name = name; in get_symbol_from_map()
130 s->content = (void *)hdr + s->offset; in get_symbol_from_map()
158 char *name, struct sym *s) in get_symbol_from_table() argument
[all …]
Dheaderdep.pl128 printf "%s from %s,\n", $msg, $last->[1] if defined $last;
131 printf "%s from %s:%d%s\n",
137 printf "%s:%d: warning: recursive header inclusion\n",
178 printf "\t%s [label=\"%s\"];\n",
187 printf "\t%s -> %s;\n",
Ddecodecode11 rm -f $T $T.s $T.o $T.oo $T.aa $T.dis
52 ${CROSS_COMPILE}as $AFLAGS -o $1.o $1.s > /dev/null 2>&1
76 echo -n " .$type 0x" > $T.s
77 echo $beforemark | sed -e 's/ /,0x/g; s/[<>()]//g' >> $T.s
80 rm -f $T.o $T.s $T.dis
88 echo -n " .$type 0x" > $T.s
89 echo $code >> $T.s
Dextract-sys-certs.pl106 my $s = undef;
120 die "Cert object in multiple sections: ", $s_name, " and ", $s->{name}, "\n"
121 if ($s);
135 $s = $sec;
139 unless ($s);
141 print "Certificate list in section ", $s->{name}, "\n";
143 my $foff = $start - $s->{vma} + $s->{foff};
Dkallsyms.c114 static int read_symbol(FILE *in, struct sym_entry *s) in read_symbol() argument
120 rc = fscanf(in, "%llx %c %499s\n", &s->addr, &stype, str); in read_symbol()
140 _text = s->addr; in read_symbol()
141 else if (check_symbol_range(sym, s->addr, text_ranges, in read_symbol()
169 s->len = strlen(str) + 1; in read_symbol()
170 s->sym = malloc(s->len + 1); in read_symbol()
171 if (!s->sym) { in read_symbol()
176 strcpy((char *)s->sym + 1, str); in read_symbol()
177 s->sym[0] = stype; in read_symbol()
179 s->percpu_absolute = 0; in read_symbol()
[all …]
Dbootgraph.pl191 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";
Dparse-maintainers.pl50 my $s = shift;
51 $s =~ s/\s+$//;
52 $s =~ s/^\s+//;
53 return $s;
Dexport_report.pl146 printf("%s\n\n\n","x"x80);
150 printf("%s\n\n\n","x"x80);
167 printf("%s\n\n\n","x"x80);
/scripts/mod/
Dmodpost.c201 struct symbol *s = NOFAIL(malloc(sizeof(*s) + strlen(name) + 1)); in alloc_symbol() local
203 memset(s, 0, sizeof(*s)); in alloc_symbol()
204 strcpy(s->name, name); in alloc_symbol()
205 s->weak = weak; in alloc_symbol()
206 s->next = next; in alloc_symbol()
207 return s; in alloc_symbol()
226 struct symbol *s; in find_symbol() local
232 for (s = symbolhash[tdb_hash(name) % SYMBOL_HASH_SIZE]; s; s = s->next) { in find_symbol()
233 if (strcmp(s->name, name) == 0) in find_symbol()
234 return s; in find_symbol()
[all …]
Dmk_elfconfig.c11 union { short s; char c[2]; } endian_test; in main() member
48 endian_test.s = 0x0102; in main()
/scripts/coccinelle/misc/
Ddoubleinit.cocci17 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)
Dorplus.cocci32 @s@
45 p << s.p;
51 p << s.p;
/scripts/basic/
Dfixdep.c258 static int strrcmp(const char *s, const char *sub) in strrcmp() argument
260 int slen = strlen(s); in strrcmp()
266 return memcmp(s + slen - sublen, sub, sublen); in strrcmp()
319 char s[PATH_MAX]; in parse_dep_file() local
340 memcpy(s, m, p-m); in parse_dep_file()
341 s[p - m] = 0; in parse_dep_file()
344 if (strrcmp(s, "include/generated/autoconf.h") && in parse_dep_file()
345 strrcmp(s, "include/generated/autoksyms.h") && in parse_dep_file()
346 strrcmp(s, "arch/um/include/uml-config.h") && in parse_dep_file()
347 strrcmp(s, "include/linux/kconfig.h") && in parse_dep_file()
[all …]
/scripts/tracing/
Ddraw_functrace.py72 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/
Dfdt_strerror.c95 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/
Dpci_free_consistent.cocci42 …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/
Dgenheaders.c31 static char *stoupperx(const char *s) in stoupperx() argument
33 char *s2 = strdup(s); in stoupperx()
91 const char *s = initial_sid_to_string[i]; in main() local
92 fprintf(fout, "#define SECINITSID_%s", s); in main()
93 for (j = 0; j < max(1, 40 - strlen(s)); j++) in main()
/scripts/coccinelle/api/
Dresource_size.cocci66 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)

12345