Symbol: str
bin/csh/dir.c
149
skipargs(Char ***v, char *str)
bin/csh/dir.c
167
stderror(ERR_DIRUS, vis_str(**v), str);
bin/csh/exec.c
615
tellmewhat(struct wordent *lexp, Char *str, int len)
bin/csh/exec.c
659
if (str == NULL) {
bin/csh/exec.c
666
(void) Strlcpy(str, sp->word, len/sizeof(Char));
bin/csh/exec.c
700
if (str == NULL)
bin/csh/exec.c
703
(void) Strlcpy(str, sp->word, len/sizeof(Char));
bin/csh/exec.c
709
if (str == NULL) {
bin/csh/exec.c
716
(void) Strlcpy(str, sp->word, len/sizeof(Char));
bin/csh/func.c
1154
limtail(Char *cp, char *str)
bin/csh/func.c
1156
char *origstr = str;
bin/csh/func.c
1158
while (*cp && *cp == *str)
bin/csh/func.c
1159
cp++, str++;
bin/csh/glob.c
332
handleone(Char *str, Char **vl, int action)
bin/csh/glob.c
339
setname(vis_str(str));
bin/csh/glob.c
345
str = Strsave(*vlp++);
bin/csh/glob.c
347
cp = Strspl(str, STRspace);
bin/csh/glob.c
348
free(str);
bin/csh/glob.c
349
str = Strspl(cp, *vlp);
bin/csh/glob.c
357
str = Strsave(strip(*vlp));
bin/csh/glob.c
363
return (str);
bin/csh/glob.c
412
globone(Char *str, int action)
bin/csh/glob.c
419
v[0] = str;
bin/csh/glob.c
424
return (strip(Strsave(str)));
bin/csh/glob.c
437
return (handleone(str, vo, action));
bin/csh/glob.c
439
str = strip(vo[0]);
bin/csh/glob.c
441
return (str);
bin/csh/glob.c
446
return (strip(Strsave(str)));
bin/csh/glob.c
454
setname(vis_str(str));
bin/csh/glob.c
462
return (handleone(str, vl, action));
bin/csh/glob.c
464
str = strip(*vl);
bin/csh/glob.c
466
return (str);
bin/csh/lex.c
990
matchs(Char *str, Char *pat)
bin/csh/lex.c
992
while (*str && *pat && *str == *pat)
bin/csh/lex.c
993
str++, pat++;
bin/csh/misc.c
330
prefix(Char *sub, Char *str)
bin/csh/misc.c
336
if (*str == 0)
bin/csh/misc.c
338
if (*sub++ != *str++)
bin/csh/str.c
199
Strchr(Char *str, int ch)
bin/csh/str.c
202
if (*str == ch)
bin/csh/str.c
203
return (str);
bin/csh/str.c
204
while (*str++)
bin/csh/str.c
210
Strrchr(Char *str, int ch)
bin/csh/str.c
216
if (*str == ch)
bin/csh/str.c
217
rstr = str;
bin/csh/str.c
218
while (*str++)
bin/csh/str.c
224
Strlen(Char *str)
bin/csh/str.c
228
for (n = 0; *str++; n++)
bin/ksh/c_sh.c
753
tf |= t->left->str[0];
bin/ksh/c_sh.c
804
t->str[0] |= TF_POSIX;
bin/ksh/c_sh.c
820
t->str[0] |= TF_NOARGS;
bin/ksh/edit.c
292
static char *add_glob(const char *str, int slen);
bin/ksh/edit.c
300
const char *str = ((char *const *)arg)[i];
bin/ksh/edit.c
308
while ((ch = (unsigned char)*str++) != '\0') {
bin/ksh/edit.c
329
strlen_esc(const char *str)
bin/ksh/edit.c
334
while ((ch = (unsigned char)*str++) != '\0') {
bin/ksh/edit.c
413
x_file_glob(int flags, const char *str, int slen, char ***wordsp)
bin/ksh/edit.c
424
toglob = add_glob(str, slen);
bin/ksh/edit.c
431
s->start = s->str = toglob;
bin/ksh/edit.c
495
x_command_glob(int flags, const char *str, int slen, char ***wordsp)
bin/ksh/edit.c
507
toglob = add_glob(str, slen);
bin/ksh/edit.c
756
add_glob(const char *str, int slen)
bin/ksh/edit.c
765
toglob = str_nsave(str, slen + 1, ATEMP); /* + 1 for "*" */
bin/ksh/emacs.c
1318
kb_add_string(kb_func func, void *args, char *str)
bin/ksh/emacs.c
1332
if (kb_match(str)) {
bin/ksh/emacs.c
1334
bi_errorf("duplicate binding for %s", kb_decode(str));
bin/ksh/emacs.c
1337
count = strlen(str);
bin/ksh/emacs.c
1345
strlcpy(k->seq, str, count + 1);
bin/ksh/emacs.c
406
char str[2];
bin/ksh/emacs.c
415
str[0] = c;
bin/ksh/emacs.c
416
str[1] = '\0';
bin/ksh/emacs.c
418
x_ins(str);
bin/ksh/emacs.c
683
x_zots(char *str)
bin/ksh/emacs.c
687
if (str > xbuf && isu8cont(*str)) {
bin/ksh/emacs.c
688
while (str > xbuf && isu8cont(*str))
bin/ksh/emacs.c
689
str--;
bin/ksh/emacs.c
693
while (*str && str < xlp && adj == x_adj_done)
bin/ksh/emacs.c
694
x_zotc(*str++);
bin/ksh/emacs.c
965
x_match(char *str, char *pat)
bin/ksh/emacs.c
968
return (strncmp(str, pat+1, strlen(pat+1)) == 0) ? 0 : -1;
bin/ksh/emacs.c
970
char *q = strstr(str, pat);
bin/ksh/emacs.c
971
return (q == NULL) ? -1 : q - str;
bin/ksh/eval.c
299
char *str, *end;
bin/ksh/eval.c
30
const char *str; /* string */
bin/ksh/eval.c
306
str = snptreef(NULL, 64, "%S", sp);
bin/ksh/eval.c
308
errorf("%s: bad substitution", str);
bin/ksh/eval.c
408
x.str = trimsub(str_val(st->var),
bin/ksh/eval.c
410
if (x.str[0] != '\0') {
bin/ksh/eval.c
447
x.str = str_val(st->var);
bin/ksh/eval.c
452
if (quote || !*x.str)
bin/ksh/eval.c
504
if ((c = *x.str++) == 0) {
bin/ksh/eval.c
516
if ((c = *x.str++) == '\0') {
bin/ksh/eval.c
523
if ((x.str = *x.u.strv++) == NULL) {
bin/ksh/eval.c
77
s->start = s->str = cp;
bin/ksh/eval.c
781
xp->str = str_save(u64ton((uint64_t)c, 10), ATEMP);
bin/ksh/eval.c
819
xp->str = null;
bin/ksh/eval.c
824
xp->str = *xp->u.strv++;
bin/ksh/eval.c
848
xp->str = null;
bin/ksh/eval.c
854
xp->str = *xp->u.strv++;
bin/ksh/eval.c
864
xp->str = str_val(xp->var);
bin/ksh/eval.c
872
(((stype&0x80) ? *xp->str=='\0' : xp->str==null) ? /* undef? */
bin/ksh/eval.c
875
if (Flag(FNOUNSET) && xp->str == null && !zero_ok &&
bin/ksh/eval.c
892
s->start = s->str = cp;
bin/ksh/eval.c
939
trimsub(char *str, char *pat, int how)
bin/ksh/eval.c
941
char *end = strchr(str, 0);
bin/ksh/eval.c
946
for (p = str; p <= end; p++) {
bin/ksh/eval.c
948
if (gmatch(str, pat, false)) {
bin/ksh/eval.c
956
for (p = end; p >= str; p--) {
bin/ksh/eval.c
958
if (gmatch(str, pat, false)) {
bin/ksh/eval.c
966
for (p = end; p >= str; p--) {
bin/ksh/eval.c
968
return str_nsave(str, p - str, ATEMP);
bin/ksh/eval.c
972
for (p = str; p <= end; p++) {
bin/ksh/eval.c
974
return str_nsave(str, p - str, ATEMP);
bin/ksh/eval.c
979
return str; /* no match, return string */
bin/ksh/exec.c
1223
s->start = s->str = content;
bin/ksh/exec.c
297
setstr(global(t->str), *ap++, KSH_UNWIND_ERROR);
bin/ksh/exec.c
311
setstr(global(t->str), cp, KSH_UNWIND_ERROR);
bin/ksh/exec.c
349
cp = evalstr(t->str, DOTILDE);
bin/ksh/exec.c
367
rv = define(t->str, t);
bin/ksh/exec.c
382
execve(t->str, t->args, ap);
bin/ksh/exec.c
692
texec.str = tp->val.s;
bin/ksh/exec.c
716
*tp->args-- = tp->str;
bin/ksh/exec.c
722
errorf("%s: %s: %s", tp->str, shell, strerror(errno));
bin/ksh/expr.c
225
evalerr(Expr_state *es, enum error_type type, const char *str)
bin/ksh/expr.c
255
warningf(true, "%s: bad number `%s'", es->expression, str);
bin/ksh/expr.c
260
es->expression, str);
bin/ksh/expr.c
265
es->expression, str);
bin/ksh/expr.c
270
es->expression, str);
bin/ksh/expr.c
275
warningf(true, "%s: %s", es->expression, str);
bin/ksh/history.c
368
hist_get(const char *str, int approx, int allow_cur)
bin/ksh/history.c
373
if (getn(str, &n)) {
bin/ksh/history.c
379
bi_errorf("%s: not in history", str);
bin/ksh/history.c
386
bi_errorf("%s: not in history", str);
bin/ksh/history.c
390
bi_errorf("%s: invalid range", str);
bin/ksh/history.c
394
int anchored = *str == '?' ? (++str, 0) : 1;
bin/ksh/history.c
397
n = findhist(histptr - history - 1, 0, str, anchored);
bin/ksh/history.c
399
bi_errorf("%s: not in history", str);
bin/ksh/history.c
488
findhist(int start, int fwd, const char *str, int anchored)
bin/ksh/history.c
493
int len = strlen(str);
bin/ksh/history.c
500
if ((anchored && strncmp(*hp, str, len) == 0) ||
bin/ksh/history.c
501
(!anchored && strstr(*hp, str)))
bin/ksh/history.c
508
findhistrel(const char *str)
bin/ksh/history.c
514
rec = strtonum(str, -maxhist, maxhist, &errstr);
bin/ksh/history.c
526
sethistcontrol(const char *str)
bin/ksh/history.c
533
if (str == NULL)
bin/ksh/history.c
536
spec = str_save(str, ATEMP);
bin/ksh/io.c
197
kshdebug_dump_(const char *str, const void *mem, int nbytes)
bin/ksh/io.c
204
shf_fprintf(kshdebug_shf, "[%d] %s:\n", getpid(), str);
bin/ksh/lex.c
1004
s->start = s->str = "\n";
bin/ksh/lex.c
1007
s->start = s->str = " ";
bin/ksh/lex.c
1042
s->start = s->str = s->ugbuf;
bin/ksh/lex.c
1048
s->str = NULL;
bin/ksh/lex.c
106
#define getsc() (*source->str != '\0' && *source->str != '\\' \
bin/ksh/lex.c
1060
if (s->str == NULL) {
bin/ksh/lex.c
1062
s->start = s->str = null;
bin/ksh/lex.c
1066
shf_puts(s->str, shl_out);
bin/ksh/lex.c
107
&& !backslash_skip ? *source->str++ : getsc_bn())
bin/ksh/lex.c
1083
s->start = s->str = xp;
bin/ksh/lex.c
109
#define getsc_() ((*source->str != '\0') ? *source->str++ : getsc__())
bin/ksh/lex.c
1144
s->start = s->str = Xstring(s->xs, xp);
bin/ksh/lex.c
1150
s->str = NULL;
bin/ksh/lex.c
1158
histsave(s->line, s->str, 1);
bin/ksh/lex.c
1166
special_prompt_expand(char *str)
bin/ksh/lex.c
1168
char *p = str;
bin/ksh/lex.c
1173
return str;
bin/ksh/lex.c
1213
char strbuf[1024], tmpbuf[1024], *p, *str, nbuf[32], delimiter = '\0';
bin/ksh/lex.c
1448
str = strbuf;
bin/ksh/lex.c
1449
len = strlen(str);
bin/ksh/lex.c
1455
str += ntruncate;
bin/ksh/lex.c
1460
shf_write(str, len, shl_out);
bin/ksh/lex.c
1625
if (source->str == null && c == '\0')
bin/ksh/lex.c
1626
return source->str;
bin/ksh/lex.c
1627
if (source->str > source->start)
bin/ksh/lex.c
1628
source->str--;
bin/ksh/lex.c
1634
s->start = s->str = s->ugbuf;
bin/ksh/lex.c
1638
return source->str;
bin/ksh/lex.c
199
char match[200] = { 0 }, *str = match;
bin/ksh/lex.c
211
*str++ = c2;
bin/ksh/lex.c
220
*str++ = c2;
bin/ksh/lex.c
221
} while (str < &match[sizeof(match)-1]);
bin/ksh/lex.c
222
*str = '\0';
bin/ksh/lex.c
248
s->start = s->str = *replace;
bin/ksh/lex.c
281
s->start = s->str
bin/ksh/lex.c
844
s->start = s->str = p->val.s;
bin/ksh/lex.c
936
source->str = null; /* zap pending input */
bin/ksh/lex.c
956
s->str = null;
bin/ksh/lex.c
979
while ((c = *s->str++) == 0) {
bin/ksh/lex.c
980
s->str = NULL; /* return 0 for EOF by default */
bin/ksh/lex.c
983
s->str = null;
bin/ksh/lex.c
998
s->start = s->str = *s->u.strv++;
bin/ksh/lex.h
13
const char *str; /* input pointer */
bin/ksh/main.c
346
if (!(s->start = s->str = argv[argi++]))
bin/ksh/main.c
545
s->start = s->str = comm;
bin/ksh/main.c
589
s->start = s->str = null;
bin/ksh/misc.c
1011
char *str = alloc(max_width + 1, ATEMP);
bin/ksh/misc.c
1047
(*func)(arg, i, str, max_width + 1));
bin/ksh/misc.c
1054
afree(str, ATEMP);
bin/ksh/syn.c
322
t->str = str_save(ident, ATEMP);
bin/ksh/syn.c
343
t->str = yylval.cp;
bin/ksh/syn.c
370
if (t->str) {
bin/ksh/syn.c
371
t->str = str_save(t->str, ATEMP);
bin/ksh/syn.c
373
t->str = alloc(2, ATEMP);
bin/ksh/syn.c
374
t->str[0] = '\0'; /* TF_* flags */
bin/ksh/syn.c
375
t->str[1] = '\0';
bin/ksh/syn.c
550
t->str = sname;
bin/ksh/syn.c
758
t->str = NULL;
bin/ksh/tree.c
155
t->str, t->left);
bin/ksh/tree.c
448
r->str = t->type == TCASE ? wdcopy(t->str, ap) : str_save(t->str, ap);
bin/ksh/tree.c
651
afree(t->str, ap);
bin/ksh/tree.c
83
fptreef(shf, indent, "select %s ", t->str);
bin/ksh/tree.c
87
fptreef(shf, indent, "for %s ", t->str);
bin/ksh/tree.c
98
fptreef(shf, indent, "case %S in", t->str);
bin/ksh/tree.h
22
char *str; /* word for case; identifier for for,
bin/ksh/var.c
1193
arrayname(const char *str)
bin/ksh/var.c
1197
if ((p = strchr(str, '[')) == 0)
bin/ksh/var.c
1199
return (char *) str;
bin/ksh/var.c
1201
return str_nsave(str, p - str, ATEMP);
bin/pax/file_subs.c
1012
return(st - str);
bin/pax/file_subs.c
918
file_write(int fd, char *str, int cnt, int *rem, int *isempt, int sz,
bin/pax/file_subs.c
924
char *st = str;
bin/pax/ftree.c
148
ftree_add(char *str, int chflg)
bin/pax/ftree.c
156
if ((str == NULL) || (*str == '\0')) {
bin/pax/ftree.c
171
if (((len = strlen(str) - 1) > 0) && (str[len] == '/'))
bin/pax/ftree.c
172
str[len] = '\0';
bin/pax/ftree.c
173
ft->fname = str;
bin/pax/gen_subs.c
170
safe_print(const char *str, FILE *fp)
bin/pax/gen_subs.c
179
for (cp = str; *cp; cp++) {
bin/pax/gen_subs.c
184
(void)fputs(str, fp);
bin/pax/gen_subs.c
199
asc_ul(char *str, int len, int base)
bin/pax/gen_subs.c
204
stop = str + len;
bin/pax/gen_subs.c
209
while ((str < stop) && ((*str == ' ') || (*str == '0')))
bin/pax/gen_subs.c
210
++str;
bin/pax/gen_subs.c
217
while (str < stop) {
bin/pax/gen_subs.c
218
if ((*str >= '0') && (*str <= '9'))
bin/pax/gen_subs.c
219
tval = (tval << 4) + (*str++ - '0');
bin/pax/gen_subs.c
220
else if ((*str >= 'A') && (*str <= 'F'))
bin/pax/gen_subs.c
221
tval = (tval << 4) + 10 + (*str++ - 'A');
bin/pax/gen_subs.c
222
else if ((*str >= 'a') && (*str <= 'f'))
bin/pax/gen_subs.c
223
tval = (tval << 4) + 10 + (*str++ - 'a');
bin/pax/gen_subs.c
228
while ((str < stop) && (*str >= '0') && (*str <= '7'))
bin/pax/gen_subs.c
229
tval = (tval << 3) + (*str++ - '0');
bin/pax/gen_subs.c
242
ul_asc(u_long val, char *str, int len, int base)
bin/pax/gen_subs.c
250
pt = str + len - 1;
bin/pax/gen_subs.c
258
while (pt >= str) {
bin/pax/gen_subs.c
268
while (pt >= str) {
bin/pax/gen_subs.c
279
while (pt >= str)
bin/pax/gen_subs.c
297
asc_ull(char *str, int len, int base)
bin/pax/gen_subs.c
302
stop = str + len;
bin/pax/gen_subs.c
307
while ((str < stop) && ((*str == ' ') || (*str == '0')))
bin/pax/gen_subs.c
308
++str;
bin/pax/gen_subs.c
315
while (str < stop) {
bin/pax/gen_subs.c
316
if ((*str >= '0') && (*str <= '9'))
bin/pax/gen_subs.c
317
tval = (tval << 4) + (*str++ - '0');
bin/pax/gen_subs.c
318
else if ((*str >= 'A') && (*str <= 'F'))
bin/pax/gen_subs.c
319
tval = (tval << 4) + 10 + (*str++ - 'A');
bin/pax/gen_subs.c
320
else if ((*str >= 'a') && (*str <= 'f'))
bin/pax/gen_subs.c
321
tval = (tval << 4) + 10 + (*str++ - 'a');
bin/pax/gen_subs.c
326
while ((str < stop) && (*str >= '0') && (*str <= '7'))
bin/pax/gen_subs.c
327
tval = (tval << 3) + (*str++ - '0');
bin/pax/gen_subs.c
340
ull_asc(unsigned long long val, char *str, int len, int base)
bin/pax/gen_subs.c
348
pt = str + len - 1;
bin/pax/gen_subs.c
356
while (pt >= str) {
bin/pax/gen_subs.c
366
while (pt >= str) {
bin/pax/gen_subs.c
377
while (pt >= str)
bin/pax/options.c
1020
char *str;
bin/pax/options.c
1029
while ((str = get_line(fp)) != NULL) {
bin/pax/options.c
1030
if (pat_add(str, dir) < 0)
bin/pax/options.c
1094
char *str;
bin/pax/options.c
1109
while ((str = get_line(fp)) != NULL) {
bin/pax/options.c
1110
if (ftree_add(str, 0) < 0)
bin/pax/options.c
1186
char *str;
bin/pax/options.c
1335
while ((str = get_line(fp)) != NULL) {
bin/pax/options.c
1336
pat_add(str, NULL);
bin/pax/options.c
1448
while ((str = get_line(stdin)) != NULL) {
bin/pax/options.c
1449
ftree_add(str, 0);
bin/pax/options.c
1535
opt_add(const char *str)
bin/pax/options.c
1543
if ((str == NULL) || (*str == '\0')) {
bin/pax/options.c
1547
if ((dstr = strdup(str)) == NULL) {
bin/pax/options.c
1666
char *str = NULL;
bin/pax/options.c
1671
len = getline(&str, &size, f);
bin/pax/options.c
1673
free(str);
bin/pax/options.c
1676
if (str[len - 1] == '\n')
bin/pax/options.c
1677
str[len - 1] = '\0';
bin/pax/options.c
1678
} while (str[0] == '\0');
bin/pax/options.c
1679
return str;
bin/pax/pat_rep.c
107
if ((str == NULL) || (*str == '\0')) {
bin/pax/pat_rep.c
116
for (pt1 = str+1; *pt1; pt1++) {
bin/pax/pat_rep.c
121
if (*pt1 == *str)
bin/pax/pat_rep.c
125
paxwarn(1, "Invalid replacement string %s", str);
bin/pax/pat_rep.c
139
if ((res = regcomp(&(rep->rcmp), str+1, 0)) != 0) {
bin/pax/pat_rep.c
141
paxwarn(1, "%s while compiling regular expression %s", rebuf, str);
bin/pax/pat_rep.c
151
*pt1++ = *str;
bin/pax/pat_rep.c
157
if (*pt2 == *str)
bin/pax/pat_rep.c
163
paxwarn(1, "Invalid replacement string %s", str);
bin/pax/pat_rep.c
188
*pt1 = *str;
bin/pax/pat_rep.c
189
paxwarn(1, "Invalid replacement string option %s", str);
bin/pax/pat_rep.c
220
pat_add(char *str, char *chdirname)
bin/pax/pat_rep.c
227
if ((str == NULL) || (*str == '\0')) {
bin/pax/pat_rep.c
242
pt->pstr = str;
bin/pax/pat_rep.c
244
pt->plen = strlen(str);
bin/pax/pat_rep.c
96
rep_add(char *str)
bin/pax/sel_subs.c
132
usr_add(char *str)
bin/pax/sel_subs.c
141
if ((str == NULL) || (*str == '\0'))
bin/pax/sel_subs.c
152
if (str[0] != '#') {
bin/pax/sel_subs.c
156
if ((str[0] == '\\') && (str[1] == '#'))
bin/pax/sel_subs.c
157
++str;
bin/pax/sel_subs.c
158
if (uid_from_user(str, &uid) == -1) {
bin/pax/sel_subs.c
159
paxwarn(1, "Unable to find uid for user: %s", str);
bin/pax/sel_subs.c
163
uid = (uid_t)strtoul(str+1, NULL, 10);
bin/pax/sel_subs.c
227
grp_add(char *str)
bin/pax/sel_subs.c
236
if ((str == NULL) || (*str == '\0'))
bin/pax/sel_subs.c
247
if (str[0] != '#') {
bin/pax/sel_subs.c
251
if ((str[0] == '\\') && (str[1] == '#'))
bin/pax/sel_subs.c
252
++str;
bin/pax/sel_subs.c
253
if (gid_from_group(str, &gid) == -1) {
bin/pax/sel_subs.c
254
paxwarn(1,"Cannot determine gid for group name: %s", str);
bin/pax/sel_subs.c
258
gid = (gid_t)strtoul(str+1, NULL, 10);
bin/pax/sel_subs.c
344
trng_add(char *str)
bin/pax/sel_subs.c
355
if ((str == NULL) || (*str == '\0')) {
bin/pax/sel_subs.c
363
if ((flgpt = strrchr(str, '/')) != NULL)
bin/pax/sel_subs.c
366
for (stpt = str; *stpt != '\0'; ++stpt) {
bin/pax/sel_subs.c
383
paxwarn(1, "Improperly specified time range: %s", str);
bin/pax/sel_subs.c
415
*flgpt, str);
bin/pax/sel_subs.c
427
if (*str != '\0') {
bin/pax/sel_subs.c
431
if (str_sec(str, &(pt->low_time)) < 0) {
bin/pax/sel_subs.c
432
paxwarn(1, "Illegal lower time range %s", str);
bin/pax/sel_subs.c
456
up_pt, str);
bin/pax/tar.c
173
ul_oct(u_long val, char *str, int len, int term)
bin/pax/tar.c
180
pt = str + len - 1;
bin/pax/tar.c
202
while (pt >= str) {
bin/pax/tar.c
209
while (pt >= str)
bin/pax/tar.c
228
ull_oct(unsigned long long val, char *str, int len, int term)
bin/pax/tar.c
235
pt = str + len - 1;
bin/pax/tar.c
257
while (pt >= str) {
bin/pax/tar.c
264
while (pt >= str)
bin/pax/tty_subs.c
113
tty_read(char *str, int len)
bin/pax/tty_subs.c
115
if (ttyinf == NULL || fgets(str, len, ttyinf) == NULL)
bin/pax/tty_subs.c
121
str[strcspn(str, "\n")] = '\0';
games/adventure/extern.h
118
#define length(str) (strlen((str)) + 1)
games/atc/graphics.c
113
char str[3];
games/atc/graphics.c
131
str[2] = '\0';
games/atc/graphics.c
162
str[0] = C_LINE;
games/atc/graphics.c
164
str[1] = ' ';
games/atc/graphics.c
166
scp->line[i].p2.x, scp->line[i].p2.y, str);
games/atc/graphics.c
169
str[0] = C_TOPBOTTOM;
games/atc/graphics.c
170
str[1] = C_TOPBOTTOM;
games/atc/graphics.c
173
waddstr(radar, str);
games/atc/graphics.c
176
str[0] = C_TOPBOTTOM;
games/atc/graphics.c
177
str[1] = C_TOPBOTTOM;
games/atc/graphics.c
180
waddstr(radar, str);
games/atc/graphics.c
190
str[0] = C_BEACON;
games/atc/graphics.c
192
str[1] = '0' + i;
games/atc/graphics.c
194
waddstr(radar, str);
games/atc/graphics.c
204
str[0] = airstr[scp->airport[i].dir];
games/atc/graphics.c
205
str[1] = '0' + i;
games/atc/graphics.c
207
waddstr(radar, str);
games/atc/graphics.c
251
ioaddstr(int pos, const char *str)
games/atc/graphics.c
254
waddstr(input, str);
games/atc/graphics.c
268
ioerror(int pos, int len, const char *str)
games/atc/graphics.c
276
waddstr(input, str);
games/atc/input.c
206
(void)snprintf(T_STR, sizeof T_STR, st[T_STATE].rule[ruleno].str, tval);
games/atc/input.c
264
ioerror(stack[i].pos, strlen(stack[i].str), s);
games/atc/input.c
66
const char *str;
games/atc/input.c
76
char str[20];
games/atc/input.c
85
#define T_STR stack[level].str
games/bcd/bcd.c
172
printcard(char *str)
games/bcd/bcd.c
174
size_t len = strlen(str);
games/bcd/bcd.c
178
printonecard(str, amt);
games/bcd/bcd.c
179
str += amt;
games/bcd/bcd.c
185
printonecard(char *str, size_t len)
games/bcd/bcd.c
191
end = str + len;
games/bcd/bcd.c
194
for (p = str; p < end; ++p)
games/bcd/bcd.c
207
p = str;
games/bcd/bcd.c
227
for (i = 0, p = str; p < end; i++, p++) {
games/boggle/boggle/mach.c
510
showstr(char *str, int delaysecs)
games/boggle/boggle/mach.c
512
addstr(str);
games/fortune/fortune/fortune.c
1071
#define STR(str) ((str) == NULL ? "NULL" : (str))
games/fortune/fortune/fortune.c
719
copy(char *str, char *suf)
games/fortune/fortune/fortune.c
723
if (asprintf(&new, "%s%s", str, suf ? suf : "") == -1)
games/gomoku/bdinit.c
171
u_char *str;
games/gomoku/bdinit.c
176
str = &overlap[FAREA * FAREA];
games/gomoku/bdinit.c
179
str -= FAREA;
games/gomoku/bdinit.c
205
str[n] |= (f == 5) ? mask & 0xA : mask;
games/gomoku/bdinit.c
211
str[n] |= 0xA0;
games/gomoku/bdinit.c
213
str[n] |= 0xF0;
games/gomoku/bdinit.c
217
str[n] |= 0xA0;
games/gomoku/bdinit.c
219
str[n] |= 0xF0;
games/gomoku/bdinit.c
223
str[n] |= 0xC0;
games/gomoku/bdinit.c
225
str[n] |= 0xF0;
games/gomoku/bdinit.c
229
str[n] |= 0xC0;
games/gomoku/bdinit.c
231
str[n] |= 0xF0;
games/gomoku/bdinit.c
234
str[n] |= 0xF0;
games/gomoku/bdisp.c
216
dislog(char *str)
games/gomoku/bdisp.c
223
if (strlen(str) >= SCRNW - (2 * BSZ4))
games/gomoku/bdisp.c
224
str[SCRNW - (2 * BSZ4) - 1] = '\0';
games/gomoku/bdisp.c
226
addstr(str);
games/gomoku/bdisp.c
236
ask(char *str)
games/gomoku/bdisp.c
238
int len = strlen(str);
games/gomoku/bdisp.c
241
addstr(str);
games/gomoku/main.c
347
char *str;
games/gomoku/main.c
409
for (str = fmtbuf + 1; *str; str++)
games/gomoku/main.c
410
if (*str == ',') {
games/gomoku/main.c
412
if (str[-1] == pdir[d1])
games/gomoku/main.c
414
str[-1] = '\0';
games/gomoku/main.c
417
*str++ = '\0';
games/gomoku/main.c
420
sp = &board[s2 = ctos(str)];
games/gomoku/main.c
421
while (*str)
games/gomoku/main.c
422
str++;
games/gomoku/main.c
424
if (str[-1] == pdir[d2])
games/gomoku/main.c
427
str = fmtbuf;
games/gomoku/main.c
428
snprintf(str, fmtbuf + sizeof fmtbuf - str,
games/gomoku/main.c
430
str += strlen(str);
games/gomoku/main.c
431
snprintf(str, fmtbuf + sizeof fmtbuf - str,
games/gomoku/main.c
456
str = fmtbuf + 1;
games/gomoku/main.c
457
if (*str >= '0' && *str <= '9')
games/gomoku/main.c
458
n = *str++ - '0';
games/gomoku/main.c
461
sp = &board[i = ctos(str)];
games/gomoku/main.c
490
dlog(char *str)
games/gomoku/main.c
494
fprintf(debugfp, "%s\n", str);
games/gomoku/main.c
496
dislog(str);
games/gomoku/main.c
498
fprintf(stderr, "%s\n", str);
games/gomoku/main.c
502
logit(char *str)
games/gomoku/main.c
506
fprintf(debugfp, "%s\n", str);
games/gomoku/main.c
508
dislog(str);
games/gomoku/main.c
510
printf("%s\n", str);
games/gomoku/main.c
517
qlog(char *str)
games/gomoku/main.c
519
dlog(str);
games/gomoku/main.c
540
panic(char *str)
games/gomoku/main.c
542
fprintf(stderr, "%s: %s\n", __progname, str);
games/gomoku/makemove.c
215
u_char *str;
games/gomoku/makemove.c
233
str = &overlap[(a = sp1->s_frame[r] - frames) * FAREA];
games/gomoku/makemove.c
255
str[b] &= 0xA;
games/gomoku/makemove.c
260
str[b] = 0;
games/gomoku/makemove.c
265
str[b] &= 0xAF;
games/gomoku/makemove.c
268
str[b] &= 0xF;
games/gomoku/makemove.c
288
str[b] = 0;
games/gomoku/pickmove.c
1062
u_char *str;
games/gomoku/pickmove.c
1071
str = &overlap[n];
games/gomoku/pickmove.c
1084
mask = str[tcbp - frames];
games/gomoku/pickmove.c
1136
mask = str[cbp - frames];
games/gomoku/pickmove.c
1199
char *str;
games/gomoku/pickmove.c
1205
str = fmtbuf;
games/gomoku/pickmove.c
1207
snprintf(str, fmtbuf + sizeof fmtbuf - str,
games/gomoku/pickmove.c
1210
str += strlen(str);
games/gomoku/pickmove.c
1260
char *str;
games/gomoku/pickmove.c
1264
str = fmtbuf;
games/gomoku/pickmove.c
1266
snprintf(str, fmtbuf + sizeof fmtbuf - str,
games/gomoku/pickmove.c
1269
str += strlen(str);
games/gomoku/pickmove.c
1274
str = fmtbuf;
games/gomoku/pickmove.c
1277
snprintf(str, fmtbuf + sizeof fmtbuf - str,
games/gomoku/pickmove.c
1280
str += strlen(str);
games/gomoku/pickmove.c
1306
printcombo(struct combostr *cbp, char *str, size_t strl)
games/gomoku/pickmove.c
1308
char *basestr = str;
games/gomoku/pickmove.c
1311
snprintf(str, strl, "%x/%d", cbp->c_combo.s, cbp->c_nframes);
games/gomoku/pickmove.c
1312
str += strlen(str);
games/gomoku/pickmove.c
1314
snprintf(str, basestr + strl - str,
games/gomoku/pickmove.c
1317
str += strlen(str);
games/gomoku/pickmove.c
1319
snprintf(str, basestr + strl - str,
games/hack/hack.do_name.c
234
char *str;
games/hack/hack.do_name.c
240
str = xname(&otemp);
games/hack/hack.do_name.c
241
pline("Call %s %s: ", strchr(vowels,*str) ? "an" : "a", str);
games/hack/hack.do_name.c
247
str = newstring(len);
games/hack/hack.do_name.c
248
(void) strlcpy(str, buf, len);
games/hack/hack.do_name.c
251
*str1 = str;
games/hack/hack.mon.c
833
kludge(char *str, char *arg)
games/hack/hack.mon.c
836
if(*str == '%') pline(str,"It");
games/hack/hack.mon.c
837
else pline(str,"it");
games/hack/hack.mon.c
838
} else pline(str,arg);
games/hack/hack.objnam.c
383
setan(char *str, char *buf, size_t len)
games/hack/hack.objnam.c
385
if(strchr(vowels,*str))
games/hack/hack.objnam.c
386
snprintf(buf, len, "an %s", str);
games/hack/hack.objnam.c
388
snprintf(buf, len, "a %s", str);
games/hack/hack.pager.c
416
char *str;
games/hack/hack.pager.c
419
if ((str = getenv("SHELL")))
games/hack/hack.pager.c
420
execlp(str, str, (char *)NULL);
games/hack/hack.pri.c
102
panic(const char *str, ...)
games/hack/hack.pri.c
110
va_start(ap, str);
games/hack/hack.pri.c
111
vprintf(str, ap);
games/hack/hack.zap.c
339
hit(char *str, struct monst *mtmp, char *force)
games/hack/hack.zap.c
341
if(!cansee(mtmp->mx,mtmp->my)) pline("The %s hits it.", str);
games/hack/hack.zap.c
342
else pline("The %s hits %s%s", str, monnam(mtmp), force);
games/hack/hack.zap.c
346
miss(char *str, struct monst *mtmp)
games/hack/hack.zap.c
348
if(!cansee(mtmp->mx,mtmp->my)) pline("The %s misses it.",str);
games/hack/hack.zap.c
349
else pline("The %s misses %s.",str,monnam(mtmp));
games/hunt/huntd/terminal.c
103
outstr(pp, str, len);
games/hunt/huntd/terminal.c
105
outstr(pp, str, len);
games/hunt/huntd/terminal.c
113
(void) putc(*str++, pp->p_output);
games/hunt/huntd/terminal.c
99
outstr(PLAYER *pp, char *str, int len)
games/mille/misc.c
45
error(char *str, ...)
games/mille/misc.c
49
va_start(ap, str);
games/mille/misc.c
51
vw_printw(Score, str, ap);
games/monop/monop.h
69
#define lucky(str) printf("%s%s\n",str,lucky_mes[roll(1,num_luck)-1])
games/phantasia/setup.c
210
Error(char *str, char *file)
games/phantasia/setup.c
213
fprintf(stderr, str, file);
games/sail/dr_2.c
123
str_end(const char *str)
games/sail/dr_2.c
127
for (p = str; *p; p++)
games/sail/dr_2.c
129
return p == str ? 0 : p[-1];
games/sail/dr_2.c
265
rmend(char *str)
games/sail/dr_2.c
269
for (p = str; *p; p++)
games/sail/dr_2.c
271
if (p != str)
games/snake/snake.c
630
const char *str;
games/snake/snake.c
640
str = "BONUS!!!";
games/snake/snake.c
644
str = "SPACE WARP!!!";
games/snake/snake.c
651
mvaddstr(p.line + 1, p.col + 1, str);
lib/libagentx/ax.c
1127
ax_pdu_add_str(struct ax *ax, struct ax_ostring *str)
lib/libagentx/ax.c
1131
if (ax_pdu_add_uint32(ax, str->aos_slen) == -1)
lib/libagentx/ax.c
1134
if ((zeroes = (4 - (str->aos_slen % 4))) == 4)
lib/libagentx/ax.c
1136
length = str->aos_slen + zeroes;
lib/libagentx/ax.c
1140
memcpy(&(ax->ax_wbuf[ax->ax_wbtlen]), str->aos_string, str->aos_slen);
lib/libagentx/ax.c
1141
ax->ax_wbtlen += str->aos_slen;
lib/libc/asr/asr.c
147
asr_resolver_from_string(const char *str)
lib/libc/asr/asr.c
154
if (asr_ctx_from_string(ac, str) == -1) {
lib/libc/asr/asr.c
680
asr_ctx_from_string(struct asr_ctx *ac, const char *str)
lib/libc/asr/asr.c
687
asr_ctx_parse(ac, str);
lib/libc/asr/asr.c
774
asr_ctx_parse(struct asr_ctx *ac, const char *str)
lib/libc/asr/asr.c
782
line = str;
lib/libc/asr/asr_utils.c
437
_asr_sockaddr_from_str(struct sockaddr *sa, int family, const char *str)
lib/libc/asr/asr_utils.c
448
if (_asr_sockaddr_from_str(sa, PF_INET, str) == 0)
lib/libc/asr/asr_utils.c
450
return _asr_sockaddr_from_str(sa, PF_INET6, str);
lib/libc/asr/asr_utils.c
453
if (inet_pton(PF_INET, str, &ina) != 1)
lib/libc/asr/asr_utils.c
464
cp = strchr(str, SCOPE_DELIMITER);
lib/libc/asr/asr_utils.c
466
str2 = strdup(str);
lib/libc/asr/asr_utils.c
469
str2[cp - str] = '\0';
lib/libc/asr/asr_utils.c
476
} else if (inet_pton(PF_INET6, str, &in6a) != 1)
lib/libc/asr/asr_utils.c
62
_asr_dname_from_fqdn(const char *str, char *dst, size_t max)
lib/libc/asr/asr_utils.c
71
if (str[0] == '.') {
lib/libc/asr/asr_utils.c
72
if (str[1] != '\0')
lib/libc/asr/asr_utils.c
79
for (; *str; str = d + 1) {
lib/libc/asr/asr_utils.c
81
d = strchr(str, '.');
lib/libc/asr/asr_utils.c
82
if (d == NULL || d == str)
lib/libc/asr/asr_utils.c
85
l = (d - str);
lib/libc/asr/asr_utils.c
87
if (dname_check_label(str, l) == -1)
lib/libc/asr/asr_utils.c
96
memmove(dst, str, n);
lib/libc/asr/getaddrinfo_async.c
117
const char *str;
lib/libc/asr/getaddrinfo_async.c
254
str = (ai->ai_flags & AI_PASSIVE &&
lib/libc/asr/getaddrinfo_async.c
258
str = (ai->ai_flags & AI_PASSIVE &&
lib/libc/asr/getaddrinfo_async.c
261
_asr_sockaddr_from_str(&sa.sa, family, str);
lib/libc/gen/getcap.c
1013
*str = mem;
lib/libc/gen/getcap.c
816
cgetstr(char *buf, const char *cap, char **str)
lib/libc/gen/getcap.c
932
*str = mem;
lib/libc/gen/getcap.c
948
cgetustr(char *buf, const char *cap, char **str)
lib/libc/gen/getnetgrent.c
162
getstring(char **pp, int del, char **str)
lib/libc/gen/getnetgrent.c
179
*str = NULL;
lib/libc/gen/getnetgrent.c
195
*str = dp;
lib/libc/gen/glob.c
1025
g_strchr(const Char *str, int ch)
lib/libc/gen/glob.c
1028
if (*str == ch)
lib/libc/gen/glob.c
1029
return ((Char *)str);
lib/libc/gen/glob.c
1030
} while (*str++);
lib/libc/gen/glob.c
1035
g_Ctoc(const Char *str, char *buf, size_t len)
lib/libc/gen/glob.c
1039
if ((*buf++ = *str++) == EOS)
lib/libc/gen/glob.c
1047
qprintf(const char *str, Char *s)
lib/libc/gen/glob.c
1051
(void)printf("%s:\n", str);
lib/libc/gen/glob.c
983
g_opendir(Char *str, glob_t *pglob)
lib/libc/gen/glob.c
987
if (!*str)
lib/libc/gen/glob.c
990
if (g_Ctoc(str, buf, sizeof(buf)))
lib/libc/gen/login_cap.c
219
char *res = NULL, *str = e;
lib/libc/gen/login_cap.c
229
str = def;
lib/libc/gen/login_cap.c
237
str = res;
lib/libc/gen/login_cap.c
245
if (res != NULL && str != res)
lib/libc/gen/login_cap.c
247
return(str);
lib/libc/gen/login_cap.c
904
strtosize(char *str, char **endptr, int radix)
lib/libc/gen/login_cap.c
910
num = strtoull(str, &expr, radix);
lib/libc/gen/login_cap.c
911
if (errno || expr == str) {
lib/libc/gen/login_cap.c
976
strtolimit(char *str, char **endptr, int radix)
lib/libc/gen/login_cap.c
978
if (strcasecmp(str, "infinity") == 0 || strcasecmp(str, "inf") == 0) {
lib/libc/gen/login_cap.c
980
*endptr = str + strlen(str);
lib/libc/gen/login_cap.c
983
return (strtosize(str, endptr, radix));
lib/libc/regex/engine.c
122
#define NOTE(str) { if (m->eflags&REG_TRACE) (void)printf("=%s\n", (str)); }
lib/libc/rpc/clnt_perror.c
104
str += ret;
lib/libc/rpc/clnt_perror.c
108
ret = snprintf(str, len, "%s", err);
lib/libc/rpc/clnt_perror.c
112
ret = snprintf(str, len,
lib/libc/rpc/clnt_perror.c
121
ret = snprintf(str, len,
lib/libc/rpc/clnt_perror.c
129
ret = snprintf(str, len, "; s1 = %u, s2 = %u",
lib/libc/rpc/clnt_perror.c
53
char *err, *str = buf;
lib/libc/rpc/clnt_perror.c
59
ret = snprintf(str, len, "%s: %s", s, clnt_sperrno(e.re_status));
lib/libc/rpc/clnt_perror.c
64
str += ret;
lib/libc/rpc/clnt_perror.c
85
ret = snprintf(str, len, "; errno = %s", strerror(e.re_errno));
lib/libc/rpc/clnt_perror.c
91
ret = snprintf(str, len,
lib/libc/rpc/clnt_perror.c
99
ret = snprintf(str, len, "; why = ");
lib/libc/stdio/asprintf.c
30
asprintf(char **str, const char *fmt, ...)
lib/libc/stdio/asprintf.c
54
*str = (char *)_base;
lib/libc/stdio/asprintf.c
56
*str = (char *)f._bf._base;
lib/libc/stdio/asprintf.c
62
*str = NULL;
lib/libc/stdio/snprintf.c
41
snprintf(char *str, size_t n, const char *fmt, ...)
lib/libc/stdio/snprintf.c
53
str = &dummy;
lib/libc/stdio/snprintf.c
56
f._bf._base = f._p = (unsigned char *)str;
lib/libc/stdio/sprintf.c
46
sprintf(char *str, const char *fmt, ...)
lib/libc/stdio/sprintf.c
52
f._bf._base = f._p = (unsigned char *)str;
lib/libc/stdio/sscanf.c
47
sscanf(const char *str, const char *fmt, ...)
lib/libc/stdio/sscanf.c
53
f._bf._base = f._p = (unsigned char *)str;
lib/libc/stdio/sscanf.c
54
f._bf._size = f._r = strlen(str);
lib/libc/stdio/swscanf.c
34
swscanf(const wchar_t * __restrict str, const wchar_t * __restrict fmt, ...)
lib/libc/stdio/swscanf.c
40
r = vswscanf(str, fmt, ap);
lib/libc/stdio/vasprintf.c
29
vasprintf(char **str, const char *fmt, __va_list ap)
lib/libc/stdio/vasprintf.c
50
*str = (char *)_base;
lib/libc/stdio/vasprintf.c
52
*str = (char *)f._bf._base;
lib/libc/stdio/vasprintf.c
58
*str = NULL;
lib/libc/stdio/vsnprintf.c
40
vsnprintf(char *str, size_t n, const char *fmt, __va_list ap)
lib/libc/stdio/vsnprintf.c
51
str = &dummy;
lib/libc/stdio/vsnprintf.c
54
f._bf._base = f._p = (unsigned char *)str;
lib/libc/stdio/vsprintf.c
45
vsprintf(char *str, const char *fmt, __va_list ap)
lib/libc/stdio/vsprintf.c
50
f._bf._base = f._p = (unsigned char *)str;
lib/libc/stdio/vsscanf.c
46
vsscanf(const char *str, const char *fmt, __va_list ap)
lib/libc/stdio/vsscanf.c
50
f._bf._base = f._p = (unsigned char *)str;
lib/libc/stdio/vsscanf.c
51
f._bf._size = f._r = strlen(str);
lib/libc/stdio/vswscanf.c
52
vswscanf(const wchar_t * __restrict str, const wchar_t * __restrict fmt,
lib/libc/stdio/vswscanf.c
66
len = wcslen(str) * MB_CUR_MAX;
lib/libc/stdio/vswscanf.c
70
strp = str;
lib/libc/stdlib/atoi.c
34
atoi(const char *str)
lib/libc/stdlib/atoi.c
36
return((int)strtol(str, (char **)NULL, 10));
lib/libc/stdlib/atol.c
34
atol(const char *str)
lib/libc/stdlib/atol.c
36
return(strtol(str, (char **)NULL, 10));
lib/libc/stdlib/atoll.c
34
atoll(const char *str)
lib/libc/stdlib/atoll.c
36
return(strtoll(str, (char **)NULL, 10));
lib/libc/stdlib/setenv.c
43
putenv(char *str)
lib/libc/stdlib/setenv.c
49
for (cp = str; *cp && *cp != '='; ++cp)
lib/libc/stdlib/setenv.c
51
if (cp == str || *cp != '=') {
lib/libc/stdlib/setenv.c
57
if (__findenv(str, (int)(cp - str), &offset) != NULL) {
lib/libc/stdlib/setenv.c
58
environ[offset++] = str;
lib/libc/stdlib/setenv.c
60
while (__findenv(str, (int)(cp - str), &offset)) {
lib/libc/stdlib/setenv.c
80
environ[cnt] = str;
lib/libc/string/strdup.c
39
strdup(const char *str)
lib/libc/string/strdup.c
44
siz = strlen(str) + 1;
lib/libc/string/strdup.c
47
(void)memcpy(copy, str, siz);
lib/libc/string/strlen.c
35
strlen(const char *str)
lib/libc/string/strlen.c
39
for (s = str; *s; ++s)
lib/libc/string/strlen.c
41
return (s - str);
lib/libc/string/strndup.c
26
strndup(const char *str, size_t maxlen)
lib/libc/string/strndup.c
31
len = strnlen(str, maxlen);
lib/libc/string/strndup.c
34
(void)memcpy(copy, str, len);
lib/libc/string/strnlen.c
24
strnlen(const char *str, size_t maxlen)
lib/libc/string/strnlen.c
28
for (cp = str; maxlen != 0 && *cp != '\0'; cp++, maxlen--)
lib/libc/string/strnlen.c
31
return (size_t)(cp - str);
lib/libc/string/wcsdup.c
19
wcsdup(const wchar_t *str)
lib/libc/string/wcsdup.c
24
len = wcslen(str) + 1;
lib/libc/string/wcsdup.c
30
return (wmemcpy(copy, str, len));
lib/libc/time/strftime.c
507
_add(const char *str, char *pt, const char *ptlim)
lib/libc/time/strftime.c
509
while (pt < ptlim && (*pt = *str++) != '\0')
lib/libc/time/wcsftime.c
501
_add(const wchar_t *str, wchar_t *pt, const wchar_t *ptlim)
lib/libc/time/wcsftime.c
503
while (pt < ptlim && (*pt = *str++) != L'\0')
lib/libc/time/wcsftime.c
509
_sadd(const char *str, wchar_t *pt, const wchar_t *ptlim)
lib/libc/time/wcsftime.c
511
while (pt < ptlim && (*pt = btowc(*str++)) != L'\0')
lib/libcrypto/asn1/a_strex.c
297
do_dump(unsigned long lflags, char_io *io_ch, void *arg, const ASN1_STRING *str)
lib/libcrypto/asn1/a_strex.c
310
outlen = do_hex_dump(io_ch, arg, str->data, str->length);
lib/libcrypto/asn1/a_strex.c
315
t.type = str->type;
lib/libcrypto/asn1/a_strex.c
316
t.value.ptr = (char *)str;
lib/libcrypto/asn1/a_strex.c
339
const ASN1_STRING *str)
lib/libcrypto/asn1/a_strex.c
349
type = str->type;
lib/libcrypto/asn1/a_strex.c
377
len = do_dump(lflags, io_ch, arg, str);
lib/libcrypto/asn1/a_strex.c
396
len = do_buf(str->data, str->length, type, flags, &quotes, io_ch, NULL);
lib/libcrypto/asn1/a_strex.c
406
if (do_buf(str->data, str->length, type, flags, NULL, io_ch, arg) < 0)
lib/libcrypto/asn1/a_strex.c
647
ASN1_STRING_print_ex(BIO *out, const ASN1_STRING *str, unsigned long flags)
lib/libcrypto/asn1/a_strex.c
649
return do_print_ex(send_bio_chars, out, flags, str);
lib/libcrypto/asn1/a_strex.c
654
ASN1_STRING_print_ex_fp(FILE *fp, const ASN1_STRING *str, unsigned long flags)
lib/libcrypto/asn1/a_strex.c
656
return do_print_ex(send_fp_chars, fp, flags, str);
lib/libcrypto/asn1/a_strnid.c
144
ASN1_STRING *str = NULL;
lib/libcrypto/asn1/a_strnid.c
149
out = &str;
lib/libcrypto/asn1/a_time_tm.c
316
ASN1_TIME_set_string_internal(ASN1_TIME *s, const char *str, int mode)
lib/libcrypto/asn1/a_time_tm.c
320
if (ASN1_time_parse(str, strlen(str), &tm, mode) == -1)
lib/libcrypto/asn1/a_time_tm.c
442
ASN1_TIME_set_string(ASN1_TIME *s, const char *str)
lib/libcrypto/asn1/a_time_tm.c
444
return ASN1_TIME_set_string_internal(s, str, RFC5280);
lib/libcrypto/asn1/a_time_tm.c
519
ASN1_UTCTIME_set_string(ASN1_UTCTIME *s, const char *str)
lib/libcrypto/asn1/a_time_tm.c
523
return ASN1_TIME_set_string_internal(s, str, V_ASN1_UTCTIME);
lib/libcrypto/asn1/a_time_tm.c
565
ASN1_GENERALIZEDTIME_set_string(ASN1_GENERALIZEDTIME *s, const char *str)
lib/libcrypto/asn1/a_time_tm.c
569
return ASN1_TIME_set_string_internal(s, str, V_ASN1_GENERALIZEDTIME);
lib/libcrypto/asn1/a_time_tm.c
603
ASN1_TIME_set_string_X509(ASN1_TIME *s, const char *str)
lib/libcrypto/asn1/a_time_tm.c
605
return ASN1_TIME_set_string_internal(s, str, RFC5280);
lib/libcrypto/asn1/a_utf8.c
156
UTF8_putc(unsigned char *str, int len, unsigned long value)
lib/libcrypto/asn1/a_utf8.c
159
if (str != NULL) {
lib/libcrypto/asn1/a_utf8.c
162
str[0] = (unsigned char)value;
lib/libcrypto/asn1/a_utf8.c
167
if (str != NULL) {
lib/libcrypto/asn1/a_utf8.c
170
str[0] = (unsigned char)(((value >> 6) & 0x1f) | 0xc0);
lib/libcrypto/asn1/a_utf8.c
171
str[1] = (unsigned char)((value & 0x3f) | 0x80);
lib/libcrypto/asn1/a_utf8.c
178
if (str != NULL) {
lib/libcrypto/asn1/a_utf8.c
181
str[0] = (unsigned char)(((value >> 12) & 0xf) | 0xe0);
lib/libcrypto/asn1/a_utf8.c
182
str[1] = (unsigned char)(((value >> 6) & 0x3f) | 0x80);
lib/libcrypto/asn1/a_utf8.c
183
str[2] = (unsigned char)((value & 0x3f) | 0x80);
lib/libcrypto/asn1/a_utf8.c
188
if (str != NULL) {
lib/libcrypto/asn1/a_utf8.c
191
str[0] = (unsigned char)(((value >> 18) & 0x7) | 0xf0);
lib/libcrypto/asn1/a_utf8.c
192
str[1] = (unsigned char)(((value >> 12) & 0x3f) | 0x80);
lib/libcrypto/asn1/a_utf8.c
193
str[2] = (unsigned char)(((value >> 6) & 0x3f) | 0x80);
lib/libcrypto/asn1/a_utf8.c
194
str[3] = (unsigned char)((value & 0x3f) | 0x80);
lib/libcrypto/asn1/a_utf8.c
79
UTF8_getc(const unsigned char *str, int len, unsigned long *val)
lib/libcrypto/asn1/a_utf8.c
86
p = str;
lib/libcrypto/asn1/asn1.h
528
int ASN1_STRING_copy(ASN1_STRING *dst, const ASN1_STRING *str);
lib/libcrypto/asn1/asn1.h
534
int ASN1_STRING_set(ASN1_STRING *str, const void *data, int len);
lib/libcrypto/asn1/asn1.h
535
void ASN1_STRING_set0(ASN1_STRING *str, void *data, int len);
lib/libcrypto/asn1/asn1.h
571
int ASN1_UTCTIME_set_string(ASN1_UTCTIME *s, const char *str);
lib/libcrypto/asn1/asn1.h
580
int ASN1_GENERALIZEDTIME_set_string(ASN1_GENERALIZEDTIME *s, const char *str);
lib/libcrypto/asn1/asn1.h
590
int ASN1_OCTET_STRING_set(ASN1_OCTET_STRING *str, const unsigned char *data,
lib/libcrypto/asn1/asn1.h
675
int ASN1_TIME_set_string_X509(ASN1_TIME *time, const char *str);
lib/libcrypto/asn1/asn1.h
687
int ASN1_TIME_set_string(ASN1_TIME *s, const char *str);
lib/libcrypto/asn1/asn1.h
758
int ASN1_STRING_print_ex_fp(FILE *fp, const ASN1_STRING *str,
lib/libcrypto/asn1/asn1.h
790
int ASN1_STRING_print_ex(BIO *out, const ASN1_STRING *str, unsigned long flags);
lib/libcrypto/asn1/asn1.h
833
ASN1_TYPE *ASN1_generate_nconf(const char *str, CONF *nconf);
lib/libcrypto/asn1/asn1.h
834
ASN1_TYPE *ASN1_generate_v3(const char *str, X509V3_CTX *cnf);
lib/libcrypto/asn1/asn1_gen.c
113
const char *str;
lib/libcrypto/asn1/asn1_gen.c
124
static ASN1_TYPE *asn1_str2type(const char *str, int format, int utype);
lib/libcrypto/asn1/asn1_gen.c
128
ASN1_generate_nconf(const char *str, CONF *nconf)
lib/libcrypto/asn1/asn1_gen.c
133
return ASN1_generate_v3(str, NULL);
lib/libcrypto/asn1/asn1_gen.c
136
return ASN1_generate_v3(str, &cnf);
lib/libcrypto/asn1/asn1_gen.c
141
ASN1_generate_v3(const char *str, X509V3_CTX *cnf)
lib/libcrypto/asn1/asn1_gen.c
162
if (CONF_parse_list(str, ',', 1, asn1_cb, &asn1_tags) != 0)
lib/libcrypto/asn1/asn1_gen.c
171
ret = asn1_multi(asn1_tags.utype, asn1_tags.str, cnf);
lib/libcrypto/asn1/asn1_gen.c
173
ret = asn1_str2type(asn1_tags.str, asn1_tags.format,
lib/libcrypto/asn1/asn1_gen.c
306
arg->str = vstart;
lib/libcrypto/asn1/asn1_gen.c
611
asn1_str2type(const char *str, int format, int utype)
lib/libcrypto/asn1/asn1_gen.c
624
if (!str)
lib/libcrypto/asn1/asn1_gen.c
625
str = "";
lib/libcrypto/asn1/asn1_gen.c
630
if (str && *str) {
lib/libcrypto/asn1/asn1_gen.c
643
vtmp.value = (char *)str;
lib/libcrypto/asn1/asn1_gen.c
657
s2i_ASN1_INTEGER(NULL, (char *)str))) {
lib/libcrypto/asn1/asn1_gen.c
668
if (!(atmp->value.object = OBJ_txt2obj(str, 0))) {
lib/libcrypto/asn1/asn1_gen.c
684
if (!ASN1_STRING_set(atmp->value.asn1_string, str, -1)) {
lib/libcrypto/asn1/asn1_gen.c
715
(unsigned char *)str, -1, format,
lib/libcrypto/asn1/asn1_gen.c
731
if (!(rdata = string_to_hex((char *)str, &rdlen))) {
lib/libcrypto/asn1/asn1_gen.c
741
if (ASN1_STRING_set(atmp->value.asn1_string, str,
lib/libcrypto/asn1/asn1_gen.c
748
if (!CONF_parse_list(str, ',', 1, bitstr_cb,
lib/libcrypto/asn1/asn1_gen.c
778
ERR_asprintf_error_data("string=%s", str);
lib/libcrypto/asn1/asn1_gen.c
79
#define ASN1_GEN_STR(str,val){str, sizeof(str) - 1, val}
lib/libcrypto/asn1/asn1_item.c
128
unsigned char *str = NULL;
lib/libcrypto/asn1/asn1_item.c
130
i = ASN1_item_i2d(asn, &str, it);
lib/libcrypto/asn1/asn1_item.c
131
if (!str)
lib/libcrypto/asn1/asn1_item.c
134
if (!EVP_Digest(str, i, md, len, type, NULL)) {
lib/libcrypto/asn1/asn1_item.c
135
free(str);
lib/libcrypto/asn1/asn1_item.c
139
free(str);
lib/libcrypto/asn1/asn1_local.h
122
int UTF8_getc(const unsigned char *str, int len, unsigned long *val);
lib/libcrypto/asn1/asn1_local.h
123
int UTF8_putc(unsigned char *str, int len, unsigned long value);
lib/libcrypto/asn1/asn1_par.c
74
char str[128];
lib/libcrypto/asn1/asn1_par.c
86
p = str;
lib/libcrypto/asn1/asn1_par.c
88
snprintf(str, sizeof str, "priv [ %d ] ", tag);
lib/libcrypto/asn1/asn1_par.c
90
snprintf(str, sizeof str, "cont [ %d ]", tag);
lib/libcrypto/asn1/asn1_par.c
92
snprintf(str, sizeof str, "appl [ %d ]", tag);
lib/libcrypto/asn1/asn1_par.c
94
snprintf(str, sizeof str, "<ASN1 %d>", tag);
lib/libcrypto/asn1/bio_asn1.c
119
static int asn1_bio_puts(BIO *h, const char *str);
lib/libcrypto/asn1/bio_asn1.c
120
static int asn1_bio_gets(BIO *h, char *str, int size);
lib/libcrypto/asn1/bio_asn1.c
343
asn1_bio_puts(BIO *b, const char *str)
lib/libcrypto/asn1/bio_asn1.c
345
return asn1_bio_write(b, str, strlen(str));
lib/libcrypto/asn1/bio_asn1.c
349
asn1_bio_gets(BIO *b, char *str, int size)
lib/libcrypto/asn1/bio_asn1.c
353
return BIO_gets(b->next_bio, str , size);
lib/libcrypto/asn1/tasn_new.c
271
ASN1_STRING *str;
lib/libcrypto/asn1/tasn_new.c
309
str = ASN1_STRING_type_new(utype);
lib/libcrypto/asn1/tasn_new.c
311
str != NULL)
lib/libcrypto/asn1/tasn_new.c
312
str->flags |= ASN1_STRING_FLAG_MSTRING;
lib/libcrypto/asn1/tasn_new.c
313
*pval = (ASN1_VALUE *)str;
lib/libcrypto/asn1/tasn_prn.c
335
const char *str;
lib/libcrypto/asn1/tasn_prn.c
338
str = "BOOL ABSENT";
lib/libcrypto/asn1/tasn_prn.c
342
str = "FALSE";
lib/libcrypto/asn1/tasn_prn.c
346
str = "TRUE";
lib/libcrypto/asn1/tasn_prn.c
351
if (BIO_puts(out, str) <= 0)
lib/libcrypto/asn1/tasn_prn.c
358
asn1_print_integer_ctx(BIO *out, ASN1_INTEGER *str, const ASN1_PCTX *pctx)
lib/libcrypto/asn1/tasn_prn.c
362
if ((s = i2s_ASN1_INTEGER(NULL, str)) == NULL)
lib/libcrypto/asn1/tasn_prn.c
385
asn1_print_obstring_ctx(BIO *out, ASN1_STRING *str, int indent,
lib/libcrypto/asn1/tasn_prn.c
388
if (str->type == V_ASN1_BIT_STRING) {
lib/libcrypto/asn1/tasn_prn.c
390
str->flags & 0x7) <= 0)
lib/libcrypto/asn1/tasn_prn.c
394
if ((str->length > 0) &&
lib/libcrypto/asn1/tasn_prn.c
395
BIO_dump_indent(out, (char *)str->data, str->length,
lib/libcrypto/asn1/tasn_prn.c
406
ASN1_STRING *str;
lib/libcrypto/asn1/tasn_prn.c
422
str = (ASN1_STRING *)*fld;
lib/libcrypto/asn1/tasn_prn.c
423
utype = str->type & ~V_ASN1_NEG;
lib/libcrypto/asn1/tasn_prn.c
427
str = NULL;
lib/libcrypto/asn1/tasn_prn.c
429
str = (ASN1_STRING *)*fld;
lib/libcrypto/asn1/tasn_prn.c
435
str = (ASN1_STRING *)*fld;
lib/libcrypto/asn1/tasn_prn.c
472
ret = asn1_print_integer_ctx(out, str, pctx);
lib/libcrypto/asn1/tasn_prn.c
476
ret = ASN1_UTCTIME_print(out, str);
lib/libcrypto/asn1/tasn_prn.c
480
ret = ASN1_GENERALIZEDTIME_print(out, str);
lib/libcrypto/asn1/tasn_prn.c
489
ret = asn1_print_obstring_ctx(out, str, indent, pctx);
lib/libcrypto/asn1/tasn_prn.c
498
if (ASN1_parse_dump(out, str->data, str->length,
lib/libcrypto/asn1/tasn_prn.c
505
ret = ASN1_STRING_print_ex(out, str, pctx->str_flags);
lib/libcrypto/bio/b_sock.c
137
char *h, *p, *str = NULL;
lib/libcrypto/bio/b_sock.c
144
if ((str = strdup(host)) == NULL) {
lib/libcrypto/bio/b_sock.c
149
h = str;
lib/libcrypto/bio/b_sock.c
150
if ((p = strrchr(str, ':')) == NULL) {
lib/libcrypto/bio/b_sock.c
152
p = str;
lib/libcrypto/bio/b_sock.c
203
free(str);
lib/libcrypto/bio/b_sock.c
39
BIO_get_host_ip(const char *str, unsigned char *ip)
lib/libcrypto/bio/b_sock.c
50
if (str == NULL) {
lib/libcrypto/bio/b_sock.c
56
if ((error = getaddrinfo(str, NULL, &hints, &res)) != 0) {
lib/libcrypto/bio/b_sock.c
58
ERR_asprintf_error_data("getaddrinfo: host='%s' : %s'", str,
lib/libcrypto/bio/b_sock.c
69
BIO_get_port(const char *str, unsigned short *port_ptr)
lib/libcrypto/bio/b_sock.c
79
if (str == NULL) {
lib/libcrypto/bio/b_sock.c
84
if ((error = getaddrinfo(NULL, str, &hints, &res)) != 0) {
lib/libcrypto/bio/b_sock.c
86
ERR_asprintf_error_data("getaddrinfo: service='%s' : %s'", str,
lib/libcrypto/bio/bf_buff.c
520
buffer_puts(BIO *b, const char *str)
lib/libcrypto/bio/bf_buff.c
522
return (buffer_write(b, str, strlen(str)));
lib/libcrypto/bio/bf_buff.c
70
static int buffer_puts(BIO *h, const char *str);
lib/libcrypto/bio/bf_buff.c
71
static int buffer_gets(BIO *h, char *str, int size);
lib/libcrypto/bio/bf_nbio.c
250
nbiof_puts(BIO *bp, const char *str)
lib/libcrypto/bio/bf_nbio.c
254
return (BIO_puts(bp->next_bio, str));
lib/libcrypto/bio/bf_nbio.c
72
static int nbiof_puts(BIO *h, const char *str);
lib/libcrypto/bio/bf_nbio.c
73
static int nbiof_gets(BIO *h, char *str, int size);
lib/libcrypto/bio/bf_null.c
194
nullf_puts(BIO *bp, const char *str)
lib/libcrypto/bio/bf_null.c
198
return (BIO_puts(bp->next_bio, str));
lib/libcrypto/bio/bf_null.c
71
static int nullf_puts(BIO *h, const char *str);
lib/libcrypto/bio/bf_null.c
72
static int nullf_gets(BIO *h, char *str, int size);
lib/libcrypto/bio/bio.h
607
int BIO_get_port(const char *str, unsigned short *port_ptr);
lib/libcrypto/bio/bio.h
608
int BIO_get_host_ip(const char *str, unsigned char *ip);
lib/libcrypto/bio/bss_acpt.c
433
acpt_puts(BIO *bp, const char *str)
lib/libcrypto/bio/bss_acpt.c
437
n = strlen(str);
lib/libcrypto/bio/bss_acpt.c
438
ret = acpt_write(bp, str, n);
lib/libcrypto/bio/bss_acpt.c
443
BIO_new_accept(const char *str)
lib/libcrypto/bio/bss_acpt.c
450
if (BIO_set_accept_port(ret, str))
lib/libcrypto/bio/bss_acpt.c
92
static int acpt_puts(BIO *h, const char *str);
lib/libcrypto/bio/bss_bio.c
488
bio_puts(BIO *bio, const char *str)
lib/libcrypto/bio/bss_bio.c
490
return bio_write(bio, str, strlen(str));
lib/libcrypto/bio/bss_bio.c
94
static int bio_puts(BIO *bio, const char *str);
lib/libcrypto/bio/bss_conn.c
100
static int conn_puts(BIO *h, const char *str);
lib/libcrypto/bio/bss_conn.c
574
conn_puts(BIO *bp, const char *str)
lib/libcrypto/bio/bss_conn.c
578
n = strlen(str);
lib/libcrypto/bio/bss_conn.c
579
ret = conn_write(bp, str, n);
lib/libcrypto/bio/bss_conn.c
584
BIO_new_connect(const char *str)
lib/libcrypto/bio/bss_conn.c
591
if (BIO_set_conn_hostname(ret, str))
lib/libcrypto/bio/bss_dgram.c
625
dgram_puts(BIO *bp, const char *str)
lib/libcrypto/bio/bss_dgram.c
629
n = strlen(str);
lib/libcrypto/bio/bss_dgram.c
630
ret = dgram_write(bp, str, n);
lib/libcrypto/bio/bss_dgram.c
82
static int dgram_puts(BIO *h, const char *str);
lib/libcrypto/bio/bss_fd.c
219
fd_puts(BIO *bp, const char *str)
lib/libcrypto/bio/bss_fd.c
223
n = strlen(str);
lib/libcrypto/bio/bss_fd.c
224
ret = fd_write(bp, str, n);
lib/libcrypto/bio/bss_fd.c
72
static int fd_puts(BIO *h, const char *str);
lib/libcrypto/bio/bss_file.c
315
file_puts(BIO *bp, const char *str)
lib/libcrypto/bio/bss_file.c
319
n = strlen(str);
lib/libcrypto/bio/bss_file.c
320
ret = file_write(bp, str, n);
lib/libcrypto/bio/bss_file.c
97
static int file_puts(BIO *h, const char *str);
lib/libcrypto/bio/bss_file.c
98
static int file_gets(BIO *h, char *str, int size);
lib/libcrypto/bio/bss_null.c
156
null_puts(BIO *bp, const char *str)
lib/libcrypto/bio/bss_null.c
158
if (str == NULL)
lib/libcrypto/bio/bss_null.c
160
return (strlen(str));
lib/libcrypto/bio/bss_null.c
69
static int null_puts(BIO *h, const char *str);
lib/libcrypto/bio/bss_null.c
70
static int null_gets(BIO *h, char *str, int size);
lib/libcrypto/bio/bss_sock.c
207
sock_puts(BIO *bp, const char *str)
lib/libcrypto/bio/bss_sock.c
211
n = strlen(str);
lib/libcrypto/bio/bss_sock.c
212
ret = sock_write(bp, str, n);
lib/libcrypto/bio/bss_sock.c
72
static int sock_puts(BIO *h, const char *str);
lib/libcrypto/bn/bn.h
364
int BN_hex2bn(BIGNUM **a, const char *str);
lib/libcrypto/bn/bn.h
365
int BN_dec2bn(BIGNUM **a, const char *str);
lib/libcrypto/bn/bn.h
366
int BN_asc2bn(BIGNUM **a, const char *str);
lib/libcrypto/buffer/buffer.c
100
BUF_MEM_grow(BUF_MEM *str, size_t len)
lib/libcrypto/buffer/buffer.c
102
return BUF_MEM_grow_clean(str, len);
lib/libcrypto/buffer/buffer.c
107
BUF_MEM_grow_clean(BUF_MEM *str, size_t len)
lib/libcrypto/buffer/buffer.c
112
if (str->max >= len) {
lib/libcrypto/buffer/buffer.c
113
if (str->length >= len)
lib/libcrypto/buffer/buffer.c
114
memset(&str->data[len], 0, str->length - len);
lib/libcrypto/buffer/buffer.c
115
str->length = len;
lib/libcrypto/buffer/buffer.c
125
if ((ret = recallocarray(str->data, str->max, n, 1)) == NULL) {
lib/libcrypto/buffer/buffer.c
129
str->data = ret;
lib/libcrypto/buffer/buffer.c
130
str->max = n;
lib/libcrypto/buffer/buffer.c
131
str->length = len;
lib/libcrypto/buffer/buffer.h
82
int BUF_MEM_grow(BUF_MEM *str, size_t len);
lib/libcrypto/buffer/buffer.h
83
int BUF_MEM_grow_clean(BUF_MEM *str, size_t len);
lib/libcrypto/cms/cms_ess.c
102
ASN1_STRING *str;
lib/libcrypto/cms/cms_ess.c
107
str = CMS_signed_get0_data_by_OBJ(si,
lib/libcrypto/cms/cms_ess.c
109
if (!str)
lib/libcrypto/cms/cms_ess.c
112
rr = ASN1_item_unpack(str, &CMS_ReceiptRequest_it);
lib/libcrypto/conf/conf_lib.c
178
char *str;
lib/libcrypto/conf/conf_lib.c
185
str = NCONF_get_string(conf, group, name);
lib/libcrypto/conf/conf_lib.c
187
if (str == NULL)
lib/libcrypto/conf/conf_lib.c
190
for (*result = 0; conf->meth->is_number(conf, *str); ) {
lib/libcrypto/conf/conf_lib.c
191
*result = (*result) * 10 + conf->meth->to_int(conf, *str);
lib/libcrypto/conf/conf_lib.c
192
str++;
lib/libcrypto/crypto.h
279
#define OPENSSL_strdup(str) CRYPTO_strdup((str),NULL,0)
lib/libcrypto/crypto.h
357
char *CRYPTO_strdup(const char *str, const char *file, int line);
lib/libcrypto/crypto_memory.c
48
CRYPTO_strdup(const char *str, const char *file, int line)
lib/libcrypto/crypto_memory.c
50
return strdup(str);
lib/libcrypto/ct/ct_x509v3.c
75
s2i_poison(const X509V3_EXT_METHOD *method, X509V3_CTX *ctx, const char *str)
lib/libcrypto/des/des.h
201
void DES_string_to_key(const char *str, DES_cblock *key);
lib/libcrypto/des/des.h
202
void DES_string_to_2keys(const char *str, DES_cblock *key1, DES_cblock *key2);
lib/libcrypto/des/des_key.c
418
DES_string_to_key(const char *str, DES_cblock *key)
lib/libcrypto/des/des_key.c
425
length = strlen(str);
lib/libcrypto/des/des_key.c
428
(*key)[i % 8] ^= (str[i] << 1);
lib/libcrypto/des/des_key.c
431
j = str[i];
lib/libcrypto/des/des_key.c
451
DES_cbc_cksum((const unsigned char *)str, key, length, &ks, key);
lib/libcrypto/des/des_key.c
458
DES_string_to_2keys(const char *str, DES_cblock *key1, DES_cblock *key2)
lib/libcrypto/des/des_key.c
466
length = strlen(str);
lib/libcrypto/des/des_key.c
470
(*key2)[i] = (*key1)[i] = (str[i] << 1);
lib/libcrypto/des/des_key.c
475
(*key2)[i % 8] ^= (str[i] << 1);
lib/libcrypto/des/des_key.c
477
(*key1)[i % 8] ^= (str[i] << 1);
lib/libcrypto/des/des_key.c
482
j = str[i];
lib/libcrypto/des/des_key.c
510
DES_cbc_cksum((const unsigned char *)str, key1, length, &ks, key1);
lib/libcrypto/des/des_key.c
518
DES_cbc_cksum((const unsigned char *)str, key2, length, &ks, key2);
lib/libcrypto/err/err.c
494
ERR_STRING_DATA *str = &SYS_str_reasons[i];
lib/libcrypto/err/err.c
496
str->error = i + 1;
lib/libcrypto/err/err.c
497
str->string = "unknown";
lib/libcrypto/err/err.c
499
if ((errstr = strerror((int)str->error)) != NULL) {
lib/libcrypto/err/err.c
501
str->string = strerror_tab[i];
lib/libcrypto/err/err.c
585
err_load_strings(int lib, ERR_STRING_DATA *str)
lib/libcrypto/err/err.c
587
while (str->error != 0) {
lib/libcrypto/err/err.c
589
str->error |= ERR_PACK(lib, 0, 0);
lib/libcrypto/err/err.c
590
err_set_item(str);
lib/libcrypto/err/err.c
591
str++;
lib/libcrypto/err/err.c
596
err_load_const_strings(const ERR_STRING_DATA *str)
lib/libcrypto/err/err.c
598
while (str->error != 0) {
lib/libcrypto/err/err.c
599
err_set_item(str);
lib/libcrypto/err/err.c
600
str++;
lib/libcrypto/err/err.c
699
ERR_load_strings(int lib, ERR_STRING_DATA *str)
lib/libcrypto/err/err.c
702
err_load_strings(lib, str);
lib/libcrypto/err/err.c
707
ERR_load_const_strings(const ERR_STRING_DATA *str)
lib/libcrypto/err/err.c
710
err_load_const_strings(str);
lib/libcrypto/err/err.c
714
ERR_unload_strings(int lib, ERR_STRING_DATA *str)
lib/libcrypto/err/err.c
719
while (str->error) {
lib/libcrypto/err/err.c
721
str->error |= ERR_PACK(lib, 0, 0);
lib/libcrypto/err/err.c
722
err_del_item(str);
lib/libcrypto/err/err.c
723
str++;
lib/libcrypto/err/err.h
299
void ERR_print_errors_cb(int (*cb)(const char *str, size_t len, void *u),
lib/libcrypto/err/err.h
306
void ERR_load_strings(int lib, ERR_STRING_DATA *str);
lib/libcrypto/err/err.h
307
void ERR_unload_strings(int lib, ERR_STRING_DATA *str);
lib/libcrypto/err/err_local.h
119
void ERR_load_const_strings(const ERR_STRING_DATA *str);
lib/libcrypto/err/err_prn.c
109
print_bio(const char *str, size_t len, void *bp)
lib/libcrypto/err/err_prn.c
111
return BIO_write(bp, str, len);
lib/libcrypto/err/err_prn.c
72
ERR_print_errors_cb(int (*cb)(const char *str, size_t len, void *u), void *u)
lib/libcrypto/err/err_prn.c
94
print_fp(const char *str, size_t len, void *fp)
lib/libcrypto/err/err_prn.c
98
return fprintf(fp, "%.*s", (int)len, str);
lib/libcrypto/evp/bio_b64.c
569
b64_puts(BIO *b, const char *str)
lib/libcrypto/evp/bio_b64.c
571
return b64_write(b, str, strlen(str));
lib/libcrypto/evp/bio_b64.c
71
static int b64_puts(BIO *h, const char *str);
lib/libcrypto/evp/bio_md.c
74
static int md_gets(BIO *h, char *str, int size);
lib/libcrypto/evp/evp.h
775
int EVP_PKEY_set_type_str(EVP_PKEY *pkey, const char *str, int len);
lib/libcrypto/evp/evp.h
856
const char *str, int len);
lib/libcrypto/evp/evp_local.h
362
int EVP_PKEY_CTX_str2ctrl(EVP_PKEY_CTX *ctx, int cmd, const char *str);
lib/libcrypto/evp/p_lib.c
203
EVP_PKEY_asn1_find_str(ENGINE **engine, const char *str, int len)
lib/libcrypto/evp/p_lib.c
214
str_len = strlen(str);
lib/libcrypto/evp/p_lib.c
224
if (strncasecmp(ameth->pem_str, str, str_len) == 0)
lib/libcrypto/evp/p_lib.c
450
EVP_PKEY_set_type_str(EVP_PKEY *pkey, const char *str, int len)
lib/libcrypto/evp/p_lib.c
456
if ((ameth = EVP_PKEY_asn1_find_str(NULL, str, len)) == NULL) {
lib/libcrypto/evp/pmeth_lib.c
268
EVP_PKEY_CTX_str2ctrl(EVP_PKEY_CTX *ctx, int cmd, const char *str)
lib/libcrypto/evp/pmeth_lib.c
272
if ((len = strlen(str)) > INT_MAX)
lib/libcrypto/evp/pmeth_lib.c
275
return ctx->pmeth->ctrl(ctx, cmd, len, (void *)str);
lib/libcrypto/pem/pem.h
151
#define IMPLEMENT_PEM_read_fp(name, type, str, asn1) \
lib/libcrypto/pem/pem.h
154
return PEM_ASN1_read((d2i_of_void *)d2i_##asn1, str,fp,(void **)x,cb,u); \
lib/libcrypto/pem/pem.h
157
#define IMPLEMENT_PEM_write_fp(name, type, str, asn1) \
lib/libcrypto/pem/pem.h
160
return PEM_ASN1_write((i2d_of_void *)i2d_##asn1,str,fp,x,NULL,NULL,0,NULL,NULL); \
lib/libcrypto/pem/pem.h
163
#define IMPLEMENT_PEM_write_fp_const(name, type, str, asn1) \
lib/libcrypto/pem/pem.h
166
return PEM_ASN1_write((i2d_of_void *)i2d_##asn1,str,fp,(void *)x,NULL,NULL,0,NULL,NULL); \
lib/libcrypto/pem/pem.h
169
#define IMPLEMENT_PEM_write_cb_fp(name, type, str, asn1) \
lib/libcrypto/pem/pem.h
174
return PEM_ASN1_write((i2d_of_void *)i2d_##asn1,str,fp,x,enc,kstr,klen,cb,u); \
lib/libcrypto/pem/pem.h
177
#define IMPLEMENT_PEM_write_cb_fp_const(name, type, str, asn1) \
lib/libcrypto/pem/pem.h
182
return PEM_ASN1_write((i2d_of_void *)i2d_##asn1,str,fp,x,enc,kstr,klen,cb,u); \
lib/libcrypto/pem/pem.h
186
#define IMPLEMENT_PEM_read_bio(name, type, str, asn1) \
lib/libcrypto/pem/pem.h
189
return PEM_ASN1_read_bio((d2i_of_void *)d2i_##asn1, str,bp,(void **)x,cb,u); \
lib/libcrypto/pem/pem.h
192
#define IMPLEMENT_PEM_write_bio(name, type, str, asn1) \
lib/libcrypto/pem/pem.h
195
return PEM_ASN1_write_bio((i2d_of_void *)i2d_##asn1,str,bp,x,NULL,NULL,0,NULL,NULL); \
lib/libcrypto/pem/pem.h
198
#define IMPLEMENT_PEM_write_bio_const(name, type, str, asn1) \
lib/libcrypto/pem/pem.h
201
return PEM_ASN1_write_bio((i2d_of_void *)i2d_##asn1,str,bp,(void *)x,NULL,NULL,0,NULL,NULL); \
lib/libcrypto/pem/pem.h
204
#define IMPLEMENT_PEM_write_cb_bio(name, type, str, asn1) \
lib/libcrypto/pem/pem.h
208
return PEM_ASN1_write_bio((i2d_of_void *)i2d_##asn1,str,bp,x,enc,kstr,klen,cb,u); \
lib/libcrypto/pem/pem.h
211
#define IMPLEMENT_PEM_write_cb_bio_const(name, type, str, asn1) \
lib/libcrypto/pem/pem.h
215
return PEM_ASN1_write_bio((i2d_of_void *)i2d_##asn1,str,bp,(void *)x,enc,kstr,klen,cb,u); \
lib/libcrypto/pem/pem.h
218
#define IMPLEMENT_PEM_write(name, type, str, asn1) \
lib/libcrypto/pem/pem.h
219
IMPLEMENT_PEM_write_bio(name, type, str, asn1) \
lib/libcrypto/pem/pem.h
220
IMPLEMENT_PEM_write_fp(name, type, str, asn1)
lib/libcrypto/pem/pem.h
222
#define IMPLEMENT_PEM_write_const(name, type, str, asn1) \
lib/libcrypto/pem/pem.h
223
IMPLEMENT_PEM_write_bio_const(name, type, str, asn1) \
lib/libcrypto/pem/pem.h
224
IMPLEMENT_PEM_write_fp_const(name, type, str, asn1)
lib/libcrypto/pem/pem.h
226
#define IMPLEMENT_PEM_write_cb(name, type, str, asn1) \
lib/libcrypto/pem/pem.h
227
IMPLEMENT_PEM_write_cb_bio(name, type, str, asn1) \
lib/libcrypto/pem/pem.h
228
IMPLEMENT_PEM_write_cb_fp(name, type, str, asn1)
lib/libcrypto/pem/pem.h
230
#define IMPLEMENT_PEM_write_cb_const(name, type, str, asn1) \
lib/libcrypto/pem/pem.h
231
IMPLEMENT_PEM_write_cb_bio_const(name, type, str, asn1) \
lib/libcrypto/pem/pem.h
232
IMPLEMENT_PEM_write_cb_fp_const(name, type, str, asn1)
lib/libcrypto/pem/pem.h
234
#define IMPLEMENT_PEM_read(name, type, str, asn1) \
lib/libcrypto/pem/pem.h
235
IMPLEMENT_PEM_read_bio(name, type, str, asn1) \
lib/libcrypto/pem/pem.h
236
IMPLEMENT_PEM_read_fp(name, type, str, asn1)
lib/libcrypto/pem/pem.h
238
#define IMPLEMENT_PEM_rw(name, type, str, asn1) \
lib/libcrypto/pem/pem.h
239
IMPLEMENT_PEM_read(name, type, str, asn1) \
lib/libcrypto/pem/pem.h
240
IMPLEMENT_PEM_write(name, type, str, asn1)
lib/libcrypto/pem/pem.h
242
#define IMPLEMENT_PEM_rw_const(name, type, str, asn1) \
lib/libcrypto/pem/pem.h
243
IMPLEMENT_PEM_read(name, type, str, asn1) \
lib/libcrypto/pem/pem.h
244
IMPLEMENT_PEM_write_const(name, type, str, asn1)
lib/libcrypto/pem/pem.h
246
#define IMPLEMENT_PEM_rw_cb(name, type, str, asn1) \
lib/libcrypto/pem/pem.h
247
IMPLEMENT_PEM_read(name, type, str, asn1) \
lib/libcrypto/pem/pem.h
248
IMPLEMENT_PEM_write_cb(name, type, str, asn1)
lib/libcrypto/pem/pem.h
360
void PEM_dek_info(char *buf, const char *type, int len, char *str);
lib/libcrypto/pem/pem_lib.c
132
const char *str;
lib/libcrypto/pem/pem_lib.c
135
str = "ENCRYPTED";
lib/libcrypto/pem/pem_lib.c
137
str = "MIC-CLEAR";
lib/libcrypto/pem/pem_lib.c
139
str = "MIC-ONLY";
lib/libcrypto/pem/pem_lib.c
141
str = "BAD-TYPE";
lib/libcrypto/pem/pem_lib.c
144
strlcat(buf, str, PEM_BUFSIZE);
lib/libcrypto/pem/pem_lib.c
150
PEM_dek_info(char *buf, const char *type, int len, char *str)
lib/libcrypto/pem/pem_lib.c
163
buf[j + i * 2] = map[(str[i] >> 4) & 0x0f];
lib/libcrypto/pem/pem_lib.c
164
buf[j + i * 2 + 1] = map[(str[i]) & 0x0f];
lib/libcrypto/rsa/rsa_ameth.c
149
ASN1_STRING *str = NULL;
lib/libcrypto/rsa/rsa_ameth.c
155
if (!rsa_param_encode(pkey, &str, &strtype))
lib/libcrypto/rsa/rsa_ameth.c
163
if (!X509_PUBKEY_set0_param(pk, aobj, strtype, str, penc, penclen))
lib/libcrypto/rsa/rsa_ameth.c
169
ASN1_STRING_free(str);
lib/libcrypto/rsa/rsa_ameth.c
241
ASN1_STRING *str = NULL;
lib/libcrypto/rsa/rsa_ameth.c
247
if (!rsa_param_encode(pkey, &str, &strtype))
lib/libcrypto/rsa/rsa_ameth.c
256
if (!PKCS8_pkey_set0(p8, aobj, 0, strtype, str, rk, rklen)) {
lib/libcrypto/rsa/rsa_ameth.c
264
ASN1_STRING_free(str);
lib/libcrypto/rsa/rsa_ameth.c
449
char *str;
lib/libcrypto/rsa/rsa_ameth.c
466
str = "modulus:";
lib/libcrypto/rsa/rsa_ameth.c
471
str = "Modulus:";
lib/libcrypto/rsa/rsa_ameth.c
474
if (!bn_printf(bp, x->n, off, "%s", str))
lib/libcrypto/ui/ui_lib.c
411
print_error(const char *str, size_t len, void *arg)
lib/libcrypto/ui/ui_lib.c
418
uis.out_string = str;
lib/libcrypto/x509/x509.h
337
NETSCAPE_SPKI * NETSCAPE_SPKI_b64_decode(const char *str, int len);
lib/libcrypto/x509/x509_ia5.c
250
s2i_ASN1_IA5STRING(X509V3_EXT_METHOD *method, X509V3_CTX *ctx, char *str)
lib/libcrypto/x509/x509_ia5.c
253
if (!str) {
lib/libcrypto/x509/x509_ia5.c
259
if (!ASN1_STRING_set((ASN1_STRING *)ia5, (unsigned char*)str,
lib/libcrypto/x509/x509_ia5.c
260
strlen(str))) {
lib/libcrypto/x509/x509_ia5.c
70
X509V3_CTX *ctx, char *str);
lib/libcrypto/x509/x509_obj.c
74
const char *str;
lib/libcrypto/x509/x509_obj.c
80
if ((str = OBJ_nid2sn(nid)) != NULL)
lib/libcrypto/x509/x509_obj.c
81
return CBB_add_bytes(cbb, str, strlen(str));
lib/libcrypto/x509/x509_obj.c
82
if ((str = OBJ_nid2ln(nid)) != NULL)
lib/libcrypto/x509/x509_obj.c
83
return CBB_add_bytes(cbb, str, strlen(str));
lib/libcrypto/x509/x509_ocsp.c
392
const char *str)
lib/libcrypto/x509/x509_ocsp.c
94
const char *str);
lib/libcrypto/x509/x509_skey.c
102
const char *str)
lib/libcrypto/x509/x509_skey.c
112
if (!(oct->data = string_to_hex(str, &length))) {
lib/libcrypto/x509/x509_skey.c
124
s2i_skey_id(X509V3_EXT_METHOD *method, X509V3_CTX *ctx, char *str)
lib/libcrypto/x509/x509_skey.c
131
if (strcmp(str, "hash"))
lib/libcrypto/x509/x509_skey.c
132
return s2i_ASN1_OCTET_STRING(method, ctx, str);
lib/libcrypto/x509/x509_skey.c
68
X509V3_CTX *ctx, char *str);
lib/libcrypto/x509/x509_utl.c
1136
ASN1_STRING *str;
lib/libcrypto/x509/x509_utl.c
1139
if ((str = X509_NAME_ENTRY_get_data(ne)) == NULL)
lib/libcrypto/x509/x509_utl.c
1142
if ((rv = do_check_string(str, -1, equal, flags,
lib/libcrypto/x509/x509_utl.c
554
string_to_hex(const char *str, long *len)
lib/libcrypto/x509/x509_utl.c
567
if (str == NULL) {
lib/libcrypto/x509/x509_utl.c
572
CBS_init(&cbs, str, strlen(str));
lib/libcrypto/x509/x509_utl.c
723
str_free(OPENSSL_STRING str)
lib/libcrypto/x509/x509_utl.c
725
free(str);
lib/libcrypto/x509/x509_utl.c
84
static void str_free(OPENSSL_STRING str);
lib/libcrypto/x509/x509spki.c
101
spki_len = EVP_DecodeBlock(spki_der, (const unsigned char *)str, len);
lib/libcrypto/x509/x509spki.c
88
NETSCAPE_SPKI_b64_decode(const char *str, int len)
lib/libcrypto/x509/x509spki.c
96
len = strlen(str);
lib/libcrypto/x509/x509v3.h
506
X509V3_CTX *ctx, const char *str);
lib/libcrypto/x509/x509v3.h
646
unsigned char *string_to_hex(const char *str, long *len);
lib/libcrypto/x509/x509v3.h
89
struct v3_ext_ctx *ctx, const char *str);
lib/libcrypto/x509/x509v3.h
93
struct v3_ext_ctx *ctx, const char *str);
lib/libcurses/base/define_key.c
42
NCURSES_SP_NAME(define_key) (NCURSES_SP_DCLx const char *str, int keycode)
lib/libcurses/base/define_key.c
46
T((T_CALLED("define_key(%p, %s,%d)"), (void *) SP_PARM, _nc_visbuf(str), keycode));
lib/libcurses/base/define_key.c
58
if (str != 0) {
lib/libcurses/base/define_key.c
59
NCURSES_SP_NAME(define_key) (NCURSES_SP_ARGx str, 0);
lib/libcurses/base/define_key.c
64
if (str != 0) {
lib/libcurses/base/define_key.c
65
if (NCURSES_SP_NAME(key_defined) (NCURSES_SP_ARGx str) == 0) {
lib/libcurses/base/define_key.c
66
if (_nc_add_to_try(&(SP_PARM->_keytry), str, ukey) == OK) {
lib/libcurses/base/define_key.c
76
while (_nc_remove_string(&(SP_PARM->_keytry), str))
lib/libcurses/base/define_key.c
84
define_key(const char *str, int keycode)
lib/libcurses/base/define_key.c
86
return NCURSES_SP_NAME(define_key) (CURRENT_SCREEN, str, keycode);
lib/libcurses/base/key_defined.c
42
find_definition(TRIES * tree, const char *str)
lib/libcurses/base/key_defined.c
47
if (VALID_STRING(str) && *str != '\0') {
lib/libcurses/base/key_defined.c
49
if (UChar(*str) == UChar(ptr->ch)) {
lib/libcurses/base/key_defined.c
50
if (str[1] == '\0' && ptr->child != 0) {
lib/libcurses/base/key_defined.c
52
} else if ((result = find_definition(ptr->child, str + 1))
lib/libcurses/base/key_defined.c
55
} else if (str[1] == '\0') {
lib/libcurses/base/key_defined.c
72
NCURSES_SP_NAME(key_defined) (NCURSES_SP_DCLx const char *str)
lib/libcurses/base/key_defined.c
76
T((T_CALLED("key_defined(%p, %s)"), (void *) SP_PARM, _nc_visbuf(str)));
lib/libcurses/base/key_defined.c
77
if (SP_PARM != 0 && str != 0) {
lib/libcurses/base/key_defined.c
78
code = find_definition(SP_PARM->_keytry, str);
lib/libcurses/base/key_defined.c
86
key_defined(const char *str)
lib/libcurses/base/key_defined.c
88
return NCURSES_SP_NAME(key_defined) (CURRENT_SCREEN, str);
lib/libcurses/base/lib_addstr.c
100
const chtype *str;
lib/libcurses/base/lib_addstr.c
102
for (str = (const chtype *) astr; *str != 0; str++)
lib/libcurses/base/lib_addstr.c
227
waddnwstr(WINDOW *win, const wchar_t *str, int n)
lib/libcurses/base/lib_addstr.c
231
T((T_CALLED("waddnwstr(%p,%s,%d)"), (void *) win, _nc_viswbufn(str, n), n));
lib/libcurses/base/lib_addstr.c
233
if (win && (str != 0)) {
lib/libcurses/base/lib_addstr.c
239
((n > 0) ? n : (int) wcslen(str))));
lib/libcurses/base/lib_addstr.c
242
while ((*str != L('\0')) && (n-- > 0)) {
lib/libcurses/base/lib_addstr.c
244
TR(TRACE_VIRTPUT, ("*str[0] = %#lx", (unsigned long) *str));
lib/libcurses/base/lib_addstr.c
245
SetChar(ch, *str++, A_NORMAL);
lib/libcurses/base/lib_addstr.c
55
const char *str = astr;
lib/libcurses/base/lib_addstr.c
60
if (win && (str != 0)) {
lib/libcurses/base/lib_addstr.c
66
((n > 0) ? n : (int) strlen(str))));
lib/libcurses/base/lib_addstr.c
69
while ((*str != '\0') && (n-- > 0)) {
lib/libcurses/base/lib_addstr.c
71
TR(TRACE_VIRTPUT, ("*str = %#o", UChar(*str)));
lib/libcurses/base/lib_addstr.c
72
SetChar(ch, UChar(*str++), A_NORMAL);
lib/libcurses/base/lib_getstr.c
108
oldstr = str;
lib/libcurses/base/lib_getstr.c
140
if (str > oldstr) {
lib/libcurses/base/lib_getstr.c
141
str = WipeOut(win, y, x, oldstr, str, save_flags._echo);
lib/libcurses/base/lib_getstr.c
144
while (str > oldstr) {
lib/libcurses/base/lib_getstr.c
145
str = WipeOut(win, y, x, oldstr, str, save_flags._echo);
lib/libcurses/base/lib_getstr.c
148
|| (str - oldstr >= maxlen)) {
lib/libcurses/base/lib_getstr.c
151
*str++ = (char) ch;
lib/libcurses/base/lib_getstr.c
162
str = WipeOut(win, y, x, oldstr, str, save_flags._echo);
lib/libcurses/base/lib_getstr.c
196
*str = '\0';
lib/libcurses/base/lib_getstr.c
216
wgetnstr(WINDOW *win, char *str, int maxlen)
lib/libcurses/base/lib_getstr.c
219
str,
lib/libcurses/base/lib_getstr.c
77
char *str,
lib/libcurses/base/lib_getstr.c
90
T((T_CALLED("wgetnstr(%p,%p,%d)"), (void *) win, (void *) str, maxlen));
lib/libcurses/base/lib_getstr.c
92
if (!win || !str)
lib/libcurses/base/lib_inchstr.c
50
winchnstr(WINDOW *win, chtype *str, int n)
lib/libcurses/base/lib_inchstr.c
54
T((T_CALLED("winchnstr(%p,%p,%d)"), (void *) win, (void *) str, n));
lib/libcurses/base/lib_inchstr.c
56
if (!win || !str) {
lib/libcurses/base/lib_inchstr.c
64
str[i] = (((chtype) CharOf(text[col + i]) & A_CHARTEXT) |
lib/libcurses/base/lib_inchstr.c
67
str[i] = (chtype) 0;
lib/libcurses/base/lib_insnstr.c
52
const unsigned char *str = (const unsigned char *) s;
lib/libcurses/base/lib_insnstr.c
56
if (win != 0 && str != 0) {
lib/libcurses/base/lib_insnstr.c
88
for (cp = str; (n <= 0 || (cp - str) < n) && *cp; cp++) {
lib/libcurses/base/lib_instr.c
103
str[i++] = tmp[i3];
lib/libcurses/base/lib_instr.c
114
str[i++] = (char) CharOf(text[col]);
lib/libcurses/base/lib_instr.c
120
str[i] = '\0'; /* SVr4 does not seem to count the null */
lib/libcurses/base/lib_instr.c
122
T(("winnstr returns %s", _nc_visbuf(str)));
lib/libcurses/base/lib_instr.c
50
winnstr(WINDOW *win, char *str, int n)
lib/libcurses/base/lib_instr.c
54
T((T_CALLED("winnstr(%p,%p,%d)"), (void *) win, str, n));
lib/libcurses/base/lib_instr.c
56
if (!win || !str) {
lib/libcurses/base/lib_slkset.c
100
numchrs = (int) (p - str);
lib/libcurses/base/lib_slkset.c
105
numcols = (int) (p - str);
lib/libcurses/base/lib_slkset.c
112
if ((slk->ent[i].ent_text = strdup(str)) == 0)
lib/libcurses/base/lib_slkset.c
60
const char *str = astr;
lib/libcurses/base/lib_slkset.c
63
T((T_CALLED("slk_set(%p, %d, \"%s\", %d)"), (void *) SP_PARM, i, str, format));
lib/libcurses/base/lib_slkset.c
72
if (str == 0)
lib/libcurses/base/lib_slkset.c
73
str = "";
lib/libcurses/base/lib_slkset.c
77
while (isspace(UChar(*str)))
lib/libcurses/base/lib_slkset.c
78
str++; /* skip over leading spaces */
lib/libcurses/base/lib_slkset.c
79
p = str;
lib/libcurses/base/vsscanf.c
167
vsscanf(const char *str, const char *format, va_list ap)
lib/libcurses/base/vsscanf.c
176
strbuf._ptr = strbuf._base = (unsigned char *) str;
lib/libcurses/base/vsscanf.c
177
strbuf._cnt = strlen(str);
lib/libcurses/base/vsscanf.c
192
_nc_visbuf2(1, str),
lib/libcurses/base/vsscanf.c
337
_nc_visbuf2(1, str + consumed),
lib/libcurses/base/vsscanf.c
339
if (sscanf(str + consumed, my_fmt, pointer, &eaten) > 0)
lib/libcurses/capdefaults.c
53
#define EXTRACT_DELAY(str) \
lib/libcurses/capdefaults.c
54
(short) (strp = strchr(str, '*'), strp ? atoi(strp+1) : 0)
lib/libcurses/curses.h
1255
#define waddstr(win,str) waddnstr(win,str,-1)
lib/libcurses/curses.h
1256
#define waddchstr(win,str) waddchnstr(win,str,-1)
lib/libcurses/curses.h
1269
#define addchnstr(str,n) waddchnstr(stdscr,(str),(n))
lib/libcurses/curses.h
1270
#define addchstr(str) waddchstr(stdscr,(str))
lib/libcurses/curses.h
1271
#define addnstr(str,n) waddnstr(stdscr,(str),(n))
lib/libcurses/curses.h
1272
#define addstr(str) waddnstr(stdscr,(str),-1)
lib/libcurses/curses.h
1292
#define getstr(str) wgetstr(stdscr,(str))
lib/libcurses/curses.h
1318
#define mvwaddchnstr(win,y,x,str,n) (wmove((win),(y),(x)) == ERR ? ERR : waddchnstr((win),(str),(n)))
lib/libcurses/curses.h
1319
#define mvwaddchstr(win,y,x,str) (wmove((win),(y),(x)) == ERR ? ERR : waddchnstr((win),(str),-1))
lib/libcurses/curses.h
1320
#define mvwaddnstr(win,y,x,str,n) (wmove((win),(y),(x)) == ERR ? ERR : waddnstr((win),(str),(n)))
lib/libcurses/curses.h
1321
#define mvwaddstr(win,y,x,str) (wmove((win),(y),(x)) == ERR ? ERR : waddnstr((win),(str),-1))
lib/libcurses/curses.h
1325
#define mvwgetnstr(win,y,x,str,n) (wmove((win),(y),(x)) == ERR ? ERR : wgetnstr((win),(str),(n)))
lib/libcurses/curses.h
1326
#define mvwgetstr(win,y,x,str) (wmove((win),(y),(x)) == ERR ? ERR : wgetstr((win),(str)))
lib/libcurses/curses.h
1339
#define mvaddchnstr(y,x,str,n) mvwaddchnstr(stdscr,(y),(x),(str),(n))
lib/libcurses/curses.h
1340
#define mvaddchstr(y,x,str) mvwaddchstr(stdscr,(y),(x),(str))
lib/libcurses/curses.h
1341
#define mvaddnstr(y,x,str,n) mvwaddnstr(stdscr,(y),(x),(str),(n))
lib/libcurses/curses.h
1342
#define mvaddstr(y,x,str) mvwaddstr(stdscr,(y),(x),(str))
lib/libcurses/curses.h
1346
#define mvgetnstr(y,x,str,n) mvwgetnstr(stdscr,(y),(x),(str),(n))
lib/libcurses/curses.h
1347
#define mvgetstr(y,x,str) mvwgetstr(stdscr,(y),(x),(str))
lib/libcurses/curses.h
1856
#define add_wchnstr(str,n) wadd_wchnstr(stdscr,(str),(n))
lib/libcurses/curses.h
1857
#define add_wchstr(str) wadd_wchstr(stdscr,(str))
lib/libcurses/curses.h
1879
#define wadd_wchstr(win,str) wadd_wchnstr((win),(str),-1)
lib/libcurses/curses.priv.h
2221
#define wgetnstr_events(win, str, maxlen, evl) wgetnstr(win, str, maxlen)
lib/libcurses/curses.priv.h
2272
extern int vsscanf(const char *str, const char *format, va_list __arg);
lib/libcurses/term.priv.h
72
char * str;
lib/libcurses/tinfo/add_tries.c
52
_nc_add_to_try(TRIES ** tree, const char *str, unsigned code)
lib/libcurses/tinfo/add_tries.c
55
unsigned const char *txt = (unsigned const char *) str;
lib/libcurses/tinfo/add_tries.c
58
(void *) *tree, _nc_visbuf(str), code));
lib/libcurses/tinfo/add_tries.c
59
if (!VALID_STRING(str) || *txt == '\0' || code == 0)
lib/libcurses/tinfo/captoinfo.c
538
bcd_expression(const char *str)
lib/libcurses/tinfo/captoinfo.c
545
if (sscanf(str, fmt, &ch1, &ch2) == 2
lib/libcurses/tinfo/captoinfo.c
621
_nc_infotocap(const char *cap GCC_UNUSED, const char *str, int const parameterized)
lib/libcurses/tinfo/captoinfo.c
642
_nc_visbuf(str)));
lib/libcurses/tinfo/captoinfo.c
645
padding = str + strlen(str) - 1;
lib/libcurses/tinfo/captoinfo.c
646
if (padding > str && *padding == '>') {
lib/libcurses/tinfo/captoinfo.c
647
if (padding > (str + 1) && *--padding == '/')
lib/libcurses/tinfo/captoinfo.c
651
if (padding > str && *padding == '<' && *--padding == '$')
lib/libcurses/tinfo/captoinfo.c
660
*str &&
lib/libcurses/tinfo/captoinfo.c
661
((trimmed == 0) || (str < trimmed)); str++) {
lib/libcurses/tinfo/captoinfo.c
665
if (str[0] == '^') {
lib/libcurses/tinfo/captoinfo.c
666
if (str[1] == '\0' || (str + 1) == trimmed) {
lib/libcurses/tinfo/captoinfo.c
668
++str;
lib/libcurses/tinfo/captoinfo.c
669
} else if (str[1] == '?') {
lib/libcurses/tinfo/captoinfo.c
676
++str;
lib/libcurses/tinfo/captoinfo.c
678
bufptr = save_char(bufptr, *str++);
lib/libcurses/tinfo/captoinfo.c
679
bufptr = save_char(bufptr, *str);
lib/libcurses/tinfo/captoinfo.c
681
} else if (str[0] == ':') {
lib/libcurses/tinfo/captoinfo.c
686
} else if (str[0] == '\\') {
lib/libcurses/tinfo/captoinfo.c
687
if (str[1] == '\0' || (str + 1) == trimmed) {
lib/libcurses/tinfo/captoinfo.c
689
++str;
lib/libcurses/tinfo/captoinfo.c
690
} else if (str[1] == '^') {
lib/libcurses/tinfo/captoinfo.c
692
++str;
lib/libcurses/tinfo/captoinfo.c
693
} else if (str[1] == ',') {
lib/libcurses/tinfo/captoinfo.c
694
bufptr = save_char(bufptr, *++str);
lib/libcurses/tinfo/captoinfo.c
698
bufptr = save_char(bufptr, *str++);
lib/libcurses/tinfo/captoinfo.c
699
xx1 = *str;
lib/libcurses/tinfo/captoinfo.c
707
if (!isoctal(UChar(str[1])))
lib/libcurses/tinfo/captoinfo.c
709
else if (str[1] && !isoctal(UChar(str[2])))
lib/libcurses/tinfo/captoinfo.c
717
&& ((pad == 2) || (str[1] == '0'))
lib/libcurses/tinfo/captoinfo.c
718
&& ((pad >= 1) || (str[2] == '0'))) {
lib/libcurses/tinfo/captoinfo.c
743
fixups[myfix].ch |= (str[n] - '0');
lib/libcurses/tinfo/captoinfo.c
792
if (isoctal(str[n])) {
lib/libcurses/tinfo/captoinfo.c
793
octal_fixup(myfix, str[n]);
lib/libcurses/tinfo/captoinfo.c
805
} else if (str[0] == '$' && str[1] == '<') { /* discard padding */
lib/libcurses/tinfo/captoinfo.c
806
str += 2;
lib/libcurses/tinfo/captoinfo.c
807
while (isdigit(UChar(*str))
lib/libcurses/tinfo/captoinfo.c
808
|| *str == '.'
lib/libcurses/tinfo/captoinfo.c
809
|| *str == '*'
lib/libcurses/tinfo/captoinfo.c
810
|| *str == '/'
lib/libcurses/tinfo/captoinfo.c
811
|| *str == '>')
lib/libcurses/tinfo/captoinfo.c
812
str++;
lib/libcurses/tinfo/captoinfo.c
813
--str;
lib/libcurses/tinfo/captoinfo.c
814
} else if (sscanf(str,
lib/libcurses/tinfo/captoinfo.c
820
if ((str = strstr(str, ";m")) == 0)
lib/libcurses/tinfo/captoinfo.c
822
++str;
lib/libcurses/tinfo/captoinfo.c
828
} else if (str[0] == '%' && str[1] == '%') { /* escaped '%' */
lib/libcurses/tinfo/captoinfo.c
830
++str;
lib/libcurses/tinfo/captoinfo.c
831
} else if (*str != '%' || (parameterized < 1)) {
lib/libcurses/tinfo/captoinfo.c
832
bufptr = save_char(bufptr, *str);
lib/libcurses/tinfo/captoinfo.c
833
} else if (sscanf(str, "%%?%%{%d}%%>%%t%%{%d}%%+%%;", &c1, &c2) == 2) {
lib/libcurses/tinfo/captoinfo.c
834
str = strchr(str, ';');
lib/libcurses/tinfo/captoinfo.c
836
} else if (sscanf(str, "%%?%%{%d}%%>%%t%%'%c'%%+%%;", &c1, &ch2) == 2) {
lib/libcurses/tinfo/captoinfo.c
837
str = strchr(str, ';');
lib/libcurses/tinfo/captoinfo.c
839
} else if (sscanf(str, "%%?%%'%c'%%>%%t%%{%d}%%+%%;", &ch1, &c2) == 2) {
lib/libcurses/tinfo/captoinfo.c
840
str = strchr(str, ';');
lib/libcurses/tinfo/captoinfo.c
842
} else if (sscanf(str, "%%?%%'%c'%%>%%t%%'%c'%%+%%;", &ch1, &ch2) == 2) {
lib/libcurses/tinfo/captoinfo.c
843
str = strchr(str, ';');
lib/libcurses/tinfo/captoinfo.c
845
} else if ((len = bcd_expression(str)) != 0) {
lib/libcurses/tinfo/captoinfo.c
846
str += len;
lib/libcurses/tinfo/captoinfo.c
848
} else if ((sscanf(str, "%%{%d}%%+%%%c", &c1, &ch2) == 2
lib/libcurses/tinfo/captoinfo.c
849
|| sscanf(str, "%%'%c'%%+%%%c", &ch1, &ch2) == 2)
lib/libcurses/tinfo/captoinfo.c
851
&& (cp = strchr(str, '+'))) {
lib/libcurses/tinfo/captoinfo.c
852
str = cp + 2;
lib/libcurses/tinfo/captoinfo.c
860
else if (strncmp(str, "%{2}%*%-", (size_t) 8) == 0) {
lib/libcurses/tinfo/captoinfo.c
861
str += 7;
lib/libcurses/tinfo/captoinfo.c
863
} else if (strncmp(str, "%{96}%^", (size_t) 7) == 0) {
lib/libcurses/tinfo/captoinfo.c
864
str += 6;
lib/libcurses/tinfo/captoinfo.c
868
} else if (strncmp(str, "%{127}%^", (size_t) 8) == 0) {
lib/libcurses/tinfo/captoinfo.c
869
str += 7;
lib/libcurses/tinfo/captoinfo.c
874
str++;
lib/libcurses/tinfo/captoinfo.c
875
switch (*str) {
lib/libcurses/tinfo/captoinfo.c
894
while (isdigit(UChar(*str))) {
lib/libcurses/tinfo/captoinfo.c
900
ch1 = *str++;
lib/libcurses/tinfo/captoinfo.c
931
if (strchr("oxX.", *str)) {
lib/libcurses/tinfo/captoinfo.c
958
str++;
lib/libcurses/tinfo/captoinfo.c
959
if (*str == '1')
lib/libcurses/tinfo/captoinfo.c
961
else if (*str == '2') {
lib/libcurses/tinfo/captoinfo.c
966
} else if (*str >= '3') {
lib/libcurses/tinfo/captoinfo.c
976
bufptr = save_char(bufptr, *str);
lib/libcurses/tinfo/captoinfo.c
986
assert(str != 0);
lib/libcurses/tinfo/captoinfo.c
987
if (str == 0 || *str == '\0')
lib/libcurses/tinfo/comp_expand.c
107
if (str[0] == S_QUOTE
lib/libcurses/tinfo/comp_expand.c
108
&& str[1] != '\\'
lib/libcurses/tinfo/comp_expand.c
109
&& REALPRINT(str + 1)
lib/libcurses/tinfo/comp_expand.c
110
&& str[2] == S_QUOTE) {
lib/libcurses/tinfo/comp_expand.c
112
"{%d}", str[1]);
lib/libcurses/tinfo/comp_expand.c
114
str += 2;
lib/libcurses/tinfo/comp_expand.c
116
buffer[bufp++] = *str;
lib/libcurses/tinfo/comp_expand.c
127
if (str[0] == L_BRACE
lib/libcurses/tinfo/comp_expand.c
128
&& isdigit(UChar(str[1]))) {
lib/libcurses/tinfo/comp_expand.c
130
long value = strtol(str + 1, &dst, 0);
lib/libcurses/tinfo/comp_expand.c
142
str = dst;
lib/libcurses/tinfo/comp_expand.c
144
buffer[bufp++] = *str;
lib/libcurses/tinfo/comp_expand.c
147
buffer[bufp++] = *str;
lib/libcurses/tinfo/comp_expand.c
151
if (*str == ',') /* minitel1 uses this */
lib/libcurses/tinfo/comp_expand.c
153
buffer[bufp++] = *str;
lib/libcurses/tinfo/comp_expand.c
162
} else if (ch == '\\' && tic_format && (str == srcp || str[-1] != '^')) {
lib/libcurses/tinfo/comp_expand.c
165
} else if (ch == ' ' && tic_format && (str == srcp ||
lib/libcurses/tinfo/comp_expand.c
166
trailing_spaces(str))) {
lib/libcurses/tinfo/comp_expand.c
172
} else if (REALPRINT(str)
lib/libcurses/tinfo/comp_expand.c
187
&& isdigit(UChar(str[1]))) {
lib/libcurses/tinfo/comp_expand.c
203
str++;
lib/libcurses/tinfo/comp_expand.c
69
const char *str = VALID_STRING(srcp) ? srcp : "\0\0";
lib/libcurses/tinfo/comp_expand.c
70
size_t need = (2 + strlen(str)) * 4;
lib/libcurses/tinfo/comp_expand.c
97
while ((ch = UChar(*str)) != 0) {
lib/libcurses/tinfo/comp_expand.c
98
if (ch == '%' && REALPRINT(str + 1)) {
lib/libcurses/tinfo/comp_expand.c
99
buffer[bufp++] = *str++;
lib/libcurses/tinfo/lib_ti.c
101
NCURSES_SP_NAME(tigetnum) (NCURSES_SP_DCLx const char *str)
lib/libcurses/tinfo/lib_ti.c
105
T((T_CALLED("tigetnum(%p, %s)"), (void *) SP_PARM, str));
lib/libcurses/tinfo/lib_ti.c
112
entry_ptr = _nc_find_type_entry(str, NUMBER, FALSE);
lib/libcurses/tinfo/lib_ti.c
121
if (same_name(str, capname)) {
lib/libcurses/tinfo/lib_ti.c
141
tigetnum(const char *str)
lib/libcurses/tinfo/lib_ti.c
143
return NCURSES_SP_NAME(tigetnum) (CURRENT_SCREEN, str);
lib/libcurses/tinfo/lib_ti.c
148
NCURSES_SP_NAME(tigetstr) (NCURSES_SP_DCLx const char *str)
lib/libcurses/tinfo/lib_ti.c
152
T((T_CALLED("tigetstr(%p, %s)"), (void *) SP_PARM, str));
lib/libcurses/tinfo/lib_ti.c
159
entry_ptr = _nc_find_type_entry(str, STRING, FALSE);
lib/libcurses/tinfo/lib_ti.c
168
if (same_name(str, capname)) {
lib/libcurses/tinfo/lib_ti.c
186
tigetstr(const char *str)
lib/libcurses/tinfo/lib_ti.c
188
return NCURSES_SP_NAME(tigetstr) (CURRENT_SCREEN, str);
lib/libcurses/tinfo/lib_ti.c
56
NCURSES_SP_NAME(tigetflag) (NCURSES_SP_DCLx const char *str)
lib/libcurses/tinfo/lib_ti.c
60
T((T_CALLED("tigetflag(%p, %s)"), (void *) SP_PARM, str));
lib/libcurses/tinfo/lib_ti.c
67
entry_ptr = _nc_find_type_entry(str, BOOLEAN, FALSE);
lib/libcurses/tinfo/lib_ti.c
76
if (same_name(str, capname)) {
lib/libcurses/tinfo/lib_ti.c
94
tigetflag(const char *str)
lib/libcurses/tinfo/lib_ti.c
96
return NCURSES_SP_NAME(tigetflag) (CURRENT_SCREEN, str);
lib/libcurses/tinfo/lib_tparm.c
313
TPS(stack)[TPS(stack_ptr)].data.str = x; \
lib/libcurses/tinfo/lib_tparm.c
348
&& TPS(stack)[TPS(stack_ptr)].data.str != 0) \
lib/libcurses/tinfo/lib_tparm.c
349
? TPS(stack)[TPS(stack_ptr)].data.str \
lib/libcurses/tinfo/write_entry.c
583
#define WRITE_STRING(str) (Write(str, sizeof(char), strlen(str) + 1) == strlen(str) + 1)
lib/libcurses/tty/lib_mvcur.c
610
char str[OPT_SIZE];
lib/libcurses/tty/lib_mvcur.c
634
(void) _nc_str_init(&check, str, sizeof(str));
lib/libcurses/tty/lib_mvcur.c
666
&& str[0] == '\0') {
lib/libcurses/tty/lib_mvcur.c
710
&& _nc_safe_strcat(_nc_str_copy(target, &save), str)) {
lib/libcurses/tty/lib_mvcur.c
727
(void) _nc_str_init(&check, str, sizeof(str));
lib/libcurses/tty/lib_mvcur.c
750
&& _nc_safe_strcat(_nc_str_copy(target, &save), str)) {
lib/libcurses/widechar/lib_get_wstr.c
101
T((T_CALLED("wgetn_wstr(%p,%p, %d)"), (void *) win, (void *) str, maxlen));
lib/libcurses/widechar/lib_get_wstr.c
89
wgetn_wstr(WINDOW *win, wint_t *str, int maxlen)
lib/libcurses/widechar/lib_get_wstr.c
96
wint_t *oldstr = str;
lib/libcurses/widechar/lib_get_wstr.c
97
wint_t *tmpstr = str;
lib/libcurses/widechar/lib_slk_wset.c
52
const wchar_t *str;
lib/libcurses/widechar/lib_slk_wset.c
61
str = astr;
lib/libcurses/widechar/lib_slk_wset.c
63
if ((arglen = wcsrtombs(NULL, &str, (size_t) 0, &state)) != (size_t) -1) {
lib/libcurses/widechar/lib_slk_wset.c
67
str = astr;
lib/libcurses/widechar/lib_slk_wset.c
68
if (wcsrtombs(mystr, &str, arglen, &state) != (size_t) -1) {
lib/libcurses/widechar/lib_wunctrl.c
46
static wchar_t str[CCHARW_MAX + 1], *wsp;
lib/libcurses/widechar/lib_wunctrl.c
56
for (wsp = str; *p; ++p) {
lib/libcurses/widechar/lib_wunctrl.c
60
result = str;
lib/libedit/TEST/tc1.c
206
err(1, "%d: %s", lastevent, ev.str);
lib/libedit/TEST/tc1.c
240
ev.num, ev.str);
lib/libedit/eln.c
374
el_insertstr(EditLine *el, const char *str)
lib/libedit/eln.c
376
return el_winsertstr(el, ct_decode_string(str, &el->el_lgcyconv));
lib/libedit/eln.c
60
el_push(EditLine *el, const char *str)
lib/libedit/eln.c
64
el_wpush(el, ct_decode_string(str, &el->el_lgcyconv));
lib/libedit/hist.c
156
const wchar_t *str;
lib/libedit/hist.c
166
for (str = HIST_LAST(el); str != NULL; str = HIST_PREV(el))
lib/libedit/hist.c
168
el->el_history.ev.num, ct_encode_string(str, &el->el_scratch));
lib/libedit/hist.c
214
return ct_decode_string((const char *)(const void *)ev.str,
lib/libedit/hist.h
58
fn, arg)) == -1) ? NULL : (el)->el_history.ev.str)
lib/libedit/histedit.h
191
const char *str;
lib/libedit/histedit.h
284
const wchar_t *str;
lib/libedit/history.c
1005
str = va_arg(va, const Char *);
lib/libedit/history.c
1006
if ((retval = HENTER(h, ev, str)) != -1)
lib/libedit/history.c
1011
str = va_arg(va, const Char *);
lib/libedit/history.c
1013
retval = HADD(h, ev, str);
lib/libedit/history.c
1131
((history_t *)h->h_ref)->cursor->ev.str = s;
lib/libedit/history.c
119
#define HENTER(h, ev, str) (*(h)->h_enter)((h)->h_ref, ev, str)
lib/libedit/history.c
120
#define HADD(h, ev, str) (*(h)->h_add)((h)->h_ref, ev, str)
lib/libedit/history.c
127
Char *str;
lib/libedit/history.c
199
evp->str = he_strerror(code);\
lib/libedit/history.c
406
history_def_add(void *p, TYPE(HistEvent) *ev, const Char *str)
lib/libedit/history.c
414
return history_def_enter(p, ev, str);
lib/libedit/history.c
415
len = Strlen(evp->str) + Strlen(str) + 1;
lib/libedit/history.c
421
(void) Strncpy(s, h->cursor->ev.str, len);
lib/libedit/history.c
423
(void) Strncat(s, str, len - Strlen(s) - 1);
lib/libedit/history.c
424
free(evp->str);
lib/libedit/history.c
425
evp->str = s;
lib/libedit/history.c
440
ev->str = Strdup(h->cursor->ev.str);
lib/libedit/history.c
459
ev->str = Strdup(h->cursor->ev.str);
lib/libedit/history.c
483
free(evp->str);
lib/libedit/history.c
493
history_def_insert(history_t *h, TYPE(HistEvent) *ev, const Char *str)
lib/libedit/history.c
499
if ((h->cursor->ev.str = h_strdup(str)) == NULL) {
lib/libedit/history.c
523
history_def_enter(void *p, TYPE(HistEvent) *ev, const Char *str)
lib/libedit/history.c
528
Strcmp(h->list.next->ev.str, str) == 0)
lib/libedit/history.c
531
if (history_def_insert(h, ev, str) == -1)
lib/libedit/history.c
561
h->list.ev.str = NULL;
lib/libedit/history.c
836
len = Strlen(ev.str) * 4 + 1;
lib/libedit/history.c
847
(void) strnvis(ptr, ct_encode_string(ev.str, &conv), max_size,
lib/libedit/history.c
932
history_prev_string(TYPE(History) *h, TYPE(HistEvent) *ev, const Char *str)
lib/libedit/history.c
934
size_t len = Strlen(str);
lib/libedit/history.c
938
if (Strncmp(str, ev->str, len) == 0)
lib/libedit/history.c
950
history_next_string(TYPE(History) *h, TYPE(HistEvent) *ev, const Char *str)
lib/libedit/history.c
952
size_t len = Strlen(str);
lib/libedit/history.c
956
if (Strncmp(str, ev->str, len) == 0)
lib/libedit/history.c
971
const Char *str;
lib/libedit/history.c
996
str = va_arg(va, const Char *);
lib/libedit/history.c
997
retval = HADD(h, ev, str);
lib/libedit/keymacro.c
140
keymacro_map_str(EditLine *el, wchar_t *str)
lib/libedit/keymacro.c
143
el->el_keymacro.val.str = str;
lib/libedit/keymacro.c
300
val->str = NULL;
lib/libedit/keymacro.c
311
node__try(EditLine *el, keymacro_node_t *ptr, const wchar_t *str,
lib/libedit/keymacro.c
315
if (ptr->ch != *str) {
lib/libedit/keymacro.c
319
if (xm->sibling->ch == *str)
lib/libedit/keymacro.c
322
xm->sibling = node__get(*str); /* setup new node */
lib/libedit/keymacro.c
325
if (*++str == '\0') {
lib/libedit/keymacro.c
337
if (ptr->val.str)
lib/libedit/keymacro.c
338
free(ptr->val.str);
lib/libedit/keymacro.c
351
if ((ptr->val.str = wcsdup(val->str)) == NULL)
lib/libedit/keymacro.c
361
ptr->next = node__get(*str); /* setup new node */
lib/libedit/keymacro.c
362
(void) node__try(el, ptr->next, str, val, ntype);
lib/libedit/keymacro.c
372
node__delete(EditLine *el, keymacro_node_t **inptr, const wchar_t *str)
lib/libedit/keymacro.c
379
if (ptr->ch != *str) {
lib/libedit/keymacro.c
383
if (xm->sibling->ch == *str)
lib/libedit/keymacro.c
390
if (*++str == '\0') {
lib/libedit/keymacro.c
400
node__delete(el, &ptr->next, str) == 1) {
lib/libedit/keymacro.c
436
if (ptr->val.str != NULL)
lib/libedit/keymacro.c
437
free(ptr->val.str);
lib/libedit/keymacro.c
460
ptr->val.str = NULL;
lib/libedit/keymacro.c
481
node_lookup(EditLine *el, const wchar_t *str, keymacro_node_t *ptr,
lib/libedit/keymacro.c
489
if (!str || *str == 0) {
lib/libedit/keymacro.c
495
if (ptr->ch == *str) {
lib/libedit/keymacro.c
503
return (node_lookup(el, str + 1, ptr->next,
lib/libedit/keymacro.c
507
if (str[1] == 0) {
lib/libedit/keymacro.c
520
return (node_lookup(el, str, ptr->sibling,
lib/libedit/keymacro.c
586
(void) keymacro__decode_str(val->str, unparsbuf,
lib/libedit/keymacro.c
627
keymacro__decode_str(const wchar_t *str, char *buf, size_t len,
lib/libedit/keymacro.c
637
if (*str == '\0') {
lib/libedit/keymacro.c
642
for (p = str; *p != 0; p++) {
lib/libedit/keymacro.h
46
wchar_t *str; /* If it is a string... */
lib/libedit/read.c
138
el_wpush(EditLine *el, const wchar_t *str)
lib/libedit/read.c
142
if (str != NULL && ma->level + 1 < EL_MAXMACRO) {
lib/libedit/read.c
144
if ((ma->macro[ma->level] = wcsdup(str)) != NULL)
lib/libedit/read.c
192
el_wpush(el, val.str);
lib/libedit/readline.c
1018
history_arg_extract(int start, int end, const char *str)
lib/libedit/readline.c
1023
arr = history_tokenize(str);
lib/libedit/readline.c
1075
history_tokenize(const char *str)
lib/libedit/readline.c
1081
for (i = 0; str[i];) {
lib/libedit/readline.c
1082
while (isspace((unsigned char) str[i]))
lib/libedit/readline.c
1085
for (; str[i];) {
lib/libedit/readline.c
1086
if (str[i] == '\\') {
lib/libedit/readline.c
1087
if (str[i+1] != '\0')
lib/libedit/readline.c
1089
} else if (str[i] == delim)
lib/libedit/readline.c
1092
(isspace((unsigned char) str[i]) ||
lib/libedit/readline.c
1093
strchr("()<>;&|$", str[i])))
lib/libedit/readline.c
1095
else if (!delim && strchr("'`\"", str[i]))
lib/libedit/readline.c
1096
delim = str[i];
lib/libedit/readline.c
1097
if (str[i])
lib/libedit/readline.c
1120
(void)strncpy(temp, &str[start], len);
lib/libedit/readline.c
1124
if (str[i])
lib/libedit/readline.c
1389
she.line = ev.str;
lib/libedit/readline.c
1443
he->line = ev.str;
lib/libedit/readline.c
1480
he->line = strdup(ev.str);
lib/libedit/readline.c
1564
size += strlen(ev.str) * sizeof(*ev.str);
lib/libedit/readline.c
1637
history_search(const char *str, int direction)
lib/libedit/readline.c
1648
if ((strp = strstr(ev.str, str)) != NULL)
lib/libedit/readline.c
1649
return (int)(strp - ev.str);
lib/libedit/readline.c
1662
history_search_prefix(const char *str, int direction)
lib/libedit/readline.c
1667
H_PREV_STR : H_NEXT_STR, str));
lib/libedit/readline.c
1676
history_search_pos(const char *str,
lib/libedit/readline.c
1693
if (strstr(ev.str, str))
lib/libedit/readline.c
201
rl_he.line = ev.str;
lib/libedit/readline.c
2145
rl_completion_matches(const char *str, rl_compentry_func_t *fun)
lib/libedit/readline.c
2155
while ((match = (*fun)(str, (int)(len - 1))) != NULL) {
lib/libedit/readline.c
2183
if (min == 0 && *str) {
lib/libedit/readline.c
2184
if ((list[0] = strdup(str)) == NULL)
lib/libedit/readline.c
462
_rl_compat_sub(const char *str, const char *what, const char *with,
lib/libedit/readline.c
469
len = strlen(str);
lib/libedit/readline.c
474
s = str;
lib/libedit/readline.c
487
s = str;
lib/libedit/readline.c
525
return ev.str;
lib/libedit/readline.c
618
rptr = ev.str;
lib/libedit/readline.c
654
char str[4];
lib/libedit/readline.c
660
str[0] = str[1] = '!';
lib/libedit/readline.c
661
str[2] = '0';
lib/libedit/readline.c
662
ptr = get_history_event(str, &idx, 0);
lib/libedit/readline.c
884
history_expand(char *str, char **output)
lib/libedit/readline.c
894
*output = strdup(str);
lib/libedit/readline.c
899
if (str[0] == history_subst_char) {
lib/libedit/readline.c
901
size_t sz = 4 + strlen(str) + 1;
lib/libedit/readline.c
908
(void)strlcpy((*output) + 4, str, sz - 4);
lib/libedit/readline.c
909
str = *output;
lib/libedit/readline.c
911
*output = strdup(str);
lib/libedit/readline.c
936
for (i = 0; str[i];) {
lib/libedit/readline.c
944
for (; str[j]; j++) {
lib/libedit/readline.c
945
if (str[j] == '\\' &&
lib/libedit/readline.c
946
str[j + 1] == history_expansion_char) {
lib/libedit/readline.c
947
size_t sz = strlen(&str[j]) + 1;
lib/libedit/readline.c
948
(void)strlcpy(&str[j], &str[j + 1], sz);
lib/libedit/readline.c
952
if (isspace((unsigned char) str[j])
lib/libedit/readline.c
953
|| str[j] == qchar)
lib/libedit/readline.c
956
if (str[j] == history_expansion_char
lib/libedit/readline.c
957
&& !strchr(history_no_expand_chars, str[j + 1])
lib/libedit/readline.c
959
(*history_inhibit_expansion_function)(str,
lib/libedit/readline.c
96
char *history_arg_extract(int start, int end, const char *str);
lib/libedit/readline.c
964
if (str[j] && loop_again) {
lib/libedit/readline.c
966
qchar = (j > 0 && str[j - 1] == '"' )? '"':0;
lib/libedit/readline.c
968
if (str[j] == history_expansion_char)
lib/libedit/readline.c
974
ADD_STRING(&str[start], len, 0);
lib/libedit/readline.c
976
if (str[i] == '\0' || str[i] != history_expansion_char) {
lib/libedit/readline.c
978
ADD_STRING(&str[i], len, 0);
lib/libedit/readline.c
985
ret = _history_expand_command (str, i, (j - i), &tmp);
lib/libedit/refresh.c
72
re_printstr(EditLine *el, const char *str, wchar_t *f, wchar_t *t)
lib/libedit/refresh.c
75
ELRE_DEBUG(1, (__F, "%s:\"", str));
lib/libedit/search.c
108
el_match(const wchar_t *str, const wchar_t *pat)
lib/libedit/search.c
122
if (wcsstr(str, pat) != 0)
lib/libedit/search.c
127
rv = regexec(&re, ct_encode_string(str, &conv), 0, NULL, 0) == 0;
lib/libedit/search.c
135
rv = regexec(re, ct_encode_string(str, &conv));
lib/libedit/search.c
145
return re_exec(ct_encode_string(str, &conv)) == 1;
lib/libedit/search.c
154
c_hmatch(EditLine *el, const wchar_t *str)
lib/libedit/search.c
158
el->el_search.patbuf, str);
lib/libedit/search.c
161
return el_match(str, el->el_search.patbuf);
lib/libedit/terminal.c
331
char **tmp, **str = &tlist[t - tstr];
lib/libedit/terminal.c
334
*str = NULL;
lib/libedit/terminal.c
339
tlen = *str == NULL ? 0 : strlen(*str);
lib/libedit/terminal.c
345
if (*str)
lib/libedit/terminal.c
346
(void) strlcpy(*str, cap, tlen + 1);
lib/libedit/terminal.c
354
(void) strlcpy(*str = &el->el_terminal.t_buf[
lib/libedit/terminal.c
365
if (*tmp != NULL && **tmp != '\0' && *tmp != *str) {
lib/libedit/terminal.c
380
(void) strlcpy(*str = &el->el_terminal.t_buf[el->el_terminal.t_loc],
lib/libedit/tokenizer.c
446
FUN(tok,str)(TYPE(Tokenizer) *tok, const Char *line, int *argc,
lib/libexpat/lib/xmlparse.c
284
const XML_Char *str;
lib/libexpat/lib/xmlparse.c
312
XML_Char *str; /* for character-level access (converted name) */
lib/libexpat/lib/xmlparse.c
3159
if (tag->name.str == tag->buf.str)
lib/libexpat/lib/xmlparse.c
3160
tag->name.str = (XML_Char *)temp;
lib/libexpat/lib/xmlparse.c
3166
= (XML_Char *)temp + (tag->name.localPart - tag->buf.str);
lib/libexpat/lib/xmlparse.c
3500
toPtr = tag->buf.str;
lib/libexpat/lib/xmlparse.c
3506
convLen = (int)(toPtr - tag->buf.str);
lib/libexpat/lib/xmlparse.c
3525
tag->name.str = tag->buf.str;
lib/libexpat/lib/xmlparse.c
3532
parser->m_startElementHandler(parser->m_handlerArg, tag->name.str,
lib/libexpat/lib/xmlparse.c
3547
name.str = poolStoreString(&parser->m_tempPool, enc, rawName,
lib/libexpat/lib/xmlparse.c
3549
if (! name.str)
lib/libexpat/lib/xmlparse.c
3560
parser->m_startElementHandler(parser->m_handlerArg, name.str,
lib/libexpat/lib/xmlparse.c
3567
parser->m_endElementHandler(parser->m_handlerArg, name.str);
lib/libexpat/lib/xmlparse.c
3613
uri = (XML_Char *)tag->name.str + tag->name.uriLen;
lib/libexpat/lib/xmlparse.c
3625
parser->m_endElementHandler(parser->m_handlerArg, tag->name.str);
lib/libexpat/lib/xmlparse.c
3847
= (ELEMENT_TYPE *)lookup(parser, &dtd->elementTypes, tagNamePtr->str, 0);
lib/libexpat/lib/xmlparse.c
3849
const XML_Char *name = poolCopyString(&dtd->pool, tagNamePtr->str);
lib/libexpat/lib/xmlparse.c
4228
localPart = tagNamePtr->str;
lib/libexpat/lib/xmlparse.c
4233
localPart = tagNamePtr->str;
lib/libexpat/lib/xmlparse.c
4278
if (p->name.str == binding->uri)
lib/libexpat/lib/xmlparse.c
4279
p->name.str = uri;
lib/libexpat/lib/xmlparse.c
4292
tagNamePtr->str = binding->uri;
lib/libexpat/lib/xmlparse.c
8341
XML_Char *str; /* the current string writing location */
lib/libexpat/lib/xmlparse.c
8422
str = (XML_Char *)&ret[dtd->scaffCount];
lib/libexpat/lib/xmlparse.c
8436
dest->name = str;
lib/libexpat/lib/xmlparse.c
8439
*str++ = *src;
lib/libexpat/tests/structdata.c
128
if (xcstrcmp(got->str, want->str) != 0) {
lib/libexpat/tests/structdata.c
137
got->str, want->data0, want->data1, want->data2, got->data0,
lib/libexpat/tests/structdata.c
153
free((void *)storage->entries[i].str);
lib/libexpat/tests/structdata.c
97
entry->str = xmlstrdup(s);
lib/libexpat/tests/structdata.h
43
const XML_Char *str;
lib/libfido2/src/cbor.c
200
cbor_string_copy(const cbor_item_t *item, char **str)
lib/libfido2/src/cbor.c
204
if (*str != NULL) {
lib/libfido2/src/cbor.c
216
(*str = malloc(len + 1)) == NULL)
lib/libfido2/src/cbor.c
219
memcpy(*str, cbor_string_handle(item), len);
lib/libfido2/src/cbor.c
220
(*str)[len] = '\0';
lib/libfido2/src/log.c
28
log_on_stderr(const char *str)
lib/libfido2/src/log.c
30
fprintf(stderr, "%s", str);
lib/libfido2/src/util.c
14
fido_to_uint64(const char *str, int base, uint64_t *out)
lib/libfido2/src/util.c
20
ull = strtoull(str, &ep, base);
lib/libfido2/src/util.c
21
if (str == ep || *ep != '\0')
lib/libform/frm_req_name.c
148
form_request_by_name(const char *str)
lib/libform/frm_req_name.c
155
T((T_CALLED("form_request_by_name(%s)"), _nc_visbuf(str)));
lib/libform/frm_req_name.c
157
if (str != 0 && (i = strlen(str)) != 0)
lib/libform/frm_req_name.c
163
memcpy(buf, str, i);
lib/libkeynote/keynote.y
154
key: str {
lib/libkeynote/keynote.y
299
afterhint: str { if (keynote_exceptionflag || keynote_donteval)
lib/libkeynote/keynote.y
31
%type <string> STRING VARIABLE str strnotconcat
lib/libkeynote/keynote.y
417
stringexp: str EQ str {
lib/libkeynote/keynote.y
429
| str NE str {
lib/libkeynote/keynote.y
441
| str LT str {
lib/libkeynote/keynote.y
453
| str GT str {
lib/libkeynote/keynote.y
465
| str LE str {
lib/libkeynote/keynote.y
477
| str GE str {
lib/libkeynote/keynote.y
489
| str REGEXP str
lib/libkeynote/keynote.y
567
str: str DOTT str { if (keynote_exceptionflag || keynote_donteval)
lib/libkeynote/keynote.y
592
| OPENPAREN str CLOSEPAREN { $$ = $2; }
lib/libkeynote/keynote.y
619
| DEREF str { if (keynote_exceptionflag || keynote_donteval)
lib/libmenu/m_driver.c
166
menu->items[idx]->name.str)
lib/libmenu/m_global.c
261
if (result != 0 && item->str != 0)
lib/libmenu/m_global.c
263
int count = (int)mbstowcs(0, item->str, 0);
lib/libmenu/m_global.c
272
mbstowcs(temp, item->str, (unsigned)count);
lib/libmenu/m_item_nam.c
57
returnCPtr((item) ? item->name.str : (char *)0);
lib/libmenu/m_item_nam.c
72
returnCPtr((item) ? item->description.str : (char *)0);
lib/libmenu/m_item_new.c
136
item->name.str = name;
lib/libmenu/m_item_new.c
142
item->description.str = description;
lib/libmenu/m_item_new.c
147
item->description.str = (char *)0;
lib/libmenu/m_post.c
123
waddnstr(menu->win, item->name.str, item->name.length);
lib/libmenu/m_post.c
149
waddnstr(menu->win, item->description.str, item->description.length);
lib/libmenu/m_req_name.c
102
menu_request_by_name(const char *str)
lib/libmenu/m_req_name.c
109
T((T_CALLED("menu_request_by_name(%s)"), _nc_visbuf(str)));
lib/libmenu/m_req_name.c
111
if (str != 0 && (i = strlen(str)) != 0)
lib/libmenu/m_req_name.c
117
memcpy(buf, str, i);
lib/libmenu/menu.h
81
const char *str;
lib/libpcap/nametoaddr.c
173
pcap_nametoproto(const char *str)
lib/libpcap/nametoaddr.c
177
p = getprotobyname(str);
lib/libradius/radius_attr.c
372
radius_get_string_attr(const RADIUS_PACKET * packet, uint8_t type, char *str,
lib/libradius/radius_attr.c
384
memcpy(str, (const char *)p, len);
lib/libradius/radius_attr.c
385
str[len] = '\0';
lib/libradius/radius_attr.c
392
uint32_t vendor, uint8_t vtype, char *str, size_t len)
lib/libradius/radius_attr.c
404
memcpy(str, (const char *)p, len);
lib/libradius/radius_attr.c
405
str[len] = '\0';
lib/libradius/radius_attr.c
412
radius_put_string_attr(RADIUS_PACKET * packet, uint8_t type, const char *str)
lib/libradius/radius_attr.c
414
return radius_put_raw_attr(packet, type, str, strlen(str));
lib/libradius/radius_attr.c
419
uint32_t vendor, uint8_t vtype, const char *str)
lib/libradius/radius_attr.c
421
return radius_put_vs_raw_attr(packet, vendor, vtype, str, strlen(str));
lib/libskey/skeylogin.c
350
static char str[SKEY_MAX_CHALLENGE];
lib/libskey/skeylogin.c
354
i = skeychallenge(&skey, username, str);
lib/libskey/skeylogin.c
362
return (str);
lib/libsndio/aucat.c
372
parsestr(const char *str, char *rstr, unsigned int max)
lib/libsndio/aucat.c
374
const char *p = str;
lib/libsndio/aucat.c
378
DPRINTF("%s: string too long\n", str);
lib/libsndio/aucat.c
383
if (str == p) {
lib/libsndio/aucat.c
384
DPRINTF("%s: string expected\n", str);
lib/libsndio/aucat.c
392
_aucat_open(struct aucat *hdl, const char *str, unsigned int mode)
lib/libsndio/aucat.c
400
if ((p = _sndio_parsetype(str, "snd")) != NULL)
lib/libsndio/aucat.c
402
else if ((p = _sndio_parsetype(str, "midithru")) != NULL)
lib/libsndio/aucat.c
404
else if ((p = _sndio_parsetype(str, "midi")) != NULL)
lib/libsndio/aucat.c
407
DPRINTF("%s: unsupported device type\n", str);
lib/libsndio/aucat.c
423
DPRINTF("%s: '/' expected\n", str);
lib/libsndio/debug.c
44
_sndio_parsetype(const char *str, char *type)
lib/libsndio/debug.c
47
if (*type != *str)
lib/libsndio/debug.c
50
str++;
lib/libsndio/debug.c
52
if (*str >= 'a' && *str <= 'z')
lib/libsndio/debug.c
54
return str;
lib/libsndio/debug.c
58
_sndio_parsenum(const char *str, unsigned int *num, unsigned int max)
lib/libsndio/debug.c
60
const char *p = str;
lib/libsndio/debug.c
71
DPRINTF("%s: number too large\n", str);
lib/libsndio/debug.c
77
if (p == str) {
lib/libsndio/debug.c
78
DPRINTF("%s: number expected\n", str);
lib/libsndio/mio.c
33
mio_open(const char *str, unsigned int mode, int nbio)
lib/libsndio/mio.c
43
if (str == NULL) /* backward compat */
lib/libsndio/mio.c
44
str = portany;
lib/libsndio/mio.c
45
if (strcmp(str, portany) == 0 && !issetugid()) {
lib/libsndio/mio.c
46
str = getenv("MIDIDEVICE");
lib/libsndio/mio.c
47
if (str == NULL)
lib/libsndio/mio.c
48
str = portany;
lib/libsndio/mio.c
50
if (strcmp(str, portany) == 0) {
lib/libsndio/mio.c
56
if (_sndio_parsetype(str, "snd") ||
lib/libsndio/mio.c
57
_sndio_parsetype(str, "midithru") ||
lib/libsndio/mio.c
58
_sndio_parsetype(str, "midi"))
lib/libsndio/mio.c
59
return _mio_aucat_open(str, mode, nbio);
lib/libsndio/mio.c
60
if (_sndio_parsetype(str, "rmidi"))
lib/libsndio/mio.c
61
return _mio_rmidi_open(str, mode, nbio);
lib/libsndio/mio.c
62
DPRINTF("mio_open: %s: unknown device type\n", str);
lib/libsndio/mio_aucat.c
88
_mio_aucat_open(const char *str, unsigned int mode, int nbio)
lib/libsndio/mio_aucat.c
95
if (!_aucat_open(&hdl->aucat, str, mode))
lib/libsndio/mio_rmidi.c
122
_mio_rmidi_open(const char *str, unsigned int mode, int nbio)
lib/libsndio/mio_rmidi.c
127
fd = mio_rmidi_getfd(str, mode, nbio);
lib/libsndio/mio_rmidi.c
59
mio_rmidi_getfd(const char *str, unsigned int mode, int nbio)
lib/libsndio/mio_rmidi.c
69
p = _sndio_parsetype(str, "rmidi");
lib/libsndio/mio_rmidi.c
71
DPRINTF("mio_rmidi_getfd: %s: \"rmidi\" expected\n", str);
lib/libsndio/mio_rmidi.c
79
DPRINTF("mio_rmidi_getfd: %s: '/' expected\n", str);
lib/libsndio/mio_rmidi.c
84
DPRINTF("mio_rmidi_getfd: %s: number expected after '/'\n", str);
lib/libsndio/sio.c
42
sio_open(const char *str, unsigned int mode, int nbio)
lib/libsndio/sio.c
52
if (str == NULL) /* backward compat */
lib/libsndio/sio.c
53
str = devany;
lib/libsndio/sio.c
54
if (strcmp(str, devany) == 0 && !issetugid()) {
lib/libsndio/sio.c
56
str = getenv("AUDIORECDEVICE");
lib/libsndio/sio.c
58
str = getenv("AUDIOPLAYDEVICE");
lib/libsndio/sio.c
59
if (mode == (SIO_PLAY | SIO_REC) || str == NULL)
lib/libsndio/sio.c
60
str = getenv("AUDIODEVICE");
lib/libsndio/sio.c
61
if (str == NULL)
lib/libsndio/sio.c
62
str = devany;
lib/libsndio/sio.c
64
if (strcmp(str, devany) == 0) {
lib/libsndio/sio.c
70
if (_sndio_parsetype(str, "snd"))
lib/libsndio/sio.c
71
return _sio_aucat_open(str, mode, nbio);
lib/libsndio/sio.c
72
if (_sndio_parsetype(str, "rsnd"))
lib/libsndio/sio.c
73
return _sio_sun_open(str, mode, nbio);
lib/libsndio/sio.c
74
DPRINTF("sio_open: %s: unknown device type\n", str);
lib/libsndio/sio_aucat.c
153
_sio_aucat_open(const char *str, unsigned int mode, int nbio)
lib/libsndio/sio_aucat.c
160
if (!_aucat_open(&hdl->aucat, str, mode)) {
lib/libsndio/sio_sun.c
268
sio_sun_getfd(const char *str, unsigned int mode, int nbio)
lib/libsndio/sio_sun.c
278
p = _sndio_parsetype(str, "rsnd");
lib/libsndio/sio_sun.c
280
DPRINTF("sio_sun_getfd: %s: \"rsnd\" expected\n", str);
lib/libsndio/sio_sun.c
288
DPRINTF("sio_sun_getfd: %s: '/' expected\n", str);
lib/libsndio/sio_sun.c
293
DPRINTF("sio_sun_getfd: %s: number expected after '/'\n", str);
lib/libsndio/sio_sun.c
337
_sio_sun_open(const char *str, unsigned int mode, int nbio)
lib/libsndio/sio_sun.c
342
fd = sio_sun_getfd(str, mode, nbio);
lib/libsndio/sioctl.c
27
sioctl_open(const char *str, unsigned int mode, int nbio)
lib/libsndio/sioctl.c
35
if (str == NULL) /* backward compat */
lib/libsndio/sioctl.c
36
str = devany;
lib/libsndio/sioctl.c
37
if (strcmp(str, devany) == 0 && !issetugid()) {
lib/libsndio/sioctl.c
38
str = getenv("AUDIODEVICE");
lib/libsndio/sioctl.c
39
if (str == NULL)
lib/libsndio/sioctl.c
40
str = devany;
lib/libsndio/sioctl.c
42
if (strcmp(str, devany) == 0) {
lib/libsndio/sioctl.c
48
if (_sndio_parsetype(str, "snd"))
lib/libsndio/sioctl.c
49
return _sioctl_aucat_open(str, mode, nbio);
lib/libsndio/sioctl.c
50
if (_sndio_parsetype(str, "rsnd"))
lib/libsndio/sioctl.c
51
return _sioctl_sun_open(str, mode, nbio);
lib/libsndio/sioctl.c
52
DPRINTF("sioctl_open: %s: unknown device type\n", str);
lib/libsndio/sioctl_aucat.c
141
_sioctl_aucat_open(const char *str, unsigned int mode, int nbio)
lib/libsndio/sioctl_aucat.c
148
if (!_aucat_open(&hdl->aucat, str, mode))
lib/libsndio/sioctl_sun.c
327
sioctl_sun_getfd(const char *str, unsigned int mode, int nbio)
lib/libsndio/sioctl_sun.c
337
p = _sndio_parsetype(str, "rsnd");
lib/libsndio/sioctl_sun.c
339
DPRINTF("sioctl_sun_getfd: %s: \"rsnd\" expected\n", str);
lib/libsndio/sioctl_sun.c
347
DPRINTF("sioctl_sun_getfd: %s: '/' expected\n", str);
lib/libsndio/sioctl_sun.c
355
DPRINTF("sioctl_sun_getfd: %s: number expected after '/'\n", str);
lib/libsndio/sioctl_sun.c
391
_sioctl_sun_open(const char *str, unsigned int mode, int nbio)
lib/libsndio/sioctl_sun.c
396
fd = sioctl_sun_getfd(str, mode, nbio);
lib/libssl/bio_ssl.c
489
ssl_puts(BIO *bp, const char *str)
lib/libssl/bio_ssl.c
493
n = strlen(str);
lib/libssl/bio_ssl.c
494
ret = BIO_write(bp, str, n);
lib/libssl/bio_ssl.c
74
static int ssl_puts(BIO *h, const char *str);
lib/libssl/ssl.h
1089
int SSL_CTX_set_cipher_list(SSL_CTX *, const char *str);
lib/libssl/ssl.h
1091
int SSL_CTX_set_ciphersuites(SSL_CTX *ctx, const char *str);
lib/libssl/ssl.h
1136
int SSL_set_cipher_list(SSL *s, const char *str);
lib/libssl/ssl.h
1138
int SSL_set_ciphersuites(SSL *s, const char *str);
lib/libssl/ssl_ciphers.c
203
ssl_parse_ciphersuites(STACK_OF(SSL_CIPHER) **out_ciphers, const char *str)
lib/libssl/ssl_ciphers.c
217
if (strcmp(str, "") == 0)
lib/libssl/ssl_ciphers.c
220
if ((s = strdup(str)) == NULL)
lib/libssl/ssl_lib.c
1635
SSL_CTX_set_cipher_list(SSL_CTX *ctx, const char *str)
lib/libssl/ssl_lib.c
1647
ctx->cipher_list_tls13, str, ctx->cert);
lib/libssl/ssl_lib.c
1659
SSL_CTX_set_ciphersuites(SSL_CTX *ctx, const char *str)
lib/libssl/ssl_lib.c
1661
if (!ssl_parse_ciphersuites(&ctx->cipher_list_tls13, str)) {
lib/libssl/ssl_lib.c
1675
SSL_set_cipher_list(SSL *s, const char *str)
lib/libssl/ssl_lib.c
1684
ciphers_tls13, str, s->cert);
lib/libssl/ssl_lib.c
1696
SSL_set_ciphersuites(SSL *s, const char *str)
lib/libssl/ssl_lib.c
1703
if (!ssl_parse_ciphersuites(&s->cipher_list_tls13, str)) {
lib/libssl/ssl_local.h
1249
int ssl_parse_ciphersuites(STACK_OF(SSL_CIPHER) **out_ciphers, const char *str);
lib/libtls/tls_bio_cb.c
30
static int bio_cb_puts(BIO *bio, const char *str);
lib/libtls/tls_bio_cb.c
71
bio_cb_puts(BIO *bio, const char *str)
lib/libtls/tls_bio_cb.c
73
return (bio_cb_write(bio, str, strlen(str)));
lib/libutil/ber.c
454
char *sp, *p, str[BUFSIZ];
lib/libutil/ber.c
457
if (strlcpy(str, oidstr, sizeof(str)) >= sizeof(str))
lib/libutil/ber.c
462
for (p = sp = str; p != NULL; sp = p) {
lib/libutil/fparseln.c
65
fparseln(FILE *fp, size_t *size, size_t *lineno, const char str[3],
lib/libutil/fparseln.c
73
if (str == NULL)
lib/libutil/fparseln.c
74
str = dstr;
lib/libutil/fparseln.c
76
esc = str[0];
lib/libutil/fparseln.c
77
con = str[1];
lib/libutil/fparseln.c
78
com = str[2];
lib/libutil/imsg-buffer.c
250
ibuf_add_strbuf(struct ibuf *buf, const char *str, size_t len)
lib/libutil/imsg-buffer.c
258
n = strlcpy(b, str, len);
lib/libutil/imsg-buffer.c
535
char *str;
lib/libutil/imsg-buffer.c
542
str = strndup(ibuf_data(buf), len);
lib/libutil/imsg-buffer.c
543
if (str == NULL)
lib/libutil/imsg-buffer.c
546
return (str);
lib/libutil/imsg-buffer.c
550
ibuf_get_strbuf(struct ibuf *buf, char *str, size_t len)
lib/libutil/imsg-buffer.c
557
if (ibuf_get(buf, str, len) == -1)
lib/libutil/imsg-buffer.c
559
if (str[len - 1] != '\0') {
lib/libutil/imsg-buffer.c
560
str[len - 1] = '\0';
lib/libutil/imsg.c
211
imsg_get_strbuf(struct imsg *imsg, char *str, size_t len)
lib/libutil/imsg.c
213
return ibuf_get_strbuf(imsg->buf, str, len);
lib/libz/deflate.c
151
#define INSERT_STRING(s, str, match_head) \
lib/libz/deflate.c
152
(UPDATE_HASH(s, s->ins_h, s->window[(str) + (MIN_MATCH-1)]), \
lib/libz/deflate.c
154
s->head[s->ins_h] = (Pos)(str))
lib/libz/deflate.c
156
#define INSERT_STRING(s, str, match_head) \
lib/libz/deflate.c
157
(UPDATE_HASH(s, s->ins_h, s->window[(str) + (MIN_MATCH-1)]), \
lib/libz/deflate.c
158
match_head = s->prev[(str) & s->w_mask] = s->head[s->ins_h], \
lib/libz/deflate.c
159
s->head[s->ins_h] = (Pos)(str))
lib/libz/deflate.c
312
uInt str = s->strstart - s->insert;
lib/libz/deflate.c
313
s->ins_h = s->window[str];
lib/libz/deflate.c
314
UPDATE_HASH(s, s->ins_h, s->window[str + 1]);
lib/libz/deflate.c
319
UPDATE_HASH(s, s->ins_h, s->window[str + MIN_MATCH-1]);
lib/libz/deflate.c
321
s->prev[str & s->w_mask] = s->head[s->ins_h];
lib/libz/deflate.c
323
s->head[s->ins_h] = (Pos)str;
lib/libz/deflate.c
324
str++;
lib/libz/deflate.c
558
uInt str, n;
lib/libz/deflate.c
594
str = s->strstart;
lib/libz/deflate.c
597
UPDATE_HASH(s, s->ins_h, s->window[str + MIN_MATCH-1]);
lib/libz/deflate.c
599
s->prev[str & s->w_mask] = s->head[s->ins_h];
lib/libz/deflate.c
601
s->head[s->ins_h] = (Pos)str;
lib/libz/deflate.c
602
str++;
lib/libz/deflate.c
604
s->strstart = str;
lib/libz/deflate.c
890
Bytef *str;
lib/libz/deflate.c
893
str = s->gzhead->name;
lib/libz/deflate.c
894
if (str != Z_NULL)
lib/libz/deflate.c
897
} while (*str++);
lib/libz/deflate.c
898
str = s->gzhead->comment;
lib/libz/deflate.c
899
if (str != Z_NULL)
lib/libz/deflate.c
902
} while (*str++);
lib/libz/gzread.c
568
char *str;
lib/libz/gzread.c
591
str = buf;
lib/libz/gzread.c
620
if (buf == str)
lib/libz/gzread.c
623
return str;
libexec/ld.so/ldconfig/etc.c
64
char *str;
libexec/ld.so/ldconfig/etc.c
68
str = xmalloc(len);
libexec/ld.so/ldconfig/etc.c
70
strlcpy(str, s1, len);
libexec/ld.so/ldconfig/etc.c
71
strlcat(str, s2, len);
libexec/ld.so/ldconfig/etc.c
72
strlcat(str, s3, len);
libexec/ld.so/ldconfig/etc.c
74
return (str);
libexec/ld.so/util.h
174
_dl_strrchr(const char *str, const int ch)
libexec/ld.so/util.h
179
for (p = str; *p != '\0'; ++p)
libexec/login_ldap/aldap.c
1317
char *str;
libexec/login_ldap/aldap.c
1324
if ((str = calloc(len + 1, sizeof(char))) == NULL)
libexec/login_ldap/aldap.c
1330
str[j++] = isascii((unsigned char)u[i]) ? u[i] : '?';
libexec/login_ldap/aldap.c
1332
return str;
libexec/login_ldap/aldap.c
688
free(values->str);
libexec/login_ldap/aldap.c
858
if ((ret->str = reallocarray(NULL, ret->len,
libexec/login_ldap/aldap.c
859
sizeof(*(ret->str)))) == NULL) {
libexec/login_ldap/aldap.c
866
(void) ober_get_ostring(a, &(ret->str[i]));
libexec/login_ldap/aldap.h
92
struct ber_octetstring *str;
libexec/login_ldap/util.c
461
parse_filter(struct auth_ctx *ctx, const char *str)
libexec/login_ldap/util.c
468
if (str == NULL)
libexec/login_ldap/util.c
475
for (p = str, q = tmp; p[0] != '\0' &&
libexec/login_ldap/util.c
523
dlog(0, "filter string too large, unable to process: %s", str);
libexec/snmpd/snmpd_metrics/mib.c
878
static char str[129];
libexec/snmpd/snmpd_metrics/mib.c
884
str[0] = '\0';
libexec/snmpd/snmpd_metrics/mib.c
885
*s = str;
libexec/snmpd/snmpd_metrics/mib.c
887
strlcpy(str, argv[0], sizeof(str));
libexec/snmpd/snmpd_metrics/mib.c
894
static char str[129];
libexec/snmpd/snmpd_metrics/mib.c
900
str[0] = '\0';
libexec/snmpd/snmpd_metrics/mib.c
901
*s = str;
libexec/snmpd/snmpd_metrics/mib.c
907
strlcat(str, *argv, sizeof(str));
libexec/snmpd/snmpd_metrics/mib.c
910
strlcat(str, " ", sizeof(str));
libexec/tradcpp/main.c
141
commandline_def(const struct place *p, char *str)
libexec/tradcpp/main.c
146
if (*str == '\0') {
libexec/tradcpp/main.c
151
val = strchr(str, '=');
libexec/tradcpp/main.c
159
place_addcolumns(&p2, strlen(str));
libexec/tradcpp/main.c
163
commandline_macro_add(p, str, &p2, val ? val : "1");
libexec/tradcpp/main.c
168
commandline_undef(const struct place *p, char *str)
libexec/tradcpp/main.c
170
if (*str == '\0') {
libexec/tradcpp/main.c
174
commandline_macro_add(p, str, p, NULL);
libexec/tradcpp/main.c
562
commandline_iremap(const struct place *p, char *str)
libexec/tradcpp/main.c
566
(void)str;
libexec/tradcpp/main.c
660
commandline_setdependtarget(const struct place *p, char *str)
libexec/tradcpp/main.c
663
mode.depend_target = str;
libexec/tradcpp/main.c
669
commandline_setdependtarget_quoted(const struct place *p, char *str)
libexec/tradcpp/main.c
672
mode.depend_target = str;
libexec/tradcpp/main.c
678
commandline_setdependoutput(const struct place *p, char *str)
libexec/tradcpp/main.c
681
mode.depend_file = str;
libexec/tradcpp/output.c
178
char str[256];
libexec/tradcpp/output.c
180
snprintf(str, sizeof(str), "# %u \"%s\"\n",
libexec/tradcpp/output.c
182
dowrite(str, strlen(str));
libexec/tradcpp/utils.c
232
is_identifier(const char *str)
libexec/tradcpp/utils.c
236
len = strlen(str);
libexec/tradcpp/utils.c
237
if (len != strspn(str, alnum)) {
libexec/tradcpp/utils.c
240
if (str[0] >= '0' && str[0] <= '9') {
libexec/tradcpp/utils.h
62
bool is_identifier(const char *str);
regress/bin/ksh/edit/edit.c
163
findprompt(const char *str, const char *prompt)
regress/bin/ksh/edit/edit.c
168
if ((cp = strstr(str, prompt)) == NULL)
regress/bin/ksh/edit/edit.c
172
return (cp - str) + len;
regress/lib/libc/asr/bin/common.c
653
sockaddr_from_str(struct sockaddr *sa, int family, const char *str)
regress/lib/libc/asr/bin/common.c
662
if (sockaddr_from_str(sa, PF_INET, str) == 0)
regress/lib/libc/asr/bin/common.c
664
return sockaddr_from_str(sa, PF_INET6, str);
regress/lib/libc/asr/bin/common.c
667
if (inet_pton(PF_INET, str, &ina) != 1)
regress/lib/libc/asr/bin/common.c
678
if (inet_pton(PF_INET6, str, &in6a) != 1)
regress/lib/libc/basename/basename_test.c
19
char *str;
regress/lib/libc/basename/basename_test.c
26
str = basename(path);
regress/lib/libc/basename/basename_test.c
27
if (strcmp(str, fname) != 0)
regress/lib/libc/basename/basename_test.c
48
str = basename(NULL);
regress/lib/libc/basename/basename_test.c
49
if (strcmp(str, ".") != 0)
regress/lib/libc/basename/basename_test.c
54
str = basename(path);
regress/lib/libc/basename/basename_test.c
55
if (strcmp(str, ".") != 0)
regress/lib/libc/basename/basename_test.c
61
str = basename(path);
regress/lib/libc/basename/basename_test.c
62
if (strcmp(str, "/") != 0)
regress/lib/libc/basename/basename_test.c
70
str = basename(path);
regress/lib/libc/basename/basename_test.c
71
if (str != NULL || errno != ENAMETOOLONG)
regress/lib/libc/dirname/dirname_test.c
21
char *str;
regress/lib/libc/dirname/dirname_test.c
30
str = dirname(path);
regress/lib/libc/dirname/dirname_test.c
31
if (strcmp(str, dname) != 0)
regress/lib/libc/dirname/dirname_test.c
32
errx(1, "0: dirname(%s) = %s != %s", path, str, dname);
regress/lib/libc/dirname/dirname_test.c
52
str = dirname(NULL);
regress/lib/libc/dirname/dirname_test.c
53
if (strcmp(str, ".") != 0)
regress/lib/libc/dirname/dirname_test.c
54
errx(1, "1: dirname(NULL) = %s != .", str);
regress/lib/libc/dirname/dirname_test.c
58
str = dirname(path);
regress/lib/libc/dirname/dirname_test.c
59
if (strcmp(str, ".") != 0)
regress/lib/libc/dirname/dirname_test.c
60
errx(1, "2: dirname(%s) = %s != .", path, str);
regress/lib/libc/dirname/dirname_test.c
65
str = dirname(path);
regress/lib/libc/dirname/dirname_test.c
66
if (strcmp(str, "/") != 0)
regress/lib/libc/dirname/dirname_test.c
67
errx(1, "3: dirname(%s) = %s != /", path, str);
regress/lib/libc/dirname/dirname_test.c
74
str = dirname(path);
regress/lib/libc/dirname/dirname_test.c
75
if (str != NULL)
regress/lib/libc/dirname/dirname_test.c
76
errx(1, "4: dirname(%s) = %s != NULL", path, str);
regress/lib/libc/regex/main.c
410
check(str, sub, should)
regress/lib/libc/regex/main.c
411
char *str;
regress/lib/libc/regex/main.c
446
if (sub.rm_eo > strlen(str)) {
regress/lib/libc/regex/main.c
454
p = str + sub.rm_so;
regress/lib/libc/regex/split.c
211
char *str;
regress/lib/libc/regex/split.c
288
for (n = 0; tests[n].str != NULL; n++) {
regress/lib/libc/regex/split.c
289
(void) strlcpy(buf, tests[n].str, sizeof buf);
regress/lib/libc/regex/split.c
295
tests[n].str, tests[n].seps, nf, tests[n].nf);
regress/lib/libc/regex/split.c
307
tests[n].str, tests[n].seps,
regress/lib/libc/regex/t_exhaust.c
49
mkstr(const char *str, size_t len)
regress/lib/libc/regex/t_exhaust.c
51
size_t i, slen = strlen(str);
regress/lib/libc/regex/t_exhaust.c
56
strlcpy(&p[i * slen], str, slen * len + 1 - (i * slen));
regress/lib/libc/sys/t_getlogin.c
66
char *str;
regress/lib/libc/sys/t_getlogin.c
68
str = getlogin();
regress/lib/libc/sys/t_getlogin.c
70
if (str == NULL)
regress/lib/libc/sys/t_getlogin.c
75
if (strcmp(str, buf) != 0)
regress/lib/libc/sys/t_msync.c
101
str = "failed to write garbage";
regress/lib/libc/sys/t_msync.c
110
str = "failed to msync";
regress/lib/libc/sys/t_msync.c
115
str = "msync did not synchronize";
regress/lib/libc/sys/t_msync.c
128
return str;
regress/lib/libc/sys/t_msync.c
139
const char *str;
regress/lib/libc/sys/t_msync.c
141
str = msync_sync("garbage", MS_ASYNC);
regress/lib/libc/sys/t_msync.c
143
if (str != NULL)
regress/lib/libc/sys/t_msync.c
144
atf_tc_fail("%s", str);
regress/lib/libc/sys/t_msync.c
187
const char *str;
regress/lib/libc/sys/t_msync.c
189
str = msync_sync("garbage", MS_INVALIDATE);
regress/lib/libc/sys/t_msync.c
191
if (str != NULL)
regress/lib/libc/sys/t_msync.c
192
atf_tc_fail("%s", str);
regress/lib/libc/sys/t_msync.c
203
const char *str;
regress/lib/libc/sys/t_msync.c
205
str = msync_sync("garbage", MS_SYNC);
regress/lib/libc/sys/t_msync.c
207
if (str != NULL)
regress/lib/libc/sys/t_msync.c
208
atf_tc_fail("%s", str);
regress/lib/libc/sys/t_msync.c
55
const char *str = NULL;
regress/lib/libc/sys/t_msync.c
84
str = "failed to map";
regress/lib/libc/sys/t_msync.c
93
str = "failed to seek";
regress/lib/libc/sys/t_umask.c
119
const char *str = NULL;
regress/lib/libc/sys/t_umask.c
137
str = "failed to stat(2)";
regress/lib/libc/sys/t_umask.c
142
str = "invalid umask(2)";
regress/lib/libc/sys/t_umask.c
147
str = "failed to unlink(2)";
regress/lib/libc/sys/t_umask.c
156
if (str != NULL)
regress/lib/libc/sys/t_umask.c
157
atf_tc_fail("%s", str);
regress/lib/libcrypto/asn1/asn1_string_to_utf8.c
108
ASN1_STRING_free(str);
regress/lib/libcrypto/asn1/asn1_string_to_utf8.c
76
ASN1_STRING *str = NULL;
regress/lib/libcrypto/asn1/asn1_string_to_utf8.c
83
if ((str = (ASN1_STRING *)ASN1_item_d2i(NULL, &der, test->der_len,
regress/lib/libcrypto/asn1/asn1_string_to_utf8.c
89
if ((ret = ASN1_STRING_to_UTF8(&out, str)) < 0) {
regress/lib/libcrypto/asn1/asn1string_copy.c
101
if ((str = ASN1_STRING_get0_data(dst)) == NULL)
regress/lib/libcrypto/asn1/asn1string_copy.c
103
if (strcmp(str, data))
regress/lib/libcrypto/asn1/asn1string_copy.c
106
str, data);
regress/lib/libcrypto/asn1/asn1string_copy.c
27
const unsigned char *str;
regress/lib/libcrypto/asn1/asn1string_copy.c
37
if ((str = ASN1_STRING_get0_data(src)) == NULL)
regress/lib/libcrypto/asn1/asn1string_copy.c
39
if (strcmp(str, data))
regress/lib/libcrypto/asn1/asn1string_copy.c
42
str, data);
regress/lib/libcrypto/asn1/asn1string_copy.c
56
if ((str = ASN1_STRING_get0_data(dst)) != NULL)
regress/lib/libcrypto/asn1/asn1string_copy.c
58
"returned \"%s\" (expected NULL)", str);
regress/lib/libcrypto/asn1/asn1string_copy.c
67
if ((str = ASN1_STRING_get0_data(dst)) != NULL)
regress/lib/libcrypto/asn1/asn1string_copy.c
69
"returned \"%s\" (expected NULL)", str);
regress/lib/libcrypto/asn1/asn1string_copy.c
82
if ((str = ASN1_STRING_get0_data(src)) == NULL)
regress/lib/libcrypto/asn1/asn1string_copy.c
84
if (strcmp(str, data))
regress/lib/libcrypto/asn1/asn1string_copy.c
87
str, data);
regress/lib/libcrypto/asn1/asn1time.c
105
.str = "19700101000000Z",
regress/lib/libcrypto/asn1/asn1time.c
115
.str = "20150923032700Z",
regress/lib/libcrypto/asn1/asn1time.c
126
.str = "20380119031408Z",
regress/lib/libcrypto/asn1/asn1time.c
140
.str = "700101000000Z",
regress/lib/libcrypto/asn1/asn1time.c
149
.str = "150923032700Z",
regress/lib/libcrypto/asn1/asn1time.c
158
.str = "140524144512Z",
regress/lib/libcrypto/asn1/asn1time.c
167
.str = "240401144512Z",
regress/lib/libcrypto/asn1/asn1time.c
219
const char *str)
regress/lib/libcrypto/asn1/asn1time.c
221
int length = strlen(str);
regress/lib/libcrypto/asn1/asn1time.c
228
if (strncmp(asn1str->data, str, length) != 0) {
regress/lib/libcrypto/asn1/asn1time.c
230
"('%s' != '%s')\n", test_no, asn1str->data, str);
regress/lib/libcrypto/asn1/asn1time.c
252
if (ASN1_GENERALIZEDTIME_set_string(gt, att->str) != 0) {
regress/lib/libcrypto/asn1/asn1time.c
254
"GENERALIZEDTIME string '%s'\n", test_no, att->str);
regress/lib/libcrypto/asn1/asn1time.c
263
if (ASN1_UTCTIME_set_string(ut, att->str) != 0) {
regress/lib/libcrypto/asn1/asn1time.c
265
"string '%s'\n", test_no, att->str);
regress/lib/libcrypto/asn1/asn1time.c
268
if (ASN1_TIME_set_string(t, att->str) != 0) {
regress/lib/libcrypto/asn1/asn1time.c
270
"string '%s'\n", test_no, att->str);
regress/lib/libcrypto/asn1/asn1time.c
273
if (ASN1_TIME_set_string_X509(t, att->str) != 0) {
regress/lib/libcrypto/asn1/asn1time.c
275
"string '%s'\n", test_no, att->str);
regress/lib/libcrypto/asn1/asn1time.c
300
if (ASN1_GENERALIZEDTIME_set_string(NULL, att->str) != 1) {
regress/lib/libcrypto/asn1/asn1time.c
302
test_no, att->str);
regress/lib/libcrypto/asn1/asn1time.c
309
if (ASN1_GENERALIZEDTIME_set_string(gt, att->str) != 1) {
regress/lib/libcrypto/asn1/asn1time.c
311
test_no, att->str);
regress/lib/libcrypto/asn1/asn1time.c
314
if (asn1_compare_str(test_no, gt, att->str) != 0)
regress/lib/libcrypto/asn1/asn1time.c
319
test_no, att->str);
regress/lib/libcrypto/asn1/asn1time.c
32
const char *str;
regress/lib/libcrypto/asn1/asn1time.c
354
if (asn1_compare_str(test_no, gt, att->str) != 0)
regress/lib/libcrypto/asn1/asn1time.c
385
if (ASN1_UTCTIME_set_string(NULL, att->str) != 1) {
regress/lib/libcrypto/asn1/asn1time.c
387
test_no, att->str);
regress/lib/libcrypto/asn1/asn1time.c
394
if (ASN1_UTCTIME_set_string(ut, att->str) != 1) {
regress/lib/libcrypto/asn1/asn1time.c
396
test_no, att->str);
regress/lib/libcrypto/asn1/asn1time.c
399
if (asn1_compare_str(test_no, ut, att->str) != 0)
regress/lib/libcrypto/asn1/asn1time.c
41
.str = "",
regress/lib/libcrypto/asn1/asn1time.c
417
if (asn1_compare_str(test_no, ut, att->str) != 0)
regress/lib/libcrypto/asn1/asn1time.c
44
.str = "2015",
regress/lib/libcrypto/asn1/asn1time.c
446
if (ASN1_TIME_set_string(NULL, att->str) != 1) {
regress/lib/libcrypto/asn1/asn1time.c
448
test_no, att->str);
regress/lib/libcrypto/asn1/asn1time.c
458
switch (strlen(att->str)) {
regress/lib/libcrypto/asn1/asn1time.c
461
if (ASN1_UTCTIME_set_string(t, att->str) != 1) {
regress/lib/libcrypto/asn1/asn1time.c
464
test_no, att->str);
regress/lib/libcrypto/asn1/asn1time.c
47
.str = "201509",
regress/lib/libcrypto/asn1/asn1time.c
470
if (ASN1_GENERALIZEDTIME_set_string(t, att->str) != 1) {
regress/lib/libcrypto/asn1/asn1time.c
473
test_no, att->str);
regress/lib/libcrypto/asn1/asn1time.c
493
test_no, att->str);
regress/lib/libcrypto/asn1/asn1time.c
50
.str = "20150923",
regress/lib/libcrypto/asn1/asn1time.c
53
.str = "20150923032700",
regress/lib/libcrypto/asn1/asn1time.c
56
.str = "20150923032700.Z",
regress/lib/libcrypto/asn1/asn1time.c
572
if (!ASN1_TIME_set_string(t1, att1->str))
regress/lib/libcrypto/asn1/asn1time.c
577
if (!ASN1_TIME_set_string(t2, att2->str))
regress/lib/libcrypto/asn1/asn1time.c
586
att1->str, att2->str, time_cmp, asn1_cmp);
regress/lib/libcrypto/asn1/asn1time.c
59
.str = "20150923032700.123",
regress/lib/libcrypto/asn1/asn1time.c
594
att1->str, (long long)att2->time,
regress/lib/libcrypto/asn1/asn1time.c
605
att1->str, (long long)att2->time,
regress/lib/libcrypto/asn1/asn1time.c
62
.str = "20150923032700+1.09",
regress/lib/libcrypto/asn1/asn1time.c
65
.str = "20150923032700+1100Z",
regress/lib/libcrypto/asn1/asn1time.c
68
.str = "20150923032700-11001",
regress/lib/libcrypto/asn1/asn1time.c
72
.str = "150923032700.123Z",
regress/lib/libcrypto/asn1/asn1time.c
75
.str = "aaaaaaaaaaaaaaZ",
regress/lib/libcrypto/asn1/asn1time.c
79
.str = "1609082343Z",
regress/lib/libcrypto/asn1/asn1time.c
83
.str = "201612081934Z",
regress/lib/libcrypto/asn1/asn1time.c
88
.str = "160908234300Z",
regress/lib/libcrypto/asn1/asn1time.c
95
.str = "20161208193400Z",
regress/lib/libcrypto/asn1/rfc5280time.c
102
.str = "20491231235959Z",
regress/lib/libcrypto/asn1/rfc5280time.c
108
.str = "19500101000000Z",
regress/lib/libcrypto/asn1/rfc5280time.c
117
.str = "99991231235959Z",
regress/lib/libcrypto/asn1/rfc5280time.c
122
.str = "21600218104000Z",
regress/lib/libcrypto/asn1/rfc5280time.c
128
.str = "20500101000000Z",
regress/lib/libcrypto/asn1/rfc5280time.c
135
.str = "500101000000Z",
regress/lib/libcrypto/asn1/rfc5280time.c
140
.str = "540226230640Z",
regress/lib/libcrypto/asn1/rfc5280time.c
145
.str = "491231235959Z",
regress/lib/libcrypto/asn1/rfc5280time.c
150
.str = "700101000000Z",
regress/lib/libcrypto/asn1/rfc5280time.c
155
.str = "150923032700Z",
regress/lib/libcrypto/asn1/rfc5280time.c
160
.str = "150923102700Z",
regress/lib/libcrypto/asn1/rfc5280time.c
165
.str = "150922162712Z",
regress/lib/libcrypto/asn1/rfc5280time.c
170
.str = "140524144512Z",
regress/lib/libcrypto/asn1/rfc5280time.c
175
.str = "240401144512Z",
regress/lib/libcrypto/asn1/rfc5280time.c
189
asn1_compare_str(int test_no, struct asn1_string_st *asn1str, const char *str)
regress/lib/libcrypto/asn1/rfc5280time.c
191
int length = strlen(str);
regress/lib/libcrypto/asn1/rfc5280time.c
198
if (strncmp(asn1str->data, str, length) != 0) {
regress/lib/libcrypto/asn1/rfc5280time.c
200
"('%s' != '%s')\n", test_no, asn1str->data, str);
regress/lib/libcrypto/asn1/rfc5280time.c
223
if (ASN1_GENERALIZEDTIME_set_string(gt, att->str) != 0) {
regress/lib/libcrypto/asn1/rfc5280time.c
226
"string '%s'\n", test_no, att->str);
regress/lib/libcrypto/asn1/rfc5280time.c
230
if (ASN1_UTCTIME_set_string(ut, att->str) != 0) {
regress/lib/libcrypto/asn1/rfc5280time.c
233
"string '%s'\n", test_no, att->str);
regress/lib/libcrypto/asn1/rfc5280time.c
259
if (ASN1_GENERALIZEDTIME_set_string(gt, att->str) != 1) {
regress/lib/libcrypto/asn1/rfc5280time.c
261
test_no, att->str);
regress/lib/libcrypto/asn1/rfc5280time.c
264
if (asn1_compare_str(test_no, gt, att->str) != 0)
regress/lib/libcrypto/asn1/rfc5280time.c
27
const char *str;
regress/lib/libcrypto/asn1/rfc5280time.c
311
if (ASN1_UTCTIME_set_string(ut, att->str) != 1) {
regress/lib/libcrypto/asn1/rfc5280time.c
313
test_no, att->str);
regress/lib/libcrypto/asn1/rfc5280time.c
316
if (asn1_compare_str(test_no, ut, att->str) != 0)
regress/lib/libcrypto/asn1/rfc5280time.c
34
.str = "",
regress/lib/libcrypto/asn1/rfc5280time.c
37
.str = "2015",
regress/lib/libcrypto/asn1/rfc5280time.c
40
.str = "201509",
regress/lib/libcrypto/asn1/rfc5280time.c
43
.str = "20150923",
regress/lib/libcrypto/asn1/rfc5280time.c
46
.str = "20150923032700",
regress/lib/libcrypto/asn1/rfc5280time.c
50
.str = "7001010000Z",
regress/lib/libcrypto/asn1/rfc5280time.c
53
.str = "201509230327Z",
regress/lib/libcrypto/asn1/rfc5280time.c
56
.str = "20150923032700.Z",
regress/lib/libcrypto/asn1/rfc5280time.c
59
.str = "20150923032700.123",
regress/lib/libcrypto/asn1/rfc5280time.c
62
.str = "20150923032700+1100Z",
regress/lib/libcrypto/asn1/rfc5280time.c
65
.str = "20150923032700-11001",
regress/lib/libcrypto/asn1/rfc5280time.c
69
.str = "150923032700.123Z",
regress/lib/libcrypto/asn1/rfc5280time.c
73
.str = "20150923032712+1115",
regress/lib/libcrypto/asn1/rfc5280time.c
77
.str = "20150923032712.123Z",
regress/lib/libcrypto/asn1/rfc5280time.c
80
.str = "aaaaaaaaaaaaaaZ",
regress/lib/libcrypto/asn1/rfc5280time.c
84
.str = "19700101000000Z",
regress/lib/libcrypto/asn1/rfc5280time.c
90
.str = "20150923032700Z",
regress/lib/libcrypto/asn1/rfc5280time.c
96
.str = "00000101000000Z",
regress/lib/libcrypto/bn/bn_ffdh.c
329
const char **str;
regress/lib/libcrypto/bn/bn_ffdh.c
334
.str = &rfc2409_prime_768,
regress/lib/libcrypto/bn/bn_ffdh.c
339
.str = &rfc2409_prime_1024,
regress/lib/libcrypto/bn/bn_ffdh.c
344
.str = &rfc3526_prime_1536,
regress/lib/libcrypto/bn/bn_ffdh.c
349
.str = &rfc3526_prime_2048,
regress/lib/libcrypto/bn/bn_ffdh.c
354
.str = &rfc3526_prime_3072,
regress/lib/libcrypto/bn/bn_ffdh.c
359
.str = &rfc3526_prime_4096,
regress/lib/libcrypto/bn/bn_ffdh.c
364
.str = &rfc3526_prime_6144,
regress/lib/libcrypto/bn/bn_ffdh.c
369
.str = &rfc3526_prime_8192,
regress/lib/libcrypto/bn/bn_ffdh.c
374
.str = &rfc7919_prime_2048,
regress/lib/libcrypto/bn/bn_ffdh.c
379
.str = &rfc7919_prime_3072,
regress/lib/libcrypto/bn/bn_ffdh.c
384
.str = &rfc7919_prime_4096,
regress/lib/libcrypto/bn/bn_ffdh.c
389
.str = &rfc7919_prime_6144,
regress/lib/libcrypto/bn/bn_ffdh.c
394
.str = &rfc7919_prime_8192,
regress/lib/libcrypto/bn/bn_ffdh.c
414
if (BN_hex2bn(&pstr, *t->str) == 0)
regress/lib/libcrypto/bn/bn_ffdh.c
440
if (BN_hex2bn(&p, *t->str) == 0)
regress/lib/libcrypto/des/destest.c
314
char *str;
regress/lib/libcrypto/des/destest.c
740
str=crypt("testing","ef");
regress/lib/libcrypto/des/destest.c
741
if (strcmp("efGnQx2725bI2",str) != 0)
regress/lib/libcrypto/des/destest.c
743
printf("fast crypt error, %s should be efGnQx2725bI2\n",str);
regress/lib/libcrypto/des/destest.c
746
str=crypt("bca76;23","yA");
regress/lib/libcrypto/des/destest.c
747
if (strcmp("yA1Rp/1hZXIJk",str) != 0)
regress/lib/libcrypto/des/destest.c
749
printf("fast crypt error, %s should be yA1Rp/1hZXIJk\n",str);
regress/lib/libcrypto/mlkem/parse_test_file.c
468
parse_peek_string_cbs(struct parse *p, const char *str)
regress/lib/libcrypto/mlkem/parse_test_file.c
471
size_t len = strlen(str);
regress/lib/libcrypto/mlkem/parse_test_file.c
476
return CBS_mem_equal(&cbs, (const uint8_t *)str, len);
regress/lib/libcrypto/mlkem/parse_test_file.c
480
parse_get_string_cbs(struct parse *p, const char *str)
regress/lib/libcrypto/mlkem/parse_test_file.c
483
size_t len = strlen(str);
regress/lib/libcrypto/mlkem/parse_test_file.c
488
return CBS_mem_equal(&cbs, (const uint8_t *)str, len);
regress/lib/libcrypto/mlkem/parse_test_file.c
492
parse_get_string_end_cbs(struct parse *p, const char *str)
regress/lib/libcrypto/mlkem/parse_test_file.c
497
CBS_init(&cbs, (const uint8_t *)str, strlen(str));
regress/lib/libcrypto/mlkem/parse_test_file.c
500
parse_errx(p, "line too short to match %s", str);
regress/lib/libedit/keymacro/test_get.c
108
if (val.str != NULL)
regress/lib/libedit/keymacro/test_get.c
109
errx(1, "ix %ls != NULL", val.str);
regress/lib/libedit/keymacro/test_get.c
98
if (wcscmp(val.str, L"repl") != 0)
regress/lib/libedit/keymacro/test_get.c
99
errx(1, "al %ls != repl", val.str);
regress/lib/libedit/read/glue.c
53
val->str = value;
regress/lib/libedit/read/glue.c
56
val->str = NULL;
regress/lib/libm/cephes/testvectll.c
387
static void pvec (char *str, long double x)
regress/lib/libm/cephes/testvectll.c
397
printf ("%s ", str);
regress/lib/libpthread/signodefer/signodefer.c
21
char *str;
regress/lib/libpthread/signodefer/signodefer.c
30
asprintf(&str,
regress/lib/libpthread/signodefer/signodefer.c
34
CHECKe(write(STDOUT_FILENO, str, strlen(str)));
regress/lib/libpthread/stdio/stdio.c
87
char * str = "10 4.53";
regress/lib/libpthread/stdio/stdio.c
92
ASSERT(sscanf(str, "%d %lf", &i, &d) == 2);
regress/lib/libpthread/stdio/stdio.c
96
ASSERT(strcmp(buf, str) == 0);
regress/lib/libssl/ciphers/cipherstest.c
28
int ssl_parse_ciphersuites(STACK_OF(SSL_CIPHER) **out_ciphers, const char *str);
regress/lib/libssl/ciphers/cipherstest.c
867
const char *str;
regress/lib/libssl/ciphers/cipherstest.c
875
.str = "AEAD-AES256-GCM-SHA384:AEAD-CHACHA20-POLY1305-SHA256:AEAD-AES128-GCM-SHA256",
regress/lib/libssl/ciphers/cipherstest.c
885
.str = "TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_128_GCM_SHA256",
regress/lib/libssl/ciphers/cipherstest.c
895
.str = "AEAD-AES128-GCM-SHA256:AEAD-AES256-GCM-SHA384:AEAD-CHACHA20-POLY1305-SHA256",
regress/lib/libssl/ciphers/cipherstest.c
905
.str = "AEAD-AES256-GCM-SHA384:AEAD-AES128-CCM-SHA256:AEAD-AES128-CCM-8-SHA256",
regress/lib/libssl/ciphers/cipherstest.c
913
.str = "",
regress/lib/libssl/ciphers/cipherstest.c
918
.str = "TLS_CHACHA20_POLY1305_SHA256:TLS_NOT_A_CIPHERSUITE",
regress/lib/libssl/ciphers/cipherstest.c
922
.str = "TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256,TLS_AES_128_GCM_SHA256",
regress/lib/libssl/ciphers/cipherstest.c
943
ret = ssl_parse_ciphersuites(&ciphers, pct->str);
regress/lib/libssl/dtls/dtlstest.c
266
bio_packet_monkey_puts(BIO *bio, const char *str)
regress/lib/libssl/dtls/dtlstest.c
268
return bio_packet_monkey_write(bio, str, strlen(str));
regress/lib/libssl/interop/botan/client.cpp
94
string str("hello\n");
regress/lib/libssl/interop/botan/client.cpp
95
cout <<">>> " <<str <<flush;
regress/lib/libssl/interop/botan/client.cpp
96
m_channel->send(str);
regress/lib/libssl/unit/tls_ext_alpn.c
337
const uint8_t str[] = {
regress/lib/libssl/unit/tls_ext_alpn.c
343
CHECK(! SSL_set_alpn_protos(s, str, 9));
regress/lib/libssl/unit/tls_ext_alpn.c
369
const uint8_t str[] = {
regress/lib/libssl/unit/tls_ext_alpn.c
375
CHECK(! SSL_set_alpn_protos(s, str, 9));
regress/libexec/ld.so/constructor/libab/ab.C
16
BB::BB(const char *str)
regress/libexec/ld.so/dlopen/libab/ab.C
28
BB::BB(const char *str)
regress/libexec/ld.so/dlopen/libab/ab.C
30
_name = str;
regress/libexec/ld.so/dlopen/libac/ac.C
23
AC::AC(const char *str)
regress/libexec/ld.so/dlopen/libac/ac.C
25
_name = str;
regress/libexec/ld.so/dlopen/prog1/prog1.C
18
char *str;
regress/libexec/ld.so/dlopen/prog1/prog1.C
47
str = (*func)();
regress/libexec/ld.so/dlopen/prog1/prog1.C
48
if (strcmp(str, "libaa:aa") != 0) {
regress/libexec/ld.so/dlopen/prog1/prog1.C
49
printf("func should have returned libaa:aa returned %s\n", str);
regress/libexec/ld.so/dlopen/prog1/prog1.C
54
str = (*func)();
regress/libexec/ld.so/dlopen/prog1/prog1.C
55
if (strcmp(str, "libab:ab") != 0) {
regress/libexec/ld.so/dlopen/prog1/prog1.C
56
printf("func should have returned libab:ab returned %s\n", str);
regress/sys/copy/copy.c
22
fail(const char *str)
regress/sys/copy/copy.c
24
fprintf(stderr, "%s\n", str);
regress/sys/crypto/cmac/cmac_test.c
24
print_hex(char *str, unsigned char *buf, int len)
regress/sys/crypto/cmac/cmac_test.c
29
if ( (i % 16) == 0 && i != 0 ) printf("%s", str);
regress/sys/crypto/key_wrap/key_wrap_test.c
23
print_hex(const char *str, unsigned char *buf, int len)
regress/sys/crypto/key_wrap/key_wrap_test.c
27
printf("%s", str);
regress/sys/ffs/fstest.c
284
char *str;
regress/sys/ffs/fstest.c
307
args[i].str = NULL;
regress/sys/ffs/fstest.c
309
args[i].str = (void *)0xdeadc0de;
regress/sys/ffs/fstest.c
311
args[i].str = argv[i];
regress/sys/ffs/fstest.c
327
#define STR(n) (args[(n)].str)
regress/sys/fifofs/fifotest.c
282
dopoll(pid_t writer, int fd, int events, char *str, int timeout)
regress/sys/fifofs/fifotest.c
290
printf("\tpoll %s, timeout=%d\n", str, timeout);
regress/sys/kern/ptrace2/atf-c.h
98
#define atf_tc_get_config_var_as_bool_wd(tc, str, b) 0
regress/sys/kern/ptrace2/ptrace_test.c
66
child_fail_require(const char *file, int line, const char *str)
regress/sys/kern/ptrace2/ptrace_test.c
70
snprintf(buf, sizeof(buf), "%s:%d: %s\n", file, line, str);
regress/sys/kern/recvwait/mcontrol-stream.c
31
char str[] = "foo";
regress/sys/kern/recvwait/mcontrol-stream.c
57
if ((size_t)n != strlen(str))
regress/sys/kern/recvwait/mcontrol-stream.c
61
if ((size_t)n != strlen(str))
regress/sys/kern/recvwait/mcontrol-stream.c
66
io_vector[0].iov_base = str;
regress/sys/kern/recvwait/mcontrol-stream.c
67
io_vector[0].iov_len = strlen(str);
regress/sys/kern/setuid/setuid_regress.h
30
checkuids(uid_t truid, uid_t teuid, uid_t tsuid, const char *str)
regress/sys/kern/setuid/setuid_regress.h
35
err(1, "getresuid %s", str);
regress/sys/kern/setuid/setuid_regress.h
39
str, ruid, truid);
regress/sys/kern/setuid/setuid_regress.h
42
str, euid, teuid);
regress/sys/kern/setuid/setuid_regress.h
45
str, suid, tsuid);
regress/sys/kern/setuid/setuid_regress.h
49
checkgids(gid_t trgid, gid_t tegid, gid_t tsgid, const char *str)
regress/sys/kern/setuid/setuid_regress.h
54
err(1, "getresgid %s", str);
regress/sys/kern/setuid/setuid_regress.h
58
str, rgid, trgid);
regress/sys/kern/setuid/setuid_regress.h
61
str, egid, tegid);
regress/sys/kern/setuid/setuid_regress.h
64
str, sgid, tsgid);
regress/sys/net/pf_print/pf_print_test.c
72
char str[100];
regress/sys/net/pf_print/pf_print_test.c
84
if (!inet_ntop(AF_INET6, &addr.v6, str, sizeof(str)))
regress/sys/net/pf_print/pf_print_test.c
86
if (strcmp(*in, str) != 0) {
regress/sys/net/pf_print/pf_print_test.c
87
warnx("not equal\nin:\t%s\nstr:\t%s", *in, str);
regress/usr.bin/ssh/unittests/misc/test_expand.c
32
char *str = dollar_expand(NULL, (x)); \
regress/usr.bin/ssh/unittests/misc/test_expand.c
33
ASSERT_STRING_EQ(str, (y)); \
regress/usr.bin/ssh/unittests/misc/test_expand.c
34
free(str); \
regress/usr.bin/ssh/unittests/misc/test_hpdelim.c
25
char *orig, *str, *cp, *port;
regress/usr.bin/ssh/unittests/misc/test_hpdelim.c
27
#define START_STRING(x) orig = str = xstrdup(x)
regress/usr.bin/ssh/unittests/misc/test_hpdelim.c
32
cp = hpdelim(&str);
regress/usr.bin/ssh/unittests/misc/test_hpdelim.c
34
ASSERT_PTR_EQ(str, NULL);
regress/usr.bin/ssh/unittests/misc/test_hpdelim.c
40
cp = hpdelim(&str);
regress/usr.bin/ssh/unittests/misc/test_hpdelim.c
42
ASSERT_PTR_NE(str, NULL);
regress/usr.bin/ssh/unittests/misc/test_hpdelim.c
43
port = hpdelim(&str);
regress/usr.bin/ssh/unittests/misc/test_hpdelim.c
45
ASSERT_PTR_EQ(str, NULL);
regress/usr.bin/ssh/unittests/misc/test_hpdelim.c
51
cp = hpdelim(&str);
regress/usr.bin/ssh/unittests/misc/test_hpdelim.c
53
ASSERT_PTR_NE(str, NULL);
regress/usr.bin/ssh/unittests/misc/test_hpdelim.c
54
port = hpdelim(&str);
regress/usr.bin/ssh/unittests/misc/test_hpdelim.c
56
ASSERT_PTR_EQ(str, NULL);
regress/usr.bin/ssh/unittests/misc/test_hpdelim.c
62
cp = hpdelim(&str);
regress/usr.bin/ssh/unittests/misc/test_hpdelim.c
64
ASSERT_PTR_NE(str, NULL);
regress/usr.bin/ssh/unittests/misc/test_hpdelim.c
65
port = hpdelim(&str);
regress/usr.bin/ssh/unittests/misc/test_hpdelim.c
67
ASSERT_PTR_EQ(str, NULL);
regress/usr.bin/ssh/unittests/misc/test_hpdelim.c
73
cp = hpdelim(&str);
regress/usr.bin/ssh/unittests/misc/test_strdelim.c
101
ASSERT_PTR_EQ(str, NULL);
regress/usr.bin/ssh/unittests/misc/test_strdelim.c
102
cp = strdelim(&str);
regress/usr.bin/ssh/unittests/misc/test_strdelim.c
109
cp = strdelim(&str);
regress/usr.bin/ssh/unittests/misc/test_strdelim.c
111
ASSERT_STRING_EQ(str, "=blob2");
regress/usr.bin/ssh/unittests/misc/test_strdelim.c
112
cp = strdelim(&str);
regress/usr.bin/ssh/unittests/misc/test_strdelim.c
114
ASSERT_STRING_EQ(str, "blob2");
regress/usr.bin/ssh/unittests/misc/test_strdelim.c
115
cp = strdelim(&str);
regress/usr.bin/ssh/unittests/misc/test_strdelim.c
117
ASSERT_PTR_EQ(str, NULL);
regress/usr.bin/ssh/unittests/misc/test_strdelim.c
123
cp = strdelimw(&str);
regress/usr.bin/ssh/unittests/misc/test_strdelim.c
125
ASSERT_PTR_EQ(str, NULL);
regress/usr.bin/ssh/unittests/misc/test_strdelim.c
126
cp = strdelimw(&str);
regress/usr.bin/ssh/unittests/misc/test_strdelim.c
133
cp = strdelim(&str);
regress/usr.bin/ssh/unittests/misc/test_strdelim.c
135
cp = strdelim(&str);
regress/usr.bin/ssh/unittests/misc/test_strdelim.c
137
ASSERT_PTR_EQ(str, NULL);
regress/usr.bin/ssh/unittests/misc/test_strdelim.c
143
cp = strdelim(&str);
regress/usr.bin/ssh/unittests/misc/test_strdelim.c
145
ASSERT_STRING_EQ(str, "blob2");
regress/usr.bin/ssh/unittests/misc/test_strdelim.c
146
cp = strdelim(&str);
regress/usr.bin/ssh/unittests/misc/test_strdelim.c
148
ASSERT_PTR_EQ(str, NULL);
regress/usr.bin/ssh/unittests/misc/test_strdelim.c
149
cp = strdelim(&str);
regress/usr.bin/ssh/unittests/misc/test_strdelim.c
156
cp = strdelim(&str);
regress/usr.bin/ssh/unittests/misc/test_strdelim.c
158
ASSERT_STRING_EQ(str, "\"blob2\"");
regress/usr.bin/ssh/unittests/misc/test_strdelim.c
159
cp = strdelim(&str);
regress/usr.bin/ssh/unittests/misc/test_strdelim.c
161
ASSERT_STRING_EQ(str, "");
regress/usr.bin/ssh/unittests/misc/test_strdelim.c
162
cp = strdelim(&str);
regress/usr.bin/ssh/unittests/misc/test_strdelim.c
164
ASSERT_PTR_EQ(str, NULL);
regress/usr.bin/ssh/unittests/misc/test_strdelim.c
170
cp = strdelim(&str);
regress/usr.bin/ssh/unittests/misc/test_strdelim.c
172
cp = strdelim(&str);
regress/usr.bin/ssh/unittests/misc/test_strdelim.c
174
cp = strdelim(&str);
regress/usr.bin/ssh/unittests/misc/test_strdelim.c
176
cp = strdelim(&str);
regress/usr.bin/ssh/unittests/misc/test_strdelim.c
183
cp = strdelim(&str);
regress/usr.bin/ssh/unittests/misc/test_strdelim.c
190
cp = strdelim(&str);
regress/usr.bin/ssh/unittests/misc/test_strdelim.c
192
cp = strdelim(&str);
regress/usr.bin/ssh/unittests/misc/test_strdelim.c
25
char *orig, *str, *cp;
regress/usr.bin/ssh/unittests/misc/test_strdelim.c
27
#define START_STRING(x) orig = str = xstrdup(x)
regress/usr.bin/ssh/unittests/misc/test_strdelim.c
32
cp = strdelim(&str);
regress/usr.bin/ssh/unittests/misc/test_strdelim.c
34
cp = strdelim(&str);
regress/usr.bin/ssh/unittests/misc/test_strdelim.c
41
cp = strdelim(&str);
regress/usr.bin/ssh/unittests/misc/test_strdelim.c
43
ASSERT_STRING_EQ(str, "");
regress/usr.bin/ssh/unittests/misc/test_strdelim.c
49
cp = strdelim(&str);
regress/usr.bin/ssh/unittests/misc/test_strdelim.c
51
cp = strdelim(&str);
regress/usr.bin/ssh/unittests/misc/test_strdelim.c
53
ASSERT_PTR_EQ(str, NULL);
regress/usr.bin/ssh/unittests/misc/test_strdelim.c
59
cp = strdelim(&str);
regress/usr.bin/ssh/unittests/misc/test_strdelim.c
61
ASSERT_STRING_EQ(str, "");
regress/usr.bin/ssh/unittests/misc/test_strdelim.c
62
cp = strdelim(&str);
regress/usr.bin/ssh/unittests/misc/test_strdelim.c
64
ASSERT_PTR_EQ(str, NULL);
regress/usr.bin/ssh/unittests/misc/test_strdelim.c
70
cp = strdelim(&str);
regress/usr.bin/ssh/unittests/misc/test_strdelim.c
72
ASSERT_STRING_EQ(str, "blob2");
regress/usr.bin/ssh/unittests/misc/test_strdelim.c
73
cp = strdelim(&str);
regress/usr.bin/ssh/unittests/misc/test_strdelim.c
75
ASSERT_PTR_EQ(str, NULL);
regress/usr.bin/ssh/unittests/misc/test_strdelim.c
76
cp = strdelim(&str);
regress/usr.bin/ssh/unittests/misc/test_strdelim.c
83
cp = strdelim(&str);
regress/usr.bin/ssh/unittests/misc/test_strdelim.c
85
ASSERT_STRING_EQ(str, "blob2 ");
regress/usr.bin/ssh/unittests/misc/test_strdelim.c
86
cp = strdelim(&str);
regress/usr.bin/ssh/unittests/misc/test_strdelim.c
88
cp = strdelim(&str);
regress/usr.bin/ssh/unittests/misc/test_strdelim.c
90
ASSERT_PTR_EQ(str, NULL);
regress/usr.bin/ssh/unittests/misc/test_strdelim.c
96
cp = strdelim(&str);
regress/usr.bin/ssh/unittests/misc/test_strdelim.c
98
ASSERT_STRING_EQ(str, "blob2");
regress/usr.bin/ssh/unittests/misc/test_strdelim.c
99
cp = strdelim(&str);
regress/usr.sbin/snmpd/snmp.c
815
char *str = NULL, *buf, *p;
regress/usr.sbin/snmpd/snmp.c
826
if (asprintf(&str, "%lld", v) == -1)
regress/usr.sbin/snmpd/snmp.c
832
if (asprintf(&str, "%s", smi_oid2string(&o, strbuf,
regress/usr.sbin/snmpd/snmp.c
843
if (asprintf(&str, "\"%s\"", p) == -1) {
regress/usr.sbin/snmpd/snmp.c
850
if (asprintf(&str, "null") == -1)
regress/usr.sbin/snmpd/snmp.c
855
if (asprintf(&str, "[U/%u]", root->be_type) == -1)
regress/usr.sbin/snmpd/snmp.c
865
if (asprintf(&str, "%s",
regress/usr.sbin/snmpd/snmp.c
872
if (asprintf(&str, "%lld(c32)", v) == -1)
regress/usr.sbin/snmpd/snmp.c
878
if (asprintf(&str, "%lld(g32)", v) == -1)
regress/usr.sbin/snmpd/snmp.c
884
if (asprintf(&str, "%lld.%llds", v/100, v%100) == -1)
regress/usr.sbin/snmpd/snmp.c
894
if (asprintf(&str, "\"%s\"(opaque)", p) == -1) {
regress/usr.sbin/snmpd/snmp.c
903
if (asprintf(&str, "%lld(c64)", v) == -1)
regress/usr.sbin/snmpd/snmp.c
908
if (asprintf(&str, "[A/%u]", root->be_type) == -1)
regress/usr.sbin/snmpd/snmp.c
916
str = strdup("noSuchObject");
regress/usr.sbin/snmpd/snmp.c
919
str = strdup("noSuchInstance");
regress/usr.sbin/snmpd/snmp.c
922
str = strdup("endOfMibView");
regress/usr.sbin/snmpd/snmp.c
926
if (asprintf(&str, "[C/%u]", root->be_type) == -1)
regress/usr.sbin/snmpd/snmp.c
933
if (asprintf(&str, "[%hhu/%u]", root->be_class,
regress/usr.sbin/snmpd/snmp.c
939
return (str);
regress/usr.sbin/snmpd/snmp.c
942
free(str);
sbin/atactl/atactl.c
1565
#define SMART_PRINTREG(str, reg) \
sbin/atactl/atactl.c
1566
printf(str "0x%02x\t0x%02x\t0x%02x\t0x%02x\t0x%02x\n", \
sbin/atactl/atactl.c
474
strtoval(const char *str, struct valinfo *vinfo)
sbin/atactl/atactl.c
477
if (strcmp(str, vinfo->string) == 0)
sbin/dhcp6leased/dhcp6leased.c
1191
char *str;
sbin/dhcp6leased/dhcp6leased.c
1198
uuid_to_string(&uuid, &str, &status);
sbin/dhcp6leased/dhcp6leased.c
1202
len = snprintf(strbuf, sizeof(strbuf), "%s\n", str);
sbin/dhcp6leased/dhcp6leased.c
1205
free(str);
sbin/dump/itime.c
278
char un_buf[BUFSIZ], *str;
sbin/dump/itime.c
283
str = getduid(ddp->dd_name);
sbin/dump/itime.c
284
if (str != NULL) {
sbin/dump/itime.c
285
strlcpy(ddp->dd_name, str, sizeof(ddp->dd_name));
sbin/dump/itime.c
286
free(str);
sbin/dump/itime.c
288
str = strptime(un_buf, "%a %b %e %H:%M:%S %Y", &then);
sbin/dump/itime.c
290
if (str == NULL || (*str != '\n' && *str != '\0'))
sbin/dump/main.c
120
char *toplevel, *str, *mount_point = NULL, *realpath, *ct;
sbin/dump/main.c
191
str = strptime(optarg, "%a %b %e %H:%M:%S %Y", &then);
sbin/dump/main.c
193
if (str == NULL || (*str != '\n' && *str != '\0'))
sbin/fdisk/cmd.c
574
ask_num(const char *str, int dflt, int low, int high)
sbin/fdisk/cmd.c
586
printf("%s [%d - %d]: [%d] ", str, low, high, dflt);
sbin/fdisk/cmd.c
595
printf("%s is %s: %s.\n", str, errstr, lbuf);
sbin/fdisk/misc.c
100
ask_yn(const char *str)
sbin/fdisk/misc.c
108
printf("%s [n] ", str);
sbin/fsck_ext2fs/main.c
177
argtoi(int flag, char *req, char *str, int base)
sbin/fsck_ext2fs/main.c
182
ret = (int)strtol(str, &cp, base);
sbin/fsck_ext2fs/main.c
183
if (cp == str || *cp)
sbin/fsck_ffs/main.c
192
argtoi(int flag, char *req, char *str, int base)
sbin/fsck_ffs/main.c
197
ret = strtoll(str, &cp, base);
sbin/fsck_ffs/main.c
198
if (cp == str || *cp)
sbin/ifconfig/brconfig.c
1697
char *str, *argv[MAXRULEWORDS], buf[1024];
sbin/ifconfig/brconfig.c
1710
str = strtok(buf, "\n\t\r ");
sbin/ifconfig/brconfig.c
1711
while (str != NULL && argc < MAXRULEWORDS) {
sbin/ifconfig/brconfig.c
1712
argv[argc++] = str;
sbin/ifconfig/brconfig.c
1713
str = strtok(NULL, "\n\t\r ");
sbin/ifconfig/brconfig.c
1717
if (str != NULL) {
sbin/ifconfig/brconfig.c
509
char *optlist, *str;
sbin/ifconfig/brconfig.c
521
str = strtok(optlist, ",");
sbin/ifconfig/brconfig.c
522
while (str != NULL) {
sbin/ifconfig/brconfig.c
523
v = strtonum(str, 1, 31, &errstr);
sbin/ifconfig/brconfig.c
525
errx(1, "protected domain %s is: %s", str, errstr);
sbin/ifconfig/brconfig.c
527
str = strtok(NULL, ",");
sbin/ifconfig/brconfig.c
613
char *str)
sbin/ifconfig/brconfig.c
617
while ((s = strsep(&str, ",")) != NULL) {
sbin/ifconfig/brconfig.c
664
char *str;
sbin/ifconfig/brconfig.c
685
str = strdup(val);
sbin/ifconfig/brconfig.c
686
if (str == NULL)
sbin/ifconfig/brconfig.c
689
bridge_set_vidmap_parse(&ifbrvm, ifsname, str);
sbin/ifconfig/brconfig.c
691
free(str);
sbin/ifconfig/ifconfig.c
2072
char *optlist, *str;
sbin/ifconfig/ifconfig.c
2077
str = strtok(optlist, ",");
sbin/ifconfig/ifconfig.c
2078
while (str != NULL) {
sbin/ifconfig/ifconfig.c
2079
if (strcasecmp(str, "wpa1") == 0)
sbin/ifconfig/ifconfig.c
2081
else if (strcasecmp(str, "wpa2") == 0)
sbin/ifconfig/ifconfig.c
2084
errx(1, "wpaprotos: unknown protocol: %s", str);
sbin/ifconfig/ifconfig.c
2085
str = strtok(NULL, ",");
sbin/ifconfig/ifconfig.c
2112
char *optlist, *str;
sbin/ifconfig/ifconfig.c
2117
str = strtok(optlist, ",");
sbin/ifconfig/ifconfig.c
2118
while (str != NULL) {
sbin/ifconfig/ifconfig.c
2119
if (strcasecmp(str, "psk") == 0)
sbin/ifconfig/ifconfig.c
2121
else if (strcasecmp(str, "sha256-psk") == 0)
sbin/ifconfig/ifconfig.c
2123
else if (strcasecmp(str, "802.1x") == 0)
sbin/ifconfig/ifconfig.c
2126
errx(1, "wpaakms: unknown akm: %s", str);
sbin/ifconfig/ifconfig.c
2127
str = strtok(NULL, ",");
sbin/ifconfig/ifconfig.c
2177
char *optlist, *str;
sbin/ifconfig/ifconfig.c
2182
str = strtok(optlist, ",");
sbin/ifconfig/ifconfig.c
2183
while (str != NULL) {
sbin/ifconfig/ifconfig.c
2184
u_int cipher = getwpacipher(str);
sbin/ifconfig/ifconfig.c
2186
errx(1, "wpaciphers: unknown cipher: %s", str);
sbin/ifconfig/ifconfig.c
2189
str = strtok(NULL, ",");
sbin/ifconfig/ifconfig.c
3152
char *optlist, *str;
sbin/ifconfig/ifconfig.c
3159
str = optlist;
sbin/ifconfig/ifconfig.c
3164
for (; (str = strtok(str, ",")) != NULL; str = NULL) {
sbin/ifconfig/ifconfig.c
3165
option = lookup_media_word(ifm_option_descriptions, type, str);
sbin/ifconfig/ifconfig.c
3168
get_media_type_string(type), str);
sbin/ifconfig/ifconfig.c
4947
char *optlist, *str;
sbin/ifconfig/ifconfig.c
4964
str = strtok(optlist, ",");
sbin/ifconfig/ifconfig.c
4965
for (i = 0; str != NULL; i++) {
sbin/ifconfig/ifconfig.c
4970
if (sscanf(str, "%u:%u", &vhid, &advskew) != 2) {
sbin/ifconfig/ifconfig.c
4971
errx(1, "non parsable arg: %s", str);
sbin/ifconfig/ifconfig.c
4980
str = strtok(NULL, ",");
sbin/ifconfig/ifconfig.c
6074
umb_descr2val(const struct umb_valdescr *vdp, char *str)
sbin/ifconfig/ifconfig.c
6077
if (!strcasecmp(vdp->descr, str))
sbin/ifconfig/ifconfig.c
6303
char *optlist, *str;
sbin/ifconfig/ifconfig.c
6308
str = strtok(optlist, ",");
sbin/ifconfig/ifconfig.c
6309
while (str != NULL) {
sbin/ifconfig/ifconfig.c
6310
if ((v = umb_descr2val(umb_dataclass, str)) != 0 ||
sbin/ifconfig/ifconfig.c
6311
(v = umb_descr2val(umb_classalias, str)) != 0)
sbin/ifconfig/ifconfig.c
6313
str = strtok(NULL, ",");
sbin/iked/ca.c
1665
char *str = NULL;
sbin/iked/ca.c
1671
str = X509_NAME_oneline(name, NULL, 0);
sbin/iked/ca.c
1674
return (str);
sbin/iked/eap.c
426
char *str;
sbin/iked/eap.c
458
if ((str = eap_validate_id_response(eap)) == NULL)
sbin/iked/eap.c
461
free(str);
sbin/iked/eap.c
465
free(str);
sbin/iked/eap.c
470
msg->msg_parent->msg_eap.eam_identity = str;
sbin/iked/eap.c
485
if ((str = get_string(ptr, len)) == NULL) {
sbin/iked/eap.c
496
msc->msc_valuesize, str, len);
sbin/iked/eap.c
497
free(str);
sbin/iked/eap.c
507
if ((str = get_string(ptr, len)) == NULL) {
sbin/iked/eap.c
518
msr->msr_valuesize, str, len);
sbin/iked/eap.c
519
free(str);
sbin/iked/eap.c
530
if ((str = get_string(ptr, len)) == NULL) {
sbin/iked/eap.c
541
str, len);
sbin/iked/eap.c
542
free(str);
sbin/iked/eap.c
564
if ((str = get_string(ptr, len)) == NULL) {
sbin/iked/eap.c
573
msf->msf_id, betoh16(msf->msf_length), str);
sbin/iked/eap.c
574
free(str);
sbin/iked/eap.c
68
char *str;
sbin/iked/eap.c
75
if ((str = strdup("")) == NULL) {
sbin/iked/eap.c
79
} else if ((str = get_string(ptr, len)) == NULL) {
sbin/iked/eap.c
84
log_debug("%s: identity '%s' length %zd", __func__, str, len);
sbin/iked/eap.c
85
return (str);
sbin/iked/iked.c
454
char *str = NULL;
sbin/iked/iked.c
471
str = get_string(imsg->data, IMSG_DATA_SIZE(imsg));
sbin/iked/iked.c
472
parent_reload(env, 0, str);
sbin/iked/iked.c
473
free(str);
sbin/iked/ikev2.c
6999
char *str;
sbin/iked/ikev2.c
7035
if ((str = get_string(ptr, len)) == NULL)
sbin/iked/ikev2.c
7038
if (strlcat(idstr, str, idstrlen) >= idstrlen) {
sbin/iked/ikev2.c
7039
free(str);
sbin/iked/ikev2.c
7042
free(str);
sbin/iked/ikev2.c
7053
if ((str = ca_asn1_name(ptr, len)) == NULL)
sbin/iked/ikev2.c
7055
if (strlcat(idstr, str, idstrlen) >= idstrlen) {
sbin/iked/ikev2.c
7056
OPENSSL_free(str);
sbin/iked/ikev2.c
7059
OPENSSL_free(str);
sbin/iked/util.c
462
lc_idtype(char *str)
sbin/iked/util.c
464
for (; *str != '\0' && *str != '/'; str++)
sbin/iked/util.c
465
*str = tolower((unsigned char)*str);
sbin/isakmpd/exchange.c
1012
str = conf_get_str(policy, "DOI");
sbin/isakmpd/exchange.c
1013
if (!str || strcasecmp(str, "IPSEC") == 0) {
sbin/isakmpd/exchange.c
1015
str = "IPSEC";
sbin/isakmpd/exchange.c
1017
else if (strcasecmp(str, "ISAKMP") == 0)
sbin/isakmpd/exchange.c
1021
"DOI \"%s\" unsupported", str);
sbin/isakmpd/exchange.c
1026
log_print("exchange_setup_p1: expected %s DOI", str);
sbin/isakmpd/exchange.c
1030
str = conf_get_str(policy, "EXCHANGE_TYPE");
sbin/isakmpd/exchange.c
1031
if (!str) {
sbin/isakmpd/exchange.c
1036
type = constant_value(isakmp_exch_cst, str);
sbin/isakmpd/exchange.c
1039
"unknown exchange type %s", str);
sbin/isakmpd/exchange.c
1044
"expected exchange type %s got %s", str,
sbin/isakmpd/exchange.c
717
char *str;
sbin/isakmpd/exchange.c
734
str = conf_get_str(tag, "DOI");
sbin/isakmpd/exchange.c
735
if (!str || strcasecmp(str, "IPSEC") == 0)
sbin/isakmpd/exchange.c
737
else if (strcasecmp(str, "ISAKMP") == 0)
sbin/isakmpd/exchange.c
741
"DOI \"%s\" unsupported", str);
sbin/isakmpd/exchange.c
746
str = conf_get_str(tag, "EXCHANGE_TYPE");
sbin/isakmpd/exchange.c
747
if (!str) {
sbin/isakmpd/exchange.c
753
type = constant_value(isakmp_exch_cst, str);
sbin/isakmpd/exchange.c
756
"unknown exchange type %s", str);
sbin/isakmpd/exchange.c
856
char *tag, *str;
sbin/isakmpd/exchange.c
872
str = conf_get_str(tag, "DOI");
sbin/isakmpd/exchange.c
873
if (!str || strcasecmp(str, "IPSEC") == 0)
sbin/isakmpd/exchange.c
875
else if (strcasecmp(str, "ISAKMP") == 0)
sbin/isakmpd/exchange.c
879
"DOI \"%s\" unsupported", str);
sbin/isakmpd/exchange.c
885
str = conf_get_str(tag, "EXCHANGE_TYPE");
sbin/isakmpd/exchange.c
886
if (!str) {
sbin/isakmpd/exchange.c
893
type = constant_value(ike_exch_cst, str);
sbin/isakmpd/exchange.c
896
"exchange type %s", str);
sbin/isakmpd/exchange.c
964
char *name = 0, *policy = 0, *str;
sbin/isakmpd/exchange.c
980
if (sockaddr2text(dst, &str, 0) == -1)
sbin/isakmpd/exchange.c
982
name = conf_get_str("Phase 1", str);
sbin/isakmpd/exchange.c
983
free(str);
sbin/isakmpd/ike_phase_1.c
1267
char *str;
sbin/isakmpd/ike_phase_1.c
1284
str = conf_get_str(xf->field, tag);
sbin/isakmpd/ike_phase_1.c
1285
if (!str) {
sbin/isakmpd/ike_phase_1.c
1295
if ((constant_value(map, str) == decode_16(value)) ||
sbin/isakmpd/ike_phase_1.c
1296
(!strcmp(str, "ANY"))) {
sbin/isakmpd/ike_phase_1.c
1310
tag, constant_name(map, decode_16(value)), str);
sbin/isakmpd/ike_phase_1.c
1349
str = conf_get_str(life->field, "LIFE_TYPE");
sbin/isakmpd/ike_phase_1.c
1350
if (!str) {
sbin/isakmpd/ike_phase_1.c
1361
if (constant_value(ike_duration_cst, str) ==
sbin/isakmpd/ike_phase_1.c
1380
str = conf_get_str(vs->life, "LIFE_DURATION");
sbin/isakmpd/ike_phase_1.c
1381
if (str) {
sbin/isakmpd/ike_phase_1.c
1382
if (!strcmp(str, "ANY"))
sbin/isakmpd/ike_phase_1.c
1392
" expected %s", dur, str);
sbin/isakmpd/pf_key_v2.c
2314
phase2id(char *str, size_t size, const char *side, const char *sflow,
sbin/isakmpd/pf_key_v2.c
2327
return snprintf(str, size, "%s-%s%s%s%s", side, sflow, smasklen,
sbin/mountd/mountd.c
2254
char str[STRSIZ];
sbin/mountd/mountd.c
2262
while (fgets(str, STRSIZ, mlfile) != NULL) {
sbin/mountd/mountd.c
2263
cp = str;
sbin/mountd/mountd.c
72
#define isterminated(str, size) (memchr((str), '\0', (size)) != NULL)
sbin/pfctl/pfctl.c
804
pfctl_parse_host(char *str, struct pf_rule_addr *addr)
sbin/pfctl/pfctl.c
809
s = strdup(str);
sbin/pfctl/pfctl_optimize.c
46
# define DEBUG(str, v...) \
sbin/pfctl/pfctl_optimize.c
47
printf("%s: " str "\n", __FUNCTION__ , ## v)
sbin/pfctl/pfctl_optimize.c
49
# define DEBUG(str, v...) ((void)0)
sbin/pfctl/pfctl_osfp.c
43
# define DEBUG(fp, str, v...) \
sbin/pfctl/pfctl_osfp.c
44
fprintf(stderr, "%s:%s:%s " str "\n", (fp)->fp_os.fp_class_nm, \
sbin/pfctl/pfctl_osfp.c
47
# define DEBUG(fp, str, v...) ((void)0)
sbin/unwind/frontend.c
1210
char *str;
sbin/unwind/frontend.c
1212
if (log_getverbose() & OPT_VERBOSE2 && (str =
sbin/unwind/frontend.c
1216
&pq->from), str);
sbin/unwind/frontend.c
1217
free(str);
sbin/unwind/frontend.c
1452
char *str, *p, buf[512], *line;
sbin/unwind/frontend.c
1455
str = NULL;
sbin/unwind/frontend.c
1458
p = recallocarray(str, sz, sz + n, 1);
sbin/unwind/frontend.c
1463
str = p;
sbin/unwind/frontend.c
1464
memcpy(str + sz, buf, n);
sbin/unwind/frontend.c
1474
p = recallocarray(str, sz, sz + 1, 1);
sbin/unwind/frontend.c
1479
str = p;
sbin/unwind/frontend.c
1494
free(str);
sbin/unwind/frontend.c
1515
char *str;
sbin/unwind/frontend.c
1523
if ((n = asprintf(&str, "%s\n", ta->ta)) == -1) {
sbin/unwind/frontend.c
1529
if (write(fd, str, n) != n) {
sbin/unwind/frontend.c
1531
free(str);
sbin/unwind/frontend.c
1535
free(str);
sbin/unwind/frontend.c
748
char *str;
sbin/unwind/frontend.c
755
if (log_getverbose() & OPT_VERBOSE2 && (str =
sbin/unwind/frontend.c
759
&pq->from), str);
sbin/unwind/frontend.c
760
free(str);
sbin/unwind/libunbound/config.h
1403
int snprintf (char *str, size_t count, const char *fmt, ...);
sbin/unwind/libunbound/config.h
1404
int vsnprintf (char *str, size_t count, const char *fmt, va_list arg);
sbin/unwind/libunbound/dns64/dns64.c
330
dns64_insert_ignore_aaaa(struct dns64_env* dns64_env, char* str)
sbin/unwind/libunbound/dns64/dns64.c
339
node->name = sldns_str2wire_dname(str, &node->len);
sbin/unwind/libunbound/dns64/dns64.c
342
log_err("cannot parse dns64-ignore-aaaa: %s", str);
sbin/unwind/libunbound/dns64/dns64.c
388
if(!dns64_insert_ignore_aaaa(dns64_env, s->str))
sbin/unwind/libunbound/iterator/iter_delegpt.c
311
const char* str = " ";
sbin/unwind/libunbound/iterator/iter_delegpt.c
312
if(a->bogus && a->lame) str = " BOGUS ADDR_LAME ";
sbin/unwind/libunbound/iterator/iter_delegpt.c
313
else if(a->bogus) str = " BOGUS ";
sbin/unwind/libunbound/iterator/iter_delegpt.c
314
else if(a->lame) str = " ADDR_LAME ";
sbin/unwind/libunbound/iterator/iter_delegpt.c
316
snprintf(s, sizeof(s), "%s[%s]", str,
sbin/unwind/libunbound/iterator/iter_delegpt.c
318
else snprintf(s, sizeof(s), "%s", str);
sbin/unwind/libunbound/iterator/iter_donotq.c
115
log_assert(p->str);
sbin/unwind/libunbound/iterator/iter_donotq.c
116
if(!donotq_str_cfg(dq, p->str))
sbin/unwind/libunbound/iterator/iter_donotq.c
92
donotq_str_cfg(struct iter_donotq* dq, const char* str)
sbin/unwind/libunbound/iterator/iter_donotq.c
97
verbose(VERB_ALGO, "donotq: %s", str);
sbin/unwind/libunbound/iterator/iter_donotq.c
98
if(!netblockstrtoaddr(str, UNBOUND_DNS_PORT, &addr, &addrlen, &net)) {
sbin/unwind/libunbound/iterator/iter_donotq.c
99
log_err("cannot parse donotquery netblock: %s", str);
sbin/unwind/libunbound/iterator/iter_fwd.c
224
log_assert(p->str);
sbin/unwind/libunbound/iterator/iter_fwd.c
225
dname = authextstrtodname(p->str, &port, &tls_auth_name);
sbin/unwind/libunbound/iterator/iter_fwd.c
228
s->name, p->str);
sbin/unwind/libunbound/iterator/iter_fwd.c
234
"ssl library, ignored name for %s", p->str);
sbin/unwind/libunbound/iterator/iter_fwd.c
255
log_assert(p->str);
sbin/unwind/libunbound/iterator/iter_fwd.c
256
if(!authextstrtoaddr(p->str, &addr, &addrlen, &tls_auth_name)) {
sbin/unwind/libunbound/iterator/iter_fwd.c
258
s->name, p->str);
sbin/unwind/libunbound/iterator/iter_fwd.c
264
"ssl library, ignored name for %s", p->str);
sbin/unwind/libunbound/iterator/iter_hints.c
227
log_assert(p->str);
sbin/unwind/libunbound/iterator/iter_hints.c
228
dname = authextstrtodname(p->str, &port, &tls_auth_name);
sbin/unwind/libunbound/iterator/iter_hints.c
231
s->name, p->str);
sbin/unwind/libunbound/iterator/iter_hints.c
237
"ssl library, ignored name for %s", p->str);
sbin/unwind/libunbound/iterator/iter_hints.c
258
log_assert(p->str);
sbin/unwind/libunbound/iterator/iter_hints.c
259
if(!authextstrtoaddr(p->str, &addr, &addrlen, &auth_name)) {
sbin/unwind/libunbound/iterator/iter_hints.c
261
s->name, p->str);
sbin/unwind/libunbound/iterator/iter_hints.c
267
"ssl library, ignored name for %s", p->str);
sbin/unwind/libunbound/iterator/iter_hints.c
427
log_assert(p->str);
sbin/unwind/libunbound/iterator/iter_hints.c
428
if(p->str && p->str[0]) {
sbin/unwind/libunbound/iterator/iter_hints.c
429
char* f = p->str;
sbin/unwind/libunbound/iterator/iter_hints.c
431
strncmp(p->str, cfg->chrootdir,
sbin/unwind/libunbound/iterator/iter_priv.c
102
"private-address: %s", p->str);
sbin/unwind/libunbound/iterator/iter_priv.c
119
log_assert(p->str);
sbin/unwind/libunbound/iterator/iter_priv.c
120
nm = sldns_str2wire_dname(p->str, &nm_len);
sbin/unwind/libunbound/iterator/iter_priv.c
122
log_err("cannot parse private-domain: %s", p->str);
sbin/unwind/libunbound/iterator/iter_priv.c
141
"private-domain: %s", p->str);
sbin/unwind/libunbound/iterator/iter_priv.c
88
log_assert(p->str);
sbin/unwind/libunbound/iterator/iter_priv.c
89
if(!netblockstrtoaddr(p->str, UNBOUND_DNS_PORT, &addr,
sbin/unwind/libunbound/iterator/iter_priv.c
91
log_err("cannot parse private-address: %s", p->str);
sbin/unwind/libunbound/iterator/iter_scrub.c
63
remove_rrset(const char* str, sldns_buffer* pkt, struct msg_parse* msg,
sbin/unwind/libunbound/iterator/iter_scrub.c
66
if(verbosity >= VERB_QUERY && str
sbin/unwind/libunbound/iterator/iter_scrub.c
70
log_nametypeclass(VERB_QUERY, str, buf,
sbin/unwind/libunbound/iterator/iter_utils.c
101
int count = cfg_count_numbers(str);
sbin/unwind/libunbound/iterator/iter_utils.c
103
log_err("Cannot parse target fetch policy: \"%s\"", str);
sbin/unwind/libunbound/iterator/iter_utils.c
113
if(!fetch_fill(*target_fetch_policy, *max_dependency_depth, str))
sbin/unwind/libunbound/iterator/iter_utils.c
153
uint8_t* nm = sldns_str2wire_dname(p->str, &len);
sbin/unwind/libunbound/iterator/iter_utils.c
155
log_err("could not parse %s", p->str);
sbin/unwind/libunbound/iterator/iter_utils.c
81
fetch_fill(int* target_fetch_policy, int max_dependency_depth, const char* str)
sbin/unwind/libunbound/iterator/iter_utils.c
83
char* s = (char*)str, *e;
sbin/unwind/libunbound/iterator/iter_utils.c
99
const char* str)
sbin/unwind/libunbound/iterator/iter_utils.h
442
const char* str);
sbin/unwind/libunbound/libunbound/libunbound.c
429
ub_ctx_get_option(struct ub_ctx* ctx, const char* opt, char** str)
sbin/unwind/libunbound/libunbound/libunbound.c
433
r = config_get_option_collate(ctx->env->cfg, opt, str);
sbin/unwind/libunbound/libunbound/libworker.c
1030
void remote_get_opt_ssl(char* ATTR_UNUSED(str), void* ATTR_UNUSED(arg))
sbin/unwind/libunbound/libunbound/unbound.h
309
int ub_ctx_get_option(struct ub_ctx* ctx, const char* opt, char** str);
sbin/unwind/libunbound/respip/respip.c
362
log_assert(p->str && p->str2);
sbin/unwind/libunbound/respip/respip.c
363
if(!respip_tag_cfg(set, p->str, p->str2, p->str2len)) {
sbin/unwind/libunbound/respip/respip.c
367
free(p->str);
sbin/unwind/libunbound/respip/respip.c
376
log_assert(pa->str && pa->str2);
sbin/unwind/libunbound/respip/respip.c
377
if(!respip_action_cfg(set, pa->str, pa->str2)) {
sbin/unwind/libunbound/respip/respip.c
381
free(pa->str);
sbin/unwind/libunbound/respip/respip.c
390
log_assert(pd->str && pd->str2);
sbin/unwind/libunbound/respip/respip.c
391
if(!respip_data_cfg(set, pd->str, pd->str2)) {
sbin/unwind/libunbound/respip/respip.c
395
free(pd->str);
sbin/unwind/libunbound/services/authzone.c
1634
write_out(FILE* out, const char* str, size_t len)
sbin/unwind/libunbound/services/authzone.c
1639
r = fwrite(str, 1, len, out);
sbin/unwind/libunbound/services/authzone.c
4801
char str[LDNS_MAX_DOMAINLEN];
sbin/unwind/libunbound/services/authzone.c
4809
dname_str(buf, str);
sbin/unwind/libunbound/services/authzone.c
4812
str, typestr);
sbin/unwind/libunbound/services/authzone.c
7185
dup_prefix(char* str, size_t num)
sbin/unwind/libunbound/services/authzone.c
7188
size_t len = strlen(str);
sbin/unwind/libunbound/services/authzone.c
7195
memmove(result, str, num);
sbin/unwind/libunbound/services/authzone.c
7202
dup_all(char* str)
sbin/unwind/libunbound/services/authzone.c
7204
char* result = strdup(str);
sbin/unwind/libunbound/services/authzone.c
7311
if(!parse_url(p->str, &m->host, &m->file, &m->port, &m->ssl))
sbin/unwind/libunbound/services/authzone.c
7318
m->host = strdup(p->str);
sbin/unwind/libunbound/services/authzone.c
7328
m->host = strdup(p->str);
sbin/unwind/libunbound/services/authzone.c
7811
char str[LDNS_MAX_DOMAINLEN];
sbin/unwind/libunbound/services/authzone.c
7813
dname_str(name, str);
sbin/unwind/libunbound/services/authzone.c
7815
verbose(level, "auth zone %s %s", str, msg);
sbin/unwind/libunbound/services/cache/infra.c
217
d = domain_limit_findcreate(domain_limits, p->str);
sbin/unwind/libunbound/services/cache/infra.c
223
d = domain_limit_findcreate(domain_limits, p->str);
sbin/unwind/libunbound/services/cache/infra.c
244
wait_limit_netblock_findcreate(struct rbtree_type* tree, char* str)
sbin/unwind/libunbound/services/cache/infra.c
251
if(!netblockstrtoaddr(str, 0, &addr, &addrlen, &net)) {
sbin/unwind/libunbound/services/cache/infra.c
252
log_err("cannot parse wait limit netblock '%s'", str);
sbin/unwind/libunbound/services/cache/infra.c
285
p->str);
sbin/unwind/libunbound/services/cache/infra.c
292
p->str);
sbin/unwind/libunbound/services/cache/infra.c
302
wait_limit_netblock_default(struct rbtree_type* tree, char* str, int limit)
sbin/unwind/libunbound/services/cache/infra.c
305
d = wait_limit_netblock_findcreate(tree, str);
sbin/unwind/libunbound/services/listen_dnsport.c
1842
if(!resolve_ifa_name(addrs, p->str, resif, num_resif)) {
sbin/unwind/libunbound/services/listen_dnsport.c
1885
(*resif)[idx] = strdup(p->str);
sbin/unwind/libunbound/services/localzone.c
1058
if(!get_rr_nameclass(p->str, &rr_name, &rr_class, &rr_type)) {
sbin/unwind/libunbound/services/localzone.c
1059
log_err("Bad local-data RR %s", p->str);
sbin/unwind/libunbound/services/localzone.c
1164
if(!lz_enter_zone_tag(zones, p->str, p->str2, p->str2len,
sbin/unwind/libunbound/services/localzone.c
1179
if(!lz_enter_rr_str(zones, p->str))
sbin/unwind/libunbound/services/localzone.c
1385
snprintf(buf, sizeof(buf), ". %s", p->str);
sbin/unwind/libunbound/services/localzone.c
170
parse_dname(const char* str, uint8_t** res, size_t* len, int* labs)
sbin/unwind/libunbound/services/localzone.c
172
*res = sldns_str2wire_dname(str, len);
sbin/unwind/libunbound/services/localzone.c
175
log_err("cannot parse name %s", str);
sbin/unwind/libunbound/services/localzone.c
226
char str[LDNS_MAX_DOMAINLEN];
sbin/unwind/libunbound/services/localzone.c
227
dname_str(nm, str);
sbin/unwind/libunbound/services/localzone.c
228
log_warn("duplicate local-zone %s", str);
sbin/unwind/libunbound/services/localzone.c
271
rrstr_get_rr_content(const char* str, uint8_t** nm, uint16_t* type,
sbin/unwind/libunbound/services/localzone.c
276
int e = sldns_str2wire_rr_buf(str, rr, &len, &dname_len, 3600,
sbin/unwind/libunbound/services/localzone.c
280
LDNS_WIREPARSE_OFFSET(e), str,
sbin/unwind/libunbound/services/localzone.c
299
get_rr_nameclass(const char* str, uint8_t** nm, uint16_t* dclass,
sbin/unwind/libunbound/services/localzone.c
304
int s = sldns_str2wire_rr_buf(str, rr, &len, &dname_len, 3600,
sbin/unwind/libunbound/services/localzone.c
308
LDNS_WIREPARSE_OFFSET(s), str,
sbin/unwind/libunbound/services/localzone.c
796
lz_enter_zone(zones, p->str, p->str2,
sbin/unwind/libunbound/services/localzone.c
837
if(strncasecmp(p->str, name, len) == 0 &&
sbin/unwind/libunbound/services/localzone.c
838
(strlen(p->str) == len || (strlen(p->str)==len+1 &&
sbin/unwind/libunbound/services/localzone.c
839
p->str[len] == '.')))
sbin/unwind/libunbound/services/localzone.c
851
char str[1024]; /* known long enough */
sbin/unwind/libunbound/services/localzone.c
856
snprintf(str, sizeof(str), "%s 10800 IN SOA localhost. "
sbin/unwind/libunbound/services/localzone.c
858
if(!lz_enter_rr_into_zone(z, str)) {
sbin/unwind/libunbound/services/localzone.c
862
snprintf(str, sizeof(str), "%s 10800 IN NS localhost. ", name);
sbin/unwind/libunbound/services/localzone.c
863
if(!lz_enter_rr_into_zone(z, str)) {
sbin/unwind/libunbound/services/localzone.c
989
if(!lz_enter_override(zones, p->str, p->str2, p->str3,
sbin/unwind/libunbound/services/localzone.h
357
int local_zone_str2type(const char* str, enum localzone_type* t);
sbin/unwind/libunbound/services/localzone.h
451
int parse_dname(const char* str, uint8_t** res, size_t* len, int* labs);
sbin/unwind/libunbound/services/localzone.h
512
int rrstr_get_rr_content(const char* str, uint8_t** nm, uint16_t* type,
sbin/unwind/libunbound/services/mesh.c
2229
mesh_stats(struct mesh_area* mesh, const char* str)
sbin/unwind/libunbound/services/mesh.c
2234
str, (unsigned)mesh->all.count,
sbin/unwind/libunbound/services/mesh.c
900
n->str = regional_strdup(region, s->str);
sbin/unwind/libunbound/services/mesh.c
901
if(!n->str)
sbin/unwind/libunbound/services/mesh.h
591
void mesh_stats(struct mesh_area* mesh, const char* str);
sbin/unwind/libunbound/services/modstack.c
216
module_func_block* module_factory(const char** str)
sbin/unwind/libunbound/services/modstack.c
219
const char* s = *str;
sbin/unwind/libunbound/services/modstack.c
227
*str = s;
sbin/unwind/libunbound/services/modstack.h
94
struct module_func_block* module_factory(const char** str);
sbin/unwind/libunbound/services/rpz.c
1065
char str[LDNS_MAX_DOMAINLEN];
sbin/unwind/libunbound/services/rpz.c
1066
dname_str(dname, str);
sbin/unwind/libunbound/services/rpz.c
1068
str, rpz_action_to_string(a));
sbin/unwind/libunbound/services/rpz.c
669
char str[LDNS_MAX_DOMAINLEN];
sbin/unwind/libunbound/services/rpz.c
681
dname_str(dname, str);
sbin/unwind/libunbound/services/rpz.c
683
str, rpz_action_to_string(a));
sbin/unwind/libunbound/services/view.c
179
nd_str = strdup(nd->str);
sbin/unwind/libunbound/sldns/sbuffer.h
475
sldns_buffer_write_string_at(sldns_buffer *buffer, size_t at, const char *str)
sbin/unwind/libunbound/sldns/sbuffer.h
477
sldns_buffer_write_at(buffer, at, str, strlen(str));
sbin/unwind/libunbound/sldns/sbuffer.h
486
sldns_buffer_write_string(sldns_buffer *buffer, const char *str)
sbin/unwind/libunbound/sldns/sbuffer.h
488
sldns_buffer_write(buffer, str, strlen(str));
sbin/unwind/libunbound/sldns/str2wire.c
140
int sldns_str2wire_dname_buf(const char* str, uint8_t* buf, size_t* len)
sbin/unwind/libunbound/sldns/str2wire.c
142
return sldns_str2wire_dname_buf_rel(str, buf, len, NULL);
sbin/unwind/libunbound/sldns/str2wire.c
145
int sldns_str2wire_dname_buf_origin(const char* str, uint8_t* buf, size_t* len,
sbin/unwind/libunbound/sldns/str2wire.c
150
int s = sldns_str2wire_dname_buf_rel(str, buf, &dlen, &rel);
sbin/unwind/libunbound/sldns/str2wire.c
1619
static int sldns_str2wire_svcparam_buf(const char* str, uint8_t* rd, size_t* rd_len)
sbin/unwind/libunbound/sldns/str2wire.c
1626
eq_pos = strchr(str, '=');
sbin/unwind/libunbound/sldns/str2wire.c
1648
return sldns_str2wire_svcparam_value(str, eq_pos - str,
sbin/unwind/libunbound/sldns/str2wire.c
1653
return sldns_str2wire_svcparam_value(str, eq_pos - str, NULL, rd, rd_len);
sbin/unwind/libunbound/sldns/str2wire.c
1657
return sldns_str2wire_svcparam_value(str, strlen(str), NULL, rd, rd_len);
sbin/unwind/libunbound/sldns/str2wire.c
1661
int sldns_str2wire_rdf_buf(const char* str, uint8_t* rd, size_t* len,
sbin/unwind/libunbound/sldns/str2wire.c
1666
return sldns_str2wire_dname_buf(str, rd, len);
sbin/unwind/libunbound/sldns/str2wire.c
1668
return sldns_str2wire_int8_buf(str, rd, len);
sbin/unwind/libunbound/sldns/str2wire.c
1670
return sldns_str2wire_int16_buf(str, rd, len);
sbin/unwind/libunbound/sldns/str2wire.c
1672
return sldns_str2wire_int32_buf(str, rd, len);
sbin/unwind/libunbound/sldns/str2wire.c
1674
return sldns_str2wire_a_buf(str, rd, len);
sbin/unwind/libunbound/sldns/str2wire.c
1676
return sldns_str2wire_aaaa_buf(str, rd, len);
sbin/unwind/libunbound/sldns/str2wire.c
1678
return sldns_str2wire_str_buf(str, rd, len);
sbin/unwind/libunbound/sldns/str2wire.c
1680
return sldns_str2wire_apl_buf(str, rd, len);
sbin/unwind/libunbound/sldns/str2wire.c
1682
return sldns_str2wire_b64_buf(str, rd, len);
sbin/unwind/libunbound/sldns/str2wire.c
1684
return sldns_str2wire_b32_ext_buf(str, rd, len);
sbin/unwind/libunbound/sldns/str2wire.c
1686
return sldns_str2wire_hex_buf(str, rd, len);
sbin/unwind/libunbound/sldns/str2wire.c
1688
return sldns_str2wire_nsec_buf(str, rd, len);
sbin/unwind/libunbound/sldns/str2wire.c
1690
return sldns_str2wire_type_buf(str, rd, len);
sbin/unwind/libunbound/sldns/str2wire.c
1692
return sldns_str2wire_class_buf(str, rd, len);
sbin/unwind/libunbound/sldns/str2wire.c
1694
return sldns_str2wire_cert_alg_buf(str, rd, len);
sbin/unwind/libunbound/sldns/str2wire.c
1696
return sldns_str2wire_alg_buf(str, rd, len);
sbin/unwind/libunbound/sldns/str2wire.c
1698
return sldns_str2wire_time_buf(str, rd, len);
sbin/unwind/libunbound/sldns/str2wire.c
1700
return sldns_str2wire_period_buf(str, rd, len);
sbin/unwind/libunbound/sldns/str2wire.c
1702
return sldns_str2wire_tsigtime_buf(str, rd, len);
sbin/unwind/libunbound/sldns/str2wire.c
1704
return sldns_str2wire_loc_buf(str, rd, len);
sbin/unwind/libunbound/sldns/str2wire.c
1706
return sldns_str2wire_wks_buf(str, rd, len);
sbin/unwind/libunbound/sldns/str2wire.c
1708
return sldns_str2wire_nsap_buf(str, rd, len);
sbin/unwind/libunbound/sldns/str2wire.c
171
uint8_t* sldns_str2wire_dname(const char* str, size_t* len)
sbin/unwind/libunbound/sldns/str2wire.c
1710
return sldns_str2wire_atma_buf(str, rd, len);
sbin/unwind/libunbound/sldns/str2wire.c
1712
return sldns_str2wire_ipseckey_buf(str, rd, len);
sbin/unwind/libunbound/sldns/str2wire.c
1714
return sldns_str2wire_nsec3_salt_buf(str, rd, len);
sbin/unwind/libunbound/sldns/str2wire.c
1716
return sldns_str2wire_b32_ext_buf(str, rd, len);
sbin/unwind/libunbound/sldns/str2wire.c
1718
return sldns_str2wire_ilnp64_buf(str, rd, len);
sbin/unwind/libunbound/sldns/str2wire.c
1720
return sldns_str2wire_eui48_buf(str, rd, len);
sbin/unwind/libunbound/sldns/str2wire.c
1722
return sldns_str2wire_eui64_buf(str, rd, len);
sbin/unwind/libunbound/sldns/str2wire.c
1724
return sldns_str2wire_unquoted_buf(str, rd, len);
sbin/unwind/libunbound/sldns/str2wire.c
1726
return sldns_str2wire_tag_buf(str, rd, len);
sbin/unwind/libunbound/sldns/str2wire.c
1728
return sldns_str2wire_long_str_buf(str, rd, len);
sbin/unwind/libunbound/sldns/str2wire.c
1730
return sldns_str2wire_tsigerror_buf(str, rd, len);
sbin/unwind/libunbound/sldns/str2wire.c
1732
return sldns_str2wire_hip_buf(str, rd, len);
sbin/unwind/libunbound/sldns/str2wire.c
1734
return sldns_str2wire_int16_data_buf(str, rd, len);
sbin/unwind/libunbound/sldns/str2wire.c
1736
return sldns_str2wire_svcparam_buf(str, rd, len);
sbin/unwind/libunbound/sldns/str2wire.c
1747
int sldns_str2wire_int8_buf(const char* str, uint8_t* rd, size_t* len)
sbin/unwind/libunbound/sldns/str2wire.c
175
if(sldns_str2wire_dname_buf(str, dname, len) == 0) {
sbin/unwind/libunbound/sldns/str2wire.c
1750
uint8_t r = (uint8_t)strtol((char*)str, &end, 10);
sbin/unwind/libunbound/sldns/str2wire.c
1752
return RET_ERR(LDNS_WIREPARSE_ERR_SYNTAX_INT, end-(char*)str);
sbin/unwind/libunbound/sldns/str2wire.c
1760
int sldns_str2wire_int16_buf(const char* str, uint8_t* rd, size_t* len)
sbin/unwind/libunbound/sldns/str2wire.c
1763
uint16_t r = (uint16_t)strtol((char*)str, &end, 10);
sbin/unwind/libunbound/sldns/str2wire.c
1765
return RET_ERR(LDNS_WIREPARSE_ERR_SYNTAX_INT, end-(char*)str);
sbin/unwind/libunbound/sldns/str2wire.c
1773
int sldns_str2wire_int32_buf(const char* str, uint8_t* rd, size_t* len)
sbin/unwind/libunbound/sldns/str2wire.c
1779
if(*str == '-')
sbin/unwind/libunbound/sldns/str2wire.c
1780
r = (uint32_t)strtol((char*)str, &end, 10);
sbin/unwind/libunbound/sldns/str2wire.c
1781
else r = (uint32_t)strtoul((char*)str, &end, 10);
sbin/unwind/libunbound/sldns/str2wire.c
1783
return RET_ERR(LDNS_WIREPARSE_ERR_SYNTAX_INT, end-(char*)str);
sbin/unwind/libunbound/sldns/str2wire.c
1793
int sldns_str2wire_a_buf(const char* str, uint8_t* rd, size_t* len)
sbin/unwind/libunbound/sldns/str2wire.c
1796
if(inet_pton(AF_INET, (char*)str, &address) != 1)
sbin/unwind/libunbound/sldns/str2wire.c
1805
int sldns_str2wire_aaaa_buf(const char* str, uint8_t* rd, size_t* len)
sbin/unwind/libunbound/sldns/str2wire.c
1809
if(inet_pton(AF_INET6, (char*)str, address) != 1)
sbin/unwind/libunbound/sldns/str2wire.c
1821
int sldns_str2wire_str_buf(const char* str, uint8_t* rd, size_t* len)
sbin/unwind/libunbound/sldns/str2wire.c
1825
const char* s = str;
sbin/unwind/libunbound/sldns/str2wire.c
1833
return RET_ERR(LDNS_WIREPARSE_ERR_INVALID_STR, s-str);
sbin/unwind/libunbound/sldns/str2wire.c
1836
s-str);
sbin/unwind/libunbound/sldns/str2wire.c
1846
int sldns_str2wire_apl_buf(const char* str, uint8_t* rd, size_t* len)
sbin/unwind/libunbound/sldns/str2wire.c
1848
const char *my_str = str;
sbin/unwind/libunbound/sldns/str2wire.c
1933
int sldns_str2wire_b64_buf(const char* str, uint8_t* rd, size_t* len)
sbin/unwind/libunbound/sldns/str2wire.c
1935
size_t sz = sldns_b64_pton_calculate_size(strlen(str));
sbin/unwind/libunbound/sldns/str2wire.c
1937
if(strcmp(str, "0") == 0) {
sbin/unwind/libunbound/sldns/str2wire.c
1943
n = sldns_b64_pton(str, rd, *len);
sbin/unwind/libunbound/sldns/str2wire.c
1950
int sldns_str2wire_b32_ext_buf(const char* str, uint8_t* rd, size_t* len)
sbin/unwind/libunbound/sldns/str2wire.c
1952
size_t slen = strlen(str);
sbin/unwind/libunbound/sldns/str2wire.c
1958
n = sldns_b32_pton_extended_hex(str, slen, rd+1, *len-1);
sbin/unwind/libunbound/sldns/str2wire.c
1967
sldns_is_last_of_string(const char* str)
sbin/unwind/libunbound/sldns/str2wire.c
1969
if(*str == 0) return 1;
sbin/unwind/libunbound/sldns/str2wire.c
1970
while(isspace((unsigned char)*str))
sbin/unwind/libunbound/sldns/str2wire.c
1971
str++;
sbin/unwind/libunbound/sldns/str2wire.c
1972
if(*str == 0) return 1;
sbin/unwind/libunbound/sldns/str2wire.c
1976
int sldns_str2wire_hex_buf(const char* str, uint8_t* rd, size_t* len)
sbin/unwind/libunbound/sldns/str2wire.c
1978
const char* s = str;
sbin/unwind/libunbound/sldns/str2wire.c
1990
return RET_ERR(LDNS_WIREPARSE_ERR_SYNTAX_HEX, s-str);
sbin/unwind/libunbound/sldns/str2wire.c
1993
s-str);
sbin/unwind/libunbound/sldns/str2wire.c
2000
return RET_ERR(LDNS_WIREPARSE_ERR_SYNTAX_HEX, s-str);
sbin/unwind/libunbound/sldns/str2wire.c
2005
int sldns_str2wire_nsec_buf(const char* str, uint8_t* rd, size_t* len)
sbin/unwind/libunbound/sldns/str2wire.c
2018
sldns_buffer_init_frm_data(&strbuf, (uint8_t*)str, strlen(str));
sbin/unwind/libunbound/sldns/str2wire.c
2068
int sldns_str2wire_type_buf(const char* str, uint8_t* rd, size_t* len)
sbin/unwind/libunbound/sldns/str2wire.c
2070
uint16_t t = sldns_get_rr_type_by_name(str);
sbin/unwind/libunbound/sldns/str2wire.c
2071
if(t == 0 && strcmp(str, "TYPE0") != 0)
sbin/unwind/libunbound/sldns/str2wire.c
2080
int sldns_str2wire_class_buf(const char* str, uint8_t* rd, size_t* len)
sbin/unwind/libunbound/sldns/str2wire.c
2082
uint16_t c = sldns_get_rr_class_by_name(str);
sbin/unwind/libunbound/sldns/str2wire.c
2083
if(c == 0 && strcmp(str, "CLASS0") != 0)
sbin/unwind/libunbound/sldns/str2wire.c
2094
int sldns_str2wire_cert_alg_buf(const char* str, uint8_t* rd, size_t* len)
sbin/unwind/libunbound/sldns/str2wire.c
2097
str);
sbin/unwind/libunbound/sldns/str2wire.c
2103
int s = sldns_str2wire_int16_buf(str, rd, len);
sbin/unwind/libunbound/sldns/str2wire.c
2114
int sldns_str2wire_alg_buf(const char* str, uint8_t* rd, size_t* len)
sbin/unwind/libunbound/sldns/str2wire.c
2116
sldns_lookup_table *lt = sldns_lookup_by_name(sldns_algorithms, str);
sbin/unwind/libunbound/sldns/str2wire.c
2124
return sldns_str2wire_int8_buf(str, rd, len);
sbin/unwind/libunbound/sldns/str2wire.c
2129
int sldns_str2wire_tsigerror_buf(const char* str, uint8_t* rd, size_t* len)
sbin/unwind/libunbound/sldns/str2wire.c
2131
sldns_lookup_table *lt = sldns_lookup_by_name(sldns_tsig_errors, str);
sbin/unwind/libunbound/sldns/str2wire.c
2139
return sldns_str2wire_int16_buf(str, rd, len);
sbin/unwind/libunbound/sldns/str2wire.c
2144
int sldns_str2wire_time_buf(const char* str, uint8_t* rd, size_t* len)
sbin/unwind/libunbound/sldns/str2wire.c
2153
if (strlen(str) == 14 && sscanf(str, "%4d%2d%2d%2d%2d%2d",
sbin/unwind/libunbound/sldns/str2wire.c
2176
uint32_t l = (uint32_t)strtol((char*)str, &end, 10);
sbin/unwind/libunbound/sldns/str2wire.c
2179
end-(char*)str);
sbin/unwind/libunbound/sldns/str2wire.c
2186
int sldns_str2wire_tsigtime_buf(const char* str, uint8_t* rd, size_t* len)
sbin/unwind/libunbound/sldns/str2wire.c
2189
uint64_t t = (uint64_t)strtol((char*)str, &end, 10);
sbin/unwind/libunbound/sldns/str2wire.c
2193
return RET_ERR(LDNS_WIREPARSE_ERR_SYNTAX_TIME, end-str);
sbin/unwind/libunbound/sldns/str2wire.c
2204
int sldns_str2wire_period_buf(const char* str, uint8_t* rd, size_t* len)
sbin/unwind/libunbound/sldns/str2wire.c
2208
uint32_t p = sldns_str2period(str, &end, &overflow);
sbin/unwind/libunbound/sldns/str2wire.c
2210
return RET_ERR(LDNS_WIREPARSE_ERR_SYNTAX_PERIOD, end-str);
sbin/unwind/libunbound/sldns/str2wire.c
2213
end-str);
sbin/unwind/libunbound/sldns/str2wire.c
2260
int sldns_str2wire_loc_buf(const char* str, uint8_t* rd, size_t* len)
sbin/unwind/libunbound/sldns/str2wire.c
2279
char *my_str = (char *) str;
sbin/unwind/libunbound/sldns/str2wire.c
2440
int sldns_str2wire_wks_buf(const char* str, uint8_t* rd, size_t* len)
sbin/unwind/libunbound/sldns/str2wire.c
2446
sldns_buffer_init_frm_data(&strbuf, (uint8_t*)str, strlen(str));
sbin/unwind/libunbound/sldns/str2wire.c
2522
int sldns_str2wire_nsap_buf(const char* str, uint8_t* rd, size_t* len)
sbin/unwind/libunbound/sldns/str2wire.c
2524
const char* s = str;
sbin/unwind/libunbound/sldns/str2wire.c
2541
return RET_ERR(LDNS_WIREPARSE_ERR_SYNTAX_HEX, s-str);
sbin/unwind/libunbound/sldns/str2wire.c
2544
s-str);
sbin/unwind/libunbound/sldns/str2wire.c
2551
return RET_ERR(LDNS_WIREPARSE_ERR_SYNTAX_HEX, s-str);
sbin/unwind/libunbound/sldns/str2wire.c
2556
int sldns_str2wire_atma_buf(const char* str, uint8_t* rd, size_t* len)
sbin/unwind/libunbound/sldns/str2wire.c
2558
const char* s = str;
sbin/unwind/libunbound/sldns/str2wire.c
2559
size_t slen = strlen(str);
sbin/unwind/libunbound/sldns/str2wire.c
2583
return RET_ERR(LDNS_WIREPARSE_ERR_SYNTAX, s-str);
sbin/unwind/libunbound/sldns/str2wire.c
2586
s-str);
sbin/unwind/libunbound/sldns/str2wire.c
2602
return RET_ERR(LDNS_WIREPARSE_ERR_SYNTAX_HEX, s-str);
sbin/unwind/libunbound/sldns/str2wire.c
2605
s-str);
sbin/unwind/libunbound/sldns/str2wire.c
2612
return RET_ERR(LDNS_WIREPARSE_ERR_SYNTAX_HEX, s-str);
sbin/unwind/libunbound/sldns/str2wire.c
2617
int sldns_str2wire_ipseckey_buf(const char* str, uint8_t* rd, size_t* len)
sbin/unwind/libunbound/sldns/str2wire.c
2624
sldns_buffer_init_frm_data(&strbuf, (uint8_t*)str, strlen(str));
sbin/unwind/libunbound/sldns/str2wire.c
2690
int sldns_str2wire_nsec3_salt_buf(const char* str, uint8_t* rd, size_t* len)
sbin/unwind/libunbound/sldns/str2wire.c
2692
int i, salt_length_str = (int)strlen(str);
sbin/unwind/libunbound/sldns/str2wire.c
2693
if (salt_length_str == 1 && str[0] == '-') {
sbin/unwind/libunbound/sldns/str2wire.c
2704
if (isxdigit((unsigned char)str[i]) &&
sbin/unwind/libunbound/sldns/str2wire.c
2705
isxdigit((unsigned char)str[i+1])) {
sbin/unwind/libunbound/sldns/str2wire.c
2706
rd[1+i/2] = (uint8_t)(sldns_hexdigit_to_int(str[i])*16
sbin/unwind/libunbound/sldns/str2wire.c
2707
+ sldns_hexdigit_to_int(str[i+1]));
sbin/unwind/libunbound/sldns/str2wire.c
2716
int sldns_str2wire_ilnp64_buf(const char* str, uint8_t* rd, size_t* len)
sbin/unwind/libunbound/sldns/str2wire.c
2724
if (sscanf(str, "%4x:%4x:%4x:%4x%n", &a, &b, &c, &d, &l) != 4 ||
sbin/unwind/libunbound/sldns/str2wire.c
2725
l != (int)strlen(str) || /* more data to read */
sbin/unwind/libunbound/sldns/str2wire.c
2726
strpbrk(str, "+-") /* signed hexes */
sbin/unwind/libunbound/sldns/str2wire.c
2738
int sldns_str2wire_eui48_buf(const char* str, uint8_t* rd, size_t* len)
sbin/unwind/libunbound/sldns/str2wire.c
2745
if (sscanf(str, "%2x-%2x-%2x-%2x-%2x-%2x%n",
sbin/unwind/libunbound/sldns/str2wire.c
2747
l != (int)strlen(str))
sbin/unwind/libunbound/sldns/str2wire.c
2759
int sldns_str2wire_eui64_buf(const char* str, uint8_t* rd, size_t* len)
sbin/unwind/libunbound/sldns/str2wire.c
2766
if (sscanf(str, "%2x-%2x-%2x-%2x-%2x-%2x-%2x-%2x%n",
sbin/unwind/libunbound/sldns/str2wire.c
2768
l != (int)strlen(str))
sbin/unwind/libunbound/sldns/str2wire.c
2782
int sldns_str2wire_unquoted_buf(const char* str, uint8_t* rd, size_t* len)
sbin/unwind/libunbound/sldns/str2wire.c
2784
return sldns_str2wire_str_buf(str, rd, len);
sbin/unwind/libunbound/sldns/str2wire.c
2787
int sldns_str2wire_tag_buf(const char* str, uint8_t* rd, size_t* len)
sbin/unwind/libunbound/sldns/str2wire.c
2789
size_t slen = strlen(str);
sbin/unwind/libunbound/sldns/str2wire.c
2796
for (ptr = str; *ptr; ptr++) {
sbin/unwind/libunbound/sldns/str2wire.c
2798
return RET_ERR(LDNS_WIREPARSE_ERR_SYNTAX_TAG, ptr-str);
sbin/unwind/libunbound/sldns/str2wire.c
2801
memmove(rd+1, str, slen);
sbin/unwind/libunbound/sldns/str2wire.c
2806
int sldns_str2wire_long_str_buf(const char* str, uint8_t* rd, size_t* len)
sbin/unwind/libunbound/sldns/str2wire.c
2809
const char* pstr = str;
sbin/unwind/libunbound/sldns/str2wire.c
2824
int sldns_str2wire_hip_buf(const char* str, uint8_t* rd, size_t* len)
sbin/unwind/libunbound/sldns/str2wire.c
2837
rd[1] = (uint8_t)strtol((char*)str, &s, 10);
sbin/unwind/libunbound/sldns/str2wire.c
2839
return RET_ERR(LDNS_WIREPARSE_ERR_SYNTAX_INT, s-(char*)str);
sbin/unwind/libunbound/sldns/str2wire.c
2847
if(!end) return RET_ERR(LDNS_WIREPARSE_ERR_SYNTAX, s-(char*)str);
sbin/unwind/libunbound/sldns/str2wire.c
2852
return RET_ERR_SHIFT(e, s-(char*)str);
sbin/unwind/libunbound/sldns/str2wire.c
2856
return RET_ERR(LDNS_WIREPARSE_ERR_LABEL_OVERFLOW, s-(char*)str+255*2);
sbin/unwind/libunbound/sldns/str2wire.c
2865
return RET_ERR_SHIFT(e, s-(char*)str);
sbin/unwind/libunbound/sldns/str2wire.c
2867
return RET_ERR(LDNS_WIREPARSE_ERR_LABEL_OVERFLOW, s-(char*)str+65535);
sbin/unwind/libunbound/sldns/str2wire.c
2874
int sldns_str2wire_int16_data_buf(const char* str, uint8_t* rd, size_t* len)
sbin/unwind/libunbound/sldns/str2wire.c
2878
n = strtol(str, &s, 10);
sbin/unwind/libunbound/sldns/str2wire.c
2892
return RET_ERR(LDNS_WIREPARSE_ERR_SYNTAX_INT, s-(char*)str);
sbin/unwind/libunbound/sldns/str2wire.c
41
static int sldns_str2wire_dname_buf_rel(const char* str, uint8_t* buf,
sbin/unwind/libunbound/sldns/str2wire.c
50
len = strlen((char*)str);
sbin/unwind/libunbound/sldns/str2wire.c
60
if (1 == len && *str == '.') {
sbin/unwind/libunbound/sldns/str2wire.c
81
for (s = str; *s; s++, q++) {
sbin/unwind/libunbound/sldns/str2wire.c
898
sldns_str2wire_rr_buf_internal(const char* str, uint8_t* rr, size_t* len,
sbin/unwind/libunbound/sldns/str2wire.c
911
sldns_buffer_init_frm_data(&strbuf, (uint8_t*)str, strlen(str));
sbin/unwind/libunbound/sldns/str2wire.c
947
int sldns_str2wire_rr_buf(const char* str, uint8_t* rr, size_t* len,
sbin/unwind/libunbound/sldns/str2wire.c
951
return sldns_str2wire_rr_buf_internal(str, rr, len, dname_len,
sbin/unwind/libunbound/sldns/str2wire.c
955
int sldns_str2wire_rr_question_buf(const char* str, uint8_t* rr, size_t* len,
sbin/unwind/libunbound/sldns/str2wire.c
959
return sldns_str2wire_rr_buf_internal(str, rr, len, dname_len,
sbin/unwind/libunbound/sldns/str2wire.h
104
int sldns_str2wire_rr_buf(const char* str, uint8_t* rr, size_t* len,
sbin/unwind/libunbound/sldns/str2wire.h
124
int sldns_str2wire_rr_question_buf(const char* str, uint8_t* rr, size_t* len,
sbin/unwind/libunbound/sldns/str2wire.h
298
int sldns_str2wire_rdf_buf(const char* str, uint8_t* rd, size_t* len,
sbin/unwind/libunbound/sldns/str2wire.h
308
int sldns_str2wire_int8_buf(const char* str, uint8_t* rd, size_t* len);
sbin/unwind/libunbound/sldns/str2wire.h
317
int sldns_str2wire_int16_buf(const char* str, uint8_t* rd, size_t* len);
sbin/unwind/libunbound/sldns/str2wire.h
326
int sldns_str2wire_int32_buf(const char* str, uint8_t* rd, size_t* len);
sbin/unwind/libunbound/sldns/str2wire.h
335
int sldns_str2wire_a_buf(const char* str, uint8_t* rd, size_t* len);
sbin/unwind/libunbound/sldns/str2wire.h
344
int sldns_str2wire_aaaa_buf(const char* str, uint8_t* rd, size_t* len);
sbin/unwind/libunbound/sldns/str2wire.h
353
int sldns_str2wire_str_buf(const char* str, uint8_t* rd, size_t* len);
sbin/unwind/libunbound/sldns/str2wire.h
362
int sldns_str2wire_apl_buf(const char* str, uint8_t* rd, size_t* len);
sbin/unwind/libunbound/sldns/str2wire.h
371
int sldns_str2wire_b64_buf(const char* str, uint8_t* rd, size_t* len);
sbin/unwind/libunbound/sldns/str2wire.h
381
int sldns_str2wire_b32_ext_buf(const char* str, uint8_t* rd, size_t* len);
sbin/unwind/libunbound/sldns/str2wire.h
390
int sldns_str2wire_hex_buf(const char* str, uint8_t* rd, size_t* len);
sbin/unwind/libunbound/sldns/str2wire.h
399
int sldns_str2wire_nsec_buf(const char* str, uint8_t* rd, size_t* len);
sbin/unwind/libunbound/sldns/str2wire.h
408
int sldns_str2wire_type_buf(const char* str, uint8_t* rd, size_t* len);
sbin/unwind/libunbound/sldns/str2wire.h
417
int sldns_str2wire_class_buf(const char* str, uint8_t* rd, size_t* len);
sbin/unwind/libunbound/sldns/str2wire.h
426
int sldns_str2wire_cert_alg_buf(const char* str, uint8_t* rd, size_t* len);
sbin/unwind/libunbound/sldns/str2wire.h
435
int sldns_str2wire_alg_buf(const char* str, uint8_t* rd, size_t* len);
sbin/unwind/libunbound/sldns/str2wire.h
444
int sldns_str2wire_time_buf(const char* str, uint8_t* rd, size_t* len);
sbin/unwind/libunbound/sldns/str2wire.h
453
int sldns_str2wire_period_buf(const char* str, uint8_t* rd, size_t* len);
sbin/unwind/libunbound/sldns/str2wire.h
462
int sldns_str2wire_tsigtime_buf(const char* str, uint8_t* rd, size_t* len);
sbin/unwind/libunbound/sldns/str2wire.h
471
int sldns_str2wire_tsigerror_buf(const char* str, uint8_t* rd, size_t* len);
sbin/unwind/libunbound/sldns/str2wire.h
480
int sldns_str2wire_loc_buf(const char* str, uint8_t* rd, size_t* len);
sbin/unwind/libunbound/sldns/str2wire.h
489
int sldns_str2wire_wks_buf(const char* str, uint8_t* rd, size_t* len);
sbin/unwind/libunbound/sldns/str2wire.h
498
int sldns_str2wire_nsap_buf(const char* str, uint8_t* rd, size_t* len);
sbin/unwind/libunbound/sldns/str2wire.h
507
int sldns_str2wire_atma_buf(const char* str, uint8_t* rd, size_t* len);
sbin/unwind/libunbound/sldns/str2wire.h
516
int sldns_str2wire_ipseckey_buf(const char* str, uint8_t* rd, size_t* len);
sbin/unwind/libunbound/sldns/str2wire.h
525
int sldns_str2wire_nsec3_salt_buf(const char* str, uint8_t* rd, size_t* len);
sbin/unwind/libunbound/sldns/str2wire.h
534
int sldns_str2wire_ilnp64_buf(const char* str, uint8_t* rd, size_t* len);
sbin/unwind/libunbound/sldns/str2wire.h
543
int sldns_str2wire_eui48_buf(const char* str, uint8_t* rd, size_t* len);
sbin/unwind/libunbound/sldns/str2wire.h
552
int sldns_str2wire_eui64_buf(const char* str, uint8_t* rd, size_t* len);
sbin/unwind/libunbound/sldns/str2wire.h
561
int sldns_str2wire_unquoted_buf(const char* str, uint8_t* rd, size_t* len);
sbin/unwind/libunbound/sldns/str2wire.h
570
int sldns_str2wire_tag_buf(const char* str, uint8_t* rd, size_t* len);
sbin/unwind/libunbound/sldns/str2wire.h
579
int sldns_str2wire_long_str_buf(const char* str, uint8_t* rd, size_t* len);
sbin/unwind/libunbound/sldns/str2wire.h
588
int sldns_str2wire_hip_buf(const char* str, uint8_t* rd, size_t* len);
sbin/unwind/libunbound/sldns/str2wire.h
597
int sldns_str2wire_int16_data_buf(const char* str, uint8_t* rd, size_t* len);
sbin/unwind/libunbound/sldns/str2wire.h
62
int sldns_str2wire_dname_buf(const char* str, uint8_t* buf, size_t* len);
sbin/unwind/libunbound/sldns/str2wire.h
74
int sldns_str2wire_dname_buf_origin(const char* str, uint8_t* buf, size_t* len,
sbin/unwind/libunbound/sldns/str2wire.h
83
uint8_t* sldns_str2wire_dname(const char* str, size_t* len);
sbin/unwind/libunbound/sldns/wire2str.c
1702
loc_cm_print(char** str, size_t* sl, uint8_t mantissa, uint8_t exponent)
sbin/unwind/libunbound/sldns/wire2str.c
1710
return sldns_str_print(str, sl, "0.%02ld", (long)mantissa);
sbin/unwind/libunbound/sldns/wire2str.c
1713
w += sldns_str_print(str, sl, "%d", (int)mantissa);
sbin/unwind/libunbound/sldns/wire2str.c
1715
w += sldns_str_print(str, sl, "0");
sbin/unwind/libunbound/sldns/wire2str.c
1719
int sldns_wire2str_loc_scan(uint8_t** d, size_t* dl, char** str, size_t* sl)
sbin/unwind/libunbound/sldns/wire2str.c
1740
return sldns_wire2str_hex_scan(d, dl, str, sl);
sbin/unwind/libunbound/sldns/wire2str.c
1761
w += sldns_str_print(str, sl, "%02u %02u %06.3f %c ",
sbin/unwind/libunbound/sldns/wire2str.c
1776
w += sldns_str_print(str, sl, "%02u %02u %06.3f %c ",
sbin/unwind/libunbound/sldns/wire2str.c
1783
w += sldns_str_print(str, sl, "%.2f", s);
sbin/unwind/libunbound/sldns/wire2str.c
1785
w += sldns_str_print(str, sl, "%.0f", s);
sbin/unwind/libunbound/sldns/wire2str.c
1787
w += sldns_str_print(str, sl, "m ");
sbin/unwind/libunbound/sldns/wire2str.c
1789
w += loc_cm_print(str, sl, (size & 0xf0) >> 4, size & 0x0f);
sbin/unwind/libunbound/sldns/wire2str.c
1790
w += sldns_str_print(str, sl, "m ");
sbin/unwind/libunbound/sldns/wire2str.c
1792
w += loc_cm_print(str, sl, (horizontal_precision & 0xf0) >> 4,
sbin/unwind/libunbound/sldns/wire2str.c
1794
w += sldns_str_print(str, sl, "m ");
sbin/unwind/libunbound/sldns/wire2str.c
1796
w += loc_cm_print(str, sl, (vertical_precision & 0xf0) >> 4,
sbin/unwind/libunbound/sldns/wire2str.c
1798
w += sldns_str_print(str, sl, "m");
sbin/unwind/libunbound/sldns/wire2str.c
2451
int sldns_wire2str_edns_scan(uint8_t** data, size_t* data_len, char** str,
sbin/unwind/libunbound/sldns/wire2str.c
2457
w += sldns_str_print(str, str_len, "; EDNS:");
sbin/unwind/libunbound/sldns/wire2str.c
2462
data, data_len, str, str_len);
sbin/unwind/libunbound/sldns/wire2str.c
2465
data, data_len, str, str_len);
sbin/unwind/libunbound/sldns/wire2str.c
2473
data, data_len, str, str_len);
sbin/unwind/libunbound/sldns/wire2str.c
2483
w += sldns_str_print(str, str_len, " version: %u;",
sbin/unwind/libunbound/sldns/wire2str.c
2485
w += sldns_str_print(str, str_len, " flags:");
sbin/unwind/libunbound/sldns/wire2str.c
2487
w += sldns_str_print(str, str_len, " do");
sbin/unwind/libunbound/sldns/wire2str.c
2494
w += sldns_str_print(str, str_len, " ; ext-rcode: %d", rc);
sbin/unwind/libunbound/sldns/wire2str.c
2496
w += sldns_str_print(str, str_len, " ; udp: %u", (unsigned)udpsize);
sbin/unwind/libunbound/sldns/wire2str.c
2500
w += sldns_str_print(str, str_len,
sbin/unwind/libunbound/sldns/wire2str.c
2504
w += print_edns_opts(str, str_len, *data, rdatalen);
sbin/unwind/libunbound/sldns/wire2str.c
2508
w += sldns_str_print(str, str_len, "\n");
sbin/unwind/libunbound/sldns/wire2str.c
334
int sldns_wire2str_rdata_buf(uint8_t* rdata, size_t rdata_len, char* str,
sbin/unwind/libunbound/sldns/wire2str.c
338
return sldns_wire2str_rdata_scan(&rdata, &rdata_len, &str, &str_len,
sbin/unwind/libunbound/sldns/wire2str.c
386
int sldns_str_vprint(char** str, size_t* slen, const char* format, va_list args)
sbin/unwind/libunbound/sldns/wire2str.c
388
int w = vsnprintf(*str, *slen, format, args);
sbin/unwind/libunbound/sldns/wire2str.c
393
*str = NULL; /* we do not want str to point outside of buffer*/
sbin/unwind/libunbound/sldns/wire2str.c
396
*str += w;
sbin/unwind/libunbound/sldns/wire2str.c
402
int sldns_str_print(char** str, size_t* slen, const char* format, ...)
sbin/unwind/libunbound/sldns/wire2str.c
407
w = sldns_str_vprint(str, slen, format, args);
sbin/unwind/libunbound/sldns/wire2str.h
100
int sldns_str_vprint(char** str, size_t* slen, const char* format, va_list args);
sbin/unwind/libunbound/sldns/wire2str.h
1002
int sldns_wire2str_edns_dau_print(char** str, size_t* str_len,
sbin/unwind/libunbound/sldns/wire2str.h
1013
int sldns_wire2str_edns_dhu_print(char** str, size_t* str_len,
sbin/unwind/libunbound/sldns/wire2str.h
1024
int sldns_wire2str_edns_n3u_print(char** str, size_t* str_len,
sbin/unwind/libunbound/sldns/wire2str.h
1035
int sldns_wire2str_edns_subnet_print(char** str, size_t* str_len,
sbin/unwind/libunbound/sldns/wire2str.h
1046
int sldns_wire2str_edns_ede_print(char** str, size_t* str_len,
sbin/unwind/libunbound/sldns/wire2str.h
1058
int sldns_wire2str_edns_option_print(char** str, size_t* str_len,
sbin/unwind/libunbound/sldns/wire2str.h
1072
int sldns_wire2str_edns_scan(uint8_t** data, size_t* data_len, char** str,
sbin/unwind/libunbound/sldns/wire2str.h
109
int sldns_str_print(char** str, size_t* slen, const char* format, ...)
sbin/unwind/libunbound/sldns/wire2str.h
127
int sldns_wire2str_pkt_buf(uint8_t* data, size_t data_len, char* str,
sbin/unwind/libunbound/sldns/wire2str.h
149
int sldns_wire2str_pkt_scan(uint8_t** data, size_t* data_len, char** str,
sbin/unwind/libunbound/sldns/wire2str.h
164
int sldns_wire2str_rr_scan(uint8_t** data, size_t* data_len, char** str,
sbin/unwind/libunbound/sldns/wire2str.h
179
int sldns_wire2str_rrquestion_scan(uint8_t** data, size_t* data_len, char** str,
sbin/unwind/libunbound/sldns/wire2str.h
194
int sldns_wire2str_rr_unknown_scan(uint8_t** data, size_t* data_len, char** str,
sbin/unwind/libunbound/sldns/wire2str.h
209
int sldns_wire2str_rr_comment_print(char** str, size_t* str_len, uint8_t* rr,
sbin/unwind/libunbound/sldns/wire2str.h
221
int sldns_wire2str_header_scan(uint8_t** data, size_t* data_len, char** str,
sbin/unwind/libunbound/sldns/wire2str.h
239
int sldns_wire2str_rdata_scan(uint8_t** data, size_t* data_len, char** str,
sbin/unwind/libunbound/sldns/wire2str.h
253
char** str, size_t* str_len);
sbin/unwind/libunbound/sldns/wire2str.h
273
int sldns_wire2str_dname_scan(uint8_t** data, size_t* data_len, char** str,
sbin/unwind/libunbound/sldns/wire2str.h
285
int sldns_wire2str_type_scan(uint8_t** data, size_t* data_len, char** str,
sbin/unwind/libunbound/sldns/wire2str.h
297
int sldns_wire2str_class_scan(uint8_t** data, size_t* data_len, char** str,
sbin/unwind/libunbound/sldns/wire2str.h
309
int sldns_wire2str_ttl_scan(uint8_t** data, size_t* data_len, char** str,
sbin/unwind/libunbound/sldns/wire2str.h
320
int sldns_wire2str_type_print(char** str, size_t* str_len, uint16_t rrtype);
sbin/unwind/libunbound/sldns/wire2str.h
329
int sldns_wire2str_class_print(char** str, size_t* str_len, uint16_t rrclass);
sbin/unwind/libunbound/sldns/wire2str.h
338
int sldns_wire2str_rcode_print(char** str, size_t* str_len, int rcode);
sbin/unwind/libunbound/sldns/wire2str.h
347
int sldns_wire2str_opcode_print(char** str, size_t* str_len, int opcode);
sbin/unwind/libunbound/sldns/wire2str.h
356
int sldns_wire2str_edns_option_code_print(char** str, size_t* str_len,
sbin/unwind/libunbound/sldns/wire2str.h
372
int sldns_wire2str_rr_buf(uint8_t* rr, size_t rr_len, char* str,
sbin/unwind/libunbound/sldns/wire2str.h
388
int sldns_wire2str_rrquestion_buf(uint8_t* rr, size_t rr_len, char* str,
sbin/unwind/libunbound/sldns/wire2str.h
406
int sldns_wire2str_rr_unknown_buf(uint8_t* rr, size_t rr_len, char* str,
sbin/unwind/libunbound/sldns/wire2str.h
427
char* str, size_t str_len);
sbin/unwind/libunbound/sldns/wire2str.h
443
int sldns_wire2str_rdata_buf(uint8_t* rdata, size_t rdata_len, char* str,
sbin/unwind/libunbound/sldns/wire2str.h
454
int sldns_wire2str_type_buf(uint16_t rrtype, char* str, size_t len);
sbin/unwind/libunbound/sldns/wire2str.h
464
int sldns_wire2str_class_buf(uint16_t rrclass, char* str, size_t len);
sbin/unwind/libunbound/sldns/wire2str.h
474
int sldns_wire2str_rcode_buf(int rcode, char* str, size_t len);
sbin/unwind/libunbound/sldns/wire2str.h
485
int sldns_wire2str_opcode_buf(int opcode, char* str, size_t len);
sbin/unwind/libunbound/sldns/wire2str.h
496
int sldns_wire2str_dname_buf(uint8_t* dname, size_t dname_len, char* str,
sbin/unwind/libunbound/sldns/wire2str.h
525
int sldns_wire2str_rdf_scan(uint8_t** data, size_t* data_len, char** str,
sbin/unwind/libunbound/sldns/wire2str.h
539
int sldns_wire2str_int8_scan(uint8_t** data, size_t* data_len, char** str,
sbin/unwind/libunbound/sldns/wire2str.h
552
int sldns_wire2str_int16_scan(uint8_t** data, size_t* data_len, char** str,
sbin/unwind/libunbound/sldns/wire2str.h
565
int sldns_wire2str_int32_scan(uint8_t** data, size_t* data_len, char** str,
sbin/unwind/libunbound/sldns/wire2str.h
578
int sldns_wire2str_period_scan(uint8_t** data, size_t* data_len, char** str,
sbin/unwind/libunbound/sldns/wire2str.h
591
int sldns_wire2str_tsigtime_scan(uint8_t** data, size_t* data_len, char** str,
sbin/unwind/libunbound/sldns/wire2str.h
604
int sldns_wire2str_a_scan(uint8_t** data, size_t* data_len, char** str,
sbin/unwind/libunbound/sldns/wire2str.h
617
int sldns_wire2str_aaaa_scan(uint8_t** data, size_t* data_len, char** str,
sbin/unwind/libunbound/sldns/wire2str.h
630
int sldns_wire2str_str_scan(uint8_t** data, size_t* data_len, char** str,
sbin/unwind/libunbound/sldns/wire2str.h
643
int sldns_wire2str_apl_scan(uint8_t** data, size_t* data_len, char** str,
sbin/unwind/libunbound/sldns/wire2str.h
656
int sldns_wire2str_b32_ext_scan(uint8_t** data, size_t* data_len, char** str,
sbin/unwind/libunbound/sldns/wire2str.h
669
int sldns_wire2str_b64_scan(uint8_t** data, size_t* data_len, char** str,
sbin/unwind/libunbound/sldns/wire2str.h
682
int sldns_wire2str_hex_scan(uint8_t** data, size_t* data_len, char** str,
sbin/unwind/libunbound/sldns/wire2str.h
695
int sldns_wire2str_nsec_scan(uint8_t** data, size_t* data_len, char** str,
sbin/unwind/libunbound/sldns/wire2str.h
708
int sldns_wire2str_nsec3_salt_scan(uint8_t** data, size_t* data_len, char** str,
sbin/unwind/libunbound/sldns/wire2str.h
721
int sldns_wire2str_cert_alg_scan(uint8_t** data, size_t* data_len, char** str,
sbin/unwind/libunbound/sldns/wire2str.h
734
int sldns_wire2str_alg_scan(uint8_t** data, size_t* data_len, char** str,
sbin/unwind/libunbound/sldns/wire2str.h
747
int sldns_wire2str_unknown_scan(uint8_t** data, size_t* data_len, char** str,
sbin/unwind/libunbound/sldns/wire2str.h
760
int sldns_wire2str_time_scan(uint8_t** data, size_t* data_len, char** str,
sbin/unwind/libunbound/sldns/wire2str.h
773
int sldns_wire2str_loc_scan(uint8_t** data, size_t* data_len, char** str,
sbin/unwind/libunbound/sldns/wire2str.h
786
int sldns_wire2str_wks_scan(uint8_t** data, size_t* data_len, char** str,
sbin/unwind/libunbound/sldns/wire2str.h
799
int sldns_wire2str_nsap_scan(uint8_t** data, size_t* data_len, char** str,
sbin/unwind/libunbound/sldns/wire2str.h
812
int sldns_wire2str_atma_scan(uint8_t** data, size_t* data_len, char** str,
sbin/unwind/libunbound/sldns/wire2str.h
828
int sldns_wire2str_ipseckey_scan(uint8_t** data, size_t* data_len, char** str,
sbin/unwind/libunbound/sldns/wire2str.h
841
int sldns_wire2str_hip_scan(uint8_t** data, size_t* data_len, char** str,
sbin/unwind/libunbound/sldns/wire2str.h
854
int sldns_wire2str_int16_data_scan(uint8_t** data, size_t* data_len, char** str,
sbin/unwind/libunbound/sldns/wire2str.h
867
int sldns_wire2str_tsigerror_scan(uint8_t** data, size_t* data_len, char** str,
sbin/unwind/libunbound/sldns/wire2str.h
881
char** str, size_t* str_len);
sbin/unwind/libunbound/sldns/wire2str.h
893
int sldns_wire2str_ilnp64_scan(uint8_t** data, size_t* data_len, char** str,
sbin/unwind/libunbound/sldns/wire2str.h
906
int sldns_wire2str_eui48_scan(uint8_t** data, size_t* data_len, char** str,
sbin/unwind/libunbound/sldns/wire2str.h
919
int sldns_wire2str_eui64_scan(uint8_t** data, size_t* data_len, char** str,
sbin/unwind/libunbound/sldns/wire2str.h
932
int sldns_wire2str_unquoted_scan(uint8_t** data, size_t* data_len, char** str,
sbin/unwind/libunbound/sldns/wire2str.h
945
int sldns_wire2str_tag_scan(uint8_t** data, size_t* data_len, char** str,
sbin/unwind/libunbound/sldns/wire2str.h
958
int sldns_wire2str_long_str_scan(uint8_t** data, size_t* data_len, char** str,
sbin/unwind/libunbound/sldns/wire2str.h
969
int sldns_wire2str_edns_llq_print(char** str, size_t* str_len,
sbin/unwind/libunbound/sldns/wire2str.h
980
int sldns_wire2str_edns_ul_print(char** str, size_t* str_len,
sbin/unwind/libunbound/sldns/wire2str.h
991
int sldns_wire2str_edns_nsid_print(char** str, size_t* str_len,
sbin/unwind/libunbound/util/config_file.c
1001
return strdup(list->str);
sbin/unwind/libunbound/util/config_file.c
1004
total += strlen(s->str) + 1; /* len + newline */
sbin/unwind/libunbound/util/config_file.c
1011
size_t this = strlen(s->str);
sbin/unwind/libunbound/util/config_file.c
1016
snprintf(w, left, "%s\n", s->str);
sbin/unwind/libunbound/util/config_file.c
1025
#define O_DEC(opt, str, var) if(strcmp(opt, str)==0) \
sbin/unwind/libunbound/util/config_file.c
1029
#define O_UNS(opt, str, var) if(strcmp(opt, str)==0) \
sbin/unwind/libunbound/util/config_file.c
1033
#define O_YNO(opt, str, var) if(strcmp(opt, str)==0) \
sbin/unwind/libunbound/util/config_file.c
1036
#define O_STR(opt, str, var) if(strcmp(opt, str)==0) \
sbin/unwind/libunbound/util/config_file.c
1039
#define O_IFC(opt, str, num, arr) if(strcmp(opt, str)==0) \
sbin/unwind/libunbound/util/config_file.c
1042
#define O_MEM(opt, str, var) if(strcmp(opt, str)==0) { \
sbin/unwind/libunbound/util/config_file.c
1052
func(p->str, arg); \
sbin/unwind/libunbound/util/config_file.c
1058
snprintf(buf, len, "%s %s", p->str, p->str2); \
sbin/unwind/libunbound/util/config_file.c
1066
snprintf(buf, len, "%s %s %s", p->str, p->str2, p->str3); \
sbin/unwind/libunbound/util/config_file.c
1077
snprintf(buf, len, "%s %s", p->str, tmpstr); \
sbin/unwind/libunbound/util/config_file.c
1604
free(p->str);
sbin/unwind/libunbound/util/config_file.c
1616
free(p->str);
sbin/unwind/libunbound/util/config_file.c
1629
free(p->str);
sbin/unwind/libunbound/util/config_file.c
1728
free(p->str);
sbin/unwind/libunbound/util/config_file.c
1895
extract_port_from_str(const char* str, int max_port) {
sbin/unwind/libunbound/util/config_file.c
1898
if (str == NULL || *str == '\0') {
sbin/unwind/libunbound/util/config_file.c
1899
log_err("str: '%s' is invalid", (str?str:"NULL"));
sbin/unwind/libunbound/util/config_file.c
1903
value = strtol(str, &endptr, 10);
sbin/unwind/libunbound/util/config_file.c
1904
if ((endptr == str) || (*endptr != '\0')) {
sbin/unwind/libunbound/util/config_file.c
1905
log_err("cannot parse port number '%s'", str);
sbin/unwind/libunbound/util/config_file.c
1910
log_err("overflow occurred when parsing '%s'", str);
sbin/unwind/libunbound/util/config_file.c
1914
if (value == 0 && strcmp(str, "0") != 0) {
sbin/unwind/libunbound/util/config_file.c
1915
log_err("cannot parse port number '%s'", str);
sbin/unwind/libunbound/util/config_file.c
1920
log_err(" '%s' is out of bounds [0, %d)", str, max_port);
sbin/unwind/libunbound/util/config_file.c
1928
cfg_mark_ports(const char* str, int allow, int* avail, int num)
sbin/unwind/libunbound/util/config_file.c
1930
char* mid = strchr(str, '-');
sbin/unwind/libunbound/util/config_file.c
1937
int port = extract_port_from_str(str, num);
sbin/unwind/libunbound/util/config_file.c
1953
if( (int)(mid-str)+1 >= (int)sizeof(buf) ) {
sbin/unwind/libunbound/util/config_file.c
1954
log_err("cannot parse port number '%s'", str);
sbin/unwind/libunbound/util/config_file.c
1958
if(mid > str)
sbin/unwind/libunbound/util/config_file.c
1959
memcpy(buf, str, (size_t)(mid-str));
sbin/unwind/libunbound/util/config_file.c
1960
buf[mid-str] = 0;
sbin/unwind/libunbound/util/config_file.c
2060
void ub_c_error(const char *str)
sbin/unwind/libunbound/util/config_file.c
2063
if(strcmp(str, "syntax error")==0 && cfg_parser->started_toplevel ==0)
sbin/unwind/libunbound/util/config_file.c
2064
str = "syntax error, is there no section start after an "
sbin/unwind/libunbound/util/config_file.c
2067
cfg_parser->line, str);
sbin/unwind/libunbound/util/config_file.c
2087
s->str = item;
sbin/unwind/libunbound/util/config_file.c
2108
s->str = item;
sbin/unwind/libunbound/util/config_file.c
2122
if(strcmp(s->str, item) == 0) {
sbin/unwind/libunbound/util/config_file.c
2143
s->str = item;
sbin/unwind/libunbound/util/config_file.c
2158
s->str = item;
sbin/unwind/libunbound/util/config_file.c
2189
s->str = item;
sbin/unwind/libunbound/util/config_file.c
2206
s->str = item;
sbin/unwind/libunbound/util/config_file.c
2224
s->str = item;
sbin/unwind/libunbound/util/config_file.c
2233
cfg_convert_timeval(const char* str)
sbin/unwind/libunbound/util/config_file.c
2238
if(strlen(str) < 14)
sbin/unwind/libunbound/util/config_file.c
2240
if(sscanf(str, "%4d%2d%2d%2d%2d%2d", &tm.tm_year, &tm.tm_mon,
sbin/unwind/libunbound/util/config_file.c
2283
static int isalldigit(const char* str, size_t l)
sbin/unwind/libunbound/util/config_file.c
2287
if(!isdigit((unsigned char)str[i]))
sbin/unwind/libunbound/util/config_file.c
2293
cfg_parse_memsize(const char* str, size_t* res)
sbin/unwind/libunbound/util/config_file.c
2297
if(!str || (len=(size_t)strlen(str)) == 0) {
sbin/unwind/libunbound/util/config_file.c
2298
log_err("not a size: '%s'", str);
sbin/unwind/libunbound/util/config_file.c
2301
if(isalldigit(str, len)) {
sbin/unwind/libunbound/util/config_file.c
2302
*res = (size_t)atol(str);
sbin/unwind/libunbound/util/config_file.c
2306
while(len>0 && str[len-1]==' ')
sbin/unwind/libunbound/util/config_file.c
2308
if(len > 1 && str[len-1] == 'b')
sbin/unwind/libunbound/util/config_file.c
2310
else if(len > 1 && str[len-1] == 'B')
sbin/unwind/libunbound/util/config_file.c
2313
if(len > 1 && tolower((unsigned char)str[len-1]) == 'g')
sbin/unwind/libunbound/util/config_file.c
2315
else if(len > 1 && tolower((unsigned char)str[len-1]) == 'm')
sbin/unwind/libunbound/util/config_file.c
2317
else if(len > 1 && tolower((unsigned char)str[len-1]) == 'k')
sbin/unwind/libunbound/util/config_file.c
2319
else if(len > 0 && isdigit((unsigned char)str[len-1]))
sbin/unwind/libunbound/util/config_file.c
2322
log_err("unknown size specifier: '%s'", str);
sbin/unwind/libunbound/util/config_file.c
2325
while(len>1 && str[len-2]==' ')
sbin/unwind/libunbound/util/config_file.c
2328
if(!isalldigit(str, len-1)) {
sbin/unwind/libunbound/util/config_file.c
2329
log_err("unknown size specifier: '%s'", str);
sbin/unwind/libunbound/util/config_file.c
2332
*res = ((size_t)atol(str)) * mult;
sbin/unwind/libunbound/util/config_file.c
2381
uint8_t* config_parse_taglist(struct config_file* cfg, char* str,
sbin/unwind/libunbound/util/config_file.c
2401
s = str;
sbin/unwind/libunbound/util/config_file.c
2419
uint8_t* cfg_parse_nsid(const char* str, uint16_t* nsid_len)
sbin/unwind/libunbound/util/config_file.c
2423
if (strncasecmp(str, "ascii_", 6) == 0) {
sbin/unwind/libunbound/util/config_file.c
2424
if ((nsid = (uint8_t *)strdup(str + 6)))
sbin/unwind/libunbound/util/config_file.c
2425
*nsid_len = strlen(str + 6);
sbin/unwind/libunbound/util/config_file.c
2427
} else if (strlen(str) % 2) {
sbin/unwind/libunbound/util/config_file.c
2431
else if (*str && (nsid = calloc(1, strlen(str) / 2))) {
sbin/unwind/libunbound/util/config_file.c
2435
for ( ch = str, dp = nsid
sbin/unwind/libunbound/util/config_file.c
2445
*nsid_len = strlen(str) / 2;
sbin/unwind/libunbound/util/config_file.c
2633
static char* next_space_pos(const char* str)
sbin/unwind/libunbound/util/config_file.c
2635
char* sp = strchr(str, ' ');
sbin/unwind/libunbound/util/config_file.c
2636
char* tab = strchr(str, '\t');
sbin/unwind/libunbound/util/config_file.c
2645
static char* last_space_pos(const char* str)
sbin/unwind/libunbound/util/config_file.c
2647
char* sp = strrchr(str, ' ');
sbin/unwind/libunbound/util/config_file.c
2648
char* tab = strrchr(str, '\t');
sbin/unwind/libunbound/util/config_file.c
2704
char* cfg_ptr_reverse(char* str)
sbin/unwind/libunbound/util/config_file.c
2714
ip = str;
sbin/unwind/libunbound/util/config_file.c
2718
log_err("syntax error: too short: %s", str);
sbin/unwind/libunbound/util/config_file.c
2723
log_err("syntax error: expected name: %s", str);
sbin/unwind/libunbound/util/config_file.c
2729
log_err("syntax error: expected name: %s", str);
sbin/unwind/libunbound/util/config_file.c
2737
log_err("syntax error: cannot parse address: %s", str);
sbin/unwind/libunbound/util/config_file.c
2780
log_err("out of memory parsing %s", str);
sbin/unwind/libunbound/util/config_file.c
2848
if(!cfg->control_ifs.first->str) return 1;
sbin/unwind/libunbound/util/config_file.c
2849
if(cfg->control_ifs.first->str[0] == 0) return 1;
sbin/unwind/libunbound/util/config_file.c
2850
return (cfg->control_ifs.first->str[0] != '/');
sbin/unwind/libunbound/util/config_file.c
2866
if(if_port == atoi(s->str)) return 1;
sbin/unwind/libunbound/util/config_file.c
2906
getmem_str(char* str)
sbin/unwind/libunbound/util/config_file.c
2908
if(!str) return 0;
sbin/unwind/libunbound/util/config_file.c
2909
return strlen(str)+1;
sbin/unwind/libunbound/util/config_file.c
479
#define S_NUMBER_OR_ZERO(str, var) if(strcmp(opt, str) == 0) \
sbin/unwind/libunbound/util/config_file.c
482
#define S_NUMBER_NONZERO(str, var) if(strcmp(opt, str) == 0) \
sbin/unwind/libunbound/util/config_file.c
485
#define S_UNSIGNED_OR_ZERO(str, var) if(strcmp(opt, str) == 0) \
sbin/unwind/libunbound/util/config_file.c
488
#define S_SIZET_OR_ZERO(str, var) if(strcmp(opt, str) == 0) \
sbin/unwind/libunbound/util/config_file.c
491
#define S_SIZET_NONZERO(str, var) if(strcmp(opt, str) == 0) \
sbin/unwind/libunbound/util/config_file.c
494
#define S_YNO(str, var) if(strcmp(opt, str) == 0) \
sbin/unwind/libunbound/util/config_file.c
497
#define S_MEMSIZE(str, var) if(strcmp(opt, str)==0) \
sbin/unwind/libunbound/util/config_file.c
500
#define S_POW2(str, var) if(strcmp(opt, str)==0) \
sbin/unwind/libunbound/util/config_file.c
503
#define S_STR(str, var) if(strcmp(opt, str)==0) \
sbin/unwind/libunbound/util/config_file.c
506
#define S_STRLIST(str, var) if(strcmp(opt, str)==0) \
sbin/unwind/libunbound/util/config_file.c
509
#define S_STRLIST_UNIQ(str, var) if(strcmp(opt, str)==0) \
sbin/unwind/libunbound/util/config_file.c
513
#define S_STRLIST_APPEND(str, var) if(strcmp(opt, str)==0) \
sbin/unwind/libunbound/util/config_file.c
979
config_get_option_collate(struct config_file* cfg, const char* opt, char** str)
sbin/unwind/libunbound/util/config_file.c
983
*str = NULL;
sbin/unwind/libunbound/util/config_file.c
986
*str = config_collate_cat(list);
sbin/unwind/libunbound/util/config_file.c
988
if(!*str) return 2;
sbin/unwind/libunbound/util/config_file.h
1057
char** str);
sbin/unwind/libunbound/util/config_file.h
1231
time_t cfg_convert_timeval(const char* str);
sbin/unwind/libunbound/util/config_file.h
1243
int cfg_count_numbers(const char* str);
sbin/unwind/libunbound/util/config_file.h
1254
int cfg_parse_memsize(const char* str, size_t* res);
sbin/unwind/libunbound/util/config_file.h
1264
uint8_t* cfg_parse_nsid(const char* str, uint16_t* nsid_len);
sbin/unwind/libunbound/util/config_file.h
1290
uint8_t* config_parse_taglist(struct config_file* cfg, char* str,
sbin/unwind/libunbound/util/config_file.h
1331
int cfg_mark_ports(const char* str, int allow, int* avail, int num);
sbin/unwind/libunbound/util/config_file.h
1373
char* cfg_ptr_reverse(char* str);
sbin/unwind/libunbound/util/config_file.h
1482
size_t getmem_str(char* str);
sbin/unwind/libunbound/util/config_file.h
917
char* str;
sbin/unwind/libunbound/util/config_file.h
927
char* str;
sbin/unwind/libunbound/util/config_file.h
939
char* str;
sbin/unwind/libunbound/util/config_file.h
954
char* str;
sbin/unwind/libunbound/util/configlexer.c
6051
yylval.str = strdup(yytext);
sbin/unwind/libunbound/util/configlexer.c
6052
if(!yylval.str)
sbin/unwind/libunbound/util/configlexer.c
6091
yylval.str = strdup(yytext);
sbin/unwind/libunbound/util/configlexer.c
6092
if(!yylval.str)
sbin/unwind/libunbound/util/configlexer.c
6259
yylval.str = strdup(yytext); return STRING_ARG; }
sbin/unwind/libunbound/util/configparser.h
379
char* str;
sbin/unwind/libunbound/util/configparser.y
69
char* str;
sbin/unwind/libunbound/util/configparser.y
73
%token <str> STRING_ARG
sbin/unwind/libunbound/util/data/dname.c
639
void dname_str(uint8_t* dname, char* str)
sbin/unwind/libunbound/util/data/dname.c
643
char* s = str;
sbin/unwind/libunbound/util/data/dname.c
653
if ((s-str) >= (LDNS_MAX_DOMAINLEN-1))
sbin/unwind/libunbound/util/data/dname.c
654
s = str + LDNS_MAX_DOMAINLEN - 2;
sbin/unwind/libunbound/util/data/dname.h
252
void dname_str(uint8_t* dname, char* str);
sbin/unwind/libunbound/util/data/msgparse.c
1326
char str[128], *s;
sbin/unwind/libunbound/util/data/msgparse.c
1330
s = str;
sbin/unwind/libunbound/util/data/msgparse.c
1331
slen = sizeof(str);
sbin/unwind/libunbound/util/data/msgparse.c
1334
verbose(level, " %s", str);
sbin/unwind/libunbound/util/data/msgparse.c
1342
msgparse_rrset_remove_rr(const char* str, sldns_buffer* pkt, struct rrset_parse* rrset,
sbin/unwind/libunbound/util/data/msgparse.c
1345
if(verbosity >= VERB_QUERY && rrset->dname_len <= LDNS_MAX_DOMAINLEN && str) {
sbin/unwind/libunbound/util/data/msgparse.c
1349
log_name_addr(VERB_QUERY, str, buf, addr, addrlen);
sbin/unwind/libunbound/util/data/msgparse.c
1350
else log_nametypeclass(VERB_QUERY, str, buf,
sbin/unwind/libunbound/util/data/msgparse.h
395
int msgparse_rrset_remove_rr(const char* str, struct sldns_buffer* pkt,
sbin/unwind/libunbound/util/data/msgreply.c
1044
log_query_info(enum verbosity_value v, const char* str,
sbin/unwind/libunbound/util/data/msgreply.c
1047
log_nametypeclass(v, str, qinf->qname, qinf->qtype, qinf->qclass);
sbin/unwind/libunbound/util/data/msgreply.c
936
log_dns_msg(const char* str, struct query_info* qinfo, struct reply_info* rep)
sbin/unwind/libunbound/util/data/msgreply.c
942
log_err("%s: log_dns_msg: out of memory", str);
sbin/unwind/libunbound/util/data/msgreply.c
949
log_err("%s: log_dns_msg: out of memory", str);
sbin/unwind/libunbound/util/data/msgreply.c
954
log_info("%s: log_dns_msg: ldns tostr failed", str);
sbin/unwind/libunbound/util/data/msgreply.c
956
log_info("%s %s", str, s);
sbin/unwind/libunbound/util/data/msgreply.h
540
void log_dns_msg(const char* str, struct query_info* qinfo,
sbin/unwind/libunbound/util/data/msgreply.h
571
void log_query_info(enum verbosity_value v, const char* str,
sbin/unwind/libunbound/util/data/packed_rrset.c
264
void log_rrset_key(enum verbosity_value v, const char* str,
sbin/unwind/libunbound/util/data/packed_rrset.c
268
log_nametypeclass(v, str, rrset->rk.dname,
sbin/unwind/libunbound/util/data/packed_rrset.c
306
void log_packed_rrset(enum verbosity_value v, const char* str,
sbin/unwind/libunbound/util/data/packed_rrset.c
317
log_info("%s: rr %d wire2str-error", str, (int)i);
sbin/unwind/libunbound/util/data/packed_rrset.c
319
log_info("%s: %s", str, buf);
sbin/unwind/libunbound/util/data/packed_rrset.h
416
void log_rrset_key(enum verbosity_value v, const char* str,
sbin/unwind/libunbound/util/data/packed_rrset.h
437
void log_packed_rrset(enum verbosity_value v, const char* str,
sbin/unwind/libunbound/util/edns.c
107
log_assert(c->str && c->str2);
sbin/unwind/libunbound/util/edns.c
109
if(!netblockstrtoaddr(c->str, UNBOUND_DNS_PORT, &addr, &addrlen,
sbin/unwind/libunbound/util/edns.c
112
"%s", c->str);
sbin/unwind/libunbound/util/locks.c
156
static void log_win_err(const char* str, DWORD err)
sbin/unwind/libunbound/util/locks.c
163
log_err("%s, GetLastError=%d", str, (int)err);
sbin/unwind/libunbound/util/locks.c
166
log_err("%s, (err=%d): %s", str, (int)err, buf);
sbin/unwind/libunbound/util/log.c
252
LPCTSTR str = m;
sbin/unwind/libunbound/util/log.c
270
ReportEvent(s, wt, 0, tp, NULL, 1, 0, &str, NULL);
sbin/unwind/libunbound/util/module.c
148
snprintf(p, left, " %s", s->str);
sbin/unwind/libunbound/util/module.c
191
snprintf(p, left, " %s", s->str);
sbin/unwind/libunbound/util/module.c
209
snprintf(p, left, "%s%s", (s==qstate->errinf?"":" "), s->str);
sbin/unwind/libunbound/util/module.c
232
void errinf_dname(struct module_qstate* qstate, const char* str, uint8_t* dname)
sbin/unwind/libunbound/util/module.c
236
if((qstate->env->cfg->val_log_level < 2 && !qstate->env->cfg->log_servfail) || !str || !dname)
sbin/unwind/libunbound/util/module.c
239
snprintf(b, sizeof(b), "%s %s", str, buf);
sbin/unwind/libunbound/util/module.c
392
char str[32], *s;
sbin/unwind/libunbound/util/module.c
398
s = str;
sbin/unwind/libunbound/util/module.c
399
slen = sizeof(str);
sbin/unwind/libunbound/util/module.c
402
verbose(level, " %-8.8s %-19s %-15s", str,
sbin/unwind/libunbound/util/module.c
78
void errinf(struct module_qstate* qstate, const char* str)
sbin/unwind/libunbound/util/module.c
80
errinf_ede(qstate, str, LDNS_EDE_NONE);
sbin/unwind/libunbound/util/module.c
84
const char* str, sldns_ede_code reason_bogus)
sbin/unwind/libunbound/util/module.c
87
if(!str || (qstate->env->cfg->val_log_level < 2 &&
sbin/unwind/libunbound/util/module.c
97
p->str = regional_strdup(qstate->region, str);
sbin/unwind/libunbound/util/module.c
99
if(!p->str) {
sbin/unwind/libunbound/util/module.h
196
char* str;
sbin/unwind/libunbound/util/module.h
832
void errinf(struct module_qstate* qstate, const char* str);
sbin/unwind/libunbound/util/module.h
833
void errinf_ede(struct module_qstate* qstate, const char* str,
sbin/unwind/libunbound/util/module.h
859
void errinf_dname(struct module_qstate* qstate, const char* str,
sbin/unwind/libunbound/util/net_help.c
1010
log_crypto_err(const char* str)
sbin/unwind/libunbound/util/net_help.c
1013
log_crypto_err_code(str, ERR_get_error());
sbin/unwind/libunbound/util/net_help.c
1015
(void)str;
sbin/unwind/libunbound/util/net_help.c
1019
void log_crypto_err_code(const char* str, unsigned long err)
sbin/unwind/libunbound/util/net_help.c
1026
log_err("%s crypto %s", str, buf);
sbin/unwind/libunbound/util/net_help.c
1032
(void)str;
sbin/unwind/libunbound/util/net_help.c
1039
static void log_crypto_err_io_code_arg(const char* str, int r,
sbin/unwind/libunbound/util/net_help.c
1099
str, strerror(errno));
sbin/unwind/libunbound/util/net_help.c
1105
log_crypto_err_code(str, err);
sbin/unwind/libunbound/util/net_help.c
1106
else log_crypto_err(str);
sbin/unwind/libunbound/util/net_help.c
1112
str, strerror(errno));
sbin/unwind/libunbound/util/net_help.c
1113
else log_err("%s: %s", str, strerror(errno));
sbin/unwind/libunbound/util/net_help.c
1115
log_err("%s: %s", str, inf);
sbin/unwind/libunbound/util/net_help.c
1121
void log_crypto_err_io(const char* str, int r)
sbin/unwind/libunbound/util/net_help.c
1124
log_crypto_err_io_code_arg(str, r, 0, 0);
sbin/unwind/libunbound/util/net_help.c
1126
(void)str;
sbin/unwind/libunbound/util/net_help.c
1131
void log_crypto_err_io_code(const char* str, int r, unsigned long err)
sbin/unwind/libunbound/util/net_help.c
1134
log_crypto_err_io_code_arg(str, r, err, 1);
sbin/unwind/libunbound/util/net_help.c
1136
(void)str;
sbin/unwind/libunbound/util/net_help.c
1145
log_cert(unsigned level, const char* str, void* cert)
sbin/unwind/libunbound/util/net_help.c
1168
verbose(level, "%s: \n%s", str, pp);
sbin/unwind/libunbound/util/net_help.c
131
str_is_ip6(const char* str)
sbin/unwind/libunbound/util/net_help.c
133
if(strchr(str, ':'))
sbin/unwind/libunbound/util/net_help.c
1823
f = fopen(p->str, "rb");
sbin/unwind/libunbound/util/net_help.c
1825
log_err("could not read tls-session-ticket-key %s: %s", p->str, strerror(errno));
sbin/unwind/libunbound/util/net_help.c
1833
log_err("tls-session-ticket-key %s is %d bytes, must be 80 bytes", p->str, (int)n);
sbin/unwind/libunbound/util/net_help.c
1837
verbose(VERB_OPS, "read tls-session-ticket-key: %s", p->str);
sbin/unwind/libunbound/util/net_help.c
207
log_addr(enum verbosity_value v, const char* str,
sbin/unwind/libunbound/util/net_help.c
226
verbose(v, "%s local %s", str, dest);
sbin/unwind/libunbound/util/net_help.c
236
verbose(v, "%s %s %s port %d (len %d)", str, family, dest,
sbin/unwind/libunbound/util/net_help.c
238
else verbose(v, "%s %s port %d", str, dest, (int)port);
sbin/unwind/libunbound/util/net_help.c
242
extstrtoaddr(const char* str, struct sockaddr_storage* addr,
sbin/unwind/libunbound/util/net_help.c
246
if((s=strchr(str, '@'))) {
sbin/unwind/libunbound/util/net_help.c
248
if(s-str >= MAX_ADDR_STRLEN) {
sbin/unwind/libunbound/util/net_help.c
251
(void)strlcpy(buf, str, sizeof(buf));
sbin/unwind/libunbound/util/net_help.c
252
buf[s-str] = 0;
sbin/unwind/libunbound/util/net_help.c
259
return ipstrtoaddr(str, port, addr, addrlen);
sbin/unwind/libunbound/util/net_help.c
304
int netblockstrtoaddr(const char* str, int port, struct sockaddr_storage* addr,
sbin/unwind/libunbound/util/net_help.c
309
*net = (str_is_ip6(str)?128:32);
sbin/unwind/libunbound/util/net_help.c
310
if((s=strchr(str, '/'))) {
sbin/unwind/libunbound/util/net_help.c
312
log_err("netblock too large: %s", str);
sbin/unwind/libunbound/util/net_help.c
317
log_err("cannot parse netblock: '%s'", str);
sbin/unwind/libunbound/util/net_help.c
322
*net, str);
sbin/unwind/libunbound/util/net_help.c
325
strlcpy(buf, str, sizeof(buf));
sbin/unwind/libunbound/util/net_help.c
330
if(!ipstrtoaddr(s?s:str, port, addr, addrlen)) {
sbin/unwind/libunbound/util/net_help.c
331
log_err("cannot parse ip address: '%s'", str);
sbin/unwind/libunbound/util/net_help.c
449
int authextstrtoaddr(char* str, struct sockaddr_storage* addr,
sbin/unwind/libunbound/util/net_help.c
454
if((s=strchr(str, '@'))) {
sbin/unwind/libunbound/util/net_help.c
456
size_t len = (size_t)(s-str);
sbin/unwind/libunbound/util/net_help.c
466
(void)strlcpy(buf, str, sizeof(buf));
sbin/unwind/libunbound/util/net_help.c
477
if((s=strchr(str, '#'))) {
sbin/unwind/libunbound/util/net_help.c
479
size_t len = (size_t)(s-str);
sbin/unwind/libunbound/util/net_help.c
483
(void)strlcpy(buf, str, sizeof(buf));
sbin/unwind/libunbound/util/net_help.c
490
return ipstrtoaddr(str, port, addr, addrlen);
sbin/unwind/libunbound/util/net_help.c
493
uint8_t* authextstrtodname(char* str, int* port, char** auth_name)
sbin/unwind/libunbound/util/net_help.c
500
if((s=strchr(str, '@'))) {
sbin/unwind/libunbound/util/net_help.c
502
size_t len = (size_t)(s-str);
sbin/unwind/libunbound/util/net_help.c
512
(void)strlcpy(buf, str, sizeof(buf));
sbin/unwind/libunbound/util/net_help.c
522
} else if((s=strchr(str, '#'))) {
sbin/unwind/libunbound/util/net_help.c
524
size_t len = (size_t)(s-str);
sbin/unwind/libunbound/util/net_help.c
528
(void)strlcpy(buf, str, sizeof(buf));
sbin/unwind/libunbound/util/net_help.c
534
dname = sldns_str2wire_dname(str, &dname_len);
sbin/unwind/libunbound/util/net_help.c
553
log_nametypeclass(enum verbosity_value v, const char* str, uint8_t* name,
sbin/unwind/libunbound/util/net_help.c
581
log_info("%s %s %s %s", str, buf, ts, cs);
sbin/unwind/libunbound/util/net_help.c
585
log_query_in(const char* str, uint8_t* name, uint16_t type, uint16_t dclass)
sbin/unwind/libunbound/util/net_help.c
611
log_query("%s %s %s %s", str, buf, ts, cs);
sbin/unwind/libunbound/util/net_help.c
612
else log_info("%s %s %s %s", str, buf, ts, cs);
sbin/unwind/libunbound/util/net_help.c
615
void log_name_addr(enum verbosity_value v, const char* str, uint8_t* zone,
sbin/unwind/libunbound/util/net_help.c
642
str, namebuf, family, dest, (int)port, (int)addrlen);
sbin/unwind/libunbound/util/net_help.c
644
str, namebuf, family, dest, (int)port);
sbin/unwind/libunbound/util/net_help.c
647
void log_err_addr(const char* str, const char* err,
sbin/unwind/libunbound/util/net_help.c
662
log_err("%s: %s for %s port %d (len %d)", str, err, dest,
sbin/unwind/libunbound/util/net_help.c
664
else log_err("%s: %s for %s port %d", str, err, dest, (int)port);
sbin/unwind/libunbound/util/net_help.h
118
int str_is_ip6(const char* str);
sbin/unwind/libunbound/util/net_help.h
156
void log_addr(enum verbosity_value v, const char* str,
sbin/unwind/libunbound/util/net_help.h
167
void log_name_addr(enum verbosity_value v, const char* str, uint8_t* zone,
sbin/unwind/libunbound/util/net_help.h
177
void log_err_addr(const char* str, const char* err,
sbin/unwind/libunbound/util/net_help.h
189
int extstrtoaddr(const char* str, struct sockaddr_storage* addr,
sbin/unwind/libunbound/util/net_help.h
227
int authextstrtoaddr(char* str, struct sockaddr_storage* addr,
sbin/unwind/libunbound/util/net_help.h
241
uint8_t* authextstrtodname(char* str, int* port, char** auth_name);
sbin/unwind/libunbound/util/net_help.h
260
void log_nametypeclass(enum verbosity_value v, const char* str,
sbin/unwind/libunbound/util/net_help.h
266
void log_query_in(const char* str, uint8_t* name, uint16_t type,
sbin/unwind/libunbound/util/net_help.h
443
void log_crypto_err(const char* str);
sbin/unwind/libunbound/util/net_help.h
450
void log_crypto_err_code(const char* str, unsigned long err);
sbin/unwind/libunbound/util/net_help.h
459
void log_crypto_err_io(const char* str, int r);
sbin/unwind/libunbound/util/net_help.h
468
void log_crypto_err_io_code(const char* str, int r, unsigned long err);
sbin/unwind/libunbound/util/net_help.h
476
void log_cert(unsigned level, const char* str, void* cert);
sbin/unwind/libunbound/util/netevent.c
574
static void p_ancil(const char* str, struct comm_reply* r)
sbin/unwind/libunbound/util/netevent.c
577
log_info("%s: unknown srctype %d", str, r->srctype);
sbin/unwind/libunbound/util/netevent.c
589
log_info("%s: %s %d", str, buf, r->pktinfo.v6info.ipi6_ifindex);
sbin/unwind/libunbound/util/netevent.c
608
log_info("%s: %d %s %s", str, r->pktinfo.v4info.ipi_ifindex,
sbin/unwind/libunbound/util/netevent.c
617
log_info("%s: %s", str, buf1);
sbin/unwind/libunbound/util/tcp_conn_limit.c
106
tcl_list_str_cfg(struct tcl_list* tcl, const char* str, const char* s2,
sbin/unwind/libunbound/util/tcp_conn_limit.c
118
if(!netblockstrtoaddr(str, UNBOUND_DNS_PORT, &addr, &addrlen, &net)) {
sbin/unwind/libunbound/util/tcp_conn_limit.c
119
log_err("cannot parse connection limit netblock: %s", str);
sbin/unwind/libunbound/util/tcp_conn_limit.c
136
log_assert(p->str && p->str2);
sbin/unwind/libunbound/util/tcp_conn_limit.c
137
if(!tcl_list_str_cfg(tcl, p->str, p->str2, 1))
sbin/unwind/libunbound/validator/autotrust.c
1122
char* str;
sbin/unwind/libunbound/validator/autotrust.c
1171
str = sldns_wire2str_rr(ta->rr, ta->rr_len);
sbin/unwind/libunbound/validator/autotrust.c
1172
if(!str || !str[0]) {
sbin/unwind/libunbound/validator/autotrust.c
1173
free(str);
sbin/unwind/libunbound/validator/autotrust.c
1177
str[strlen(str)-1] = 0; /* remove newline */
sbin/unwind/libunbound/validator/autotrust.c
1179
";;lastchange=%u ;;%s", str, (int)ta->s,
sbin/unwind/libunbound/validator/autotrust.c
1184
free(str);
sbin/unwind/libunbound/validator/autotrust.c
1187
free(str);
sbin/unwind/libunbound/validator/autotrust.c
120
position_in_string(char *str, const char* sub)
sbin/unwind/libunbound/validator/autotrust.c
122
char* pos = strstr(str, sub);
sbin/unwind/libunbound/validator/autotrust.c
124
return (int)(pos-str)+(int)strlen(sub);
sbin/unwind/libunbound/validator/autotrust.c
146
char* str = sldns_wire2str_dname(ta->rr, ta->dname_len);
sbin/unwind/libunbound/validator/autotrust.c
153
verbose(level, "%s key %d %s", str?str:"??", keytag, msg);
sbin/unwind/libunbound/validator/autotrust.c
154
free(str);
sbin/unwind/libunbound/validator/autotrust.c
166
parse_comments(char* str, struct autr_ta* ta)
sbin/unwind/libunbound/validator/autotrust.c
168
int len = (int)strlen(str), pos = 0, timestamp = 0;
sbin/unwind/libunbound/validator/autotrust.c
176
while (*str != '\0' && *str != ';')
sbin/unwind/libunbound/validator/autotrust.c
177
str++;
sbin/unwind/libunbound/validator/autotrust.c
178
if (*str == ';')
sbin/unwind/libunbound/validator/autotrust.c
179
str++;
sbin/unwind/libunbound/validator/autotrust.c
181
while (*str != '\0')
sbin/unwind/libunbound/validator/autotrust.c
183
*comments = *str;
sbin/unwind/libunbound/validator/autotrust.c
185
str++;
sbin/unwind/libunbound/validator/autotrust.c
2291
char* str = sldns_wire2str_rr(ta->rr, ta->rr_len);
sbin/unwind/libunbound/validator/autotrust.c
2292
if(!str) {
sbin/unwind/libunbound/validator/autotrust.c
2296
if(str[0]) str[strlen(str)-1]=0; /* remove newline */
sbin/unwind/libunbound/validator/autotrust.c
2300
trustanchor_state2str(ta->s), str, ta->s, ta->pending_count,
sbin/unwind/libunbound/validator/autotrust.c
2302
free(str);
sbin/unwind/libunbound/validator/autotrust.c
261
str_contains_data(char* str, char comment)
sbin/unwind/libunbound/validator/autotrust.c
263
while (*str != '\0') {
sbin/unwind/libunbound/validator/autotrust.c
264
if (*str == comment || *str == '\n')
sbin/unwind/libunbound/validator/autotrust.c
266
if (*str != ' ' && *str != '\t')
sbin/unwind/libunbound/validator/autotrust.c
268
str++;
sbin/unwind/libunbound/validator/autotrust.c
476
add_trustanchor_frm_str(struct val_anchors* anchors, char* str,
sbin/unwind/libunbound/validator/autotrust.c
484
if (!str_contains_data(str, ';')) {
sbin/unwind/libunbound/validator/autotrust.c
488
if(0 != (lstatus = sldns_str2wire_rr_buf(str, rr, &rr_len, &dname_len,
sbin/unwind/libunbound/validator/autotrust.c
493
sldns_get_errorstr_parse(lstatus), str);
sbin/unwind/libunbound/validator/autotrust.c
529
load_trustanchor(struct val_anchors* anchors, char* str, const char* fname,
sbin/unwind/libunbound/validator/autotrust.c
536
ta = add_trustanchor_frm_str(anchors, str, &tp, origin, origin_len,
sbin/unwind/libunbound/validator/autotrust.c
541
if(!parse_comments(str, ta)) {
sbin/unwind/libunbound/validator/val_anchor.c
1069
if(!f->str || f->str[0] == 0) /* empty "" */
sbin/unwind/libunbound/validator/val_anchor.c
1071
if(!anchor_insert_insecure(anchors, f->str)) {
sbin/unwind/libunbound/validator/val_anchor.c
1072
log_err("error in domain-insecure: %s", f->str);
sbin/unwind/libunbound/validator/val_anchor.c
1078
if(!f->str || f->str[0] == 0) /* empty "" */
sbin/unwind/libunbound/validator/val_anchor.c
1080
nm = f->str;
sbin/unwind/libunbound/validator/val_anchor.c
1085
log_err("error reading trust-anchor-file: %s", f->str);
sbin/unwind/libunbound/validator/val_anchor.c
1091
if(!f->str || f->str[0] == 0) /* empty "" */
sbin/unwind/libunbound/validator/val_anchor.c
1093
nm = f->str;
sbin/unwind/libunbound/validator/val_anchor.c
1098
log_err("error reading trusted-keys-file: %s", f->str);
sbin/unwind/libunbound/validator/val_anchor.c
1104
if(!f->str || f->str[0] == 0) /* empty "" */
sbin/unwind/libunbound/validator/val_anchor.c
1106
if(!anchor_store_str(anchors, parsebuf, f->str)) {
sbin/unwind/libunbound/validator/val_anchor.c
1107
log_err("error in trust-anchor: \"%s\"", f->str);
sbin/unwind/libunbound/validator/val_anchor.c
1115
if(!f->str || f->str[0] == 0) /* empty "" */
sbin/unwind/libunbound/validator/val_anchor.c
1117
nm = f->str;
sbin/unwind/libunbound/validator/val_anchor.c
1123
f->str);
sbin/unwind/libunbound/validator/val_anchor.c
381
anchor_insert_insecure(struct val_anchors* anchors, const char* str)
sbin/unwind/libunbound/validator/val_anchor.c
385
uint8_t* nm = sldns_str2wire_dname(str, &dname_len);
sbin/unwind/libunbound/validator/val_anchor.c
387
log_err("parse error in domain name '%s'", str);
sbin/unwind/libunbound/validator/val_anchor.c
398
const char* str)
sbin/unwind/libunbound/validator/val_anchor.c
403
int status = sldns_str2wire_rr_buf(str, rr, &len, &dname_len,
sbin/unwind/libunbound/validator/val_anchor.c
407
str, LDNS_WIREPARSE_OFFSET(status),
sbin/unwind/libunbound/validator/val_anchor.c
651
char* str = 0;
sbin/unwind/libunbound/validator/val_anchor.c
686
str = strdup((char*)sldns_buffer_begin(buf));
sbin/unwind/libunbound/validator/val_anchor.c
687
if(!str) {
sbin/unwind/libunbound/validator/val_anchor.c
691
if(!anchor_store_str(anchors, buf, str)) {
sbin/unwind/libunbound/validator/val_anchor.c
693
free(str);
sbin/unwind/libunbound/validator/val_anchor.c
696
free(str);
sbin/unwind/libunbound/validator/val_anchor.h
186
struct sldns_buffer* buffer, const char* str);
sbin/unwind/libunbound/validator/val_secalgo.c
107
log_crypto_verbose(enum verbosity_value level, const char* str, unsigned long e)
sbin/unwind/libunbound/validator/val_secalgo.c
114
verbose(level, "%s crypto %s", str, buf);
sbin/unwind/libunbound/validator/val_secalgo.c
706
digest_error_status(const char *str)
sbin/unwind/libunbound/validator/val_secalgo.c
712
log_crypto_verbose(VERB_ALGO, str, e);
sbin/unwind/libunbound/validator/val_secalgo.c
716
log_crypto_verbose(VERB_QUERY, str, e);
sbin/unwind/libunbound/validator/val_secalgo.c
90
log_crypto_error(const char* str, unsigned long e)
sbin/unwind/libunbound/validator/val_secalgo.c
97
log_err("%s crypto %s", str, buf);
sbin/unwind/libunbound/validator/val_sigcrypt.c
1391
sigdate_error(const char* str, int32_t expi, int32_t incep, int32_t now)
sbin/unwind/libunbound/validator/val_sigcrypt.c
1408
log_info("%s expi=%s incep=%s now=%s", str, expi_buf,
sbin/unwind/libunbound/validator/val_sigcrypt.c
1411
log_info("%s expi=%u incep=%u now=%u", str, (unsigned)expi,
sbin/unwind/resolver.c
1061
if (log_getverbose() & OPT_VERBOSE2 && (str =
sbin/unwind/resolver.c
1063
log_debug("%s", str);
sbin/unwind/resolver.c
1064
free(str);
sbin/unwind/resolver.c
1584
char *str;
sbin/unwind/resolver.c
1643
if (log_getverbose() & OPT_VERBOSE2 && (str =
sbin/unwind/resolver.c
1645
log_debug("%s", str);
sbin/unwind/resolver.c
1646
free(str);
sbin/unwind/resolver.c
946
char *str;
sys/arch/alpha/include/cpuconf.h
95
#define cpu_notsupp(st, str) { platform_not_supported, st, str }
sys/arch/alpha/include/prom.h
105
#define prom_putstr(chan, str, len) \
sys/arch/alpha/include/prom.h
106
prom_dispatch(PROM_R_PUTS, chan, (u_int64_t)str, len, 0)
sys/arch/amd64/amd64/bios.c
383
smbios_info(char *str)
sys/arch/amd64/amd64/bios.c
476
printf("\n%s: %s %s", str, hw_vendor, hw_prod);
sys/arch/arm/include/frame.h
192
str r1, [r5] /* Clear astpending */ ;\
sys/arch/arm/include/frame.h
225
str lr, [sp, #-4]!; /* Push the return address */ \
sys/arch/arm/include/frame.h
230
str r0, [sp, #-4]!
sys/arch/arm/include/frame.h
268
str r0, [sp, #-4]!; /* Push return address */ \
sys/arch/arm/include/frame.h
269
str lr, [sp, #-4]!; /* Push SVC lr */ \
sys/arch/arm/include/frame.h
270
str r2, [sp, #-4]!; /* Push SVC sp */ \
sys/arch/arm/include/frame.h
277
str r0, [sp, #-4]!
sys/arch/arm64/dev/smbios.c
323
smbios_info(char *str)
sys/arch/arm64/dev/smbios.c
416
printf("\n%s: %s %s", str, hw_vendor, hw_prod);
sys/arch/arm64/include/asm.h
101
str reg, [sp, #-16]!
sys/arch/armv7/omap/amdisplay.c
138
preg(LCD_PID, str(AMDISPLAY_PID), sc);
sys/arch/armv7/omap/amdisplay.c
139
preg(LCD_CTRL, str(AMDISPLAY_CTRL), sc);
sys/arch/armv7/omap/amdisplay.c
140
preg(LCD_RASTER_CTRL, str(AMDISPLAY_RASTER_CTRL), sc);
sys/arch/armv7/omap/amdisplay.c
141
preg(LCD_RASTER_TIMING_0, str(AMDISPLAY_RASTER_TIMING_0), sc);
sys/arch/armv7/omap/amdisplay.c
142
preg(LCD_RASTER_TIMING_1, str(AMDISPLAY_RASTER_TIMING_1), sc);
sys/arch/armv7/omap/amdisplay.c
143
preg(LCD_RASTER_TIMING_2, str(AMDISPLAY_RASTER_TIMING_2), sc);
sys/arch/armv7/omap/amdisplay.c
144
preg(LCD_RASTER_SUBPANEL, str(AMDISPLAY_RASTER_SUBPANEL), sc);
sys/arch/armv7/omap/amdisplay.c
145
preg(LCD_RASTER_SUBPANEL_2, str(AMDISPLAY_RASTER_SUBPANEL_2), sc);
sys/arch/armv7/omap/amdisplay.c
146
preg(LCD_LCDDMA_CTRL, str(AMDISPLAY_LCDDMA_CTRL), sc);
sys/arch/armv7/omap/amdisplay.c
150
preg(LCD_LCDDMA_FB0_BASE, str(AMDISPLAY_LCDDMA_FB0_BASE), sc);
sys/arch/armv7/omap/amdisplay.c
151
preg(LCD_LCDDMA_FB0_CEILING, str(AMDISPLAY_LCDDMA_FB0_CEILING), sc);
sys/arch/armv7/omap/amdisplay.c
152
preg(LCD_LCDDMA_FB1_BASE, str(AMDISPLAY_LCDDMA_FB1_BASE), sc);
sys/arch/armv7/omap/amdisplay.c
153
preg(LCD_LCDDMA_FB1_CEILING, str(AMDISPLAY_LCDDMA_FB1_CEILING), sc);
sys/arch/armv7/omap/amdisplay.c
156
preg(LCD_SYSCONFIG, str(AMDISPLAY_SYSCONFIG), sc);
sys/arch/armv7/omap/amdisplay.c
157
preg(LCD_IRQSTATUS_RAW, str(AMDISPLAY_IRQSTATUS_RAW), sc);
sys/arch/armv7/omap/amdisplay.c
158
preg(LCD_IRQSTATUS, str(AMDISPLAY_IRQSTATUS), sc);
sys/arch/armv7/omap/amdisplay.c
159
preg(LCD_IRQENABLE_SET, str(AMDISPLAY_IRQENABLE_SET), sc);
sys/arch/armv7/omap/amdisplay.c
160
preg(LCD_IRQENABLE_CLEAR, str(AMDISPLAY_IRQENABLE_CLEAR), sc);
sys/arch/armv7/omap/amdisplay.c
161
preg(LCD_CLKC_ENABLE, str(AMDISPLAY_CLKC_ENABLE), sc);
sys/arch/armv7/omap/amdisplay.c
162
preg(LCD_CLKC_RESET, str(AMDISPLAY_CLKC_RESET), sc);
sys/arch/hppa/dev/lcd.c
126
lcd_write(struct lcd_softc *sc, const char *str)
sys/arch/hppa/dev/lcd.c
128
while (*str) {
sys/arch/hppa/dev/lcd.c
129
bus_space_write_1(sc->sc_iot, sc->sc_datah, 0, *str++);
sys/arch/hppa/stand/mkboot/mkboot.c
330
lifname(char *str)
sys/arch/hppa/stand/mkboot/mkboot.c
336
if (islower(*str))
sys/arch/hppa/stand/mkboot/mkboot.c
337
lname[i] = toupper(*str);
sys/arch/hppa/stand/mkboot/mkboot.c
338
else if (isalnum(*str) || *str == '_')
sys/arch/hppa/stand/mkboot/mkboot.c
339
lname[i] = *str;
sys/arch/hppa/stand/mkboot/mkboot.c
342
str++;
sys/arch/i386/i386/apm.c
222
apm_perror(const char *str, struct apmregs *regs)
sys/arch/i386/i386/apm.c
224
printf("apm0: APM %s: %s (%d)\n", str,
sys/arch/i386/i386/bios.c
1032
printf("\n%s: %s %s", str, hw_vendor, hw_prod);
sys/arch/i386/i386/bios.c
162
char scratch[64], *str;
sys/arch/i386/i386/bios.c
450
for (str = NULL, va = ISA_HOLE_VADDR(0xc0000),
sys/arch/i386/i386/bios.c
478
if (!str)
sys/arch/i386/i386/bios.c
480
str = sc->sc_dev.dv_xname);
sys/arch/i386/i386/bios.c
491
if (str)
sys/arch/i386/i386/bios.c
938
smbios_info(char *str)
sys/arch/i386/i386/machdep.c
2787
char *str;
sys/arch/i386/i386/machdep.c
2857
case 0: str = "succeeded\n\n"; break;
sys/arch/i386/i386/machdep.c
2858
case ENXIO: str = "device bad\n\n"; break;
sys/arch/i386/i386/machdep.c
2859
case EFAULT: str = "device not ready\n\n"; break;
sys/arch/i386/i386/machdep.c
2860
case EINVAL: str = "area improper\n\n"; break;
sys/arch/i386/i386/machdep.c
2861
case EIO: str = "i/o error\n\n"; break;
sys/arch/i386/i386/machdep.c
2862
case EINTR: str = "aborted from console\n\n"; break;
sys/arch/i386/i386/machdep.c
2863
default: str = "error %d\n\n"; break;
sys/arch/i386/i386/machdep.c
2865
printf(str, error);
sys/arch/landisk/stand/xxboot/boot1.c
45
void putstr(const char *str);
sys/arch/loongson/loongson/autoconf.c
105
parseduid(const char *str, u_char *duid)
sys/arch/loongson/loongson/autoconf.c
110
if (!(str[i] >= '0' && str[i] <= '9') &&
sys/arch/loongson/loongson/autoconf.c
111
!(str[i] >= 'a' && str[i] <= 'f'))
sys/arch/loongson/loongson/autoconf.c
114
if (str[DUID_SIZE * 2] != '\0')
sys/arch/loongson/loongson/autoconf.c
118
duid[i] = parsehex(str[i * 2]) * 0x10 +
sys/arch/loongson/loongson/autoconf.c
119
parsehex(str[i * 2 + 1]);
sys/arch/luna88k/stand/boot/devopen.c
129
make_device(const char *str, int *devp, int *unitp, int *partp, char **fname)
sys/arch/luna88k/stand/boot/devopen.c
141
for (cp = str, i = 0; *cp != '\0' && *cp != '(' && i < MAXDEVNAME; i++)
sys/arch/luna88k/stand/boot/devopen.c
198
__func__, str, major, unit, part, *fname);
sys/arch/macppc/dev/adb.c
271
print_single(u_char *str)
sys/arch/macppc/dev/adb.c
275
if (str == NULL) {
sys/arch/macppc/dev/adb.c
279
if (*str == '\0') {
sys/arch/macppc/dev/adb.c
283
if (*str > 20) {
sys/arch/macppc/dev/adb.c
285
*str = 20;
sys/arch/macppc/dev/adb.c
287
printf_intr("(length=0x%x):", *str);
sys/arch/macppc/dev/adb.c
288
for (x = 1; x <= *str; x++)
sys/arch/macppc/dev/adb.c
289
printf_intr(" 0x%02x", str[x]);
sys/arch/macppc/macppc/machdep.c
651
char *str;
sys/arch/macppc/macppc/machdep.c
703
case 0: str = "succeeded\n\n"; break;
sys/arch/macppc/macppc/machdep.c
704
case ENXIO: str = "device bad\n\n"; break;
sys/arch/macppc/macppc/machdep.c
705
case EFAULT: str = "device not ready\n\n"; break;
sys/arch/macppc/macppc/machdep.c
706
case EINVAL: str = "area improper\n\n"; break;
sys/arch/macppc/macppc/machdep.c
707
case EIO: str = "i/o error\n\n"; break;
sys/arch/macppc/macppc/machdep.c
708
case EINTR: str = "aborted from console\n\n"; break;
sys/arch/macppc/macppc/machdep.c
709
default: str = "error %d\n\n"; break;
sys/arch/macppc/macppc/machdep.c
711
printf(str, error);
sys/arch/macppc/pci/pci_machdep.c
204
static char str[16];
sys/arch/macppc/pci/pci_machdep.c
206
snprintf(str, sizeof(str), "irq %ld", ih);
sys/arch/macppc/pci/pci_machdep.c
208
return (str);
sys/arch/macppc/stand/ofdev.c
60
parsename(char *str, char **file)
sys/arch/macppc/stand/ofdev.c
66
cp = strrchr(str, ':');
sys/arch/macppc/stand/ofdev.c
73
OF_getprop(aliases, str, opened_name, sizeof opened_name) < 0)
sys/arch/macppc/stand/ofdev.c
74
strlcpy(opened_name, str, sizeof opened_name);
sys/arch/octeon/octeon/autoconf.c
122
parseduid(const char *str, u_char *duid)
sys/arch/octeon/octeon/autoconf.c
127
if (!(str[i] >= '0' && str[i] <= '9') &&
sys/arch/octeon/octeon/autoconf.c
128
!(str[i] >= 'a' && str[i] <= 'f'))
sys/arch/octeon/octeon/autoconf.c
131
if (str[DUID_SIZE * 2] != '\0')
sys/arch/octeon/octeon/autoconf.c
135
duid[i] = parsehex(str[i * 2]) * 0x10 +
sys/arch/octeon/octeon/autoconf.c
136
parsehex(str[i * 2 + 1]);
sys/arch/sh/sh/db_disasm.c
185
get_ascii(unsigned char *cp, char *str)
sys/arch/sh/sh/db_disasm.c
187
*str++ = (0x20 <= *cp && *cp < 0x7f) ? *cp : '.';
sys/arch/sh/sh/db_disasm.c
189
*str++ = (0x20 <= *cp && *cp < 0x7f) ? *cp : '.';
sys/arch/sh/sh/db_disasm.c
190
*str = '\0';
sys/arch/sparc64/dev/cbus.c
242
const char *str;
sys/arch/sparc64/dev/cbus.c
265
str = name_blk + elem[idx].name_offset;
sys/arch/sparc64/dev/cbus.c
266
if (elem[idx].tag != 'a' || strcmp(str, "fwd") != 0)
sys/arch/sparc64/dev/cbus.c
270
str = name_blk + elem[arc].name_offset;
sys/arch/sparc64/dev/cbus.c
271
if (strcmp(str, "virtual-device-port") == 0) {
sys/arch/sparc64/dev/cbus.c
276
if (strcmp(str, "channel-endpoint") == 0) {
sys/arch/sparc64/dev/led.c
86
char *str;
sys/arch/sparc64/dev/led.c
91
str = getpropstring(ea->ea_node, "compatible");
sys/arch/sparc64/dev/led.c
92
if (strcmp(str, "epic") == 0)
sys/arch/sparc64/dev/lom.c
466
uint8_t str;
sys/arch/sparc64/dev/lom.c
471
str = bus_space_read_1(sc->sc_iot, sc->sc_ioh, LOM1_STATUS);
sys/arch/sparc64/dev/lom.c
473
if ((str & LOM1_STATUS_BUSY) == 0)
sys/arch/sparc64/dev/lom.c
483
str = bus_space_read_1(sc->sc_iot, sc->sc_ioh, LOM1_STATUS);
sys/arch/sparc64/dev/lom.c
485
if ((str & LOM1_STATUS_BUSY) == 0)
sys/arch/sparc64/dev/lom.c
498
uint8_t str;
sys/arch/sparc64/dev/lom.c
503
str = bus_space_read_1(sc->sc_iot, sc->sc_ioh, LOM1_STATUS);
sys/arch/sparc64/dev/lom.c
505
if ((str & LOM1_STATUS_BUSY) == 0)
sys/arch/sparc64/dev/lom.c
516
str = bus_space_read_1(sc->sc_iot, sc->sc_ioh, LOM1_STATUS);
sys/arch/sparc64/dev/lom.c
518
if ((str & LOM1_STATUS_BUSY) == 0)
sys/arch/sparc64/dev/lom.c
555
uint8_t str;
sys/arch/sparc64/dev/lom.c
563
str = bus_space_read_1(sc->sc_iot, sc->sc_ioh, LOM1_STATUS);
sys/arch/sparc64/dev/lom.c
564
if (str & LOM1_STATUS_BUSY) {
sys/arch/sparc64/dev/lom.c
634
uint8_t str;
sys/arch/sparc64/dev/lom.c
639
str = bus_space_read_1(sc->sc_iot, sc->sc_ioh, LOM2_STATUS);
sys/arch/sparc64/dev/lom.c
641
if ((str & LOM2_STATUS_IBF) == 0)
sys/arch/sparc64/dev/lom.c
651
str = bus_space_read_1(sc->sc_iot, sc->sc_ioh, LOM2_STATUS);
sys/arch/sparc64/dev/lom.c
653
if (str & LOM2_STATUS_OBF)
sys/arch/sparc64/dev/lom.c
686
uint8_t str;
sys/arch/sparc64/dev/lom.c
691
str = bus_space_read_1(sc->sc_iot, sc->sc_ioh, LOM2_STATUS);
sys/arch/sparc64/dev/lom.c
693
if ((str & LOM2_STATUS_IBF) == 0)
sys/arch/sparc64/dev/lom.c
706
str = bus_space_read_1(sc->sc_iot, sc->sc_ioh, LOM2_STATUS);
sys/arch/sparc64/dev/lom.c
708
if (str & LOM2_STATUS_OBF)
sys/arch/sparc64/dev/lom.c
718
str = bus_space_read_1(sc->sc_iot, sc->sc_ioh, LOM2_STATUS);
sys/arch/sparc64/dev/lom.c
720
if ((str & LOM2_STATUS_IBF) == 0)
sys/arch/sparc64/dev/lom.c
730
str = bus_space_read_1(sc->sc_iot, sc->sc_ioh, LOM2_STATUS);
sys/arch/sparc64/dev/lom.c
732
if (str & LOM2_STATUS_OBF)
sys/arch/sparc64/dev/lom.c
750
uint8_t str;
sys/arch/sparc64/dev/lom.c
755
str = bus_space_read_1(sc->sc_iot, sc->sc_ioh, LOM2_STATUS);
sys/arch/sparc64/dev/lom.c
756
if ((str & LOM2_STATUS_IBF) == 0) {
sys/arch/sparc64/dev/lom.c
770
uint8_t str, obr;
sys/arch/sparc64/dev/lom.c
774
str = bus_space_read_1(sc->sc_iot, sc->sc_ioh, LOM2_STATUS);
sys/arch/sparc64/dev/lom.c
801
str = bus_space_read_1(sc->sc_iot, sc->sc_ioh, LOM2_STATUS);
sys/arch/sparc64/dev/lom.c
802
if ((str & LOM2_STATUS_IBF) == 0) {
sys/arch/sparc64/dev/pci_machdep.c
481
static char str[16];
sys/arch/sparc64/dev/pci_machdep.c
482
const char *rv = str;
sys/arch/sparc64/dev/pci_machdep.c
493
snprintf(str, sizeof str, "ivec 0x%llx", INTVEC(ih));
sys/arch/sparc64/dev/psycho.c
212
char *str;
sys/arch/sparc64/dev/psycho.c
219
str = getpropstring(ma->ma_node, "model");
sys/arch/sparc64/dev/psycho.c
220
if (strcmp(str, ptype->p_name) == 0)
sys/arch/sparc64/dev/psycho.c
222
str = getpropstring(ma->ma_node, "compatible");
sys/arch/sparc64/dev/psycho.c
223
if (strcmp(str, ptype->p_name) == 0)
sys/arch/sparc64/dev/psycho.c
264
char *str;
sys/arch/sparc64/dev/psycho.c
266
str = getpropstring(ma->ma_node, "model");
sys/arch/sparc64/dev/psycho.c
267
if (strcmp(str, ptype->p_name) == 0)
sys/arch/sparc64/dev/psycho.c
269
str = getpropstring(ma->ma_node, "compatible");
sys/arch/sparc64/dev/psycho.c
270
if (strcmp(str, ptype->p_name) == 0)
sys/arch/sparc64/dev/pyro.c
170
char *str;
sys/arch/sparc64/dev/pyro.c
175
str = getpropstring(ma->ma_node, "compatible");
sys/arch/sparc64/dev/pyro.c
176
if (strcmp(str, "pciex108e,80f0") == 0 ||
sys/arch/sparc64/dev/pyro.c
177
strcmp(str, "pciex108e,80f8") == 0)
sys/arch/sparc64/dev/pyro.c
188
char *str;
sys/arch/sparc64/dev/pyro.c
215
str = getpropstring(ma->ma_node, "compatible");
sys/arch/sparc64/dev/pyro.c
216
if (strcmp(str, "pciex108e,80f8") == 0)
sys/arch/sparc64/dev/schizo.c
116
char *str;
sys/arch/sparc64/dev/schizo.c
121
str = getpropstring(ma->ma_node, "model");
sys/arch/sparc64/dev/schizo.c
122
if (strcmp(str, "schizo") == 0)
sys/arch/sparc64/dev/schizo.c
125
str = getpropstring(ma->ma_node, "compatible");
sys/arch/sparc64/dev/schizo.c
126
if (strcmp(str, "pci108e,8001") == 0)
sys/arch/sparc64/dev/schizo.c
128
if (strcmp(str, "pci108e,8002") == 0) /* XMITS */
sys/arch/sparc64/dev/schizo.c
130
if (strcmp(str, "pci108e,a801") == 0) /* Tomatillo */
sys/arch/sparc64/dev/schizo.c
142
char *str;
sys/arch/sparc64/dev/schizo.c
144
str = getpropstring(ma->ma_node, "compatible");
sys/arch/sparc64/dev/schizo.c
145
if (strcmp(str, "pci108e,a801") == 0)
sys/arch/sparc64/dev/vcc.c
113
const char *str;
sys/arch/sparc64/dev/vcc.c
127
str = name_blk + elem[idx].name_offset;
sys/arch/sparc64/dev/vcc.c
128
if (elem[idx].tag != 'a' || strcmp(str, "fwd") != 0)
sys/arch/sparc64/dev/vcc.c
132
str = name_blk + elem[arc].name_offset;
sys/arch/sparc64/dev/vcc.c
133
if (strcmp(str, "channel-endpoint") == 0) {
sys/arch/sparc64/dev/vcc.c
74
const char *str;
sys/arch/sparc64/dev/vcc.c
86
str = name_blk + elem[idx].name_offset;
sys/arch/sparc64/dev/vcc.c
87
if (elem[idx].tag != 'a' || strcmp(str, "fwd") != 0)
sys/arch/sparc64/dev/vcc.c
91
str = name_blk + elem[arc].name_offset;
sys/arch/sparc64/dev/vcc.c
92
if (strcmp(str, "virtual-device-port") == 0) {
sys/arch/sparc64/dev/vcc.c
93
str = mdesc_get_prop_str(arc, "vcc-domain-name");
sys/arch/sparc64/dev/vcc.c
94
if (str) {
sys/arch/sparc64/dev/vcc.c
96
nca.ca_name = str;
sys/arch/sparc64/dev/vds.c
110
const char *str;
sys/arch/sparc64/dev/vds.c
124
str = name_blk + elem[idx].name_offset;
sys/arch/sparc64/dev/vds.c
125
if (elem[idx].tag != 'a' || strcmp(str, "fwd") != 0)
sys/arch/sparc64/dev/vds.c
129
str = name_blk + elem[arc].name_offset;
sys/arch/sparc64/dev/vds.c
130
if (strcmp(str, "channel-endpoint") == 0) {
sys/arch/sparc64/dev/vds.c
74
const char *str;
sys/arch/sparc64/dev/vds.c
86
str = name_blk + elem[idx].name_offset;
sys/arch/sparc64/dev/vds.c
87
if (elem[idx].tag != 'a' || strcmp(str, "fwd") != 0)
sys/arch/sparc64/dev/vds.c
91
str = name_blk + elem[arc].name_offset;
sys/arch/sparc64/dev/vds.c
92
if (strcmp(str, "virtual-device-port") == 0) {
sys/arch/sparc64/dev/vldc.c
114
const char *str;
sys/arch/sparc64/dev/vldc.c
128
str = name_blk + elem[idx].name_offset;
sys/arch/sparc64/dev/vldc.c
129
if (elem[idx].tag != 'a' || strcmp(str, "fwd") != 0)
sys/arch/sparc64/dev/vldc.c
133
str = name_blk + elem[arc].name_offset;
sys/arch/sparc64/dev/vldc.c
134
if (strcmp(str, "channel-endpoint") == 0) {
sys/arch/sparc64/dev/vldc.c
75
const char *str;
sys/arch/sparc64/dev/vldc.c
87
str = name_blk + elem[idx].name_offset;
sys/arch/sparc64/dev/vldc.c
88
if (elem[idx].tag != 'a' || strcmp(str, "fwd") != 0)
sys/arch/sparc64/dev/vldc.c
92
str = name_blk + elem[arc].name_offset;
sys/arch/sparc64/dev/vldc.c
93
if (strcmp(str, "virtual-device-port") == 0) {
sys/arch/sparc64/dev/vldc.c
94
str = mdesc_get_prop_str(arc, "vldc-svc-name");
sys/arch/sparc64/dev/vldc.c
95
if (str) {
sys/arch/sparc64/dev/vldc.c
97
nca.ca_name = str;
sys/arch/sparc64/dev/vsw.c
110
const char *str;
sys/arch/sparc64/dev/vsw.c
124
str = name_blk + elem[idx].name_offset;
sys/arch/sparc64/dev/vsw.c
125
if (elem[idx].tag != 'a' || strcmp(str, "fwd") != 0)
sys/arch/sparc64/dev/vsw.c
129
str = name_blk + elem[arc].name_offset;
sys/arch/sparc64/dev/vsw.c
130
if (strcmp(str, "channel-endpoint") == 0) {
sys/arch/sparc64/dev/vsw.c
74
const char *str;
sys/arch/sparc64/dev/vsw.c
86
str = name_blk + elem[idx].name_offset;
sys/arch/sparc64/dev/vsw.c
87
if (elem[idx].tag != 'a' || strcmp(str, "fwd") != 0)
sys/arch/sparc64/dev/vsw.c
91
str = name_blk + elem[arc].name_offset;
sys/arch/sparc64/dev/vsw.c
92
if (strcmp(str, "virtual-device-port") == 0) {
sys/arch/sparc64/dev/z8530kbd.c
567
zsenqueue_tx(void *v, u_int8_t *str, u_int len)
sys/arch/sparc64/dev/z8530kbd.c
580
*zst->zst_tbp = str[i];
sys/arch/sparc64/sparc64/autoconf.c
195
str2hex(char *str, long *vp)
sys/arch/sparc64/sparc64/autoconf.c
200
if (*str == 'w') {
sys/arch/sparc64/sparc64/autoconf.c
202
if (str[v] >= '0' && str[v] <= '9')
sys/arch/sparc64/sparc64/autoconf.c
204
if (str[v] >= 'a' && str[v] <= 'f')
sys/arch/sparc64/sparc64/autoconf.c
206
if (str[v] >= 'A' && str[v] <= 'F')
sys/arch/sparc64/sparc64/autoconf.c
208
if (str[v] == '\0' || str[v] == ',')
sys/arch/sparc64/sparc64/autoconf.c
211
return (str + v);
sys/arch/sparc64/sparc64/autoconf.c
213
str++;
sys/arch/sparc64/sparc64/autoconf.c
216
for (v = 0;; v = v * 16 + c, str++) {
sys/arch/sparc64/sparc64/autoconf.c
217
c = *(u_char *)str;
sys/arch/sparc64/sparc64/autoconf.c
231
return (str);
sys/arch/sparc64/sparc64/machdep.c
572
static char str[128];
sys/arch/sparc64/sparc64/machdep.c
628
if (i > sizeof(str))
sys/arch/sparc64/sparc64/machdep.c
630
bcopy(user_boot_string, str, i);
sys/arch/sparc64/sparc64/machdep.c
635
str[0] = '\0';
sys/arch/sparc64/sparc64/machdep.c
639
str[i++] = 's';
sys/arch/sparc64/sparc64/machdep.c
641
str[i++] = 'd';
sys/arch/sparc64/sparc64/machdep.c
643
if (str[0] == '\0')
sys/arch/sparc64/sparc64/machdep.c
644
str[0] = '-';
sys/arch/sparc64/sparc64/machdep.c
645
str[i] = 0;
sys/arch/sparc64/sparc64/machdep.c
647
str[0] = 0;
sys/arch/sparc64/sparc64/machdep.c
648
OF_boot(str);
sys/arch/sparc64/sparc64/mdesc.c
183
const char *str;
sys/arch/sparc64/sparc64/mdesc.c
190
str = name_blk + elem[idx].name_offset;
sys/arch/sparc64/sparc64/mdesc.c
191
if (elem[idx].tag == 'v' && strcmp(str, name) == 0)
sys/arch/sparc64/sparc64/mdesc.c
206
const char *str;
sys/arch/sparc64/sparc64/mdesc.c
214
str = name_blk + elem[idx].name_offset;
sys/arch/sparc64/sparc64/mdesc.c
215
if (elem[idx].tag == 's' && strcmp(str, name) == 0)
sys/arch/sparc64/sparc64/mdesc.c
230
const char *str;
sys/arch/sparc64/sparc64/mdesc.c
238
str = name_blk + elem[idx].name_offset;
sys/arch/sparc64/sparc64/mdesc.c
239
if (elem[idx].tag == 'd' && strcmp(str, name) == 0) {
sys/arch/sparc64/sparc64/mdesc.c
254
const char *str;
sys/arch/sparc64/sparc64/mdesc.c
262
str = mdesc_get_prop_str(idx, "name");
sys/arch/sparc64/sparc64/mdesc.c
264
if (str && strcmp(str, name) == 0 && val == cfg_handle)
sys/arch/sparc64/sparc64/mdesc.c
277
const char *str;
sys/arch/sparc64/sparc64/mdesc.c
286
str = name_blk + elem[idx].name_offset;
sys/arch/sparc64/sparc64/mdesc.c
287
if (elem[idx].tag != 'a' || strcmp(str, "fwd") != 0)
sys/arch/sparc64/sparc64/mdesc.c
291
str = mdesc_get_prop_str(arc, "name");
sys/arch/sparc64/sparc64/mdesc.c
293
if (str && strcmp(str, name) == 0 && val == cfg_handle)
sys/arch/sparc64/sparc64/mdesc.c
306
const char *str;
sys/arch/sparc64/sparc64/mdesc.c
314
str = name_blk + elem[idx].name_offset;
sys/arch/sparc64/sparc64/mdesc.c
315
if (str && strcmp(str, name) == 0)
sys/arch/sparc64/sparc64/openfirm.c
806
char *str;
sys/arch/sparc64/sparc64/openfirm.c
816
str = compat;
sys/arch/sparc64/sparc64/openfirm.c
818
if (strcmp(str, name) == 0)
sys/arch/sparc64/sparc64/openfirm.c
820
len -= strlen(str) + 1;
sys/arch/sparc64/sparc64/openfirm.c
821
str += strlen(str) + 1;
sys/arch/sparc64/stand/ofwboot/boot.c
110
parseargs(char *str, int *howtop)
sys/arch/sparc64/stand/ofwboot/boot.c
115
cp = str;
sys/arch/sparc64/stand/ofwboot/boot.c
120
*str++ = *cp++;
sys/arch/sparc64/stand/ofwboot/boot.c
132
*str = 0;
sys/arch/sparc64/stand/ofwboot/ofdev.c
102
"arguments in %s\n", str);
sys/arch/sparc64/stand/ofwboot/ofdev.c
104
--cp >= str && *cp != '/' && *cp != '-';);
sys/arch/sparc64/stand/ofwboot/ofdev.c
105
if (cp >= str && *cp == '-') {
sys/arch/sparc64/stand/ofwboot/ofdev.c
76
filename(char *str, char *ppart)
sys/arch/sparc64/stand/ofwboot/ofdev.c
83
lp = str;
sys/arch/sparc64/stand/ofwboot/ofdev.c
86
for (cp = str; *cp; lp = cp) {
sys/arch/sparc64/stand/ofwboot/ofdev.c
92
dhandle = OF_finddevice(str);
sys/arch/sparc64/stand/ofwboot/ofdev.c
94
str, dhandle);
sys/dev/acpi/dsdt.c
2009
aml_hextoint(const char *str)
sys/dev/acpi/dsdt.c
2014
while (*str) {
sys/dev/acpi/dsdt.c
2015
if (*str >= '0' && *str <= '9')
sys/dev/acpi/dsdt.c
2016
c = *(str++) - '0';
sys/dev/acpi/dsdt.c
2017
else if (*str >= 'a' && *str <= 'f')
sys/dev/acpi/dsdt.c
2018
c = *(str++) - 'a' + 10;
sys/dev/acpi/dsdt.c
2019
else if (*str >= 'A' && *str <= 'F')
sys/dev/acpi/dsdt.c
2020
c = *(str++) - 'A' + 10;
sys/dev/cardbus/puc_cardbus.c
145
static char str[16];
sys/dev/cardbus/puc_cardbus.c
147
snprintf(str, sizeof str, "irq %d", sc->intrline);
sys/dev/cardbus/puc_cardbus.c
148
return (str);
sys/dev/ic/atw.c
3085
#define PRINTERR(bit, str) \
sys/dev/ic/atw.c
3088
sc->sc_dev.dv_xname, str)
sys/dev/ic/if_wireg.h
353
#define WI_SETSTR(recno, str) \
sys/dev/ic/if_wireg.h
358
l = (str.i_len + 1) & ~0x1; \
sys/dev/ic/if_wireg.h
362
s.wi_str[0] = htole16(str.i_len); \
sys/dev/ic/if_wireg.h
363
bcopy(str.i_nwid, &s.wi_str[1], str.i_len); \
sys/dev/ic/mfireg.h
619
char str[96];
sys/dev/ic/mfireg.h
629
char str[64];
sys/dev/ic/mpi.c
2407
struct mpi_msg_scsi_task_request *str;
sys/dev/ic/mpi.c
2428
str = ccb->ccb_cmd;
sys/dev/ic/mpi.c
2430
str->target_id = ch->target;
sys/dev/ic/mpi.c
2431
str->bus = 0;
sys/dev/ic/mpi.c
2432
str->function = MPI_FUNCTION_SCSI_TASK_MGMT;
sys/dev/ic/mpi.c
2434
str->task_type = MPI_MSG_SCSI_TASK_TYPE_TARGET_RESET;
sys/dev/ic/ncr53c9xvar.h
200
#define NCR_ECBS(str) \
sys/dev/ic/ncr53c9xvar.h
201
do {if (ncr53c9x_debug & NCR_SHOWECBS) printf str;} while (0)
sys/dev/ic/ncr53c9xvar.h
202
#define NCR_MISC(str) \
sys/dev/ic/ncr53c9xvar.h
203
do {if (ncr53c9x_debug & NCR_SHOWMISC) printf str;} while (0)
sys/dev/ic/ncr53c9xvar.h
204
#define NCR_INTS(str) \
sys/dev/ic/ncr53c9xvar.h
205
do {if (ncr53c9x_debug & NCR_SHOWINTS) printf str;} while (0)
sys/dev/ic/ncr53c9xvar.h
206
#define NCR_TRACE(str) \
sys/dev/ic/ncr53c9xvar.h
207
do {if (ncr53c9x_debug & NCR_SHOWTRAC) printf str;} while (0)
sys/dev/ic/ncr53c9xvar.h
208
#define NCR_CMDS(str) \
sys/dev/ic/ncr53c9xvar.h
209
do {if (ncr53c9x_debug & NCR_SHOWCMDS) printf str;} while (0)
sys/dev/ic/ncr53c9xvar.h
210
#define NCR_START(str) \
sys/dev/ic/ncr53c9xvar.h
211
do {if (ncr53c9x_debug & NCR_SHOWSTART) printf str;}while (0)
sys/dev/ic/ncr53c9xvar.h
212
#define NCR_PHASE(str) \
sys/dev/ic/ncr53c9xvar.h
213
do {if (ncr53c9x_debug & NCR_SHOWPHASE) printf str;}while (0)
sys/dev/ic/ncr53c9xvar.h
214
#define NCR_DMA(str) \
sys/dev/ic/ncr53c9xvar.h
215
do {if (ncr53c9x_debug & NCR_SHOWDMA) printf str;}while (0)
sys/dev/ic/ncr53c9xvar.h
216
#define NCR_MSGS(str) \
sys/dev/ic/ncr53c9xvar.h
217
do {if (ncr53c9x_debug & NCR_SHOWMSGS) printf str;}while (0)
sys/dev/ic/ncr53c9xvar.h
219
#define NCR_ECBS(str)
sys/dev/ic/ncr53c9xvar.h
220
#define NCR_MISC(str)
sys/dev/ic/ncr53c9xvar.h
221
#define NCR_INTS(str)
sys/dev/ic/ncr53c9xvar.h
222
#define NCR_TRACE(str)
sys/dev/ic/ncr53c9xvar.h
223
#define NCR_CMDS(str)
sys/dev/ic/ncr53c9xvar.h
224
#define NCR_START(str)
sys/dev/ic/ncr53c9xvar.h
225
#define NCR_PHASE(str)
sys/dev/ic/ncr53c9xvar.h
226
#define NCR_DMA(str)
sys/dev/ic/ncr53c9xvar.h
227
#define NCR_MSGS(str)
sys/dev/isa/isapnp.c
471
isapnp_print_region(const char *str, struct isapnp_region *r, size_t n)
sys/dev/isa/isapnp.c
478
printf(" %s ", str);
sys/dev/isa/isapnp.c
493
isapnp_print_pin(const char *str, struct isapnp_pin *p, size_t n)
sys/dev/isa/isapnp.c
500
printf(" %s ", str);
sys/dev/isa/isapnp.c
512
isapnp_print(void *aux, const char *str)
sys/dev/isa/isapnp.c
516
if (!str)
sys/dev/isa/isapnp.c
521
if (str)
sys/dev/isa/isapnp.c
522
printf(" at %s", str);
sys/dev/isa/isapnpdebug.c
102
printf("%sIRQ's supported: ", str);
sys/dev/isa/isapnpdebug.c
122
isapnp_print_drq(const char *str, const struct isapnp_pin *drq)
sys/dev/isa/isapnpdebug.c
127
printf("%sDRQ's supported: ", str);
sys/dev/isa/isapnpdebug.c
177
isapnp_print_dep_start(const char *str, const u_char pref)
sys/dev/isa/isapnpdebug.c
180
printf("%sconfig: ", str);
sys/dev/isa/isapnpdebug.c
49
isapnp_print_mem(const char *str, const struct isapnp_region *mem)
sys/dev/isa/isapnpdebug.c
51
printf("%sMemory: %s,%sshadowable,decode-%s,%scacheable,%s", str,
sys/dev/isa/isapnpdebug.c
84
isapnp_print_io(const char *str, const struct isapnp_region *io)
sys/dev/isa/isapnpdebug.c
87
io->length, str, (io->flags & ISAPNP_IOFLAGS_16) ? 16 : 10,
sys/dev/isa/isapnpdebug.c
98
isapnp_print_irq(const char *str, const struct isapnp_pin *irq)
sys/dev/isa/isapnpres.c
224
char str[64];
sys/dev/isa/isapnpres.c
238
(void) isapnp_id_to_vendor(str, buf);
sys/dev/isa/isapnpres.c
239
DPRINTF(("Logical device id %s\n", str));
sys/dev/isa/isapnpres.c
242
COPY((*dev)->ipa_devlogic, str);
sys/dev/isa/isapnpres.c
246
(void) isapnp_id_to_vendor(str, buf);
sys/dev/isa/isapnpres.c
247
DPRINTF(("Compatible device id %s\n", str));
sys/dev/isa/isapnpres.c
253
COPY((*dev)->ipa_devcompat, str);
sys/dev/kstat.c
472
kstat_strcheck(const char *str)
sys/dev/kstat.c
476
l = strlen(str);
sys/dev/kstat.c
480
int ch = str[i];
sys/dev/microcode/aic7xxx/aicasm_gram.y
117
char *str;
sys/dev/microcode/aic7xxx/aicasm_gram.y
169
%token <str> T_PATH T_STRING T_ARG T_MACROBODY
sys/dev/microcode/aic7xxx/aicasm_macro_gram.y
74
char *str;
sys/dev/microcode/aic7xxx/aicasm_macro_gram.y
79
%token <str> T_ARG
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras.c
335
char str[65];
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras.c
349
memset(str, 0, sizeof(str));
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras.c
352
if (copy_from_user(str, buf, s))
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras.c
355
if (sscanf(str, "disable %32s", block_name) == 1)
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras.c
357
else if (sscanf(str, "enable %32s %8s", block_name, err) == 2)
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras.c
359
else if (sscanf(str, "inject %32s %8s", block_name, err) == 2)
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras.c
361
else if (strstr(str, "retire_page") != NULL)
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras.c
363
else if (strstr(str, "check_address") != NULL)
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras.c
365
else if (str[0] && str[1] && str[2] && str[3])
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras.c
371
if (sscanf(str, "%*s 0x%llx", &address) != 1 &&
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras.c
372
sscanf(str, "%*s %llu", &address) != 1)
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras.c
380
if (sscanf(str, "%*s 0x%llx 0x%llx", &address, &value) != 2 &&
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras.c
381
sscanf(str, "%*s %llu %llu", &address, &value) != 2)
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras.c
407
if (sscanf(str, "%*s %*s %*s 0x%x 0x%llx 0x%llx 0x%x",
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras.c
409
sscanf(str, "%*s %*s %*s %u %llu %llu %u",
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras.c
411
sscanf(str, "%*s %*s %*s 0x%x 0x%llx 0x%llx",
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras.c
413
sscanf(str, "%*s %*s %*s %u %llu %llu",
sys/dev/pci/drm/amd/amdgpu/amdgpu_securedisplay.c
100
char str[64];
sys/dev/pci/drm/amd/amdgpu/amdgpu_securedisplay.c
103
if (*pos || size > sizeof(str) - 1)
sys/dev/pci/drm/amd/amdgpu/amdgpu_securedisplay.c
106
memset(str, 0, sizeof(str));
sys/dev/pci/drm/amd/amdgpu/amdgpu_securedisplay.c
107
ret = copy_from_user(str, buf, size);
sys/dev/pci/drm/amd/amdgpu/amdgpu_securedisplay.c
118
sscanf(str, "%u ", &op);
sys/dev/pci/drm/amd/amdgpu/amdgpu_securedisplay.c
120
sscanf(str, "%u %u", &op, &phy_id);
sys/dev/pci/drm/amd/amdgpu/amdgpu_securedisplay.c
139
dev_err(adev->dev, "Invalid input: %s\n", str);
sys/dev/pci/drm/amd/amdgpu/amdgpu_securedisplay.c
159
dev_err(adev->dev, "Invalid input: %s\n", str);
sys/dev/pci/drm/amd/amdgpu/atom.c
1404
static unsigned char *atom_find_str_in_rom(struct atom_context *ctx, char *str, int start,
sys/dev/pci/drm/amd/amdgpu/atom.c
1412
str_len = strnlen(str, maxlen);
sys/dev/pci/drm/amd/amdgpu/atom.c
1417
if (str[str_off] != *(p_rom + start + str_off))
sys/dev/pci/drm/amd/amdgpu/atom.c
1421
if (str_off == str_len || str[str_off] == 0)
sys/dev/pci/drm/amd/amdgpu/atom.c
1504
unsigned char *str;
sys/dev/pci/drm/amd/amdgpu/atom.c
1510
str = CSTR(CU16(base + ATOM_ROM_CFG_PTR));
sys/dev/pci/drm/amd/amdgpu/atom.c
1512
while (str < atom_rom_hdr && *str++)
sys/dev/pci/drm/amd/amdgpu/atom.c
1515
while (str < atom_rom_hdr && *str++)
sys/dev/pci/drm/amd/amdgpu/atom.c
1518
len = min(atom_rom_hdr - str, STRLEN_NORMAL);
sys/dev/pci/drm/amd/amdgpu/atom.c
1520
strscpy(ctx->build_num, str, len);
sys/dev/pci/drm/amd/amdgpu/gfx_v9_4_2.c
424
char *str;
sys/dev/pci/drm/amd/amdgpu/gfx_v9_4_2.c
427
str = kmalloc(256, GFP_KERNEL);
sys/dev/pci/drm/amd/amdgpu/gfx_v9_4_2.c
428
if (!str)
sys/dev/pci/drm/amd/amdgpu/gfx_v9_4_2.c
435
memset(str, 0, 256);
sys/dev/pci/drm/amd/amdgpu/gfx_v9_4_2.c
436
size = snprintf(str, 256, "SE[%02d]CU[%02d]: ", se, cu);
sys/dev/pci/drm/amd/amdgpu/gfx_v9_4_2.c
438
size += snprintf(str + size, 256 - size, "[");
sys/dev/pci/drm/amd/amdgpu/gfx_v9_4_2.c
440
size += snprintf(str + size, 256 - size, "%x", wb_ptr[offset]);
sys/dev/pci/drm/amd/amdgpu/gfx_v9_4_2.c
443
size += snprintf(str + size, 256 - size, "] ");
sys/dev/pci/drm/amd/amdgpu/gfx_v9_4_2.c
445
dev_dbg(adev->dev, "%s\n", str);
sys/dev/pci/drm/amd/amdgpu/gfx_v9_4_2.c
449
kfree(str);
sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn21/rn_clk_mgr_vbios_smu.c
50
#define smu_print(str, ...) {DC_LOG_SMU(str, ##__VA_ARGS__); }
sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn30/dcn30_clk_mgr_smu_msg.c
46
#define smu_print(str, ...) {DC_LOG_SMU(str, ##__VA_ARGS__); }
sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn30/dcn30m_clk_mgr_smu_msg.c
45
#define smu_print(str, ...) {DC_LOG_SMU(str, ##__VA_ARGS__); }
sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn301/dcn301_smu.c
49
#define smu_print(str, ...) {DC_LOG_SMU(str, ##__VA_ARGS__); }
sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn31/dcn31_smu.c
46
#define smu_print(str, ...) {DC_LOG_SMU(str, ##__VA_ARGS__); }
sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn314/dcn314_smu.c
62
#define smu_print(str, ...) {DC_LOG_SMU(str, ##__VA_ARGS__); }
sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn315/dcn315_smu.c
70
#define smu_print(str, ...) {DC_LOG_SMU(str, ##__VA_ARGS__); }
sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn316/dcn316_smu.c
63
#define smu_print(str, ...) {DC_LOG_SMU(str, ##__VA_ARGS__); }
sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn32/dcn32_clk_mgr_smu_msg.c
42
#define smu_print(str, ...) {DC_LOG_SMU(str, ##__VA_ARGS__); }
sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn35/dcn35_smu.c
62
#define smu_print(str, ...) {DC_LOG_SMU(str, ##__VA_ARGS__); }
sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn401/dcn401_clk_mgr_smu_msg.c
22
#define smu_print(str, ...) {DC_LOG_SMU(str, ##__VA_ARGS__); }
sys/dev/pci/drm/amd/display/dc/dml/dml_logger.h
33
#define dml_print(str, ...) {DC_LOG_DML(str, ##__VA_ARGS__); }
sys/dev/pci/drm/amd/display/dc/dml/dml_logger.h
34
#define DTRACE(str, ...) {DC_LOG_DML(str, ##__VA_ARGS__); }
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp1_execution.c
453
enum mod_hdcp_status *status, struct mod_hdcp *hdcp, char *str)
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp1_execution.c
457
HDCP_INPUT_PASS_TRACE(hdcp, str);
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp1_execution.c
460
HDCP_INPUT_FAIL_TRACE(hdcp, str);
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp_log.h
65
#define HDCP_INPUT_PASS_TRACE(hdcp, str) \
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp_log.h
68
hdcp->config.index, str)
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp_log.h
69
#define HDCP_INPUT_FAIL_TRACE(hdcp, str) \
sys/dev/pci/drm/amd/display/modules/hdcp/hdcp_log.h
72
hdcp->config.index, str)
sys/dev/pci/drm/drm_edid.c
5552
const char *desc = timing->data.other_data.data.str.str;
sys/dev/pci/drm/drm_edid.c
5553
unsigned int desc_len = ARRAY_SIZE(timing->data.other_data.data.str.str);
sys/dev/pci/drm/drm_edid.c
5613
*res = timing->data.other_data.data.str.str;
sys/dev/pci/drm/drm_linux.c
3835
const char *propname, const char *str)
sys/dev/pci/drm/drm_linux.c
3839
idx = OF_getindex((uintptr_t)np, str, propname);
sys/dev/pci/drm/drm_linux.c
449
dmi_match(int slot, const char *str)
sys/dev/pci/drm/drm_linux.c
454
!strcmp(hw_vendor, str))
sys/dev/pci/drm/drm_linux.c
459
!strcmp(hw_prod, str))
sys/dev/pci/drm/drm_linux.c
464
!strcmp(hw_ver, str))
sys/dev/pci/drm/drm_linux.c
469
if (strcmp(smbios_board_vendor, str) == 0)
sys/dev/pci/drm/drm_linux.c
473
if (strcmp(smbios_board_prod, str) == 0)
sys/dev/pci/drm/drm_linux.c
477
if (strcmp(smbios_board_serial, str) == 0)
sys/dev/pci/drm/drm_linux.c
483
!strcmp(hw_vendor, str))
sys/dev/pci/drm/drm_linux.c
488
!strcmp(hw_prod, str))
sys/dev/pci/drm/drm_modes.c
1940
static int drm_mode_parse_cmdline_bpp(const char *str, char **end_ptr,
sys/dev/pci/drm/drm_modes.c
1945
if (str[0] != '-')
sys/dev/pci/drm/drm_modes.c
1948
str++;
sys/dev/pci/drm/drm_modes.c
1949
bpp = simple_strtol(str, end_ptr, 10);
sys/dev/pci/drm/drm_modes.c
1950
if (*end_ptr == str)
sys/dev/pci/drm/drm_modes.c
1959
static int drm_mode_parse_cmdline_refresh(const char *str, char **end_ptr,
sys/dev/pci/drm/drm_modes.c
1964
if (str[0] != '@')
sys/dev/pci/drm/drm_modes.c
1967
str++;
sys/dev/pci/drm/drm_modes.c
1968
refresh = simple_strtol(str, end_ptr, 10);
sys/dev/pci/drm/drm_modes.c
1969
if (*end_ptr == str)
sys/dev/pci/drm/drm_modes.c
1978
static int drm_mode_parse_cmdline_extra(const char *str, int length,
sys/dev/pci/drm/drm_modes.c
1986
switch (str[i]) {
sys/dev/pci/drm/drm_modes.c
2029
static int drm_mode_parse_cmdline_res_mode(const char *str, unsigned int length,
sys/dev/pci/drm/drm_modes.c
2034
const char *str_start = str;
sys/dev/pci/drm/drm_modes.c
2040
xres = simple_strtol(str, &end_ptr, 10);
sys/dev/pci/drm/drm_modes.c
2041
if (end_ptr == str)
sys/dev/pci/drm/drm_modes.c
2048
str = end_ptr;
sys/dev/pci/drm/drm_modes.c
2049
yres = simple_strtol(str, &end_ptr, 10);
sys/dev/pci/drm/drm_modes.c
2050
if (end_ptr == str)
sys/dev/pci/drm/drm_modes.c
2167
static int drm_mode_parse_cmdline_options(const char *str,
sys/dev/pci/drm/drm_modes.c
2175
option = str;
sys/dev/pci/drm/drm_print.c
110
str + (iterator->start - iterator->offset), copy);
sys/dev/pci/drm/drm_print.c
117
len = min_t(ssize_t, strlen(str), iterator->remain);
sys/dev/pci/drm/drm_print.c
120
memcpy(iterator->data + pos, str, len);
sys/dev/pci/drm/drm_print.c
175
void __drm_puts_seq_file(struct drm_printer *p, const char *str)
sys/dev/pci/drm/drm_print.c
177
seq_puts(p->arg, str);
sys/dev/pci/drm/drm_print.c
284
void drm_puts(struct drm_printer *p, const char *str)
sys/dev/pci/drm/drm_print.c
287
p->puts(p, str);
sys/dev/pci/drm/drm_print.c
289
drm_printf(p, "%s", str);
sys/dev/pci/drm/drm_print.c
84
void __drm_puts_coredump(struct drm_printer *p, const char *str)
sys/dev/pci/drm/drm_print.c
95
len = strlen(str);
sys/dev/pci/drm/i915/display/dvo_ch7017.c
207
const char *str;
sys/dev/pci/drm/i915/display/dvo_ch7017.c
222
str = "ch7017";
sys/dev/pci/drm/i915/display/dvo_ch7017.c
225
str = "ch7018";
sys/dev/pci/drm/i915/display/dvo_ch7017.c
228
str = "ch7019";
sys/dev/pci/drm/i915/display/dvo_ch7017.c
238
str, adapter->name, dvo->target_addr);
sys/dev/pci/drm/i915/display/intel_crtc_state_dump.c
77
char *str = buf;
sys/dev/pci/drm/i915/display/intel_crtc_state_dump.c
80
str[0] = '\0';
sys/dev/pci/drm/i915/display/intel_crtc_state_dump.c
88
r = snprintf(str, len, "%s%s",
sys/dev/pci/drm/i915/display/intel_crtc_state_dump.c
89
str != buf ? "," : "", output_type_str[i]);
sys/dev/pci/drm/i915/display/intel_crtc_state_dump.c
92
str += r;
sys/dev/pci/drm/i915/display/intel_drrs.c
57
static const char * const str[] = {
sys/dev/pci/drm/i915/display/intel_drrs.c
63
if (drrs_type >= ARRAY_SIZE(str))
sys/dev/pci/drm/i915/display/intel_drrs.c
66
return str[drrs_type];
sys/dev/pci/drm/i915/display/intel_link_bw.c
340
static int str_to_fxp_q4_nonneg_int(const char *str, int *val_x16)
sys/dev/pci/drm/i915/display/intel_link_bw.c
345
err = kstrtouint(str, 10, &val);
sys/dev/pci/drm/i915/display/intel_link_bw.c
358
static int str_to_fxp_q4_nonneg(char *str, int *val_x16)
sys/dev/pci/drm/i915/display/intel_link_bw.c
366
int_str = strim(str);
sys/dev/pci/drm/i915/display/intel_psr.c
4283
const char *str;
sys/dev/pci/drm/i915/display/intel_psr.c
4301
str = sink_status[status];
sys/dev/pci/drm/i915/display/intel_psr.c
4303
str = "unknown";
sys/dev/pci/drm/i915/display/intel_psr.c
4305
seq_printf(m, "Sink %s status: 0x%x [%s]\n", psr_mode_str(intel_dp), status, str);
sys/dev/pci/drm/i915/gt/selftest_workarounds.c
1167
const char *str)
sys/dev/pci/drm/i915/gt/selftest_workarounds.c
1173
ok &= wa_list_verify(gt, &lists->gt_wa_list, str);
sys/dev/pci/drm/i915/gt/selftest_workarounds.c
1184
str) == 0;
sys/dev/pci/drm/i915/gt/selftest_workarounds.c
1188
str) == 0;
sys/dev/pci/drm/i915/gt/uc/intel_guc_capture.c
1430
const char *str;
sys/dev/pci/drm/i915/gt/uc/intel_guc_capture.c
1482
str = guc_capture_reg_to_str(guc, GUC_CAPTURE_LIST_INDEX_PF, i,
sys/dev/pci/drm/i915/gt/uc/intel_guc_capture.c
1484
if (!str)
sys/dev/pci/drm/i915/gt/uc/intel_guc_capture.c
1487
i915_error_printf(ebuf, " %s", str);
sys/dev/pci/drm/i915/i915_gpu_error.c
163
static void i915_error_puts(struct drm_i915_error_state_buf *e, const char *str)
sys/dev/pci/drm/i915/i915_gpu_error.c
167
if (e->err || !str)
sys/dev/pci/drm/i915/i915_gpu_error.c
170
len = strlen(str);
sys/dev/pci/drm/i915/i915_gpu_error.c
175
memcpy(e->buf + e->bytes, str, len);
sys/dev/pci/drm/i915/i915_gpu_error.c
2647
const char *str = "No error state collected\n";
sys/dev/pci/drm/i915/i915_gpu_error.c
2648
size_t len = strlen(str);
sys/dev/pci/drm/i915/i915_gpu_error.c
2652
memcpy(buf, str + off, ret);
sys/dev/pci/drm/i915/i915_mitigations.c
35
char *str, *sep, *tok;
sys/dev/pci/drm/i915/i915_mitigations.c
41
str = kstrdup(val, GFP_KERNEL);
sys/dev/pci/drm/i915/i915_mitigations.c
42
if (!str)
sys/dev/pci/drm/i915/i915_mitigations.c
45
for (sep = str; (tok = strsep(&sep, ","));) {
sys/dev/pci/drm/i915/i915_mitigations.c
92
kfree(str);
sys/dev/pci/drm/i915/i915_pmu.c
1050
char *str;
sys/dev/pci/drm/i915/i915_pmu.c
1056
str = kstrdup(events[i].name, GFP_KERNEL);
sys/dev/pci/drm/i915/i915_pmu.c
1058
str = kasprintf(GFP_KERNEL, "%s-gt%u",
sys/dev/pci/drm/i915/i915_pmu.c
1060
if (!str)
sys/dev/pci/drm/i915/i915_pmu.c
1064
i915_iter = add_i915_attr(i915_iter, str, config);
sys/dev/pci/drm/i915/i915_pmu.c
1068
str = kasprintf(GFP_KERNEL, "%s.unit",
sys/dev/pci/drm/i915/i915_pmu.c
1071
str = kasprintf(GFP_KERNEL, "%s-gt%u.unit",
sys/dev/pci/drm/i915/i915_pmu.c
1073
if (!str)
sys/dev/pci/drm/i915/i915_pmu.c
1077
pmu_iter = add_pmu_attr(pmu_iter, str,
sys/dev/pci/drm/i915/i915_pmu.c
1086
char *str;
sys/dev/pci/drm/i915/i915_pmu.c
1092
str = kasprintf(GFP_KERNEL, "%s-%s",
sys/dev/pci/drm/i915/i915_pmu.c
1094
if (!str)
sys/dev/pci/drm/i915/i915_pmu.c
1099
add_i915_attr(i915_iter, str,
sys/dev/pci/drm/i915/i915_pmu.c
1104
str = kasprintf(GFP_KERNEL, "%s-%s.unit",
sys/dev/pci/drm/i915/i915_pmu.c
1106
if (!str)
sys/dev/pci/drm/i915/i915_pmu.c
1110
pmu_iter = add_pmu_attr(pmu_iter, str, "ns");
sys/dev/pci/drm/i915/i915_pmu.c
889
const char *str;
sys/dev/pci/drm/i915/i915_pmu.c
898
return sprintf(buf, "%s\n", eattr->str);
sys/dev/pci/drm/i915/i915_pmu.c
904
.str = _config, } \
sys/dev/pci/drm/i915/i915_pmu.c
967
const char *str)
sys/dev/pci/drm/i915/i915_pmu.c
973
attr->event_str = str;
sys/dev/pci/drm/i915/soc/intel_dram.c
36
static const char * const str[] = {
sys/dev/pci/drm/i915/soc/intel_dram.c
49
BUILD_BUG_ON(ARRAY_SIZE(str) != __INTEL_DRAM_TYPE_MAX);
sys/dev/pci/drm/i915/soc/intel_dram.c
51
if (type >= ARRAY_SIZE(str))
sys/dev/pci/drm/i915/soc/intel_dram.c
54
return str[type];
sys/dev/pci/drm/include/drm/drm_edid.h
172
struct detailed_data_string str;
sys/dev/pci/drm/include/drm/drm_edid.h
96
u8 str[13];
sys/dev/pci/drm/include/drm/drm_print.h
177
void (*puts)(struct drm_printer *p, const char *str);
sys/dev/pci/drm/include/drm/drm_print.h
189
void __drm_puts_coredump(struct drm_printer *p, const char *str);
sys/dev/pci/drm/include/drm/drm_print.h
191
void __drm_puts_seq_file(struct drm_printer *p, const char *str);
sys/dev/pci/drm/include/drm/drm_print.h
199
void drm_puts(struct drm_printer *p, const char *str);
sys/dev/pci/drm/include/linux/kernel.h
31
#define scnprintf(str, size, fmt, arg...) snprintf(str, size, fmt, ## arg)
sys/dev/pci/drm/include/linux/string.h
113
kstrdup(const char *str, int flags)
sys/dev/pci/drm/include/linux/string.h
118
if (str == NULL)
sys/dev/pci/drm/include/linux/string.h
121
len = strlen(str) + 1;
sys/dev/pci/drm/include/linux/string.h
124
memcpy(p, str, len);
sys/dev/pci/drm/include/linux/string.h
129
kstrdup_const(const char *str, int flags)
sys/dev/pci/drm/include/linux/string.h
131
return kstrdup(str, flags);
sys/dev/pci/drm/include/linux/string.h
137
match_string(const char * const *array, size_t n, const char *str)
sys/dev/pci/drm/include/linux/string.h
144
if (!strcmp(array[i], str))
sys/dev/pci/drm/include/linux/sysfs.h
40
sysfs_emit(char *str, const char *format, ...)
sys/dev/pci/drm/include/linux/sysfs.h
46
sysfs_emit_at(char *str, int pos, const char *format, ...)
sys/dev/pci/drm/radeon/atom.c
1289
char *str;
sys/dev/pci/drm/radeon/atom.c
1329
str = CSTR(CU16(base + ATOM_ROM_MSG_PTR));
sys/dev/pci/drm/radeon/atom.c
1330
while (*str && ((*str == '\n') || (*str == '\r')))
sys/dev/pci/drm/radeon/atom.c
1331
str++;
sys/dev/pci/drm/radeon/atom.c
1334
name[i] = str[i];
sys/dev/pci/if_ice.c
413
const char *str = NULL;
sys/dev/pci/if_ice.c
417
str = "OK";
sys/dev/pci/if_ice.c
420
str = "AQ_RC_EPERM";
sys/dev/pci/if_ice.c
423
str = "AQ_RC_ENOENT";
sys/dev/pci/if_ice.c
426
str = "AQ_RC_ESRCH";
sys/dev/pci/if_ice.c
429
str = "AQ_RC_EINTR";
sys/dev/pci/if_ice.c
432
str = "AQ_RC_EIO";
sys/dev/pci/if_ice.c
435
str = "AQ_RC_ENXIO";
sys/dev/pci/if_ice.c
438
str = "AQ_RC_E2BIG";
sys/dev/pci/if_ice.c
441
str = "AQ_RC_EAGAIN";
sys/dev/pci/if_ice.c
444
str = "AQ_RC_ENOMEM";
sys/dev/pci/if_ice.c
447
str = "AQ_RC_EACCES";
sys/dev/pci/if_ice.c
450
str = "AQ_RC_EFAULT";
sys/dev/pci/if_ice.c
453
str = "AQ_RC_EBUSY";
sys/dev/pci/if_ice.c
456
str = "AQ_RC_EEXIST";
sys/dev/pci/if_ice.c
459
str = "AQ_RC_EINVAL";
sys/dev/pci/if_ice.c
462
str = "AQ_RC_ENOTTY";
sys/dev/pci/if_ice.c
465
str = "AQ_RC_ENOSPC";
sys/dev/pci/if_ice.c
468
str = "AQ_RC_ENOSYS";
sys/dev/pci/if_ice.c
471
str = "AQ_RC_ERANGE";
sys/dev/pci/if_ice.c
474
str = "AQ_RC_EFLUSHED";
sys/dev/pci/if_ice.c
477
str = "AQ_RC_BAD_ADDR";
sys/dev/pci/if_ice.c
480
str = "AQ_RC_EMODE";
sys/dev/pci/if_ice.c
483
str = "AQ_RC_EFBIG";
sys/dev/pci/if_ice.c
486
str = "AQ_RC_ESBCOMP";
sys/dev/pci/if_ice.c
489
str = "AQ_RC_ENOSEC";
sys/dev/pci/if_ice.c
492
str = "AQ_RC_EBADSIG";
sys/dev/pci/if_ice.c
495
str = "AQ_RC_ESVN";
sys/dev/pci/if_ice.c
498
str = "AQ_RC_EBADMAN";
sys/dev/pci/if_ice.c
501
str = "AQ_RC_EBADBUF";
sys/dev/pci/if_ice.c
504
str = "AQ_RC_EACCES_BMCU";
sys/dev/pci/if_ice.c
508
if (str)
sys/dev/pci/if_ice.c
509
snprintf(buf, ICE_STR_BUF_LEN, "%s", str);
sys/dev/pci/if_ice.c
528
const char *str = NULL;
sys/dev/pci/if_ice.c
532
str = "OK";
sys/dev/pci/if_ice.c
535
str = "ICE_ERR_PARAM";
sys/dev/pci/if_ice.c
538
str = "ICE_ERR_NOT_IMPL";
sys/dev/pci/if_ice.c
541
str = "ICE_ERR_NOT_READY";
sys/dev/pci/if_ice.c
544
str = "ICE_ERR_NOT_SUPPORTED";
sys/dev/pci/if_ice.c
547
str = "ICE_ERR_BAD_PTR";
sys/dev/pci/if_ice.c
550
str = "ICE_ERR_INVAL_SIZE";
sys/dev/pci/if_ice.c
553
str = "ICE_ERR_DEVICE_NOT_SUPPORTED";
sys/dev/pci/if_ice.c
556
str = "ICE_ERR_RESET_FAILED";
sys/dev/pci/if_ice.c
559
str = "ICE_ERR_FW_API_VER";
sys/dev/pci/if_ice.c
562
str = "ICE_ERR_NO_MEMORY";
sys/dev/pci/if_ice.c
565
str = "ICE_ERR_CFG";
sys/dev/pci/if_ice.c
568
str = "ICE_ERR_OUT_OF_RANGE";
sys/dev/pci/if_ice.c
571
str = "ICE_ERR_ALREADY_EXISTS";
sys/dev/pci/if_ice.c
574
str = "ICE_ERR_NVM";
sys/dev/pci/if_ice.c
577
str = "ICE_ERR_NVM_CHECKSUM";
sys/dev/pci/if_ice.c
580
str = "ICE_ERR_BUF_TOO_SHORT";
sys/dev/pci/if_ice.c
583
str = "ICE_ERR_NVM_BLANK_MODE";
sys/dev/pci/if_ice.c
586
str = "ICE_ERR_IN_USE";
sys/dev/pci/if_ice.c
589
str = "ICE_ERR_MAX_LIMIT";
sys/dev/pci/if_ice.c
592
str = "ICE_ERR_RESET_ONGOING";
sys/dev/pci/if_ice.c
595
str = "ICE_ERR_HW_TABLE";
sys/dev/pci/if_ice.c
598
str = "ICE_ERR_FW_DDP_MISMATCH";
sys/dev/pci/if_ice.c
601
str = "ICE_ERR_DOES_NOT_EXIST";
sys/dev/pci/if_ice.c
604
str = "ICE_ERR_AQ_ERROR";
sys/dev/pci/if_ice.c
607
str = "ICE_ERR_AQ_TIMEOUT";
sys/dev/pci/if_ice.c
610
str = "ICE_ERR_AQ_FULL";
sys/dev/pci/if_ice.c
613
str = "ICE_ERR_AQ_NO_WORK";
sys/dev/pci/if_ice.c
616
str = "ICE_ERR_AQ_EMPTY";
sys/dev/pci/if_ice.c
619
str = "ICE_ERR_AQ_FW_CRITICAL";
sys/dev/pci/if_ice.c
623
if (str)
sys/dev/pci/if_ice.c
624
snprintf(buf, ICE_STR_BUF_LEN, "%s", str);
sys/dev/pci/if_ice.c
642
const char *str = NULL;
sys/dev/pci/if_ice.c
646
str = "Wrong order/Format of descriptors";
sys/dev/pci/if_ice.c
649
str = "Unsupported Requests";
sys/dev/pci/if_ice.c
652
str = "Tail descriptor is not DDESC with EOP/NOP";
sys/dev/pci/if_ice.c
655
str = "False Scheduling";
sys/dev/pci/if_ice.c
658
str = "Tail value is bigger than ring length";
sys/dev/pci/if_ice.c
661
str = "More than 8 data commands in packet";
sys/dev/pci/if_ice.c
664
str = "Zero packets sent in quanta and"
sys/dev/pci/if_ice.c
668
str = "Packet too small or too big";
sys/dev/pci/if_ice.c
671
str = "TSO: TLEN is not coherent with sum";
sys/dev/pci/if_ice.c
674
str = "TSO: Tail reached before TLEN ended";
sys/dev/pci/if_ice.c
677
str = "TSO: Headers are spread on more than 3 descriptors";
sys/dev/pci/if_ice.c
680
str = "TSO: Sum of TSO buffers < sum of headers";
sys/dev/pci/if_ice.c
683
str = "TSO: Sum of headers is 0/MSS is 0/TLEN is 0";
sys/dev/pci/if_ice.c
686
str = "CTX desc invalid IPSec fields";
sys/dev/pci/if_ice.c
689
str = "SSO: Quanta does not include a whole number"
sys/dev/pci/if_ice.c
693
str = "SSO+TSO: Quanta bytes before additions exceed"
sys/dev/pci/if_ice.c
697
str = "SSO+TSO: Quanta commands exceed max_cmds_in_sq";
sys/dev/pci/if_ice.c
700
str = "TSO: total_descs_in_lso is not coherent with"
sys/dev/pci/if_ice.c
704
str = "TSO: total_descs_in_lso is not coherent with TLEN";
sys/dev/pci/if_ice.c
707
str = "TSO: Quanta bytes is spread on more than max descriptors"
sys/dev/pci/if_ice.c
711
str = "Number of packets in quanta mismatch";
sys/dev/pci/if_ice.c
717
if (str)
sys/dev/pci/if_ice.c
718
snprintf(buf, ICE_STR_BUF_LEN, "%s", str);
sys/dev/pci/if_ice.c
738
const char *str = NULL;
sys/dev/pci/if_ice.c
742
str = "PCI_DUMMY_COMP";
sys/dev/pci/if_ice.c
745
str = "PCI_UR_COMP";
sys/dev/pci/if_ice.c
749
str = "RCV_SH_BE_LSO";
sys/dev/pci/if_ice.c
752
str = "Q_FL_MNG_EPY_CH";
sys/dev/pci/if_ice.c
755
str = "Q_EPY_MNG_FL_CH";
sys/dev/pci/if_ice.c
758
str = "LSO_NUMDESCS_ZERO";
sys/dev/pci/if_ice.c
761
str = "LSO_LENGTH_ZERO";
sys/dev/pci/if_ice.c
764
str = "LSO_MSS_BELOW_MIN";
sys/dev/pci/if_ice.c
767
str = "LSO_MSS_ABOVE_MAX";
sys/dev/pci/if_ice.c
770
str = "LSO_HDR_SIZE_ZERO";
sys/dev/pci/if_ice.c
773
str = "RCV_CNT_BE_LSO";
sys/dev/pci/if_ice.c
776
str = "SKIP_ONE_QT_ONLY";
sys/dev/pci/if_ice.c
779
str = "LSO_PKTCNT_ZERO";
sys/dev/pci/if_ice.c
782
str = "SSO_LENGTH_ZERO";
sys/dev/pci/if_ice.c
785
str = "SSO_LENGTH_EXCEED";
sys/dev/pci/if_ice.c
788
str = "SSO_PKTCNT_ZERO";
sys/dev/pci/if_ice.c
791
str = "SSO_PKTCNT_EXCEED";
sys/dev/pci/if_ice.c
794
str = "SSO_NUMDESCS_ZERO";
sys/dev/pci/if_ice.c
797
str = "SSO_NUMDESCS_EXCEED";
sys/dev/pci/if_ice.c
800
str = "TAIL_GT_RING_LENGTH";
sys/dev/pci/if_ice.c
803
str = "RESERVED_DBL_TYPE";
sys/dev/pci/if_ice.c
806
str = "ILLEGAL_HEAD_DROP_DBL";
sys/dev/pci/if_ice.c
809
str = "LSO_OVER_COMMS_Q";
sys/dev/pci/if_ice.c
812
str = "ILLEGAL_VF_QNUM";
sys/dev/pci/if_ice.c
815
str = "QTAIL_GT_RING_LENGTH";
sys/dev/pci/if_ice.c
821
if (str)
sys/dev/pci/if_ice.c
822
snprintf(buf, ICE_STR_BUF_LEN, "%s", str);
sys/dev/pci/if_ice.c
842
const char *str = NULL;
sys/dev/pci/if_ice.c
846
str = "Descriptor fetch failed";
sys/dev/pci/if_ice.c
852
if (str)
sys/dev/pci/if_ice.c
853
snprintf(buf, ICE_STR_BUF_LEN, "%s", str);
sys/dev/pci/if_pcn.c
1297
#define PRINTIT(x, str) \
sys/dev/pci/if_pcn.c
1300
sc->sc_dev.dv_xname, str);
sys/dev/pv/hyperv.c
940
hv_guid_sprint(struct hv_guid *guid, char *str, size_t size)
sys/dev/pv/hyperv.c
974
strlcpy(str, map[i].ident, size);
sys/dev/pv/hyperv.c
979
strlcpy(str, guidprint(guid), size);
sys/dev/pv/pvbus.c
157
char str[CPUID_HV_SIGNATURE_STRLEN];
sys/dev/pv/pvbus.c
171
if (r.str[i] < 32 || r.str[i] > 126)
sys/dev/pv/pvbus.c
177
memcmp(pvbus_types[i].signature, r.str,
sys/dev/pv/pvbus.c
399
const char *str = NULL;
sys/dev/pv/pvbus.c
419
str = pvbus_types[hvid].name;
sys/dev/pv/pvbus.c
420
sz = strlen(str) + 1;
sys/dev/pv/pvbus.c
423
error = copyout(str, pvr->pvr_key, sz);
sys/dev/pv/pvbus.c
429
str = NULL;
sys/dev/pv/pvbus.c
434
str = pvr->pvr_value;
sys/dev/pv/pvbus.c
444
if ((error = pvbusgetstr(valuelen, str, &value)) != 0)
sys/dev/pv/vmt.c
1585
vm_rpc_send_str(const struct vm_rpc *rpc, const uint8_t *str)
sys/dev/pv/vmt.c
1587
return vm_rpc_send(rpc, str, strlen(str));
sys/dev/usb/dwc2/dwc2_hcdqueue.c
452
void (*print_fn)(const char *str, void *data),
sys/dev/usb/dwc2/dwc2_hcdqueue.c
511
static void dwc2_qh_print(const char *str, void *data)
sys/dev/usb/dwc2/dwc2_hcdqueue.c
515
dwc2_sch_dbg(print_data->hsotg, "QH=%p ...%s\n", print_data->qh, str);
sys/dev/usb/if_umb.c
1456
umb_addstr(void *buf, size_t bufsz, int *offs, void *str, int slen,
sys/dev/usb/if_umb.c
1463
if (slen && str) {
sys/dev/usb/if_umb.c
1465
memcpy(buf + *offs, str, slen);
sys/dev/usb/if_umb.c
1909
char str[3][INET_ADDRSTRLEN];
sys/dev/usb/if_umb.c
1912
sockaddr_ntop(sintosa(&ifra.ifra_addr), str[0],
sys/dev/usb/if_umb.c
1913
sizeof(str[0])),
sys/dev/usb/if_umb.c
1914
sockaddr_ntop(sintosa(&ifra.ifra_mask), str[1],
sys/dev/usb/if_umb.c
1915
sizeof(str[1])),
sys/dev/usb/if_umb.c
1916
sockaddr_ntop(sintosa(&ifra.ifra_dstaddr), str[2],
sys/dev/usb/if_umb.c
1917
sizeof(str[2])));
sys/dev/usb/if_umb.c
1990
char str[3][INET6_ADDRSTRLEN];
sys/dev/usb/if_umb.c
1993
sockaddr_ntop(sin6tosa(&ifra.ifra_addr), str[0],
sys/dev/usb/if_umb.c
1994
sizeof(str[0])),
sys/dev/usb/if_umb.c
1995
sockaddr_ntop(sin6tosa(&ifra.ifra_prefixmask), str[1],
sys/dev/usb/if_umb.c
1996
sizeof(str[1])),
sys/dev/usb/if_umb.c
1997
sockaddr_ntop(sin6tosa(&ifra.ifra_dstaddr), str[2],
sys/dev/usb/if_umb.c
1998
sizeof(str[2])));
sys/dev/usb/if_umb.c
2120
char str[INET_ADDRSTRLEN];
sys/dev/usb/if_umb.c
2123
&addr, str, sizeof(str)));
sys/dev/usb/if_umb.c
2188
char str[INET6_ADDRSTRLEN];
sys/dev/usb/if_umb.c
2191
&addr6, str, sizeof(str)));
sys/dev/usb/if_umb.c
2651
const char *op, *str;
sys/dev/usb/if_umb.c
2658
str = umb_cid2str(letoh32(c->cid));
sys/dev/usb/if_umb.c
2661
str = umb_request2str(req);
sys/dev/usb/if_umb.c
2663
DPRINTF("%s: -> %s %s (tid %u)\n", DEVNAM(sc), op, str, tid);
sys/dev/usb/ulpt.c
720
ieee1284_print_id(char *str)
sys/dev/usb/ulpt.c
724
for (p = str-1; p; p = strchr(p, ';')) {
sys/kern/kern_sysctl.c
1340
sysctl_string(void *oldp, size_t *oldlenp, void *newp, size_t newlen, char *str,
sys/kern/kern_sysctl.c
1343
return sysctl__string(oldp, oldlenp, newp, newlen, str, maxlen, 0);
sys/kern/kern_sysctl.c
1348
char *str, size_t maxlen)
sys/kern/kern_sysctl.c
1350
return sysctl__string(oldp, oldlenp, newp, newlen, str, maxlen, 1);
sys/kern/kern_sysctl.c
1355
char *str, size_t maxlen, int trunc)
sys/kern/kern_sysctl.c
1360
len = strlen(str) + 1;
sys/kern/kern_sysctl.c
1370
error = copyout(str, oldp, len - 1);
sys/kern/kern_sysctl.c
1374
error = copyout(str, oldp, len);
sys/kern/kern_sysctl.c
1379
error = copyin(newp, str, newlen);
sys/kern/kern_sysctl.c
1380
str[newlen] = 0;
sys/kern/kern_sysctl.c
1389
sysctl_rdstring(void *oldp, size_t *oldlenp, void *newp, const char *str)
sys/kern/kern_sysctl.c
1394
len = strlen(str) + 1;
sys/kern/kern_sysctl.c
1401
error = copyout(str, oldp, len);
sys/kern/kern_sysctl.c
979
const char *str = "";
sys/kern/kern_sysctl.c
981
str = sysctl_ucominit();
sys/kern/kern_sysctl.c
983
return (sysctl_rdstring(oldp, oldlenp, newp, str));
sys/kern/subr_disk.c
1353
getdisk(char *str, int len, int defpart, dev_t *devp)
sys/kern/subr_disk.c
1357
if ((dv = parsedisk(str, len, defpart, devp)) == NULL) {
sys/kern/subr_disk.c
1373
parsedisk(char *str, int len, int defpart, dev_t *devp)
sys/kern/subr_disk.c
1381
c = str[len-1];
sys/kern/subr_disk.c
1390
strncmp(str, dv->dv_xname, len) == 0 &&
sys/kern/subr_disk.c
1400
strncmp(str, dv->dv_xname, len) == 0 &&
sys/kern/subr_prf.c
1094
puts(const char *str)
sys/kern/subr_prf.c
1096
printf("%s\n", str);
sys/lib/libkern/strlen.c
35
strlen(const char *str)
sys/lib/libkern/strlen.c
39
for (s = str; *s; ++s)
sys/lib/libkern/strlen.c
41
return (s - str);
sys/lib/libkern/strnlen.c
23
strnlen(const char *str, size_t maxlen)
sys/lib/libkern/strnlen.c
27
for (cp = str; maxlen != 0 && *cp != '\0'; cp++, maxlen--)
sys/lib/libkern/strnlen.c
30
return (size_t)(cp - str);
sys/lib/libsa/bootparam.c
314
xdr_string_encode(char **pkt, char *str, int len)
sys/lib/libsa/bootparam.c
327
bcopy(str, datap, len);
sys/lib/libsa/bootparam.c
333
xdr_string_decode(char **pkt, char *str, int *len_p)
sys/lib/libsa/bootparam.c
350
bcopy(datap, str, slen);
sys/lib/libsa/bootparam.c
352
str[slen] = '\0';
sys/lib/libsa/bootparam.c
77
int xdr_string_encode(char **p, char *str, int len);
sys/lib/libsa/bootparam.c
78
int xdr_string_decode(char **p, char *str, int *len_p);
sys/lib/libsa/stat.c
38
stat(const char *str, struct stat *sb)
sys/lib/libsa/stat.c
43
if ((fd = oopen(str, 0)) < 0)
sys/lib/libsa/stat.c
45
if ((fd = open(str, O_RDONLY)) < 0)
sys/lib/libsa/strlen.c
35
strlen(const char *str)
sys/lib/libsa/strlen.c
39
for (s = str; *s; ++s)
sys/lib/libsa/strlen.c
41
return (s - str);
sys/lib/libz/deflate.c
151
#define INSERT_STRING(s, str, match_head) \
sys/lib/libz/deflate.c
152
(UPDATE_HASH(s, s->ins_h, s->window[(str) + (MIN_MATCH-1)]), \
sys/lib/libz/deflate.c
154
s->head[s->ins_h] = (Pos)(str))
sys/lib/libz/deflate.c
156
#define INSERT_STRING(s, str, match_head) \
sys/lib/libz/deflate.c
157
(UPDATE_HASH(s, s->ins_h, s->window[(str) + (MIN_MATCH-1)]), \
sys/lib/libz/deflate.c
158
match_head = s->prev[(str) & s->w_mask] = s->head[s->ins_h], \
sys/lib/libz/deflate.c
159
s->head[s->ins_h] = (Pos)(str))
sys/lib/libz/deflate.c
312
uInt str = s->strstart - s->insert;
sys/lib/libz/deflate.c
313
s->ins_h = s->window[str];
sys/lib/libz/deflate.c
314
UPDATE_HASH(s, s->ins_h, s->window[str + 1]);
sys/lib/libz/deflate.c
319
UPDATE_HASH(s, s->ins_h, s->window[str + MIN_MATCH-1]);
sys/lib/libz/deflate.c
321
s->prev[str & s->w_mask] = s->head[s->ins_h];
sys/lib/libz/deflate.c
323
s->head[s->ins_h] = (Pos)str;
sys/lib/libz/deflate.c
324
str++;
sys/lib/libz/deflate.c
558
uInt str, n;
sys/lib/libz/deflate.c
594
str = s->strstart;
sys/lib/libz/deflate.c
597
UPDATE_HASH(s, s->ins_h, s->window[str + MIN_MATCH-1]);
sys/lib/libz/deflate.c
599
s->prev[str & s->w_mask] = s->head[s->ins_h];
sys/lib/libz/deflate.c
601
s->head[s->ins_h] = (Pos)str;
sys/lib/libz/deflate.c
602
str++;
sys/lib/libz/deflate.c
604
s->strstart = str;
sys/lib/libz/deflate.c
890
Bytef *str;
sys/lib/libz/deflate.c
893
str = s->gzhead->name;
sys/lib/libz/deflate.c
894
if (str != Z_NULL)
sys/lib/libz/deflate.c
897
} while (*str++);
sys/lib/libz/deflate.c
898
str = s->gzhead->comment;
sys/lib/libz/deflate.c
899
if (str != Z_NULL)
sys/lib/libz/deflate.c
902
} while (*str++);
sys/nfs/krpc_subr.c
486
xdr_string_encode(char *str, int len)
sys/nfs/krpc_subr.c
510
bcopy(str, xs->data, len);
sys/nfs/krpc_subr.c
515
xdr_string_decode(struct mbuf *m, char *str, int *len_p)
sys/nfs/krpc_subr.c
546
m_copydata(m, 4, slen, str);
sys/nfs/krpc_subr.c
549
str[slen] = '\0';
sys/nfs/nfs_subs.c
769
nfsm_strtombuf(struct mbuf **mp, void *str, size_t len)
sys/nfs/nfs_subs.c
779
iov[1].iov_base = str;
sys/nfs/nfsm_subs.h
173
nfsm_strtom(struct nfsm_info *infop, char *str, size_t len, size_t maxlen)
sys/nfs/nfsm_subs.h
181
nfsm_strtombuf(&infop->nmi_mb, str, len);
sys/ntfs/ntfs_conv.c
58
ntfs_utf8_wget(const char **str)
sys/ntfs/ntfs_conv.c
62
const char *s = *str;
sys/ntfs/ntfs_conv.c
88
*str = *str + c;
sys/scsi/ses.c
756
char str[32];
sys/scsi/ses.c
760
memset(str, 0, sizeof(str));
sys/scsi/ses.c
761
memcpy(str, desc->logical_id, sizeof(desc->logical_id));
sys/scsi/ses.c
762
DPRINTF("logical_id: %s", str);
sys/scsi/ses.c
765
memset(str, 0, sizeof(str));
sys/scsi/ses.c
766
memcpy(str, desc->vendor_id, sizeof(desc->vendor_id));
sys/scsi/ses.c
767
DPRINTF(" vendor_id: %s", str);
sys/scsi/ses.c
769
memset(str, 0, sizeof(str));
sys/scsi/ses.c
770
memcpy(str, desc->prod_id, sizeof(desc->prod_id));
sys/scsi/ses.c
771
DPRINTF(" prod_id: %s", str);
sys/scsi/ses.c
773
memset(str, 0, sizeof(str));
sys/scsi/ses.c
774
memcpy(str, desc->prod_rev, sizeof(desc->prod_rev));
sys/scsi/ses.c
775
DPRINTF(" prod_rev: %s\n", str);
sys/scsi/ses.c
781
static char str[256];
sys/scsi/ses.c
783
memset(str, 0, sizeof(str));
sys/scsi/ses.c
785
memcpy(str, buf, len);
sys/scsi/ses.c
787
return str;
sys/sys/device.h
233
struct device *getdisk(char *str, int len, int defpart, dev_t *devp);
sys/sys/device.h
234
struct device *parsedisk(char *str, int len, int defpart, dev_t *devp);
sys/tmpfs/tmpfs_mem.c
198
tmpfs_strname_free(struct tmpfs_mount *mp, char *str, size_t len)
sys/tmpfs/tmpfs_mem.c
204
free(str, M_TEMP, sz);
usr.bin/apply/apply.c
159
if ((cmd = strdup(str)) == NULL)
usr.bin/apply/apply.c
181
(void)printf("%s\n", str);
usr.bin/apply/apply.c
182
else if (mysystem(str))
usr.bin/apply/apply.c
53
char *str;
usr.bin/apply/apply.c
62
if (str == NULL) {
usr.bin/apply/apply.c
64
if ((str = malloc(sz)) == NULL)
usr.bin/apply/apply.c
66
*str = '\0';
usr.bin/apply/apply.c
67
} else if (sz - strlen(str) <= n) {
usr.bin/apply/apply.c
69
if ((str = realloc(str, sz)) == NULL)
usr.bin/apply/apply.c
72
strlcat(str, p, sz);
usr.bin/apply/apply.c
78
if (str != NULL)
usr.bin/apply/apply.c
79
str[0] = '\0';
usr.bin/aucat/aucat.c
1222
opt_map(char *str, int *rimin, int *rimax, int *romin, int *romax)
usr.bin/aucat/aucat.c
1228
s = str;
usr.bin/aucat/aucat.c
1254
logx(1, "%s: channel mapping expected", str);
usr.bin/aucat/aucat.c
1259
opt_nch(char *str, int *rnch, int *roff)
usr.bin/aucat/aucat.c
1265
s = str;
usr.bin/aucat/aucat.c
1291
logx(1, "%s: channel count expected", str);
usr.bin/aucat/aucat.c
271
char str[64];
usr.bin/aucat/aucat.c
290
logx(2, "%s: %s", s->afile.path, (slot_fmt(str, sizeof(str), s), str));
usr.bin/awk/proto.h
206
extern int runetochar(char *str, int c);
usr.bin/awk/run.c
758
int runetochar(char *str, int c)
usr.bin/awk/run.c
762
str[0] = c;
usr.bin/awk/run.c
768
str[0] = T2 | (c >> 1*Bitx);
usr.bin/awk/run.c
769
str[1] = Tx | (c & Maskx);
usr.bin/awk/run.c
777
str[0] = T3 | (c >> 2*Bitx);
usr.bin/awk/run.c
778
str[1] = Tx | ((c >> 1*Bitx) & Maskx);
usr.bin/awk/run.c
779
str[2] = Tx | (c & Maskx);
usr.bin/awk/run.c
784
str[0] = T4 | (c >> 3*Bitx);
usr.bin/awk/run.c
785
str[1] = Tx | ((c >> 2*Bitx) & Maskx);
usr.bin/awk/run.c
786
str[2] = Tx | ((c >> 1*Bitx) & Maskx);
usr.bin/awk/run.c
787
str[3] = Tx | (c & Maskx);
usr.bin/bc/bc.y
1011
escape(const char *str)
usr.bin/bc/bc.y
1015
ret = malloc(strlen(str) + 1);
usr.bin/bc/bc.y
1020
while (*str != '\0') {
usr.bin/bc/bc.y
1025
if (*str == '\\') {
usr.bin/bc/bc.y
1026
if (*++str == '\\') {
usr.bin/bc/bc.y
1027
switch (*++str) {
usr.bin/bc/bc.y
1053
if (*str == '\0')
usr.bin/bc/bc.y
1055
str++;
usr.bin/bc/bc.y
1058
*p++ = *str++;
usr.bin/bc/bc.y
1061
*p++ = *str++;
usr.bin/bc/bc.y
127
const char *str;
usr.bin/bc/bc.y
134
%token <str> NUMBER STRING
usr.bin/bc/bc.y
144
%right <str> ASSIGN_OP
usr.bin/bc/bc.y
764
cs(const char *str)
usr.bin/bc/bc.y
768
instructions[current].u.cstr = str;
usr.bin/bc/bc.y
773
as(const char *str)
usr.bin/bc/bc.y
777
instructions[current].u.astr = strdup(str);
usr.bin/bc/bc.y
856
lookup(char * str, size_t len, char type)
usr.bin/bc/bc.y
863
if (str[len-1] != type) {
usr.bin/bc/bc.y
864
str[len] = type;
usr.bin/bc/bc.y
865
str[len+1] = '\0';
usr.bin/bc/bc.y
867
entry.key = str;
usr.bin/bc/bc.y
882
entry.key = strdup(str);
usr.bin/bc/bc.y
893
letter_node(char *str)
usr.bin/bc/bc.y
897
len = strlen(str);
usr.bin/bc/bc.y
898
if (len == 1 && str[0] != '_')
usr.bin/bc/bc.y
899
return cs(str_table[(int)str[0]]);
usr.bin/bc/bc.y
901
return lookup(str, len, 'L');
usr.bin/bc/bc.y
905
array_node(char *str)
usr.bin/bc/bc.y
909
len = strlen(str);
usr.bin/bc/bc.y
910
if (len == 1 && str[0] != '_')
usr.bin/bc/bc.y
911
return cs(str_table[(int)str[0] - 'a' + ARRAY_CHAR]);
usr.bin/bc/bc.y
913
return lookup(str, len, 'A');
usr.bin/bc/bc.y
917
function_node(char *str)
usr.bin/bc/bc.y
921
len = strlen(str);
usr.bin/bc/bc.y
922
if (len == 1 && str[0] != '_')
usr.bin/bc/bc.y
923
return cs(str_table[(int)str[0] - 'a' + FUNC_CHAR]);
usr.bin/bc/bc.y
925
return lookup(str, len, 'F');
usr.bin/bc/bc.y
945
char *str, *p;
usr.bin/bc/bc.y
949
n = asprintf(&str, "%s: %s:%d: %s: unexpected EOF",
usr.bin/bc/bc.y
952
n = asprintf(&str,
usr.bin/bc/bc.y
957
n = asprintf(&str,
usr.bin/bc/bc.y
961
n = asprintf(&str, "%s: %s:%d: %s: %s unexpected",
usr.bin/bc/bc.y
967
for (p = str; *p != '\0'; p++) {
usr.bin/bc/bc.y
973
free(str);
usr.bin/bgplg/bgplg.c
57
lg_urldecode(char *str)
usr.bin/bgplg/bgplg.c
63
if (str && *str) {
usr.bin/bgplg/bgplg.c
64
len = strlen(str);
usr.bin/bgplg/bgplg.c
67
if (str[i] == '%' && i <= (len - 2)) {
usr.bin/bgplg/bgplg.c
68
if (isxdigit((unsigned char)str[i + 1]) &&
usr.bin/bgplg/bgplg.c
69
isxdigit((unsigned char)str[i + 2])) {
usr.bin/bgplg/bgplg.c
70
code[0] = str[i + 1];
usr.bin/bgplg/bgplg.c
71
code[1] = str[i + 2];
usr.bin/bgplg/bgplg.c
77
str[c++] = result;
usr.bin/bgplg/bgplg.c
80
str[c++] = '%';
usr.bin/bgplg/bgplg.c
83
} else if (str[i] == '+') {
usr.bin/bgplg/bgplg.c
84
str[i] = ' ';
usr.bin/bgplg/bgplg.c
87
str[c] = str[i];
usr.bin/bgplg/bgplg.c
92
str[c] = 0x0;
usr.bin/bgplg/bgplgsh.c
193
lg_completion(const char *str, int state)
usr.bin/bgplg/bgplgsh.c
199
len = strlen(str);
usr.bin/bgplg/bgplgsh.c
204
if (strncmp(name, str, len) == 0)
usr.bin/bgplg/misc.c
154
lg_strip(char *str)
usr.bin/bgplg/misc.c
158
if ((len = strlen(str)) < 1)
usr.bin/bgplg/misc.c
161
if (isspace((unsigned char)str[len - 1])) {
usr.bin/bgplg/misc.c
162
str[len - 1] = '\0';
usr.bin/bgplg/misc.c
163
return (lg_strip(str));
usr.bin/bgplg/misc.c
166
return (strlen(str));
usr.bin/cal/cal.c
531
center(const char *str, int len, int separate)
usr.bin/cal/cal.c
534
len -= strlen(str);
usr.bin/cal/cal.c
535
(void)printf("%*s%s%*s", len / 2, "", str,
usr.bin/ctfconv/generate.c
117
imcs_add_string(struct imcs *imcs, const char *str)
usr.bin/ctfconv/generate.c
122
if (str == NULL || *str == '\0')
usr.bin/ctfconv/generate.c
125
se = (struct strentry *)hash_find(imcs->htab, str, &slot);
usr.bin/ctfconv/generate.c
128
hash_insert(imcs->htab, slot, &se->se_key, str);
usr.bin/ctfconv/generate.c
131
dbuf_copy(&imcs->stab, str, strlen(str) + 1);
usr.bin/ctfconv/parse.c
1391
const char *str = NULL;
usr.bin/ctfconv/parse.c
1397
str = dav->dav_str;
usr.bin/ctfconv/parse.c
1401
str = NULL;
usr.bin/ctfconv/parse.c
1403
str = dstrbuf + dav->dav_u32;
usr.bin/ctfconv/parse.c
1409
return str;
usr.bin/ctfconv/xmalloc.c
75
xstrdup(const char *str)
usr.bin/ctfconv/xmalloc.c
79
if ((cp = strdup(str)) == NULL)
usr.bin/ctfdump/ctfdump.c
431
const char *str;
usr.bin/ctfdump/ctfdump.c
434
str = ctf_off2name(&cth, data, dlen, offset);
usr.bin/ctfdump/ctfdump.c
437
if (strcmp(str, "(anon)"))
usr.bin/ctfdump/ctfdump.c
438
offset += printf("%s\n", str);
usr.bin/cvs/buf.c
161
buf_puts(BUF *b, const char *str)
usr.bin/cvs/buf.c
163
buf_append(b, str, strlen(str));
usr.bin/cvs/date.y
488
char *str;
usr.bin/cvs/date.y
490
(void)xasprintf(&str, "parsing date string: %s", s);
usr.bin/cvs/date.y
491
cvs_log(LP_ERR, "%s", str);
usr.bin/cvs/date.y
492
free(str);
usr.bin/cvs/diff_internals.c
1449
char *str;
usr.bin/cvs/diff_internals.c
1452
i = vasprintf(&str, fmt, vap);
usr.bin/cvs/diff_internals.c
1457
buf_puts(diffbuf, str);
usr.bin/cvs/diff_internals.c
1459
cvs_printf("%s", str);
usr.bin/cvs/diff_internals.c
1460
free(str);
usr.bin/cvs/import.c
202
char *str;
usr.bin/cvs/import.c
206
if (vasprintf(&str, fmt, vap) == -1)
usr.bin/cvs/import.c
210
cvs_printf("%s", str);
usr.bin/cvs/import.c
211
buf_puts(logbuf, str);
usr.bin/cvs/import.c
213
free(str);
usr.bin/cvs/rcs.c
1476
rcs_strprint(const u_char *str, size_t slen, FILE *stream)
usr.bin/cvs/rcs.c
1483
ep = str + slen - 1;
usr.bin/cvs/rcs.c
1485
for (sp = str; sp <= ep;) {
usr.bin/cvs/rcsnum.c
115
const char *str;
usr.bin/cvs/rcsnum.c
117
str = rcsnum_itoa(nump->rn_id[i], tmp, sizeof(tmp));
usr.bin/cvs/rcsnum.c
119
strlcat(buf, str, blen) >= blen)
usr.bin/cvs/rcsnum.c
218
rcsnum_aton(const char *str, const char **ep, RCSNUM *nump)
usr.bin/cvs/rcsnum.c
227
for (sp = str;; sp++) {
usr.bin/cvs/rcsnum.c
275
if ((s = strrchr(str, '.')) != NULL) {
usr.bin/cvs/rcsnum.c
78
rcsnum_parse(const char *str)
usr.bin/cvs/rcsnum.c
84
if (rcsnum_aton(str, &ep, num) < 0 || *ep != '\0') {
usr.bin/cvs/rcsparse.c
1006
pdp->rp_value.str = xstrdup(pdp->rp_buf);
usr.bin/cvs/rcsparse.c
1014
pdp->rp_value.str = xstrdup(pdp->rp_buf);
usr.bin/cvs/rcsparse.c
1023
pdp->rp_value.str = xstrdup(pdp->rp_buf);
usr.bin/cvs/rcsparse.c
377
rfp->rf_desc = pdp->rp_value.str;
usr.bin/cvs/rcsparse.c
442
pdp->rp_delta->rd_author = pdp->rp_value.str;
usr.bin/cvs/rcsparse.c
462
pdp->rp_delta->rd_state = pdp->rp_value.str;
usr.bin/cvs/rcsparse.c
532
pdp->rp_delta->rd_commitid = pdp->rp_value.str;
usr.bin/cvs/rcsparse.c
584
pdp->rp_delta->rd_log = pdp->rp_value.str;
usr.bin/cvs/rcsparse.c
612
free(pdp->rp_value.str);
usr.bin/cvs/rcsparse.c
682
ap->ra_name = pdp->rp_value.str;
usr.bin/cvs/rcsparse.c
707
name = pdp->rp_value.str;
usr.bin/cvs/rcsparse.c
740
name = pdp->rp_value.str;
usr.bin/cvs/rcsparse.c
791
rfp->rf_comment = pdp->rp_value.str;
usr.bin/cvs/rcsparse.c
815
rfp->rf_expand = pdp->rp_value.str;
usr.bin/cvs/rcsparse.c
87
char *str;
usr.bin/cvs/rcsparse.c
875
pdp->rp_value.str = xstrdup(pdp->rp_buf);
usr.bin/cvs/rcsparse.c
998
pdp->rp_value.str = xstrdup(pdp->rp_buf);
usr.bin/cvs/root.c
60
cvsroot_parse(const char *str)
usr.bin/cvs/root.c
72
root->cr_str = xstrdup(str);
usr.bin/cvs/root.c
73
root->cr_buf = xstrdup(str);
usr.bin/cvs/util.c
101
l = strlcpy(buf, str, sizeof(buf));
usr.bin/cvs/util.c
755
cvs_strsplit(char *str, const char *sep)
usr.bin/cvs/util.c
761
cp = xstrdup(str);
usr.bin/cvs/util.c
763
av->str = cp;
usr.bin/cvs/util.c
784
free(av->str);
usr.bin/cvs/util.c
93
cvs_strtomode(const char *str, mode_t *mode)
usr.bin/cvs/util.h
65
char *str;
usr.bin/cvs/xmalloc.c
104
i = vsnprintf(str, len, fmt, ap);
usr.bin/cvs/xmalloc.c
69
xstrdup(const char *str)
usr.bin/cvs/xmalloc.c
73
if ((cp = strdup(str)) == NULL)
usr.bin/cvs/xmalloc.c
95
xsnprintf(char *str, size_t len, const char *fmt, ...)
usr.bin/dc/bcode.c
317
pn(const char *str, const struct number *n)
usr.bin/dc/bcode.c
322
(void)fputs(str, stderr);
usr.bin/dc/bcode.c
328
pbn(const char *str, const BIGNUM *n)
usr.bin/dc/bcode.c
333
(void)fputs(str, stderr);
usr.bin/dc/bcode.c
773
char str[2];
usr.bin/dc/bcode.c
779
str[1] = '\0';
usr.bin/dc/bcode.c
788
str[0] = (char)BN_get_word(n->number);
usr.bin/dc/bcode.c
791
str[0] = value->u.string[0];
usr.bin/dc/bcode.c
795
push_string(bstrdup(str));
usr.bin/dc/inout.c
285
char buf[12], *str, *p;
usr.bin/dc/inout.c
307
str = BN_bn2dec(int_part->number);
usr.bin/dc/inout.c
308
bn_checkp(str);
usr.bin/dc/inout.c
309
p = str;
usr.bin/dc/inout.c
312
free(str);
usr.bin/dc/inout.c
314
str = BN_bn2hex(int_part->number);
usr.bin/dc/inout.c
315
bn_checkp(str);
usr.bin/dc/inout.c
316
p = str;
usr.bin/dc/inout.c
324
free(str);
usr.bin/deroff/deroff.c
453
textline(char *str, int constant)
usr.bin/deroff/deroff.c
460
puts(str);
usr.bin/diff/xmalloc.c
62
xstrdup(const char *str)
usr.bin/diff/xmalloc.c
66
if ((cp = strdup(str)) == NULL)
usr.bin/doas/parse.y
170
$$.str = $1.str;
usr.bin/doas/parse.y
174
$$.str = NULL;
usr.bin/doas/parse.y
176
$$.str = $2.str;
usr.bin/doas/parse.y
227
char buf[1024], *ebuf, *p, *str;
usr.bin/doas/parse.y
345
if ((str = strdup(buf)) == NULL)
usr.bin/doas/parse.y
347
yylval.str = str;
usr.bin/doas/parse.y
41
const char *str;
usr.bin/file/xmalloc.c
64
xstrdup(const char *str)
usr.bin/file/xmalloc.c
68
if ((cp = strdup(str)) == NULL)
usr.bin/find/function.c
125
char *endchar, *str; /* Pointer to character ending conversion. */
usr.bin/find/function.c
128
str = vp;
usr.bin/find/function.c
129
switch (*str) {
usr.bin/find/function.c
131
++str;
usr.bin/find/function.c
135
++str;
usr.bin/find/function.c
148
value = strtoll(str, &endchar, 10);
usr.bin/find/function.c
149
if (value == 0 && endchar == str)
usr.bin/finger/lprint.c
215
demi_print(char *str, int oddfield)
usr.bin/finger/lprint.c
220
lenthis = strlen(str);
usr.bin/finger/lprint.c
240
(void)printf("\t%s\n", str); /* force one tab */
usr.bin/finger/lprint.c
242
(void)printf("\n%s", str); /* go to next line */
usr.bin/finger/lprint.c
246
(void)printf("%s", str);
usr.bin/ftp/cookie.c
175
char *str;
usr.bin/ftp/cookie.c
203
str = malloc(len);
usr.bin/ftp/cookie.c
204
if (str == NULL)
usr.bin/ftp/cookie.c
207
(void)strlcpy(str, "Cookie:", len);
usr.bin/ftp/cookie.c
209
head = str + strlen(str);
usr.bin/ftp/cookie.c
210
headlen = len - strlen(str);
usr.bin/ftp/cookie.c
215
if (strlcat(str, "\r\n", len) >= len)
usr.bin/ftp/cookie.c
217
*pstr = str;
usr.bin/ftp/fetch.c
1564
urldecode(const char *str)
usr.bin/ftp/fetch.c
1569
if (str == NULL)
usr.bin/ftp/fetch.c
1571
if ((ret = malloc(strlen(str) + 1)) == NULL)
usr.bin/ftp/fetch.c
1573
for (i = 0, reallen = 0; str[i] != '\0'; i++, reallen++, ret++) {
usr.bin/ftp/fetch.c
1574
c = str[i];
usr.bin/ftp/fetch.c
1583
if (c == '%' && isxdigit((unsigned char)str[i + 1]) &&
usr.bin/ftp/fetch.c
1584
isxdigit((unsigned char)str[i + 2])) {
usr.bin/ftp/fetch.c
1585
*ret = hextochar(&str[i + 1]);
usr.bin/ftp/fetch.c
1617
hextochar(const char *str)
usr.bin/ftp/fetch.c
1621
c = str[0];
usr.bin/ftp/fetch.c
1629
c = str[1];
usr.bin/ftp/main.c
230
char *str;
usr.bin/ftp/main.c
235
switch (getsubopt(&cp, ssl_verify_opts, &str)) {
usr.bin/ftp/main.c
237
if (str == NULL)
usr.bin/ftp/main.c
239
if (tls_config_set_ca_file(tls_config, str) != 0)
usr.bin/ftp/main.c
244
if (str == NULL)
usr.bin/ftp/main.c
246
if (tls_config_set_ca_path(tls_config, str) != 0)
usr.bin/ftp/main.c
251
if (str == NULL)
usr.bin/ftp/main.c
253
if (tls_config_set_ciphers(tls_config, str) != 0)
usr.bin/ftp/main.c
265
if (str == NULL)
usr.bin/ftp/main.c
267
depth = strtonum(str, 0, INT_MAX, &errstr);
usr.bin/ftp/main.c
280
if (str == NULL)
usr.bin/ftp/main.c
282
if ((tls_session_fd = open(str, O_RDWR|O_CREAT,
usr.bin/ftp/main.c
285
"'%s'", str);
usr.bin/ftp/main.c
292
if (str == NULL)
usr.bin/ftp/main.c
294
if (tls_config_parse_protocols(&protocols, str) != 0)
usr.bin/ftp/util.c
481
char str[BUFSIZ];
usr.bin/ftp/util.c
491
if (fgets(str, sizeof(str), stdin) == NULL)
usr.bin/ftp/util.c
493
switch (tolower((unsigned char)*str)) {
usr.bin/gencat/gencat.c
213
xstrdup(const char *str)
usr.bin/gencat/gencat.c
217
if ((nstr = strdup(str)) == NULL)
usr.bin/gencat/gencat.c
406
char *cptr, *str;
usr.bin/gencat/gencat.c
477
str = getmsg(fd, cptr, quote);
usr.bin/gencat/gencat.c
478
MCAddMsg(msgid, str);
usr.bin/gencat/gencat.c
521
string_size += strlen(msg->str) + 1;
usr.bin/gencat/gencat.c
569
int msg_len = strlen(msg->str) + 1;
usr.bin/gencat/gencat.c
575
memcpy(strings, msg->str, msg_len);
usr.bin/gencat/gencat.c
635
MCAddMsg(int msgId, const char *str)
usr.bin/gencat/gencat.c
659
free(p->str);
usr.bin/gencat/gencat.c
672
p->str = xstrdup(str);
usr.bin/gencat/gencat.c
689
free(msg->str);
usr.bin/gencat/gencat.c
712
free(msg->str);
usr.bin/gencat/gencat.c
84
char *str;
usr.bin/grep/util.c
643
grep_revstr(unsigned char *str, int len)
usr.bin/grep/util.c
649
c = str[i];
usr.bin/grep/util.c
650
str[i] = str[len - i - 1];
usr.bin/grep/util.c
651
str[len - i - 1] = c;
usr.bin/hexdump/conv.c
44
char const *str;
usr.bin/hexdump/conv.c
48
str = "\\0";
usr.bin/hexdump/conv.c
54
str = "\\a";
usr.bin/hexdump/conv.c
57
str = "\\b";
usr.bin/hexdump/conv.c
60
str = "\\f";
usr.bin/hexdump/conv.c
63
str = "\\n";
usr.bin/hexdump/conv.c
66
str = "\\r";
usr.bin/hexdump/conv.c
69
str = "\\t";
usr.bin/hexdump/conv.c
74
str = "\\v";
usr.bin/hexdump/conv.c
84
str = buf;
usr.bin/hexdump/conv.c
86
(void)printf(pr->fmt, str);
usr.bin/indent/args.c
276
char *str;
usr.bin/indent/args.c
277
if ((str = strdup(param_start)) == NULL)
usr.bin/indent/args.c
279
addkey(str, 4);
usr.bin/infocmp/infocmp.c
1307
const char *str = 0;
usr.bin/infocmp/infocmp.c
1346
str = "TRUE";
usr.bin/infocmp/infocmp.c
1350
str = "FALSE";
usr.bin/infocmp/infocmp.c
1354
str = "ABSENT_BOOLEAN";
usr.bin/infocmp/infocmp.c
1358
str = "CANCELLED_BOOLEAN";
usr.bin/infocmp/infocmp.c
1362
n, ExtBoolname(term, (int) n, boolnames), str);
usr.bin/infocmp/infocmp.c
1372
str = "ABSENT_NUMERIC";
usr.bin/infocmp/infocmp.c
1375
str = "CANCELLED_NUMERIC";
usr.bin/infocmp/infocmp.c
1379
str = buf;
usr.bin/infocmp/infocmp.c
1383
ExtNumname(term, (int) n, numnames), str);
usr.bin/infocmp/infocmp.c
1392
str = "ABSENT_STRING";
usr.bin/infocmp/infocmp.c
1394
str = "CANCELLED_STRING";
usr.bin/infocmp/infocmp.c
1396
str = string_variable(ExtStrname(term, (int) n, strnames));
usr.bin/infocmp/infocmp.c
1399
ExtStrname(term, (int) n, strnames), str);
usr.bin/kdump/kdump_subr.h
28
#define print_or(str,orflag) do { \
usr.bin/kdump/kdump_subr.h
30
printf ("%s", str); } \
usr.bin/kstat/kstat.c
357
const char *str = s;
usr.bin/kstat/kstat.c
362
char ch = str[i];
usr.bin/last/last.c
625
char str[1024], *ct, ctbuf[26];
usr.bin/last/last.c
628
snprintf(str, sizeof str, "\ninterrupted %10.10s %8.8s \n",
usr.bin/last/last.c
630
write(STDOUT_FILENO, str, strlen(str));
usr.bin/ldap/aldap.c
1317
char *str;
usr.bin/ldap/aldap.c
1324
if ((str = calloc(len + 1, sizeof(char))) == NULL)
usr.bin/ldap/aldap.c
1330
str[j++] = isascii((unsigned char)u[i]) ? u[i] : '?';
usr.bin/ldap/aldap.c
1332
return str;
usr.bin/ldap/aldap.c
688
free(values->str);
usr.bin/ldap/aldap.c
858
if ((ret->str = reallocarray(NULL, ret->len,
usr.bin/ldap/aldap.c
859
sizeof(*(ret->str)))) == NULL) {
usr.bin/ldap/aldap.c
866
(void) ober_get_ostring(a, &(ret->str[i]));
usr.bin/ldap/aldap.h
90
struct ber_octetstring *str;
usr.bin/ldap/ldapclient.c
367
&(outvalues->str[i])) == -1) {
usr.bin/less/cmdbuf.c
809
cmd_istr(char *str)
usr.bin/less/cmdbuf.c
813
char *endline = str + strlen(str);
usr.bin/less/cmdbuf.c
815
for (s = str; *s != '\0'; ) {
usr.bin/less/edit.c
47
init_textlist(struct textlist *tlist, char *str)
usr.bin/less/edit.c
55
tlist->string = skipsp(str);
usr.bin/less/edit.c
57
for (s = str; s < tlist->endstring; s++) {
usr.bin/less/filename.c
40
shell_unquote(char *str)
usr.bin/less/filename.c
45
name = p = ecalloc(strlen(str)+1, sizeof (char));
usr.bin/less/filename.c
46
if (*str == openquote) {
usr.bin/less/filename.c
47
str++;
usr.bin/less/filename.c
48
while (*str != '\0') {
usr.bin/less/filename.c
49
if (*str == closequote) {
usr.bin/less/filename.c
50
if (str[1] != closequote)
usr.bin/less/filename.c
52
str++;
usr.bin/less/filename.c
54
*p++ = *str++;
usr.bin/less/filename.c
59
while (*str != '\0') {
usr.bin/less/filename.c
60
if (esclen > 0 && strncmp(str, esc, esclen) == 0)
usr.bin/less/filename.c
61
str += esclen;
usr.bin/less/filename.c
62
*p++ = *str++;
usr.bin/less/lesskey.c
522
#define PREFIX(str, pat) (strncmp(str, pat, strlen(pat)) == 0)
usr.bin/less/main.c
310
estrdup(const char *str)
usr.bin/less/main.c
314
n = strdup(str);
usr.bin/less/option.c
150
s = optstring(s, &str, propt('+'), NULL, 0);
usr.bin/less/option.c
153
if (*str == '+')
usr.bin/less/option.c
154
every_first_cmd = estrdup(str+1);
usr.bin/less/option.c
156
ungetsc(str);
usr.bin/less/option.c
157
free(str);
usr.bin/less/option.c
262
str = NULL;
usr.bin/less/option.c
293
s = optstring(s, &str, printopt, o->odesc[1], env);
usr.bin/less/option.c
309
(*o->ofunc)(INIT, str);
usr.bin/less/option.c
310
free(str);
usr.bin/less/option.c
75
char *str;
usr.bin/less/search.c
75
is_ucase(char *str)
usr.bin/less/search.c
80
for (; *str != '\0'; str += len) {
usr.bin/less/search.c
81
if ((len = mbtowc(&ch, str, MB_CUR_MAX)) == -1) {
usr.bin/lex/buf.c
139
buf_strnappend(struct Buf *buf, const char *str, int n)
usr.bin/lex/buf.c
141
buf_append(buf, str, n + 1);
usr.bin/lex/buf.c
151
buf_strappend(struct Buf *buf, const char *str)
usr.bin/lex/buf.c
153
return buf_strnappend(buf, str, strlen(str));
usr.bin/lex/buf.c
158
buf_strdefine(struct Buf *buf, const char *str, const char *def)
usr.bin/lex/buf.c
162
buf_strappend(buf, str);
usr.bin/lex/buf.c
179
char *str;
usr.bin/lex/buf.c
184
str = malloc(strsz);
usr.bin/lex/buf.c
185
if (!str)
usr.bin/lex/buf.c
188
snprintf(str, strsz, fmt, def, val);
usr.bin/lex/buf.c
189
buf_append(buf, &str, 1);
usr.bin/lex/buf.c
202
char *str;
usr.bin/lex/buf.c
206
str = malloc(strsz);
usr.bin/lex/buf.c
207
if (!str)
usr.bin/lex/buf.c
210
snprintf(str, strsz, fmt, def);
usr.bin/lex/buf.c
211
buf_append(buf, &str, 1);
usr.bin/lex/flexdef.h
1069
extern struct Buf *buf_strappend PROTO ((struct Buf *, const char *str));
usr.bin/lex/flexdef.h
1071
PROTO ((struct Buf *, const char *str, int nchars));
usr.bin/lex/flexdef.h
1073
PROTO ((struct Buf * buf, const char *str, const char *def));
usr.bin/lex/flexdef.h
1096
extern char *chomp (char *str);
usr.bin/lex/gen.c
1489
indent_puts(const char *str)
usr.bin/lex/gen.c
1492
outn(str);
usr.bin/lex/main.c
430
char *str, *fmt = "#define %s %d\n";
usr.bin/lex/main.c
433
str = (char *) malloc(strsz = strlen(fmt) + strlen(scname[i]) + (int) (1 + log10(i)) + 2);
usr.bin/lex/main.c
434
if (!str)
usr.bin/lex/main.c
436
snprintf(str, strsz, fmt, scname[i], i - 1);
usr.bin/lex/main.c
437
buf_strappend(&tmpbuf, str);
usr.bin/lex/main.c
438
free(str);
usr.bin/lex/misc.c
168
all_lower(char *str)
usr.bin/lex/misc.c
170
while (*str) {
usr.bin/lex/misc.c
171
if (!isascii((u_char) * str) || !islower((u_char) * str))
usr.bin/lex/misc.c
173
++str;
usr.bin/lex/misc.c
183
all_upper(char *str)
usr.bin/lex/misc.c
185
while (*str) {
usr.bin/lex/misc.c
186
if (!isascii((u_char) * str) || !isupper((u_char) * str))
usr.bin/lex/misc.c
188
++str;
usr.bin/lex/misc.c
236
copy_string(const char *str)
usr.bin/lex/misc.c
244
for (c1 = str; *c1; ++c1);
usr.bin/lex/misc.c
246
size = (c1 - str + 1) * sizeof(char);
usr.bin/lex/misc.c
253
for (c2 = copy; (*c2++ = *str++) != 0;);
usr.bin/lex/misc.c
264
copy_unsigned_string(unsigned char *str)
usr.bin/lex/misc.c
270
for (c = str; *c; ++c);
usr.bin/lex/misc.c
272
copy = allocate_Character_array(c - str + 1);
usr.bin/lex/misc.c
274
for (c = copy; (*c++ = *str++) != 0;);
usr.bin/lex/misc.c
361
htoi(unsigned char str[])
usr.bin/lex/misc.c
365
(void) sscanf((char *) str, "%x", &result);
usr.bin/lex/misc.c
644
otoi(unsigned char str[])
usr.bin/lex/misc.c
648
(void) sscanf((char *) str, "%o", &result);
usr.bin/lex/misc.c
658
out(const char *str)
usr.bin/lex/misc.c
660
fputs(str, stdout);
usr.bin/lex/misc.c
682
out_str(const char *fmt, const char str[])
usr.bin/lex/misc.c
684
fprintf(stdout, fmt, str);
usr.bin/lex/misc.c
694
out_str_dec(const char *fmt, const char str[], int n)
usr.bin/lex/misc.c
696
fprintf(stdout, fmt, str, n);
usr.bin/lex/misc.c
706
outn(const char *str)
usr.bin/lex/misc.c
708
fputs(str, stdout);
usr.bin/lex/misc.c
951
chomp(char *str)
usr.bin/lex/misc.c
953
char *p = str;
usr.bin/lex/misc.c
955
if (!str || !*str) /* s is null or empty string */
usr.bin/lex/misc.c
956
return str;
usr.bin/lex/misc.c
964
while (p >= str && (*p == '\r' || *p == '\n'))
usr.bin/lex/misc.c
966
return str;
usr.bin/lex/parse.y
1003
void synerr(const char *str)
usr.bin/lex/parse.y
1006
pinpoint_message( str );
usr.bin/lex/parse.y
1023
void warn(const char *str)
usr.bin/lex/parse.y
1025
line_warning( str, linenum );
usr.bin/lex/parse.y
1043
void pinpoint_message(const char *str)
usr.bin/lex/parse.y
1045
line_pinpoint( str, linenum );
usr.bin/lex/parse.y
1051
void line_warning(const char *str, int line)
usr.bin/lex/parse.y
1057
snprintf( warning, sizeof(warning), "warning, %s", str );
usr.bin/lex/parse.y
1065
void line_pinpoint(const char *str, int line)
usr.bin/lex/parse.y
1067
fprintf( stderr, "%s:%d: %s\n", infilename, line, str );
usr.bin/lex/regex.c
84
char *str;
usr.bin/lex/regex.c
90
str = (char *) malloc ((len + 1) * sizeof (char));
usr.bin/lex/regex.c
91
if (!str)
usr.bin/lex/regex.c
93
strncpy (str, src + m->rm_so, len);
usr.bin/lex/regex.c
94
str[len] = 0;
usr.bin/lex/regex.c
95
return str;
usr.bin/lex/scanopt.c
572
static int matchlongopt (char *str, char **optname, int *optlen,
usr.bin/lex/scanopt.c
581
p = str;
usr.bin/lex/sym.c
166
static int hashfunct (const char *str, int hash_size)
usr.bin/lex/sym.c
174
while (str[locstr]) {
usr.bin/lex/sym.c
175
hashval = (hashval << 1) + (unsigned char) str[locstr++];
usr.bin/lex/sym.c
227
void scinstal (const char *str, int xcluflg)
usr.bin/lex/sym.c
232
scname[lastsc] = copy_string (str);
usr.bin/lex/sym.c
238
str);
usr.bin/lex/sym.c
252
int sclookup (const char *str)
usr.bin/lex/sym.c
254
return findsym (str, sctbl, START_COND_HASH_SIZE)->int_val;
usr.bin/mail/cmd2.c
124
char *str = v;
usr.bin/mail/cmd2.c
126
return(save1(str, 1, "save", saveignore));
usr.bin/mail/cmd2.c
135
char *str = v;
usr.bin/mail/cmd2.c
137
return(save1(str, 0, "copy", saveignore));
usr.bin/mail/cmd2.c
145
save1(char *str, int mark, char *cmd, struct ignoretab *ignore)
usr.bin/mail/cmd2.c
153
if ((file = snarf(str, &f)) == NULL)
usr.bin/mail/cmd2.c
163
if (f && getmsglist(str, msgvec, 0) < 0)
usr.bin/mail/cmd2.c
203
char *str = v;
usr.bin/mail/cmd2.c
205
return(save1(str, 1, "write", ignoreall));
usr.bin/mail/cmd3.c
132
(void)strlcpy(str, bangbuf, strsize);
usr.bin/mail/cmd3.c
50
char *str = v;
usr.bin/mail/cmd3.c
57
(void)strlcpy(cmd, str, sizeof(cmd));
usr.bin/mail/cmd3.c
92
bangexp(char *str, size_t strsize)
usr.bin/mail/cmd3.c
99
cp = str;
usr.bin/mail/list.c
643
matchsender(char *str, int mesg)
usr.bin/mail/list.c
647
if (!*str) /* null string matches nothing instead of everything */
usr.bin/mail/list.c
650
return (strcasestr(cp, str) != NULL);
usr.bin/mail/list.c
660
matchto(char *str, int mesg)
usr.bin/mail/list.c
665
str++;
usr.bin/mail/list.c
667
if (*str == 0) /* null string matches nothing instead of everything */
usr.bin/mail/list.c
674
if (cp != NULL && strcasestr(cp, str) != NULL)
usr.bin/mail/list.c
690
matchsubj(char *str, int mesg)
usr.bin/mail/list.c
695
str++;
usr.bin/mail/list.c
696
if (*str == '\0')
usr.bin/mail/list.c
697
str = lastscan;
usr.bin/mail/list.c
699
strlcpy(lastscan, str, sizeof(lastscan));
usr.bin/mail/list.c
705
if (value("searchheaders") && (cp = strchr(str, ':'))) {
usr.bin/mail/list.c
707
if (strncasecmp(str, "to:", 3) == 0)
usr.bin/mail/list.c
710
cp2 = hfield(*str ? str : "subject", mp);
usr.bin/mail/list.c
712
str = cp;
usr.bin/mail/list.c
720
return (strcasestr(cp, str) != NULL);
usr.bin/mail/names.c
49
nalloc(char *str, int ntype)
usr.bin/mail/names.c
57
np->n_name = savestr(str);
usr.bin/mail/send.c
303
char *str = v;
usr.bin/mail/send.c
306
head.h_to = extract(str, GTO);
usr.bin/mail/send.c
541
fmt(char *str, struct name *np, FILE *fo, int comma)
usr.bin/mail/send.c
546
col = strlen(str);
usr.bin/mail/send.c
548
fputs(str, fo);
usr.bin/mail/util.c
48
savestr(const char *str)
usr.bin/mail/util.c
51
int size = strlen(str) + 1;
usr.bin/mail/util.c
54
(void)memcpy(new, str, size);
usr.bin/mail/util.c
576
charcount(char *str, int c)
usr.bin/mail/util.c
581
for (i = 0, cp = str; *cp; cp++)
usr.bin/mail/util.c
62
save2str(char *str, char *old)
usr.bin/mail/util.c
65
int newsize = strlen(str) + 1;
usr.bin/mail/util.c
73
(void)memcpy(new + oldsize, str, newsize);
usr.bin/mail/vars.c
83
vcopy(char *str)
usr.bin/mail/vars.c
87
if (*str == '\0')
usr.bin/mail/vars.c
89
if ((new = strdup(str)) == NULL)
usr.bin/make/cond.c
369
CondCvtArg(const char *str, double *value)
usr.bin/make/cond.c
371
if (*str == '0' && str[1] == 'x') {
usr.bin/make/cond.c
374
for (str += 2, i = 0; *str; str++) {
usr.bin/make/cond.c
376
if (ISDIGIT(*str))
usr.bin/make/cond.c
377
x = *str - '0';
usr.bin/make/cond.c
378
else if (ISXDIGIT(*str))
usr.bin/make/cond.c
379
x = 10 + *str - (ISUPPER(*str) ? 'A' : 'a');
usr.bin/make/cond.c
389
*value = strtod(str, &eptr);
usr.bin/make/lowparse.c
156
istream->str = NULL;
usr.bin/make/lowparse.c
173
free(istream->str);
usr.bin/make/lowparse.c
180
new_input_string(char *str, const Location *origin)
usr.bin/make/lowparse.c
190
istream->ptr = istream->str = str;
usr.bin/make/lowparse.c
191
istream->end = str + strlen(str);
usr.bin/make/lowparse.c
197
Parse_FromString(char *str, unsigned long lineno)
usr.bin/make/lowparse.c
204
(void)fprintf(stderr, "%s\n----\n", str);
usr.bin/make/lowparse.c
208
current = new_input_string(str, &origin);
usr.bin/make/lowparse.c
60
char *str; /* Input string, if F == NULL. */
usr.bin/make/memory.c
72
estrdup(const char *str)
usr.bin/make/memory.c
77
size = strlen(str) + 1;
usr.bin/make/memory.c
80
memcpy(p, str, size);
usr.bin/make/str.c
104
for (; *str == ' ' || *str == '\t'; ++str)
usr.bin/make/str.c
108
if ((len = strlen(str) + 1) > curlen)
usr.bin/make/str.c
117
for (p = str, start = t = *buffer;; ++p) {
usr.bin/make/str.c
91
brk_string(const char *str, int *store_argc, char **buffer)
usr.bin/make/suff.c
224
suffix_is_suffix(Suff *s, const char *str, const char *estr)
usr.bin/make/suff.c
229
if (estr - str < (ptrdiff_t) s->nameLen)
usr.bin/make/suff.c
350
parse_transformi(const char *str, const char *e, Suff **srcPtr, Suff **targPtr)
usr.bin/make/suff.c
360
if (e == str)
usr.bin/make/suff.c
363
len = e - str;
usr.bin/make/suff.c
372
while (p != str) {
usr.bin/make/suff.c
375
if (p - str <= (ptrdiff_t)maxLen) {
usr.bin/make/suff.c
378
src = find_suffi(str, p);
usr.bin/make/suff.c
400
if (p == str && best_src == NULL) {
usr.bin/make/suff.c
521
new_suffixi(const char *str, const char *eptr)
usr.bin/make/suff.c
525
s = ohash_create_entry(&suff_info, str, &eptr);
usr.bin/make/suff.c
526
s->nameLen = eptr - str;
usr.bin/make/suff.c
546
Suff_AddSuffixi(const char *str, const char *end)
usr.bin/make/suff.c
548
(void)add_suffixi(str, end);
usr.bin/make/suff.c
552
add_suffixi(const char *str, const char *end)
usr.bin/make/suff.c
558
slot = reverse_slot(&suffixes, str, &end);
usr.bin/make/suff.c
561
s = new_suffixi(str, end);
usr.bin/make/var.c
1006
&tstr, str[1]);
usr.bin/make/var.c
1025
val = Str_dupi(str, tstr);
usr.bin/make/var.c
1032
*lengthPtr = tstr - str;
usr.bin/make/var.c
1038
Var_Subst(const char *str, /* the string in which to substitute */
usr.bin/make/var.c
1055
for (cp = str; *str != '\0' && *str != '$'; str++)
usr.bin/make/var.c
1057
Buf_Addi(&buf, cp, str);
usr.bin/make/var.c
1058
if (*str == '\0')
usr.bin/make/var.c
1060
if (str[1] == '$') {
usr.bin/make/var.c
1063
str += 2;
usr.bin/make/var.c
1066
val = Var_Parse(str, ctxt, undefErr, &length, &doFree);
usr.bin/make/var.c
1077
str += length;
usr.bin/make/var.c
1086
(int)length, str);
usr.bin/make/var.c
1087
str += length;
usr.bin/make/var.c
1090
Buf_AddChar(&buf, *str);
usr.bin/make/var.c
1091
str++;
usr.bin/make/var.c
1096
str += length;
usr.bin/make/var.c
1112
Var_Check_for_target(const char *str)
usr.bin/make/var.c
1125
for (; *str != '\0' && *str != '$'; str++)
usr.bin/make/var.c
1127
if (*str == '\0')
usr.bin/make/var.c
1129
if (str[1] == '$') {
usr.bin/make/var.c
1131
str += 2;
usr.bin/make/var.c
1135
tstr = str;
usr.bin/make/var.c
1142
&doFree, &tstr, str[1]);
usr.bin/make/var.c
1149
str = tstr;
usr.bin/make/var.c
1160
Var_Substi(const char *str, const char *estr, SymTable *ctxt, bool undefErr)
usr.bin/make/var.c
1164
return Var_Subst(str, ctxt, undefErr);
usr.bin/make/var.c
1167
Buf_Addi(&subst_buffer, str, estr);
usr.bin/make/var.c
1221
const char *str, /* The string in which to substitute */
usr.bin/make/var.c
1232
for (start = str; *str != '\0' && *str != '$'; str++)
usr.bin/make/var.c
1234
Buf_Addi(buf, start, str);
usr.bin/make/var.c
1236
start = str;
usr.bin/make/var.c
1237
if (*str++ == '\0')
usr.bin/make/var.c
1239
str++;
usr.bin/make/var.c
1257
p = find_pos(paren)(str);
usr.bin/make/var.c
1263
str = p;
usr.bin/make/var.c
1267
if (strncmp(var, str, p - str) != 0 ||
usr.bin/make/var.c
1268
var[p - str] != '\0') {
usr.bin/make/var.c
1271
str = p;
usr.bin/make/var.c
1281
name.e = var + (p-str);
usr.bin/make/var.c
1291
str = p;
usr.bin/make/var.c
1294
str = p+1;
usr.bin/make/var.c
781
const char *str = *pstr;
usr.bin/make/var.c
785
switch(str[1]) {
usr.bin/make/var.c
789
tstr = VarName_Get(str+2, name, ctxt, false, find_pos(str[1]));
usr.bin/make/var.c
798
name->s = str+1;
usr.bin/make/var.c
799
name->e = str+2;
usr.bin/make/var.c
801
tstr = str + 2;
usr.bin/make/var.c
811
const char *str = *pstr;
usr.bin/make/var.c
815
const char *tstr = str;
usr.bin/make/var.c
817
if (str[1] == 0) {
usr.bin/make/var.c
818
*pstr = str+1;
usr.bin/make/var.c
827
&tstr, str[1]);
usr.bin/make/var.c
841
Var_ParseBuffer(Buffer buf, const char *str, SymTable *ctxt, bool err,
usr.bin/make/var.c
847
result = Var_Parse(str, ctxt, err, lengthPtr, &freeIt);
usr.bin/make/var.c
975
Var_Parse(const char *str, /* The string to parse */
usr.bin/make/var.c
991
tstr = str;
usr.bin/make/var.c
993
if (str[1] == 0) {
usr.bin/make/varmodifiers.c
1073
VarModifiers_Apply(char *str, const struct Name *name, SymTable *ctxt,
usr.bin/make/varmodifiers.c
1110
if (str != NULL)
usr.bin/make/varmodifiers.c
1111
printf("Applying :%c to \"%s\"\n", *tstr, str);
usr.bin/make/varmodifiers.c
1126
if (str != NULL) {
usr.bin/make/varmodifiers.c
1128
newStr = VarModify(str,
usr.bin/make/varmodifiers.c
1132
newStr = mod->apply(str, name, arg);
usr.bin/make/varmodifiers.c
1134
free(str);
usr.bin/make/varmodifiers.c
1135
str = newStr;
usr.bin/make/varmodifiers.c
1136
if (str != var_Error)
usr.bin/make/varmodifiers.c
1148
if (str != NULL && *freePtr)
usr.bin/make/varmodifiers.c
1149
free(str);
usr.bin/make/varmodifiers.c
1150
str = var_Error;
usr.bin/make/varmodifiers.c
1154
if (DEBUG(VAR) && str != NULL)
usr.bin/make/varmodifiers.c
1155
printf("Result is \"%s\"\n", str);
usr.bin/make/varmodifiers.c
1163
return str;
usr.bin/make/varmodifiers.c
575
VarREError(int err, regex_t *pat, const char *str)
usr.bin/make/varmodifiers.c
583
Error("%s: %s", str, errbuf);
usr.bin/make/varmodifiers.c
722
VarModify(char *str, /* String whose words should be trimmed */
usr.bin/make/varmodifiers.c
736
word.e = str;
usr.bin/make/varmodifiers.c
837
VarQuote(const char *str, const struct Name *n UNUSED, void *islistp)
usr.bin/make/varmodifiers.c
850
for (; *str; str++) {
usr.bin/make/varmodifiers.c
851
if (strchr(rep, *str) != NULL)
usr.bin/make/varmodifiers.c
853
Buf_AddChar(&buf, *str);
usr.bin/mandoc/dba.c
180
dba_page_add(struct dba_array *page, int32_t ie, const char *str)
usr.bin/mandoc/dba.c
189
if (str == NULL || *str == '\0') {
usr.bin/mandoc/dba.c
195
if (*str == '\0')
usr.bin/mandoc/dba.c
200
if (strcmp(entry, str) == 0)
usr.bin/mandoc/dba.c
203
dba_array_add(entries, (void *)str);
usr.bin/mandoc/dba_array.c
183
const char *str;
usr.bin/mandoc/dba_array.c
185
dba_array_FOREACH(array, str)
usr.bin/mandoc/dba_array.c
186
dba_str_write(str);
usr.bin/mandoc/dba_write.c
104
dba_str_write(const char *str)
usr.bin/mandoc/dba_write.c
106
if (fputs(str, ofp) == EOF)
usr.bin/mandoc/dbm.h
30
const char *str;
usr.bin/mandoc/dbm_map.c
172
dbm_match(const struct dbm_match *match, const char *str)
usr.bin/mandoc/dbm_map.c
176
return strcmp(str, match->str) == 0;
usr.bin/mandoc/dbm_map.c
178
return strcasestr(str, match->str) != NULL;
usr.bin/mandoc/dbm_map.c
180
return regexec(match->re, str, 0, NULL, 0) == 0;
usr.bin/mandoc/eqn.c
213
const char *str;
usr.bin/mandoc/eqn.c
469
eqnsyms[i].str, strlen(eqnsyms[i].str))) {
usr.bin/mandoc/mandocdb.c
1072
struct str *str;
usr.bin/mandoc/mandocdb.c
1120
str = ohash_find(&names, slot);
usr.bin/mandoc/mandocdb.c
1121
assert(NULL != str);
usr.bin/mandoc/mandocdb.c
1122
if ( ! (NAME_TITLE & str->mask))
usr.bin/mandoc/mandocdb.c
1148
mandoc_ohash_init(&names, 4, offsetof(struct str, key));
usr.bin/mandoc/mandocdb.c
1149
mandoc_ohash_init(&strings, 6, offsetof(struct str, key));
usr.bin/mandoc/mandocdb.c
1835
struct str *s;
usr.bin/mandoc/mandocdb.c
1872
s = mandoc_calloc(1, sizeof(struct str) + sz + 1);
usr.bin/mandoc/mandocdb.c
2074
struct str *key;
usr.bin/mandoc/mansearch.c
750
e->match.str = argv[(*argi)++];
usr.bin/mandoc/mansearch.c
774
e->match.str = val + 1;
usr.bin/mandoc/out.c
458
const char *str; /* Beginning of the first line. */
usr.bin/mandoc/out.c
470
str = mw ? mandoc_strdup(dp->string) : dp->string;
usr.bin/mandoc/out.c
472
for (beg = str; beg != NULL && *beg != '\0'; beg = end) {
usr.bin/mandoc/out.c
489
free((void *)str);
usr.bin/mandoc/roff.c
162
const char *str; /* replacement symbol */
usr.bin/mandoc/roff.c
4223
return predefs[i].str;
usr.bin/mg/def.h
329
#define putpad(str, num) tputs(str, num, ttputc)
usr.bin/mg/extend.c
419
dobindkey(KEYMAP *map, const char *func, const char *str)
usr.bin/mg/extend.c
423
for (i = 0; *str && i < MAXKEY; i++) {
usr.bin/mg/extend.c
425
if (*str == '^' && *(str + 1) != '\0') {
usr.bin/mg/extend.c
426
key.k_chars[i] = CCHR(toupper((unsigned char)*++str));
usr.bin/mg/extend.c
427
} else if (*str == '\\' && *(str + 1) != '\0') {
usr.bin/mg/extend.c
428
switch (*++str) {
usr.bin/mg/extend.c
453
key.k_chars[i] = *str;
usr.bin/mg/extend.c
454
str++;
usr.bin/mklocale/yacc.y
82
char *str;
usr.bin/mklocale/yacc.y
95
%token <str> VARIABLE
usr.bin/mklocale/yacc.y
99
%token <str> STRING
usr.bin/openssl/apps.c
1535
parse_yesno(const char *str, int def)
usr.bin/openssl/apps.c
1539
if (str) {
usr.bin/openssl/apps.c
1540
switch (*str) {
usr.bin/openssl/apps.h
194
ASN1_GENERALIZEDTIME **pinvtm, const char *str);
usr.bin/openssl/apps.h
232
int parse_yesno(const char *str, int def);
usr.bin/openssl/apps.h
234
X509_NAME *parse_name(char *str, long chtype, int multirdn);
usr.bin/openssl/apps.h
384
int extract_port(char *str, short *port_ptr);
usr.bin/openssl/apps.h
385
int extract_host_port(char *str, char **host_ptr, unsigned char *ip, char **p);
usr.bin/openssl/asn1pars.c
243
const unsigned char *str;
usr.bin/openssl/asn1pars.c
331
str = (const unsigned char *)buf->data;
usr.bin/openssl/asn1pars.c
337
const unsigned char *tmpbuf = str;
usr.bin/openssl/asn1pars.c
374
str = tmpbuf;
usr.bin/openssl/asn1pars.c
386
if (BIO_write(derout, str + cfg.offset,
usr.bin/openssl/asn1pars.c
393
if (!cfg.noout && !ASN1_parse_dump(out, &str[cfg.offset], cfg.length,
usr.bin/openssl/ca.c
150
static int check_time_format(const char *str);
usr.bin/openssl/ca.c
152
int make_revoked(X509_REVOKED *rev, const char *str);
usr.bin/openssl/ca.c
153
int old_entry_print(BIO *bp, ASN1_OBJECT *obj, ASN1_STRING *str);
usr.bin/openssl/ca.c
1715
ASN1_STRING *str, *str2;
usr.bin/openssl/ca.c
1756
str = X509_NAME_ENTRY_get_data(ne);
usr.bin/openssl/ca.c
1757
if (str == NULL)
usr.bin/openssl/ca.c
1769
(ASN1_STRING_type(str) != V_ASN1_IA5STRING)) {
usr.bin/openssl/ca.c
1775
if (!validate_octets(str)) {
usr.bin/openssl/ca.c
1782
old_entry_print(bio_err, obj, str);
usr.bin/openssl/ca.c
1797
str = str2 = NULL;
usr.bin/openssl/ca.c
1863
str = X509_NAME_ENTRY_get_data(tne);
usr.bin/openssl/ca.c
1864
if (str == NULL)
usr.bin/openssl/ca.c
1870
if (ASN1_STRING_cmp(str, str2) != 0)
usr.bin/openssl/ca.c
1878
((str == NULL) ?
usr.bin/openssl/ca.c
1879
"NULL" : (const char *) ASN1_STRING_get0_data(str)));
usr.bin/openssl/ca.c
2270
check_time_format(const char *str)
usr.bin/openssl/ca.c
2272
return ASN1_TIME_set_string(NULL, str);
usr.bin/openssl/ca.c
2570
char *other = NULL, *str;
usr.bin/openssl/ca.c
2628
if (asprintf(&str, "%s%s%s%s%s", ASN1_STRING_get0_data(revtm),
usr.bin/openssl/ca.c
2631
str = NULL;
usr.bin/openssl/ca.c
2635
return str;
usr.bin/openssl/ca.c
2646
make_revoked(X509_REVOKED *rev, const char *str)
usr.bin/openssl/ca.c
2657
i = unpack_revinfo(&revDate, &reason_code, &hold, &comp_time, str);
usr.bin/openssl/ca.c
2699
old_entry_print(BIO *bp, ASN1_OBJECT *obj, ASN1_STRING *str)
usr.bin/openssl/ca.c
2713
if (ASN1_STRING_type(str) == V_ASN1_PRINTABLESTRING)
usr.bin/openssl/ca.c
2715
else if (ASN1_STRING_type(str) == V_ASN1_T61STRING)
usr.bin/openssl/ca.c
2717
else if (ASN1_STRING_type(str) == V_ASN1_IA5STRING)
usr.bin/openssl/ca.c
2719
else if (ASN1_STRING_type(str) == V_ASN1_UNIVERSALSTRING)
usr.bin/openssl/ca.c
2722
BIO_printf(bp, "ASN.1 %2d:'", ASN1_STRING_type(str));
usr.bin/openssl/ca.c
2724
p = (const char *) ASN1_STRING_get0_data(str);
usr.bin/openssl/ca.c
2725
for (j = ASN1_STRING_length(str); j > 0; j--) {
usr.bin/openssl/ca.c
2742
ASN1_GENERALIZEDTIME **pinvtm, const char *str)
usr.bin/openssl/ca.c
2752
if ((tmp = strdup(str)) == NULL) {
usr.bin/openssl/cms.c
1904
char *str = sk_OPENSSL_STRING_value(ns, i);
usr.bin/openssl/cms.c
1905
gen = a2i_GENERAL_NAME(NULL, NULL, NULL, GEN_EMAIL, str, 0);
usr.bin/openssl/pkcs12.c
1024
hex_print(BIO *out, const ASN1_STRING *str)
usr.bin/openssl/pkcs12.c
1026
const unsigned char *buf = ASN1_STRING_get0_data(str);
usr.bin/openssl/pkcs12.c
1027
int len = ASN1_STRING_length(str);
usr.bin/openssl/pkcs12.c
1108
set_pbe(BIO *err, int *ppbe, const char *str)
usr.bin/openssl/pkcs12.c
1110
if (str == NULL)
usr.bin/openssl/pkcs12.c
1112
if (strcmp(str, "NONE") == 0) {
usr.bin/openssl/pkcs12.c
1116
*ppbe = OBJ_txt2nid(str);
usr.bin/openssl/pkcs12.c
1118
BIO_printf(bio_err, "Unknown PBE algorithm %s\n", str);
usr.bin/openssl/pkcs12.c
92
static int set_pbe(BIO *err, int *ppbe, const char *str);
usr.bin/openssl/req.c
122
static int check_end(const char *str, const char *end);
usr.bin/openssl/req.c
1572
check_end(const char *str, const char *end)
usr.bin/openssl/req.c
1577
slen = strlen(str);
usr.bin/openssl/req.c
1580
tmp = str + slen - elen;
usr.bin/openssl/s_cb.c
326
const char *str;
usr.bin/openssl/s_cb.c
332
str = "SSL_connect";
usr.bin/openssl/s_cb.c
334
str = "SSL_accept";
usr.bin/openssl/s_cb.c
336
str = "undefined";
usr.bin/openssl/s_cb.c
339
BIO_printf(bio_err, "%s:%s\n", str, SSL_state_string_long(s));
usr.bin/openssl/s_cb.c
341
str = (where & SSL_CB_READ) ? "read" : "write";
usr.bin/openssl/s_cb.c
342
BIO_printf(bio_err, "SSL3 alert %s:%s:%s\n", str,
usr.bin/openssl/s_cb.c
348
str, SSL_state_string_long(s));
usr.bin/openssl/s_cb.c
351
str, SSL_state_string_long(s));
usr.bin/openssl/s_server.c
1669
static const char *str =
usr.bin/openssl/s_server.c
1671
BIO_write(SSL_get_wbio(con), str,
usr.bin/openssl/s_server.c
1672
strlen(str));
usr.bin/openssl/s_server.c
1798
const char *str;
usr.bin/openssl/s_server.c
1833
str = SSL_CIPHER_get_name(SSL_get_current_cipher(con));
usr.bin/openssl/s_server.c
1834
BIO_printf(bio_s_out, "CIPHER is %s\n", (str != NULL) ? str : "(NONE)");
usr.bin/openssl/s_socket.c
281
extract_host_port(char *str, char **host_ptr, unsigned char *ip,
usr.bin/openssl/s_socket.c
286
h = str;
usr.bin/openssl/s_socket.c
287
p = strrchr(str, '/'); /* IPv6 host/port */
usr.bin/openssl/s_socket.c
289
p = strrchr(str, ':');
usr.bin/openssl/s_socket.c
307
extract_port(char *str, short *port_ptr)
usr.bin/openssl/s_socket.c
313
i = strtonum(str, 1, 65535, &errstr);
usr.bin/openssl/s_socket.c
317
s = getservbyname(str, "tcp");
usr.bin/openssl/s_socket.c
319
BIO_printf(bio_err, "getservbyname failure for %s\n", str);
usr.bin/openssl/speed.c
156
pkey_print_message(const char *str, const char *str2,
usr.bin/openssl/speed.c
2686
pkey_print_message(const char *str, const char *str2,
usr.bin/openssl/speed.c
2690
: "Doing %d bit %s %s for %ds: ", bits, str, str2, tm);
usr.bin/pkgconf/libpkgconf/pkg.c
58
str_has_suffix(const char *str, const char *suffix)
usr.bin/pkgconf/libpkgconf/pkg.c
60
size_t str_len = strlen(str);
usr.bin/pkgconf/libpkgconf/pkg.c
66
return !strncasecmp(str + str_len - suf_len, suffix, suf_len);
usr.bin/printf/printf.c
235
print_escape_str(const char *str)
usr.bin/printf/printf.c
240
while (*str) {
usr.bin/printf/printf.c
241
if (*str == '\\') {
usr.bin/printf/printf.c
242
str++;
usr.bin/printf/printf.c
248
if (*str == '0') {
usr.bin/printf/printf.c
249
str++;
usr.bin/printf/printf.c
250
for (c = 3, value = 0; c-- && isodigit(*str); str++) {
usr.bin/printf/printf.c
252
value += octtobin(*str);
usr.bin/printf/printf.c
255
str--;
usr.bin/printf/printf.c
256
} else if (*str == 'c') {
usr.bin/printf/printf.c
259
str--;
usr.bin/printf/printf.c
260
str += print_escape(str);
usr.bin/printf/printf.c
263
putchar(*str);
usr.bin/printf/printf.c
265
str++;
usr.bin/printf/printf.c
275
print_escape(const char *str)
usr.bin/printf/printf.c
277
const char *start = str;
usr.bin/printf/printf.c
281
str++;
usr.bin/printf/printf.c
283
switch (*str) {
usr.bin/printf/printf.c
286
for (c = 3; c-- && isodigit(*str); str++) {
usr.bin/printf/printf.c
288
value += octtobin(*str);
usr.bin/printf/printf.c
291
return str - start - 1;
usr.bin/printf/printf.c
295
str++;
usr.bin/printf/printf.c
296
for (c = 2; c-- && isxdigit((unsigned char)*str); str++) {
usr.bin/printf/printf.c
298
value += hextobin(*str);
usr.bin/printf/printf.c
301
return str - start - 1;
usr.bin/printf/printf.c
358
putchar(*str);
usr.bin/printf/printf.c
359
warnx("unknown escape sequence `\\%c'", *str);
usr.bin/printf/printf.c
367
mklong(const char *str, int ch)
usr.bin/printf/printf.c
373
len = strlen(str) + 2;
usr.bin/printf/printf.c
387
(void) memmove(copy, str, len - 3);
usr.bin/radioctl/radioctl.c
384
str_to_int(char *str, int optval)
usr.bin/radioctl/radioctl.c
388
if (str == NULL || *str == '\0')
usr.bin/radioctl/radioctl.c
392
val = (int)(1000 * atof(str));
usr.bin/radioctl/radioctl.c
394
val = (int)strtol(str, (char **)NULL, 10);
usr.bin/rcs/buf.c
197
buf_puts(BUF *b, const char *str)
usr.bin/rcs/buf.c
199
buf_append(b, str, strlen(str));
usr.bin/rcs/buf.h
53
void buf_puts(BUF *b, const char *str);
usr.bin/rcs/date.y
488
char *str;
usr.bin/rcs/date.y
491
(void)xasprintf(&str,
usr.bin/rcs/date.y
494
(void)xasprintf(&str, "%s: unexpected %s in date string",
usr.bin/rcs/date.y
497
warnx("%s", str);
usr.bin/rcs/date.y
498
free(str);
usr.bin/rcs/diff.c
1376
char *str;
usr.bin/rcs/diff.c
1379
i = vasprintf(&str, fmt, vap);
usr.bin/rcs/diff.c
1384
buf_append(diffbuf, str, strlen(str));
usr.bin/rcs/diff.c
1386
printf("%s", str);
usr.bin/rcs/diff.c
1387
free(str);
usr.bin/rcs/rcs.c
1453
rcs_strprint(const u_char *str, size_t slen, FILE *stream)
usr.bin/rcs/rcs.c
1460
ep = str + slen - 1;
usr.bin/rcs/rcs.c
1462
for (sp = str; sp <= ep;) {
usr.bin/rcs/rcsnum.c
138
const char *str;
usr.bin/rcs/rcsnum.c
140
str = rcsnum_itoa(nump->rn_id[i], tmp, sizeof(tmp));
usr.bin/rcs/rcsnum.c
142
strlcat(buf, str, blen) >= blen)
usr.bin/rcs/rcsnum.c
241
rcsnum_aton(const char *str, const char **ep, RCSNUM *nump)
usr.bin/rcs/rcsnum.c
253
for (sp = str;; sp++) {
usr.bin/rcs/rcsnum.c
306
if ((s = strrchr(str, '.')) != NULL) {
usr.bin/rcs/rcsnum.c
85
rcsnum_parse(const char *str)
usr.bin/rcs/rcsnum.c
91
if (rcsnum_aton(str, &ep, num) < 0 || *ep != '\0') {
usr.bin/rcs/rcsparse.c
1005
pdp->rp_value.str = xstrdup(pdp->rp_buf);
usr.bin/rcs/rcsparse.c
1013
pdp->rp_value.str = xstrdup(pdp->rp_buf);
usr.bin/rcs/rcsparse.c
1022
pdp->rp_value.str = xstrdup(pdp->rp_buf);
usr.bin/rcs/rcsparse.c
377
rfp->rf_desc = pdp->rp_value.str;
usr.bin/rcs/rcsparse.c
442
pdp->rp_delta->rd_author = pdp->rp_value.str;
usr.bin/rcs/rcsparse.c
462
pdp->rp_delta->rd_state = pdp->rp_value.str;
usr.bin/rcs/rcsparse.c
532
pdp->rp_delta->rd_commitid = pdp->rp_value.str;
usr.bin/rcs/rcsparse.c
584
pdp->rp_delta->rd_log = pdp->rp_value.str;
usr.bin/rcs/rcsparse.c
612
free(pdp->rp_value.str);
usr.bin/rcs/rcsparse.c
682
ap->ra_name = pdp->rp_value.str;
usr.bin/rcs/rcsparse.c
707
name = pdp->rp_value.str;
usr.bin/rcs/rcsparse.c
740
name = pdp->rp_value.str;
usr.bin/rcs/rcsparse.c
791
rfp->rf_comment = pdp->rp_value.str;
usr.bin/rcs/rcsparse.c
815
rfp->rf_expand = pdp->rp_value.str;
usr.bin/rcs/rcsparse.c
87
char *str;
usr.bin/rcs/rcsparse.c
875
pdp->rp_value.str = xstrdup(pdp->rp_buf);
usr.bin/rcs/rcsparse.c
997
pdp->rp_value.str = xstrdup(pdp->rp_buf);
usr.bin/rcs/rcsutil.c
280
rcs_setrevstr(char **str, char *new_str)
usr.bin/rcs/rcsutil.c
284
if (*str != NULL)
usr.bin/rcs/rcsutil.c
286
*str = new_str;
usr.bin/rcs/rcsutil.c
582
rcs_strsplit(const char *str, const char *sep)
usr.bin/rcs/rcsutil.c
588
cp = xstrdup(str);
usr.bin/rcs/rcsutil.c
590
av->str = cp;
usr.bin/rcs/rcsutil.c
611
free(av->str);
usr.bin/rcs/rcsutil.h
47
char *str;
usr.bin/rcs/xmalloc.c
64
xstrdup(const char *str)
usr.bin/rcs/xmalloc.c
68
if ((cp = strdup(str)) == NULL)
usr.bin/rdist/common.c
792
xstrdup(const char *str)
usr.bin/rdist/common.c
794
size_t len = strlen(str) + 1;
usr.bin/rdist/common.c
797
return (memcpy(nstr, str, len));
usr.bin/rdist/distopt.c
100
parsedistopts(char *str, opt_t *optptr, int doerrs)
usr.bin/rdist/distopt.c
107
string = xstrdup(str);
usr.bin/rdist/expand.c
165
xstrchr(u_char *str, int ch)
usr.bin/rdist/expand.c
169
for (cp = str; cp && *cp != CNULL; ++cp)
usr.bin/rdist/gram.y
398
int any(int c, char *str)
usr.bin/rdist/gram.y
400
while (*str)
usr.bin/rdist/gram.y
401
if (c == *str++)
usr.bin/rdist/message.c
181
setmsgtypes(struct msgfacility *msgfac, char *str)
usr.bin/rdist/message.c
199
strptr = str;
usr.bin/rpcgen/rpc_cout.c
733
upcase(str)
usr.bin/rpcgen/rpc_cout.c
734
char *str;
usr.bin/rpcgen/rpc_cout.c
738
ptr = malloc(strlen(str)+1);
usr.bin/rpcgen/rpc_cout.c
745
while (*str != '\0')
usr.bin/rpcgen/rpc_cout.c
746
*ptr++ = toupper((unsigned char)*str++);
usr.bin/rpcgen/rpc_parse.c
120
defp->def_name = tok.str;
usr.bin/rpcgen/rpc_parse.c
152
defp->def_name = tok.str;
usr.bin/rpcgen/rpc_parse.c
160
vlist->vers_name = tok.str;
usr.bin/rpcgen/rpc_parse.c
172
plist->proc_name = tok.str;
usr.bin/rpcgen/rpc_parse.c
212
plist->proc_num = tok.str;
usr.bin/rpcgen/rpc_parse.c
224
vlist->vers_num = tok.str;
usr.bin/rpcgen/rpc_parse.c
237
defp->def.pr.prog_num = tok.str;
usr.bin/rpcgen/rpc_parse.c
252
defp->def_name = tok.str;
usr.bin/rpcgen/rpc_parse.c
258
elist->name = tok.str;
usr.bin/rpcgen/rpc_parse.c
263
elist->assignment = tok.str;
usr.bin/rpcgen/rpc_parse.c
280
defp->def_name = tok.str;
usr.bin/rpcgen/rpc_parse.c
283
defp->def.co = tok.str;
usr.bin/rpcgen/rpc_parse.c
298
defp->def_name = tok.str;
usr.bin/rpcgen/rpc_parse.c
310
cases->case_name = tok.str;
usr.bin/rpcgen/rpc_parse.c
321
cases->case_name = tok.str;
usr.bin/rpcgen/rpc_parse.c
437
dec->name = tok.str;
usr.bin/rpcgen/rpc_parse.c
444
dec->array_max = tok.str;
usr.bin/rpcgen/rpc_parse.c
455
dec->array_max = tok.str;
usr.bin/rpcgen/rpc_parse.c
491
dec->name = (char *)strdup(tok.str);
usr.bin/rpcgen/rpc_parse.c
512
dec->name = (char *)strdup(tok.str);
usr.bin/rpcgen/rpc_parse.c
526
dec->array_max = tok.str;
usr.bin/rpcgen/rpc_parse.c
554
*typep = tok.str;
usr.bin/rpcgen/rpc_parse.c
559
*prefixp = tok.str;
usr.bin/rpcgen/rpc_parse.c
561
*typep = tok.str;
usr.bin/rpcgen/rpc_parse.c
582
*typep = tok.str;
usr.bin/rpcgen/rpc_parse.c
592
*typep = tok.str;
usr.bin/rpcgen/rpc_scan.c
263
findstrconst(&where, &tokp->str);
usr.bin/rpcgen/rpc_scan.c
267
findchrconst(&where, &tokp->str);
usr.bin/rpcgen/rpc_scan.c
282
findconst(&where, &tokp->str);
usr.bin/rpcgen/rpc_scan.c
313
findstrconst(str, val)
usr.bin/rpcgen/rpc_scan.c
314
char **str;
usr.bin/rpcgen/rpc_scan.c
320
p = *str;
usr.bin/rpcgen/rpc_scan.c
328
size = p - *str;
usr.bin/rpcgen/rpc_scan.c
332
(void) strncpy(*val, *str, size);
usr.bin/rpcgen/rpc_scan.c
334
*str = p;
usr.bin/rpcgen/rpc_scan.c
338
findchrconst(str, val)
usr.bin/rpcgen/rpc_scan.c
339
char **str;
usr.bin/rpcgen/rpc_scan.c
345
p = *str;
usr.bin/rpcgen/rpc_scan.c
353
size = p - *str;
usr.bin/rpcgen/rpc_scan.c
360
(void) strncpy(*val, *str, size);
usr.bin/rpcgen/rpc_scan.c
362
*str = p;
usr.bin/rpcgen/rpc_scan.c
366
findconst(str, val)
usr.bin/rpcgen/rpc_scan.c
367
char **str;
usr.bin/rpcgen/rpc_scan.c
373
p = *str;
usr.bin/rpcgen/rpc_scan.c
384
size = p - *str;
usr.bin/rpcgen/rpc_scan.c
388
(void) strncpy(*val, *str, size);
usr.bin/rpcgen/rpc_scan.c
390
*str = p;
usr.bin/rpcgen/rpc_scan.c
427
char *str;
usr.bin/rpcgen/rpc_scan.c
429
str = *mark;
usr.bin/rpcgen/rpc_scan.c
431
len = strlen(s->str);
usr.bin/rpcgen/rpc_scan.c
432
if (strncmp(str, s->str, len) == 0) {
usr.bin/rpcgen/rpc_scan.c
433
if (!isalnum((unsigned char)str[len]) &&
usr.bin/rpcgen/rpc_scan.c
434
str[len] != '_') {
usr.bin/rpcgen/rpc_scan.c
436
tokp->str = s->str;
usr.bin/rpcgen/rpc_scan.c
437
*mark = str + len;
usr.bin/rpcgen/rpc_scan.c
443
for (len = 0; isalnum((unsigned char)str[len]) || str[len] == '_';
usr.bin/rpcgen/rpc_scan.c
446
tokp->str = malloc(len + 1);
usr.bin/rpcgen/rpc_scan.c
447
if (tokp->str == NULL)
usr.bin/rpcgen/rpc_scan.c
449
(void) strncpy(tokp->str, str, len);
usr.bin/rpcgen/rpc_scan.c
450
tokp->str[len] = 0;
usr.bin/rpcgen/rpc_scan.c
451
*mark = str + len;
usr.bin/rpcgen/rpc_scan.h
93
char *str;
usr.bin/rpcgen/rpc_util.c
230
locase(str)
usr.bin/rpcgen/rpc_util.c
231
char *str;
usr.bin/rpcgen/rpc_util.c
237
while ((c = *str++))
usr.bin/rpcgen/rpc_util.c
392
return (sp->str);
usr.bin/sndioctl/sndioctl.c
152
char *str, *group, *func;
usr.bin/sndioctl/sndioctl.c
156
str = i->desc.node0.name;
usr.bin/sndioctl/sndioctl.c
159
strcmp(i->desc.node0.name, str) != 0 ||
usr.bin/sndioctl/sndioctl.c
172
char *str, *group, *func;
usr.bin/sndioctl/sndioctl.c
177
str = i->desc.node0.name;
usr.bin/sndioctl/sndioctl.c
181
strcmp(i->desc.node0.name, str) != 0 ||
usr.bin/sndioctl/sndioctl.c
224
char *str, *group, *func;
usr.bin/sndioctl/sndioctl.c
229
str = i->desc.node0.name;
usr.bin/sndioctl/sndioctl.c
233
strcmp(i->desc.node0.name, str) != 0 ||
usr.bin/sndioctl/sndioctl.c
584
parse_node(char **line, char *str, int *unit)
usr.bin/sndioctl/sndioctl.c
588
if (!parse_name(&p, str))
usr.bin/sndiod/dev.c
2121
char str[64];
usr.bin/sndiod/dev.c
2135
(ctl_fmt(str, sizeof(str), c), str));
usr.bin/sndiod/dev_sioctl.c
81
char str[64];
usr.bin/sndiod/dev_sioctl.c
93
(ctl_fmt(str, sizeof(str), c), str), val);
usr.bin/sndiod/file.c
316
char str[128];
usr.bin/sndiod/file.c
351
logx(4, "poll [%s]", (filelist_fmt(str, sizeof(str), pfds, 0), str));
usr.bin/sndiod/midi.c
243
char str[128];
usr.bin/sndiod/midi.c
250
(midiev_fmt(str, sizeof(str), msg, size), str));
usr.bin/sndiod/midi.c
396
char str[128];
usr.bin/sndiod/midi.c
417
(midiev_fmt(str, sizeof(str), odata, ocount), str));
usr.bin/sndiod/opt.c
322
char str[64];
usr.bin/sndiod/opt.c
398
logx(2, "%s: %s%s, vol = %d", o->name, (chans_fmt(str, sizeof(str),
usr.bin/sndiod/opt.c
399
o->mode, o->pmin, o->pmax, o->rmin, o->rmax), str),
usr.bin/sndiod/sndiod.c
214
getword(char *word, char **str)
usr.bin/sndiod/sndiod.c
216
char *p = *str;
usr.bin/sndiod/sndiod.c
225
*str = p;
usr.bin/sndiod/sndiod.c
512
const char *str;
usr.bin/sndiod/sndiod.c
564
unit = strtonum(optarg, 0, 15, &str);
usr.bin/sndiod/sndiod.c
565
if (str)
usr.bin/sndiod/sndiod.c
566
errx(1, "%s: unit number is %s", optarg, str);
usr.bin/sndiod/sndiod.c
593
rate = strtonum(optarg, RATE_MIN, RATE_MAX, &str);
usr.bin/sndiod/sndiod.c
594
if (str)
usr.bin/sndiod/sndiod.c
595
errx(1, "%s: rate is %s", optarg, str);
usr.bin/sndiod/sndiod.c
598
vol = strtonum(optarg, 0, MIDI_MAXCTL, &str);
usr.bin/sndiod/sndiod.c
599
if (str)
usr.bin/sndiod/sndiod.c
600
errx(1, "%s: volume is %s", optarg, str);
usr.bin/sndiod/sndiod.c
635
bufsz = strtonum(optarg, 1, RATE_MAX, &str);
usr.bin/sndiod/sndiod.c
636
if (str)
usr.bin/sndiod/sndiod.c
637
errx(1, "%s: buffer size is %s", optarg, str);
usr.bin/sndiod/sndiod.c
640
round = strtonum(optarg, 1, SHRT_MAX, &str);
usr.bin/sndiod/sndiod.c
641
if (str)
usr.bin/sndiod/sndiod.c
642
errx(1, "%s: block size is %s", optarg, str);
usr.bin/snmp/smi.c
246
char *str = NULL, *buf, *p;
usr.bin/snmp/smi.c
292
if (asprintf(&str,
usr.bin/snmp/smi.c
298
if (asprintf(&str,
usr.bin/snmp/smi.c
304
if (asprintf(&str,
usr.bin/snmp/smi.c
313
if (asprintf(&str, "%d:%02d:%02d.%02d",
usr.bin/snmp/smi.c
317
if (asprintf(&str,
usr.bin/snmp/smi.c
322
if (asprintf(&str,
usr.bin/snmp/smi.c
345
if (asprintf(&str, "%s%lld", print_hint ? hint : "", v) == -1)
usr.bin/snmp/smi.c
352
if ((str = calloc(1, slen)) == NULL)
usr.bin/snmp/smi.c
354
p = str;
usr.bin/snmp/smi.c
356
strlcpy(str, "BITS: ", slen);
usr.bin/snmp/smi.c
367
if (asprintf(&str, "%s%s",
usr.bin/snmp/smi.c
377
if (asprintf(&str, "%s%s",
usr.bin/snmp/smi.c
383
str = strdup("No Such Object available on this "
usr.bin/snmp/smi.c
386
str = strdup("No Such Instance currently "
usr.bin/snmp/smi.c
389
str = strdup("No more variables left in this "
usr.bin/snmp/smi.c
393
str = strdup("Unknown status at this OID");
usr.bin/snmp/smi.c
413
p = str = reallocarray(NULL, root->be_len + 2, len);
usr.bin/snmp/smi.c
418
*str++ = '"';
usr.bin/snmp/smi.c
433
*str++ = '\\';
usr.bin/snmp/smi.c
436
*str++ = isprint(buf[i]) ? buf[i] : '.';
usr.bin/snmp/smi.c
440
ret = snprintf(str, len, "%s%02hhX",
usr.bin/snmp/smi.c
446
str += ret;
usr.bin/snmp/smi.c
453
*str++ = '"';
usr.bin/snmp/smi.c
458
*str = '\0';
usr.bin/snmp/smi.c
459
str = NULL;
usr.bin/snmp/smi.c
460
if (asprintf(&str, "%s%s",
usr.bin/snmp/smi.c
476
str = strdup("");
usr.bin/snmp/smi.c
480
return (str);
usr.bin/snmp/smi.c
483
free(str);
usr.bin/snmp/smi.c
490
char *sp, *p, str[BUFSIZ];
usr.bin/snmp/smi.c
495
if (strlcpy(str, oidstr, sizeof(str)) >= sizeof(str))
usr.bin/snmp/smi.c
503
p = sp = str[0] == '.' ? str + 1 : str;
usr.bin/snmp/smi.c
550
char str[256];
usr.bin/snmp/smi.c
562
snprintf(str, sizeof(str), "%s", value->o_name);
usr.bin/snmp/smi.c
569
snprintf(str, sizeof(str), "%u", key.o_oid[i]);
usr.bin/snmp/smi.c
572
strlcat(buf, str, len);
usr.bin/snmp/snmpc.c
1365
snmpc_mbswidth(char *str)
usr.bin/snmp/snmpc.c
1372
for (i = 0; (len = mbtowc(&wc, &(str[i]), MB_CUR_MAX)) != 0; i += len) {
usr.bin/snmp/snmpc.c
1388
char *str = NULL, *tmpstr, *endstr;
usr.bin/snmp/snmpc.c
1431
if ((str = recallocarray(str, strl,
usr.bin/snmp/snmpc.c
1436
str[byte] |= 0x80 >> (lval % 8);
usr.bin/snmp/snmpc.c
1457
if ((str = malloc(strlen(argv[i + 2]))) == NULL)
usr.bin/snmp/snmpc.c
1474
str[strl++] = (unsigned char) lval;
usr.bin/snmp/snmpc.c
1503
if ((str = strdup(argv[i + 2])) == NULL)
usr.bin/snmp/snmpc.c
1508
&oid, str, strl)) == NULL)
usr.bin/snmp/snmpc.c
1510
free(str);
usr.bin/snmp/snmpc.c
1536
if ((str = malloc(strlen(argv[i + 2]))) == NULL)
usr.bin/snmp/snmpc.c
1553
str[strl++] = (unsigned char) lval;
usr.bin/sort/bwstring.c
1008
src = str->data.wstr;
usr.bin/sort/bwstring.c
1010
end = src + str->len;
usr.bin/sort/bwstring.c
1024
bws_setlen(str, newlen);
usr.bin/sort/bwstring.c
1026
return str;
usr.bin/sort/bwstring.c
1033
ignore_case(struct bwstring *str)
usr.bin/sort/bwstring.c
1038
s = str->data.cstr;
usr.bin/sort/bwstring.c
1039
end = s + str->len;
usr.bin/sort/bwstring.c
1048
s = str->data.wstr;
usr.bin/sort/bwstring.c
1049
end = s + str->len;
usr.bin/sort/bwstring.c
1056
return str;
usr.bin/sort/bwstring.c
229
bwssbdup(const wchar_t *str, size_t len)
usr.bin/sort/bwstring.c
231
if (str == NULL)
usr.bin/sort/bwstring.c
241
ret->data.cstr[i] = (unsigned char) str[i];
usr.bin/sort/bwstring.c
243
memcpy(ret->data.wstr, str, SIZEOF_WCHAR_STRING(len));
usr.bin/sort/bwstring.c
253
bwscsbdup(const unsigned char *str, size_t len)
usr.bin/sort/bwstring.c
259
if (str) {
usr.bin/sort/bwstring.c
261
memcpy(ret->data.cstr, str, len);
usr.bin/sort/bwstring.c
269
s = (const char *) str;
usr.bin/sort/bwstring.c
874
ignore_leading_blanks(struct bwstring *str)
usr.bin/sort/bwstring.c
879
src = str->data.cstr;
usr.bin/sort/bwstring.c
881
end = src + str->len;
usr.bin/sort/bwstring.c
889
newlen = BWSLEN(str) - (src - dst);
usr.bin/sort/bwstring.c
896
bws_setlen(str, newlen);
usr.bin/sort/bwstring.c
901
src = str->data.wstr;
usr.bin/sort/bwstring.c
903
end = src + str->len;
usr.bin/sort/bwstring.c
910
size_t newlen = BWSLEN(str) - (src - dst);
usr.bin/sort/bwstring.c
917
bws_setlen(str, newlen);
usr.bin/sort/bwstring.c
921
return str;
usr.bin/sort/bwstring.c
928
ignore_nonprinting(struct bwstring *str)
usr.bin/sort/bwstring.c
930
size_t newlen = str->len;
usr.bin/sort/bwstring.c
936
src = str->data.cstr;
usr.bin/sort/bwstring.c
938
end = src + str->len;
usr.bin/sort/bwstring.c
955
src = str->data.wstr;
usr.bin/sort/bwstring.c
957
end = src + str->len;
usr.bin/sort/bwstring.c
971
bws_setlen(str, newlen);
usr.bin/sort/bwstring.c
973
return str;
usr.bin/sort/bwstring.c
981
dictionary_order(struct bwstring *str)
usr.bin/sort/bwstring.c
983
size_t newlen = str->len;
usr.bin/sort/bwstring.c
989
src = str->data.cstr;
usr.bin/sort/bwstring.c
991
end = src + str->len;
usr.bin/sort/bwstring.h
75
struct bwstring *ignore_leading_blanks(struct bwstring *str);
usr.bin/sort/bwstring.h
76
struct bwstring *ignore_nonprinting(struct bwstring *str);
usr.bin/sort/bwstring.h
77
struct bwstring *dictionary_order(struct bwstring *str);
usr.bin/sort/bwstring.h
78
struct bwstring *ignore_case(struct bwstring *str);
usr.bin/sort/bwstring.h
84
struct bwstring *bwssbdup(const wchar_t *str, size_t size);
usr.bin/sort/bwstring.h
85
struct bwstring *bwscsbdup(const unsigned char *str, size_t size);
usr.bin/sort/coll.c
145
if (si->str)
usr.bin/sort/coll.c
146
ret += bws_memsize(si->str);
usr.bin/sort/coll.c
152
if (kv->k != si->str)
usr.bin/sort/coll.c
165
preproc(si->str, &(si->ka));
usr.bin/sort/coll.c
173
sort_list_item_set(struct sort_list_item *si, struct bwstring *str)
usr.bin/sort/coll.c
176
clean_keys_array(si->str, &(si->ka));
usr.bin/sort/coll.c
177
if (si->str) {
usr.bin/sort/coll.c
178
if (si->str == str) {
usr.bin/sort/coll.c
182
bwsfree(si->str);
usr.bin/sort/coll.c
183
si->str = NULL;
usr.bin/sort/coll.c
186
si->str = str;
usr.bin/sort/coll.c
198
clean_keys_array(si->str, &(si->ka));
usr.bin/sort/coll.c
199
if (si->str) {
usr.bin/sort/coll.c
200
bwsfree(si->str);
usr.bin/sort/coll.c
201
si->str = NULL;
usr.bin/sort/coll.c
517
bwsprintf(stdout, (*ss2)->str, ", s2=<", ">");
usr.bin/sort/coll.c
529
ret = top_level_str_coll(str1, ((*ss2)->str));
usr.bin/sort/coll.c
554
bwsprintf(stdout, ((*ss1)->str), "; s1=<", ">");
usr.bin/sort/coll.c
555
bwsprintf(stdout, ((*ss2)->str), ", s2=<", ">");
usr.bin/sort/coll.c
563
ret = top_level_str_coll(((*ss1)->str), ((*ss2)->str));
usr.bin/sort/coll.c
633
return top_level_str_coll(((*ss1)->str), ((*ss2)->str));
usr.bin/sort/coll.h
114
struct bwstring *str;
usr.bin/sort/coll.h
136
void sort_list_item_set(struct sort_list_item *si, struct bwstring *str);
usr.bin/sort/file.c
257
sort_list_add(struct sort_list *l, struct bwstring *str)
usr.bin/sort/file.c
271
sort_list_item_set(l->list[indx], str);
usr.bin/sort/file.c
321
bwsfwrite(l->list[i]->str, f,
usr.bin/sort/file.c
330
bwsfwrite(item->str, f, sort_opts_vals.zflag);
usr.bin/sort/file.c
899
struct bwstring *str;
usr.bin/sort/file.c
909
if ((lp->str == NULL) || (str_list_coll(lp->str, &(fh->si)))) {
usr.bin/sort/file.c
910
bwsfwrite(fh->si->str, f_out, sort_opts_vals.zflag);
usr.bin/sort/file.c
911
if (lp->str)
usr.bin/sort/file.c
912
bwsfree(lp->str);
usr.bin/sort/file.c
913
lp->str = bwsdup(fh->si->str);
usr.bin/sort/file.c
916
bwsfwrite(fh->si->str, f_out, sort_opts_vals.zflag);
usr.bin/sort/file.c
969
if (lp.str)
usr.bin/sort/file.c
970
bwsfree(lp.str);
usr.bin/sort/file.h
117
void sort_list_add(struct sort_list *l, struct bwstring *str);
usr.bin/sort/mem.c
83
sort_strdup(const char *str)
usr.bin/sort/mem.c
87
if ((dup = strdup(str)) == NULL)
usr.bin/ssh/readconf.c
1127
char *str, **charptr, *endofnumber, *keyword, *arg, *arg2, *p;
usr.bin/ssh/readconf.c
1162
str = line;
usr.bin/ssh/readconf.c
1164
if ((keyword = strdelim(&str)) == NULL)
usr.bin/ssh/readconf.c
1168
keyword = strdelim(&str);
usr.bin/ssh/readconf.c
1175
if (str != NULL)
usr.bin/ssh/readconf.c
1176
str += strspn(str, WHITESPACE);
usr.bin/ssh/readconf.c
1177
if (str == NULL || *str == '\0') {
usr.bin/ssh/readconf.c
1184
if (argv_split(str, &oac, &oav, 1) != 0) {
usr.bin/ssh/readconf.c
1520
if (str == NULL) {
usr.bin/ssh/readconf.c
1525
len = strspn(str, WHITESPACE "=");
usr.bin/ssh/readconf.c
1527
*charptr = xstrdup(str + len);
usr.bin/ssh/readconf.c
1532
if (str == NULL) {
usr.bin/ssh/readconf.c
1537
len = strspn(str, WHITESPACE "=");
usr.bin/ssh/readconf.c
1539
if (parse_jump(str + len, options, cmdline, *activep) == -1) {
usr.bin/ssh/readconf.c
1541
filename, linenum, str + len);
usr.bin/ssh/readconf.c
1858
value = match_cfg_line(options, str, &ac, &av, pw, host,
usr.bin/ssh/readconf.c
2521
if (str == NULL || *str == '\0')
usr.bin/ssh/readconf.c
2524
len = strspn(str, WHITESPACE);
usr.bin/ssh/readconf.c
2525
if (strchr(str + len, '\r') != NULL) {
usr.bin/ssh/readconf.c
2534
if (strcasecmp(str + len, "none") == 0)
usr.bin/ssh/readconf.c
2537
options->version_addendum = xstrdup(str + len);
usr.bin/ssh/scp.c
1633
#define SCREWUP(str) { why = str; goto screwup; }
usr.bin/ssh/servconf.c
1268
char *str, ***chararrayptr, **charptr, *arg, *arg2, *p, *keyword;
usr.bin/ssh/servconf.c
1297
str = line;
usr.bin/ssh/servconf.c
1298
if ((keyword = strdelim(&str)) == NULL)
usr.bin/ssh/servconf.c
1302
keyword = strdelim(&str);
usr.bin/ssh/servconf.c
1305
if (str == NULL || *str == '\0') {
usr.bin/ssh/servconf.c
1314
if (argv_split(str, &oac, &oav, 1) != 0) {
usr.bin/ssh/servconf.c
1326
debug3("%s:%d setting %s %s", filename, linenum, keyword, str);
usr.bin/ssh/servconf.c
2349
value = match_cfg_line(str, &ac, &av, linenum,
usr.bin/ssh/servconf.c
2423
if (str == NULL || *str == '\0')
usr.bin/ssh/servconf.c
2426
len = strspn(str, WHITESPACE);
usr.bin/ssh/servconf.c
2428
options->adm_forced_command = xstrdup(str + len);
usr.bin/ssh/servconf.c
2500
if (str == NULL || *str == '\0')
usr.bin/ssh/servconf.c
2503
len = strspn(str, WHITESPACE);
usr.bin/ssh/servconf.c
2504
if (strchr(str + len, '\r') != NULL) {
usr.bin/ssh/servconf.c
2513
if (strcasecmp(str + len, "none") == 0)
usr.bin/ssh/servconf.c
2516
options->version_addendum = xstrdup(str + len);
usr.bin/ssh/servconf.c
2524
len = strspn(str, WHITESPACE);
usr.bin/ssh/servconf.c
2525
if (str[len] != '/' && strcasecmp(str + len, "none") != 0) {
usr.bin/ssh/servconf.c
2530
*charptr = xstrdup(str + len);
usr.bin/ssh/sftp-server.c
275
#define PAPPEND(str) { \
usr.bin/ssh/sftp-server.c
278
strlcat(ret, str, sizeof(ret)); \
usr.bin/ssh/ssh-keyscan.c
150
xstrsep(char **str, const char *delim)
usr.bin/ssh/ssh-keyscan.c
154
if (!**str)
usr.bin/ssh/ssh-keyscan.c
157
s = *str;
usr.bin/ssh/ssh-keyscan.c
162
*str = e;
usr.bin/ssh/ssh.c
195
default_client_percent_expand(const char *str,
usr.bin/ssh/ssh.c
198
return percent_expand(str,
usr.bin/ssh/ssh.c
209
default_client_percent_dollar_expand(const char *str,
usr.bin/ssh/ssh.c
214
ret = percent_dollar_expand(str,
usr.bin/ssh/utf8.c
202
*str = dst;
usr.bin/ssh/utf8.c
222
*str = src;
usr.bin/ssh/utf8.c
225
*str = NULL;
usr.bin/ssh/utf8.c
231
snmprintf(char *str, size_t sz, int *wp, const char *fmt, ...)
usr.bin/ssh/utf8.c
241
(void)strlcpy(str, cp, sz);
usr.bin/ssh/utf8.c
244
*str = '\0';
usr.bin/ssh/utf8.c
270
char *str = NULL;
usr.bin/ssh/utf8.c
273
if ((ret = vasnmprintf(&str, INT_MAX, NULL, fmt, ap)) < 0) {
usr.bin/ssh/utf8.c
274
free(str);
usr.bin/ssh/utf8.c
277
if (fputs(str, stream) == EOF)
usr.bin/ssh/utf8.c
279
free(str);
usr.bin/ssh/utf8.c
95
vasnmprintf(char **str, size_t maxsz, int *wp, const char *fmt, va_list ap)
usr.bin/ssh/xmalloc.c
81
xstrdup(const char *str)
usr.bin/ssh/xmalloc.c
86
len = strlen(str) + 1;
usr.bin/ssh/xmalloc.c
88
return memcpy(cp, str, len);
usr.bin/systat/engine.c
214
print_str(int len, const char *str)
usr.bin/systat/engine.c
223
bcopy(str, &linebuf[linepos], length);
usr.bin/systat/engine.c
226
addnstr(str, len);
usr.bin/systat/engine.c
264
print_fld_str(field_def *fld, const char *str)
usr.bin/systat/engine.c
269
if (str == NULL || fld == NULL)
usr.bin/systat/engine.c
275
len = strlen(str);
usr.bin/systat/engine.c
279
print_str(fld->width, str);
usr.bin/systat/engine.c
289
if ((cpos = strchr(str, ':')) == NULL) {
usr.bin/systat/engine.c
292
offset = (fld->width / 2) - (cpos - str);
usr.bin/systat/engine.c
304
print_str(len, str);
usr.bin/tic/dump_entry.c
408
return is_termcap(str);
usr.bin/timeout/timeout.c
101
parse_signal(const char *str)
usr.bin/timeout/timeout.c
106
if (isalpha((unsigned char)*str)) {
usr.bin/timeout/timeout.c
109
if (strncasecmp(str, "SIG", 3) == 0)
usr.bin/timeout/timeout.c
110
str += 3;
usr.bin/timeout/timeout.c
112
if (strcasecmp(str, sys_signame[i]) == 0)
usr.bin/timeout/timeout.c
118
sig = strtonum(str, 1, NSIG, &errstr);
usr.bin/timeout/timeout.c
120
errx(1, "signal %s %s", str, errstr);
usr.bin/tmux/attributes.c
105
str += end + strspn(str + end, delimiters);
usr.bin/tmux/attributes.c
106
} while (*str != '\0');
usr.bin/tmux/attributes.c
57
attributes_fromstring(const char *str)
usr.bin/tmux/attributes.c
84
if (*str == '\0' || strcspn(str, delimiters) == 0)
usr.bin/tmux/attributes.c
86
if (strchr(delimiters, str[strlen(str) - 1]) != NULL)
usr.bin/tmux/attributes.c
89
if (strcasecmp(str, "default") == 0 || strcasecmp(str, "none") == 0)
usr.bin/tmux/attributes.c
94
end = strcspn(str, delimiters);
usr.bin/tmux/attributes.c
98
if (strncasecmp(str, table[i].name, end) == 0) {
usr.bin/tmux/input.c
1078
free(ictx->param_list[i].str);
usr.bin/tmux/input.c
1093
ip->str = xstrdup(out);
usr.bin/tmux/input.c
1111
log_debug("parameter %u: string %s", i, ip->str);
usr.bin/tmux/input.c
2206
char *s = ictx->param_list[i].str, *copy, *ptr, *out;
usr.bin/tmux/input.c
893
free(ictx->param_list[i].str);
usr.bin/tmux/input.c
94
char *str;
usr.bin/tmux/screen-write.c
2279
u_char *str, u_int len)
usr.bin/tmux/screen-write.c
2284
ttyctx.ptr = str;
usr.bin/tmux/screen-write.c
2293
screen_write_rawstring(struct screen_write_ctx *ctx, u_char *str, u_int len,
usr.bin/tmux/screen-write.c
2299
ttyctx.ptr = str;
usr.bin/tmux/window-copy.c
3813
const char *str)
usr.bin/tmux/window-copy.c
3852
len = strlen(str);
usr.bin/tmux/window-copy.c
3858
if (str[pos] == '\0') {
usr.bin/tmux/window-copy.c
3865
if (str[pos] != *d) {
usr.bin/tmux/window-copy.c
3873
if (memcmp(str + pos, d, dlen) != 0) {
usr.bin/tmux/window-copy.c
4105
const char *str = data->searchstr;
usr.bin/tmux/window-copy.c
4110
if (regex && str[strcspn(str, "^$*+()?[].\\")] == '\0')
usr.bin/tmux/window-copy.c
4123
visible_only = (strcmp(wp->searchstr, str) == 0);
usr.bin/tmux/window-copy.c
4127
wp->searchstr = xstrdup(str);
usr.bin/tmux/window-copy.c
4133
if ((ssx = screen_write_strlen("%s", str)) == 0)
usr.bin/tmux/window-copy.c
4137
screen_write_nputs(&ctx, -1, &grid_default_cell, "%s", str);
usr.bin/tmux/window-copy.c
4141
cis = window_copy_is_lowercase(str);
usr.bin/tmux/xmalloc.c
103
if ((cp = strndup(str, maxlen)) == NULL)
usr.bin/tmux/xmalloc.c
135
xsnprintf(char *str, size_t len, const char *fmt, ...)
usr.bin/tmux/xmalloc.c
141
i = xvsnprintf(str, len, fmt, ap);
usr.bin/tmux/xmalloc.c
148
xvsnprintf(char *str, size_t len, const char *fmt, va_list ap)
usr.bin/tmux/xmalloc.c
155
i = vsnprintf(str, len, fmt, ap);
usr.bin/tmux/xmalloc.c
89
xstrdup(const char *str)
usr.bin/tmux/xmalloc.c
93
if ((cp = strdup(str)) == NULL)
usr.bin/tmux/xmalloc.c
99
xstrndup(const char *str, size_t maxlen)
usr.bin/top/commands.c
102
while ((ch = *str++) != '\0') {
usr.bin/top/commands.c
211
str_adderr(char *str, size_t len, int err)
usr.bin/top/commands.c
218
if ((msglen = strlcat(str, ": ", len)) >= len)
usr.bin/top/commands.c
221
return (strlcat(str, msg, len));
usr.bin/top/commands.c
230
str_addarg(char *str, size_t len, char *arg, int first)
usr.bin/top/commands.c
235
if ((msglen = strlcat(str, ", ", len)) >= len)
usr.bin/top/commands.c
238
return (strlcat(str, arg, len));
usr.bin/top/commands.c
271
kill_procs(char *str)
usr.bin/top/commands.c
287
while (isspace((unsigned char)*str))
usr.bin/top/commands.c
288
str++;
usr.bin/top/commands.c
290
if (*str == '-') {
usr.bin/top/commands.c
291
str++;
usr.bin/top/commands.c
294
if ((nptr = next_field(str)) == NULL)
usr.bin/top/commands.c
297
if (isdigit((unsigned char)*str)) {
usr.bin/top/commands.c
298
(void) scan_arg(str, &signum, tmp);
usr.bin/top/commands.c
305
str) == 0)
usr.bin/top/commands.c
314
str = nptr;
usr.bin/top/commands.c
319
if (scan_arg(str, &procnum, nptr) == -1) {
usr.bin/top/commands.c
332
} while ((str = next_field(str)) != NULL);
usr.bin/top/commands.c
343
renice_procs(char *str)
usr.bin/top/commands.c
355
while (isspace((unsigned char)*str))
usr.bin/top/commands.c
356
str++;
usr.bin/top/commands.c
359
if ((negate = (*str == '-')) != 0) {
usr.bin/top/commands.c
361
str++;
usr.bin/top/commands.c
366
procnum = scan_arg(str, &prio, nptr);
usr.bin/top/commands.c
379
if ((str = next_field(str)) == NULL)
usr.bin/top/commands.c
384
if (scan_arg(str, &procnum, nptr) == -1) {
usr.bin/top/commands.c
393
} while ((str = next_field(str)) != NULL);
usr.bin/top/commands.c
67
next_field(char *str)
usr.bin/top/commands.c
72
span = strcspn(str, spaces);
usr.bin/top/commands.c
73
if (span == strlen(str))
usr.bin/top/commands.c
76
str += span;
usr.bin/top/commands.c
77
*str++ = '\0';
usr.bin/top/commands.c
79
while (strcspn(str, spaces) == 0)
usr.bin/top/commands.c
80
str++;
usr.bin/top/commands.c
82
if (*str == '\0')
usr.bin/top/commands.c
85
return(str);
usr.bin/top/commands.c
92
scan_arg(char *str, int *intp, char *nptr)
usr.bin/top/commands.c
99
if (*str == '\0')
usr.bin/top/display.c
770
printable(char *str)
usr.bin/top/display.c
774
ptr = str;
usr.bin/top/display.c
780
return (str);
usr.bin/top/utils.c
49
atoiwi(char *str)
usr.bin/top/utils.c
55
len = strlen(str);
usr.bin/top/utils.c
57
if (strncmp(str, "infinity", len) == 0 ||
usr.bin/top/utils.c
58
strncmp(str, "all", len) == 0 ||
usr.bin/top/utils.c
59
strncmp(str, "maximum", len) == 0) {
usr.bin/top/utils.c
62
i = (int)strtonum(str, 0, INT_MAX, &errstr);
usr.bin/tr/extern.h
42
unsigned char *str; /* user's string */
usr.bin/tr/str.c
116
switch (s->str[1]) {
usr.bin/tr/str.c
118
if ((p = strstr((char *)s->str + 2, ":]")) == NULL)
usr.bin/tr/str.c
121
s->str += 2;
usr.bin/tr/str.c
123
s->str = (unsigned char *)p + 2;
usr.bin/tr/str.c
126
if ((p = strstr((char *)s->str + 2, "=]")) == NULL)
usr.bin/tr/str.c
128
s->str += 2;
usr.bin/tr/str.c
132
if ((p = strpbrk((char *)s->str + 2, "*]")) == NULL)
usr.bin/tr/str.c
136
s->str += 1;
usr.bin/tr/str.c
171
tmp.name = (char *)s->str;
usr.bin/tr/str.c
174
errx(1, "unknown class %s", s->str);
usr.bin/tr/str.c
216
if (*s->str == '\\') {
usr.bin/tr/str.c
218
if (*s->str != '=')
usr.bin/tr/str.c
221
s->equiv[0] = s->str[0];
usr.bin/tr/str.c
222
if (s->str[1] != '=')
usr.bin/tr/str.c
225
s->str += 2;
usr.bin/tr/str.c
237
savestart = s->str;
usr.bin/tr/str.c
238
stopval = *++s->str == '\\' ? backslash(s) : *s->str++;
usr.bin/tr/str.c
240
s->str = savestart;
usr.bin/tr/str.c
257
if (*s->str == '\\')
usr.bin/tr/str.c
260
s->lastch = *s->str++;
usr.bin/tr/str.c
261
if (*s->str != '*')
usr.bin/tr/str.c
264
switch (*++s->str) {
usr.bin/tr/str.c
270
++s->str;
usr.bin/tr/str.c
273
if (isdigit(*s->str)) {
usr.bin/tr/str.c
274
s->cnt = strtol((char *)s->str, &ep, 0);
usr.bin/tr/str.c
276
s->str = (unsigned char *)ep + 1;
usr.bin/tr/str.c
297
assert(*s->str == '\\');
usr.bin/tr/str.c
298
s->str++;
usr.bin/tr/str.c
301
if (*s->str == '\0') {
usr.bin/tr/str.c
308
if (s->str[i] < '0' || '7' < s->str[i])
usr.bin/tr/str.c
310
val = val * 8 + s->str[i] - '0';
usr.bin/tr/str.c
315
s->str += i;
usr.bin/tr/str.c
319
ch = *s->str++;
usr.bin/tr/str.c
65
switch (ch = *s->str) {
usr.bin/tr/str.c
77
++s->str;
usr.bin/tr/str.c
83
if (s->str[0] == '-' && genrange(s))
usr.bin/tr/tr.c
176
s1.str = (unsigned char *)argv[0];
usr.bin/tr/tr.c
177
s2.str = (unsigned char *)argv[1];
usr.bin/tr/tr.c
219
setup(int *table, char *arg, STR *str, int cflag)
usr.bin/tr/tr.c
223
str->str = (unsigned char *)arg;
usr.bin/tr/tr.c
225
while (next(str))
usr.bin/tr/tr.c
226
table[str->lastch] = 1;
usr.bin/tsort/tsort.c
308
char *str;
usr.bin/tsort/tsort.c
313
while ((str = fgetln(f, &size)) != NULL) {
usr.bin/tsort/tsort.c
316
sentinel = str + size;
usr.bin/tsort/tsort.c
320
while (str < sentinel &&
usr.bin/tsort/tsort.c
321
isspace((unsigned char)*str))
usr.bin/tsort/tsort.c
322
str++;
usr.bin/tsort/tsort.c
323
if (str == sentinel)
usr.bin/tsort/tsort.c
325
for (e = str;
usr.bin/tsort/tsort.c
329
a = node_lookup(h, str, e);
usr.bin/tsort/tsort.c
335
b = node_lookup(h, str, e);
usr.bin/tsort/tsort.c
345
str = e;
usr.bin/tsort/tsort.c
359
char *str;
usr.bin/tsort/tsort.c
362
while ((str = fgetln(f, &size)) != NULL) {
usr.bin/tsort/tsort.c
365
sentinel = str + size;
usr.bin/tsort/tsort.c
370
while (str < sentinel && isspace((unsigned char)*str))
usr.bin/tsort/tsort.c
371
str++;
usr.bin/tsort/tsort.c
372
if (str == sentinel)
usr.bin/tsort/tsort.c
374
for (e = str;
usr.bin/tsort/tsort.c
377
a = node_lookup(h, str, e);
usr.bin/tsort/tsort.c
385
str = e;
usr.bin/unifdef/unifdef.c
1068
for (op = ops->op; op->str != NULL; op++)
usr.bin/unifdef/unifdef.c
1069
if (strncmp(cp, op->str, strlen(op->str)) == 0)
usr.bin/unifdef/unifdef.c
1071
if (op->str == NULL)
usr.bin/unifdef/unifdef.c
1073
cp += strlen(op->str);
usr.bin/unifdef/unifdef.c
1074
debug("eval%d %s", prec(ops), op->str);
usr.bin/unifdef/unifdef.c
1347
const char *str;
usr.bin/unifdef/unifdef.c
1350
str = *strp;
usr.bin/unifdef/unifdef.c
1351
*strp = skipsym(str);
usr.bin/unifdef/unifdef.c
1353
if (*strp == str)
usr.bin/unifdef/unifdef.c
1360
(int)(*strp-str), str,
usr.bin/unifdef/unifdef.c
1366
if (matchsym(symname[symind], str) != NULL) {
usr.bin/unifdef/unifdef.c
935
const char *str;
usr.bin/uniq/uniq.c
180
show(const char *str)
usr.bin/uniq/uniq.c
184
printf("%4llu %s\n", repeats + 1, str);
usr.bin/uniq/uniq.c
186
printf("%s\n", str);
usr.bin/uniq/uniq.c
191
skip(char *str)
usr.bin/uniq/uniq.c
198
for (nfields = numfields; nfields && *str; nfields--) {
usr.bin/uniq/uniq.c
200
for (field_started = 0; *str != '\0'; str += len) {
usr.bin/uniq/uniq.c
201
if ((len = mbtowc(&wc, str, MB_CUR_MAX)) == -1) {
usr.bin/uniq/uniq.c
215
for (nchars = numchars; nchars-- && *str != '\0'; str += len)
usr.bin/uniq/uniq.c
216
if ((len = mblen(str, MB_CUR_MAX)) == -1)
usr.bin/uniq/uniq.c
219
return (str);
usr.bin/units/units.c
83
dupstr(char *str)
usr.bin/units/units.c
87
ret = strdup(str);
usr.bin/vacation/vacation.c
319
nsearch(char *name, char *str)
usr.bin/vacation/vacation.c
323
for (len = strlen(name); *str; ++str)
usr.bin/vacation/vacation.c
324
if (!strncasecmp(name, str, len))
usr.bin/vi/cl/cl_funcs.c
40
cl_addstr(SCR *sp, const char *str, size_t len)
usr.bin/vi/cl/cl_funcs.c
57
if (addnstr(str, len) == ERR)
usr.bin/vi/cl/cl_screen.c
531
cl_putenv(char *name, char *str, u_long value)
usr.bin/vi/cl/cl_screen.c
535
if (str == NULL) {
usr.bin/vi/cl/cl_screen.c
539
return (setenv(name, str, 1));
usr.bin/vi/cl/cl_term.c
204
cl_optchange(SCR *sp, int opt, char *str, u_long *valp)
usr.bin/vi/common/msg.c
194
msgq_str(SCR *sp, mtype_t mtype, char *str, char *fmt)
usr.bin/vi/common/msg.c
199
if (str == NULL) {
usr.bin/vi/common/msg.c
205
p = msg_print(sp, str, &nf);
usr.bin/vi/common/options.c
272
#define OI(indx, str) { \
usr.bin/vi/common/options.c
273
(void)strlcpy(b1, (str), sizeof(b1)); \
usr.bin/vi/common/options.c
698
o_set(SCR *sp, int opt, u_int flags, char *str, u_long val)
usr.bin/vi/common/options.c
707
if (LF_ISSET(OS_STRDUP) && (str = strdup(str)) == NULL) {
usr.bin/vi/common/options.c
715
if (!LF_ISSET(OS_NOFREE) && op->o_def.str != NULL)
usr.bin/vi/common/options.c
716
free(op->o_def.str);
usr.bin/vi/common/options.c
717
op->o_def.str = str;
usr.bin/vi/common/options.c
722
if (!LF_ISSET(OS_NOFREE) && op->o_cur.str != NULL)
usr.bin/vi/common/options.c
723
free(op->o_cur.str);
usr.bin/vi/common/options.c
724
op->o_cur.str = str;
usr.bin/vi/common/options.h
37
#define OG_STR(gp, o) ((gp)->opts[(o)].o_cur.str)
usr.bin/vi/common/options.h
41
#define OG_D_STR(gp, o) ((gp)->opts[(o)].o_def.str)
usr.bin/vi/common/options.h
56
char *str; /* String. */
usr.bin/vi/common/options.h
60
#define O_STR(sp, o) O_V((sp), (o), o_cur.str)
usr.bin/vi/common/options.h
66
char *str; /* String. */
usr.bin/vi/common/options.h
70
#define O_D_STR(sp, o) O_V((sp), (o), o_def.str)
usr.bin/vi/common/options_f.c
127
f_paragraph(SCR *sp, OPTION *op, char *str, u_long *valp)
usr.bin/vi/common/options_f.c
129
if (strlen(str) & 1) {
usr.bin/vi/common/options_f.c
141
f_print(SCR *sp, OPTION *op, char *str, u_long *valp)
usr.bin/vi/common/options_f.c
155
f_readonly(SCR *sp, OPTION *op, char *str, u_long *valp)
usr.bin/vi/common/options_f.c
172
f_recompile(SCR *sp, OPTION *op, char *str, u_long *valp)
usr.bin/vi/common/options_f.c
189
f_reformat(SCR *sp, OPTION *op, char *str, u_long *valp)
usr.bin/vi/common/options_f.c
199
f_section(SCR *sp, OPTION *op, char *str, u_long *valp)
usr.bin/vi/common/options_f.c
201
if (strlen(str) & 1) {
usr.bin/vi/common/options_f.c
213
f_secure(SCR *sp, OPTION *op, char *str, u_long *valp)
usr.bin/vi/common/options_f.c
226
f_ttywerase(SCR *sp, OPTION *op, char *str, u_long *valp)
usr.bin/vi/common/options_f.c
237
f_w300(SCR *sp, OPTION *op, char *str, u_long *valp)
usr.bin/vi/common/options_f.c
247
return (f_window(sp, op, str, valp));
usr.bin/vi/common/options_f.c
254
f_w1200(SCR *sp, OPTION *op, char *str, u_long *valp)
usr.bin/vi/common/options_f.c
264
return (f_window(sp, op, str, valp));
usr.bin/vi/common/options_f.c
271
f_w9600(SCR *sp, OPTION *op, char *str, u_long *valp)
usr.bin/vi/common/options_f.c
281
return (f_window(sp, op, str, valp));
usr.bin/vi/common/options_f.c
288
f_window(SCR *sp, OPTION *op, char *str, u_long *valp)
usr.bin/vi/common/options_f.c
33
f_altwerase(SCR *sp, OPTION *op, char *str, u_long *valp)
usr.bin/vi/common/options_f.c
44
f_columns(SCR *sp, OPTION *op, char *str, u_long *valp)
usr.bin/vi/common/options_f.c
74
f_lines(SCR *sp, OPTION *op, char *str, u_long *valp)
usr.bin/vi/common/util.c
102
v_strdup(SCR *sp, const CHAR_T *str, size_t len)
usr.bin/vi/common/util.c
109
memcpy(copy, str, len * sizeof(CHAR_T));
usr.bin/vi/ex/ex_init.c
113
ex_optchange(SCR *sp, int offset, char *str, u_long *valp)
usr.bin/vi/ex/ex_init.c
117
return (ex_tagf_alloc(sp, str));
usr.bin/vi/ex/ex_init.c
264
ex_run_str(SCR *sp, char *name, char *str, size_t len, int ex_flags,
usr.bin/vi/ex/ex_init.c
281
ecp->cp = str;
usr.bin/vi/ex/ex_init.c
283
if ((ecp->cp = v_strdup(sp, str, len)) == NULL)
usr.bin/vi/ex/ex_print.c
273
ex_puts(SCR *sp, const char *str)
usr.bin/vi/ex/ex_print.c
281
for (doflush = n = 0; *str != '\0'; ++n) {
usr.bin/vi/ex/ex_print.c
284
if ((exp->obp[exp->obp_len++] = *str++) == '\n')
usr.bin/vi/ex/ex_tag.c
807
ex_tagf_alloc(SCR *sp, char *str)
usr.bin/vi/ex/ex_tag.c
820
for (p = t = str;; ++p) {
usr.bin/vi/vi/v_init.c
101
v_optchange(SCR *sp, int offset, char *str, u_long *valp)
usr.bin/vi/vi/v_init.c
105
return (v_buildps(sp, str, O_STR(sp, O_SECTIONS)));
usr.bin/vi/vi/v_init.c
107
return (v_buildps(sp, O_STR(sp, O_PARAGRAPHS), str));
usr.bin/w/w.c
378
char **argv, *str;
usr.bin/w/w.c
400
if ((str = strchr(*argv + 5, ':')) != NULL)
usr.bin/w/w.c
401
str = strchr(str + 1, ':');
usr.bin/w/w.c
402
if (str != NULL) {
usr.bin/w/w.c
403
if ((str[0] == ':') &&
usr.bin/w/w.c
404
isspace((unsigned char)str[1]))
usr.bin/w/w.c
405
str += 2;
usr.bin/w/w.c
406
fmt_puts(str, &left);
usr.bin/watch/watch.c
131
set_interval(const char *str)
usr.bin/watch/watch.c
136
intvl = strtod(str, &endp);
usr.bin/xargs/strnsubst.c
31
strnsubst(char **str, const char *match, const char *replstr, size_t maxsize)
usr.bin/xargs/strnsubst.c
37
if ((s1 = *str) == NULL)
usr.bin/xargs/strnsubst.c
65
*str = s2;
usr.bin/xinstall/xinstall.c
690
file_write(int fd, char *str, size_t cnt, int *rem, int *isempt, int sz)
usr.bin/xinstall/xinstall.c
695
char *st = str;
usr.bin/xinstall/xinstall.c
758
return(st - str);
usr.sbin/acme-client/json.c
165
free(n->d.str);
usr.sbin/acme-client/json.c
168
free(n->d.str);
usr.sbin/acme-client/json.c
238
return n->type != JSMN_STRING ? NULL : n->d.str;
usr.sbin/acme-client/json.c
257
else if (strcmp(name, n->d.obj[i].lhs->d.str))
usr.sbin/acme-client/json.c
284
else if (strcmp(name, n->d.obj[i].lhs->d.str))
usr.sbin/acme-client/json.c
312
else if (strcmp(name, n->d.obj[i].lhs->d.str))
usr.sbin/acme-client/json.c
322
cp = strdup(n->d.obj[i].rhs->d.str);
usr.sbin/acme-client/json.c
39
char *str; /* JSMN_PRIMITIVE, JSMN_STRING */
usr.sbin/acme-client/json.c
446
char *finalize, *str;
usr.sbin/acme-client/json.c
474
str = json_getarraystr(array->d.array[i]);
usr.sbin/acme-client/json.c
475
if (str == NULL)
usr.sbin/acme-client/json.c
477
if ((order->auths[i] = strdup(str)) == NULL) {
usr.sbin/acme-client/json.c
91
n->d.str = strndup
usr.sbin/acme-client/json.c
94
if (n->d.str == NULL)
usr.sbin/amd/amd/mapc.c
724
char str[PATH_MAX];
usr.sbin/amd/amd/mapc.c
737
snprintf(str, sizeof(str), "cache:=mapdefault;type:=toplvl;fs:=\"%s\";%s",
usr.sbin/amd/amd/mapc.c
740
strlcpy(str, opts, sizeof str);
usr.sbin/amd/amd/mapc.c
741
mapc_repl_kv(root_map, dir, strdup(str));
usr.sbin/amd/amd/mtab.c
86
char *str = hasmntopt(mnt, opt);
usr.sbin/amd/amd/mtab.c
87
if (str) {
usr.sbin/amd/amd/mtab.c
88
char *eq = strchr(str, '=');
usr.sbin/amd/amd/mtab.c
92
plog(XLOG_USER, "bad numeric option \"%s\" in \"%s\"", opt, str);
usr.sbin/amd/amd/util.c
50
strnsave(const char *str, int len)
usr.sbin/amd/amd/util.c
54
bcopy(str, sp, len);
usr.sbin/bgpctl/json.c
212
char *str;
usr.sbin/bgpctl/json.c
216
if (vasprintf(&str, fmt, ap) == -1)
usr.sbin/bgpctl/json.c
218
json_do_string(name, str);
usr.sbin/bgpctl/json.c
219
free(str);
usr.sbin/bgpd/rde.c
2161
char *str;
usr.sbin/bgpd/rde.c
2170
aspath_asprint(&str, &tmpbuf);
usr.sbin/bgpd/rde.c
2173
str ? str : "(bad aspath)");
usr.sbin/bgpd/rde.c
2174
free(str);
usr.sbin/bgpd/rtr_proto.c
1009
if ((str = ibuf_get_string(pdu, msg_len)) == NULL)
usr.sbin/bgpd/rtr_proto.c
1013
log_rtr_error(errcode), str ? ": " : "", str ? str : "");
usr.sbin/bgpd/rtr_proto.c
1025
if (str)
usr.sbin/bgpd/rtr_proto.c
1026
strlcpy(rs->last_recv_msg, str, sizeof(rs->last_recv_msg));
usr.sbin/bgpd/rtr_proto.c
1030
free(str);
usr.sbin/bgpd/rtr_proto.c
989
char *str = NULL;
usr.sbin/bgplgd/qs.c
110
valid_string(const char *str)
usr.sbin/bgplgd/qs.c
114
while ((c = *str++) != '\0')
usr.sbin/bgplgd/qs.c
122
valid_number(const char *str)
usr.sbin/bgplgd/qs.c
127
while ((c = *str++) != '\0') {
usr.sbin/bgplgd/qs.c
130
if (*str != '\0')
usr.sbin/bgplgd/qs.c
142
valid_prefix(char *str)
usr.sbin/bgplgd/qs.c
148
if ((p = strrchr(str, '/')) != NULL) {
usr.sbin/bgplgd/qs.c
160
if (getaddrinfo(str, NULL, &hints, &res) != 0)
usr.sbin/btrace/bt_parse.y
1053
if ((str = strdup(buf)) == NULL)
usr.sbin/btrace/bt_parse.y
1055
yylval.v.string = str;
usr.sbin/btrace/bt_parse.y
1179
btparse(const char *str, size_t len, const char *filename, int debug)
usr.sbin/btrace/bt_parse.y
1183
pbuf = str;
usr.sbin/btrace/bt_parse.y
738
kw_cmp(const void *str, const void *xkw)
usr.sbin/btrace/bt_parse.y
740
return (strcmp(str, ((const struct keyword *)xkw)->word));
usr.sbin/btrace/bt_parse.y
880
unsigned char *ebuf, *p, *str;
usr.sbin/btrace/btrace.c
1769
const char *str;
usr.sbin/btrace/btrace.c
1774
str = (const char *)ba->ba_value;
usr.sbin/btrace/btrace.c
1778
str = buf;
usr.sbin/btrace/btrace.c
1782
str = buf;
usr.sbin/btrace/btrace.c
1789
str = buf;
usr.sbin/btrace/btrace.c
1798
str = ba2str(ba, dtev);
usr.sbin/btrace/btrace.c
1801
str = "";
usr.sbin/btrace/btrace.c
1804
str = builtin_stack(dtev, 1);
usr.sbin/btrace/btrace.c
1807
str = builtin_stack(dtev, 0);
usr.sbin/btrace/btrace.c
1810
str = dtev->dtev_comm;
usr.sbin/btrace/btrace.c
1814
str = buf;
usr.sbin/btrace/btrace.c
1818
str = buf;
usr.sbin/btrace/btrace.c
1822
str = buf;
usr.sbin/btrace/btrace.c
1826
str = buf;
usr.sbin/btrace/btrace.c
1829
str = builtin_arg(dtev, ba->ba_type);
usr.sbin/btrace/btrace.c
1833
str = buf;
usr.sbin/btrace/btrace.c
1837
str = "BEGIN";
usr.sbin/btrace/btrace.c
1840
str = "END";
usr.sbin/btrace/btrace.c
1849
str = buf;
usr.sbin/btrace/btrace.c
1855
str = buf;
usr.sbin/btrace/btrace.c
1858
str = ba2str(map_get((struct map *)bv->bv_value,
usr.sbin/btrace/btrace.c
1862
str = ba2str(ba_read(ba), dtev);
usr.sbin/btrace/btrace.c
1865
str = (const char*)(fn_str(ba, dtev, buf))->ba_value;
usr.sbin/btrace/btrace.c
1869
str = buf;
usr.sbin/btrace/btrace.c
1881
return str;
usr.sbin/btrace/ksyms.c
417
kelf_snprintsym_proc(int dtfd, pid_t pid, char *str, size_t size,
usr.sbin/btrace/ksyms.c
425
*str = '\0';
usr.sbin/btrace/ksyms.c
433
return snprintf(str, size, "\n0x%lx", pc);
usr.sbin/btrace/ksyms.c
438
return snprintf(str, size, "\n0x%lx", pc);
usr.sbin/btrace/ksyms.c
442
return snprintf(str, size, "\n%s+0x%llx",
usr.sbin/btrace/ksyms.c
446
return snprintf(str, size, "\n%s", entry->sym_name);
usr.sbin/btrace/ksyms.c
450
kelf_snprintsym_kernel(struct syms *syms, char *str, size_t size,
usr.sbin/btrace/ksyms.c
460
return snprintf(str, size, "\n0x%lx", pc);
usr.sbin/btrace/ksyms.c
464
return snprintf(str, size, "\n%s+0x%llx",
usr.sbin/btrace/ksyms.c
468
return snprintf(str, size, "\n%s", entry->sym_name);
usr.sbin/btrace/printf.c
232
print_escape_str(const char *str)
usr.sbin/btrace/printf.c
237
while (*str) {
usr.sbin/btrace/printf.c
238
if (*str == '\\') {
usr.sbin/btrace/printf.c
239
str++;
usr.sbin/btrace/printf.c
245
if (*str == '0') {
usr.sbin/btrace/printf.c
246
str++;
usr.sbin/btrace/printf.c
247
for (c = 3, value = 0; c-- && isodigit(*str); str++) {
usr.sbin/btrace/printf.c
249
value += octtobin(*str);
usr.sbin/btrace/printf.c
252
str--;
usr.sbin/btrace/printf.c
253
} else if (*str == 'c') {
usr.sbin/btrace/printf.c
256
str--;
usr.sbin/btrace/printf.c
257
str += print_escape(str);
usr.sbin/btrace/printf.c
260
putchar (*str);
usr.sbin/btrace/printf.c
262
str++;
usr.sbin/btrace/printf.c
272
print_escape(const char *str)
usr.sbin/btrace/printf.c
274
const char *start = str;
usr.sbin/btrace/printf.c
278
str++;
usr.sbin/btrace/printf.c
280
switch (*str) {
usr.sbin/btrace/printf.c
283
for (c = 3, value = 0; c-- && isodigit(*str); str++) {
usr.sbin/btrace/printf.c
285
value += octtobin(*str);
usr.sbin/btrace/printf.c
288
return str - start - 1;
usr.sbin/btrace/printf.c
292
str++;
usr.sbin/btrace/printf.c
293
for (value = 0; isxdigit((unsigned char)*str); str++) {
usr.sbin/btrace/printf.c
295
value += hextobin(*str);
usr.sbin/btrace/printf.c
302
return str - start - 1;
usr.sbin/btrace/printf.c
359
putchar(*str);
usr.sbin/btrace/printf.c
360
warnx("unknown escape sequence `\\%c'", *str);
usr.sbin/btrace/printf.c
368
mklong(const char *str, int ch)
usr.sbin/btrace/printf.c
374
len = strlen(str) + 2;
usr.sbin/btrace/printf.c
388
(void) memmove(copy, str, len - 3);
usr.sbin/btrace/printf.c
411
const char *str;
usr.sbin/btrace/printf.c
416
str = ba2str(gargv, gdevt);
usr.sbin/btrace/printf.c
418
return str;
usr.sbin/btrace/printf.c
425
const char *str;
usr.sbin/btrace/printf.c
430
str = ba2str(gargv, gdevt);
usr.sbin/btrace/printf.c
431
if (strchr(number, *str)) {
usr.sbin/btrace/printf.c
433
return atoi(str);
usr.sbin/btrace/printf.c
442
const char *str;
usr.sbin/btrace/printf.c
449
str = ba2str(gargv, gdevt);
usr.sbin/btrace/printf.c
452
if (*str == '\"' || *str == '\'') {
usr.sbin/btrace/printf.c
453
unsigned char c = (unsigned char)str[1];
usr.sbin/btrace/printf.c
458
val = strtol(str, &ep, 0);
usr.sbin/btrace/printf.c
459
check_conversion(str, ep);
usr.sbin/btrace/printf.c
466
const char *str;
usr.sbin/btrace/printf.c
473
str = ba2str(gargv, gdevt);
usr.sbin/btrace/printf.c
476
if (*str == '\"' || *str == '\'') {
usr.sbin/btrace/printf.c
477
unsigned char c = (unsigned char)str[1];
usr.sbin/btrace/printf.c
482
val = strtoul(str, &ep, 0);
usr.sbin/btrace/printf.c
483
check_conversion(str, ep);
usr.sbin/btrace/printf.c
490
const char *str;
usr.sbin/btrace/printf.c
497
str = ba2str(gargv, gdevt);
usr.sbin/btrace/printf.c
500
if (*str == '\"' || *str == '\'') {
usr.sbin/btrace/printf.c
501
unsigned char c = (unsigned char)str[1];
usr.sbin/btrace/printf.c
506
val = strtod(str, &ep);
usr.sbin/btrace/printf.c
507
check_conversion(str, ep);
usr.sbin/config/gram.y
105
%token <str> PATHNAME WORD EMPTY
usr.sbin/config/gram.y
113
%type <str> rule
usr.sbin/config/gram.y
119
%type <str> atname
usr.sbin/config/gram.y
121
%type <str> locdefault
usr.sbin/config/gram.y
125
%type <str> device_instance
usr.sbin/config/gram.y
126
%type <str> attachment
usr.sbin/config/gram.y
127
%type <str> value
usr.sbin/config/gram.y
95
const char *str;
usr.sbin/config/hash.c
148
hash(const char *str)
usr.sbin/config/hash.c
152
for (h = 0; *str;)
usr.sbin/config/hash.c
153
h = (h << 5) + h + *str++;
usr.sbin/config/misc.c
81
ask_yn(const char *str)
usr.sbin/config/misc.c
86
printf("%s [n] ", str);
usr.sbin/config/ukcutil.c
485
change_history(int devno, char *str)
usr.sbin/config/ukcutil.c
540
*l = atoi(str);
usr.sbin/config/ukcutil.c
541
if (*str == '-')
usr.sbin/config/ukcutil.c
542
str++;
usr.sbin/config/ukcutil.c
543
while (*str >= '0' && *str <= '9')
usr.sbin/config/ukcutil.c
544
str++;
usr.sbin/config/ukcutil.c
545
if (*str == ' ')
usr.sbin/config/ukcutil.c
546
str++;
usr.sbin/config/ukcutil.c
551
if (*str) {
usr.sbin/config/ukcutil.c
552
cd->cf_flags = atoi(str);
usr.sbin/config/ukcutil.c
553
if (*str == '-')
usr.sbin/config/ukcutil.c
554
str++;
usr.sbin/config/ukcutil.c
555
while (*str >= '0' && *str <= '9')
usr.sbin/config/ukcutil.c
556
str++;
usr.sbin/config/ukcutil.c
557
if (*str == ' ')
usr.sbin/config/ukcutil.c
558
str++;
usr.sbin/config/ukcutil.c
584
if (*str) {
usr.sbin/config/ukcutil.c
585
pi->pdev_count = atoi(str);
usr.sbin/config/ukcutil.c
586
if (*str == '-')
usr.sbin/config/ukcutil.c
587
str++;
usr.sbin/config/ukcutil.c
588
while (*str >= '0' && *str <= '9')
usr.sbin/config/ukcutil.c
589
str++;
usr.sbin/config/ukcutil.c
590
if (*str == ' ')
usr.sbin/config/ukcutil.c
591
str++;
usr.sbin/config/util.c
113
newnv(const char *name, const char *str, void *ptr, int i, struct nvlist *next)
usr.sbin/config/util.c
124
nv->nv_str = str;
usr.sbin/config/util.c
126
if (str != NULL)
usr.sbin/cron/env.c
163
char quotechar, *c, *str;
usr.sbin/cron/env.c
173
str = name;
usr.sbin/cron/env.c
210
*str++ = *c++;
usr.sbin/cron/env.c
215
str = val;
usr.sbin/crunchgen/crunchgen.c
1003
fprintf(outf, " %s", lst->str);
usr.sbin/crunchgen/crunchgen.c
1015
add_string(strlst_t ** listp, char *str)
usr.sbin/crunchgen/crunchgen.c
1022
if (!strcmp(p2->str, str))
usr.sbin/crunchgen/crunchgen.c
1027
p2->str = strdup(str);
usr.sbin/crunchgen/crunchgen.c
1028
if (!p2 || !p2->str)
usr.sbin/crunchgen/crunchgen.c
106
void add_string(strlst_t ** listp, char *str);
usr.sbin/crunchgen/crunchgen.c
239
prog_t *find_prog(char *str);
usr.sbin/crunchgen/crunchgen.c
550
find_prog(char *str)
usr.sbin/crunchgen/crunchgen.c
555
if (!strcmp(p->name, str))
usr.sbin/crunchgen/crunchgen.c
570
char *genident(char *str);
usr.sbin/crunchgen/crunchgen.c
638
snprintf(line, sizeof(line), "%s/%s", p->objdir, s->str);
usr.sbin/crunchgen/crunchgen.c
71
char *str;
usr.sbin/crunchgen/crunchgen.c
841
s->str, p->ident);
usr.sbin/crunchgen/crunchgen.c
850
genident(char *str)
usr.sbin/crunchgen/crunchgen.c
860
if ((n = strdup(str)) == NULL)
usr.sbin/crunchgen/crunchgen.c
879
snprintf(path, sizeof(path), "%s/%s", dir->str, progname);
usr.sbin/crunchgen/crunchgen.c
881
return dir->str;
usr.sbin/crunchgen/crunchgen.c
911
fprintf(outmk, " -L%s", l->str);
usr.sbin/crunchgen/mangle.c
126
mangle_str(char *str)
usr.sbin/crunchgen/mangle.c
132
len = strlen(str);
usr.sbin/crunchgen/mangle.c
144
str[i] = validchars[idx];
usr.sbin/crunchgen/mangle.h
30
void mangle_str(char *str);
usr.sbin/dhcpd/parse.c
395
convert_num(unsigned char *buf, char *str, int base, int size)
usr.sbin/dhcpd/parse.c
399
char *ptr = str;
usr.sbin/dhcpd/parse.c
432
log_warnx("Bogus number: %s.", str);
usr.sbin/dhcpd/parse.c
437
str, tval, base);
usr.sbin/hostctl/hostctl.c
103
char *str;
usr.sbin/hostctl/hostctl.c
150
if (stravis(&str, pvr.pvr_key,
usr.sbin/hostctl/hostctl.c
153
fprintf(outfp, "%s: %s\n", path_pvbus, str);
usr.sbin/hostctl/hostctl.c
154
free(str);
usr.sbin/hostctl/hostctl.c
210
if (stravis(&str, pvr.pvr_value, VIS_SAFE | VIS_CSTYLE) == -1)
usr.sbin/hostctl/hostctl.c
212
fprintf(outfp, "%s\n", str);
usr.sbin/hostctl/hostctl.c
213
free(str);
usr.sbin/httpd/httpd.c
433
char *str = NULL;
usr.sbin/httpd/httpd.c
443
str = get_string(imsg->data, IMSG_DATA_SIZE(imsg));
usr.sbin/httpd/httpd.c
444
parent_reload(env, CONFIG_RELOAD, str);
usr.sbin/httpd/httpd.c
445
free(str);
usr.sbin/httpd/httpd.c
764
char *str;
usr.sbin/httpd/httpd.c
768
if ((str = get_string(ptr, len)) == NULL)
usr.sbin/httpd/httpd.c
771
for (i = 0; str[i] != '\0'; i++) {
usr.sbin/httpd/httpd.c
772
if (str[i] == '\r' || str[i] == '\n')
usr.sbin/httpd/httpd.c
777
free(str);
usr.sbin/httpd/httpd.c
781
str[i] = '\0';
usr.sbin/httpd/httpd.c
790
return (str);
usr.sbin/httpd/server.c
1425
char *str;
usr.sbin/httpd/server.c
1428
ret = vasprintf(&str, fmt, ap);
usr.sbin/httpd/server.c
1434
ret = server_bufferevent_print(clt, str);
usr.sbin/httpd/server.c
1435
free(str);
usr.sbin/httpd/server.c
1441
server_bufferevent_print(struct client *clt, const char *str)
usr.sbin/httpd/server.c
1444
return (evbuffer_add(clt->clt_output, str, strlen(str)));
usr.sbin/httpd/server.c
1445
return (bufferevent_write(clt->clt_bev, str, strlen(str)));
usr.sbin/httpd/server_fcgi.c
103
char *query_alias, *str, *script = NULL;
usr.sbin/httpd/server_fcgi.c
210
if ((str = strndup(alias, scriptlen)) == NULL)
usr.sbin/httpd/server_fcgi.c
212
ret = fcgi_add_param(&param, "SCRIPT_NAME", str, clt);
usr.sbin/httpd/server_fcgi.c
213
free(str);
usr.sbin/httpd/server_fcgi.c
311
if (asprintf(&str, "%s?%s", desc->http_path_orig,
usr.sbin/httpd/server_fcgi.c
316
ret = fcgi_add_param(&param, "REQUEST_URI", str, clt);
usr.sbin/httpd/server_fcgi.c
317
free(str);
usr.sbin/httpd/server_file.c
741
parse_ranges(struct client *clt, char *str, size_t file_sz)
usr.sbin/httpd/server_file.c
750
if ((p = strchr(str, '=')) == NULL)
usr.sbin/httpd/server_file.c
755
if (strcmp(str, "bytes") != 0)
usr.sbin/httpd/server_file.c
781
parse_range_spec(char *str, size_t size, struct range *r)
usr.sbin/httpd/server_file.c
787
if ((p = strchr(str, '-')) == NULL)
usr.sbin/httpd/server_file.c
791
start_str = str;
usr.sbin/httpd/server_http.c
1130
char ibuf[128], *str, *path, *query;
usr.sbin/httpd/server_http.c
1155
if ((str = url_encode(clt->clt_srv_match.sm_match[n])) == NULL)
usr.sbin/httpd/server_http.c
1157
ret = expand_string(buf, len, ibuf, str);
usr.sbin/httpd/server_http.c
1158
free(str);
usr.sbin/httpd/server_http.c
1195
if ((str = url_encode(desc->http_host)) == NULL)
usr.sbin/httpd/server_http.c
1197
expand_string(buf, len, "$HTTP_HOST", str);
usr.sbin/httpd/server_http.c
1198
free(str);
usr.sbin/httpd/server_http.c
1219
if ((str = url_encode(clt->clt_remote_user))
usr.sbin/httpd/server_http.c
1223
str = strdup("");
usr.sbin/httpd/server_http.c
1224
ret = expand_string(buf, len, "$REMOTE_USER", str);
usr.sbin/httpd/server_http.c
1225
free(str);
usr.sbin/httpd/server_http.c
1234
str = path;
usr.sbin/httpd/server_http.c
1236
ret = asprintf(&str, "%s?%s", path, desc->http_query);
usr.sbin/httpd/server_http.c
1242
ret = expand_string(buf, len, "$REQUEST_URI", str);
usr.sbin/httpd/server_http.c
1243
free(str);
usr.sbin/httpd/server_http.c
1273
if ((str = url_encode(srv_conf->name))
usr.sbin/httpd/server_http.c
1276
ret = expand_string(buf, len, "$SERVER_NAME", str);
usr.sbin/httpd/server_http.c
1277
free(str);
usr.sbin/httpd/server_http.c
1832
replace_var(char *str, const char *var, const char *repl)
usr.sbin/httpd/server_http.c
1838
while ((iv = strstr(str, var)) != NULL) {
usr.sbin/httpd/server_http.c
1840
if (asprintf(&r, "%s%s%s", str, repl, &iv[vlen]) == -1)
usr.sbin/httpd/server_http.c
1842
free(str);
usr.sbin/httpd/server_http.c
1843
str = r;
usr.sbin/httpd/server_http.c
1845
return (str);
usr.sbin/ldapd/btree.c
1209
mp->pgno, (int)mp->prefix.len, (char *)mp->prefix.str);
usr.sbin/ldapd/btree.c
122
char str[MAXKEYSIZE];
usr.sbin/ldapd/btree.c
1366
(int)mp->prefix.len, mp->prefix.str, mp->prefix.len, mp->pgno);
usr.sbin/ldapd/btree.c
1659
mp->prefix.str, mp->prefix.len,
usr.sbin/ldapd/btree.c
2173
bcopy(NODEKEY(node), tmpkey.str, tmpkey.len);
usr.sbin/ldapd/btree.c
2175
bcopy((char *)NODEKEY(node) + delta, tmpkey.str,
usr.sbin/ldapd/btree.c
2179
bcopy(NODEKEY(node), tmpkey.str, node->ksize);
usr.sbin/ldapd/btree.c
2180
bcopy(src->prefix.str, tmpkey.str + node->ksize,
usr.sbin/ldapd/btree.c
2183
bcopy(src->prefix.str + src->prefix.len + delta,
usr.sbin/ldapd/btree.c
2184
tmpkey.str, -delta);
usr.sbin/ldapd/btree.c
2185
bcopy(NODEKEY(node), tmpkey.str - delta,
usr.sbin/ldapd/btree.c
2190
key.data = tmpkey.str;
usr.sbin/ldapd/btree.c
2247
bcopy(NODEKEY(srcnode), srckey.str, srckey.len);
usr.sbin/ldapd/btree.c
2265
(int)srckey.len, srckey.str, low->pgno);
usr.sbin/ldapd/btree.c
2268
bcopy(NODEKEY(srcnode), srckey.str, srcnode->ksize);
usr.sbin/ldapd/btree.c
2273
tmpkey.len = sizeof(tmpkey.str);
usr.sbin/ldapd/btree.c
2274
concat_prefix(bt, src->prefix.str, src->prefix.len,
usr.sbin/ldapd/btree.c
2275
srckey.str, srckey.len, tmpkey.str, &tmpkey.len);
usr.sbin/ldapd/btree.c
2281
key.data = tmpkey.str;
usr.sbin/ldapd/btree.c
2299
key.data = tmpkey.str;
usr.sbin/ldapd/btree.c
2318
key.data = tmpkey.str;
usr.sbin/ldapd/btree.c
2422
(int)tmpkey.len, tmpkey.str, low->pgno);
usr.sbin/ldapd/btree.c
2428
key.data = tmpkey.str;
usr.sbin/ldapd/btree.c
2721
(int)mp->prefix.len, (char *)mp->prefix.str);
usr.sbin/ldapd/btree.c
2780
tmpkey.len = sizeof(tmpkey.str);
usr.sbin/ldapd/btree.c
2781
concat_prefix(bt, mp->prefix.str, mp->prefix.len,
usr.sbin/ldapd/btree.c
2782
sepkey.data, sepkey.size, tmpkey.str, &tmpkey.len);
usr.sbin/ldapd/btree.c
2783
sepkey.data = tmpkey.str;
usr.sbin/ldapd/btree.c
375
p1 = min->str + min->len - 1;
usr.sbin/ldapd/btree.c
376
p2 = max->str + max->len - 1;
usr.sbin/ldapd/btree.c
379
if (p1 < min->str || p2 < max->str)
usr.sbin/ldapd/btree.c
386
assert(n <= (int)sizeof(pfx->str));
usr.sbin/ldapd/btree.c
388
bcopy(p2 + 1, pfx->str, n);
usr.sbin/ldapd/btree.c
390
p1 = min->str;
usr.sbin/ldapd/btree.c
391
p2 = max->str;
usr.sbin/ldapd/btree.c
401
assert(n <= (int)sizeof(pfx->str));
usr.sbin/ldapd/btree.c
403
bcopy(max->str, pfx->str, n);
usr.sbin/ldapd/btree.c
428
expkey->len = sizeof(expkey->str);
usr.sbin/ldapd/btree.c
429
concat_prefix(bt, mp->prefix.str, mp->prefix.len,
usr.sbin/ldapd/btree.c
430
NODEKEY(node), node->ksize, expkey->str, &expkey->len);
usr.sbin/ldapd/ldapd.h
471
int bsnprintf(char *str, size_t size,
usr.sbin/ldapd/util.c
39
bsnprintf(char *str, size_t size, const char *format, ...)
usr.sbin/ldapd/util.c
45
ret = vsnprintf(str, size, format, ap);
usr.sbin/ldapd/uuid.c
216
uuid_to_string(const afsUUID *uuid, char *str, size_t strsz)
usr.sbin/ldapd/uuid.c
218
snprintf(str, strsz,
usr.sbin/ldapd/uuid.c
238
char str[1000];
usr.sbin/ldapd/uuid.c
243
uuid_to_string(&u1, str, sizeof(str));
usr.sbin/ldapd/uuid.c
245
printf("u: %s\n", str);
usr.sbin/ldapd/uuid.c
247
if (uuid_from_string(str, &u2)) {
usr.sbin/ldomctl/config.c
153
strcmp(prop->name->str, "back") == 0) {
usr.sbin/ldomctl/config.c
155
if (strcmp(node2->name->str, "cpu") != 0) {
usr.sbin/ldomctl/config.c
1682
strcmp(prop->name->str, "fwd") == 0) {
usr.sbin/ldomctl/config.c
1758
strcmp(prop->name->str, "fwd") == 0) {
usr.sbin/ldomctl/config.c
1831
strcmp(prop->name->str, "fwd") == 0) {
usr.sbin/ldomctl/config.c
193
if (strcmp(node->name->str, "tlb") == 0 &&
usr.sbin/ldomctl/config.c
2118
strcmp(prop->name->str, "fwd") == 0) {
usr.sbin/ldomctl/config.c
2137
char *str;
usr.sbin/ldomctl/config.c
2147
xasprintf(&str, "ldom-%s", domain);
usr.sbin/ldomctl/config.c
2148
md_add_prop_str(md, node, "vldc-svc-name", str);
usr.sbin/ldomctl/config.c
2149
free(str);
usr.sbin/ldomctl/config.c
2224
strcmp(prop->name->str, "fwd") == 0) {
usr.sbin/ldomctl/config.c
2268
strcmp(prop->name->str, "fwd") == 0) {
usr.sbin/ldomctl/config.c
2270
if (strcmp(node2->name->str, "wart") == 0) {
usr.sbin/ldomctl/config.c
228
if (strcmp(node->name->str, "component") != 0)
usr.sbin/ldomctl/config.c
2346
strcmp(prop->name->str, "fwd") == 0) {
usr.sbin/ldomctl/config.c
2400
if (strcmp(node->name->str, "virtual-device-port") != 0)
usr.sbin/ldomctl/config.c
2423
strcmp(prop->name->str, "fwd") == 0) {
usr.sbin/ldomctl/config.c
260
if (strcmp(node->name->str, "iodevice") == 0 &&
usr.sbin/ldomctl/config.c
2629
guest_add_variable(struct guest *guest, const char *name, const char *str)
usr.sbin/ldomctl/config.c
2644
md_add_prop_str(md, node, name, str);
usr.sbin/ldomctl/config.c
2702
strcmp(prop->name->str, "fwd") == 0) {
usr.sbin/ldomctl/config.c
2724
strcmp(prop->name->str, "fwd") == 0) {
usr.sbin/ldomctl/config.c
2738
strcmp(prop->name->str, "fwd") == 0) {
usr.sbin/ldomctl/config.c
2856
guest_add_variable(primary, var->name, var->str);
usr.sbin/ldomctl/config.c
2875
guest_add_variable(guest, var->name, var->str);
usr.sbin/ldomctl/config.c
455
strcmp(prop->name->str, "fwd") == 0) {
usr.sbin/ldomctl/config.c
499
strcmp(prop->name->str, "fwd") == 0)
usr.sbin/ldomctl/config.c
506
strcmp(prop->name->str, "fwd") == 0)
usr.sbin/ldomctl/config.c
522
strcmp(prop->name->str, "fwd") == 0) {
usr.sbin/ldomctl/config.c
618
strcmp(prop->name->str, "back") == 0) {
usr.sbin/ldomctl/config.c
620
if (strcmp(node2->name->str, "guest") == 0)
usr.sbin/ldomctl/config.c
676
strcmp(prop->name->str, "back") == 0) {
usr.sbin/ldomctl/config.c
678
if (strcmp(node2->name->str, "guest") == 0)
usr.sbin/ldomctl/config.c
694
if (strcmp(node->name->str, "pcie_bus") != 0 &&
usr.sbin/ldomctl/config.c
695
strcmp(node->name->str, "network_device") != 0)
usr.sbin/ldomctl/config.c
709
if (strcmp(node->name->str, "pcie_bus") == 0)
usr.sbin/ldomctl/config.c
718
strcmp(prop->name->str, "back") == 0) {
usr.sbin/ldomctl/config.c
720
if (strcmp(node2->name->str, "guest") == 0)
usr.sbin/ldomctl/config.c
831
strcmp(prop->name->str, "fwd") == 0) {
usr.sbin/ldomctl/config.c
833
if (strcmp(node2->name->str, "console") == 0) {
usr.sbin/ldomctl/config.c
839
if (strcmp(node2->name->str, "cpu") == 0) {
usr.sbin/ldomctl/config.c
846
if (strcmp(node2->name->str, "pcie_bus") == 0) {
usr.sbin/ldomctl/config.c
853
if (strcmp(node2->name->str, "network_device") == 0) {
usr.sbin/ldomctl/config.c
860
if (strcmp(node2->name->str, "mblock") == 0) {
usr.sbin/ldomctl/config.c
867
if (strcmp(node2->name->str, "ldc_endpoint") == 0) {
usr.sbin/ldomctl/config.c
926
strcmp(prop->name->str, "fwd") == 0)
usr.sbin/ldomctl/config.c
934
strcmp(prop->name->str, "fwd") == 0)
usr.sbin/ldomctl/config.c
941
strcmp(prop->name->str, "fwd") == 0)
usr.sbin/ldomctl/config.c
951
strcmp(prop->name->str, "fwd") == 0)
usr.sbin/ldomctl/config.c
958
strcmp(prop->name->str, "fwd") == 0)
usr.sbin/ldomctl/config.c
965
strcmp(prop->name->str, "fwd") == 0)
usr.sbin/ldomctl/config.c
972
strcmp(prop->name->str, "fwd") == 0)
usr.sbin/ldomctl/ldomctl.c
158
strcmp(prop->name->str, "fwd") == 0) {
usr.sbin/ldomctl/ldomctl.c
159
if (strcmp(prop->d.arc.node->name->str, "cpu") == 0)
usr.sbin/ldomctl/ldomctl.c
788
strcmp(prop->name->str, "fwd") == 0)
usr.sbin/ldomctl/ldomctl.h
174
const char *str;
usr.sbin/ldomctl/mdesc.c
118
if (strcmp(node->name->str, name) == 0)
usr.sbin/ldomctl/mdesc.c
132
strcmp(prop->name->str, "fwd") == 0 &&
usr.sbin/ldomctl/mdesc.c
133
strcmp(prop->d.arc.node->name->str, name) == 0)
usr.sbin/ldomctl/mdesc.c
166
if (strcmp(prop->name->str, name) == 0)
usr.sbin/ldomctl/mdesc.c
200
const char *str)
usr.sbin/ldomctl/mdesc.c
206
prop->d.data = md_add_data(md, str, strlen(str) + 1);
usr.sbin/ldomctl/mdesc.c
277
const char **str)
usr.sbin/ldomctl/mdesc.c
285
*str = prop->d.data->data;
usr.sbin/ldomctl/mdesc.c
31
md_find_name(struct md *md, const char *str)
usr.sbin/ldomctl/mdesc.c
36
if (strcmp(name->str, str) == 0)
usr.sbin/ldomctl/mdesc.c
397
strcmp(prop->name->str, "fwd") == 0)
usr.sbin/ldomctl/mdesc.c
42
md_add_name(struct md *md, const char *str)
usr.sbin/ldomctl/mdesc.c
428
const char *str;
usr.sbin/ldomctl/mdesc.c
459
str = name_blk + betoh32(mde->name_offset);
usr.sbin/ldomctl/mdesc.c
46
name = md_find_name(md, str);
usr.sbin/ldomctl/mdesc.c
460
node = md_add_node(md, str);
usr.sbin/ldomctl/mdesc.c
466
str = name_blk + betoh32(mde->name_offset);
usr.sbin/ldomctl/mdesc.c
467
md_add_prop_val(md, node, str, betoh64(mde->d.val));
usr.sbin/ldomctl/mdesc.c
472
str = name_blk + betoh32(mde->name_offset);
usr.sbin/ldomctl/mdesc.c
474
md_add_prop_str(md, node, str, data);
usr.sbin/ldomctl/mdesc.c
479
str = name_blk + betoh32(mde->name_offset);
usr.sbin/ldomctl/mdesc.c
481
md_add_prop_data(md, node, str, data,
usr.sbin/ldomctl/mdesc.c
487
str = name_blk + betoh32(mde->name_offset);
usr.sbin/ldomctl/mdesc.c
488
prop = md_add_prop(md, node, str);
usr.sbin/ldomctl/mdesc.c
49
name->str = xstrdup(str);
usr.sbin/ldomctl/mdesc.c
525
offset += (strlen(name->str) + 1);
usr.sbin/ldomctl/mdesc.c
562
mde->name_len = strlen(node->name->str);
usr.sbin/ldomctl/mdesc.c
572
mde->name_len = strlen(prop->name->str);
usr.sbin/ldomctl/mdesc.c
600
len = strlen(name->str) + 1;
usr.sbin/ldomctl/mdesc.c
601
memcpy(name_blk, name->str, len);
usr.sbin/ldomctl/mdesc.h
87
const char *str;
usr.sbin/ldomctl/mdstore.c
496
strcmp(prop->name->str, "fwd") == 0) {
usr.sbin/ldomctl/mdstore.c
560
strcmp(prop->name->str, "fwd") == 0)
usr.sbin/ldomctl/parse.y
210
var->str = $4;
usr.sbin/ldomctl/util.c
73
xasprintf(char **str, const char *fmt, ...)
usr.sbin/ldomctl/util.c
79
ret = vasprintf(str, fmt, ap);
usr.sbin/ldomd/ldomd.c
188
strcmp(prop->name->str, "fwd") == 0)
usr.sbin/ldomd/ldomd.c
282
if (strcmp(node->name->str, "virtual-device-port") != 0)
usr.sbin/ldomd/ldomd.c
319
strcmp(prop->name->str, "fwd") == 0)
usr.sbin/lpd/proc.c
410
m_add_string(struct imsgproc *p, const char *str)
usr.sbin/lpd/proc.c
412
if (str) {
usr.sbin/lpd/proc.c
414
m_add(p, str, strlen(str) + 1);
usr.sbin/makefs/cd9660/cd9660_conversion.c
139
cd9660_pad_string_spaces(char *str, int len)
usr.sbin/makefs/cd9660/cd9660_conversion.c
144
if (str[i] == '\0')
usr.sbin/makefs/cd9660/cd9660_conversion.c
145
str[i] = 0x20;
usr.sbin/makefs/cd9660/cd9660_strings.c
100
cd9660_valid_d_chars(const char *str)
usr.sbin/makefs/cd9660/cd9660_strings.c
102
const char *c=str;
usr.sbin/makefs/cd9660/cd9660_strings.c
42
cd9660_uppercase_characters(char *str, size_t len)
usr.sbin/makefs/cd9660/cd9660_strings.c
47
if (islower((unsigned char)str[p]) )
usr.sbin/makefs/cd9660/cd9660_strings.c
48
str[p] -= 32;
usr.sbin/makefs/cd9660/cd9660_strings.c
76
cd9660_valid_a_chars(const char *str)
usr.sbin/makefs/cd9660/cd9660_strings.c
78
const char *c = str;
usr.sbin/netgroup_mkdb/netgroup_mkdb.c
462
ng_print(struct nentry *e, struct string *str)
usr.sbin/netgroup_mkdb/netgroup_mkdb.c
467
str_append(str, "", ' ');
usr.sbin/netgroup_mkdb/netgroup_mkdb.c
488
str_append(str, ptr, ' ');
usr.sbin/netgroup_mkdb/netgroup_mkdb.c
498
ng_rprint(DB *db, struct string *str)
usr.sbin/netgroup_mkdb/netgroup_mkdb.c
506
str_append(str, (char *) key.data, ',');
usr.sbin/netgroup_mkdb/str.c
51
str_append(struct string *buf, const char *str, int del)
usr.sbin/netgroup_mkdb/str.c
53
size_t len = strlen(str) + 1;
usr.sbin/netgroup_mkdb/str.c
64
memcpy(&buf->s_str[buf->s_len], str, len);
usr.sbin/netgroup_mkdb/str.c
72
str_prepend(struct string *buf, const char *str, int del)
usr.sbin/netgroup_mkdb/str.c
75
size_t len = strlen(str) + 1;
usr.sbin/netgroup_mkdb/str.c
82
memcpy(ptr, str, len);
usr.sbin/netgroup_mkdb/stringlist.c
232
getstring(char **pp, int del, char **str)
usr.sbin/netgroup_mkdb/stringlist.c
249
*str = NULL;
usr.sbin/netgroup_mkdb/stringlist.c
265
*str = dp;
usr.sbin/npppctl/parser.c
323
parse_protocol(const char *str)
usr.sbin/npppctl/parser.c
326
(strcasecmp(str, "PPTP" ) == 0)? PPTP :
usr.sbin/npppctl/parser.c
327
(strcasecmp(str, "L2TP" ) == 0)? L2TP :
usr.sbin/npppctl/parser.c
328
(strcasecmp(str, "PPPoE") == 0)? PPPOE :
usr.sbin/npppctl/parser.c
329
(strcasecmp(str, "SSTP" ) == 0)? SSTP : PROTO_UNSPEC;
usr.sbin/npppd/common/addr_range.c
222
in_addr_range_list_add(struct in_addr_range **list, const char *str)
usr.sbin/npppd/common/addr_range.c
229
if ((p0 = strdup(str)) == NULL) {
usr.sbin/npppd/npppd/chap.c
911
chap_response(_this, 1, success.str, sizeof(success.str));
usr.sbin/npppd/npppd/npppd.c
1989
const char *str;
usr.sbin/npppd/npppd/npppd.c
1991
str = ptr;
usr.sbin/npppd/npppd/npppd.c
1992
len = strlen(str);
usr.sbin/npppd/npppd/npppd.c
1994
hash = hash*0x1F + str[i];
usr.sbin/npppd/npppd/privsep.c
677
char *str, *buf, *db[2] = { NULL, NULL };
usr.sbin/npppd/npppd/privsep.c
683
str = buf = NULL;
usr.sbin/npppd/npppd/privsep.c
696
if ((retval = cgetstr(buf, "password", &str))
usr.sbin/npppd/npppd/privsep.c
698
if (strlcpy(r.password, str,
usr.sbin/npppd/npppd/privsep.c
702
free(str);
usr.sbin/npppd/npppd/privsep.c
703
str = NULL;
usr.sbin/npppd/npppd/privsep.c
706
&str)) >= 0) {
usr.sbin/npppd/npppd/privsep.c
707
if (strlcpy(r.calling_number, str,
usr.sbin/npppd/npppd/privsep.c
711
free(str);
usr.sbin/npppd/npppd/privsep.c
712
str = NULL;
usr.sbin/npppd/npppd/privsep.c
715
&str)) >= 0) {
usr.sbin/npppd/npppd/privsep.c
716
if (inet_pton(AF_INET, str,
usr.sbin/npppd/npppd/privsep.c
719
free(str);
usr.sbin/npppd/npppd/privsep.c
720
str = NULL;
usr.sbin/npppd/npppd/privsep.c
724
&str)) >= 0) {
usr.sbin/npppd/npppd/privsep.c
725
if (inet_pton(AF_INET, str,
usr.sbin/npppd/npppd/privsep.c
728
free(str);
usr.sbin/npppd/npppd/privsep.c
729
str = NULL;
usr.sbin/npppd/npppd/privsep.c
738
free(str);
usr.sbin/npppd/npppd/privsep.c
975
startswith(const char *str, const char *prefix)
usr.sbin/npppd/npppd/privsep.c
977
return (strncmp(str, prefix, strlen(prefix)) == 0)? 1 : 0;
usr.sbin/npppd/npppd/radius_chap_const.h
52
char str[42];
usr.sbin/npppd/npppd/radius_chap_const.h
66
char str[15];
usr.sbin/nsd/buffer.h
282
buffer_write_string_at(buffer_type *buffer, size_t at, const char *str)
usr.sbin/nsd/buffer.h
284
buffer_write_at(buffer, at, str, strlen(str));
usr.sbin/nsd/buffer.h
288
buffer_write_string(buffer_type *buffer, const char *str)
usr.sbin/nsd/buffer.h
290
buffer_write(buffer, str, strlen(str));
usr.sbin/nsd/buffer.h
294
try_buffer_write_string_at(buffer_type *buffer, size_t at, const char *str)
usr.sbin/nsd/buffer.h
296
return try_buffer_write_at(buffer, at, str, strlen(str));
usr.sbin/nsd/buffer.h
300
try_buffer_write_string(buffer_type *buffer, const char *str)
usr.sbin/nsd/buffer.h
302
return try_buffer_write(buffer, str, strlen(str));
usr.sbin/nsd/configparser.y
1276
argv[argc++] = i->str;
usr.sbin/nsd/configparser.y
1288
comp->str = region_strdup(cfg_parser->opt->region, $2);
usr.sbin/nsd/configparser.y
1377
parse_boolean(const char *str, int *bln)
usr.sbin/nsd/configparser.y
1379
if(strcmp(str, "yes") == 0) {
usr.sbin/nsd/configparser.y
1381
} else if(strcmp(str, "no") == 0) {
usr.sbin/nsd/configparser.y
1391
parse_expire_expr(const char *str, long long *num, uint8_t *expr)
usr.sbin/nsd/configparser.y
1393
if(parse_number(str, num)) {
usr.sbin/nsd/configparser.y
1397
if(strcmp(str, REFRESHPLUSRETRYPLUS1_STR) == 0) {
usr.sbin/nsd/configparser.y
1406
parse_number(const char *str, long long *num)
usr.sbin/nsd/configparser.y
1410
while(str[pos] >= '0' && str[pos] <= '9') {
usr.sbin/nsd/configparser.y
1414
if(pos != 0 && str[pos] == '\0') {
usr.sbin/nsd/configparser.y
1415
*num = strtoll(str, NULL, 10);
usr.sbin/nsd/configparser.y
1423
parse_range(const char *str, long long *low, long long *high)
usr.sbin/nsd/configparser.y
1425
const char *ptr = str;
usr.sbin/nsd/configparser.y
1468
parse_catalog_role(const char *str, int *role)
usr.sbin/nsd/configparser.y
1470
if(strcasecmp(str, "consumer") == 0) {
usr.sbin/nsd/configparser.y
1472
} else if(strcmp(str, "producer") == 0) {
usr.sbin/nsd/configparser.y
35
static int parse_boolean(const char *str, int *bln);
usr.sbin/nsd/configparser.y
36
static int parse_catalog_role(const char *str, int *role);
usr.sbin/nsd/configparser.y
37
static int parse_expire_expr(const char *str, long long *num, uint8_t *expr);
usr.sbin/nsd/configparser.y
38
static int parse_number(const char *str, long long *num);
usr.sbin/nsd/configparser.y
39
static int parse_range(const char *str, long long *low, long long *high);
usr.sbin/nsd/configparser.y
43
char *str;
usr.sbin/nsd/configparser.y
49
char *str;
usr.sbin/nsd/configparser.y
60
%token <str> STRING
usr.sbin/nsd/configparser.y
692
char *tok, *ptr, *str;
usr.sbin/nsd/configparser.y
697
for(str = $2; (tok = strtok_r(str, " \t", &ptr)); str = NULL) {
usr.sbin/nsd/configparser.y
727
char *tok, *ptr, *str;
usr.sbin/nsd/configparser.y
731
str = $2;
usr.sbin/nsd/configparser.y
738
for(str = $2; (tok = strtok_r(str, " \t", &ptr)); str = NULL) {
usr.sbin/nsd/difffile.c
50
write_str(FILE *out, const char* str)
usr.sbin/nsd/difffile.c
52
uint32_t len = strlen(str);
usr.sbin/nsd/difffile.c
55
return write_data(out, str, len);
usr.sbin/nsd/dnstap/dnstap.c
149
void log_crypto_err(const char* str); /* in server.c */
usr.sbin/nsd/nsd-checkconf.c
26
char* ATTR_UNUSED(str), domain_type** ATTR_UNUSED(parsed),
usr.sbin/nsd/nsd-control.c
54
struct zone* ATTR_UNUSED(zone), char* ATTR_UNUSED(str),
usr.sbin/nsd/nsd-mem.c
110
skip_ws(const char* str)
usr.sbin/nsd/nsd-mem.c
112
while (isspace(*str))
usr.sbin/nsd/nsd-mem.c
113
str++;
usr.sbin/nsd/nsd-mem.c
114
return str;
usr.sbin/nsd/nsec3.c
243
nsec3param_to_str(struct rr* rr, char* str, size_t buflen)
usr.sbin/nsd/nsec3.c
247
str[0]=0;
usr.sbin/nsd/nsec3.c
250
len = snprintf(str, buflen, "%u %u %u ",
usr.sbin/nsd/nsec3.c
255
str[len++] = '-';
usr.sbin/nsd/nsec3.c
257
len += hex_ntop(rr->rdata+5, rr->rdata[4], str+len, buflen-len-1);
usr.sbin/nsd/nsec3.c
260
str[len] = 0;
usr.sbin/nsd/nsec3.c
263
str[buflen-1] = 0;
usr.sbin/nsd/nsec3.c
285
char str[MAX_RDLENGTH*2+16];
usr.sbin/nsd/nsec3.c
287
str, sizeof(str));
usr.sbin/nsd/nsec3.c
288
VERBOSITY(1, (LOG_WARNING, "zone %s NSEC3PARAM %s has broken chain, ignoring", domain_to_string(z->apex), str));
usr.sbin/nsd/nsec3.c
293
char str[MAX_RDLENGTH*2+16];
usr.sbin/nsd/nsec3.c
294
nsec3param_to_str(rrset->rrs[i], str,
usr.sbin/nsd/nsec3.c
295
sizeof(str));
usr.sbin/nsd/nsec3.c
297
domain_to_string(z->apex), str));
usr.sbin/nsd/options.c
2260
const char *str;
usr.sbin/nsd/options.c
2266
str = (const char *)ASN1_STRING_get0_data(current_name->d.dNSName);
usr.sbin/nsd/options.c
2268
str = (const char *)ASN1_STRING_data(current_name->d.dNSName);
usr.sbin/nsd/options.c
2270
if (str == NULL)
usr.sbin/nsd/options.c
2274
strncasecmp(str, acl_cert_cn, len) == 0)
usr.sbin/nsd/options.c
2283
while (pos < len && str[pos] != 0)
usr.sbin/nsd/options.c
2287
"SAN %*s does not match acl for %s", len, str, acl_cert_cn));
usr.sbin/nsd/options.c
2489
get_char(const char* str, size_t i)
usr.sbin/nsd/options.c
2492
if(i >= strlen(str))
usr.sbin/nsd/options.c
2494
res[0] = str[i];
usr.sbin/nsd/options.c
2510
replace_str(char* str, size_t len, const char* one, const char* two)
usr.sbin/nsd/options.c
2513
char* at = str;
usr.sbin/nsd/options.c
2515
if(strlen(str)+strlen(two)-strlen(one) >= len)
usr.sbin/nsd/radtree.c
1268
if(n->array[byte].str[i] != b)
usr.sbin/nsd/radtree.c
1402
if(b < n->array[byte].str[i]) {
usr.sbin/nsd/radtree.c
1406
} else if(b > n->array[byte].str[i]) {
usr.sbin/nsd/radtree.c
166
if(memcmp(&k[pos], n->array[byte].str,
usr.sbin/nsd/radtree.c
267
r->str = (uint8_t*)region_alloc(region, sizeof(uint8_t)*(len-pos));
usr.sbin/nsd/radtree.c
268
if(!r->str)
usr.sbin/nsd/radtree.c
270
memmove(r->str, k+pos, len-pos);
usr.sbin/nsd/radtree.c
346
if(bstr_is_prefix(addstr, addlen, r->str, r->len)) {
usr.sbin/nsd/radtree.c
359
if(!radsel_prefix_remainder(region, addlen+1, r->str,
usr.sbin/nsd/radtree.c
372
if(!radnode_array_space(region, add, r->str[addlen])) {
usr.sbin/nsd/radtree.c
381
add->array[0].str = split_str;
usr.sbin/nsd/radtree.c
387
region_recycle(region, r->str, r->len);
usr.sbin/nsd/radtree.c
388
r->str = dupstr;
usr.sbin/nsd/radtree.c
390
} else if(bstr_is_prefix(r->str, r->len, addstr, addlen)) {
usr.sbin/nsd/radtree.c
41
region_recycle(region, n->array[i].str, n->array[i].len);
usr.sbin/nsd/radtree.c
413
r->node->array[add->pidx].str = split_str;
usr.sbin/nsd/radtree.c
423
common_len = bstr_common(r->str, r->len, addstr, addlen);
usr.sbin/nsd/radtree.c
435
r->str, r->len, &s1_str, &s1_len)) {
usr.sbin/nsd/radtree.c
463
if(!radnode_array_space(region, com, r->str[common_len]) ||
usr.sbin/nsd/radtree.c
477
r->node->pidx = r->str[common_len]-com->offset;
usr.sbin/nsd/radtree.c
481
com->array[r->node->pidx].str = s1_str;
usr.sbin/nsd/radtree.c
484
com->array[add->pidx].str = s2_str;
usr.sbin/nsd/radtree.c
486
region_recycle(region, r->str, r->len);
usr.sbin/nsd/radtree.c
487
r->str = common_str;
usr.sbin/nsd/radtree.c
531
&n->array[0].str, &n->array[0].len)) {
usr.sbin/nsd/radtree.c
619
region_recycle(region, n->array[i].str, n->array[i].len);
usr.sbin/nsd/radtree.c
647
if(par->array[pidx].str)
usr.sbin/nsd/radtree.c
648
memcpy(join, par->array[pidx].str, par->array[pidx].len);
usr.sbin/nsd/radtree.c
652
if(n->array[0].str)
usr.sbin/nsd/radtree.c
653
memmove(join+par->array[pidx].len+1, n->array[0].str, n->array[0].len);
usr.sbin/nsd/radtree.c
654
region_recycle(region, par->array[pidx].str, par->array[pidx].len);
usr.sbin/nsd/radtree.c
655
par->array[pidx].str = join;
usr.sbin/nsd/radtree.c
758
region_recycle(region, par->array[pidx].str, par->array[pidx].len);
usr.sbin/nsd/radtree.c
759
par->array[pidx].str = NULL;
usr.sbin/nsd/radtree.c
844
if(memcmp(&k[pos], n->array[byte].str,
usr.sbin/nsd/radtree.c
904
if( (memcmp(&k[pos], n->array[byte].str,
usr.sbin/nsd/radtree.c
922
if( (r=memcmp(&k[pos], n->array[byte].str,
usr.sbin/nsd/radtree.h
59
uint8_t* str;
usr.sbin/nsd/rdata.c
338
char str[INET_ADDRSTRLEN + 1];
usr.sbin/nsd/rdata.c
342
if(!inet_ntop(AF_INET, rdata + *offset, str, sizeof(str)))
usr.sbin/nsd/rdata.c
344
buffer_printf(output, "%s", str);
usr.sbin/nsd/rdata.c
362
char str[INET6_ADDRSTRLEN + 1];
usr.sbin/nsd/rdata.c
366
if (!inet_ntop(AF_INET6, rdata + *offset, str, sizeof(str)))
usr.sbin/nsd/rdata.c
368
buffer_printf(output, "%s", str);
usr.sbin/nsd/region-allocator.c
548
char buf[10240], *str=buf;
usr.sbin/nsd/region-allocator.c
551
snprintf(str, strl, "%lu objects (%lu small/%lu large), %lu bytes allocated (%lu wasted) in %lu chunks, %lu cleanups, %lu in recyclebin",
usr.sbin/nsd/region-allocator.c
560
len = strlen(str);
usr.sbin/nsd/region-allocator.c
561
str+=len;
usr.sbin/nsd/region-allocator.c
574
snprintf(str, strl, " %lu", (unsigned long)count);
usr.sbin/nsd/region-allocator.c
575
len = strlen(str);
usr.sbin/nsd/region-allocator.c
576
str+=len;
usr.sbin/nsd/remote.c
1018
print_soa_status(RES* ssl, const char* str, xfrd_soa_type* soa, time_t acq)
usr.sbin/nsd/remote.c
1021
if(!ssl_printf(ssl, " %s: \"%u since %s\"\n", str,
usr.sbin/nsd/remote.c
1025
if(!ssl_printf(ssl, " %s: none\n", str))
usr.sbin/nsd/remote.c
1194
do_verbosity(RES* ssl, char* str)
usr.sbin/nsd/remote.c
1196
int val = atoi(str);
usr.sbin/nsd/remote.c
1197
if(strcmp(str, "") == 0) {
usr.sbin/nsd/remote.c
1201
if(val == 0 && strcmp(str, "0") != 0) {
usr.sbin/nsd/remote.c
1202
(void)ssl_printf(ssl, "error in verbosity number syntax: %s\n", str);
usr.sbin/nsd/remote.c
2144
print_ssl_cfg_err(void* arg, const char* str)
usr.sbin/nsd/remote.c
2148
if(!ssl_printf(*ssl, "%s", str))
usr.sbin/nsd/remote.c
234
log_crypto_err(const char* str)
usr.sbin/nsd/remote.c
240
log_msg(LOG_ERR, "%s crypto %s", str, buf);
usr.sbin/nsd/remote.c
838
skipwhite(char* str)
usr.sbin/nsd/remote.c
841
while( isspace((unsigned char)*str) )
usr.sbin/nsd/remote.c
842
str++;
usr.sbin/nsd/remote.c
843
return str;
usr.sbin/nsd/rrl.c
354
rrl_msg(query_type* query, const char* str)
usr.sbin/nsd/rrl.c
369
str, d?wiredname2str(d):"", rrltype2str(c),
usr.sbin/nsd/server.c
1945
log_crypto_from_err(int level, const char* str, unsigned long err)
usr.sbin/nsd/server.c
1951
log_msg(level, "%s crypto %s", str, buf);
usr.sbin/nsd/server.c
1959
log_crypto_err(const char* str)
usr.sbin/nsd/server.c
1961
log_crypto_from_err(LOG_ERR, str, ERR_get_error());
usr.sbin/nsd/server.c
1965
log_crypto_warning(const char* str)
usr.sbin/nsd/server.c
1967
log_crypto_from_err(LOG_WARNING, str, ERR_get_error());
usr.sbin/nsd/simdzone/src/generic/base64.h
452
const uint32_t str
usr.sbin/nsd/simdzone/src/generic/base64.h
461
if (str & UINT32_C(0x80000000)) {
usr.sbin/nsd/simdzone/src/generic/base64.h
466
if (str & UINT32_C(1)) {
usr.sbin/nsd/simdzone/src/generic/base64.h
471
memcpy(*o, &str, sizeof (str));
usr.sbin/nsd/util.c
1009
, char* str, size_t len)
usr.sbin/nsd/util.c
1014
&((struct sockaddr_in6 *)addr)->sin6_addr, str, len))
usr.sbin/nsd/util.c
1015
strlcpy(str, "[unknown ip6, inet_ntop failed]", len);
usr.sbin/nsd/util.c
1020
str, len))
usr.sbin/nsd/util.c
1021
strlcpy(str, "[unknown ip4, inet_ntop failed]", len);
usr.sbin/nsd/util.c
1031
, char* str, size_t len)
usr.sbin/nsd/util.c
1040
snprintf(str, len, "%s@%u", ip,
usr.sbin/nsd/util.c
1049
snprintf(str, len, "%s@%u", ip,
usr.sbin/nsd/util.c
702
strip_string(char *str)
usr.sbin/nsd/util.c
704
char *start = str;
usr.sbin/nsd/util.c
705
char *end = str + strlen(str) - 1;
usr.sbin/nsd/util.c
711
str[0] = '\0';
usr.sbin/nsd/util.c
717
if (str != start)
usr.sbin/nsd/util.c
718
memmove(str, start, end - start + 1);
usr.sbin/nsd/util.h
347
void strip_string(char *str);
usr.sbin/nsd/util.h
407
, char* str, size_t len);
usr.sbin/nsd/util.h
416
, char* str, size_t len);
usr.sbin/nsd/xfrd-disk.c
363
neato_timeout(FILE* out, const char* str, time_t secs)
usr.sbin/nsd/xfrd-disk.c
365
fprintf(out, "%s", str);
usr.sbin/nsd/xfrd-disk.c
77
xfrd_read_check_str(FILE* in, const char* str)
usr.sbin/nsd/xfrd-disk.c
83
if(strcmp(p, str) != 0)
usr.sbin/nsd/xfrd-tcp.c
35
void log_crypto_err(const char* str); /* in server.c */
usr.sbin/nsd/zparser.y
1000
rdata_nsec3_param: str sp str sp str sp str trail
usr.sbin/nsd/zparser.y
1010
rdata_tlsa: str sp str sp str sp str_sp_seq trail
usr.sbin/nsd/zparser.y
1019
rdata_smimea: str sp str sp str sp str_sp_seq trail
usr.sbin/nsd/zparser.y
1028
rdata_dnskey: str sp str sp str sp str_sp_seq trail
usr.sbin/nsd/zparser.y
1037
rdata_ipsec_base: str sp str sp str sp dotted_str
usr.sbin/nsd/zparser.y
1090
rdata_nid: str sp dotted_str trail
usr.sbin/nsd/zparser.y
1097
rdata_l32: str sp dotted_str trail
usr.sbin/nsd/zparser.y
1104
rdata_l64: str sp dotted_str trail
usr.sbin/nsd/zparser.y
1111
rdata_lp: str sp dname trail
usr.sbin/nsd/zparser.y
1118
rdata_eui48: str trail
usr.sbin/nsd/zparser.y
1124
rdata_eui64: str trail
usr.sbin/nsd/zparser.y
1131
rdata_uri: str sp str sp dotted_str trail
usr.sbin/nsd/zparser.y
1140
rdata_caa: str sp str sp dotted_str trail
usr.sbin/nsd/zparser.y
1156
rdata_csync: str sp str nsec_seq
usr.sbin/nsd/zparser.y
1167
rdata_zonemd: str sp str sp str sp str_sp_seq trail
usr.sbin/nsd/zparser.y
1191
rdata_svcb_base: str sp dname
usr.sbin/nsd/zparser.y
1205
rdata_unknown: URR sp str sp str_sp_seq trail
usr.sbin/nsd/zparser.y
1211
| URR sp str trail
usr.sbin/nsd/zparser.y
144
str: STR | QSTR;
usr.sbin/nsd/zparser.y
150
ttl_directive: DOLLAR_TTL sp str trail
usr.sbin/nsd/zparser.y
262
label: str
usr.sbin/nsd/zparser.y
311
$$.str = (char *) region_alloc(parser->rr_region, $$.len);
usr.sbin/nsd/zparser.y
312
memmove($$.str, $1.str, $1.len);
usr.sbin/nsd/zparser.y
313
memmove($$.str + $1.len, dname_name(domain_dname(parser->origin)),
usr.sbin/nsd/zparser.y
320
$$.str = (char *) region_alloc(parser->rr_region, $$.len);
usr.sbin/nsd/zparser.y
321
memmove($$.str, $1.str, $1.len);
usr.sbin/nsd/zparser.y
322
$$.str[ $1.len ] = 0;
usr.sbin/nsd/zparser.y
331
$$.str = result;
usr.sbin/nsd/zparser.y
338
$$.str = (char *) region_alloc(parser->rr_region, $$.len);
usr.sbin/nsd/zparser.y
339
memmove($$.str, dname_name(domain_dname(parser->origin)), $$.len);
usr.sbin/nsd/zparser.y
342
$$.str = (char *) region_alloc(parser->rr_region, $$.len);
usr.sbin/nsd/zparser.y
343
$$.str[0] = 0;
usr.sbin/nsd/zparser.y
352
$$.str = (char *) region_alloc(parser->rr_region, $$.len);
usr.sbin/nsd/zparser.y
353
memcpy($$.str, $1.str, $1.len);
usr.sbin/nsd/zparser.y
354
$$.str[$1.len] = 0;
usr.sbin/nsd/zparser.y
358
wire_label: str
usr.sbin/nsd/zparser.y
370
$$.str = result;
usr.sbin/nsd/zparser.y
382
$$.str = (char *) region_alloc(parser->rr_region, $$.len);
usr.sbin/nsd/zparser.y
383
memmove($$.str, $1.str, $1.len);
usr.sbin/nsd/zparser.y
384
memmove($$.str + $1.len, $3.str, $3.len);
usr.sbin/nsd/zparser.y
429
concatenated_str_seq: str
usr.sbin/nsd/zparser.y
433
$$.str = region_strdup(parser->rr_region, ".");
usr.sbin/nsd/zparser.y
435
| concatenated_str_seq sp str
usr.sbin/nsd/zparser.y
438
$$.str = (char *) region_alloc(parser->rr_region, $$.len + 1);
usr.sbin/nsd/zparser.y
439
memcpy($$.str, $1.str, $1.len);
usr.sbin/nsd/zparser.y
440
memcpy($$.str + $1.len, " ", 1);
usr.sbin/nsd/zparser.y
441
memcpy($$.str + $1.len + 1, $3.str, $3.len);
usr.sbin/nsd/zparser.y
442
$$.str[$$.len] = '\0';
usr.sbin/nsd/zparser.y
444
| concatenated_str_seq '.' str
usr.sbin/nsd/zparser.y
447
$$.str = (char *) region_alloc(parser->rr_region, $$.len + 1);
usr.sbin/nsd/zparser.y
448
memcpy($$.str, $1.str, $1.len);
usr.sbin/nsd/zparser.y
449
memcpy($$.str + $1.len, ".", 1);
usr.sbin/nsd/zparser.y
450
memcpy($$.str + $1.len + 1, $3.str, $3.len);
usr.sbin/nsd/zparser.y
451
$$.str[$$.len] = '\0';
usr.sbin/nsd/zparser.y
456
nxt_seq: str
usr.sbin/nsd/zparser.y
465
| nxt_seq sp str
usr.sbin/nsd/zparser.y
482
| str nsec_seq
usr.sbin/nsd/zparser.y
504
str_sp_seq: str
usr.sbin/nsd/zparser.y
505
| str_sp_seq sp str
usr.sbin/nsd/zparser.y
511
$$.str = result;
usr.sbin/nsd/zparser.y
513
$$.str[$$.len] = '\0';
usr.sbin/nsd/zparser.y
521
str_dot_seq: str
usr.sbin/nsd/zparser.y
522
| str_dot_seq '.' str
usr.sbin/nsd/zparser.y
528
$$.str = result;
usr.sbin/nsd/zparser.y
530
$$.str[$$.len] = '\0';
usr.sbin/nsd/zparser.y
540
$$.str = ".";
usr.sbin/nsd/zparser.y
549
$$.str = result;
usr.sbin/nsd/zparser.y
551
$$.str[$$.len] = '\0';
usr.sbin/nsd/zparser.y
560
$$.str = result;
usr.sbin/nsd/zparser.y
562
$$.str[$$.len] = '\0';
usr.sbin/nsd/zparser.y
717
| str error NL
usr.sbin/nsd/zparser.y
742
rdata_soa: dname sp dname sp str sp str sp str sp str sp str trail
usr.sbin/nsd/zparser.y
755
rdata_wks: dotted_str sp str sp concatenated_str_seq trail
usr.sbin/nsd/zparser.y
762
rdata_hinfo: str sp str trail
usr.sbin/nsd/zparser.y
777
rdata_mx: str sp dname trail
usr.sbin/nsd/zparser.y
799
rdata_afsdb: str sp dname trail
usr.sbin/nsd/zparser.y
807
rdata_x25: str trail
usr.sbin/nsd/zparser.y
814
rdata_isdn: str trail
usr.sbin/nsd/zparser.y
818
| str sp str trail
usr.sbin/nsd/zparser.y
826
rdata_rt: str sp dname trail
usr.sbin/nsd/zparser.y
846
rdata_px: str sp dname sp dname trail
usr.sbin/nsd/zparser.y
87
%type <data> str concatenated_str_seq str_sp_seq str_dot_seq
usr.sbin/nsd/zparser.y
874
rdata_srv: str sp str sp str sp dname trail
usr.sbin/nsd/zparser.y
884
rdata_naptr: str sp str sp str sp str sp str sp dname trail
usr.sbin/nsd/zparser.y
896
rdata_kx: str sp dname trail
usr.sbin/nsd/zparser.y
904
rdata_cert: str sp str sp str sp str_sp_seq trail
usr.sbin/nsd/zparser.y
927
rdata_ds: str sp str sp str sp str_sp_seq trail
usr.sbin/nsd/zparser.y
936
rdata_dlv: str sp str sp str sp str_sp_seq trail
usr.sbin/nsd/zparser.y
945
rdata_sshfp: str sp str sp str_sp_seq trail
usr.sbin/nsd/zparser.y
960
rdata_rrsig: str sp str sp str sp str sp str sp str sp str sp wire_dname sp str_sp_seq trail
usr.sbin/nsd/zparser.y
985
rdata_nsec3: str sp str sp str sp str sp str nsec_seq
usr.sbin/ntpd/ntp_dns.c
146
const char *str;
usr.sbin/ntpd/ntp_dns.c
163
str = "IMSG_HOST_DNS";
usr.sbin/ntpd/ntp_dns.c
165
str = "IMSG_CONSTRAINT_DNS";
usr.sbin/ntpd/ntp_dns.c
168
fatalx("invalid %s received", str);
usr.sbin/ntpd/ntp_dns.c
172
fatalx("invalid %s received", str);
usr.sbin/pppd/cbcp.c
233
char str[256];
usr.sbin/pppd/cbcp.c
236
memcpy(str, p, olen - 4);
usr.sbin/pppd/cbcp.c
237
str[olen - 4] = 0;
usr.sbin/pppd/cbcp.c
238
printer(arg, " number = %s", str);
usr.sbin/pppd/chat/chat.c
1437
char *str, *buf0;
usr.sbin/pppd/chat/chat.c
1487
str = 0;
usr.sbin/pppd/chat/chat.c
1515
str = va_arg(args, char *);
usr.sbin/pppd/chat/chat.c
1520
str = num;
usr.sbin/pppd/chat/chat.c
1523
str = strerror(errno);
usr.sbin/pppd/chat/chat.c
1579
str = num + sizeof(num);
usr.sbin/pppd/chat/chat.c
1580
*--str = 0;
usr.sbin/pppd/chat/chat.c
1581
while (str > num + neg) {
usr.sbin/pppd/chat/chat.c
1582
*--str = hexchars[val % base];
usr.sbin/pppd/chat/chat.c
1589
*--str = '-';
usr.sbin/pppd/chat/chat.c
1592
*--str = 'x';
usr.sbin/pppd/chat/chat.c
1593
*--str = '0';
usr.sbin/pppd/chat/chat.c
1596
len = num + sizeof(num) - 1 - str;
usr.sbin/pppd/chat/chat.c
1598
len = strlen(str);
usr.sbin/pppd/chat/chat.c
1613
memcpy(buf, str, len);
usr.sbin/pppd/chat/chat.c
792
static char *str = "";
usr.sbin/pppd/chat/chat.c
800
str = s;
usr.sbin/pppd/chat/chat.c
805
if (*str)
usr.sbin/pppd/chat/chat.c
806
result = str;
usr.sbin/pppd/chat/chat.c
810
while (*str) {
usr.sbin/pppd/chat/chat.c
813
++str;
usr.sbin/pppd/chat/chat.c
817
if (*str == '\\') {
usr.sbin/pppd/chat/chat.c
818
++str;
usr.sbin/pppd/chat/chat.c
826
if (strchr (term, *str) == (char *) 0) {
usr.sbin/pppd/chat/chat.c
827
++str;
usr.sbin/pppd/chat/chat.c
834
*str++ = '\0';
usr.sbin/pppd/fsm.c
568
char str[80];
usr.sbin/pppd/fsm.c
581
fmtmsg(str, sizeof(str), "%0.*v", len, p);
usr.sbin/pppd/fsm.c
582
syslog(LOG_INFO, "%s terminated by peer (%s)", PROTO_NAME(f), str);
usr.sbin/pppd/main.c
1352
char *str, *f, *buf0;
usr.sbin/pppd/main.c
1402
str = 0;
usr.sbin/pppd/main.c
1430
str = va_arg(args, char *);
usr.sbin/pppd/main.c
1435
str = num;
usr.sbin/pppd/main.c
1438
str = strerror(errno);
usr.sbin/pppd/main.c
1441
str = ip_ntoa(va_arg(args, u_int32_t));
usr.sbin/pppd/main.c
1445
str = ctime(&t);
usr.sbin/pppd/main.c
1446
str += 4; /* chop off the day name */
usr.sbin/pppd/main.c
1447
str[15] = 0; /* chop off year and newline */
usr.sbin/pppd/main.c
1503
str = num + sizeof(num);
usr.sbin/pppd/main.c
1504
*--str = 0;
usr.sbin/pppd/main.c
1505
while (str > num + neg) {
usr.sbin/pppd/main.c
1506
*--str = hexchars[val % base];
usr.sbin/pppd/main.c
1513
*--str = '-';
usr.sbin/pppd/main.c
1516
*--str = 'x';
usr.sbin/pppd/main.c
1517
*--str = '0';
usr.sbin/pppd/main.c
1520
len = num + sizeof(num) - 1 - str;
usr.sbin/pppd/main.c
1522
len = strlen(str);
usr.sbin/pppd/main.c
1537
memcpy(buf, str, len);
usr.sbin/pppd/options.c
1972
char *str, *endp;
usr.sbin/pppd/options.c
1974
str = *argv;
usr.sbin/pppd/options.c
1975
abits = rbits = strtol(str, &endp, 0);
usr.sbin/pppd/options.c
1976
if (endp != str && *endp == ',') {
usr.sbin/pppd/options.c
1977
str = endp + 1;
usr.sbin/pppd/options.c
1978
abits = strtol(str, &endp, 0);
usr.sbin/pppd/options.c
1980
if (*endp != 0 || endp == str) {
usr.sbin/pppd/options.c
2015
char *str, *endp;
usr.sbin/pppd/options.c
2017
str = *argv;
usr.sbin/pppd/options.c
2018
abits = rbits = strtol(str, &endp, 0);
usr.sbin/pppd/options.c
2019
if (endp != str && *endp == ',') {
usr.sbin/pppd/options.c
2020
str = endp + 1;
usr.sbin/pppd/options.c
2021
abits = strtol(str, &endp, 0);
usr.sbin/pppd/options.c
2023
if (*endp != 0 || endp == str) {
usr.sbin/pppd/options.c
961
number_option(char *str, u_int32_t *valp, int base)
usr.sbin/pppd/options.c
965
*valp = strtoul(str, &ptr, base);
usr.sbin/pppd/options.c
966
if (ptr == str) {
usr.sbin/pppd/options.c
968
str, current_option);
usr.sbin/pppd/options.c
981
int_option(char *str, int *valp)
usr.sbin/pppd/options.c
985
if (!number_option(str, &v, 0))
usr.sbin/procmap/procmap.c
1042
strtopid(const char *str)
usr.sbin/procmap/procmap.c
1047
pid = (pid_t)strtonum(str, 0, INT_MAX, NULL);
usr.sbin/radiusctl/json.c
212
char *str;
usr.sbin/radiusctl/json.c
216
if (vasprintf(&str, fmt, ap) == -1)
usr.sbin/radiusctl/json.c
218
json_do_string(name, str);
usr.sbin/radiusctl/json.c
219
free(str);
usr.sbin/radiusctl/radiusctl.c
944
const char *str;
usr.sbin/radiusctl/radiusctl.c
959
return (codestr[i].str);
usr.sbin/radiusctl/radiusctl.c
966
hexstr(const u_char *data, int len, char *str, int strsiz)
usr.sbin/radiusctl/radiusctl.c
974
str[off++] = hex[(data[i] & 0xf0) >> 4];
usr.sbin/radiusctl/radiusctl.c
975
str[off++] = hex[(data[i] & 0x0f)];
usr.sbin/radiusctl/radiusctl.c
976
str[off++] = ' ';
usr.sbin/radiusctl/radiusctl.c
981
str[off++] = '\0';
usr.sbin/radiusctl/radiusctl.c
983
return (str);
usr.sbin/radiusd/radiusd_file.c
190
char *buf, *db[2], *str;
usr.sbin/radiusd/radiusd_file.c
210
if ((ret = cgetstr(buf, "password", &str)) < 0) {
usr.sbin/radiusd/radiusd_file.c
215
passz = strlen(str) + 1;
usr.sbin/radiusd/radiusd_file.c
221
strlcpy(ent->password, str, passz);
usr.sbin/radiusd/radiusd_ipcp.c
2070
char *str, *end, *colon, *colon0, *addr = NULL, *port = NULL;
usr.sbin/radiusd/radiusd_ipcp.c
2074
if ((str = strdup(str0)) == NULL)
usr.sbin/radiusd/radiusd_ipcp.c
2076
if (*str == '[' && (end = strchr(str + 1, ']')) != NULL) {
usr.sbin/radiusd/radiusd_ipcp.c
2077
addr = str + 1;
usr.sbin/radiusd/radiusd_ipcp.c
2086
} else if ((sb0 = strchr(str, '[')) != NULL &&
usr.sbin/radiusd/radiusd_ipcp.c
2088
addr = str;
usr.sbin/radiusd/radiusd_ipcp.c
2092
} else if ((colon0 = strchr(str, ':')) != NULL &&
usr.sbin/radiusd/radiusd_ipcp.c
2093
(colon = strrchr(str, ':')) != NULL && colon0 == colon) {
usr.sbin/radiusd/radiusd_ipcp.c
2095
addr = str;
usr.sbin/radiusd/radiusd_ipcp.c
2099
addr = str;
usr.sbin/radiusd/radiusd_ipcp.c
2110
free(str);
usr.sbin/radiusd/radiusd_ipcp.c
2113
free(str);
usr.sbin/rbootd/defs.h
76
#define FreeStr(str) free(str)
usr.sbin/rbootd/parseconf.c
228
ParseAddr(char *str)
usr.sbin/rbootd/parseconf.c
238
for (cp = str; *cp; cp++) {
usr.sbin/rbootd/utils.c
310
NewStr(char *str)
usr.sbin/rbootd/utils.c
314
stmp = strdup(str);
usr.sbin/rbootd/utils.c
316
syslog(LOG_ERR, "NewStr: out of memory (%s)", str);
usr.sbin/relayd/agentx_control.c
1122
char *sp, *p, str[BUFSIZ];
usr.sbin/relayd/agentx_control.c
1125
if (strlcpy(str, oidstr, sizeof(str)) >= sizeof(str))
usr.sbin/relayd/agentx_control.c
1129
for (p = sp = str; p != NULL; sp = p) {
usr.sbin/relayd/relay.c
2644
relay_bufferevent_print(struct ctl_relay_event *cre, const char *str)
usr.sbin/relayd/relay.c
2647
return (evbuffer_add(cre->output, str, strlen(str)));
usr.sbin/relayd/relay.c
2648
return (bufferevent_write(cre->bev, str, strlen(str)));
usr.sbin/relayd/relay_http.c
823
const char *str = NULL;
usr.sbin/relayd/relay_http.c
842
str = md;
usr.sbin/relayd/relay_http.c
845
str = val;
usr.sbin/relayd/relay_http.c
850
str, kv->kv_key, strcasecmp(kv->kv_key, str));
usr.sbin/relayd/relay_http.c
852
if (strcasecmp(kv->kv_key, str) == 0) {
usr.sbin/relayd/relay_http.c
941
relay_lookup_cookie(struct ctl_relay_event *cre, const char *str,
usr.sbin/relayd/relay_http.c
947
if ((val = strdup(str)) == NULL) {
usr.sbin/relayd/relayd.c
1505
translate_string(char *str)
usr.sbin/relayd/relayd.c
1510
reader = writer = str;
usr.sbin/relayd/relayd.c
407
char *str = NULL;
usr.sbin/relayd/relayd.c
431
str = get_string(imsg->data, IMSG_DATA_SIZE(imsg));
usr.sbin/relayd/relayd.c
432
parent_reload(env, CONFIG_RELOAD, str);
usr.sbin/relayd/relayd.c
433
free(str);
usr.sbin/rpki-client/ccr.c
195
hex_encode_asn1_string(const ASN1_STRING *str)
usr.sbin/rpki-client/ccr.c
197
return hex_encode(ASN1_STRING_get0_data(str), ASN1_STRING_length(str));
usr.sbin/rpki-client/http.c
336
hextochar(const char *str)
usr.sbin/rpki-client/http.c
340
c = str[0];
usr.sbin/rpki-client/http.c
348
c = str[1];
usr.sbin/rpki-client/http.c
358
url_decode(const char *str)
usr.sbin/rpki-client/http.c
363
if (str == NULL)
usr.sbin/rpki-client/http.c
365
if ((ret = malloc(strlen(str) + 1)) == NULL)
usr.sbin/rpki-client/http.c
367
for (i = 0, reallen = 0; str[i] != '\0'; i++, reallen++, ret++) {
usr.sbin/rpki-client/http.c
368
c = str[i];
usr.sbin/rpki-client/http.c
377
if (c == '%' && isxdigit((unsigned char)str[i + 1]) &&
usr.sbin/rpki-client/http.c
378
isxdigit((unsigned char)str[i + 2])) {
usr.sbin/rpki-client/http.c
379
*ret = hextochar(&str[i + 1]);
usr.sbin/rpki-client/json.c
212
char *str;
usr.sbin/rpki-client/json.c
216
if (vasprintf(&str, fmt, ap) == -1)
usr.sbin/rpki-client/json.c
218
json_do_string(name, str);
usr.sbin/rpki-client/json.c
219
free(str);
usr.sbin/smtpd/parse.y
3586
delaytonum(char *str)
usr.sbin/smtpd/parse.y
3594
len = strlen(str);
usr.sbin/smtpd/parse.y
3598
switch(str[len - 1]) {
usr.sbin/smtpd/parse.y
3620
str[len - 1] = '\0';
usr.sbin/smtpd/parse.y
3621
delay = strtonum(str, 1, INT_MAX / factor, &errstr);
usr.sbin/smtpd/parser.c
120
cmd_check(const char *str, struct node *node, struct parameter *res)
usr.sbin/smtpd/parser.c
126
if (!strcmp(str, node->token))
usr.sbin/smtpd/parser.c
131
res->u.u_str = str;
usr.sbin/smtpd/parser.c
135
res->u.u_int = strtonum(str, INT_MIN, INT_MAX, &e);
usr.sbin/smtpd/parser.c
141
if (strlen(str) != 8)
usr.sbin/smtpd/parser.c
143
res->u.u_msgid = text_to_msgid(str);
usr.sbin/smtpd/parser.c
149
if (strlen(str) != 16)
usr.sbin/smtpd/parser.c
151
res->u.u_evpid = text_to_evpid(str);
usr.sbin/smtpd/parser.c
157
res->u.u_routeid = strtonum(str, 1, LLONG_MAX, &e);
usr.sbin/smtpd/parser.c
163
if (text_to_sockaddr((struct sockaddr *)&res->u.u_ss, PF_UNSPEC, str) == 0)
usr.sbin/smtpd/parser.c
267
text_to_sockaddr(struct sockaddr *sa, int family, const char *str)
usr.sbin/smtpd/parser.c
278
if (text_to_sockaddr(sa, PF_INET, str) == 0)
usr.sbin/smtpd/parser.c
280
return text_to_sockaddr(sa, PF_INET6, str);
usr.sbin/smtpd/parser.c
283
if (inet_pton(PF_INET, str, &ina) != 1)
usr.sbin/smtpd/parser.c
294
cp = strchr(str, SCOPE_DELIMITER);
usr.sbin/smtpd/parser.c
296
str2 = strdup(str);
usr.sbin/smtpd/parser.c
299
str2[cp - str] = '\0';
usr.sbin/smtpd/parser.c
306
} else if (inet_pton(PF_INET6, str, &in6a) != 1)
usr.sbin/smtpd/parser.c
58
char *s, *str, *argv[ARGVMAX], **ap;
usr.sbin/smtpd/parser.c
62
str = s = strdup(pattern);
usr.sbin/smtpd/parser.c
63
if (str == NULL)
usr.sbin/smtpd/parser.c
66
for (ap = argv; n < ARGVMAX && (*ap = strsep(&str, " \t")) != NULL;) {
usr.sbin/smtpd/smtpctl.c
1328
str_to_trace(const char *str)
usr.sbin/smtpd/smtpctl.c
1330
if (!strcmp(str, "imsg"))
usr.sbin/smtpd/smtpctl.c
1332
if (!strcmp(str, "io"))
usr.sbin/smtpd/smtpctl.c
1334
if (!strcmp(str, "smtp"))
usr.sbin/smtpd/smtpctl.c
1336
if (!strcmp(str, "filters"))
usr.sbin/smtpd/smtpctl.c
1338
if (!strcmp(str, "mta"))
usr.sbin/smtpd/smtpctl.c
1340
if (!strcmp(str, "bounce"))
usr.sbin/smtpd/smtpctl.c
1342
if (!strcmp(str, "scheduler"))
usr.sbin/smtpd/smtpctl.c
1344
if (!strcmp(str, "lookup"))
usr.sbin/smtpd/smtpctl.c
1346
if (!strcmp(str, "stat"))
usr.sbin/smtpd/smtpctl.c
1348
if (!strcmp(str, "rules"))
usr.sbin/smtpd/smtpctl.c
1350
if (!strcmp(str, "mproc"))
usr.sbin/smtpd/smtpctl.c
1352
if (!strcmp(str, "expand"))
usr.sbin/smtpd/smtpctl.c
1354
if (!strcmp(str, "all"))
usr.sbin/smtpd/smtpctl.c
1356
errx(1, "invalid trace keyword: %s", str);
usr.sbin/smtpd/smtpctl.c
1361
str_to_profile(const char *str)
usr.sbin/smtpd/smtpctl.c
1363
if (!strcmp(str, "imsg"))
usr.sbin/smtpd/smtpctl.c
1365
if (!strcmp(str, "queue"))
usr.sbin/smtpd/smtpctl.c
1367
errx(1, "invalid profile keyword: %s", str);
usr.sbin/smtpd/smtpctl.c
268
const char *str;
usr.sbin/smtpd/smtpctl.c
271
srv_get_string(&str);
usr.sbin/smtpd/smtpctl.c
273
envelope_load_buffer(evp, str, strlen(str));
usr.sbin/smtpd/table.c
660
parse_sockaddr(struct sockaddr *sa, int family, const char *str)
usr.sbin/smtpd/table.c
672
if (parse_sockaddr(sa, PF_INET, str) == 0)
usr.sbin/smtpd/table.c
674
return parse_sockaddr(sa, PF_INET6, str);
usr.sbin/smtpd/table.c
677
if (inet_pton(PF_INET, str, &ina) != 1)
usr.sbin/smtpd/table.c
688
if (*str == '[')
usr.sbin/smtpd/table.c
689
str++;
usr.sbin/smtpd/table.c
690
if (!strncasecmp("ipv6:", str, 5))
usr.sbin/smtpd/table.c
691
str += 5;
usr.sbin/smtpd/table.c
693
if (strlcpy(addr, str, sizeof(addr)) >= sizeof(addr))
usr.sbin/smtpd/util.c
125
io_xprint(struct io *io, const char *str)
usr.sbin/smtpd/util.c
129
len = io_print(io, str);
usr.sbin/smtpd/util.c
131
fatal("io_xprint(%p, %s, ...)", io, str);
usr.sbin/smtpd/util.c
155
bsnprintf(char *str, size_t size, const char *format, ...)
usr.sbin/smtpd/util.c
161
ret = vsnprintf(str, size, format, ap);
usr.sbin/smtpd/util.c
481
valid_domainname(const char *str)
usr.sbin/smtpd/util.c
489
for (s = str; *s; s++) {
usr.sbin/smtpd/util.c
510
if (s == str || s - str > DNAMEMAX)
usr.sbin/smtpd/util.c
69
xstrdup(const char *str)
usr.sbin/smtpd/util.c
73
if ((r = strdup(str)) == NULL)
usr.sbin/snmpd/application.c
1867
char buf[1024], oidbuf[1024], *str;
usr.sbin/snmpd/application.c
1892
str = smi_print_element(vb->av_value);
usr.sbin/snmpd/application.c
1893
strlcat(buf, str == NULL ? "???" : str, sizeof(buf));
usr.sbin/snmpd/application.c
1894
free(str);
usr.sbin/snmpd/application_agentx.c
1031
appl_agentx_string2ostring(const char *str, struct ax_ostring *ostring)
usr.sbin/snmpd/application_agentx.c
1033
if (str == NULL) {
usr.sbin/snmpd/application_agentx.c
1038
ostring->aos_slen = strlen(str);
usr.sbin/snmpd/application_agentx.c
1039
if ((ostring->aos_string = strdup(str)) == NULL)
usr.sbin/snmpd/ax.c
1240
ax_pdu_add_str(struct ax *ax, struct ax_ostring *str)
usr.sbin/snmpd/ax.c
1244
if (ax_pdu_add_uint32(ax, str->aos_slen) == -1)
usr.sbin/snmpd/ax.c
1247
if ((zeroes = (4 - (str->aos_slen % 4))) == 4)
usr.sbin/snmpd/ax.c
1249
length = str->aos_slen + zeroes;
usr.sbin/snmpd/ax.c
1253
memcpy(&(ax->ax_wbuf[ax->ax_wbtlen]), str->aos_string, str->aos_slen);
usr.sbin/snmpd/ax.c
1254
ax->ax_wbtlen += str->aos_slen;
usr.sbin/snmpd/mib.y
1692
mib_string2oid(const char *str, struct ber_oid *oid)
usr.sbin/snmpd/mib.y
1702
if (isdigit(str[0])) {
usr.sbin/snmpd/mib.y
1703
if (ober_string2oid(str, oid) == -1)
usr.sbin/snmpd/mib.y
1708
if (strlcpy(mname, str, sizeof(mname)) >= sizeof(mname))
usr.sbin/snmpd/parse.y
551
char *endptr, str[21];
usr.sbin/snmpd/parse.y
553
snprintf(str, sizeof(str), "%lld", $2);
usr.sbin/snmpd/parse.y
555
mode = strtol(str, &endptr, 8);
usr.sbin/snmpd/smi.c
104
if (strlcpy(str, oidstr, sizeof(str)) >= sizeof(str))
usr.sbin/snmpd/smi.c
112
for (p = sp = str; p != NULL; sp = p) {
usr.sbin/snmpd/smi.c
370
char *str = NULL, *buf, *p;
usr.sbin/snmpd/smi.c
381
if (asprintf(&str, "%lld", v) == -1)
usr.sbin/snmpd/smi.c
387
if ((str = calloc(1, len * 2 + 1)) == NULL)
usr.sbin/snmpd/smi.c
389
for (p = str, i = 0; i < len; i++) {
usr.sbin/snmpd/smi.c
397
if (asprintf(&str, "%s",
usr.sbin/snmpd/smi.c
406
if (asprintf(&str, "%s",
usr.sbin/snmpd/smi.c
413
if (asprintf(&str, "\"%s\"", p) == -1) {
usr.sbin/snmpd/smi.c
425
str = strdup("");
usr.sbin/snmpd/smi.c
429
return (str);
usr.sbin/snmpd/smi.c
432
free(str);
usr.sbin/snmpd/smi.c
439
char *str = NULL, *buf, *p;
usr.sbin/snmpd/smi.c
450
if (asprintf(&str, "%lld", v) == -1)
usr.sbin/snmpd/smi.c
456
if (asprintf(&str, "%s", mib_oid2string(&o, strbuf,
usr.sbin/snmpd/smi.c
467
if (asprintf(&str, "\"%s\"", p) == -1) {
usr.sbin/snmpd/smi.c
474
if (asprintf(&str, "null") == -1)
usr.sbin/snmpd/smi.c
479
if (asprintf(&str, "[U/%u]", root->be_type) == -1)
usr.sbin/snmpd/smi.c
489
if (asprintf(&str, "%s",
usr.sbin/snmpd/smi.c
496
if (asprintf(&str, "%lld(c32)", v) == -1)
usr.sbin/snmpd/smi.c
502
if (asprintf(&str, "%lld(g32)", v) == -1)
usr.sbin/snmpd/smi.c
508
if (asprintf(&str, "%lld.%llds", v/100, v%100) == -1)
usr.sbin/snmpd/smi.c
518
if (asprintf(&str, "\"%s\"(opaque)", p) == -1) {
usr.sbin/snmpd/smi.c
527
if (asprintf(&str, "%lld(c64)", v) == -1)
usr.sbin/snmpd/smi.c
532
if (asprintf(&str, "[A/%u]", root->be_type) == -1)
usr.sbin/snmpd/smi.c
540
str = strdup("noSuchObject");
usr.sbin/snmpd/smi.c
543
str = strdup("noSuchInstance");
usr.sbin/snmpd/smi.c
546
str = strdup("endOfMibView");
usr.sbin/snmpd/smi.c
550
if (asprintf(&str, "[C/%u]", root->be_type) == -1)
usr.sbin/snmpd/smi.c
557
if (asprintf(&str, "[%hhu/%u]", root->be_class,
usr.sbin/snmpd/smi.c
563
return (str);
usr.sbin/snmpd/smi.c
566
free(str);
usr.sbin/snmpd/smi.c
68
char str[256];
usr.sbin/snmpd/smi.c
85
snprintf(str, sizeof(str), "%s", value->o_name);
usr.sbin/snmpd/smi.c
87
snprintf(str, sizeof(str), "%d", key.o_oid[i]);
usr.sbin/snmpd/smi.c
88
strlcat(buf, str, len);
usr.sbin/snmpd/smi.c
99
char *sp, *p, str[BUFSIZ];
usr.sbin/syslogd/syslogd.c
3044
loghost_parse(char *str, char **proto, char **host, char **port)
usr.sbin/syslogd/syslogd.c
3048
if ((*host = strchr(str, ':')) &&
usr.sbin/syslogd/syslogd.c
3050
prefix = str;
usr.sbin/syslogd/syslogd.c
3052
str = *host + 3;
usr.sbin/syslogd/syslogd.c
3059
*host = str;
usr.sbin/syslogd/syslogd.c
3062
str = strchr(*host, ']');
usr.sbin/syslogd/syslogd.c
3063
if (str == NULL)
usr.sbin/syslogd/syslogd.c
3065
*str++ = '\0';
usr.sbin/syslogd/syslogd.c
3067
*port = strrchr(str, ':');
usr.sbin/tcpdump/pfctl_osfp.c
43
# define DEBUG(fp, str, v...) \
usr.sbin/tcpdump/pfctl_osfp.c
44
fprintf(stderr, "%s:%s:%s " str "\n", (fp)->fp_os.fp_class_nm, \
usr.sbin/tcpdump/pfctl_osfp.c
47
# define DEBUG(fp, str, v...) ((void)0)
usr.sbin/tcpdump/print-decnet.c
854
char *str;
usr.sbin/tcpdump/print-decnet.c
859
str = malloc(len);
usr.sbin/tcpdump/print-decnet.c
860
if (str == NULL)
usr.sbin/tcpdump/print-decnet.c
862
snprintf(str, len, "%d.%d", area, node);
usr.sbin/tcpdump/print-decnet.c
863
return(str);
usr.sbin/tcpdump/print-dhcp6.c
253
char *str;
usr.sbin/tcpdump/print-dhcp6.c
257
uuid_to_string(&uuid, &str, &status);
usr.sbin/tcpdump/print-dhcp6.c
259
printf("%s", str);
usr.sbin/tcpdump/print-dhcp6.c
260
free(str);
usr.sbin/tcpdump/print-icmp.c
168
const char *str, *fmt;
usr.sbin/tcpdump/print-icmp.c
177
str = buf;
usr.sbin/tcpdump/print-icmp.c
200
str = tok2str(icmp2str, "type-#%u", dp->icmp_type);
usr.sbin/tcpdump/print-icmp.c
331
str = "time exceeded in-transit";
usr.sbin/tcpdump/print-icmp.c
335
str = "ip reassembly time exceeded";
usr.sbin/tcpdump/print-icmp.c
348
str = "requested option absent";
usr.sbin/tcpdump/print-icmp.c
369
str = tok2str(icmp2str, "type-#%u", dp->icmp_type);
usr.sbin/tcpdump/print-icmp.c
372
printf("icmp: %s", str);
usr.sbin/tcpdump/print-icmp6.c
531
const char *str;
usr.sbin/tcpdump/print-lldp.c
100
int ch = str[i];
usr.sbin/tcpdump/print-lldp.c
95
lldp_print_str(const u_int8_t *str, int len)
usr.sbin/tcpdump/print-ospf.c
108
printf("%c%s", sep, bp->str);
usr.sbin/tcpdump/print-ospf.c
44
const char *str;
usr.sbin/tcpdump/print-ospf6.c
112
printf("%c%s", sep, bp->str);
usr.sbin/tcpdump/print-ospf6.c
45
const char *str;
usr.sbin/tcpdump/print-sl.c
204
print_sl_change(const char *str, const u_char *cp)
usr.sbin/tcpdump/print-sl.c
212
printf(" %s%d", str, i);
usr.sbin/tcpdump/print-snmp.c
1088
printf("C=%.*s ", (int)elem.asnlen, elem.data.str);
usr.sbin/tcpdump/print-snmp.c
1157
printf("%02hhX", elem.data.str[i]);
usr.sbin/tcpdump/print-snmp.c
1292
authpriv = *elem.data.str & 0x3;
usr.sbin/tcpdump/print-snmp.c
1293
if (vflag && (*elem.data.str & 0x7) != 0) {
usr.sbin/tcpdump/print-snmp.c
1295
SNMP3_AUTH(*elem.data.str) ? "a" : "noA",
usr.sbin/tcpdump/print-snmp.c
1296
SNMP3_PRIV(*elem.data.str) ? "" : "No",
usr.sbin/tcpdump/print-snmp.c
1297
SNMP3_REPORT(*elem.data.str) ? "|Reportable" : ""
usr.sbin/tcpdump/print-snmp.c
1373
printf("%02hhX", elem.data.str[i]);
usr.sbin/tcpdump/print-snmp.c
310
const u_char *str;
usr.sbin/tcpdump/print-snmp.c
508
elem->data.str = p;
usr.sbin/tcpdump/print-snmp.c
714
const u_char *p = elem->data.str;
usr.sbin/tcpdump/print-snmp.c
717
p = elem->data.str;
usr.sbin/tcpdump/privsep.c
919
write_string(int fd, const char *str)
usr.sbin/tcpdump/privsep.c
923
len = strlen(str) + 1;
usr.sbin/tcpdump/privsep.c
925
must_write(fd, str, len);
usr.sbin/tcpdump/privsep.c
930
write_block(int fd, size_t size, const char *str)
usr.sbin/tcpdump/privsep.c
933
must_write(fd, str, size);
usr.sbin/tcpdump/savestr.c
38
savestr(const char *str)
usr.sbin/tcpdump/savestr.c
45
size = strlen(str) + 1;
usr.sbin/tcpdump/savestr.c
56
(void)strlcpy(strptr, str, size);
usr.sbin/tftp-proxy/tftp-proxy.c
918
static char str[6];
usr.sbin/tftp-proxy/tftp-proxy.c
922
(void)snprintf(str, sizeof(str), "RRQ");
usr.sbin/tftp-proxy/tftp-proxy.c
925
(void)snprintf(str, sizeof(str), "WRQ");
usr.sbin/tftp-proxy/tftp-proxy.c
928
(void)snprintf(str, sizeof(str), "(%d)", code);
usr.sbin/tftp-proxy/tftp-proxy.c
932
return (str);
usr.sbin/unbound/cachedb/cachedb.c
215
cachedb_find_backend(const char* str)
usr.sbin/unbound/cachedb/cachedb.c
218
if(strcmp(str, redis_backend.name) == 0)
usr.sbin/unbound/cachedb/cachedb.c
221
if(strcmp(str, testframe_backend.name) == 0)
usr.sbin/unbound/cachedb/redis.c
501
data ? "set" : "get", rep->str);
usr.sbin/unbound/cachedb/redis.c
546
sldns_buffer_write(result_buffer, rep->str, rep->len);
usr.sbin/unbound/daemon/acl_list.c
100
else if(strcmp(str, "deny") == 0)
usr.sbin/unbound/daemon/acl_list.c
102
else if(strcmp(str, "refuse") == 0)
usr.sbin/unbound/daemon/acl_list.c
104
else if(strcmp(str, "deny_non_local") == 0)
usr.sbin/unbound/daemon/acl_list.c
106
else if(strcmp(str, "refuse_non_local") == 0)
usr.sbin/unbound/daemon/acl_list.c
108
else if(strcmp(str, "allow_snoop") == 0)
usr.sbin/unbound/daemon/acl_list.c
110
else if(strcmp(str, "allow_setrd") == 0)
usr.sbin/unbound/daemon/acl_list.c
112
else if (strcmp(str, "allow_cookie") == 0)
usr.sbin/unbound/daemon/acl_list.c
115
log_err("access control type %s unknown", str);
usr.sbin/unbound/daemon/acl_list.c
123
acl_list_str_cfg(struct acl_list* acl, const char* str, const char* s2,
usr.sbin/unbound/daemon/acl_list.c
133
if(!netblockstrtoaddr(str, UNBOUND_DNS_PORT, &addr, &addrlen, &net)) {
usr.sbin/unbound/daemon/acl_list.c
134
log_err("cannot parse access control: %s %s", str, s2);
usr.sbin/unbound/daemon/acl_list.c
147
acl_find_or_create_str2addr(struct acl_list* acl, const char* str,
usr.sbin/unbound/daemon/acl_list.c
153
int net = (str_is_ip6(str)?128:32);
usr.sbin/unbound/daemon/acl_list.c
155
if(!extstrtoaddr(str, &addr, &addrlen, port)) {
usr.sbin/unbound/daemon/acl_list.c
156
log_err("cannot parse interface: %s", str);
usr.sbin/unbound/daemon/acl_list.c
160
if(!netblockstrtoaddr(str, UNBOUND_DNS_PORT, &addr, &addrlen, &net)) {
usr.sbin/unbound/daemon/acl_list.c
161
log_err("cannot parse netblock: %s", str);
usr.sbin/unbound/daemon/acl_list.c
231
acl_list_tags_cfg(struct acl_list* acl, const char* str, uint8_t* bitmap,
usr.sbin/unbound/daemon/acl_list.c
235
if(!(node=acl_find_or_create_str2addr(acl, str, is_interface, port))) {
usr.sbin/unbound/daemon/acl_list.c
237
log_err("non-configured interface: %s", str);
usr.sbin/unbound/daemon/acl_list.c
251
acl_list_view_cfg(struct acl_list* acl, const char* str, const char* str2,
usr.sbin/unbound/daemon/acl_list.c
255
if(!(node=acl_find_or_create_str2addr(acl, str, is_interface, port))) {
usr.sbin/unbound/daemon/acl_list.c
257
log_err("non-configured interface: %s", str);
usr.sbin/unbound/daemon/acl_list.c
272
const char* str, const char* tag, const char* action,
usr.sbin/unbound/daemon/acl_list.c
278
if(!(node=acl_find_or_create_str2addr(acl, str, is_interface, port))) {
usr.sbin/unbound/daemon/acl_list.c
280
log_err("non-configured interface: %s", str);
usr.sbin/unbound/daemon/acl_list.c
295
log_err("cannot parse tag (define-tag it): %s %s", str, tag);
usr.sbin/unbound/daemon/acl_list.c
299
log_err("tagid too large for array %s %s", str, tag);
usr.sbin/unbound/daemon/acl_list.c
304
str, tag, action);
usr.sbin/unbound/daemon/acl_list.c
334
snprintf(buf, sizeof(buf), "%s %s", ".", head->str);
usr.sbin/unbound/daemon/acl_list.c
346
err_data = head->str;
usr.sbin/unbound/daemon/acl_list.c
365
const char* str, const char* tag, const char* data,
usr.sbin/unbound/daemon/acl_list.c
371
if(!(node=acl_find_or_create_str2addr(acl, str, is_interface, port))) {
usr.sbin/unbound/daemon/acl_list.c
373
log_err("non-configured interface: %s", str);
usr.sbin/unbound/daemon/acl_list.c
388
log_err("cannot parse tag (define-tag it): %s %s", str, tag);
usr.sbin/unbound/daemon/acl_list.c
392
log_err("tagid too large for array %s %s", str, tag);
usr.sbin/unbound/daemon/acl_list.c
399
str, tag, data);
usr.sbin/unbound/daemon/acl_list.c
422
log_assert(p->str && p->str2);
usr.sbin/unbound/daemon/acl_list.c
423
if(!acl_list_str_cfg(acl, p->str, p->str2, 1))
usr.sbin/unbound/daemon/acl_list.c
437
log_assert(p->str && p->str2);
usr.sbin/unbound/daemon/acl_list.c
438
if(!acl_list_view_cfg(acl, p->str, p->str2, v, 0, 0)) {
usr.sbin/unbound/daemon/acl_list.c
444
free(p->str);
usr.sbin/unbound/daemon/acl_list.c
459
log_assert(p->str && p->str2);
usr.sbin/unbound/daemon/acl_list.c
460
if(!acl_list_tags_cfg(acl, p->str, p->str2, p->str2len, 0, 0)) {
usr.sbin/unbound/daemon/acl_list.c
466
free(p->str);
usr.sbin/unbound/daemon/acl_list.c
483
log_assert(p->str && p->str2 && p->str3);
usr.sbin/unbound/daemon/acl_list.c
484
if(!acl_list_tag_action_cfg(acl, cfg, p->str, p->str2,
usr.sbin/unbound/daemon/acl_list.c
491
free(p->str);
usr.sbin/unbound/daemon/acl_list.c
509
log_assert(p->str && p->str2 && p->str3);
usr.sbin/unbound/daemon/acl_list.c
510
if(!acl_list_tag_data_cfg(acl, cfg, p->str, p->str2, p->str3,
usr.sbin/unbound/daemon/acl_list.c
517
free(p->str);
usr.sbin/unbound/daemon/acl_list.c
577
log_assert(p->str && p->str2);
usr.sbin/unbound/daemon/acl_list.c
578
if(!resolve_interface_names(&p->str, 1, NULL, &resif, &num_resif))
usr.sbin/unbound/daemon/acl_list.c
603
log_assert(p->str && p->str2);
usr.sbin/unbound/daemon/acl_list.c
604
if(!resolve_interface_names(&p->str, 1, NULL, &resif, &num_resif)) {
usr.sbin/unbound/daemon/acl_list.c
619
free(p->str);
usr.sbin/unbound/daemon/acl_list.c
638
log_assert(p->str && p->str2);
usr.sbin/unbound/daemon/acl_list.c
639
if(!resolve_interface_names(&p->str, 1, NULL, &resif, &num_resif)) {
usr.sbin/unbound/daemon/acl_list.c
654
free(p->str);
usr.sbin/unbound/daemon/acl_list.c
675
log_assert(p->str && p->str2 && p->str3);
usr.sbin/unbound/daemon/acl_list.c
676
if(!resolve_interface_names(&p->str, 1, NULL, &resif, &num_resif)) {
usr.sbin/unbound/daemon/acl_list.c
691
free(p->str);
usr.sbin/unbound/daemon/acl_list.c
713
log_assert(p->str && p->str2 && p->str3);
usr.sbin/unbound/daemon/acl_list.c
714
if(!resolve_interface_names(&p->str, 1, NULL, &resif, &num_resif)) {
usr.sbin/unbound/daemon/acl_list.c
729
free(p->str);
usr.sbin/unbound/daemon/acl_list.c
96
parse_acl_access(const char* str, enum acl_access* control)
usr.sbin/unbound/daemon/acl_list.c
98
if(strcmp(str, "allow") == 0)
usr.sbin/unbound/daemon/cachedump.c
139
if(!ssl_printf(ssl, "%s", s->str))
usr.sbin/unbound/daemon/cachedump.c
439
read_fixed(RES* ssl, sldns_buffer* buf, const char* str)
usr.sbin/unbound/daemon/cachedump.c
442
return (strcmp((char*)sldns_buffer_begin(buf), str) == 0);
usr.sbin/unbound/daemon/cachedump.c
663
load_qinfo(char* str, struct query_info* qinfo, struct regional* region)
usr.sbin/unbound/daemon/cachedump.c
666
char* s = str;
usr.sbin/unbound/daemon/cachedump.c
672
s = strchr(str, ' ');
usr.sbin/unbound/daemon/cachedump.c
676
log_warn("error line too short, %s", str);
usr.sbin/unbound/daemon/cachedump.c
683
status = sldns_str2wire_rr_question_buf(str, rr, &rr_len, &dname_len,
usr.sbin/unbound/daemon/cachedump.c
687
sldns_get_errorstr_parse(status), str);
usr.sbin/unbound/daemon/cachedump.c
70
spool_txt_string(struct config_strlist_head* txt, char* str)
usr.sbin/unbound/daemon/cachedump.c
72
if(!cfg_strlist_append(txt, strdup(str))) {
usr.sbin/unbound/daemon/remote.c
1254
parse_arg_name(RES* ssl, char* str, uint8_t** res, size_t* len, int* labs)
usr.sbin/unbound/daemon/remote.c
1262
if(str[0] == '\0') {
usr.sbin/unbound/daemon/remote.c
1266
status = sldns_str2wire_dname_buf(str, nm, &nmlen);
usr.sbin/unbound/daemon/remote.c
1268
ssl_printf(ssl, "error cannot parse name %s at %d: %s\n", str,
usr.sbin/unbound/daemon/remote.c
1444
check_RR_syntax(RES* ssl, char* str, int line)
usr.sbin/unbound/daemon/remote.c
1448
int s = sldns_str2wire_rr_buf(str, rr, &len, &dname_len, 3600,
usr.sbin/unbound/daemon/remote.c
1456
linestr, LDNS_WIREPARSE_OFFSET(s), str,
usr.sbin/unbound/daemon/remote.c
1855
memcpy(addr, edge->str, n);
usr.sbin/unbound/daemon/remote.c
224
if(p->str && p->str[0] != '/')
usr.sbin/unbound/daemon/remote.c
225
log_warn("control-interface %s is not using TLS, but plain transfer, because first control-interface in config file is a local socket (starts with a /).", p->str);
usr.sbin/unbound/daemon/remote.c
2561
ssl_print_name_dp(RES* ssl, const char* str, uint8_t* nm, uint16_t dclass,
usr.sbin/unbound/daemon/remote.c
2568
if(str) { /* print header for forward, stub */
usr.sbin/unbound/daemon/remote.c
2571
if(!ssl_printf(ssl, "%s %s %s ", buf, (c?c:"CLASS??"), str)) {
usr.sbin/unbound/daemon/remote.c
2971
(worker->daemon->rc->accept_list && worker->daemon->cfg->control_ifs.first && worker->daemon->cfg->control_ifs.first->str && worker->daemon->cfg->control_ifs.first->str[0] == '/'?"(namedpipe)":"")
usr.sbin/unbound/daemon/remote.c
3349
char str[32];
usr.sbin/unbound/daemon/remote.c
3363
snprintf(str, sizeof(str), "stub %sprime%s",
usr.sbin/unbound/daemon/remote.c
3365
if(!ssl_print_name_dp(ssl, str, z->node.name,
usr.sbin/unbound/daemon/remote.c
4792
fr_add_incompatible_option(const char* desc, char* str, size_t len)
usr.sbin/unbound/daemon/remote.c
4794
size_t slen = strlen(str);
usr.sbin/unbound/daemon/remote.c
4797
snprintf(str, len, "%s", desc);
usr.sbin/unbound/daemon/remote.c
4802
snprintf(str+slen, len-slen, " %s", desc);
usr.sbin/unbound/daemon/remote.c
4806
#define FR_CHECK_CHANGED_CFG(desc, var, str) \
usr.sbin/unbound/daemon/remote.c
4809
fr_add_incompatible_option(desc, str, sizeof(str)); \
usr.sbin/unbound/daemon/remote.c
4814
#define FR_CHECK_CHANGED_CFG_STR(desc, var, str) \
usr.sbin/unbound/daemon/remote.c
4820
fr_add_incompatible_option(desc, str, sizeof(str)); \
usr.sbin/unbound/daemon/remote.c
4825
#define FR_CHECK_CHANGED_CFG_STRLIST(desc, var, str) do { \
usr.sbin/unbound/daemon/remote.c
4826
fr_check_changed_cfg_strlist(cfg->var, newcfg->var, desc, str, \
usr.sbin/unbound/daemon/remote.c
4827
sizeof(str)); \
usr.sbin/unbound/daemon/remote.c
4831
struct config_strlist* cmp2, const char* desc, char* str, size_t len)
usr.sbin/unbound/daemon/remote.c
4835
if((!p1->str && p2->str) ||
usr.sbin/unbound/daemon/remote.c
4836
(p1->str && !p2->str) ||
usr.sbin/unbound/daemon/remote.c
4837
(p1->str && p2->str && strcmp(p1->str, p2->str) != 0)) {
usr.sbin/unbound/daemon/remote.c
4839
fr_add_incompatible_option(desc, str, len);
usr.sbin/unbound/daemon/remote.c
4846
fr_add_incompatible_option(desc, str, len);
usr.sbin/unbound/daemon/remote.c
4857
struct config_str2list* cmp2, const char* desc, char* str, size_t len)
usr.sbin/unbound/daemon/remote.c
4861
if((!p1->str && p2->str) ||
usr.sbin/unbound/daemon/remote.c
4862
(p1->str && !p2->str) ||
usr.sbin/unbound/daemon/remote.c
4863
(p1->str && p2->str && strcmp(p1->str, p2->str) != 0)) {
usr.sbin/unbound/daemon/remote.c
4865
fr_add_incompatible_option(desc, str, len);
usr.sbin/unbound/daemon/remote.c
4873
fr_add_incompatible_option(desc, str, len);
usr.sbin/unbound/daemon/remote.c
4880
fr_add_incompatible_option(desc, str, len);
usr.sbin/unbound/daemon/remote.c
5062
m += sizeof(*s) + getmem_str(s->str);
usr.sbin/unbound/daemon/remote.c
5073
m += sizeof(*s) + getmem_str(s->str) + getmem_str(s->str2);
usr.sbin/unbound/daemon/remote.c
5084
m += sizeof(*s) + getmem_str(s->str) + getmem_str(s->str2)
usr.sbin/unbound/daemon/remote.c
5096
m += sizeof(*s) + getmem_str(s->str) + (s->str2?s->str2len:0);
usr.sbin/unbound/daemon/remote.c
663
skipwhite(char* str)
usr.sbin/unbound/daemon/remote.c
666
while( isspace((unsigned char)*str) )
usr.sbin/unbound/daemon/remote.c
667
str++;
usr.sbin/unbound/daemon/remote.c
668
return str;
usr.sbin/unbound/daemon/remote.c
776
do_verbosity(RES* ssl, char* str)
usr.sbin/unbound/daemon/remote.c
778
int val = atoi(str);
usr.sbin/unbound/daemon/remote.c
779
if(val == 0 && strcmp(str, "0") != 0) {
usr.sbin/unbound/daemon/remote.c
780
ssl_printf(ssl, "error in verbosity number syntax: %s\n", str);
usr.sbin/unbound/daemon/remote.c
7972
printq->client_item = item->str;
usr.sbin/unbound/daemon/remote.c
7973
item->str = NULL;
usr.sbin/unbound/daemon/unbound.c
475
cfg->tls_session_ticket_keys.first->str[0] != 0),
usr.sbin/unbound/daemon/unbound.c
493
cfg->tls_session_ticket_keys.first->str[0] != 0) {
usr.sbin/unbound/daemon/worker.c
1006
sldns_buffer_write(pkt, str[i], len);
usr.sbin/unbound/daemon/worker.c
1016
chaos_replyonestr(sldns_buffer* pkt, const char* str, struct edns_data* edns,
usr.sbin/unbound/daemon/worker.c
1019
chaos_replystr(pkt, (char**)&str, 1, edns, worker, repinfo);
usr.sbin/unbound/daemon/worker.c
1049
char* str;
usr.sbin/unbound/daemon/worker.c
1052
str = (char*)regional_alloc(w->scratchpad, str_len);
usr.sbin/unbound/daemon/worker.c
1053
if(!str) continue;
usr.sbin/unbound/daemon/worker.c
1061
str_array[num] = str;
usr.sbin/unbound/daemon/worker.c
1065
(void)sldns_wire2str_dname_buf(ta->name, ta->namelen, str, str_len);
usr.sbin/unbound/daemon/worker.c
1066
str_len -= strlen(str); str += strlen(str);
usr.sbin/unbound/daemon/worker.c
1069
snprintf(str, str_len, " %u", (unsigned)tags[i]);
usr.sbin/unbound/daemon/worker.c
1070
str_len -= strlen(str); str += strlen(str);
usr.sbin/unbound/daemon/worker.c
965
chaos_replystr(sldns_buffer* pkt, char** str, int num, struct edns_data* edns,
usr.sbin/unbound/daemon/worker.c
992
size_t len = strlen(str[i]);
usr.sbin/unbound/dns64/dns64.c
330
dns64_insert_ignore_aaaa(struct dns64_env* dns64_env, char* str)
usr.sbin/unbound/dns64/dns64.c
339
node->name = sldns_str2wire_dname(str, &node->len);
usr.sbin/unbound/dns64/dns64.c
342
log_err("cannot parse dns64-ignore-aaaa: %s", str);
usr.sbin/unbound/dns64/dns64.c
388
if(!dns64_insert_ignore_aaaa(dns64_env, s->str))
usr.sbin/unbound/dnscrypt/dnscrypt.c
600
nm = dnsc_chroot_path(cfg, head->str);
usr.sbin/unbound/dnscrypt/dnscrypt.c
605
fatal_exit("dnsc_parse_certs: failed to load %s: %s", head->str, strerror(errno));
usr.sbin/unbound/dnscrypt/dnscrypt.c
608
if(strcmp(head->str, head2->str) == 0) {
usr.sbin/unbound/dnscrypt/dnscrypt.c
611
verbose(VERB_OPS, "Cert %s is rotated and will not be distributed via DNS", head->str);
usr.sbin/unbound/dnscrypt/dnscrypt.c
615
verbose(VERB_OPS, "Loaded cert %s", head->str);
usr.sbin/unbound/dnscrypt/dnscrypt.c
814
nm = dnsc_chroot_path(cfg, head->str);
usr.sbin/unbound/dnscrypt/dnscrypt.c
819
fatal_exit("dnsc_parse_keys: failed to load %s: %s", head->str, strerror(errno));
usr.sbin/unbound/dnscrypt/dnscrypt.c
821
verbose(VERB_OPS, "Loaded key %s", head->str);
usr.sbin/unbound/dnscrypt/dnscrypt.c
824
fatal_exit("dnsc_parse_keys: could not generate public key from %s", head->str);
usr.sbin/unbound/dnscrypt/dnscrypt.c
827
verbose(VERB_OPS, "Crypt public key fingerprint for %s: %s", head->str, fingerprint);
usr.sbin/unbound/dnscrypt/dnscrypt.c
846
head->str, fingerprint);
usr.sbin/unbound/dnscrypt/dnscrypt.c
860
head->str);
usr.sbin/unbound/dnstap/dnstap_fstrm.c
177
char* str = buf;
usr.sbin/unbound/dnstap/dnstap_fstrm.c
189
(void)sldns_str_print(&str, &slen, "accept");
usr.sbin/unbound/dnstap/dnstap_fstrm.c
191
(void)sldns_str_print(&str, &slen, "start");
usr.sbin/unbound/dnstap/dnstap_fstrm.c
193
(void)sldns_str_print(&str, &slen, "stop");
usr.sbin/unbound/dnstap/dnstap_fstrm.c
195
(void)sldns_str_print(&str, &slen, "ready");
usr.sbin/unbound/dnstap/dnstap_fstrm.c
197
(void)sldns_str_print(&str, &slen, "finish");
usr.sbin/unbound/dnstap/dnstap_fstrm.c
199
(void)sldns_str_print(&str, &slen, "type%d", (int)frametype);
usr.sbin/unbound/dnstap/dnstap_fstrm.c
209
(void)sldns_str_print(&str, &slen, "malformed_field");
usr.sbin/unbound/dnstap/dnstap_fstrm.c
214
(void)sldns_str_print(&str, &slen, " content-type(");
usr.sbin/unbound/dnstap/dnstap_fstrm.c
218
(void)sldns_str_print(&str, &slen, "%s", tempf);
usr.sbin/unbound/dnstap/dnstap_fstrm.c
220
(void)sldns_str_print(&str, &slen, "<error-too-long>");
usr.sbin/unbound/dnstap/dnstap_fstrm.c
222
(void)sldns_str_print(&str, &slen, ")");
usr.sbin/unbound/dnstap/dnstap_fstrm.c
224
(void)sldns_str_print(&str, &slen,
usr.sbin/unbound/dnstap/dnstap_fstrm.c
233
(void)sldns_str_print(&str, &slen, " trailing-bytes"
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
1238
s = tap_socket_new_local(item->str, &dtio_mainfdcallback,
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
1253
s = tap_socket_new_tcpaccept(item->str, &dtio_mainfdcallback,
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
1269
s = tap_socket_new_tlsaccept(item->str, &dtio_mainfdcallback,
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
1285
char str[] = "exit on signal \n";
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
1286
str[15] = '0' + (sig/10)%10;
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
1287
str[16] = '0' + sig%10;
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
1289
(void)!write(STDERR_FILENO, str, strlen(str));
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
1785
void remote_get_opt_ssl(char* ATTR_UNUSED(str), void* ATTR_UNUSED(arg))
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
564
static char* possible_str(ProtobufCBinaryData str)
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
568
for(i=0; i<str.len; i++) {
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
569
if(!isprint((unsigned char)str.data[i]))
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
573
char* res = malloc(str.len+1);
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
575
memmove(res, str.data, str.len);
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
576
res[str.len] = 0;
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
581
char* res = malloc(str.len*2+1);
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
583
for(i=0; i<str.len; i++) {
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
584
res[i*2] = hex[(str.data[i]&0xf0)>>4];
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
585
res[i*2+1] = hex[str.data[i]&0x0f];
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
587
res[str.len*2] = 0;
usr.sbin/unbound/dynlibmod/dynlibmod.c
92
if (cfg_item == NULL || cfg_item->str == NULL || cfg_item->str[0] == 0) {
usr.sbin/unbound/dynlibmod/dynlibmod.c
96
de->fname = cfg_item->str;
usr.sbin/unbound/edns-subnet/addrtree.c
233
free(parent_edge->str);
usr.sbin/unbound/edns-subnet/addrtree.c
288
free(n->parent_edge->str);
usr.sbin/unbound/edns-subnet/addrtree.c
419
common = bits_common(edge->str, edge->len, addr, sourcemask,
usr.sbin/unbound/edns-subnet/addrtree.c
443
index = getbit(edge->str, edge->len, common);
usr.sbin/unbound/edns-subnet/addrtree.c
513
if (!issub(edge->str, edge->len, addr, sourcemask, depth))
usr.sbin/unbound/edns-subnet/addrtree.c
68
edge->str = (addrkey_t *)calloc(n, sizeof (addrkey_t));
usr.sbin/unbound/edns-subnet/addrtree.c
69
if (!edge->str) {
usr.sbin/unbound/edns-subnet/addrtree.c
73
memcpy(edge->str, addr, n * sizeof (addrkey_t));
usr.sbin/unbound/edns-subnet/addrtree.h
114
addrkey_t *str;
usr.sbin/unbound/edns-subnet/subnet-whitelist.c
104
verbose(VERB_ALGO, "send-client-subnet: %s", str);
usr.sbin/unbound/edns-subnet/subnet-whitelist.c
105
if(!netblockstrtoaddr(str, UNBOUND_DNS_PORT, &addr, &addrlen, &net)) {
usr.sbin/unbound/edns-subnet/subnet-whitelist.c
106
log_err("cannot parse send-client-subnet netblock: %s", str);
usr.sbin/unbound/edns-subnet/subnet-whitelist.c
122
log_assert(p->str);
usr.sbin/unbound/edns-subnet/subnet-whitelist.c
123
if(!upstream_str_cfg(whitelist, p->str))
usr.sbin/unbound/edns-subnet/subnet-whitelist.c
141
log_assert(p->str);
usr.sbin/unbound/edns-subnet/subnet-whitelist.c
142
nm = sldns_str2wire_dname(p->str, &nm_len);
usr.sbin/unbound/edns-subnet/subnet-whitelist.c
144
log_err("cannot parse client-subnet-zone: %s", p->str);
usr.sbin/unbound/edns-subnet/subnet-whitelist.c
164
"client-subnet-zone: %s", p->str);
usr.sbin/unbound/edns-subnet/subnet-whitelist.c
99
upstream_str_cfg(struct ecs_whitelist* whitelist, const char* str)
usr.sbin/unbound/edns-subnet/subnetmod.c
845
char* str = buf;
usr.sbin/unbound/edns-subnet/subnetmod.c
851
(void)sldns_wire2str_edns_subnet_print(&str, &str_len,
usr.sbin/unbound/ipsecmod/ipsecmod-whitelist.c
91
log_assert(p->str);
usr.sbin/unbound/ipsecmod/ipsecmod-whitelist.c
92
if(!whitelist_str_cfg(whitelist, p->str))
usr.sbin/unbound/ipsecmod/ipsecmod.c
253
char str[65535], *s, *tempstring;
usr.sbin/unbound/ipsecmod/ipsecmod.c
266
s = str;
usr.sbin/unbound/ipsecmod/ipsecmod.c
267
slen = sizeof(str);
usr.sbin/unbound/ipsecmod/ipsecmod.c
366
if(w >= (int)sizeof(str)) {
usr.sbin/unbound/ipsecmod/ipsecmod.c
370
verbose(VERB_ALGO, "ipsecmod: shell command: '%s'", str);
usr.sbin/unbound/ipsecmod/ipsecmod.c
372
if(system(str) != 0)
usr.sbin/unbound/ipset/ipset.c
251
plen = strlen(p->str);
usr.sbin/unbound/ipset/ipset.c
252
if (p->str[plen - 1] == '.') {
usr.sbin/unbound/ipset/ipset.c
262
if ((ds && strncasecmp(p->str, ds, plen) == 0)
usr.sbin/unbound/ipset/ipset.c
263
|| (qs && strncasecmp(p->str, qs, plen) == 0)) {
usr.sbin/unbound/iterator/iter_delegpt.c
311
const char* str = " ";
usr.sbin/unbound/iterator/iter_delegpt.c
312
if(a->bogus && a->lame) str = " BOGUS ADDR_LAME ";
usr.sbin/unbound/iterator/iter_delegpt.c
313
else if(a->bogus) str = " BOGUS ";
usr.sbin/unbound/iterator/iter_delegpt.c
314
else if(a->lame) str = " ADDR_LAME ";
usr.sbin/unbound/iterator/iter_delegpt.c
316
snprintf(s, sizeof(s), "%s[%s]", str,
usr.sbin/unbound/iterator/iter_delegpt.c
318
else snprintf(s, sizeof(s), "%s", str);
usr.sbin/unbound/iterator/iter_donotq.c
115
log_assert(p->str);
usr.sbin/unbound/iterator/iter_donotq.c
116
if(!donotq_str_cfg(dq, p->str))
usr.sbin/unbound/iterator/iter_donotq.c
92
donotq_str_cfg(struct iter_donotq* dq, const char* str)
usr.sbin/unbound/iterator/iter_donotq.c
97
verbose(VERB_ALGO, "donotq: %s", str);
usr.sbin/unbound/iterator/iter_donotq.c
98
if(!netblockstrtoaddr(str, UNBOUND_DNS_PORT, &addr, &addrlen, &net)) {
usr.sbin/unbound/iterator/iter_donotq.c
99
log_err("cannot parse donotquery netblock: %s", str);
usr.sbin/unbound/iterator/iter_fwd.c
224
log_assert(p->str);
usr.sbin/unbound/iterator/iter_fwd.c
225
dname = authextstrtodname(p->str, &port, &tls_auth_name);
usr.sbin/unbound/iterator/iter_fwd.c
228
s->name, p->str);
usr.sbin/unbound/iterator/iter_fwd.c
234
"ssl library, ignored name for %s", p->str);
usr.sbin/unbound/iterator/iter_fwd.c
255
log_assert(p->str);
usr.sbin/unbound/iterator/iter_fwd.c
256
if(!authextstrtoaddr(p->str, &addr, &addrlen, &tls_auth_name)) {
usr.sbin/unbound/iterator/iter_fwd.c
258
s->name, p->str);
usr.sbin/unbound/iterator/iter_fwd.c
264
"ssl library, ignored name for %s", p->str);
usr.sbin/unbound/iterator/iter_hints.c
227
log_assert(p->str);
usr.sbin/unbound/iterator/iter_hints.c
228
dname = authextstrtodname(p->str, &port, &tls_auth_name);
usr.sbin/unbound/iterator/iter_hints.c
231
s->name, p->str);
usr.sbin/unbound/iterator/iter_hints.c
237
"ssl library, ignored name for %s", p->str);
usr.sbin/unbound/iterator/iter_hints.c
258
log_assert(p->str);
usr.sbin/unbound/iterator/iter_hints.c
259
if(!authextstrtoaddr(p->str, &addr, &addrlen, &auth_name)) {
usr.sbin/unbound/iterator/iter_hints.c
261
s->name, p->str);
usr.sbin/unbound/iterator/iter_hints.c
267
"ssl library, ignored name for %s", p->str);
usr.sbin/unbound/iterator/iter_hints.c
427
log_assert(p->str);
usr.sbin/unbound/iterator/iter_hints.c
428
if(p->str && p->str[0]) {
usr.sbin/unbound/iterator/iter_hints.c
429
char* f = p->str;
usr.sbin/unbound/iterator/iter_hints.c
431
strncmp(p->str, cfg->chrootdir,
usr.sbin/unbound/iterator/iter_priv.c
102
"private-address: %s", p->str);
usr.sbin/unbound/iterator/iter_priv.c
119
log_assert(p->str);
usr.sbin/unbound/iterator/iter_priv.c
120
nm = sldns_str2wire_dname(p->str, &nm_len);
usr.sbin/unbound/iterator/iter_priv.c
122
log_err("cannot parse private-domain: %s", p->str);
usr.sbin/unbound/iterator/iter_priv.c
141
"private-domain: %s", p->str);
usr.sbin/unbound/iterator/iter_priv.c
88
log_assert(p->str);
usr.sbin/unbound/iterator/iter_priv.c
89
if(!netblockstrtoaddr(p->str, UNBOUND_DNS_PORT, &addr,
usr.sbin/unbound/iterator/iter_priv.c
91
log_err("cannot parse private-address: %s", p->str);
usr.sbin/unbound/iterator/iter_scrub.c
63
remove_rrset(const char* str, sldns_buffer* pkt, struct msg_parse* msg,
usr.sbin/unbound/iterator/iter_scrub.c
66
if(verbosity >= VERB_QUERY && str
usr.sbin/unbound/iterator/iter_scrub.c
70
log_nametypeclass(VERB_QUERY, str, buf,
usr.sbin/unbound/iterator/iter_utils.c
101
int count = cfg_count_numbers(str);
usr.sbin/unbound/iterator/iter_utils.c
103
log_err("Cannot parse target fetch policy: \"%s\"", str);
usr.sbin/unbound/iterator/iter_utils.c
113
if(!fetch_fill(*target_fetch_policy, *max_dependency_depth, str))
usr.sbin/unbound/iterator/iter_utils.c
153
uint8_t* nm = sldns_str2wire_dname(p->str, &len);
usr.sbin/unbound/iterator/iter_utils.c
155
log_err("could not parse %s", p->str);
usr.sbin/unbound/iterator/iter_utils.c
81
fetch_fill(int* target_fetch_policy, int max_dependency_depth, const char* str)
usr.sbin/unbound/iterator/iter_utils.c
83
char* s = (char*)str, *e;
usr.sbin/unbound/iterator/iter_utils.c
99
const char* str)
usr.sbin/unbound/iterator/iter_utils.h
442
const char* str);
usr.sbin/unbound/libunbound/libunbound.c
429
ub_ctx_get_option(struct ub_ctx* ctx, const char* opt, char** str)
usr.sbin/unbound/libunbound/libunbound.c
433
r = config_get_option_collate(ctx->env->cfg, opt, str);
usr.sbin/unbound/libunbound/libworker.c
1030
void remote_get_opt_ssl(char* ATTR_UNUSED(str), void* ATTR_UNUSED(arg))
usr.sbin/unbound/libunbound/unbound.h
309
int ub_ctx_get_option(struct ub_ctx* ctx, const char* opt, char** str);
usr.sbin/unbound/respip/respip.c
362
log_assert(p->str && p->str2);
usr.sbin/unbound/respip/respip.c
363
if(!respip_tag_cfg(set, p->str, p->str2, p->str2len)) {
usr.sbin/unbound/respip/respip.c
367
free(p->str);
usr.sbin/unbound/respip/respip.c
376
log_assert(pa->str && pa->str2);
usr.sbin/unbound/respip/respip.c
377
if(!respip_action_cfg(set, pa->str, pa->str2)) {
usr.sbin/unbound/respip/respip.c
381
free(pa->str);
usr.sbin/unbound/respip/respip.c
390
log_assert(pd->str && pd->str2);
usr.sbin/unbound/respip/respip.c
391
if(!respip_data_cfg(set, pd->str, pd->str2)) {
usr.sbin/unbound/respip/respip.c
395
free(pd->str);
usr.sbin/unbound/services/authzone.c
1634
write_out(FILE* out, const char* str, size_t len)
usr.sbin/unbound/services/authzone.c
1639
r = fwrite(str, 1, len, out);
usr.sbin/unbound/services/authzone.c
4801
char str[LDNS_MAX_DOMAINLEN];
usr.sbin/unbound/services/authzone.c
4809
dname_str(buf, str);
usr.sbin/unbound/services/authzone.c
4812
str, typestr);
usr.sbin/unbound/services/authzone.c
7185
dup_prefix(char* str, size_t num)
usr.sbin/unbound/services/authzone.c
7188
size_t len = strlen(str);
usr.sbin/unbound/services/authzone.c
7195
memmove(result, str, num);
usr.sbin/unbound/services/authzone.c
7202
dup_all(char* str)
usr.sbin/unbound/services/authzone.c
7204
char* result = strdup(str);
usr.sbin/unbound/services/authzone.c
7311
if(!parse_url(p->str, &m->host, &m->file, &m->port, &m->ssl))
usr.sbin/unbound/services/authzone.c
7318
m->host = strdup(p->str);
usr.sbin/unbound/services/authzone.c
7328
m->host = strdup(p->str);
usr.sbin/unbound/services/authzone.c
7811
char str[LDNS_MAX_DOMAINLEN];
usr.sbin/unbound/services/authzone.c
7813
dname_str(name, str);
usr.sbin/unbound/services/authzone.c
7815
verbose(level, "auth zone %s %s", str, msg);
usr.sbin/unbound/services/cache/infra.c
217
d = domain_limit_findcreate(domain_limits, p->str);
usr.sbin/unbound/services/cache/infra.c
223
d = domain_limit_findcreate(domain_limits, p->str);
usr.sbin/unbound/services/cache/infra.c
244
wait_limit_netblock_findcreate(struct rbtree_type* tree, char* str)
usr.sbin/unbound/services/cache/infra.c
251
if(!netblockstrtoaddr(str, 0, &addr, &addrlen, &net)) {
usr.sbin/unbound/services/cache/infra.c
252
log_err("cannot parse wait limit netblock '%s'", str);
usr.sbin/unbound/services/cache/infra.c
285
p->str);
usr.sbin/unbound/services/cache/infra.c
292
p->str);
usr.sbin/unbound/services/cache/infra.c
302
wait_limit_netblock_default(struct rbtree_type* tree, char* str, int limit)
usr.sbin/unbound/services/cache/infra.c
305
d = wait_limit_netblock_findcreate(tree, str);
usr.sbin/unbound/services/listen_dnsport.c
1842
if(!resolve_ifa_name(addrs, p->str, resif, num_resif)) {
usr.sbin/unbound/services/listen_dnsport.c
1885
(*resif)[idx] = strdup(p->str);
usr.sbin/unbound/services/localzone.c
1058
if(!get_rr_nameclass(p->str, &rr_name, &rr_class, &rr_type)) {
usr.sbin/unbound/services/localzone.c
1059
log_err("Bad local-data RR %s", p->str);
usr.sbin/unbound/services/localzone.c
1164
if(!lz_enter_zone_tag(zones, p->str, p->str2, p->str2len,
usr.sbin/unbound/services/localzone.c
1179
if(!lz_enter_rr_str(zones, p->str))
usr.sbin/unbound/services/localzone.c
1385
snprintf(buf, sizeof(buf), ". %s", p->str);
usr.sbin/unbound/services/localzone.c
170
parse_dname(const char* str, uint8_t** res, size_t* len, int* labs)
usr.sbin/unbound/services/localzone.c
172
*res = sldns_str2wire_dname(str, len);
usr.sbin/unbound/services/localzone.c
175
log_err("cannot parse name %s", str);
usr.sbin/unbound/services/localzone.c
226
char str[LDNS_MAX_DOMAINLEN];
usr.sbin/unbound/services/localzone.c
227
dname_str(nm, str);
usr.sbin/unbound/services/localzone.c
228
log_warn("duplicate local-zone %s", str);
usr.sbin/unbound/services/localzone.c
271
rrstr_get_rr_content(const char* str, uint8_t** nm, uint16_t* type,
usr.sbin/unbound/services/localzone.c
276
int e = sldns_str2wire_rr_buf(str, rr, &len, &dname_len, 3600,
usr.sbin/unbound/services/localzone.c
280
LDNS_WIREPARSE_OFFSET(e), str,
usr.sbin/unbound/services/localzone.c
299
get_rr_nameclass(const char* str, uint8_t** nm, uint16_t* dclass,
usr.sbin/unbound/services/localzone.c
304
int s = sldns_str2wire_rr_buf(str, rr, &len, &dname_len, 3600,
usr.sbin/unbound/services/localzone.c
308
LDNS_WIREPARSE_OFFSET(s), str,
usr.sbin/unbound/services/localzone.c
796
lz_enter_zone(zones, p->str, p->str2,
usr.sbin/unbound/services/localzone.c
837
if(strncasecmp(p->str, name, len) == 0 &&
usr.sbin/unbound/services/localzone.c
838
(strlen(p->str) == len || (strlen(p->str)==len+1 &&
usr.sbin/unbound/services/localzone.c
839
p->str[len] == '.')))
usr.sbin/unbound/services/localzone.c
851
char str[1024]; /* known long enough */
usr.sbin/unbound/services/localzone.c
856
snprintf(str, sizeof(str), "%s 10800 IN SOA localhost. "
usr.sbin/unbound/services/localzone.c
858
if(!lz_enter_rr_into_zone(z, str)) {
usr.sbin/unbound/services/localzone.c
862
snprintf(str, sizeof(str), "%s 10800 IN NS localhost. ", name);
usr.sbin/unbound/services/localzone.c
863
if(!lz_enter_rr_into_zone(z, str)) {
usr.sbin/unbound/services/localzone.c
989
if(!lz_enter_override(zones, p->str, p->str2, p->str3,
usr.sbin/unbound/services/localzone.h
357
int local_zone_str2type(const char* str, enum localzone_type* t);
usr.sbin/unbound/services/localzone.h
451
int parse_dname(const char* str, uint8_t** res, size_t* len, int* labs);
usr.sbin/unbound/services/localzone.h
512
int rrstr_get_rr_content(const char* str, uint8_t** nm, uint16_t* type,
usr.sbin/unbound/services/mesh.c
2229
mesh_stats(struct mesh_area* mesh, const char* str)
usr.sbin/unbound/services/mesh.c
2234
str, (unsigned)mesh->all.count,
usr.sbin/unbound/services/mesh.c
900
n->str = regional_strdup(region, s->str);
usr.sbin/unbound/services/mesh.c
901
if(!n->str)
usr.sbin/unbound/services/mesh.h
591
void mesh_stats(struct mesh_area* mesh, const char* str);
usr.sbin/unbound/services/modstack.c
216
module_func_block* module_factory(const char** str)
usr.sbin/unbound/services/modstack.c
219
const char* s = *str;
usr.sbin/unbound/services/modstack.c
227
*str = s;
usr.sbin/unbound/services/modstack.h
94
struct module_func_block* module_factory(const char** str);
usr.sbin/unbound/services/rpz.c
1065
char str[LDNS_MAX_DOMAINLEN];
usr.sbin/unbound/services/rpz.c
1066
dname_str(dname, str);
usr.sbin/unbound/services/rpz.c
1068
str, rpz_action_to_string(a));
usr.sbin/unbound/services/rpz.c
669
char str[LDNS_MAX_DOMAINLEN];
usr.sbin/unbound/services/rpz.c
681
dname_str(dname, str);
usr.sbin/unbound/services/rpz.c
683
str, rpz_action_to_string(a));
usr.sbin/unbound/services/view.c
179
nd_str = strdup(nd->str);
usr.sbin/unbound/sldns/sbuffer.h
475
sldns_buffer_write_string_at(sldns_buffer *buffer, size_t at, const char *str)
usr.sbin/unbound/sldns/sbuffer.h
477
sldns_buffer_write_at(buffer, at, str, strlen(str));
usr.sbin/unbound/sldns/sbuffer.h
486
sldns_buffer_write_string(sldns_buffer *buffer, const char *str)
usr.sbin/unbound/sldns/sbuffer.h
488
sldns_buffer_write(buffer, str, strlen(str));
usr.sbin/unbound/sldns/str2wire.c
140
int sldns_str2wire_dname_buf(const char* str, uint8_t* buf, size_t* len)
usr.sbin/unbound/sldns/str2wire.c
142
return sldns_str2wire_dname_buf_rel(str, buf, len, NULL);
usr.sbin/unbound/sldns/str2wire.c
145
int sldns_str2wire_dname_buf_origin(const char* str, uint8_t* buf, size_t* len,
usr.sbin/unbound/sldns/str2wire.c
150
int s = sldns_str2wire_dname_buf_rel(str, buf, &dlen, &rel);
usr.sbin/unbound/sldns/str2wire.c
1619
static int sldns_str2wire_svcparam_buf(const char* str, uint8_t* rd, size_t* rd_len)
usr.sbin/unbound/sldns/str2wire.c
1626
eq_pos = strchr(str, '=');
usr.sbin/unbound/sldns/str2wire.c
1648
return sldns_str2wire_svcparam_value(str, eq_pos - str,
usr.sbin/unbound/sldns/str2wire.c
1653
return sldns_str2wire_svcparam_value(str, eq_pos - str, NULL, rd, rd_len);
usr.sbin/unbound/sldns/str2wire.c
1657
return sldns_str2wire_svcparam_value(str, strlen(str), NULL, rd, rd_len);
usr.sbin/unbound/sldns/str2wire.c
1661
int sldns_str2wire_rdf_buf(const char* str, uint8_t* rd, size_t* len,
usr.sbin/unbound/sldns/str2wire.c
1666
return sldns_str2wire_dname_buf(str, rd, len);
usr.sbin/unbound/sldns/str2wire.c
1668
return sldns_str2wire_int8_buf(str, rd, len);
usr.sbin/unbound/sldns/str2wire.c
1670
return sldns_str2wire_int16_buf(str, rd, len);
usr.sbin/unbound/sldns/str2wire.c
1672
return sldns_str2wire_int32_buf(str, rd, len);
usr.sbin/unbound/sldns/str2wire.c
1674
return sldns_str2wire_a_buf(str, rd, len);
usr.sbin/unbound/sldns/str2wire.c
1676
return sldns_str2wire_aaaa_buf(str, rd, len);
usr.sbin/unbound/sldns/str2wire.c
1678
return sldns_str2wire_str_buf(str, rd, len);
usr.sbin/unbound/sldns/str2wire.c
1680
return sldns_str2wire_apl_buf(str, rd, len);
usr.sbin/unbound/sldns/str2wire.c
1682
return sldns_str2wire_b64_buf(str, rd, len);
usr.sbin/unbound/sldns/str2wire.c
1684
return sldns_str2wire_b32_ext_buf(str, rd, len);
usr.sbin/unbound/sldns/str2wire.c
1686
return sldns_str2wire_hex_buf(str, rd, len);
usr.sbin/unbound/sldns/str2wire.c
1688
return sldns_str2wire_nsec_buf(str, rd, len);
usr.sbin/unbound/sldns/str2wire.c
1690
return sldns_str2wire_type_buf(str, rd, len);
usr.sbin/unbound/sldns/str2wire.c
1692
return sldns_str2wire_class_buf(str, rd, len);
usr.sbin/unbound/sldns/str2wire.c
1694
return sldns_str2wire_cert_alg_buf(str, rd, len);
usr.sbin/unbound/sldns/str2wire.c
1696
return sldns_str2wire_alg_buf(str, rd, len);
usr.sbin/unbound/sldns/str2wire.c
1698
return sldns_str2wire_time_buf(str, rd, len);
usr.sbin/unbound/sldns/str2wire.c
1700
return sldns_str2wire_period_buf(str, rd, len);
usr.sbin/unbound/sldns/str2wire.c
1702
return sldns_str2wire_tsigtime_buf(str, rd, len);
usr.sbin/unbound/sldns/str2wire.c
1704
return sldns_str2wire_loc_buf(str, rd, len);
usr.sbin/unbound/sldns/str2wire.c
1706
return sldns_str2wire_wks_buf(str, rd, len);
usr.sbin/unbound/sldns/str2wire.c
1708
return sldns_str2wire_nsap_buf(str, rd, len);
usr.sbin/unbound/sldns/str2wire.c
171
uint8_t* sldns_str2wire_dname(const char* str, size_t* len)
usr.sbin/unbound/sldns/str2wire.c
1710
return sldns_str2wire_atma_buf(str, rd, len);
usr.sbin/unbound/sldns/str2wire.c
1712
return sldns_str2wire_ipseckey_buf(str, rd, len);
usr.sbin/unbound/sldns/str2wire.c
1714
return sldns_str2wire_nsec3_salt_buf(str, rd, len);
usr.sbin/unbound/sldns/str2wire.c
1716
return sldns_str2wire_b32_ext_buf(str, rd, len);
usr.sbin/unbound/sldns/str2wire.c
1718
return sldns_str2wire_ilnp64_buf(str, rd, len);
usr.sbin/unbound/sldns/str2wire.c
1720
return sldns_str2wire_eui48_buf(str, rd, len);
usr.sbin/unbound/sldns/str2wire.c
1722
return sldns_str2wire_eui64_buf(str, rd, len);
usr.sbin/unbound/sldns/str2wire.c
1724
return sldns_str2wire_unquoted_buf(str, rd, len);
usr.sbin/unbound/sldns/str2wire.c
1726
return sldns_str2wire_tag_buf(str, rd, len);
usr.sbin/unbound/sldns/str2wire.c
1728
return sldns_str2wire_long_str_buf(str, rd, len);
usr.sbin/unbound/sldns/str2wire.c
1730
return sldns_str2wire_tsigerror_buf(str, rd, len);
usr.sbin/unbound/sldns/str2wire.c
1732
return sldns_str2wire_hip_buf(str, rd, len);
usr.sbin/unbound/sldns/str2wire.c
1734
return sldns_str2wire_int16_data_buf(str, rd, len);
usr.sbin/unbound/sldns/str2wire.c
1736
return sldns_str2wire_svcparam_buf(str, rd, len);
usr.sbin/unbound/sldns/str2wire.c
1747
int sldns_str2wire_int8_buf(const char* str, uint8_t* rd, size_t* len)
usr.sbin/unbound/sldns/str2wire.c
175
if(sldns_str2wire_dname_buf(str, dname, len) == 0) {
usr.sbin/unbound/sldns/str2wire.c
1750
uint8_t r = (uint8_t)strtol((char*)str, &end, 10);
usr.sbin/unbound/sldns/str2wire.c
1752
return RET_ERR(LDNS_WIREPARSE_ERR_SYNTAX_INT, end-(char*)str);
usr.sbin/unbound/sldns/str2wire.c
1760
int sldns_str2wire_int16_buf(const char* str, uint8_t* rd, size_t* len)
usr.sbin/unbound/sldns/str2wire.c
1763
uint16_t r = (uint16_t)strtol((char*)str, &end, 10);
usr.sbin/unbound/sldns/str2wire.c
1765
return RET_ERR(LDNS_WIREPARSE_ERR_SYNTAX_INT, end-(char*)str);
usr.sbin/unbound/sldns/str2wire.c
1773
int sldns_str2wire_int32_buf(const char* str, uint8_t* rd, size_t* len)
usr.sbin/unbound/sldns/str2wire.c
1779
if(*str == '-')
usr.sbin/unbound/sldns/str2wire.c
1780
r = (uint32_t)strtol((char*)str, &end, 10);
usr.sbin/unbound/sldns/str2wire.c
1781
else r = (uint32_t)strtoul((char*)str, &end, 10);
usr.sbin/unbound/sldns/str2wire.c
1783
return RET_ERR(LDNS_WIREPARSE_ERR_SYNTAX_INT, end-(char*)str);
usr.sbin/unbound/sldns/str2wire.c
1793
int sldns_str2wire_a_buf(const char* str, uint8_t* rd, size_t* len)
usr.sbin/unbound/sldns/str2wire.c
1796
if(inet_pton(AF_INET, (char*)str, &address) != 1)
usr.sbin/unbound/sldns/str2wire.c
1805
int sldns_str2wire_aaaa_buf(const char* str, uint8_t* rd, size_t* len)
usr.sbin/unbound/sldns/str2wire.c
1809
if(inet_pton(AF_INET6, (char*)str, address) != 1)
usr.sbin/unbound/sldns/str2wire.c
1821
int sldns_str2wire_str_buf(const char* str, uint8_t* rd, size_t* len)
usr.sbin/unbound/sldns/str2wire.c
1825
const char* s = str;
usr.sbin/unbound/sldns/str2wire.c
1833
return RET_ERR(LDNS_WIREPARSE_ERR_INVALID_STR, s-str);
usr.sbin/unbound/sldns/str2wire.c
1836
s-str);
usr.sbin/unbound/sldns/str2wire.c
1846
int sldns_str2wire_apl_buf(const char* str, uint8_t* rd, size_t* len)
usr.sbin/unbound/sldns/str2wire.c
1848
const char *my_str = str;
usr.sbin/unbound/sldns/str2wire.c
1933
int sldns_str2wire_b64_buf(const char* str, uint8_t* rd, size_t* len)
usr.sbin/unbound/sldns/str2wire.c
1935
size_t sz = sldns_b64_pton_calculate_size(strlen(str));
usr.sbin/unbound/sldns/str2wire.c
1937
if(strcmp(str, "0") == 0) {
usr.sbin/unbound/sldns/str2wire.c
1943
n = sldns_b64_pton(str, rd, *len);
usr.sbin/unbound/sldns/str2wire.c
1950
int sldns_str2wire_b32_ext_buf(const char* str, uint8_t* rd, size_t* len)
usr.sbin/unbound/sldns/str2wire.c
1952
size_t slen = strlen(str);
usr.sbin/unbound/sldns/str2wire.c
1958
n = sldns_b32_pton_extended_hex(str, slen, rd+1, *len-1);
usr.sbin/unbound/sldns/str2wire.c
1967
sldns_is_last_of_string(const char* str)
usr.sbin/unbound/sldns/str2wire.c
1969
if(*str == 0) return 1;
usr.sbin/unbound/sldns/str2wire.c
1970
while(isspace((unsigned char)*str))
usr.sbin/unbound/sldns/str2wire.c
1971
str++;
usr.sbin/unbound/sldns/str2wire.c
1972
if(*str == 0) return 1;
usr.sbin/unbound/sldns/str2wire.c
1976
int sldns_str2wire_hex_buf(const char* str, uint8_t* rd, size_t* len)
usr.sbin/unbound/sldns/str2wire.c
1978
const char* s = str;
usr.sbin/unbound/sldns/str2wire.c
1990
return RET_ERR(LDNS_WIREPARSE_ERR_SYNTAX_HEX, s-str);
usr.sbin/unbound/sldns/str2wire.c
1993
s-str);
usr.sbin/unbound/sldns/str2wire.c
2000
return RET_ERR(LDNS_WIREPARSE_ERR_SYNTAX_HEX, s-str);
usr.sbin/unbound/sldns/str2wire.c
2005
int sldns_str2wire_nsec_buf(const char* str, uint8_t* rd, size_t* len)
usr.sbin/unbound/sldns/str2wire.c
2018
sldns_buffer_init_frm_data(&strbuf, (uint8_t*)str, strlen(str));
usr.sbin/unbound/sldns/str2wire.c
2068
int sldns_str2wire_type_buf(const char* str, uint8_t* rd, size_t* len)
usr.sbin/unbound/sldns/str2wire.c
2070
uint16_t t = sldns_get_rr_type_by_name(str);
usr.sbin/unbound/sldns/str2wire.c
2071
if(t == 0 && strcmp(str, "TYPE0") != 0)
usr.sbin/unbound/sldns/str2wire.c
2080
int sldns_str2wire_class_buf(const char* str, uint8_t* rd, size_t* len)
usr.sbin/unbound/sldns/str2wire.c
2082
uint16_t c = sldns_get_rr_class_by_name(str);
usr.sbin/unbound/sldns/str2wire.c
2083
if(c == 0 && strcmp(str, "CLASS0") != 0)
usr.sbin/unbound/sldns/str2wire.c
2094
int sldns_str2wire_cert_alg_buf(const char* str, uint8_t* rd, size_t* len)
usr.sbin/unbound/sldns/str2wire.c
2097
str);
usr.sbin/unbound/sldns/str2wire.c
2103
int s = sldns_str2wire_int16_buf(str, rd, len);
usr.sbin/unbound/sldns/str2wire.c
2114
int sldns_str2wire_alg_buf(const char* str, uint8_t* rd, size_t* len)
usr.sbin/unbound/sldns/str2wire.c
2116
sldns_lookup_table *lt = sldns_lookup_by_name(sldns_algorithms, str);
usr.sbin/unbound/sldns/str2wire.c
2124
return sldns_str2wire_int8_buf(str, rd, len);
usr.sbin/unbound/sldns/str2wire.c
2129
int sldns_str2wire_tsigerror_buf(const char* str, uint8_t* rd, size_t* len)
usr.sbin/unbound/sldns/str2wire.c
2131
sldns_lookup_table *lt = sldns_lookup_by_name(sldns_tsig_errors, str);
usr.sbin/unbound/sldns/str2wire.c
2139
return sldns_str2wire_int16_buf(str, rd, len);
usr.sbin/unbound/sldns/str2wire.c
2144
int sldns_str2wire_time_buf(const char* str, uint8_t* rd, size_t* len)
usr.sbin/unbound/sldns/str2wire.c
2153
if (strlen(str) == 14 && sscanf(str, "%4d%2d%2d%2d%2d%2d",
usr.sbin/unbound/sldns/str2wire.c
2176
uint32_t l = (uint32_t)strtol((char*)str, &end, 10);
usr.sbin/unbound/sldns/str2wire.c
2179
end-(char*)str);
usr.sbin/unbound/sldns/str2wire.c
2186
int sldns_str2wire_tsigtime_buf(const char* str, uint8_t* rd, size_t* len)
usr.sbin/unbound/sldns/str2wire.c
2189
uint64_t t = (uint64_t)strtol((char*)str, &end, 10);
usr.sbin/unbound/sldns/str2wire.c
2193
return RET_ERR(LDNS_WIREPARSE_ERR_SYNTAX_TIME, end-str);
usr.sbin/unbound/sldns/str2wire.c
2204
int sldns_str2wire_period_buf(const char* str, uint8_t* rd, size_t* len)
usr.sbin/unbound/sldns/str2wire.c
2208
uint32_t p = sldns_str2period(str, &end, &overflow);
usr.sbin/unbound/sldns/str2wire.c
2210
return RET_ERR(LDNS_WIREPARSE_ERR_SYNTAX_PERIOD, end-str);
usr.sbin/unbound/sldns/str2wire.c
2213
end-str);
usr.sbin/unbound/sldns/str2wire.c
2260
int sldns_str2wire_loc_buf(const char* str, uint8_t* rd, size_t* len)
usr.sbin/unbound/sldns/str2wire.c
2279
char *my_str = (char *) str;
usr.sbin/unbound/sldns/str2wire.c
2440
int sldns_str2wire_wks_buf(const char* str, uint8_t* rd, size_t* len)
usr.sbin/unbound/sldns/str2wire.c
2446
sldns_buffer_init_frm_data(&strbuf, (uint8_t*)str, strlen(str));
usr.sbin/unbound/sldns/str2wire.c
2522
int sldns_str2wire_nsap_buf(const char* str, uint8_t* rd, size_t* len)
usr.sbin/unbound/sldns/str2wire.c
2524
const char* s = str;
usr.sbin/unbound/sldns/str2wire.c
2541
return RET_ERR(LDNS_WIREPARSE_ERR_SYNTAX_HEX, s-str);
usr.sbin/unbound/sldns/str2wire.c
2544
s-str);
usr.sbin/unbound/sldns/str2wire.c
2551
return RET_ERR(LDNS_WIREPARSE_ERR_SYNTAX_HEX, s-str);
usr.sbin/unbound/sldns/str2wire.c
2556
int sldns_str2wire_atma_buf(const char* str, uint8_t* rd, size_t* len)
usr.sbin/unbound/sldns/str2wire.c
2558
const char* s = str;
usr.sbin/unbound/sldns/str2wire.c
2559
size_t slen = strlen(str);
usr.sbin/unbound/sldns/str2wire.c
2583
return RET_ERR(LDNS_WIREPARSE_ERR_SYNTAX, s-str);
usr.sbin/unbound/sldns/str2wire.c
2586
s-str);
usr.sbin/unbound/sldns/str2wire.c
2602
return RET_ERR(LDNS_WIREPARSE_ERR_SYNTAX_HEX, s-str);
usr.sbin/unbound/sldns/str2wire.c
2605
s-str);
usr.sbin/unbound/sldns/str2wire.c
2612
return RET_ERR(LDNS_WIREPARSE_ERR_SYNTAX_HEX, s-str);
usr.sbin/unbound/sldns/str2wire.c
2617
int sldns_str2wire_ipseckey_buf(const char* str, uint8_t* rd, size_t* len)
usr.sbin/unbound/sldns/str2wire.c
2624
sldns_buffer_init_frm_data(&strbuf, (uint8_t*)str, strlen(str));
usr.sbin/unbound/sldns/str2wire.c
2690
int sldns_str2wire_nsec3_salt_buf(const char* str, uint8_t* rd, size_t* len)
usr.sbin/unbound/sldns/str2wire.c
2692
int i, salt_length_str = (int)strlen(str);
usr.sbin/unbound/sldns/str2wire.c
2693
if (salt_length_str == 1 && str[0] == '-') {
usr.sbin/unbound/sldns/str2wire.c
2704
if (isxdigit((unsigned char)str[i]) &&
usr.sbin/unbound/sldns/str2wire.c
2705
isxdigit((unsigned char)str[i+1])) {
usr.sbin/unbound/sldns/str2wire.c
2706
rd[1+i/2] = (uint8_t)(sldns_hexdigit_to_int(str[i])*16
usr.sbin/unbound/sldns/str2wire.c
2707
+ sldns_hexdigit_to_int(str[i+1]));
usr.sbin/unbound/sldns/str2wire.c
2716
int sldns_str2wire_ilnp64_buf(const char* str, uint8_t* rd, size_t* len)
usr.sbin/unbound/sldns/str2wire.c
2724
if (sscanf(str, "%4x:%4x:%4x:%4x%n", &a, &b, &c, &d, &l) != 4 ||
usr.sbin/unbound/sldns/str2wire.c
2725
l != (int)strlen(str) || /* more data to read */
usr.sbin/unbound/sldns/str2wire.c
2726
strpbrk(str, "+-") /* signed hexes */
usr.sbin/unbound/sldns/str2wire.c
2738
int sldns_str2wire_eui48_buf(const char* str, uint8_t* rd, size_t* len)
usr.sbin/unbound/sldns/str2wire.c
2745
if (sscanf(str, "%2x-%2x-%2x-%2x-%2x-%2x%n",
usr.sbin/unbound/sldns/str2wire.c
2747
l != (int)strlen(str))
usr.sbin/unbound/sldns/str2wire.c
2759
int sldns_str2wire_eui64_buf(const char* str, uint8_t* rd, size_t* len)
usr.sbin/unbound/sldns/str2wire.c
2766
if (sscanf(str, "%2x-%2x-%2x-%2x-%2x-%2x-%2x-%2x%n",
usr.sbin/unbound/sldns/str2wire.c
2768
l != (int)strlen(str))
usr.sbin/unbound/sldns/str2wire.c
2782
int sldns_str2wire_unquoted_buf(const char* str, uint8_t* rd, size_t* len)
usr.sbin/unbound/sldns/str2wire.c
2784
return sldns_str2wire_str_buf(str, rd, len);
usr.sbin/unbound/sldns/str2wire.c
2787
int sldns_str2wire_tag_buf(const char* str, uint8_t* rd, size_t* len)
usr.sbin/unbound/sldns/str2wire.c
2789
size_t slen = strlen(str);
usr.sbin/unbound/sldns/str2wire.c
2796
for (ptr = str; *ptr; ptr++) {
usr.sbin/unbound/sldns/str2wire.c
2798
return RET_ERR(LDNS_WIREPARSE_ERR_SYNTAX_TAG, ptr-str);
usr.sbin/unbound/sldns/str2wire.c
2801
memmove(rd+1, str, slen);
usr.sbin/unbound/sldns/str2wire.c
2806
int sldns_str2wire_long_str_buf(const char* str, uint8_t* rd, size_t* len)
usr.sbin/unbound/sldns/str2wire.c
2809
const char* pstr = str;
usr.sbin/unbound/sldns/str2wire.c
2824
int sldns_str2wire_hip_buf(const char* str, uint8_t* rd, size_t* len)
usr.sbin/unbound/sldns/str2wire.c
2837
rd[1] = (uint8_t)strtol((char*)str, &s, 10);
usr.sbin/unbound/sldns/str2wire.c
2839
return RET_ERR(LDNS_WIREPARSE_ERR_SYNTAX_INT, s-(char*)str);
usr.sbin/unbound/sldns/str2wire.c
2847
if(!end) return RET_ERR(LDNS_WIREPARSE_ERR_SYNTAX, s-(char*)str);
usr.sbin/unbound/sldns/str2wire.c
2852
return RET_ERR_SHIFT(e, s-(char*)str);
usr.sbin/unbound/sldns/str2wire.c
2856
return RET_ERR(LDNS_WIREPARSE_ERR_LABEL_OVERFLOW, s-(char*)str+255*2);
usr.sbin/unbound/sldns/str2wire.c
2865
return RET_ERR_SHIFT(e, s-(char*)str);
usr.sbin/unbound/sldns/str2wire.c
2867
return RET_ERR(LDNS_WIREPARSE_ERR_LABEL_OVERFLOW, s-(char*)str+65535);
usr.sbin/unbound/sldns/str2wire.c
2874
int sldns_str2wire_int16_data_buf(const char* str, uint8_t* rd, size_t* len)
usr.sbin/unbound/sldns/str2wire.c
2878
n = strtol(str, &s, 10);
usr.sbin/unbound/sldns/str2wire.c
2892
return RET_ERR(LDNS_WIREPARSE_ERR_SYNTAX_INT, s-(char*)str);
usr.sbin/unbound/sldns/str2wire.c
41
static int sldns_str2wire_dname_buf_rel(const char* str, uint8_t* buf,
usr.sbin/unbound/sldns/str2wire.c
50
len = strlen((char*)str);
usr.sbin/unbound/sldns/str2wire.c
60
if (1 == len && *str == '.') {
usr.sbin/unbound/sldns/str2wire.c
81
for (s = str; *s; s++, q++) {
usr.sbin/unbound/sldns/str2wire.c
898
sldns_str2wire_rr_buf_internal(const char* str, uint8_t* rr, size_t* len,
usr.sbin/unbound/sldns/str2wire.c
911
sldns_buffer_init_frm_data(&strbuf, (uint8_t*)str, strlen(str));
usr.sbin/unbound/sldns/str2wire.c
947
int sldns_str2wire_rr_buf(const char* str, uint8_t* rr, size_t* len,
usr.sbin/unbound/sldns/str2wire.c
951
return sldns_str2wire_rr_buf_internal(str, rr, len, dname_len,
usr.sbin/unbound/sldns/str2wire.c
955
int sldns_str2wire_rr_question_buf(const char* str, uint8_t* rr, size_t* len,
usr.sbin/unbound/sldns/str2wire.c
959
return sldns_str2wire_rr_buf_internal(str, rr, len, dname_len,
usr.sbin/unbound/sldns/str2wire.h
104
int sldns_str2wire_rr_buf(const char* str, uint8_t* rr, size_t* len,
usr.sbin/unbound/sldns/str2wire.h
124
int sldns_str2wire_rr_question_buf(const char* str, uint8_t* rr, size_t* len,
usr.sbin/unbound/sldns/str2wire.h
298
int sldns_str2wire_rdf_buf(const char* str, uint8_t* rd, size_t* len,
usr.sbin/unbound/sldns/str2wire.h
308
int sldns_str2wire_int8_buf(const char* str, uint8_t* rd, size_t* len);
usr.sbin/unbound/sldns/str2wire.h
317
int sldns_str2wire_int16_buf(const char* str, uint8_t* rd, size_t* len);
usr.sbin/unbound/sldns/str2wire.h
326
int sldns_str2wire_int32_buf(const char* str, uint8_t* rd, size_t* len);
usr.sbin/unbound/sldns/str2wire.h
335
int sldns_str2wire_a_buf(const char* str, uint8_t* rd, size_t* len);
usr.sbin/unbound/sldns/str2wire.h
344
int sldns_str2wire_aaaa_buf(const char* str, uint8_t* rd, size_t* len);
usr.sbin/unbound/sldns/str2wire.h
353
int sldns_str2wire_str_buf(const char* str, uint8_t* rd, size_t* len);
usr.sbin/unbound/sldns/str2wire.h
362
int sldns_str2wire_apl_buf(const char* str, uint8_t* rd, size_t* len);
usr.sbin/unbound/sldns/str2wire.h
371
int sldns_str2wire_b64_buf(const char* str, uint8_t* rd, size_t* len);
usr.sbin/unbound/sldns/str2wire.h
381
int sldns_str2wire_b32_ext_buf(const char* str, uint8_t* rd, size_t* len);
usr.sbin/unbound/sldns/str2wire.h
390
int sldns_str2wire_hex_buf(const char* str, uint8_t* rd, size_t* len);
usr.sbin/unbound/sldns/str2wire.h
399
int sldns_str2wire_nsec_buf(const char* str, uint8_t* rd, size_t* len);
usr.sbin/unbound/sldns/str2wire.h
408
int sldns_str2wire_type_buf(const char* str, uint8_t* rd, size_t* len);
usr.sbin/unbound/sldns/str2wire.h
417
int sldns_str2wire_class_buf(const char* str, uint8_t* rd, size_t* len);
usr.sbin/unbound/sldns/str2wire.h
426
int sldns_str2wire_cert_alg_buf(const char* str, uint8_t* rd, size_t* len);
usr.sbin/unbound/sldns/str2wire.h
435
int sldns_str2wire_alg_buf(const char* str, uint8_t* rd, size_t* len);
usr.sbin/unbound/sldns/str2wire.h
444
int sldns_str2wire_time_buf(const char* str, uint8_t* rd, size_t* len);
usr.sbin/unbound/sldns/str2wire.h
453
int sldns_str2wire_period_buf(const char* str, uint8_t* rd, size_t* len);
usr.sbin/unbound/sldns/str2wire.h
462
int sldns_str2wire_tsigtime_buf(const char* str, uint8_t* rd, size_t* len);
usr.sbin/unbound/sldns/str2wire.h
471
int sldns_str2wire_tsigerror_buf(const char* str, uint8_t* rd, size_t* len);
usr.sbin/unbound/sldns/str2wire.h
480
int sldns_str2wire_loc_buf(const char* str, uint8_t* rd, size_t* len);
usr.sbin/unbound/sldns/str2wire.h
489
int sldns_str2wire_wks_buf(const char* str, uint8_t* rd, size_t* len);
usr.sbin/unbound/sldns/str2wire.h
498
int sldns_str2wire_nsap_buf(const char* str, uint8_t* rd, size_t* len);
usr.sbin/unbound/sldns/str2wire.h
507
int sldns_str2wire_atma_buf(const char* str, uint8_t* rd, size_t* len);
usr.sbin/unbound/sldns/str2wire.h
516
int sldns_str2wire_ipseckey_buf(const char* str, uint8_t* rd, size_t* len);
usr.sbin/unbound/sldns/str2wire.h
525
int sldns_str2wire_nsec3_salt_buf(const char* str, uint8_t* rd, size_t* len);
usr.sbin/unbound/sldns/str2wire.h
534
int sldns_str2wire_ilnp64_buf(const char* str, uint8_t* rd, size_t* len);
usr.sbin/unbound/sldns/str2wire.h
543
int sldns_str2wire_eui48_buf(const char* str, uint8_t* rd, size_t* len);
usr.sbin/unbound/sldns/str2wire.h
552
int sldns_str2wire_eui64_buf(const char* str, uint8_t* rd, size_t* len);
usr.sbin/unbound/sldns/str2wire.h
561
int sldns_str2wire_unquoted_buf(const char* str, uint8_t* rd, size_t* len);
usr.sbin/unbound/sldns/str2wire.h
570
int sldns_str2wire_tag_buf(const char* str, uint8_t* rd, size_t* len);
usr.sbin/unbound/sldns/str2wire.h
579
int sldns_str2wire_long_str_buf(const char* str, uint8_t* rd, size_t* len);
usr.sbin/unbound/sldns/str2wire.h
588
int sldns_str2wire_hip_buf(const char* str, uint8_t* rd, size_t* len);
usr.sbin/unbound/sldns/str2wire.h
597
int sldns_str2wire_int16_data_buf(const char* str, uint8_t* rd, size_t* len);
usr.sbin/unbound/sldns/str2wire.h
62
int sldns_str2wire_dname_buf(const char* str, uint8_t* buf, size_t* len);
usr.sbin/unbound/sldns/str2wire.h
74
int sldns_str2wire_dname_buf_origin(const char* str, uint8_t* buf, size_t* len,
usr.sbin/unbound/sldns/str2wire.h
83
uint8_t* sldns_str2wire_dname(const char* str, size_t* len);
usr.sbin/unbound/sldns/wire2str.c
1702
loc_cm_print(char** str, size_t* sl, uint8_t mantissa, uint8_t exponent)
usr.sbin/unbound/sldns/wire2str.c
1710
return sldns_str_print(str, sl, "0.%02ld", (long)mantissa);
usr.sbin/unbound/sldns/wire2str.c
1713
w += sldns_str_print(str, sl, "%d", (int)mantissa);
usr.sbin/unbound/sldns/wire2str.c
1715
w += sldns_str_print(str, sl, "0");
usr.sbin/unbound/sldns/wire2str.c
1719
int sldns_wire2str_loc_scan(uint8_t** d, size_t* dl, char** str, size_t* sl)
usr.sbin/unbound/sldns/wire2str.c
1740
return sldns_wire2str_hex_scan(d, dl, str, sl);
usr.sbin/unbound/sldns/wire2str.c
1761
w += sldns_str_print(str, sl, "%02u %02u %06.3f %c ",
usr.sbin/unbound/sldns/wire2str.c
1776
w += sldns_str_print(str, sl, "%02u %02u %06.3f %c ",
usr.sbin/unbound/sldns/wire2str.c
1783
w += sldns_str_print(str, sl, "%.2f", s);
usr.sbin/unbound/sldns/wire2str.c
1785
w += sldns_str_print(str, sl, "%.0f", s);
usr.sbin/unbound/sldns/wire2str.c
1787
w += sldns_str_print(str, sl, "m ");
usr.sbin/unbound/sldns/wire2str.c
1789
w += loc_cm_print(str, sl, (size & 0xf0) >> 4, size & 0x0f);
usr.sbin/unbound/sldns/wire2str.c
1790
w += sldns_str_print(str, sl, "m ");
usr.sbin/unbound/sldns/wire2str.c
1792
w += loc_cm_print(str, sl, (horizontal_precision & 0xf0) >> 4,
usr.sbin/unbound/sldns/wire2str.c
1794
w += sldns_str_print(str, sl, "m ");
usr.sbin/unbound/sldns/wire2str.c
1796
w += loc_cm_print(str, sl, (vertical_precision & 0xf0) >> 4,
usr.sbin/unbound/sldns/wire2str.c
1798
w += sldns_str_print(str, sl, "m");
usr.sbin/unbound/sldns/wire2str.c
2451
int sldns_wire2str_edns_scan(uint8_t** data, size_t* data_len, char** str,
usr.sbin/unbound/sldns/wire2str.c
2457
w += sldns_str_print(str, str_len, "; EDNS:");
usr.sbin/unbound/sldns/wire2str.c
2462
data, data_len, str, str_len);
usr.sbin/unbound/sldns/wire2str.c
2465
data, data_len, str, str_len);
usr.sbin/unbound/sldns/wire2str.c
2473
data, data_len, str, str_len);
usr.sbin/unbound/sldns/wire2str.c
2483
w += sldns_str_print(str, str_len, " version: %u;",
usr.sbin/unbound/sldns/wire2str.c
2485
w += sldns_str_print(str, str_len, " flags:");
usr.sbin/unbound/sldns/wire2str.c
2487
w += sldns_str_print(str, str_len, " do");
usr.sbin/unbound/sldns/wire2str.c
2494
w += sldns_str_print(str, str_len, " ; ext-rcode: %d", rc);
usr.sbin/unbound/sldns/wire2str.c
2496
w += sldns_str_print(str, str_len, " ; udp: %u", (unsigned)udpsize);
usr.sbin/unbound/sldns/wire2str.c
2500
w += sldns_str_print(str, str_len,
usr.sbin/unbound/sldns/wire2str.c
2504
w += print_edns_opts(str, str_len, *data, rdatalen);
usr.sbin/unbound/sldns/wire2str.c
2508
w += sldns_str_print(str, str_len, "\n");
usr.sbin/unbound/sldns/wire2str.c
334
int sldns_wire2str_rdata_buf(uint8_t* rdata, size_t rdata_len, char* str,
usr.sbin/unbound/sldns/wire2str.c
338
return sldns_wire2str_rdata_scan(&rdata, &rdata_len, &str, &str_len,
usr.sbin/unbound/sldns/wire2str.c
386
int sldns_str_vprint(char** str, size_t* slen, const char* format, va_list args)
usr.sbin/unbound/sldns/wire2str.c
388
int w = vsnprintf(*str, *slen, format, args);
usr.sbin/unbound/sldns/wire2str.c
393
*str = NULL; /* we do not want str to point outside of buffer*/
usr.sbin/unbound/sldns/wire2str.c
396
*str += w;
usr.sbin/unbound/sldns/wire2str.c
402
int sldns_str_print(char** str, size_t* slen, const char* format, ...)
usr.sbin/unbound/sldns/wire2str.c
407
w = sldns_str_vprint(str, slen, format, args);
usr.sbin/unbound/sldns/wire2str.h
100
int sldns_str_vprint(char** str, size_t* slen, const char* format, va_list args);
usr.sbin/unbound/sldns/wire2str.h
1002
int sldns_wire2str_edns_dau_print(char** str, size_t* str_len,
usr.sbin/unbound/sldns/wire2str.h
1013
int sldns_wire2str_edns_dhu_print(char** str, size_t* str_len,
usr.sbin/unbound/sldns/wire2str.h
1024
int sldns_wire2str_edns_n3u_print(char** str, size_t* str_len,
usr.sbin/unbound/sldns/wire2str.h
1035
int sldns_wire2str_edns_subnet_print(char** str, size_t* str_len,
usr.sbin/unbound/sldns/wire2str.h
1046
int sldns_wire2str_edns_ede_print(char** str, size_t* str_len,
usr.sbin/unbound/sldns/wire2str.h
1058
int sldns_wire2str_edns_option_print(char** str, size_t* str_len,
usr.sbin/unbound/sldns/wire2str.h
1072
int sldns_wire2str_edns_scan(uint8_t** data, size_t* data_len, char** str,
usr.sbin/unbound/sldns/wire2str.h
109
int sldns_str_print(char** str, size_t* slen, const char* format, ...)
usr.sbin/unbound/sldns/wire2str.h
127
int sldns_wire2str_pkt_buf(uint8_t* data, size_t data_len, char* str,
usr.sbin/unbound/sldns/wire2str.h
149
int sldns_wire2str_pkt_scan(uint8_t** data, size_t* data_len, char** str,
usr.sbin/unbound/sldns/wire2str.h
164
int sldns_wire2str_rr_scan(uint8_t** data, size_t* data_len, char** str,
usr.sbin/unbound/sldns/wire2str.h
179
int sldns_wire2str_rrquestion_scan(uint8_t** data, size_t* data_len, char** str,
usr.sbin/unbound/sldns/wire2str.h
194
int sldns_wire2str_rr_unknown_scan(uint8_t** data, size_t* data_len, char** str,
usr.sbin/unbound/sldns/wire2str.h
209
int sldns_wire2str_rr_comment_print(char** str, size_t* str_len, uint8_t* rr,
usr.sbin/unbound/sldns/wire2str.h
221
int sldns_wire2str_header_scan(uint8_t** data, size_t* data_len, char** str,
usr.sbin/unbound/sldns/wire2str.h
239
int sldns_wire2str_rdata_scan(uint8_t** data, size_t* data_len, char** str,
usr.sbin/unbound/sldns/wire2str.h
253
char** str, size_t* str_len);
usr.sbin/unbound/sldns/wire2str.h
273
int sldns_wire2str_dname_scan(uint8_t** data, size_t* data_len, char** str,
usr.sbin/unbound/sldns/wire2str.h
285
int sldns_wire2str_type_scan(uint8_t** data, size_t* data_len, char** str,
usr.sbin/unbound/sldns/wire2str.h
297
int sldns_wire2str_class_scan(uint8_t** data, size_t* data_len, char** str,
usr.sbin/unbound/sldns/wire2str.h
309
int sldns_wire2str_ttl_scan(uint8_t** data, size_t* data_len, char** str,
usr.sbin/unbound/sldns/wire2str.h
320
int sldns_wire2str_type_print(char** str, size_t* str_len, uint16_t rrtype);
usr.sbin/unbound/sldns/wire2str.h
329
int sldns_wire2str_class_print(char** str, size_t* str_len, uint16_t rrclass);
usr.sbin/unbound/sldns/wire2str.h
338
int sldns_wire2str_rcode_print(char** str, size_t* str_len, int rcode);
usr.sbin/unbound/sldns/wire2str.h
347
int sldns_wire2str_opcode_print(char** str, size_t* str_len, int opcode);
usr.sbin/unbound/sldns/wire2str.h
356
int sldns_wire2str_edns_option_code_print(char** str, size_t* str_len,
usr.sbin/unbound/sldns/wire2str.h
372
int sldns_wire2str_rr_buf(uint8_t* rr, size_t rr_len, char* str,
usr.sbin/unbound/sldns/wire2str.h
388
int sldns_wire2str_rrquestion_buf(uint8_t* rr, size_t rr_len, char* str,
usr.sbin/unbound/sldns/wire2str.h
406
int sldns_wire2str_rr_unknown_buf(uint8_t* rr, size_t rr_len, char* str,
usr.sbin/unbound/sldns/wire2str.h
427
char* str, size_t str_len);
usr.sbin/unbound/sldns/wire2str.h
443
int sldns_wire2str_rdata_buf(uint8_t* rdata, size_t rdata_len, char* str,
usr.sbin/unbound/sldns/wire2str.h
454
int sldns_wire2str_type_buf(uint16_t rrtype, char* str, size_t len);
usr.sbin/unbound/sldns/wire2str.h
464
int sldns_wire2str_class_buf(uint16_t rrclass, char* str, size_t len);
usr.sbin/unbound/sldns/wire2str.h
474
int sldns_wire2str_rcode_buf(int rcode, char* str, size_t len);
usr.sbin/unbound/sldns/wire2str.h
485
int sldns_wire2str_opcode_buf(int opcode, char* str, size_t len);
usr.sbin/unbound/sldns/wire2str.h
496
int sldns_wire2str_dname_buf(uint8_t* dname, size_t dname_len, char* str,
usr.sbin/unbound/sldns/wire2str.h
525
int sldns_wire2str_rdf_scan(uint8_t** data, size_t* data_len, char** str,
usr.sbin/unbound/sldns/wire2str.h
539
int sldns_wire2str_int8_scan(uint8_t** data, size_t* data_len, char** str,
usr.sbin/unbound/sldns/wire2str.h
552
int sldns_wire2str_int16_scan(uint8_t** data, size_t* data_len, char** str,
usr.sbin/unbound/sldns/wire2str.h
565
int sldns_wire2str_int32_scan(uint8_t** data, size_t* data_len, char** str,
usr.sbin/unbound/sldns/wire2str.h
578
int sldns_wire2str_period_scan(uint8_t** data, size_t* data_len, char** str,
usr.sbin/unbound/sldns/wire2str.h
591
int sldns_wire2str_tsigtime_scan(uint8_t** data, size_t* data_len, char** str,
usr.sbin/unbound/sldns/wire2str.h
604
int sldns_wire2str_a_scan(uint8_t** data, size_t* data_len, char** str,
usr.sbin/unbound/sldns/wire2str.h
617
int sldns_wire2str_aaaa_scan(uint8_t** data, size_t* data_len, char** str,
usr.sbin/unbound/sldns/wire2str.h
630
int sldns_wire2str_str_scan(uint8_t** data, size_t* data_len, char** str,
usr.sbin/unbound/sldns/wire2str.h
643
int sldns_wire2str_apl_scan(uint8_t** data, size_t* data_len, char** str,
usr.sbin/unbound/sldns/wire2str.h
656
int sldns_wire2str_b32_ext_scan(uint8_t** data, size_t* data_len, char** str,
usr.sbin/unbound/sldns/wire2str.h
669
int sldns_wire2str_b64_scan(uint8_t** data, size_t* data_len, char** str,
usr.sbin/unbound/sldns/wire2str.h
682
int sldns_wire2str_hex_scan(uint8_t** data, size_t* data_len, char** str,
usr.sbin/unbound/sldns/wire2str.h
695
int sldns_wire2str_nsec_scan(uint8_t** data, size_t* data_len, char** str,
usr.sbin/unbound/sldns/wire2str.h
708
int sldns_wire2str_nsec3_salt_scan(uint8_t** data, size_t* data_len, char** str,
usr.sbin/unbound/sldns/wire2str.h
721
int sldns_wire2str_cert_alg_scan(uint8_t** data, size_t* data_len, char** str,
usr.sbin/unbound/sldns/wire2str.h
734
int sldns_wire2str_alg_scan(uint8_t** data, size_t* data_len, char** str,
usr.sbin/unbound/sldns/wire2str.h
747
int sldns_wire2str_unknown_scan(uint8_t** data, size_t* data_len, char** str,
usr.sbin/unbound/sldns/wire2str.h
760
int sldns_wire2str_time_scan(uint8_t** data, size_t* data_len, char** str,
usr.sbin/unbound/sldns/wire2str.h
773
int sldns_wire2str_loc_scan(uint8_t** data, size_t* data_len, char** str,
usr.sbin/unbound/sldns/wire2str.h
786
int sldns_wire2str_wks_scan(uint8_t** data, size_t* data_len, char** str,
usr.sbin/unbound/sldns/wire2str.h
799
int sldns_wire2str_nsap_scan(uint8_t** data, size_t* data_len, char** str,
usr.sbin/unbound/sldns/wire2str.h
812
int sldns_wire2str_atma_scan(uint8_t** data, size_t* data_len, char** str,
usr.sbin/unbound/sldns/wire2str.h
828
int sldns_wire2str_ipseckey_scan(uint8_t** data, size_t* data_len, char** str,
usr.sbin/unbound/sldns/wire2str.h
841
int sldns_wire2str_hip_scan(uint8_t** data, size_t* data_len, char** str,
usr.sbin/unbound/sldns/wire2str.h
854
int sldns_wire2str_int16_data_scan(uint8_t** data, size_t* data_len, char** str,
usr.sbin/unbound/sldns/wire2str.h
867
int sldns_wire2str_tsigerror_scan(uint8_t** data, size_t* data_len, char** str,
usr.sbin/unbound/sldns/wire2str.h
881
char** str, size_t* str_len);
usr.sbin/unbound/sldns/wire2str.h
893
int sldns_wire2str_ilnp64_scan(uint8_t** data, size_t* data_len, char** str,
usr.sbin/unbound/sldns/wire2str.h
906
int sldns_wire2str_eui48_scan(uint8_t** data, size_t* data_len, char** str,
usr.sbin/unbound/sldns/wire2str.h
919
int sldns_wire2str_eui64_scan(uint8_t** data, size_t* data_len, char** str,
usr.sbin/unbound/sldns/wire2str.h
932
int sldns_wire2str_unquoted_scan(uint8_t** data, size_t* data_len, char** str,
usr.sbin/unbound/sldns/wire2str.h
945
int sldns_wire2str_tag_scan(uint8_t** data, size_t* data_len, char** str,
usr.sbin/unbound/sldns/wire2str.h
958
int sldns_wire2str_long_str_scan(uint8_t** data, size_t* data_len, char** str,
usr.sbin/unbound/sldns/wire2str.h
969
int sldns_wire2str_edns_llq_print(char** str, size_t* str_len,
usr.sbin/unbound/sldns/wire2str.h
980
int sldns_wire2str_edns_ul_print(char** str, size_t* str_len,
usr.sbin/unbound/sldns/wire2str.h
991
int sldns_wire2str_edns_nsid_print(char** str, size_t* str_len,
usr.sbin/unbound/smallapp/unbound-anchor.c
1322
xml_convertdate(const char* str)
usr.sbin/unbound/smallapp/unbound-anchor.c
1329
s = str;
usr.sbin/unbound/smallapp/unbound-anchor.c
1335
if(verb) printf("xml_convertdate parse failure %s\n", str);
usr.sbin/unbound/smallapp/unbound-anchor.c
1343
if(verb) printf("xml_convertdate f failure %s\n", str);
usr.sbin/unbound/smallapp/unbound-anchor.c
1357
if(verb) printf("xml_convertdate tz failure %s\n", str);
usr.sbin/unbound/smallapp/unbound-anchor.c
276
ub_ctx_error_exit(struct ub_ctx* ctx, const char* str, const char* str2)
usr.sbin/unbound/smallapp/unbound-anchor.c
279
if(str && str2 && verb) printf("%s: %s\n", str, str2);
usr.sbin/unbound/smallapp/unbound-anchor.c
598
parse_ip_addr(const char* str, int port)
usr.sbin/unbound/smallapp/unbound-anchor.c
609
if(inet_pton(AF_INET6, str, &addr.a6.sin6_addr) > 0) {
usr.sbin/unbound/smallapp/unbound-anchor.c
615
if(inet_pton(AF_INET, str, &addr.a.sin_addr) > 0) {
usr.sbin/unbound/smallapp/unbound-anchor.c
629
if(verb) printf("server address is %s\n", str);
usr.sbin/unbound/smallapp/unbound-anchor.c
850
write_ssl_line(SSL* ssl, const char* str, const char* sec)
usr.sbin/unbound/smallapp/unbound-anchor.c
855
snprintf(buf, sizeof(buf), str, sec);
usr.sbin/unbound/smallapp/unbound-anchor.c
857
snprintf(buf, sizeof(buf), "%s", str);
usr.sbin/unbound/smallapp/unbound-anchor.c
870
if(verb) printf("could not SSL_write %s", str);
usr.sbin/unbound/smallapp/unbound-checkconf.c
119
char *p = fname_after_chroot(s->str, cfg, 1);
usr.sbin/unbound/smallapp/unbound-checkconf.c
174
if(str_addr_is_localhost(s->str)) {
usr.sbin/unbound/smallapp/unbound-checkconf.c
176
s->str, p->name);
usr.sbin/unbound/smallapp/unbound-checkconf.c
182
if(str_addr_is_localhost(s->str)) {
usr.sbin/unbound/smallapp/unbound-checkconf.c
184
s->str, p->name);
usr.sbin/unbound/smallapp/unbound-checkconf.c
217
if(!netblockstrtoaddr(acl->str, UNBOUND_DNS_PORT, &a, &alen,
usr.sbin/unbound/smallapp/unbound-checkconf.c
220
"address %s %s", acl->str, acl->str2);
usr.sbin/unbound/smallapp/unbound-checkconf.c
226
acl->str, acl->str2);
usr.sbin/unbound/smallapp/unbound-checkconf.c
233
if(!netblockstrtoaddr(sb->str, UNBOUND_DNS_PORT, &a, &alen,
usr.sbin/unbound/smallapp/unbound-checkconf.c
236
"address %s", sb->str);
usr.sbin/unbound/smallapp/unbound-checkconf.c
243
if(!netblockstrtoaddr(s3->str, UNBOUND_DNS_PORT, &a, &alen,
usr.sbin/unbound/smallapp/unbound-checkconf.c
247
s3->str, s3->str2, s3->str3);
usr.sbin/unbound/smallapp/unbound-checkconf.c
252
s3->str2, s3->str, s3->str2, s3->str3);
usr.sbin/unbound/smallapp/unbound-checkconf.c
257
s3->str3, s3->str, s3->str2, s3->str3);
usr.sbin/unbound/smallapp/unbound-checkconf.c
267
if(!netblockstrtoaddr(s3->str, UNBOUND_DNS_PORT, &a, &alen,
usr.sbin/unbound/smallapp/unbound-checkconf.c
270
s3->str, s3->str2, s3->str3);
usr.sbin/unbound/smallapp/unbound-checkconf.c
275
s3->str2, s3->str, s3->str2, s3->str3);
usr.sbin/unbound/smallapp/unbound-checkconf.c
286
s3->str, s3->str2, s3->str3);
usr.sbin/unbound/smallapp/unbound-checkconf.c
327
if(extstrtoaddr(h->str, &a, &alen, UNBOUND_DNS_PORT)) {
usr.sbin/unbound/smallapp/unbound-checkconf.c
332
s->name, typ, h->str,
usr.sbin/unbound/smallapp/unbound-checkconf.c
468
if(p->str && p->str[0] == '/')
usr.sbin/unbound/smallapp/unbound-checkconf.c
470
if(!resolve_interface_names(&p->str, 1, NULL, &rcif,
usr.sbin/unbound/smallapp/unbound-checkconf.c
473
p->str);
usr.sbin/unbound/smallapp/unbound-checkconf.c
478
if(strcmp(p->str, rcif[i])!=0)
usr.sbin/unbound/smallapp/unbound-checkconf.c
480
rcif[i], p->str);
usr.sbin/unbound/smallapp/unbound-checkconf.c
483
p->str);
usr.sbin/unbound/smallapp/unbound-checkconf.c
499
if(!netblockstrtoaddr(acl->str, UNBOUND_DNS_PORT, &a, &alen,
usr.sbin/unbound/smallapp/unbound-checkconf.c
502
acl->str, acl->str2);
usr.sbin/unbound/smallapp/unbound-checkconf.c
516
if(!netblockstrtoaddr(tcl->str, UNBOUND_DNS_PORT, &a, &alen,
usr.sbin/unbound/smallapp/unbound-checkconf.c
519
tcl->str, tcl->str2);
usr.sbin/unbound/smallapp/unbound-checkconf.c
582
char* str = *ss;
usr.sbin/unbound/smallapp/unbound-checkconf.c
583
if(str && str[0]) {
usr.sbin/unbound/smallapp/unbound-checkconf.c
584
*ss = fname_after_chroot(str, cfg, 1);
usr.sbin/unbound/smallapp/unbound-checkconf.c
589
"chrootdir %s", desc, str, chrootdir);
usr.sbin/unbound/smallapp/unbound-checkconf.c
592
desc, str);
usr.sbin/unbound/smallapp/unbound-checkconf.c
595
free(str);
usr.sbin/unbound/smallapp/unbound-checkconf.c
606
check_chroot_string(desc, &p->str, chrootdir, cfg);
usr.sbin/unbound/smallapp/unbound-checkconf.c
618
if(strchr(p->str, '*') || strchr(p->str, '[') ||
usr.sbin/unbound/smallapp/unbound-checkconf.c
619
strchr(p->str, '?') || strchr(p->str, '{') ||
usr.sbin/unbound/smallapp/unbound-checkconf.c
620
strchr(p->str, '~')) {
usr.sbin/unbound/smallapp/unbound-checkconf.c
621
char* s = p->str;
usr.sbin/unbound/smallapp/unbound-checkconf.c
623
p->str = fname_after_chroot(p->str, cfg, 1);
usr.sbin/unbound/smallapp/unbound-checkconf.c
627
check_chroot_string(desc, &p->str, chrootdir, cfg);
usr.sbin/unbound/smallapp/unbound-checkconf.c
762
key = cfg->auto_trust_anchor_file_list->str;
usr.sbin/unbound/smallapp/unbound-checkconf.c
764
key = cfg->trust_anchor_file_list->str;
usr.sbin/unbound/smallapp/unbound-checkconf.c
766
key = cfg->trust_anchor_list->str;
usr.sbin/unbound/smallapp/unbound-checkconf.c
768
key = cfg->trusted_keys_file_list->str;
usr.sbin/unbound/smallapp/unbound-control.c
215
#define PR_UL_NM(str, var) printf("%s."str SQ"%lu\n", nm, (unsigned long)(var));
usr.sbin/unbound/smallapp/unbound-control.c
216
#define PR_UL(str, var) printf(str SQ"%lu\n", (unsigned long)(var));
usr.sbin/unbound/smallapp/unbound-control.c
217
#define PR_UL_SUB(str, nm, var) printf(str".%s"SQ"%lu\n", nm, (unsigned long)(var));
usr.sbin/unbound/smallapp/unbound-control.c
218
#define PR_TIMEVAL(str, var) printf(str SQ ARG_LL "d.%6.6d\n", \
usr.sbin/unbound/smallapp/unbound-control.c
220
#define PR_STATSTIME(str, var) printf(str SQ ARG_LL "d.%6.6d\n", \
usr.sbin/unbound/smallapp/unbound-control.c
222
#define PR_LL(str, var) printf(str SQ ARG_LL"d\n", (long long)(var));
usr.sbin/unbound/smallapp/unbound-control.c
632
if(extstrtoaddr(cfg->control_ifs.first->str, &addr2,
usr.sbin/unbound/smallapp/unbound-control.c
634
svr = cfg->control_ifs.first->str;
usr.sbin/unbound/smallapp/worker_cb.c
238
void remote_get_opt_ssl(char* ATTR_UNUSED(str), void* ATTR_UNUSED(arg))
usr.sbin/unbound/testcode/delayer.c
350
char str[] = "exit on signal \n";
usr.sbin/unbound/testcode/delayer.c
351
str[15] = '0' + (sig/10)%10;
usr.sbin/unbound/testcode/delayer.c
352
str[16] = '0' + sig%10;
usr.sbin/unbound/testcode/delayer.c
354
(void)!write(STDOUT_FILENO, str, strlen(str));
usr.sbin/unbound/testcode/doqclient.c
1773
struct doq_client_stream* str)
usr.sbin/unbound/testcode/doqclient.c
1776
char* logs = client_stream_string(str);
usr.sbin/unbound/testcode/doqclient.c
1780
str->write_is_done = 1;
usr.sbin/unbound/testcode/doqclient.c
1781
stream_list_move(str, data->query_list_send, data->query_list_receive);
usr.sbin/unbound/testcode/doqclient.c
1790
struct doq_client_stream* str, *next;
usr.sbin/unbound/testcode/doqclient.c
1804
str = data->query_list_send->first;
usr.sbin/unbound/testcode/doqclient.c
1832
if(str) {
usr.sbin/unbound/testcode/doqclient.c
1834
next = str->next;
usr.sbin/unbound/testcode/doqclient.c
1836
char* logs = client_stream_string(str);
usr.sbin/unbound/testcode/doqclient.c
1840
stream_id = str->stream_id;
usr.sbin/unbound/testcode/doqclient.c
1842
if(str->nwrite < 2) {
usr.sbin/unbound/testcode/doqclient.c
1843
str->data_tcplen = htons(str->data_len);
usr.sbin/unbound/testcode/doqclient.c
1844
datav[0].base = ((uint8_t*)&str->data_tcplen)+str->nwrite;
usr.sbin/unbound/testcode/doqclient.c
1845
datav[0].len = 2-str->nwrite;
usr.sbin/unbound/testcode/doqclient.c
1846
datav[1].base = str->data;
usr.sbin/unbound/testcode/doqclient.c
1847
datav[1].len = str->data_len;
usr.sbin/unbound/testcode/doqclient.c
1850
datav[0].base = str->data + (str->nwrite-2);
usr.sbin/unbound/testcode/doqclient.c
1851
datav[0].len = str->data_len - (str->nwrite-2);
usr.sbin/unbound/testcode/doqclient.c
1886
if(str && str->next != NULL) {
usr.sbin/unbound/testcode/doqclient.c
1897
if(str->next->nwrite < 2)
usr.sbin/unbound/testcode/doqclient.c
1898
possible_next_send = (2-str->next->nwrite) +
usr.sbin/unbound/testcode/doqclient.c
1899
str->next->data_len;
usr.sbin/unbound/testcode/doqclient.c
1900
else possible_next_send = str->next->data_len -
usr.sbin/unbound/testcode/doqclient.c
1901
(str->next->nwrite - 2);
usr.sbin/unbound/testcode/doqclient.c
1929
if(str) {
usr.sbin/unbound/testcode/doqclient.c
1930
str->nwrite += ndatalen;
usr.sbin/unbound/testcode/doqclient.c
1931
if(str->nwrite >= str->data_len+2)
usr.sbin/unbound/testcode/doqclient.c
1932
query_write_is_done(data, str);
usr.sbin/unbound/testcode/doqclient.c
1933
str = next;
usr.sbin/unbound/testcode/doqclient.c
1951
if(ndatalen >= 0 && str) {
usr.sbin/unbound/testcode/doqclient.c
1953
str->nwrite += ndatalen;
usr.sbin/unbound/testcode/doqclient.c
1954
if(str->nwrite >= str->data_len+2)
usr.sbin/unbound/testcode/doqclient.c
1955
query_write_is_done(data, str);
usr.sbin/unbound/testcode/doqclient.c
1987
str = next;
usr.sbin/unbound/testcode/doqclient.c
1988
if(str == NULL)
usr.sbin/unbound/testcode/doqclient.c
2397
struct doq_client_stream* str;
usr.sbin/unbound/testcode/doqclient.c
2398
str = client_stream_create(buf);
usr.sbin/unbound/testcode/doqclient.c
2399
if(!str)
usr.sbin/unbound/testcode/doqclient.c
2401
stream_list_append(data->query_list_start, str);
usr.sbin/unbound/testcode/doqclient.c
2413
char* str;
usr.sbin/unbound/testcode/doqclient.c
2415
str = sldns_wire2str_pkt(sldns_buffer_begin(buf),
usr.sbin/unbound/testcode/doqclient.c
2417
if(!str) verbose(1, "could not sldns_wire2str_pkt");
usr.sbin/unbound/testcode/doqclient.c
2418
else verbose(1, "send query:\n%s", str);
usr.sbin/unbound/testcode/doqclient.c
2419
free(str);
usr.sbin/unbound/testcode/doqclient.c
2731
void remote_get_opt_ssl(char* ATTR_UNUSED(str), void* ATTR_UNUSED(arg))
usr.sbin/unbound/testcode/doqclient.c
359
struct doq_client_stream* str = calloc(1, sizeof(*str));
usr.sbin/unbound/testcode/doqclient.c
360
if(!str)
usr.sbin/unbound/testcode/doqclient.c
362
str->data = memdup(sldns_buffer_begin(query_data),
usr.sbin/unbound/testcode/doqclient.c
364
if(!str->data)
usr.sbin/unbound/testcode/doqclient.c
366
str->data_len = sldns_buffer_limit(query_data);
usr.sbin/unbound/testcode/doqclient.c
367
str->stream_id = -1;
usr.sbin/unbound/testcode/doqclient.c
368
return str;
usr.sbin/unbound/testcode/doqclient.c
373
client_stream_free(struct doq_client_stream* str)
usr.sbin/unbound/testcode/doqclient.c
375
if(!str)
usr.sbin/unbound/testcode/doqclient.c
377
free(str->data);
usr.sbin/unbound/testcode/doqclient.c
378
sldns_buffer_free(str->answer);
usr.sbin/unbound/testcode/doqclient.c
379
free(str);
usr.sbin/unbound/testcode/doqclient.c
384
client_stream_start_setup(struct doq_client_stream* str, int64_t stream_id)
usr.sbin/unbound/testcode/doqclient.c
386
str->has_stream = 1;
usr.sbin/unbound/testcode/doqclient.c
387
str->stream_id = stream_id;
usr.sbin/unbound/testcode/doqclient.c
388
str->nwrite = 0;
usr.sbin/unbound/testcode/doqclient.c
389
str->nread = 0;
usr.sbin/unbound/testcode/doqclient.c
390
str->answer_len = 0;
usr.sbin/unbound/testcode/doqclient.c
391
str->query_is_done = 0;
usr.sbin/unbound/testcode/doqclient.c
392
str->answer_is_complete = 0;
usr.sbin/unbound/testcode/doqclient.c
393
str->query_has_error = 0;
usr.sbin/unbound/testcode/doqclient.c
394
if(str->answer) {
usr.sbin/unbound/testcode/doqclient.c
395
sldns_buffer_free(str->answer);
usr.sbin/unbound/testcode/doqclient.c
396
str->answer = NULL;
usr.sbin/unbound/testcode/doqclient.c
402
client_stream_string(struct doq_client_stream* str)
usr.sbin/unbound/testcode/doqclient.c
408
if(str->data_len <= LDNS_HEADER_SIZE) {
usr.sbin/unbound/testcode/doqclient.c
414
dname_len = dname_valid(str->data+LDNS_HEADER_SIZE,
usr.sbin/unbound/testcode/doqclient.c
415
str->data_len-LDNS_HEADER_SIZE);
usr.sbin/unbound/testcode/doqclient.c
422
(void)sldns_wire2str_dname_buf(str->data+LDNS_HEADER_SIZE, dname_len,
usr.sbin/unbound/testcode/doqclient.c
424
tp = sldns_wirerr_get_type(str->data+LDNS_HEADER_SIZE,
usr.sbin/unbound/testcode/doqclient.c
425
str->data_len-LDNS_HEADER_SIZE, dname_len);
usr.sbin/unbound/testcode/doqclient.c
448
struct doq_client_stream* str;
usr.sbin/unbound/testcode/doqclient.c
451
str = list->first;
usr.sbin/unbound/testcode/doqclient.c
452
while(str) {
usr.sbin/unbound/testcode/doqclient.c
453
struct doq_client_stream* next = str->next;
usr.sbin/unbound/testcode/doqclient.c
454
client_stream_free(str);
usr.sbin/unbound/testcode/doqclient.c
455
str = next;
usr.sbin/unbound/testcode/doqclient.c
463
struct doq_client_stream* str)
usr.sbin/unbound/testcode/doqclient.c
466
str->prev = list->last;
usr.sbin/unbound/testcode/doqclient.c
467
list->last->next = str;
usr.sbin/unbound/testcode/doqclient.c
469
str->prev = NULL;
usr.sbin/unbound/testcode/doqclient.c
470
list->first = str;
usr.sbin/unbound/testcode/doqclient.c
472
str->next = NULL;
usr.sbin/unbound/testcode/doqclient.c
473
list->last = str;
usr.sbin/unbound/testcode/doqclient.c
479
struct doq_client_stream* str)
usr.sbin/unbound/testcode/doqclient.c
481
if(str->next) {
usr.sbin/unbound/testcode/doqclient.c
482
str->next->prev = str->prev;
usr.sbin/unbound/testcode/doqclient.c
484
list->last = str->prev;
usr.sbin/unbound/testcode/doqclient.c
486
if(str->prev) {
usr.sbin/unbound/testcode/doqclient.c
487
str->prev->next = str->next;
usr.sbin/unbound/testcode/doqclient.c
489
list->first = str->next;
usr.sbin/unbound/testcode/doqclient.c
491
str->prev = NULL;
usr.sbin/unbound/testcode/doqclient.c
492
str->next = NULL;
usr.sbin/unbound/testcode/doqclient.c
497
stream_list_move(struct doq_client_stream* str,
usr.sbin/unbound/testcode/doqclient.c
501
stream_list_delete(list1, str);
usr.sbin/unbound/testcode/doqclient.c
502
stream_list_append(list2, str);
usr.sbin/unbound/testcode/doqclient.c
507
client_stream_datalen_complete(struct doq_client_stream* str)
usr.sbin/unbound/testcode/doqclient.c
509
verbose(1, "answer length %d", (int)ntohs(str->answer_len));
usr.sbin/unbound/testcode/doqclient.c
510
str->answer = sldns_buffer_new(ntohs(str->answer_len));
usr.sbin/unbound/testcode/doqclient.c
511
if(!str->answer)
usr.sbin/unbound/testcode/doqclient.c
513
sldns_buffer_set_limit(str->answer, ntohs(str->answer_len));
usr.sbin/unbound/testcode/doqclient.c
521
char* str;
usr.sbin/unbound/testcode/doqclient.c
535
str = buf;
usr.sbin/unbound/testcode/doqclient.c
538
&str, &str_len, pkt, pktlen, &comprloop);
usr.sbin/unbound/testcode/doqclient.c
541
str = buf;
usr.sbin/unbound/testcode/doqclient.c
543
(void)sldns_wire2str_rr_scan(&data, &data_len, &str, &str_len,
usr.sbin/unbound/testcode/doqclient.c
548
else *str = 0;
usr.sbin/unbound/testcode/doqclient.c
555
client_stream_print_short(struct doq_client_stream* str)
usr.sbin/unbound/testcode/doqclient.c
558
if(str->query_has_error) {
usr.sbin/unbound/testcode/doqclient.c
559
char* logs = client_stream_string(str);
usr.sbin/unbound/testcode/doqclient.c
564
if(sldns_buffer_limit(str->answer) < LDNS_HEADER_SIZE) {
usr.sbin/unbound/testcode/doqclient.c
565
char* logs = client_stream_string(str);
usr.sbin/unbound/testcode/doqclient.c
571
rcode = LDNS_RCODE_WIRE(sldns_buffer_begin(str->answer));
usr.sbin/unbound/testcode/doqclient.c
573
char* logs = client_stream_string(str);
usr.sbin/unbound/testcode/doqclient.c
580
ancount = LDNS_ANCOUNT(sldns_buffer_begin(str->answer));
usr.sbin/unbound/testcode/doqclient.c
582
char* logs = client_stream_string(str);
usr.sbin/unbound/testcode/doqclient.c
587
print_answer_rrs(sldns_buffer_begin(str->answer),
usr.sbin/unbound/testcode/doqclient.c
588
sldns_buffer_limit(str->answer));
usr.sbin/unbound/testcode/doqclient.c
594
struct doq_client_stream* str)
usr.sbin/unbound/testcode/doqclient.c
597
if(str->query_has_error) {
usr.sbin/unbound/testcode/doqclient.c
598
char* logs = client_stream_string(str);
usr.sbin/unbound/testcode/doqclient.c
603
s = sldns_wire2str_pkt(sldns_buffer_begin(str->answer),
usr.sbin/unbound/testcode/doqclient.c
604
sldns_buffer_limit(str->answer));
usr.sbin/unbound/testcode/doqclient.c
612
client_stream_data_complete(struct doq_client_stream* str)
usr.sbin/unbound/testcode/doqclient.c
616
char* logs = client_stream_string(str);
usr.sbin/unbound/testcode/doqclient.c
618
log_buf(1, "received answer", str->answer);
usr.sbin/unbound/testcode/doqclient.c
619
s = sldns_wire2str_pkt(sldns_buffer_begin(str->answer),
usr.sbin/unbound/testcode/doqclient.c
620
sldns_buffer_limit(str->answer));
usr.sbin/unbound/testcode/doqclient.c
626
str->answer_is_complete = 1;
usr.sbin/unbound/testcode/doqclient.c
631
client_stream_answer_error(struct doq_client_stream* str)
usr.sbin/unbound/testcode/doqclient.c
634
char* logs = client_stream_string(str);
usr.sbin/unbound/testcode/doqclient.c
635
if(str->answer)
usr.sbin/unbound/testcode/doqclient.c
637
logs, (int)sldns_buffer_position(str->answer),
usr.sbin/unbound/testcode/doqclient.c
638
(int)sldns_buffer_limit(str->answer));
usr.sbin/unbound/testcode/doqclient.c
644
str->query_has_error = 1;
usr.sbin/unbound/testcode/doqclient.c
649
client_stream_recv_data(struct doq_client_stream* str, const uint8_t* data,
usr.sbin/unbound/testcode/doqclient.c
654
if(str->nread < 2) {
usr.sbin/unbound/testcode/doqclient.c
656
if(datalen > 2-str->nread)
usr.sbin/unbound/testcode/doqclient.c
657
to_move = 2-str->nread;
usr.sbin/unbound/testcode/doqclient.c
658
memmove(((uint8_t*)&str->answer_len)+str->nread, data,
usr.sbin/unbound/testcode/doqclient.c
660
str->nread += to_move;
usr.sbin/unbound/testcode/doqclient.c
663
if(str->nread == 2) {
usr.sbin/unbound/testcode/doqclient.c
665
client_stream_datalen_complete(str);
usr.sbin/unbound/testcode/doqclient.c
671
if(datalen > sldns_buffer_remaining(str->answer))
usr.sbin/unbound/testcode/doqclient.c
672
to_write = sldns_buffer_remaining(str->answer);
usr.sbin/unbound/testcode/doqclient.c
674
sldns_buffer_write(str->answer, data, to_write);
usr.sbin/unbound/testcode/doqclient.c
675
str->nread += to_write;
usr.sbin/unbound/testcode/doqclient.c
688
if(got_data && str->nread >= (size_t)(ntohs(str->answer_len))+2) {
usr.sbin/unbound/testcode/doqclient.c
689
client_stream_data_complete(str);
usr.sbin/unbound/testcode/doqclient.c
697
struct doq_client_stream* str, int is_fin)
usr.sbin/unbound/testcode/doqclient.c
700
char* logs = client_stream_string(str);
usr.sbin/unbound/testcode/doqclient.c
707
if(str->write_is_done)
usr.sbin/unbound/testcode/doqclient.c
708
stream_list_move(str, data->query_list_receive,
usr.sbin/unbound/testcode/doqclient.c
711
stream_list_move(str, data->query_list_send,
usr.sbin/unbound/testcode/doqclient.c
713
if(!str->answer_is_complete) {
usr.sbin/unbound/testcode/doqclient.c
714
client_stream_answer_error(str);
usr.sbin/unbound/testcode/doqclient.c
716
str->query_is_done = 1;
usr.sbin/unbound/testcode/doqclient.c
718
client_stream_print_short(str);
usr.sbin/unbound/testcode/doqclient.c
719
else client_stream_print_long(data, str);
usr.sbin/unbound/testcode/doqclient.c
785
struct doq_client_stream* str = data->query_list_start->first;
usr.sbin/unbound/testcode/doqclient.c
787
if(!client_bidi_stream(data, &stream_id, str)) {
usr.sbin/unbound/testcode/doqclient.c
792
char* logs = client_stream_string(str);
usr.sbin/unbound/testcode/doqclient.c
798
client_stream_start_setup(str, stream_id);
usr.sbin/unbound/testcode/doqclient.c
800
stream_list_move(str, data->query_list_start,
usr.sbin/unbound/testcode/doqclient.c
844
struct doq_client_stream* str = data->query_list_send->first;
usr.sbin/unbound/testcode/doqclient.c
846
stream_list_move(str, data->query_list_send,
usr.sbin/unbound/testcode/doqclient.c
848
str->has_stream = 0;
usr.sbin/unbound/testcode/doqclient.c
850
str->stream_id = 0;
usr.sbin/unbound/testcode/doqclient.c
853
str->nwrite = 0;
usr.sbin/unbound/testcode/doqclient.c
854
str->nread = 0;
usr.sbin/unbound/testcode/doqclient.c
855
str->answer_len = 0;
usr.sbin/unbound/testcode/doqclient.c
856
str->query_is_done = 0;
usr.sbin/unbound/testcode/doqclient.c
857
str->answer_is_complete = 0;
usr.sbin/unbound/testcode/doqclient.c
858
str->query_has_error = 0;
usr.sbin/unbound/testcode/doqclient.c
859
if(str->answer) {
usr.sbin/unbound/testcode/doqclient.c
860
sldns_buffer_free(str->answer);
usr.sbin/unbound/testcode/doqclient.c
861
str->answer = NULL;
usr.sbin/unbound/testcode/doqclient.c
942
struct doq_client_stream* str = (struct doq_client_stream*)
usr.sbin/unbound/testcode/doqclient.c
956
char* logs = client_stream_string(str);
usr.sbin/unbound/testcode/doqclient.c
958
logs, (int)str->stream_id, (int)str->nread);
usr.sbin/unbound/testcode/doqclient.c
964
client_stream_recv_data(str, data, datalen);
usr.sbin/unbound/testcode/doqclient.c
967
client_stream_recv_fin(doqdata, str, 1);
usr.sbin/unbound/testcode/doqclient.c
981
struct doq_client_stream* str = (struct doq_client_stream*)
usr.sbin/unbound/testcode/doqclient.c
985
client_stream_recv_fin(doqdata, str, 0);
usr.sbin/unbound/testcode/fake_event.c
130
char* str = sldns_wire2str_pkt(pkt, len);
usr.sbin/unbound/testcode/fake_event.c
131
if(!str)
usr.sbin/unbound/testcode/fake_event.c
134
log_info("%s%s", desc, str);
usr.sbin/unbound/testcode/fake_event.c
135
free(str);
usr.sbin/unbound/testcode/fake_event.c
606
log_err("should be: %s", p->str);
usr.sbin/unbound/testcode/fake_event.c
610
expanded = macro_process(runtime->vars, runtime, p->str);
usr.sbin/unbound/testcode/fake_event.c
613
if(verbosity >= 7 && strcmp(p->str, expanded) != 0)
usr.sbin/unbound/testcode/fake_event.c
614
log_info("expanded '%s' to '%s'", p->str, expanded);
usr.sbin/unbound/testcode/fake_event.c
659
log_err("should be: %s", p->str);
usr.sbin/unbound/testcode/fake_event.c
663
expanded = macro_process(runtime->vars, runtime, p->str);
usr.sbin/unbound/testcode/fake_event.c
666
if(verbosity >= 7 && strcmp(p->str, expanded) != 0)
usr.sbin/unbound/testcode/fake_event.c
667
log_info("expanded '%s' to '%s'", p->str, expanded);
usr.sbin/unbound/testcode/lock_verify.c
164
static int readup_str(char** str, FILE* in)
usr.sbin/unbound/testcode/lock_verify.c
179
*str = strdup(buf);
usr.sbin/unbound/testcode/lock_verify.c
180
if(!*str)
usr.sbin/unbound/testcode/petal.c
109
if(inet_pton(AF_INET6, str, &a6.sin6_addr) > 0) {
usr.sbin/unbound/testcode/petal.c
117
if(inet_pton(AF_INET, str, &a.sin_addr) > 0) {
usr.sbin/unbound/testcode/petal.c
91
static void print_exit(const char* str) {printf("error %s\n", str); exit(1);}
usr.sbin/unbound/testcode/petal.c
93
static void log_errno(const char* str)
usr.sbin/unbound/testcode/petal.c
94
{printf("error %s: %s\n", str, strerror(errno));}
usr.sbin/unbound/testcode/petal.c
98
parse_ip_addr(char* str, int port, struct sockaddr_storage* ret, socklen_t* l)
usr.sbin/unbound/testcode/readzone.c
101
if (!str)
usr.sbin/unbound/testcode/readzone.c
106
free(str);
usr.sbin/unbound/testcode/readzone.c
129
rr, rr_len, str, str_len);
usr.sbin/unbound/testcode/readzone.c
132
rr, rr_len, str, str_len);
usr.sbin/unbound/testcode/readzone.c
137
free(str);
usr.sbin/unbound/testcode/readzone.c
138
if (!(str = malloc(str_len))) {
usr.sbin/unbound/testcode/readzone.c
146
rr, rr_len, str, str_len);
usr.sbin/unbound/testcode/readzone.c
149
rr, rr_len, str, str_len);
usr.sbin/unbound/testcode/readzone.c
151
fprintf(stdout, "%s", str);
usr.sbin/unbound/testcode/readzone.c
155
free(str);
usr.sbin/unbound/testcode/readzone.c
62
char *str = malloc(1024 * 1024);
usr.sbin/unbound/testcode/readzone.c
63
size_t str_len = sizeof(str);
usr.sbin/unbound/testcode/readzone.c
73
free(str);
usr.sbin/unbound/testcode/readzone.c
79
free(str);
usr.sbin/unbound/testcode/readzone.c
96
free(str);
usr.sbin/unbound/testcode/signit.c
78
convert_timeval(const char* str)
usr.sbin/unbound/testcode/signit.c
83
if(strlen(str) < 14)
usr.sbin/unbound/testcode/signit.c
85
if(sscanf(str, "%4d%2d%2d%2d%2d%2d", &tm.tm_year, &tm.tm_mon,
usr.sbin/unbound/testcode/streamtcp.c
546
char str[] = "Got unhandled signal \n";
usr.sbin/unbound/testcode/streamtcp.c
553
str[21] = '0' + (sig/10)%10;
usr.sbin/unbound/testcode/streamtcp.c
554
str[22] = '0' + sig%10;
usr.sbin/unbound/testcode/streamtcp.c
556
(void)!write(STDOUT_FILENO, str, strlen(str));
usr.sbin/unbound/testcode/testbound.c
341
unlink(p->str);
usr.sbin/unbound/testcode/testbound.c
662
void remote_get_opt_ssl(char* ATTR_UNUSED(str), void* ATTR_UNUSED(arg))
usr.sbin/unbound/testcode/testpkts.c
1400
ignore_edns_lines(char* str) {
usr.sbin/unbound/testcode/testpkts.c
1401
char* edns = str, *n;
usr.sbin/unbound/testcode/testpkts.c
1402
size_t str_len = strlen(str);
usr.sbin/unbound/testcode/testpkts.c
1410
memmove(edns, n+1, str_len-(n-str));
usr.sbin/unbound/testcode/testpkts.c
77
static int str_keyword(char** str, const char* keyword)
usr.sbin/unbound/testcode/testpkts.c
80
assert(str && keyword);
usr.sbin/unbound/testcode/testpkts.c
81
if(strncmp(*str, keyword, len) != 0)
usr.sbin/unbound/testcode/testpkts.c
83
*str += len;
usr.sbin/unbound/testcode/testpkts.c
84
while(isspace((unsigned char)**str))
usr.sbin/unbound/testcode/testpkts.c
85
(*str)++;
usr.sbin/unbound/testcode/unitauth.c
843
char* str;
usr.sbin/unbound/testcode/unitauth.c
853
str = strdup((char*)sldns_buffer_begin(buf));
usr.sbin/unbound/testcode/unitauth.c
854
if(!str) fatal_exit("out of memory");
usr.sbin/unbound/testcode/unitauth.c
856
return str;
usr.sbin/unbound/testcode/unitdname.c
52
dname_to_buf(sldns_buffer* b, const char* str)
usr.sbin/unbound/testcode/unitdname.c
57
e = sldns_str2wire_dname_buf(str, sldns_buffer_begin(b), &len);
usr.sbin/unbound/testcode/unitecs.c
108
if (!edge->str) return 12;
usr.sbin/unbound/testcode/unitecs.c
110
if (!unittest_wrapper_addrtree_issub(parent_edge->str,
usr.sbin/unbound/testcode/unitecs.c
111
parent_edge->len, edge->str, edge->len, 0))
usr.sbin/unbound/testcode/unitecs.c
131
if (!edge->str) return 4;
usr.sbin/unbound/testcode/unitldns.c
207
#define xstr(s) str(s)
usr.sbin/unbound/testcode/unitmsgparse.c
498
#define xstr(s) str(s)
usr.sbin/unbound/testcode/unitregional.c
180
str = "test12345";
usr.sbin/unbound/testcode/unitregional.c
181
a = regional_alloc_init(r, str, 8);
usr.sbin/unbound/testcode/unitregional.c
183
unit_assert(memcmp(a, str, 8) == 0);
usr.sbin/unbound/testcode/unitregional.c
187
str="\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0";
usr.sbin/unbound/testcode/unitregional.c
189
unit_assert(memcmp(a, str, 32) == 0);
usr.sbin/unbound/testcode/unitregional.c
192
str = "an interesting string";
usr.sbin/unbound/testcode/unitregional.c
193
a = regional_strdup(r, str);
usr.sbin/unbound/testcode/unitregional.c
195
unit_assert(memcmp(a, str, strlen(str)+1) == 0);
usr.sbin/unbound/testcode/unitregional.c
56
char* str;
usr.sbin/unbound/testcode/unitverify.c
513
#define xstr(s) str(s)
usr.sbin/unbound/testcode/unitzonemd.c
51
#define xstr(s) str(s)
usr.sbin/unbound/util/config_file.c
1001
return strdup(list->str);
usr.sbin/unbound/util/config_file.c
1004
total += strlen(s->str) + 1; /* len + newline */
usr.sbin/unbound/util/config_file.c
1011
size_t this = strlen(s->str);
usr.sbin/unbound/util/config_file.c
1016
snprintf(w, left, "%s\n", s->str);
usr.sbin/unbound/util/config_file.c
1025
#define O_DEC(opt, str, var) if(strcmp(opt, str)==0) \
usr.sbin/unbound/util/config_file.c
1029
#define O_UNS(opt, str, var) if(strcmp(opt, str)==0) \
usr.sbin/unbound/util/config_file.c
1033
#define O_YNO(opt, str, var) if(strcmp(opt, str)==0) \
usr.sbin/unbound/util/config_file.c
1036
#define O_STR(opt, str, var) if(strcmp(opt, str)==0) \
usr.sbin/unbound/util/config_file.c
1039
#define O_IFC(opt, str, num, arr) if(strcmp(opt, str)==0) \
usr.sbin/unbound/util/config_file.c
1042
#define O_MEM(opt, str, var) if(strcmp(opt, str)==0) { \
usr.sbin/unbound/util/config_file.c
1052
func(p->str, arg); \
usr.sbin/unbound/util/config_file.c
1058
snprintf(buf, len, "%s %s", p->str, p->str2); \
usr.sbin/unbound/util/config_file.c
1066
snprintf(buf, len, "%s %s %s", p->str, p->str2, p->str3); \
usr.sbin/unbound/util/config_file.c
1077
snprintf(buf, len, "%s %s", p->str, tmpstr); \
usr.sbin/unbound/util/config_file.c
1604
free(p->str);
usr.sbin/unbound/util/config_file.c
1616
free(p->str);
usr.sbin/unbound/util/config_file.c
1629
free(p->str);
usr.sbin/unbound/util/config_file.c
1728
free(p->str);
usr.sbin/unbound/util/config_file.c
1895
extract_port_from_str(const char* str, int max_port) {
usr.sbin/unbound/util/config_file.c
1898
if (str == NULL || *str == '\0') {
usr.sbin/unbound/util/config_file.c
1899
log_err("str: '%s' is invalid", (str?str:"NULL"));
usr.sbin/unbound/util/config_file.c
1903
value = strtol(str, &endptr, 10);
usr.sbin/unbound/util/config_file.c
1904
if ((endptr == str) || (*endptr != '\0')) {
usr.sbin/unbound/util/config_file.c
1905
log_err("cannot parse port number '%s'", str);
usr.sbin/unbound/util/config_file.c
1910
log_err("overflow occurred when parsing '%s'", str);
usr.sbin/unbound/util/config_file.c
1914
if (value == 0 && strcmp(str, "0") != 0) {
usr.sbin/unbound/util/config_file.c
1915
log_err("cannot parse port number '%s'", str);
usr.sbin/unbound/util/config_file.c
1920
log_err(" '%s' is out of bounds [0, %d)", str, max_port);
usr.sbin/unbound/util/config_file.c
1928
cfg_mark_ports(const char* str, int allow, int* avail, int num)
usr.sbin/unbound/util/config_file.c
1930
char* mid = strchr(str, '-');
usr.sbin/unbound/util/config_file.c
1937
int port = extract_port_from_str(str, num);
usr.sbin/unbound/util/config_file.c
1953
if( (int)(mid-str)+1 >= (int)sizeof(buf) ) {
usr.sbin/unbound/util/config_file.c
1954
log_err("cannot parse port number '%s'", str);
usr.sbin/unbound/util/config_file.c
1958
if(mid > str)
usr.sbin/unbound/util/config_file.c
1959
memcpy(buf, str, (size_t)(mid-str));
usr.sbin/unbound/util/config_file.c
1960
buf[mid-str] = 0;
usr.sbin/unbound/util/config_file.c
2060
void ub_c_error(const char *str)
usr.sbin/unbound/util/config_file.c
2063
if(strcmp(str, "syntax error")==0 && cfg_parser->started_toplevel ==0)
usr.sbin/unbound/util/config_file.c
2064
str = "syntax error, is there no section start after an "
usr.sbin/unbound/util/config_file.c
2067
cfg_parser->line, str);
usr.sbin/unbound/util/config_file.c
2087
s->str = item;
usr.sbin/unbound/util/config_file.c
2108
s->str = item;
usr.sbin/unbound/util/config_file.c
2122
if(strcmp(s->str, item) == 0) {
usr.sbin/unbound/util/config_file.c
2143
s->str = item;
usr.sbin/unbound/util/config_file.c
2158
s->str = item;
usr.sbin/unbound/util/config_file.c
2189
s->str = item;
usr.sbin/unbound/util/config_file.c
2206
s->str = item;
usr.sbin/unbound/util/config_file.c
2224
s->str = item;
usr.sbin/unbound/util/config_file.c
2233
cfg_convert_timeval(const char* str)
usr.sbin/unbound/util/config_file.c
2238
if(strlen(str) < 14)
usr.sbin/unbound/util/config_file.c
2240
if(sscanf(str, "%4d%2d%2d%2d%2d%2d", &tm.tm_year, &tm.tm_mon,
usr.sbin/unbound/util/config_file.c
2283
static int isalldigit(const char* str, size_t l)
usr.sbin/unbound/util/config_file.c
2287
if(!isdigit((unsigned char)str[i]))
usr.sbin/unbound/util/config_file.c
2293
cfg_parse_memsize(const char* str, size_t* res)
usr.sbin/unbound/util/config_file.c
2297
if(!str || (len=(size_t)strlen(str)) == 0) {
usr.sbin/unbound/util/config_file.c
2298
log_err("not a size: '%s'", str);
usr.sbin/unbound/util/config_file.c
2301
if(isalldigit(str, len)) {
usr.sbin/unbound/util/config_file.c
2302
*res = (size_t)atol(str);
usr.sbin/unbound/util/config_file.c
2306
while(len>0 && str[len-1]==' ')
usr.sbin/unbound/util/config_file.c
2308
if(len > 1 && str[len-1] == 'b')
usr.sbin/unbound/util/config_file.c
2310
else if(len > 1 && str[len-1] == 'B')
usr.sbin/unbound/util/config_file.c
2313
if(len > 1 && tolower((unsigned char)str[len-1]) == 'g')
usr.sbin/unbound/util/config_file.c
2315
else if(len > 1 && tolower((unsigned char)str[len-1]) == 'm')
usr.sbin/unbound/util/config_file.c
2317
else if(len > 1 && tolower((unsigned char)str[len-1]) == 'k')
usr.sbin/unbound/util/config_file.c
2319
else if(len > 0 && isdigit((unsigned char)str[len-1]))
usr.sbin/unbound/util/config_file.c
2322
log_err("unknown size specifier: '%s'", str);
usr.sbin/unbound/util/config_file.c
2325
while(len>1 && str[len-2]==' ')
usr.sbin/unbound/util/config_file.c
2328
if(!isalldigit(str, len-1)) {
usr.sbin/unbound/util/config_file.c
2329
log_err("unknown size specifier: '%s'", str);
usr.sbin/unbound/util/config_file.c
2332
*res = ((size_t)atol(str)) * mult;
usr.sbin/unbound/util/config_file.c
2381
uint8_t* config_parse_taglist(struct config_file* cfg, char* str,
usr.sbin/unbound/util/config_file.c
2401
s = str;
usr.sbin/unbound/util/config_file.c
2419
uint8_t* cfg_parse_nsid(const char* str, uint16_t* nsid_len)
usr.sbin/unbound/util/config_file.c
2423
if (strncasecmp(str, "ascii_", 6) == 0) {
usr.sbin/unbound/util/config_file.c
2424
if ((nsid = (uint8_t *)strdup(str + 6)))
usr.sbin/unbound/util/config_file.c
2425
*nsid_len = strlen(str + 6);
usr.sbin/unbound/util/config_file.c
2427
} else if (strlen(str) % 2) {
usr.sbin/unbound/util/config_file.c
2431
else if (*str && (nsid = calloc(1, strlen(str) / 2))) {
usr.sbin/unbound/util/config_file.c
2435
for ( ch = str, dp = nsid
usr.sbin/unbound/util/config_file.c
2445
*nsid_len = strlen(str) / 2;
usr.sbin/unbound/util/config_file.c
2633
static char* next_space_pos(const char* str)
usr.sbin/unbound/util/config_file.c
2635
char* sp = strchr(str, ' ');
usr.sbin/unbound/util/config_file.c
2636
char* tab = strchr(str, '\t');
usr.sbin/unbound/util/config_file.c
2645
static char* last_space_pos(const char* str)
usr.sbin/unbound/util/config_file.c
2647
char* sp = strrchr(str, ' ');
usr.sbin/unbound/util/config_file.c
2648
char* tab = strrchr(str, '\t');
usr.sbin/unbound/util/config_file.c
2704
char* cfg_ptr_reverse(char* str)
usr.sbin/unbound/util/config_file.c
2714
ip = str;
usr.sbin/unbound/util/config_file.c
2718
log_err("syntax error: too short: %s", str);
usr.sbin/unbound/util/config_file.c
2723
log_err("syntax error: expected name: %s", str);
usr.sbin/unbound/util/config_file.c
2729
log_err("syntax error: expected name: %s", str);
usr.sbin/unbound/util/config_file.c
2737
log_err("syntax error: cannot parse address: %s", str);
usr.sbin/unbound/util/config_file.c
2780
log_err("out of memory parsing %s", str);
usr.sbin/unbound/util/config_file.c
2848
if(!cfg->control_ifs.first->str) return 1;
usr.sbin/unbound/util/config_file.c
2849
if(cfg->control_ifs.first->str[0] == 0) return 1;
usr.sbin/unbound/util/config_file.c
2850
return (cfg->control_ifs.first->str[0] != '/');
usr.sbin/unbound/util/config_file.c
2866
if(if_port == atoi(s->str)) return 1;
usr.sbin/unbound/util/config_file.c
2906
getmem_str(char* str)
usr.sbin/unbound/util/config_file.c
2908
if(!str) return 0;
usr.sbin/unbound/util/config_file.c
2909
return strlen(str)+1;
usr.sbin/unbound/util/config_file.c
479
#define S_NUMBER_OR_ZERO(str, var) if(strcmp(opt, str) == 0) \
usr.sbin/unbound/util/config_file.c
482
#define S_NUMBER_NONZERO(str, var) if(strcmp(opt, str) == 0) \
usr.sbin/unbound/util/config_file.c
485
#define S_UNSIGNED_OR_ZERO(str, var) if(strcmp(opt, str) == 0) \
usr.sbin/unbound/util/config_file.c
488
#define S_SIZET_OR_ZERO(str, var) if(strcmp(opt, str) == 0) \
usr.sbin/unbound/util/config_file.c
491
#define S_SIZET_NONZERO(str, var) if(strcmp(opt, str) == 0) \
usr.sbin/unbound/util/config_file.c
494
#define S_YNO(str, var) if(strcmp(opt, str) == 0) \
usr.sbin/unbound/util/config_file.c
497
#define S_MEMSIZE(str, var) if(strcmp(opt, str)==0) \
usr.sbin/unbound/util/config_file.c
500
#define S_POW2(str, var) if(strcmp(opt, str)==0) \
usr.sbin/unbound/util/config_file.c
503
#define S_STR(str, var) if(strcmp(opt, str)==0) \
usr.sbin/unbound/util/config_file.c
506
#define S_STRLIST(str, var) if(strcmp(opt, str)==0) \
usr.sbin/unbound/util/config_file.c
509
#define S_STRLIST_UNIQ(str, var) if(strcmp(opt, str)==0) \
usr.sbin/unbound/util/config_file.c
513
#define S_STRLIST_APPEND(str, var) if(strcmp(opt, str)==0) \
usr.sbin/unbound/util/config_file.c
979
config_get_option_collate(struct config_file* cfg, const char* opt, char** str)
usr.sbin/unbound/util/config_file.c
983
*str = NULL;
usr.sbin/unbound/util/config_file.c
986
*str = config_collate_cat(list);
usr.sbin/unbound/util/config_file.c
988
if(!*str) return 2;
usr.sbin/unbound/util/config_file.h
1057
char** str);
usr.sbin/unbound/util/config_file.h
1231
time_t cfg_convert_timeval(const char* str);
usr.sbin/unbound/util/config_file.h
1243
int cfg_count_numbers(const char* str);
usr.sbin/unbound/util/config_file.h
1254
int cfg_parse_memsize(const char* str, size_t* res);
usr.sbin/unbound/util/config_file.h
1264
uint8_t* cfg_parse_nsid(const char* str, uint16_t* nsid_len);
usr.sbin/unbound/util/config_file.h
1290
uint8_t* config_parse_taglist(struct config_file* cfg, char* str,
usr.sbin/unbound/util/config_file.h
1331
int cfg_mark_ports(const char* str, int allow, int* avail, int num);
usr.sbin/unbound/util/config_file.h
1373
char* cfg_ptr_reverse(char* str);
usr.sbin/unbound/util/config_file.h
1482
size_t getmem_str(char* str);
usr.sbin/unbound/util/config_file.h
917
char* str;
usr.sbin/unbound/util/config_file.h
927
char* str;
usr.sbin/unbound/util/config_file.h
939
char* str;
usr.sbin/unbound/util/config_file.h
954
char* str;
usr.sbin/unbound/util/configparser.y
69
char* str;
usr.sbin/unbound/util/configparser.y
73
%token <str> STRING_ARG
usr.sbin/unbound/util/data/dname.c
639
void dname_str(uint8_t* dname, char* str)
usr.sbin/unbound/util/data/dname.c
643
char* s = str;
usr.sbin/unbound/util/data/dname.c
653
if ((s-str) >= (LDNS_MAX_DOMAINLEN-1))
usr.sbin/unbound/util/data/dname.c
654
s = str + LDNS_MAX_DOMAINLEN - 2;
usr.sbin/unbound/util/data/dname.h
252
void dname_str(uint8_t* dname, char* str);
usr.sbin/unbound/util/data/msgparse.c
1326
char str[128], *s;
usr.sbin/unbound/util/data/msgparse.c
1330
s = str;
usr.sbin/unbound/util/data/msgparse.c
1331
slen = sizeof(str);
usr.sbin/unbound/util/data/msgparse.c
1334
verbose(level, " %s", str);
usr.sbin/unbound/util/data/msgparse.c
1342
msgparse_rrset_remove_rr(const char* str, sldns_buffer* pkt, struct rrset_parse* rrset,
usr.sbin/unbound/util/data/msgparse.c
1345
if(verbosity >= VERB_QUERY && rrset->dname_len <= LDNS_MAX_DOMAINLEN && str) {
usr.sbin/unbound/util/data/msgparse.c
1349
log_name_addr(VERB_QUERY, str, buf, addr, addrlen);
usr.sbin/unbound/util/data/msgparse.c
1350
else log_nametypeclass(VERB_QUERY, str, buf,
usr.sbin/unbound/util/data/msgparse.h
395
int msgparse_rrset_remove_rr(const char* str, struct sldns_buffer* pkt,
usr.sbin/unbound/util/data/msgreply.c
1044
log_query_info(enum verbosity_value v, const char* str,
usr.sbin/unbound/util/data/msgreply.c
1047
log_nametypeclass(v, str, qinf->qname, qinf->qtype, qinf->qclass);
usr.sbin/unbound/util/data/msgreply.c
936
log_dns_msg(const char* str, struct query_info* qinfo, struct reply_info* rep)
usr.sbin/unbound/util/data/msgreply.c
942
log_err("%s: log_dns_msg: out of memory", str);
usr.sbin/unbound/util/data/msgreply.c
949
log_err("%s: log_dns_msg: out of memory", str);
usr.sbin/unbound/util/data/msgreply.c
954
log_info("%s: log_dns_msg: ldns tostr failed", str);
usr.sbin/unbound/util/data/msgreply.c
956
log_info("%s %s", str, s);
usr.sbin/unbound/util/data/msgreply.h
540
void log_dns_msg(const char* str, struct query_info* qinfo,
usr.sbin/unbound/util/data/msgreply.h
571
void log_query_info(enum verbosity_value v, const char* str,
usr.sbin/unbound/util/data/packed_rrset.c
264
void log_rrset_key(enum verbosity_value v, const char* str,
usr.sbin/unbound/util/data/packed_rrset.c
268
log_nametypeclass(v, str, rrset->rk.dname,
usr.sbin/unbound/util/data/packed_rrset.c
306
void log_packed_rrset(enum verbosity_value v, const char* str,
usr.sbin/unbound/util/data/packed_rrset.c
317
log_info("%s: rr %d wire2str-error", str, (int)i);
usr.sbin/unbound/util/data/packed_rrset.c
319
log_info("%s: %s", str, buf);
usr.sbin/unbound/util/data/packed_rrset.h
416
void log_rrset_key(enum verbosity_value v, const char* str,
usr.sbin/unbound/util/data/packed_rrset.h
437
void log_packed_rrset(enum verbosity_value v, const char* str,
usr.sbin/unbound/util/edns.c
107
log_assert(c->str && c->str2);
usr.sbin/unbound/util/edns.c
109
if(!netblockstrtoaddr(c->str, UNBOUND_DNS_PORT, &addr, &addrlen,
usr.sbin/unbound/util/edns.c
112
"%s", c->str);
usr.sbin/unbound/util/locks.c
156
static void log_win_err(const char* str, DWORD err)
usr.sbin/unbound/util/locks.c
163
log_err("%s, GetLastError=%d", str, (int)err);
usr.sbin/unbound/util/locks.c
166
log_err("%s, (err=%d): %s", str, (int)err, buf);
usr.sbin/unbound/util/log.c
252
LPCTSTR str = m;
usr.sbin/unbound/util/log.c
270
ReportEvent(s, wt, 0, tp, NULL, 1, 0, &str, NULL);
usr.sbin/unbound/util/module.c
148
snprintf(p, left, " %s", s->str);
usr.sbin/unbound/util/module.c
191
snprintf(p, left, " %s", s->str);
usr.sbin/unbound/util/module.c
209
snprintf(p, left, "%s%s", (s==qstate->errinf?"":" "), s->str);
usr.sbin/unbound/util/module.c
232
void errinf_dname(struct module_qstate* qstate, const char* str, uint8_t* dname)
usr.sbin/unbound/util/module.c
236
if((qstate->env->cfg->val_log_level < 2 && !qstate->env->cfg->log_servfail) || !str || !dname)
usr.sbin/unbound/util/module.c
239
snprintf(b, sizeof(b), "%s %s", str, buf);
usr.sbin/unbound/util/module.c
392
char str[32], *s;
usr.sbin/unbound/util/module.c
398
s = str;
usr.sbin/unbound/util/module.c
399
slen = sizeof(str);
usr.sbin/unbound/util/module.c
402
verbose(level, " %-8.8s %-19s %-15s", str,
usr.sbin/unbound/util/module.c
78
void errinf(struct module_qstate* qstate, const char* str)
usr.sbin/unbound/util/module.c
80
errinf_ede(qstate, str, LDNS_EDE_NONE);
usr.sbin/unbound/util/module.c
84
const char* str, sldns_ede_code reason_bogus)
usr.sbin/unbound/util/module.c
87
if(!str || (qstate->env->cfg->val_log_level < 2 &&
usr.sbin/unbound/util/module.c
97
p->str = regional_strdup(qstate->region, str);
usr.sbin/unbound/util/module.c
99
if(!p->str) {
usr.sbin/unbound/util/module.h
196
char* str;
usr.sbin/unbound/util/module.h
832
void errinf(struct module_qstate* qstate, const char* str);
usr.sbin/unbound/util/module.h
833
void errinf_ede(struct module_qstate* qstate, const char* str,
usr.sbin/unbound/util/module.h
859
void errinf_dname(struct module_qstate* qstate, const char* str,
usr.sbin/unbound/util/net_help.c
1010
log_crypto_err(const char* str)
usr.sbin/unbound/util/net_help.c
1013
log_crypto_err_code(str, ERR_get_error());
usr.sbin/unbound/util/net_help.c
1015
(void)str;
usr.sbin/unbound/util/net_help.c
1019
void log_crypto_err_code(const char* str, unsigned long err)
usr.sbin/unbound/util/net_help.c
1026
log_err("%s crypto %s", str, buf);
usr.sbin/unbound/util/net_help.c
1032
(void)str;
usr.sbin/unbound/util/net_help.c
1039
static void log_crypto_err_io_code_arg(const char* str, int r,
usr.sbin/unbound/util/net_help.c
1099
str, strerror(errno));
usr.sbin/unbound/util/net_help.c
1105
log_crypto_err_code(str, err);
usr.sbin/unbound/util/net_help.c
1106
else log_crypto_err(str);
usr.sbin/unbound/util/net_help.c
1112
str, strerror(errno));
usr.sbin/unbound/util/net_help.c
1113
else log_err("%s: %s", str, strerror(errno));
usr.sbin/unbound/util/net_help.c
1115
log_err("%s: %s", str, inf);
usr.sbin/unbound/util/net_help.c
1121
void log_crypto_err_io(const char* str, int r)
usr.sbin/unbound/util/net_help.c
1124
log_crypto_err_io_code_arg(str, r, 0, 0);
usr.sbin/unbound/util/net_help.c
1126
(void)str;
usr.sbin/unbound/util/net_help.c
1131
void log_crypto_err_io_code(const char* str, int r, unsigned long err)
usr.sbin/unbound/util/net_help.c
1134
log_crypto_err_io_code_arg(str, r, err, 1);
usr.sbin/unbound/util/net_help.c
1136
(void)str;
usr.sbin/unbound/util/net_help.c
1145
log_cert(unsigned level, const char* str, void* cert)
usr.sbin/unbound/util/net_help.c
1168
verbose(level, "%s: \n%s", str, pp);
usr.sbin/unbound/util/net_help.c
131
str_is_ip6(const char* str)
usr.sbin/unbound/util/net_help.c
133
if(strchr(str, ':'))
usr.sbin/unbound/util/net_help.c
1823
f = fopen(p->str, "rb");
usr.sbin/unbound/util/net_help.c
1825
log_err("could not read tls-session-ticket-key %s: %s", p->str, strerror(errno));
usr.sbin/unbound/util/net_help.c
1833
log_err("tls-session-ticket-key %s is %d bytes, must be 80 bytes", p->str, (int)n);
usr.sbin/unbound/util/net_help.c
1837
verbose(VERB_OPS, "read tls-session-ticket-key: %s", p->str);
usr.sbin/unbound/util/net_help.c
207
log_addr(enum verbosity_value v, const char* str,
usr.sbin/unbound/util/net_help.c
226
verbose(v, "%s local %s", str, dest);
usr.sbin/unbound/util/net_help.c
236
verbose(v, "%s %s %s port %d (len %d)", str, family, dest,
usr.sbin/unbound/util/net_help.c
238
else verbose(v, "%s %s port %d", str, dest, (int)port);
usr.sbin/unbound/util/net_help.c
242
extstrtoaddr(const char* str, struct sockaddr_storage* addr,
usr.sbin/unbound/util/net_help.c
246
if((s=strchr(str, '@'))) {
usr.sbin/unbound/util/net_help.c
248
if(s-str >= MAX_ADDR_STRLEN) {
usr.sbin/unbound/util/net_help.c
251
(void)strlcpy(buf, str, sizeof(buf));
usr.sbin/unbound/util/net_help.c
252
buf[s-str] = 0;
usr.sbin/unbound/util/net_help.c
259
return ipstrtoaddr(str, port, addr, addrlen);
usr.sbin/unbound/util/net_help.c
304
int netblockstrtoaddr(const char* str, int port, struct sockaddr_storage* addr,
usr.sbin/unbound/util/net_help.c
309
*net = (str_is_ip6(str)?128:32);
usr.sbin/unbound/util/net_help.c
310
if((s=strchr(str, '/'))) {
usr.sbin/unbound/util/net_help.c
312
log_err("netblock too large: %s", str);
usr.sbin/unbound/util/net_help.c
317
log_err("cannot parse netblock: '%s'", str);
usr.sbin/unbound/util/net_help.c
322
*net, str);
usr.sbin/unbound/util/net_help.c
325
strlcpy(buf, str, sizeof(buf));
usr.sbin/unbound/util/net_help.c
330
if(!ipstrtoaddr(s?s:str, port, addr, addrlen)) {
usr.sbin/unbound/util/net_help.c
331
log_err("cannot parse ip address: '%s'", str);
usr.sbin/unbound/util/net_help.c
449
int authextstrtoaddr(char* str, struct sockaddr_storage* addr,
usr.sbin/unbound/util/net_help.c
454
if((s=strchr(str, '@'))) {
usr.sbin/unbound/util/net_help.c
456
size_t len = (size_t)(s-str);
usr.sbin/unbound/util/net_help.c
466
(void)strlcpy(buf, str, sizeof(buf));
usr.sbin/unbound/util/net_help.c
477
if((s=strchr(str, '#'))) {
usr.sbin/unbound/util/net_help.c
479
size_t len = (size_t)(s-str);
usr.sbin/unbound/util/net_help.c
483
(void)strlcpy(buf, str, sizeof(buf));
usr.sbin/unbound/util/net_help.c
490
return ipstrtoaddr(str, port, addr, addrlen);
usr.sbin/unbound/util/net_help.c
493
uint8_t* authextstrtodname(char* str, int* port, char** auth_name)
usr.sbin/unbound/util/net_help.c
500
if((s=strchr(str, '@'))) {
usr.sbin/unbound/util/net_help.c
502
size_t len = (size_t)(s-str);
usr.sbin/unbound/util/net_help.c
512
(void)strlcpy(buf, str, sizeof(buf));
usr.sbin/unbound/util/net_help.c
522
} else if((s=strchr(str, '#'))) {
usr.sbin/unbound/util/net_help.c
524
size_t len = (size_t)(s-str);
usr.sbin/unbound/util/net_help.c
528
(void)strlcpy(buf, str, sizeof(buf));
usr.sbin/unbound/util/net_help.c
534
dname = sldns_str2wire_dname(str, &dname_len);
usr.sbin/unbound/util/net_help.c
553
log_nametypeclass(enum verbosity_value v, const char* str, uint8_t* name,
usr.sbin/unbound/util/net_help.c
581
log_info("%s %s %s %s", str, buf, ts, cs);
usr.sbin/unbound/util/net_help.c
585
log_query_in(const char* str, uint8_t* name, uint16_t type, uint16_t dclass)
usr.sbin/unbound/util/net_help.c
611
log_query("%s %s %s %s", str, buf, ts, cs);
usr.sbin/unbound/util/net_help.c
612
else log_info("%s %s %s %s", str, buf, ts, cs);
usr.sbin/unbound/util/net_help.c
615
void log_name_addr(enum verbosity_value v, const char* str, uint8_t* zone,
usr.sbin/unbound/util/net_help.c
642
str, namebuf, family, dest, (int)port, (int)addrlen);
usr.sbin/unbound/util/net_help.c
644
str, namebuf, family, dest, (int)port);
usr.sbin/unbound/util/net_help.c
647
void log_err_addr(const char* str, const char* err,
usr.sbin/unbound/util/net_help.c
662
log_err("%s: %s for %s port %d (len %d)", str, err, dest,
usr.sbin/unbound/util/net_help.c
664
else log_err("%s: %s for %s port %d", str, err, dest, (int)port);
usr.sbin/unbound/util/net_help.h
118
int str_is_ip6(const char* str);
usr.sbin/unbound/util/net_help.h
156
void log_addr(enum verbosity_value v, const char* str,
usr.sbin/unbound/util/net_help.h
167
void log_name_addr(enum verbosity_value v, const char* str, uint8_t* zone,
usr.sbin/unbound/util/net_help.h
177
void log_err_addr(const char* str, const char* err,
usr.sbin/unbound/util/net_help.h
189
int extstrtoaddr(const char* str, struct sockaddr_storage* addr,
usr.sbin/unbound/util/net_help.h
227
int authextstrtoaddr(char* str, struct sockaddr_storage* addr,
usr.sbin/unbound/util/net_help.h
241
uint8_t* authextstrtodname(char* str, int* port, char** auth_name);
usr.sbin/unbound/util/net_help.h
260
void log_nametypeclass(enum verbosity_value v, const char* str,
usr.sbin/unbound/util/net_help.h
266
void log_query_in(const char* str, uint8_t* name, uint16_t type,
usr.sbin/unbound/util/net_help.h
443
void log_crypto_err(const char* str);
usr.sbin/unbound/util/net_help.h
450
void log_crypto_err_code(const char* str, unsigned long err);
usr.sbin/unbound/util/net_help.h
459
void log_crypto_err_io(const char* str, int r);
usr.sbin/unbound/util/net_help.h
468
void log_crypto_err_io_code(const char* str, int r, unsigned long err);
usr.sbin/unbound/util/net_help.h
476
void log_cert(unsigned level, const char* str, void* cert);
usr.sbin/unbound/util/netevent.c
574
static void p_ancil(const char* str, struct comm_reply* r)
usr.sbin/unbound/util/netevent.c
577
log_info("%s: unknown srctype %d", str, r->srctype);
usr.sbin/unbound/util/netevent.c
589
log_info("%s: %s %d", str, buf, r->pktinfo.v6info.ipi6_ifindex);
usr.sbin/unbound/util/netevent.c
608
log_info("%s: %d %s %s", str, r->pktinfo.v4info.ipi_ifindex,
usr.sbin/unbound/util/netevent.c
617
log_info("%s: %s", str, buf1);
usr.sbin/unbound/util/tcp_conn_limit.c
106
tcl_list_str_cfg(struct tcl_list* tcl, const char* str, const char* s2,
usr.sbin/unbound/util/tcp_conn_limit.c
118
if(!netblockstrtoaddr(str, UNBOUND_DNS_PORT, &addr, &addrlen, &net)) {
usr.sbin/unbound/util/tcp_conn_limit.c
119
log_err("cannot parse connection limit netblock: %s", str);
usr.sbin/unbound/util/tcp_conn_limit.c
136
log_assert(p->str && p->str2);
usr.sbin/unbound/util/tcp_conn_limit.c
137
if(!tcl_list_str_cfg(tcl, p->str, p->str2, 1))
usr.sbin/unbound/validator/autotrust.c
1118
char* str;
usr.sbin/unbound/validator/autotrust.c
1167
str = sldns_wire2str_rr(ta->rr, ta->rr_len);
usr.sbin/unbound/validator/autotrust.c
1168
if(!str || !str[0]) {
usr.sbin/unbound/validator/autotrust.c
1169
free(str);
usr.sbin/unbound/validator/autotrust.c
1173
str[strlen(str)-1] = 0; /* remove newline */
usr.sbin/unbound/validator/autotrust.c
1175
";;lastchange=%u ;;%s", str, (int)ta->s,
usr.sbin/unbound/validator/autotrust.c
1180
free(str);
usr.sbin/unbound/validator/autotrust.c
1183
free(str);
usr.sbin/unbound/validator/autotrust.c
120
position_in_string(char *str, const char* sub)
usr.sbin/unbound/validator/autotrust.c
122
char* pos = strstr(str, sub);
usr.sbin/unbound/validator/autotrust.c
124
return (int)(pos-str)+(int)strlen(sub);
usr.sbin/unbound/validator/autotrust.c
146
char* str = sldns_wire2str_dname(ta->rr, ta->dname_len);
usr.sbin/unbound/validator/autotrust.c
153
verbose(level, "%s key %d %s", str?str:"??", keytag, msg);
usr.sbin/unbound/validator/autotrust.c
154
free(str);
usr.sbin/unbound/validator/autotrust.c
166
parse_comments(char* str, struct autr_ta* ta)
usr.sbin/unbound/validator/autotrust.c
168
int len = (int)strlen(str), pos = 0, timestamp = 0;
usr.sbin/unbound/validator/autotrust.c
176
while (*str != '\0' && *str != ';')
usr.sbin/unbound/validator/autotrust.c
177
str++;
usr.sbin/unbound/validator/autotrust.c
178
if (*str == ';')
usr.sbin/unbound/validator/autotrust.c
179
str++;
usr.sbin/unbound/validator/autotrust.c
181
while (*str != '\0')
usr.sbin/unbound/validator/autotrust.c
183
*comments = *str;
usr.sbin/unbound/validator/autotrust.c
185
str++;
usr.sbin/unbound/validator/autotrust.c
2287
char* str = sldns_wire2str_rr(ta->rr, ta->rr_len);
usr.sbin/unbound/validator/autotrust.c
2288
if(!str) {
usr.sbin/unbound/validator/autotrust.c
2292
if(str[0]) str[strlen(str)-1]=0; /* remove newline */
usr.sbin/unbound/validator/autotrust.c
2296
trustanchor_state2str(ta->s), str, ta->s, ta->pending_count,
usr.sbin/unbound/validator/autotrust.c
2298
free(str);
usr.sbin/unbound/validator/autotrust.c
261
str_contains_data(char* str, char comment)
usr.sbin/unbound/validator/autotrust.c
263
while (*str != '\0') {
usr.sbin/unbound/validator/autotrust.c
264
if (*str == comment || *str == '\n')
usr.sbin/unbound/validator/autotrust.c
266
if (*str != ' ' && *str != '\t')
usr.sbin/unbound/validator/autotrust.c
268
str++;
usr.sbin/unbound/validator/autotrust.c
476
add_trustanchor_frm_str(struct val_anchors* anchors, char* str,
usr.sbin/unbound/validator/autotrust.c
484
if (!str_contains_data(str, ';')) {
usr.sbin/unbound/validator/autotrust.c
488
if(0 != (lstatus = sldns_str2wire_rr_buf(str, rr, &rr_len, &dname_len,
usr.sbin/unbound/validator/autotrust.c
493
sldns_get_errorstr_parse(lstatus), str);
usr.sbin/unbound/validator/autotrust.c
529
load_trustanchor(struct val_anchors* anchors, char* str, const char* fname,
usr.sbin/unbound/validator/autotrust.c
536
ta = add_trustanchor_frm_str(anchors, str, &tp, origin, origin_len,
usr.sbin/unbound/validator/autotrust.c
541
if(!parse_comments(str, ta)) {
usr.sbin/unbound/validator/val_anchor.c
1069
if(!f->str || f->str[0] == 0) /* empty "" */
usr.sbin/unbound/validator/val_anchor.c
1071
if(!anchor_insert_insecure(anchors, f->str)) {
usr.sbin/unbound/validator/val_anchor.c
1072
log_err("error in domain-insecure: %s", f->str);
usr.sbin/unbound/validator/val_anchor.c
1078
if(!f->str || f->str[0] == 0) /* empty "" */
usr.sbin/unbound/validator/val_anchor.c
1080
nm = f->str;
usr.sbin/unbound/validator/val_anchor.c
1085
log_err("error reading trust-anchor-file: %s", f->str);
usr.sbin/unbound/validator/val_anchor.c
1091
if(!f->str || f->str[0] == 0) /* empty "" */
usr.sbin/unbound/validator/val_anchor.c
1093
nm = f->str;
usr.sbin/unbound/validator/val_anchor.c
1098
log_err("error reading trusted-keys-file: %s", f->str);
usr.sbin/unbound/validator/val_anchor.c
1104
if(!f->str || f->str[0] == 0) /* empty "" */
usr.sbin/unbound/validator/val_anchor.c
1106
if(!anchor_store_str(anchors, parsebuf, f->str)) {
usr.sbin/unbound/validator/val_anchor.c
1107
log_err("error in trust-anchor: \"%s\"", f->str);
usr.sbin/unbound/validator/val_anchor.c
1115
if(!f->str || f->str[0] == 0) /* empty "" */
usr.sbin/unbound/validator/val_anchor.c
1117
nm = f->str;
usr.sbin/unbound/validator/val_anchor.c
1123
f->str);
usr.sbin/unbound/validator/val_anchor.c
381
anchor_insert_insecure(struct val_anchors* anchors, const char* str)
usr.sbin/unbound/validator/val_anchor.c
385
uint8_t* nm = sldns_str2wire_dname(str, &dname_len);
usr.sbin/unbound/validator/val_anchor.c
387
log_err("parse error in domain name '%s'", str);
usr.sbin/unbound/validator/val_anchor.c
398
const char* str)
usr.sbin/unbound/validator/val_anchor.c
403
int status = sldns_str2wire_rr_buf(str, rr, &len, &dname_len,
usr.sbin/unbound/validator/val_anchor.c
407
str, LDNS_WIREPARSE_OFFSET(status),
usr.sbin/unbound/validator/val_anchor.c
651
char* str = 0;
usr.sbin/unbound/validator/val_anchor.c
686
str = strdup((char*)sldns_buffer_begin(buf));
usr.sbin/unbound/validator/val_anchor.c
687
if(!str) {
usr.sbin/unbound/validator/val_anchor.c
691
if(!anchor_store_str(anchors, buf, str)) {
usr.sbin/unbound/validator/val_anchor.c
693
free(str);
usr.sbin/unbound/validator/val_anchor.c
696
free(str);
usr.sbin/unbound/validator/val_anchor.h
186
struct sldns_buffer* buffer, const char* str);
usr.sbin/unbound/validator/val_secalgo.c
107
log_crypto_verbose(enum verbosity_value level, const char* str, unsigned long e)
usr.sbin/unbound/validator/val_secalgo.c
114
verbose(level, "%s crypto %s", str, buf);
usr.sbin/unbound/validator/val_secalgo.c
706
digest_error_status(const char *str)
usr.sbin/unbound/validator/val_secalgo.c
712
log_crypto_verbose(VERB_ALGO, str, e);
usr.sbin/unbound/validator/val_secalgo.c
716
log_crypto_verbose(VERB_QUERY, str, e);
usr.sbin/unbound/validator/val_secalgo.c
90
log_crypto_error(const char* str, unsigned long e)
usr.sbin/unbound/validator/val_secalgo.c
97
log_err("%s crypto %s", str, buf);
usr.sbin/unbound/validator/val_sigcrypt.c
1391
sigdate_error(const char* str, int32_t expi, int32_t incep, int32_t now)
usr.sbin/unbound/validator/val_sigcrypt.c
1408
log_info("%s expi=%s incep=%s now=%s", str, expi_buf,
usr.sbin/unbound/validator/val_sigcrypt.c
1411
log_info("%s expi=%u incep=%u now=%u", str, (unsigned)expi,
usr.sbin/vmd/parse.y
1419
parse_prefix4(const char *str, struct local_prefix *out, const char **errstr)
usr.sbin/vmd/parse.y
1427
if ((ps = strdup(str)) == NULL)
usr.sbin/vmd/parse.y
1484
parse_prefix6(const char *str, struct local_prefix *out, const char **errstr)
usr.sbin/vmd/parse.y
1493
if ((ps = strdup(str)) == NULL)
usr.sbin/vmd/vmd.c
100
char *str = NULL;
usr.sbin/vmd/vmd.c
193
str = imsg_string_read(imsg, PATH_MAX);
usr.sbin/vmd/vmd.c
196
if (vmd_reload(0, str) == -1)
usr.sbin/vmd/vmd.c
200
free(str);
usr.sbin/ypldap/aldap.c
1353
char *str;
usr.sbin/ypldap/aldap.c
1360
if ((str = calloc(len + 1, sizeof(char))) == NULL)
usr.sbin/ypldap/aldap.c
1366
str[j++] = isascii((unsigned char)u[i]) ? u[i] : '?';
usr.sbin/ypldap/aldap.c
1368
return str;
usr.sbin/ypldap/aldap.c
724
free(values->str);
usr.sbin/ypldap/aldap.c
894
if ((ret->str = reallocarray(NULL, ret->len,
usr.sbin/ypldap/aldap.c
895
sizeof(*(ret->str)))) == NULL) {
usr.sbin/ypldap/aldap.c
902
(void) ober_get_ostring(a, &(ret->str[i]));
usr.sbin/ypldap/aldap.h
93
struct ber_octetstring *str;
usr.sbin/ypldap/ldapclient.c
451
ldap_attrs->str[k].ostr_val,
usr.sbin/ypldap/ldapclient.c
466
if (strlcat(ir->ir_line, ldap_attrs->str[0].ostr_val,
usr.sbin/ypldap/ldapclient.c
473
ldap_attrs->str[0].ostr_val, 0, UID_MAX,
usr.sbin/ypldap/ldapclient.c
477
ldap_attrs->str[0].ostr_val, 0, GID_MAX,
usr.sbin/zic/zic.c
367
char *str;
usr.sbin/zic/zic.c
370
str = memcheck(realloc(start, len));
usr.sbin/zic/zic.c
371
strlcat(str, tail, len);
usr.sbin/zic/zic.c
372
return str;