Symbol: str
bin/date/vary.c
39
const char *str;
bin/date/vary.c
76
if (!strncasecmp(t[f].str, arg, 3) ||
bin/date/vary.c
77
!strncasecmp(t[f].str, arg, strlen(t[f].str)))
bin/df/df.c
638
char *str, *strptr, **listptr;
bin/df/df.c
680
(str = malloc(sizeof(char) * (32 * cnt + cnt + 2))) == NULL) {
bin/df/df.c
688
*str = 'n'; *(str + 1) = 'o';
bin/df/df.c
689
for (i = 0, strptr = str + 2; i < cnt; i++, strptr++) {
bin/df/df.c
699
return (str);
bin/ls/print.c
437
ls_strftime(char *str, size_t len, const char *fmt, const struct tm *tm)
bin/ls/print.c
457
strftime(str, len, format, tm);
bin/ls/print.c
459
strlcpy(str, "bad date val", len);
bin/pax/file_subs.c
747
file_write(int fd, char *str, int cnt, int *rem, int *isempt, int sz,
bin/pax/file_subs.c
753
char *st = str;
bin/pax/file_subs.c
817
return(st - str);
bin/pax/ftree.c
135
ftree_add(char *str, int chflg)
bin/pax/ftree.c
143
if ((str == NULL) || (*str == '\0')) {
bin/pax/ftree.c
158
if (((len = strlen(str) - 1) > 0) && (str[len] == '/'))
bin/pax/ftree.c
159
str[len] = '\0';
bin/pax/ftree.c
160
ft->fname = str;
bin/pax/gen_subs.c
201
asc_ul(char *str, int len, int base)
bin/pax/gen_subs.c
206
stop = str + len;
bin/pax/gen_subs.c
211
while ((str < stop) && ((*str == ' ') || (*str == '0')))
bin/pax/gen_subs.c
212
++str;
bin/pax/gen_subs.c
219
while (str < stop) {
bin/pax/gen_subs.c
220
if ((*str >= '0') && (*str <= '9'))
bin/pax/gen_subs.c
221
tval = (tval << 4) + (*str++ - '0');
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
224
else if ((*str >= 'a') && (*str <= 'f'))
bin/pax/gen_subs.c
225
tval = (tval << 4) + 10 + (*str++ - 'a');
bin/pax/gen_subs.c
230
while ((str < stop) && (*str >= '0') && (*str <= '7'))
bin/pax/gen_subs.c
231
tval = (tval << 3) + (*str++ - '0');
bin/pax/gen_subs.c
244
ul_asc(u_long val, char *str, int len, int base)
bin/pax/gen_subs.c
252
pt = str + len - 1;
bin/pax/gen_subs.c
260
while (pt >= str) {
bin/pax/gen_subs.c
269
while (pt >= str) {
bin/pax/gen_subs.c
279
while (pt >= str)
bin/pax/gen_subs.c
297
asc_uqd(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
uqd_asc(u_quad_t 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
365
while (pt >= str) {
bin/pax/gen_subs.c
375
while (pt >= str)
bin/pax/options.c
1018
char *str;
bin/pax/options.c
1156
while ((str = get_line(fp)) != NULL) {
bin/pax/options.c
1157
pat_add(str, NULL);
bin/pax/options.c
1255
while ((str = get_line(stdin)) != NULL) {
bin/pax/options.c
1256
ftree_add(str, 0);
bin/pax/options.c
1352
opt_add(const char *str)
bin/pax/options.c
1360
if ((str == NULL) || (*str == '\0')) {
bin/pax/options.c
1364
if ((lstr = strdup(str)) == NULL) {
bin/pax/options.c
862
char *str;
bin/pax/options.c
870
while ((str = get_line(fp)) != NULL) {
bin/pax/options.c
871
if (pat_add(str, dir) < 0)
bin/pax/options.c
929
char *str;
bin/pax/options.c
943
while ((str = get_line(fp)) != NULL) {
bin/pax/options.c
944
if (ftree_add(str, 0) < 0)
bin/pax/pat_rep.c
103
if ((pt1 = strchr(str+1, *str)) == NULL) {
bin/pax/pat_rep.c
104
paxwarn(1, "Invalid replacement string %s", str);
bin/pax/pat_rep.c
118
if ((res = regcomp(&(rep->rcmp), str+1, 0)) != 0) {
bin/pax/pat_rep.c
120
paxwarn(1, "%s while compiling regular expression %s", rebuf, str);
bin/pax/pat_rep.c
130
*pt1++ = *str;
bin/pax/pat_rep.c
131
if ((pt2 = strchr(pt1, *str)) == NULL) {
bin/pax/pat_rep.c
134
paxwarn(1, "Invalid replacement string %s", str);
bin/pax/pat_rep.c
159
*pt1 = *str;
bin/pax/pat_rep.c
160
paxwarn(1, "Invalid replacement string option %s", str);
bin/pax/pat_rep.c
191
pat_add(char *str, char *chdnam)
bin/pax/pat_rep.c
198
if ((str == NULL) || (*str == '\0')) {
bin/pax/pat_rep.c
213
pt->pstr = str;
bin/pax/pat_rep.c
215
pt->plen = strlen(str);
bin/pax/pat_rep.c
83
rep_add(char *str)
bin/pax/pat_rep.c
94
if ((str == NULL) || (*str == '\0')) {
bin/pax/sel_subs.c
109
if ((str == NULL) || (*str == '\0'))
bin/pax/sel_subs.c
120
if (str[0] != '#') {
bin/pax/sel_subs.c
124
if ((str[0] == '\\') && (str[1] == '#'))
bin/pax/sel_subs.c
125
++str;
bin/pax/sel_subs.c
126
if ((pw = getpwnam(str)) == NULL) {
bin/pax/sel_subs.c
127
paxwarn(1, "Unable to find uid for user: %s", str);
bin/pax/sel_subs.c
132
uid = (uid_t)strtoul(str+1, NULL, 10);
bin/pax/sel_subs.c
196
grp_add(char *str)
bin/pax/sel_subs.c
206
if ((str == NULL) || (*str == '\0'))
bin/pax/sel_subs.c
217
if (str[0] != '#') {
bin/pax/sel_subs.c
221
if ((str[0] == '\\') && (str[1] == '#'))
bin/pax/sel_subs.c
222
++str;
bin/pax/sel_subs.c
223
if ((gr = getgrnam(str)) == NULL) {
bin/pax/sel_subs.c
224
paxwarn(1,"Cannot determine gid for group name: %s", str);
bin/pax/sel_subs.c
229
gid = (gid_t)strtoul(str+1, NULL, 10);
bin/pax/sel_subs.c
315
trng_add(char *str)
bin/pax/sel_subs.c
326
if ((str == NULL) || (*str == '\0')) {
bin/pax/sel_subs.c
334
if ((flgpt = strrchr(str, '/')) != NULL)
bin/pax/sel_subs.c
337
for (stpt = str; *stpt != '\0'; ++stpt) {
bin/pax/sel_subs.c
354
paxwarn(1, "Improperly specified time range: %s", str);
bin/pax/sel_subs.c
386
*flgpt, str);
bin/pax/sel_subs.c
398
if (*str != '\0') {
bin/pax/sel_subs.c
402
if (str_sec(str, &(pt->low_time)) < 0) {
bin/pax/sel_subs.c
403
paxwarn(1, "Illegal lower time range %s", str);
bin/pax/sel_subs.c
427
up_pt, str);
bin/pax/sel_subs.c
99
usr_add(char *str)
bin/pax/tar.c
141
ul_oct(u_long val, char *str, int len, int term)
bin/pax/tar.c
148
pt = str + len - 1;
bin/pax/tar.c
170
while (pt >= str) {
bin/pax/tar.c
176
while (pt >= str)
bin/pax/tar.c
195
uqd_oct(u_quad_t val, char *str, int len, int term)
bin/pax/tar.c
202
pt = str + len - 1;
bin/pax/tar.c
224
while (pt >= str) {
bin/pax/tar.c
230
while (pt >= str)
bin/pax/tty_subs.c
108
tty_read(char *str, int len)
bin/pax/tty_subs.c
112
if ((--len <= 0) || (ttyinf == NULL) || (fgets(str,len,ttyinf) == NULL))
bin/pax/tty_subs.c
114
*(str + len) = '\0';
bin/pax/tty_subs.c
119
if ((pt = strchr(str, '\n')) != NULL)
bin/ps/print.c
111
char *vis_args, *vis_env, *str;
bin/ps/print.c
116
asprintf(&str, "%s%s%s%s%s",
bin/ps/print.c
123
str = strdup(k->ki_p->ki_comm);
bin/ps/print.c
125
return (str);
bin/ps/print.c
143
asprintf(&str, "%s%s%s%s",
bin/ps/print.c
154
str = vis_args;
bin/ps/print.c
156
if (strlen(str) > COMMAND_WIDTH)
bin/ps/print.c
157
str[COMMAND_WIDTH] = '\0';
bin/ps/print.c
160
return (str);
bin/ps/print.c
166
char *str;
bin/ps/print.c
169
asprintf(&str, "%s%s%s%s%s",
bin/ps/print.c
177
asprintf(&str, "%s/%s%s", k->ki_p->ki_comm,
bin/ps/print.c
180
str = strdup(k->ki_p->ki_comm);
bin/ps/print.c
182
return (str);
bin/ps/print.c
188
char *str;
bin/ps/print.c
191
asprintf(&str, "%s%s", k->ki_p->ki_tdname,
bin/ps/print.c
194
str = strdup(" ");
bin/ps/print.c
196
return (str);
bin/ps/print.c
285
char *str;
bin/ps/print.c
287
asprintf(&str, "%d", scalepri(k->ki_p->ki_pri.pri_level));
bin/ps/print.c
288
return (str);
bin/ps/print.c
294
char *str;
bin/ps/print.c
296
asprintf(&str, "%d", scalepri(k->ki_p->ki_pri.pri_user));
bin/ps/print.c
297
return (str);
bin/ps/print.c
333
char *str;
bin/ps/print.c
337
str = strdup("-");
bin/ps/print.c
339
asprintf(&str, "%#jx", (uintmax_t)dev);
bin/ps/print.c
341
return (str);
bin/ps/print.c
348
char *ttname, *str;
bin/ps/print.c
352
str = strdup("- ");
bin/ps/print.c
359
asprintf(&str, "%s%c", ttname,
bin/ps/print.c
363
return (str);
bin/ps/print.c
427
char *str;
bin/ps/print.c
431
str = strdup(k->ki_p->ki_lockname);
bin/ps/print.c
433
str = strdup("???");
bin/ps/print.c
435
str = NULL;
bin/ps/print.c
437
return (str);
bin/ps/print.c
443
char *str;
bin/ps/print.c
447
str = strdup(k->ki_p->ki_wmesg);
bin/ps/print.c
449
asprintf(&str, "%lx", (long)k->ki_p->ki_wchan);
bin/ps/print.c
451
str = NULL;
bin/ps/print.c
453
return (str);
bin/ps/print.c
459
char *str;
bin/ps/print.c
462
asprintf(&str, "%0lx", (long)k->ki_p->ki_wchan);
bin/ps/print.c
464
str = NULL;
bin/ps/print.c
466
return (str);
bin/ps/print.c
472
char *str;
bin/ps/print.c
476
str = strdup(k->ki_p->ki_wmesg);
bin/ps/print.c
478
asprintf(&str, "%lx", (long)k->ki_p->ki_wchan);
bin/ps/print.c
481
str = strdup(k->ki_p->ki_lockname);
bin/ps/print.c
483
str = strdup("???");
bin/ps/print.c
485
str = NULL;
bin/ps/print.c
487
return (str);
bin/ps/print.c
493
char *str;
bin/ps/print.c
495
asprintf(&str, "%lu", (u_long)(k->ki_p->ki_size / 1024));
bin/ps/print.c
496
return (str);
bin/ps/print.c
504
char *str;
bin/ps/print.c
517
asprintf(&str, "%ld:%02ld%c%02ld",
bin/ps/print.c
519
return (str);
bin/ps/print.c
587
char *str;
bin/ps/print.c
599
asprintf(&str, "%3d-%02d:%02d:%02d", days, hours, mins, secs);
bin/ps/print.c
601
asprintf(&str, "%02d:%02d:%02d", hours, mins, secs);
bin/ps/print.c
603
asprintf(&str, "%02d:%02d", mins, secs);
bin/ps/print.c
605
return (str);
bin/ps/print.c
612
char *str;
bin/ps/print.c
617
asprintf(&str, "%jd", (intmax_t)val);
bin/ps/print.c
618
return (str);
bin/ps/print.c
645
char *str;
bin/ps/print.c
647
asprintf(&str, "%.1f", getpcpu(k));
bin/ps/print.c
648
return (str);
bin/ps/print.c
671
char *str;
bin/ps/print.c
673
asprintf(&str, "%.1f", getpmem(k));
bin/ps/print.c
674
return (str);
bin/ps/print.c
680
char *str;
bin/ps/print.c
682
asprintf(&str, "%ld", k->ki_valid ? k->ki_p->ki_rusage.ru_majflt : 0);
bin/ps/print.c
683
return (str);
bin/ps/print.c
699
char *str;
bin/ps/print.c
708
asprintf(&str, "real:%u", level - PRI_MIN_REALTIME);
bin/ps/print.c
713
asprintf(&str, "normal:%u", level - PRI_MIN_TIMESHARE);
bin/ps/print.c
715
asprintf(&str, "kernel:%u", level - PRI_MIN_KERN);
bin/ps/print.c
719
asprintf(&str, "idle:%u", level - PRI_MIN_IDLE);
bin/ps/print.c
723
asprintf(&str, "intr:%u", level - PRI_MIN_ITHD);
bin/ps/print.c
726
asprintf(&str, "%u:%u", class, level);
bin/ps/print.c
729
return (str);
bin/ps/print.c
741
char *cp, *str;
bin/ps/print.c
755
(void)asprintf(&str, ofmt, *(char *)bp);
bin/ps/print.c
758
(void)asprintf(&str, ofmt, *(signed char *)bp);
bin/ps/print.c
761
(void)asprintf(&str, ofmt, *(u_char *)bp);
bin/ps/print.c
764
(void)asprintf(&str, ofmt, *(short *)bp);
bin/ps/print.c
767
(void)asprintf(&str, ofmt, *(u_short *)bp);
bin/ps/print.c
770
(void)asprintf(&str, ofmt, *(int *)bp);
bin/ps/print.c
773
(void)asprintf(&str, ofmt, CHKINF127(*(u_int *)bp));
bin/ps/print.c
776
(void)asprintf(&str, ofmt, *(long *)bp);
bin/ps/print.c
779
(void)asprintf(&str, ofmt, *(u_long *)bp);
bin/ps/print.c
782
(void)asprintf(&str, ofmt, *(u_long *)bp);
bin/ps/print.c
785
(void)asprintf(&str, ofmt, ps_pgtok(*(u_long *)bp));
bin/ps/print.c
792
return (str);
bin/ps/ps.c
1321
char *str;
bin/ps/ps.c
1327
str = (v->oproc)(ki, vent);
bin/ps/ps.c
1331
ks->ks_str = str;
bin/ps/ps.c
1333
if (str != NULL) {
bin/ps/ps.c
1334
len = strlen(str);
bin/ps/ps.c
177
const char *nlistf, *memf, *str;
bin/ps/ps.c
757
str = ks->ks_str;
bin/ps/ps.c
758
if (str == NULL)
bin/ps/ps.c
759
str = "-";
bin/ps/ps.c
768
xo_emit(fmtbuf, str);
bin/sh/arith_yacc.c
101
str = lookupvar(varname);
bin/sh/arith_yacc.c
102
if (uflag && str == NULL)
bin/sh/arith_yacc.c
104
if (str == NULL || *str == '\0')
bin/sh/arith_yacc.c
105
str = "0";
bin/sh/arith_yacc.c
107
result = strtoarith_t(str, &p);
bin/sh/arith_yacc.c
97
const char *str;
bin/sh/expand.c
120
appendarglist(struct arglist *list, char *str)
bin/sh/expand.c
136
list->args[list->count++] = str;
bin/sh/expand.c
1407
rmescapes(char *str)
bin/sh/expand.c
1411
p = str;
bin/sh/expand.c
532
recordleft(const char *str, const char *loc, char *startp)
bin/sh/expand.c
536
amount = ((str - 1) - (loc - startp)) - expdest;
bin/sh/expand.c
538
while (loc != str - 1)
bin/sh/expand.c
548
char *str;
bin/sh/expand.c
555
str = stackblock() + strloc;
bin/sh/expand.c
559
for (loc = startp; loc < str; loc++) {
bin/sh/expand.c
562
if (patmatch(str, startp)) {
bin/sh/expand.c
564
recordleft(str, loc, startp);
bin/sh/expand.c
572
for (loc = str - 1; loc >= startp;) {
bin/sh/expand.c
575
if (patmatch(str, startp)) {
bin/sh/expand.c
577
recordleft(str, loc, startp);
bin/sh/expand.c
586
for (loc = str - 1; loc >= startp;) {
bin/sh/expand.c
587
if (patmatch(str, loc)) {
bin/sh/expand.c
597
for (loc = startp; loc < str - 1; loc++) {
bin/sh/expand.c
598
if (patmatch(str, loc)) {
bin/sh/histedit.c
408
out1str(he.str);
bin/sh/histedit.c
411
fc_replace(he.str, pat, repl) : he.str;
bin/sh/histedit.c
496
str_to_event(const char *str, int last)
bin/sh/histedit.c
499
const char *s = str;
bin/sh/histedit.c
531
str);
bin/sh/histedit.c
536
retval = history(hist, &he, H_PREV_STR, str);
bin/sh/histedit.c
538
error("history pattern not found: %s", str);
bin/sh/mknodes.c
124
struct str *sp;
bin/sh/mknodes.c
134
for (sp = str ; sp < str + nstr ; sp++) {
bin/sh/mknodes.c
138
if (sp >= str + nstr) {
bin/sh/mknodes.c
209
struct str *sp;
bin/sh/mknodes.c
223
for (sp = str ; sp < &str[nstr] ; sp++) {
bin/sh/mknodes.c
232
for (sp = str ; sp < &str[nstr] ; sp++) {
bin/sh/mknodes.c
287
struct str *sp;
bin/sh/mknodes.c
303
for (sp = str ; sp < &str[nstr] ; sp++) {
bin/sh/mknodes.c
76
static struct str *nodestr[MAXTYPES]; /* type of structure used by the node */
bin/sh/mknodes.c
78
static struct str str[MAXTYPES]; /* the structures */
bin/sh/mknodes.c
79
static struct str *curstr; /* current structure */
bin/sh/parser.c
1088
char *volatile str;
bin/sh/parser.c
1099
str = NULL;
bin/sh/parser.c
1102
if (str)
bin/sh/parser.c
1103
ckfree(str);
bin/sh/parser.c
1117
str = ckmalloc(savelen);
bin/sh/parser.c
1118
memcpy(str, stackblock(), savelen);
bin/sh/parser.c
1205
if (str) {
bin/sh/parser.c
1206
memcpy(out, str, savelen);
bin/sh/parser.c
1208
ckfree(str);
bin/sh/parser.c
1209
str = NULL;
cddl/compat/opensolaris/include/devid.h
47
void devid_str_free(char *str);
cddl/usr.sbin/zfsd/case_file.cc
880
m_vdevGUIDString = guidString.str();
cddl/usr.sbin/zfsd/case_file.cc
881
guidString.str("");
cddl/usr.sbin/zfsd/case_file.cc
883
m_poolGUIDString = guidString.str();
cddl/usr.sbin/zfsd/case_file.cc
952
unlink(saveFile.str().c_str());
cddl/usr.sbin/zfsd/case_file.cc
956
int fd(open(saveFile.str().c_str(), O_CREAT|O_TRUNC|O_WRONLY, 0644));
cddl/usr.sbin/zfsd/case_file.cc
959
saveFile.str().c_str());
cddl/usr.sbin/zfsd/case_file.cc
994
line = lineBuf.str();
cddl/usr.sbin/zfsd/tests/zfsd_unittest.cc
114
const string& str)
cddl/usr.sbin/zfsd/tests/zfsd_unittest.cc
115
: ZfsEvent(type, map, str)
cddl/usr.sbin/zfsd/tests/zfsd_unittest.cc
583
evStringStream.str()));
cddl/usr.sbin/zfsd/tests/zfsd_unittest.cc
632
evStringStream.str()));
cddl/usr.sbin/zfsd/tests/zfsd_unittest.cc
685
evStringStream.str()));
cddl/usr.sbin/zfsd/vdev.cc
322
return (vdevGUIDString.str());
cddl/usr.sbin/zfsd/zfsd_event.cc
324
syslog(LOG_INFO, "%s", msg.str().c_str());
cddl/usr.sbin/zfsd/zfsd_event.cc
340
syslog(priority, "%s", msg.str().c_str());
cddl/usr.sbin/zfsd/zfsd_event.cc
352
syslog(priority, "%s", msg.str().c_str());
cddl/usr.sbin/zfsd/zfsd_event.cc
373
syslog(priority, "%s", msg.str().c_str());
cddl/usr.sbin/zfsd/zfsd_exception.cc
131
syslog(LOG_ERR, "%s", output.str().c_str());
crypto/heimdal/appl/afsutil/afslog.c
206
log_func(void *ctx, const char *str)
crypto/heimdal/appl/afsutil/afslog.c
208
fprintf(stderr, "%s\n", str);
crypto/heimdal/appl/ftp/ftp/ftp.c
1185
parse_epsv (const char *str)
crypto/heimdal/appl/ftp/ftp/ftp.c
1191
if (*str == '\0')
crypto/heimdal/appl/ftp/ftp/ftp.c
1193
sep = *str++;
crypto/heimdal/appl/ftp/ftp/ftp.c
1194
if (sep != *str++)
crypto/heimdal/appl/ftp/ftp/ftp.c
1196
if (sep != *str++)
crypto/heimdal/appl/ftp/ftp/ftp.c
1198
port = strtol (str, &end, 0);
crypto/heimdal/appl/ftp/ftp/ftp.c
1199
if (str == end)
crypto/heimdal/appl/ftp/ftp/ftp.c
1207
parse_pasv (struct sockaddr_in *sin4, const char *str)
crypto/heimdal/appl/ftp/ftp/ftp.c
1218
if (sscanf (str, "%d,%d,%d,%d,%d,%d",
crypto/heimdal/appl/ftp/ftp/gssapi.c
288
char *str;
crypto/heimdal/appl/ftp/ftp/gssapi.c
290
name.length = asprintf(&str, "%s@%s", kname, host);
crypto/heimdal/appl/ftp/ftp/gssapi.c
291
if (str == NULL) {
crypto/heimdal/appl/ftp/ftp/gssapi.c
295
name.value = str;
crypto/heimdal/appl/ftp/ftpd/ftpd.c
169
parse_auth_level(char *str)
crypto/heimdal/appl/ftp/ftpd/ftpd.c
175
for(p = strtok_r(str, ",", &foo);
crypto/heimdal/appl/ftp/ftpd/ftpd.c
2061
eprt(char *str)
crypto/heimdal/appl/ftp/ftpd/ftpd.c
2075
sep = *str++;
crypto/heimdal/appl/ftp/ftpd/ftpd.c
2080
af = strtol (str, &end, 0);
crypto/heimdal/appl/ftp/ftpd/ftpd.c
2085
str = end + 1;
crypto/heimdal/appl/ftp/ftpd/ftpd.c
2103
end = strchr (str, sep);
crypto/heimdal/appl/ftp/ftpd/ftpd.c
2109
ret = inet_pton (data_dest->sa_family, str,
crypto/heimdal/appl/ftp/ftpd/ftpd.c
2116
str = end + 1;
crypto/heimdal/appl/ftp/ftpd/ftpd.c
2117
port = strtol (str, &end, 0);
crypto/heimdal/appl/ftp/ftpd/gssapi.c
288
char *str;
crypto/heimdal/appl/ftp/ftpd/gssapi.c
290
name.length = asprintf(&str, "%s@%s", kname, host);
crypto/heimdal/appl/ftp/ftpd/gssapi.c
291
if (str == NULL) {
crypto/heimdal/appl/ftp/ftpd/gssapi.c
295
name.value = str;
crypto/heimdal/appl/ftp/ftpd/klist.c
41
char t1[128], t2[128], *str;
crypto/heimdal/appl/ftp/ftpd/klist.c
57
ret = krb5_unparse_name (context, cred->server, &str);
crypto/heimdal/appl/ftp/ftpd/klist.c
63
lreply(200, "%-20s %-20s %s", t1, t2, str);
crypto/heimdal/appl/ftp/ftpd/klist.c
64
free(str);
crypto/heimdal/appl/ftp/ftpd/klist.c
76
char *str;
crypto/heimdal/appl/ftp/ftpd/klist.c
78
ret = krb5_unparse_name (context, principal, &str);
crypto/heimdal/appl/ftp/ftpd/klist.c
88
lreply(200, "%17s: %s", "Principal", str);
crypto/heimdal/appl/ftp/ftpd/klist.c
89
free (str);
crypto/heimdal/appl/gssmask/common.c
38
store_string(krb5_storage *sp, const char *str)
crypto/heimdal/appl/gssmask/common.c
40
size_t len = strlen(str) + 1;
crypto/heimdal/appl/gssmask/common.c
46
ret = krb5_storage_write(sp, str, len);
crypto/heimdal/appl/gssmask/common.c
53
add_list(char ****list, size_t *listlen, char **str, size_t len)
crypto/heimdal/appl/gssmask/common.c
60
(*list)[*listlen][i] = str[i];
crypto/heimdal/appl/gssmask/common.c
66
char **str, const int start, const int len)
crypto/heimdal/appl/gssmask/common.c
70
#define SWAP(s,i,j) { char *t = str[i]; str[i] = str[j]; str[j] = t; }
crypto/heimdal/appl/gssmask/common.c
74
SWAP(str,i,j);
crypto/heimdal/appl/gssmask/common.c
75
permute(list, listlen, str, i+1, len);
crypto/heimdal/appl/gssmask/common.c
76
SWAP(str,i,j);
crypto/heimdal/appl/gssmask/common.c
79
add_list(list, listlen, str, len);
crypto/heimdal/appl/gssmask/common.h
108
#define putstring(_client, str) \
crypto/heimdal/appl/gssmask/common.h
110
if (store_string((_client)->sock, str) != 0) \
crypto/heimdal/appl/gssmask/common.h
111
errx(1, "krb5_store_str " #str); \
crypto/heimdal/appl/gssmask/gssmaestro.c
656
char *str = NULL;
crypto/heimdal/appl/gssmask/gssmaestro.c
657
get_version_capa(c, &version, &c->capabilities, &str);
crypto/heimdal/appl/gssmask/gssmaestro.c
658
if (str) {
crypto/heimdal/appl/gssmask/gssmaestro.c
659
free(str);
crypto/heimdal/appl/gssmask/gssmask.c
647
char name[256] = "unknown", *str;
crypto/heimdal/appl/gssmask/gssmask.c
662
asprintf(&str, "gssmask %s %s", PACKAGE_STRING, name);
crypto/heimdal/appl/gssmask/gssmask.c
666
putstring(c, str);
crypto/heimdal/appl/gssmask/gssmask.c
667
free(str);
crypto/heimdal/appl/login/conf.c
47
login_conf_get_string(const char *str)
crypto/heimdal/appl/login/conf.c
52
if(cgetstr(confbuf, (char *)str, &value) < 0)
crypto/heimdal/appl/login/env.c
45
extend_env(char *str)
crypto/heimdal/appl/login/env.c
50
env[num_env++] = str;
crypto/heimdal/appl/login/env.c
57
char *str;
crypto/heimdal/appl/login/env.c
58
asprintf(&str, "%s=%s", var, value);
crypto/heimdal/appl/login/env.c
59
if(str == NULL)
crypto/heimdal/appl/login/env.c
65
env[i] = str;
crypto/heimdal/appl/login/env.c
69
extend_env(str);
crypto/heimdal/appl/login/login.c
481
const char *str = login_conf_get_string("environment");
crypto/heimdal/appl/login/login.c
484
if(str == NULL) {
crypto/heimdal/appl/login/login.c
487
while(strsep_copy(&str, ",", buf, sizeof(buf)) != -1) {
crypto/heimdal/appl/login/login.c
495
const char *str = login_conf_get_string("motd");
crypto/heimdal/appl/login/login.c
498
if(str != NULL) {
crypto/heimdal/appl/login/login.c
499
while(strsep_copy(&str, ",", buf, sizeof(buf)) != -1) {
crypto/heimdal/appl/login/login.c
505
str = login_conf_get_string("welcome");
crypto/heimdal/appl/login/login.c
506
if(str != NULL)
crypto/heimdal/appl/login/login.c
507
show_file(str);
crypto/heimdal/appl/rcp/rcp.c
427
#define SCREWUP(str) { why = str; goto screwup; }
crypto/heimdal/appl/rsh/rsh.c
251
char *str;
crypto/heimdal/appl/rsh/rsh.c
271
cksum_data.length = asprintf (&str,
crypto/heimdal/appl/rsh/rsh.c
277
if (str == NULL) {
crypto/heimdal/appl/rsh/rsh.c
281
cksum_data.data = str;
crypto/heimdal/appl/rsh/rshd.c
120
char *str = malloc(sz);
crypto/heimdal/appl/rsh/rshd.c
121
char *p = str;
crypto/heimdal/appl/rsh/rshd.c
122
if(str == NULL)
crypto/heimdal/appl/rsh/rshd.c
124
while(p < str + sz) {
crypto/heimdal/appl/rsh/rshd.c
128
return str;
crypto/heimdal/appl/rsh/rshd.c
256
char *str;
crypto/heimdal/appl/rsh/rshd.c
315
cksum_data.length = asprintf (&str,
crypto/heimdal/appl/rsh/rshd.c
320
if (str == NULL)
crypto/heimdal/appl/rsh/rshd.c
322
cksum_data.data = str;
crypto/heimdal/appl/telnet/telnet/authenc.c
40
telnet_net_write(unsigned char *str, int len)
crypto/heimdal/appl/telnet/telnet/authenc.c
43
ring_supply_data(&netoring, str, len);
crypto/heimdal/appl/telnet/telnet/authenc.c
44
if (str[0] == IAC && str[1] == SE)
crypto/heimdal/appl/telnet/telnet/authenc.c
45
printsub('>', &str[2], len-2);
crypto/heimdal/appl/telnet/telnet/externs.h
191
int telnet_net_write(unsigned char *str, int len);
crypto/heimdal/appl/telnet/telnetd/authenc.c
41
telnet_net_write(unsigned char *str, int len)
crypto/heimdal/appl/telnet/telnetd/authenc.c
44
memmove(nfrontp, str, len);
crypto/heimdal/appl/telnet/telnetd/ext.h
78
int telnet_net_write (unsigned char *str, int len);
crypto/heimdal/appl/test/gssapi_client.c
117
char *str;
crypto/heimdal/appl/test/gssapi_client.c
121
name_token.length = asprintf (&str,
crypto/heimdal/appl/test/gssapi_client.c
123
if (str == NULL)
crypto/heimdal/appl/test/gssapi_client.c
125
name_token.value = str;
crypto/heimdal/appl/test/http_client.c
108
free(str);
crypto/heimdal/appl/test/http_client.c
88
char *str, *buf;
crypto/heimdal/appl/test/http_client.c
91
vasprintf(&str, fmt, ap);
crypto/heimdal/appl/test/http_client.c
94
if (str == NULL)
crypto/heimdal/appl/test/http_client.c
97
buf = str;
crypto/heimdal/appl/test/nt_gss_client.c
58
char *str;
crypto/heimdal/appl/test/nt_gss_client.c
60
name_token.length = asprintf (&str,
crypto/heimdal/appl/test/nt_gss_client.c
62
if (str == NULL)
crypto/heimdal/appl/test/nt_gss_client.c
64
name_token.value = str;
crypto/heimdal/appl/test/uu_server.c
129
char *str;
crypto/heimdal/appl/test/uu_server.c
130
krb5_unparse_name(context, in_creds.server, &str);
crypto/heimdal/appl/test/uu_server.c
131
printf ("User is `%s'\n", str);
crypto/heimdal/appl/test/uu_server.c
132
free(str);
crypto/heimdal/appl/test/uu_server.c
133
krb5_unparse_name(context, in_creds.client, &str);
crypto/heimdal/appl/test/uu_server.c
134
printf ("Server is `%s'\n", str);
crypto/heimdal/appl/test/uu_server.c
135
free(str);
crypto/heimdal/base/heimbase.c
371
static char str[1024];
crypto/heimdal/base/heimbase.c
373
vsnprintf(str, sizeof(str), fmt, ap);
crypto/heimdal/base/heimbase.c
374
syslog(LOG_ERR, "heim_abort: %s", str);
crypto/heimdal/kadmin/kadm_conn.c
76
parse_ports(krb5_context contextp, const char *str)
crypto/heimdal/kadmin/kadm_conn.c
80
while(strsep_copy(&str, " \t", p, sizeof(p)) != -1) {
crypto/heimdal/kadmin/kadmin.c
126
char str[128];
crypto/heimdal/kadmin/kadmin.c
133
ret =_kadm5_privs_to_string(privs, str, sizeof(str));
crypto/heimdal/kadmin/kadmin.c
135
printf("%s\n", str);
crypto/heimdal/kadmin/load.c
151
parse_keys(hdb_entry *ent, char *str)
crypto/heimdal/kadmin/load.c
158
p = strsep(&str, ":");
crypto/heimdal/kadmin/load.c
162
p = strsep(&str, ":");
crypto/heimdal/kadmin/load.c
178
p = strsep(&str, ":");
crypto/heimdal/kadmin/load.c
182
p = strsep(&str, ":");
crypto/heimdal/kadmin/load.c
191
p = strsep(&str, ":");
crypto/heimdal/kadmin/load.c
228
p = strsep(&str, ":");
crypto/heimdal/kadmin/load.c
286
parse_generation(char *str, GENERATION **gen)
crypto/heimdal/kadmin/load.c
291
if(strcmp(str, "-") == 0 || *str == '\0') {
crypto/heimdal/kadmin/load.c
297
p = strsep(&str, ":");
crypto/heimdal/kadmin/load.c
300
p = strsep(&str, ":");
crypto/heimdal/kadmin/load.c
304
p = strsep(&str, ":");
crypto/heimdal/kadmin/load.c
312
parse_extensions(char *str, HDB_extensions **e)
crypto/heimdal/kadmin/load.c
317
if(strcmp(str, "-") == 0 || *str == '\0') {
crypto/heimdal/kadmin/load.c
323
p = strsep(&str, ":");
crypto/heimdal/kadmin/load.c
350
p = strsep(&str, ":");
crypto/heimdal/kadmin/random_password.c
115
const char *str;
crypto/heimdal/kadmin/random_password.c
132
classes[i].str = va_arg(ap, const char*);
crypto/heimdal/kadmin/random_password.c
133
classes[i].len = strlen(classes[i].str);
crypto/heimdal/kadmin/random_password.c
149
(*pw)[i] = classes[j].str[RND(rbuf, sizeof(rbuf), &rleft)
crypto/heimdal/kadmin/rpc.c
340
store_string_xdr(krb5_storage *sp, const char *str)
crypto/heimdal/kadmin/rpc.c
343
if (str) {
crypto/heimdal/kadmin/rpc.c
344
c.data = rk_UNCONST(str);
crypto/heimdal/kadmin/rpc.c
345
c.length = strlen(str) + 1;
crypto/heimdal/kadmin/rpc.c
353
ret_string_xdr(krb5_storage *sp, char **str)
crypto/heimdal/kadmin/rpc.c
356
*str = NULL;
crypto/heimdal/kadmin/rpc.c
359
*str = malloc(c.length + 1);
crypto/heimdal/kadmin/rpc.c
360
INSIST(*str != NULL);
crypto/heimdal/kadmin/rpc.c
361
memcpy(*str, c.data, c.length);
crypto/heimdal/kadmin/rpc.c
362
(*str)[c.length] = '\0';
crypto/heimdal/kadmin/rpc.c
373
char *str;
crypto/heimdal/kadmin/rpc.c
374
CHECK(krb5_unparse_name(contextp, p, &str));
crypto/heimdal/kadmin/rpc.c
375
CHECK(store_string_xdr(sp, str));
crypto/heimdal/kadmin/rpc.c
376
free(str);
crypto/heimdal/kadmin/rpc.c
385
char *str;
crypto/heimdal/kadmin/rpc.c
387
CHECK(ret_string_xdr(sp, &str));
crypto/heimdal/kadmin/rpc.c
388
if (str) {
crypto/heimdal/kadmin/rpc.c
389
CHECK(krb5_parse_name(contextp, str, p));
crypto/heimdal/kadmin/rpc.c
390
free(str);
crypto/heimdal/kadmin/test_util.c
39
const char *str;
crypto/heimdal/kadmin/test_util.c
57
ret = str2time_t (ts[i].str, &t);
crypto/heimdal/kadmin/util.c
160
time_t2str(time_t t, char *str, size_t len, int include_time)
crypto/heimdal/kadmin/util.c
164
strftime(str, len, "%Y-%m-%d %H:%M:%S UTC", gmtime(&t));
crypto/heimdal/kadmin/util.c
166
strftime(str, len, "%Y-%m-%d", gmtime(&t));
crypto/heimdal/kadmin/util.c
168
snprintf(str, len, "never");
crypto/heimdal/kadmin/util.c
177
str2time_t (const char *str, time_t *t)
crypto/heimdal/kadmin/util.c
185
while(isspace((unsigned char)*str))
crypto/heimdal/kadmin/util.c
186
str++;
crypto/heimdal/kadmin/util.c
188
if (str[0] == '+') {
crypto/heimdal/kadmin/util.c
189
str++;
crypto/heimdal/kadmin/util.c
190
*t = parse_time(str, "month");
crypto/heimdal/kadmin/util.c
197
if(strcasecmp(str, "never") == 0) {
crypto/heimdal/kadmin/util.c
202
if(strcasecmp(str, "now") == 0) {
crypto/heimdal/kadmin/util.c
207
p = strptime (str, "%Y-%m-%d", &tm);
crypto/heimdal/kadmin/util.c
286
deltat2str(unsigned t, char *str, size_t len)
crypto/heimdal/kadmin/util.c
289
snprintf(str, len, "unlimited");
crypto/heimdal/kadmin/util.c
291
unparse_time(t, str, len);
crypto/heimdal/kadmin/util.c
300
str2deltat(const char *str, krb5_deltat *delta)
crypto/heimdal/kadmin/util.c
304
if(strcasecmp(str, "unlimited") == 0) {
crypto/heimdal/kadmin/util.c
308
res = parse_time(str, "day");
crypto/heimdal/kadmin/util.c
77
attributes2str(krb5_flags attributes, char *str, size_t len)
crypto/heimdal/kadmin/util.c
79
unparse_flags (attributes, kdb_attrs, str, len);
crypto/heimdal/kadmin/util.c
88
str2attributes(const char *str, krb5_flags *flags)
crypto/heimdal/kadmin/util.c
92
res = parse_flags (str, kdb_attrs, *flags);
crypto/heimdal/kdc/announce.c
195
char *str = CFString2utf8((CFStringRef)value);
crypto/heimdal/kdc/announce.c
198
if (str == NULL)
crypto/heimdal/kdc/announce.c
200
if (str[0] != '\0')
crypto/heimdal/kdc/announce.c
201
domain_add(str, ctx->realm, F_EXISTS | ctx->flags);
crypto/heimdal/kdc/announce.c
202
free(str);
crypto/heimdal/kdc/announce.c
79
char *str;
crypto/heimdal/kdc/announce.c
82
str = malloc(size);
crypto/heimdal/kdc/announce.c
83
if (str == NULL)
crypto/heimdal/kdc/announce.c
86
if (CFStringGetCString(string, str, size, kCFStringEncodingUTF8) == false) {
crypto/heimdal/kdc/announce.c
87
free(str);
crypto/heimdal/kdc/announce.c
90
return str;
crypto/heimdal/kdc/config.c
121
add_one_address (krb5_context context, const char *str, int first)
crypto/heimdal/kdc/config.c
126
ret = krb5_parse_address (context, str, &tmp);
crypto/heimdal/kdc/config.c
128
krb5_err (context, 1, ret, "parse_address `%s'", str);
crypto/heimdal/kdc/connect.c
118
int family, const char *str, const char *protocol)
crypto/heimdal/kdc/connect.c
123
sp = roken_getservbyname (str, protocol);
crypto/heimdal/kdc/connect.c
129
port = htons(strtol(str, &end, 0));
crypto/heimdal/kdc/connect.c
130
if (end == str)
crypto/heimdal/kdc/connect.c
167
const char *str)
crypto/heimdal/kdc/connect.c
171
char *str_copy = strdup (str);
crypto/heimdal/kdc/connect.c
381
struct sockaddr *addr, size_t addr_len, char *str, size_t len)
crypto/heimdal/kdc/connect.c
385
if(krb5_print_address(&a, str, len, &len) == 0) {
crypto/heimdal/kdc/connect.c
391
snprintf(str, len, "<family=%d>", addr->sa_family);
crypto/heimdal/kdc/digest.c
111
const char *str;
crypto/heimdal/kdc/digest.c
117
str = krb5_principal_get_comp_string(context, p, 0);
crypto/heimdal/kdc/digest.c
118
if (str != NULL &&
crypto/heimdal/kdc/digest.c
119
(strcmp("host", str) == 0 ||
crypto/heimdal/kdc/digest.c
120
strcmp("ftp", str) == 0 ||
crypto/heimdal/kdc/digest.c
121
strcmp("imap", str) == 0 ||
crypto/heimdal/kdc/digest.c
122
strcmp("pop", str) == 0 ||
crypto/heimdal/kdc/digest.c
123
strcmp("smtp", str)))
crypto/heimdal/kdc/digest.c
125
str = krb5_principal_get_comp_string(context, p, 1);
crypto/heimdal/kdc/digest.c
126
ti.dnsservername = rk_UNCONST(str);
crypto/heimdal/kdc/kerberos5.c
1192
char *str;
crypto/heimdal/kdc/kerberos5.c
1261
pa_key->key.keytype, &str);
crypto/heimdal/kdc/kerberos5.c
1263
str = NULL;
crypto/heimdal/kdc/kerberos5.c
1267
client_name, str ? str : "unknown enctype", msg);
crypto/heimdal/kdc/kerberos5.c
1269
free(str);
crypto/heimdal/kdc/kerberos5.c
1328
ret = krb5_enctype_to_string(context, pa_key->key.keytype, &str);
crypto/heimdal/kdc/kerberos5.c
1330
str = NULL;
crypto/heimdal/kdc/kerberos5.c
1334
client_name, str ? str : "unknown enctype");
crypto/heimdal/kdc/kerberos5.c
1335
free(str);
crypto/heimdal/kdc/kerberos5.c
280
char *str;
crypto/heimdal/kdc/kerberos5.c
311
str = rk_strpoolcollect(p);
crypto/heimdal/kdc/kerberos5.c
312
kdc_log(context, config, 0, "Client sent patypes: %s", str);
crypto/heimdal/kdc/kerberos5.c
313
free(str);
crypto/heimdal/kdc/kerberos5.c
683
char *str;
crypto/heimdal/kdc/kerberos5.c
689
ret = krb5_enctype_to_string(context, b->etype.val[i], &str);
crypto/heimdal/kdc/kerberos5.c
691
p = rk_strpoolprintf(p, "%s", str);
crypto/heimdal/kdc/kerberos5.c
692
free(str);
crypto/heimdal/kdc/kerberos5.c
723
str = rk_strpoolcollect(p);
crypto/heimdal/kdc/kerberos5.c
724
kdc_log(context, config, 0, "%s", str);
crypto/heimdal/kdc/kerberos5.c
725
free(str);
crypto/heimdal/kdc/krb5tgs.c
1247
char *str = NULL, *p = NULL;
crypto/heimdal/kdc/krb5tgs.c
1249
krb5_enctype_to_string(context, ap_req.ticket.enc_part.etype, &str);
crypto/heimdal/kdc/krb5tgs.c
1253
str ? str : "<unknown enctype>",
crypto/heimdal/kdc/krb5tgs.c
1255
free(str);
crypto/heimdal/kdc/krb5tgs.c
1885
const char *str;
crypto/heimdal/kdc/krb5tgs.c
2020
str = "[forwardable]";
crypto/heimdal/kdc/krb5tgs.c
2023
str = "";
crypto/heimdal/kdc/krb5tgs.c
2026
"service %s %s", cpn, tpn, spn, str);
crypto/heimdal/kdc/pkinit.c
2014
char *str;
crypto/heimdal/kdc/pkinit.c
2017
hx509_name_to_string(name, &str);
crypto/heimdal/kdc/pkinit.c
2020
"interoperability.", str);
crypto/heimdal/kdc/pkinit.c
2022
free(str);
crypto/heimdal/kpasswd/kpasswdd.c
126
char *str;
crypto/heimdal/kpasswd/kpasswdd.c
129
data->length = asprintf (&str,
crypto/heimdal/kpasswd/kpasswdd.c
135
if (str == NULL) {
crypto/heimdal/kpasswd/kpasswdd.c
139
data->data = str;
crypto/heimdal/kpasswd/kpasswdd.c
408
const char *str = krb5_get_error_message(context, ret);
crypto/heimdal/kpasswd/kpasswdd.c
409
krb5_warnx(context, "kadm5_s_chpass_principal_cond: %s", str);
crypto/heimdal/kpasswd/kpasswdd.c
411
str ? str : "Internal error");
crypto/heimdal/kpasswd/kpasswdd.c
412
krb5_free_error_message(context, str);
crypto/heimdal/kpasswd/kpasswdd.c
518
char *str;
crypto/heimdal/kpasswd/kpasswdd.c
519
krb5_unparse_name(context, (*ticket)->server, &str);
crypto/heimdal/kpasswd/kpasswdd.c
520
krb5_warnx (context, "client used not valid principal %s", str);
crypto/heimdal/kpasswd/kpasswdd.c
521
free(str);
crypto/heimdal/kpasswd/kpasswdd.c
53
add_one_address (const char *str, int first)
crypto/heimdal/kpasswd/kpasswdd.c
58
ret = krb5_parse_address (context, str, &tmp);
crypto/heimdal/kpasswd/kpasswdd.c
60
krb5_err (context, 1, ret, "parse_address `%s'", str);
crypto/heimdal/kpasswd/kpasswdd.c
690
char str[128];
crypto/heimdal/kpasswd/kpasswdd.c
694
ret = krb5_print_address (&addrs.val[i], str, sizeof(str), &len);
crypto/heimdal/kpasswd/kpasswdd.c
696
strlcpy(str, "unknown address", sizeof(str));
crypto/heimdal/kpasswd/kpasswdd.c
697
krb5_warn (context, save_errno, "bind(%s)", str);
crypto/heimdal/kuser/klist.c
101
rtbl_add_column_entry(ct, COL_PRINCIPAL, str);
crypto/heimdal/kuser/klist.c
129
free(str);
crypto/heimdal/kuser/klist.c
136
char *str;
crypto/heimdal/kuser/klist.c
142
ret = krb5_unparse_name(context, cred->server, &str);
crypto/heimdal/kuser/klist.c
145
printf(N_("Server: %s\n", ""), str);
crypto/heimdal/kuser/klist.c
146
free (str);
crypto/heimdal/kuser/klist.c
148
ret = krb5_unparse_name(context, cred->client, &str);
crypto/heimdal/kuser/klist.c
151
printf(N_("Client: %s\n", ""), str);
crypto/heimdal/kuser/klist.c
152
free (str);
crypto/heimdal/kuser/klist.c
172
ret = krb5_enctype_to_string(context, cred->session.keytype, &str);
crypto/heimdal/kuser/klist.c
176
printf(N_("Session key: %s\n", "enctype"), str);
crypto/heimdal/kuser/klist.c
177
free(str);
crypto/heimdal/kuser/klist.c
235
char *str, *name;
crypto/heimdal/kuser/klist.c
242
ret = krb5_unparse_name (context, principal, &str);
crypto/heimdal/kuser/klist.c
250
printf ("%17s: %s\n", N_("Principal", ""), str);
crypto/heimdal/kuser/klist.c
254
if (strcmp(name, str) != 0)
crypto/heimdal/kuser/klist.c
258
free (str);
crypto/heimdal/kuser/klist.c
530
const char *str;
crypto/heimdal/kuser/klist.c
536
str = N_(">>> Expired <<<", "");
crypto/heimdal/kuser/klist.c
538
str = printable_time(t);
crypto/heimdal/kuser/klist.c
539
rtbl_add_column_entry(ct, COL_EXPIRES, str);
crypto/heimdal/kuser/klist.c
79
char *str;
crypto/heimdal/kuser/klist.c
98
ret = krb5_unparse_name (context, cred->server, &str);
crypto/heimdal/kuser/kswitch.c
149
char *str;
crypto/heimdal/kuser/kswitch.c
155
asprintf(&str, "%s:%s", ops->prefix, opt->cache_string);
crypto/heimdal/kuser/kswitch.c
156
if (str == NULL)
crypto/heimdal/kuser/kswitch.c
159
ret = krb5_cc_resolve(kcc_context, str, &id);
crypto/heimdal/kuser/kswitch.c
161
krb5_err(kcc_context, 1, ret, "krb5_cc_resolve: %s", str);
crypto/heimdal/kuser/kswitch.c
163
free(str);
crypto/heimdal/lib/asn1/asn1_print.c
168
heim_octet_string str;
crypto/heimdal/lib/asn1/asn1_print.c
171
ret = der_get_octet_string (buf, length, &str, NULL);
crypto/heimdal/lib/asn1/asn1_print.c
181
ret = der_get_tag(str.data, str.length,
crypto/heimdal/lib/asn1/asn1_print.c
183
if (ret || sz > str.length ||
crypto/heimdal/lib/asn1/asn1_print.c
188
loop (str.data, str.length, indent + 2);
crypto/heimdal/lib/asn1/asn1_print.c
197
uc = (unsigned char *)str.data;
crypto/heimdal/lib/asn1/asn1_print.c
202
free (str.data);
crypto/heimdal/lib/asn1/asn1_print.c
207
heim_printable_string str;
crypto/heimdal/lib/asn1/asn1_print.c
211
memset(&str, 0, sizeof(str));
crypto/heimdal/lib/asn1/asn1_print.c
213
ret = der_get_printable_string (buf, length, &str, NULL);
crypto/heimdal/lib/asn1/asn1_print.c
217
s = str.data;
crypto/heimdal/lib/asn1/asn1_print.c
219
for (n = 0; n < str.length; n++) {
crypto/heimdal/lib/asn1/asn1_print.c
226
der_free_printable_string(&str);
crypto/heimdal/lib/asn1/asn1_print.c
233
heim_general_string str;
crypto/heimdal/lib/asn1/asn1_print.c
235
ret = der_get_general_string (buf, length, &str, NULL);
crypto/heimdal/lib/asn1/asn1_print.c
239
printf ("\"%s\"\n", str);
crypto/heimdal/lib/asn1/asn1_print.c
240
free (str);
crypto/heimdal/lib/asn1/check-der.c
1034
const char *str = "760520140000Z";
crypto/heimdal/lib/asn1/check-der.c
1039
ret = der_get_generalized_time((const unsigned char*)str, strlen(str),
crypto/heimdal/lib/asn1/check-der.c
791
char *str;
crypto/heimdal/lib/asn1/check-der.c
794
ret = der_print_hex_heim_integer(i, &str);
crypto/heimdal/lib/asn1/check-der.c
798
if (strcmp(str, norm_p) != 0)
crypto/heimdal/lib/asn1/check-der.c
799
errx(1, "der_print_hex_heim_integer: %s != %s", str, p);
crypto/heimdal/lib/asn1/check-der.c
801
ret = der_parse_hex_heim_integer(str, &i2);
crypto/heimdal/lib/asn1/check-der.c
809
free(str);
crypto/heimdal/lib/asn1/check-der.c
881
test_heim_oid_format_same(const char *str, const heim_oid *oid)
crypto/heimdal/lib/asn1/check-der.c
889
printf("fail to print oid: %s\n", str);
crypto/heimdal/lib/asn1/check-der.c
892
ret = strcmp(p, str);
crypto/heimdal/lib/asn1/check-der.c
894
printf("oid %s != formated oid %s\n", str, p);
crypto/heimdal/lib/asn1/der_format.c
108
der_print_heim_oid (const heim_oid *oid, char delim, char **str)
crypto/heimdal/lib/asn1/der_format.c
121
*str = NULL;
crypto/heimdal/lib/asn1/der_format.c
126
*str = rk_strpoolcollect(p);
crypto/heimdal/lib/asn1/der_format.c
127
if (*str == NULL)
crypto/heimdal/lib/asn1/der_format.c
133
der_parse_heim_oid (const char *str, const char *sep, heim_oid *data)
crypto/heimdal/lib/asn1/der_format.c
145
s = strdup(str);
crypto/heimdal/lib/asn1/der_free.c
100
der_free_octet_string(str);
crypto/heimdal/lib/asn1/der_free.c
120
der_free_visible_string (heim_visible_string *str)
crypto/heimdal/lib/asn1/der_free.c
122
free(*str);
crypto/heimdal/lib/asn1/der_free.c
123
*str = NULL;
crypto/heimdal/lib/asn1/der_free.c
41
der_free_general_string (heim_general_string *str)
crypto/heimdal/lib/asn1/der_free.c
43
free(*str);
crypto/heimdal/lib/asn1/der_free.c
44
*str = NULL;
crypto/heimdal/lib/asn1/der_free.c
85
der_free_utf8string (heim_utf8_string *str)
crypto/heimdal/lib/asn1/der_free.c
87
free(*str);
crypto/heimdal/lib/asn1/der_free.c
88
*str = NULL;
crypto/heimdal/lib/asn1/der_free.c
92
der_free_printable_string (heim_printable_string *str)
crypto/heimdal/lib/asn1/der_free.c
94
der_free_octet_string(str);
crypto/heimdal/lib/asn1/der_free.c
98
der_free_ia5_string (heim_ia5_string *str)
crypto/heimdal/lib/asn1/der_get.c
171
heim_general_string *str, size_t *size)
crypto/heimdal/lib/asn1/der_get.c
196
*str = s;
crypto/heimdal/lib/asn1/der_get.c
203
heim_utf8_string *str, size_t *size)
crypto/heimdal/lib/asn1/der_get.c
205
return der_get_general_string(p, len, str, size);
crypto/heimdal/lib/asn1/der_get.c
210
heim_printable_string *str, size_t *size)
crypto/heimdal/lib/asn1/der_get.c
212
str->length = len;
crypto/heimdal/lib/asn1/der_get.c
213
str->data = malloc(len + 1);
crypto/heimdal/lib/asn1/der_get.c
214
if (str->data == NULL)
crypto/heimdal/lib/asn1/der_get.c
216
memcpy(str->data, p, len);
crypto/heimdal/lib/asn1/der_get.c
217
((char *)str->data)[len] = '\0';
crypto/heimdal/lib/asn1/der_get.c
224
heim_ia5_string *str, size_t *size)
crypto/heimdal/lib/asn1/der_get.c
226
return der_get_printable_string(p, len, str, size);
crypto/heimdal/lib/asn1/der_get.c
292
heim_visible_string *str, size_t *size)
crypto/heimdal/lib/asn1/der_get.c
294
return der_get_general_string(p, len, str, size);
crypto/heimdal/lib/asn1/der_put.c
233
const heim_general_string *str, size_t *size)
crypto/heimdal/lib/asn1/der_put.c
235
size_t slen = strlen(*str);
crypto/heimdal/lib/asn1/der_put.c
240
memcpy (p+1, *str, slen);
crypto/heimdal/lib/asn1/der_put.c
247
const heim_utf8_string *str, size_t *size)
crypto/heimdal/lib/asn1/der_put.c
249
return der_put_general_string(p, len, str, size);
crypto/heimdal/lib/asn1/der_put.c
254
const heim_printable_string *str, size_t *size)
crypto/heimdal/lib/asn1/der_put.c
256
return der_put_octet_string(p, len, str, size);
crypto/heimdal/lib/asn1/der_put.c
261
const heim_ia5_string *str, size_t *size)
crypto/heimdal/lib/asn1/der_put.c
263
return der_put_octet_string(p, len, str, size);
crypto/heimdal/lib/asn1/der_put.c
304
const heim_visible_string *str, size_t *size)
crypto/heimdal/lib/asn1/der_put.c
306
return der_put_general_string(p, len, str, size);
crypto/heimdal/lib/asn1/gen_template.c
228
char *str;
crypto/heimdal/lib/asn1/gen_template.c
231
if (asprintf(&str, "offsetof(struct %s, %s)", basetype, name) < 0 || str == NULL)
crypto/heimdal/lib/asn1/gen_template.c
233
return str;
crypto/heimdal/lib/com_err/error.c
60
com_right_r(struct et_list *list, long code, char *str, size_t len)
crypto/heimdal/lib/com_err/error.c
70
strlcpy(str, dgettext(domain, msg), len);
crypto/heimdal/lib/com_err/error.c
71
return str;
crypto/heimdal/lib/com_err/parse.c
132
static long name2number(const char *str);
crypto/heimdal/lib/com_err/parse.c
1688
name2number(const char *str)
crypto/heimdal/lib/com_err/parse.c
1694
if(strlen(str) > 4) {
crypto/heimdal/lib/com_err/parse.c
1698
for(p = str; *p; p++){
crypto/heimdal/lib/com_err/parse.y
146
name2number(const char *str)
crypto/heimdal/lib/com_err/parse.y
152
if(strlen(str) > 4) {
crypto/heimdal/lib/com_err/parse.y
156
for(p = str; *p; p++){
crypto/heimdal/lib/com_err/parse.y
39
static long name2number(const char *str);
crypto/heimdal/lib/gssapi/gsstool.c
101
maj_stat = gss_oid_to_str(&min_stat, &mechs->elements[i], &str);
crypto/heimdal/lib/gssapi/gsstool.c
106
(int)str.length, (char *)str.value);
crypto/heimdal/lib/gssapi/gsstool.c
107
gss_release_buffer(&min_stat, &str);
crypto/heimdal/lib/gssapi/gsstool.c
99
gss_buffer_desc str, sasl_name, mech_name, mech_desc;
crypto/heimdal/lib/gssapi/krb5/copy_ccache.c
131
kret = krb5_cc_get_full_name(context, id, &str);
crypto/heimdal/lib/gssapi/krb5/copy_ccache.c
135
kret = krb5_cc_resolve(context, str, &handle->ccache);
crypto/heimdal/lib/gssapi/krb5/copy_ccache.c
136
free(str);
crypto/heimdal/lib/gssapi/krb5/copy_ccache.c
143
char *str;
crypto/heimdal/lib/gssapi/krb5/copy_ccache.c
155
kret = krb5_kt_get_full_name(context, keytab, &str);
crypto/heimdal/lib/gssapi/krb5/copy_ccache.c
159
kret = krb5_kt_resolve(context, str, &handle->keytab);
crypto/heimdal/lib/gssapi/krb5/copy_ccache.c
160
free(str);
crypto/heimdal/lib/gssapi/krb5/copy_ccache.c
92
char *str;
crypto/heimdal/lib/gssapi/krb5/creds.c
104
ret = krb5_store_string(sp, str);
crypto/heimdal/lib/gssapi/krb5/creds.c
105
free(str);
crypto/heimdal/lib/gssapi/krb5/creds.c
167
char *str;
crypto/heimdal/lib/gssapi/krb5/creds.c
219
ret = krb5_ret_string(sp, &str);
crypto/heimdal/lib/gssapi/krb5/creds.c
226
ret = krb5_cc_resolve(context, str, &id);
crypto/heimdal/lib/gssapi/krb5/creds.c
227
krb5_xfree(str);
crypto/heimdal/lib/gssapi/krb5/creds.c
47
char *str;
crypto/heimdal/lib/gssapi/krb5/creds.c
97
ret = krb5_cc_get_full_name(context, handle->ccache, &str);
crypto/heimdal/lib/gssapi/krb5/decapsulate.c
106
u_char *p = *str;
crypto/heimdal/lib/gssapi/krb5/decapsulate.c
108
ret = _gssapi_verify_mech_header(str, total_len, oid);
crypto/heimdal/lib/gssapi/krb5/decapsulate.c
112
len = total_len - (*str - p);
crypto/heimdal/lib/gssapi/krb5/decapsulate.c
117
if (ct_memcmp (*str, type, 2) != 0)
crypto/heimdal/lib/gssapi/krb5/decapsulate.c
119
*str += 2;
crypto/heimdal/lib/gssapi/krb5/decapsulate.c
72
_gssapi_verify_mech_header(u_char **str,
crypto/heimdal/lib/gssapi/krb5/decapsulate.c
79
mech_len = _gsskrb5_get_mech (*str, total_len, &p);
crypto/heimdal/lib/gssapi/krb5/decapsulate.c
87
if (p - *str > total_len - mech_len)
crypto/heimdal/lib/gssapi/krb5/decapsulate.c
94
*str = rk_UNCONST(p);
crypto/heimdal/lib/gssapi/krb5/decapsulate.c
99
_gsskrb5_verify_header(u_char **str,
crypto/heimdal/lib/gssapi/krb5/display_status.c
127
char *str;
crypto/heimdal/lib/gssapi/krb5/display_status.c
134
e = vasprintf(&str, fmt, args);
crypto/heimdal/lib/gssapi/krb5/display_status.c
136
if (e >= 0 && str) {
crypto/heimdal/lib/gssapi/krb5/display_status.c
137
krb5_set_error_message(context, ret, "%s", str);
crypto/heimdal/lib/gssapi/krb5/display_status.c
138
free(str);
crypto/heimdal/lib/gssapi/krb5/inquire_cred_by_oid.c
45
char *str;
crypto/heimdal/lib/gssapi/krb5/inquire_cred_by_oid.c
62
ret = krb5_cc_get_full_name(context, cred->ccache, &str);
crypto/heimdal/lib/gssapi/krb5/inquire_cred_by_oid.c
69
buffer.value = str;
crypto/heimdal/lib/gssapi/krb5/inquire_cred_by_oid.c
70
buffer.length = strlen(str);
crypto/heimdal/lib/gssapi/krb5/inquire_cred_by_oid.c
76
free(str);
crypto/heimdal/lib/gssapi/krb5/set_cred_option.c
105
free(str);
crypto/heimdal/lib/gssapi/krb5/set_cred_option.c
106
str = NULL;
crypto/heimdal/lib/gssapi/krb5/set_cred_option.c
117
if (str)
crypto/heimdal/lib/gssapi/krb5/set_cred_option.c
118
free(str);
crypto/heimdal/lib/gssapi/krb5/set_cred_option.c
47
char *str;
crypto/heimdal/lib/gssapi/krb5/set_cred_option.c
61
ret = krb5_ret_string(sp, &str);
crypto/heimdal/lib/gssapi/krb5/set_cred_option.c
67
if (str[0]) {
crypto/heimdal/lib/gssapi/krb5/set_cred_option.c
68
ret = krb5_cc_resolve(context, str, &id);
crypto/heimdal/lib/gssapi/krb5/set_cred_option.c
75
free(str);
crypto/heimdal/lib/gssapi/krb5/set_cred_option.c
76
str = NULL;
crypto/heimdal/lib/gssapi/krb5/set_cred_option.c
79
ret = krb5_ret_string(sp, &str);
crypto/heimdal/lib/gssapi/krb5/set_cred_option.c
80
if (ret == 0 && str[0])
crypto/heimdal/lib/gssapi/krb5/set_cred_option.c
81
ret = krb5_parse_name(context, str, &keytab_principal);
crypto/heimdal/lib/gssapi/krb5/set_cred_option.c
87
free(str);
crypto/heimdal/lib/gssapi/krb5/set_cred_option.c
88
str = NULL;
crypto/heimdal/lib/gssapi/krb5/set_cred_option.c
91
ret = krb5_ret_string(sp, &str);
crypto/heimdal/lib/gssapi/krb5/set_cred_option.c
97
if (str[0]) {
crypto/heimdal/lib/gssapi/krb5/set_cred_option.c
98
ret = krb5_kt_resolve(context, str, &keytab);
crypto/heimdal/lib/gssapi/krb5/set_sec_context_option.c
151
char *str;
crypto/heimdal/lib/gssapi/krb5/set_sec_context_option.c
153
maj_stat = get_string(minor_status, value, &str);
crypto/heimdal/lib/gssapi/krb5/set_sec_context_option.c
157
maj_stat = _gsskrb5_register_acceptor_identity(minor_status, str);
crypto/heimdal/lib/gssapi/krb5/set_sec_context_option.c
158
free(str);
crypto/heimdal/lib/gssapi/krb5/set_sec_context_option.c
163
char *str;
crypto/heimdal/lib/gssapi/krb5/set_sec_context_option.c
165
maj_stat = get_string(minor_status, value, &str);
crypto/heimdal/lib/gssapi/krb5/set_sec_context_option.c
168
if (str == NULL) {
crypto/heimdal/lib/gssapi/krb5/set_sec_context_option.c
173
krb5_set_default_realm(context, str);
crypto/heimdal/lib/gssapi/krb5/set_sec_context_option.c
174
free(str);
crypto/heimdal/lib/gssapi/krb5/set_sec_context_option.c
199
char *str;
crypto/heimdal/lib/gssapi/krb5/set_sec_context_option.c
201
maj_stat = get_string(minor_status, value, &str);
crypto/heimdal/lib/gssapi/krb5/set_sec_context_option.c
204
if (str == NULL) {
crypto/heimdal/lib/gssapi/krb5/set_sec_context_option.c
209
*minor_status = krb5_cc_set_default_name(context, str);
crypto/heimdal/lib/gssapi/krb5/set_sec_context_option.c
210
free(str);
crypto/heimdal/lib/gssapi/krb5/set_sec_context_option.c
55
char **str)
crypto/heimdal/lib/gssapi/krb5/set_sec_context_option.c
58
*str = NULL;
crypto/heimdal/lib/gssapi/krb5/set_sec_context_option.c
60
*str = malloc(value->length + 1);
crypto/heimdal/lib/gssapi/krb5/set_sec_context_option.c
61
if (*str == NULL) {
crypto/heimdal/lib/gssapi/krb5/set_sec_context_option.c
65
memcpy(*str, value->value, value->length);
crypto/heimdal/lib/gssapi/krb5/set_sec_context_option.c
66
(*str)[value->length] = '\0';
crypto/heimdal/lib/gssapi/mech/gss_krb5.c
106
char *str;
crypto/heimdal/lib/gssapi/mech/gss_krb5.c
124
ret = krb5_cc_get_full_name(context, id, &str);
crypto/heimdal/lib/gssapi/mech/gss_krb5.c
126
ret = krb5_store_string(sp, str);
crypto/heimdal/lib/gssapi/mech/gss_krb5.c
127
free(str);
crypto/heimdal/lib/gssapi/mech/gss_krb5.c
138
ret = krb5_unparse_name(context, keytab_principal, &str);
crypto/heimdal/lib/gssapi/mech/gss_krb5.c
140
ret = krb5_store_string(sp, str);
crypto/heimdal/lib/gssapi/mech/gss_krb5.c
141
free(str);
crypto/heimdal/lib/gssapi/mech/gss_krb5.c
153
ret = krb5_kt_get_full_name(context, keytab, &str);
crypto/heimdal/lib/gssapi/mech/gss_krb5.c
155
ret = krb5_store_string(sp, str);
crypto/heimdal/lib/gssapi/mech/gss_krb5.c
156
free(str);
crypto/heimdal/lib/gssapi/mech/gss_krb5.c
45
char *str = NULL;
crypto/heimdal/lib/gssapi/mech/gss_krb5.c
67
kret = asprintf(&str, "%.*s", (int)data_set->elements[0].length,
crypto/heimdal/lib/gssapi/mech/gss_krb5.c
70
if (kret < 0 || str == NULL) {
crypto/heimdal/lib/gssapi/mech/gss_krb5.c
75
kret = krb5_cc_resolve(context, str, &id);
crypto/heimdal/lib/gssapi/mech/gss_krb5.c
76
free(str);
crypto/heimdal/lib/gssapi/ntlm/display_name.c
51
char *str = NULL;
crypto/heimdal/lib/gssapi/ntlm/display_name.c
62
len = asprintf(&str, "%s@%s", n->user, n->domain);
crypto/heimdal/lib/gssapi/ntlm/display_name.c
63
if (len < 0 || str == NULL) {
crypto/heimdal/lib/gssapi/ntlm/display_name.c
68
output_name_buffer->value = str;
crypto/heimdal/lib/gssapi/ntlm/init_sec_context.c
40
char *str, buf[1024];
crypto/heimdal/lib/gssapi/ntlm/init_sec_context.c
53
str = NULL;
crypto/heimdal/lib/gssapi/ntlm/init_sec_context.c
54
d = strtok_r(buf, ":", &str);
crypto/heimdal/lib/gssapi/ntlm/init_sec_context.c
59
u = strtok_r(NULL, ":", &str);
crypto/heimdal/lib/gssapi/ntlm/init_sec_context.c
60
p = strtok_r(NULL, ":", &str);
crypto/heimdal/lib/gssapi/spnego/accept_sec_context.c
369
char *str = NULL, *host, hostname[MAXHOSTNAMELEN];
crypto/heimdal/lib/gssapi/spnego/accept_sec_context.c
378
rv = asprintf(&str, "host@%s", hostname);
crypto/heimdal/lib/gssapi/spnego/accept_sec_context.c
379
if (rv < 0 || str == NULL) {
crypto/heimdal/lib/gssapi/spnego/accept_sec_context.c
383
host = str;
crypto/heimdal/lib/gssapi/spnego/accept_sec_context.c
391
if (str)
crypto/heimdal/lib/gssapi/spnego/accept_sec_context.c
392
free(str);
crypto/heimdal/lib/gssapi/test_names.c
108
char *str;
crypto/heimdal/lib/gssapi/test_names.c
132
str = NULL;
crypto/heimdal/lib/gssapi/test_names.c
133
len = asprintf(&str, "ftp@freeze-arrow.mit.edu");
crypto/heimdal/lib/gssapi/test_names.c
134
if (len < 0 || str == NULL)
crypto/heimdal/lib/gssapi/test_names.c
137
name_buffer.value = str;
crypto/heimdal/lib/gssapi/test_names.c
145
free(str);
crypto/heimdal/lib/gssapi/test_names.c
187
str = NULL;
crypto/heimdal/lib/gssapi/test_names.c
188
len = asprintf(&str, "lha");
crypto/heimdal/lib/gssapi/test_names.c
189
if (len < 0 || str == NULL)
crypto/heimdal/lib/gssapi/test_names.c
192
name_buffer.value = str;
crypto/heimdal/lib/gssapi/test_names.c
207
free(str);
crypto/heimdal/lib/hdb/ext.c
284
char *str;
crypto/heimdal/lib/hdb/ext.c
333
ret = krb5_unparse_name(context, entry->principal, &str);
crypto/heimdal/lib/hdb/ext.c
336
"no password attribute for %s", str);
crypto/heimdal/lib/hdb/ext.c
337
free(str);
crypto/heimdal/lib/hdb/hdb-ldap.c
378
bervalstrcmp(struct berval *v, const char *str)
crypto/heimdal/lib/hdb/hdb-ldap.c
380
size_t len = strlen(str);
crypto/heimdal/lib/hdb/hdb-ldap.c
381
return (v->bv_len == len) && strncasecmp(str, (char *)v->bv_val, len) == 0;
crypto/heimdal/lib/hdb/hdb-mitdb.c
122
char *str;
crypto/heimdal/lib/hdb/hdb-mitdb.c
124
ret = krb5_unparse_name(context, principal, &str);
crypto/heimdal/lib/hdb/hdb-mitdb.c
127
key->data = str;
crypto/heimdal/lib/hdb/hdb-mitdb.c
128
key->length = strlen(str) + 1;
crypto/heimdal/lib/hdb/hdb-sqlite.c
129
const char *str)
crypto/heimdal/lib/hdb/hdb-sqlite.c
133
ret = sqlite3_prepare_v2(db, str, -1, statement, NULL);
crypto/heimdal/lib/hdb/hdb-sqlite.c
140
ret = sqlite3_prepare_v2(db, str, -1, statement, NULL);
crypto/heimdal/lib/hdb/hdb-sqlite.c
146
str, sqlite3_errmsg(db));
crypto/heimdal/lib/hdb/print.c
564
hdb_entry2string(krb5_context context, hdb_entry *ent, char **str)
crypto/heimdal/lib/hdb/print.c
585
*str = data.data;
crypto/heimdal/lib/hx509/ca.c
610
const char *str;
crypto/heimdal/lib/hx509/ca.c
616
for(str = principal; *str != '\0' && *str != '@'; str++){
crypto/heimdal/lib/hx509/ca.c
617
if(*str=='\\'){
crypto/heimdal/lib/hx509/ca.c
618
if(str[1] == '\0' || str[1] == '@') {
crypto/heimdal/lib/hx509/ca.c
624
str++;
crypto/heimdal/lib/hx509/ca.c
625
} else if(*str == '/')
crypto/heimdal/lib/hx509/cert.c
1116
char *str;
crypto/heimdal/lib/hx509/cert.c
1123
ret = hx509_name_to_string(name, &str);
crypto/heimdal/lib/hx509/cert.c
1132
"certificate with subject: '%s'", str);
crypto/heimdal/lib/hx509/cert.c
1133
free(str);
crypto/heimdal/lib/hx509/cert.c
3232
char str[10];
crypto/heimdal/lib/hx509/cert.c
3237
snprintf(str, sizeof(str), "%d", stats[i].index);
crypto/heimdal/lib/hx509/cert.c
3238
rtbl_add_column_entry_by_id (t, 0, str);
crypto/heimdal/lib/hx509/cert.c
3240
snprintf(str, sizeof(str), "%lu", stats[i].stats);
crypto/heimdal/lib/hx509/cert.c
3241
rtbl_add_column_entry_by_id (t, 1, str);
crypto/heimdal/lib/hx509/cert.c
3567
char *str;
crypto/heimdal/lib/hx509/cert.c
3576
hx509_name_to_string(name, &str);
crypto/heimdal/lib/hx509/cert.c
3578
fprintf(out, " issuer: \"%s\"\n", str);
crypto/heimdal/lib/hx509/cert.c
3579
free(str);
crypto/heimdal/lib/hx509/cert.c
3584
hx509_name_to_string(name, &str);
crypto/heimdal/lib/hx509/cert.c
3586
fprintf(out, " subject: \"%s\"\n", str);
crypto/heimdal/lib/hx509/cert.c
3587
free(str);
crypto/heimdal/lib/hx509/cert.c
3595
ret = der_print_hex_heim_integer(&serialNumber, &str);
crypto/heimdal/lib/hx509/cert.c
3599
fprintf(out, " serial: %s\n", str);
crypto/heimdal/lib/hx509/cert.c
3600
free(str);
crypto/heimdal/lib/hx509/cert.c
3604
ret = hx509_cert_keyusage_print(context, cert, &str);
crypto/heimdal/lib/hx509/cert.c
3606
fprintf(out, "%s\n", str);
crypto/heimdal/lib/hx509/cert.c
3607
free(str);
crypto/heimdal/lib/hx509/cms.c
210
char **str)
crypto/heimdal/lib/hx509/cms.c
214
*str = NULL;
crypto/heimdal/lib/hx509/cms.c
230
asprintf(str, "certificate issued by %s with serial number %s",
crypto/heimdal/lib/hx509/cms.c
245
asprintf(str, "certificate with id %s", keyid);
crypto/heimdal/lib/hx509/cms.c
250
asprintf(str, "certificate have unknown CMSidentifier type");
crypto/heimdal/lib/hx509/cms.c
253
if (*str == NULL)
crypto/heimdal/lib/hx509/cms.c
302
char *str;
crypto/heimdal/lib/hx509/cms.c
304
ret = unparse_CMSIdentifier(context, client, &str);
crypto/heimdal/lib/hx509/cms.c
308
"Failed to find %s", str);
crypto/heimdal/lib/hx509/cms.c
411
char *str;
crypto/heimdal/lib/hx509/cms.c
433
ret2 = unparse_CMSIdentifier(context, &ri->rid, &str);
crypto/heimdal/lib/hx509/cms.c
436
"Failed to decrypt with %s", str);
crypto/heimdal/lib/hx509/cms.c
437
free(str);
crypto/heimdal/lib/hx509/error.c
165
char *str;
crypto/heimdal/lib/hx509/error.c
173
if (asprintf(&str, "<unknown error: %d>", error_code) == -1)
crypto/heimdal/lib/hx509/error.c
175
return str;
crypto/heimdal/lib/hx509/error.c
194
hx509_free_error_string(char *str)
crypto/heimdal/lib/hx509/error.c
196
free(str);
crypto/heimdal/lib/hx509/error.c
217
char *str;
crypto/heimdal/lib/hx509/error.c
220
vasprintf(&str, fmt, ap);
crypto/heimdal/lib/hx509/error.c
226
errx(exit_code, "%s: %s", str, msg);
crypto/heimdal/lib/hx509/file.c
69
print_pem_stamp(FILE *f, const char *type, const char *str)
crypto/heimdal/lib/hx509/file.c
71
fprintf(f, "-----%s %s-----\n", type, str);
crypto/heimdal/lib/hx509/hxtool.c
101
parse_oid(const char *str, const heim_oid *def, heim_oid *oid)
crypto/heimdal/lib/hx509/hxtool.c
104
if (str)
crypto/heimdal/lib/hx509/hxtool.c
105
ret = der_parse_heim_oid (str, " .", oid);
crypto/heimdal/lib/hx509/hxtool.c
109
errx(1, "parse_oid failed for: %s", str ? str : "default oid");
crypto/heimdal/lib/hx509/hxtool.c
298
char *str;
crypto/heimdal/lib/hx509/hxtool.c
299
der_print_heim_oid(&type, '.', &str);
crypto/heimdal/lib/hx509/hxtool.c
300
printf("type: %s\n", str);
crypto/heimdal/lib/hx509/hxtool.c
301
free(str);
crypto/heimdal/lib/hx509/keyset.c
708
certs_info_stdio(void *ctx, const char *str)
crypto/heimdal/lib/hx509/keyset.c
711
fprintf(f, "%s\n", str);
crypto/heimdal/lib/hx509/keyset.c
754
char *str;
crypto/heimdal/lib/hx509/keyset.c
757
vasprintf(&str, fmt, ap);
crypto/heimdal/lib/hx509/keyset.c
759
if (str == NULL)
crypto/heimdal/lib/hx509/keyset.c
761
(*func)(ctx, str);
crypto/heimdal/lib/hx509/keyset.c
762
free(str);
crypto/heimdal/lib/hx509/ks_p11.c
445
char *str;
crypto/heimdal/lib/hx509/ks_p11.c
451
asprintf(&str, "PIN code for %s: ", slot->name);
crypto/heimdal/lib/hx509/ks_p11.c
452
prompt.prompt = str;
crypto/heimdal/lib/hx509/ks_p11.c
459
free(str);
crypto/heimdal/lib/hx509/ks_p11.c
467
free(str);
crypto/heimdal/lib/hx509/ks_p11.c
756
char *str;
crypto/heimdal/lib/hx509/ks_p11.c
758
asprintf(&str, "%.*s",
crypto/heimdal/lib/hx509/ks_p11.c
760
if (str) {
crypto/heimdal/lib/hx509/ks_p11.c
761
hx509_cert_set_friendly_name(cert, str);
crypto/heimdal/lib/hx509/ks_p11.c
762
free(str);
crypto/heimdal/lib/hx509/ks_p11.c
835
char *list, *str;
crypto/heimdal/lib/hx509/ks_p11.c
852
str = strchr(list, ',');
crypto/heimdal/lib/hx509/ks_p11.c
853
if (str)
crypto/heimdal/lib/hx509/ks_p11.c
854
*str++ = '\0';
crypto/heimdal/lib/hx509/ks_p11.c
855
while (str) {
crypto/heimdal/lib/hx509/ks_p11.c
857
strnext = strchr(str, ',');
crypto/heimdal/lib/hx509/ks_p11.c
861
if (strncasecmp(str, "slot=", 5) == 0)
crypto/heimdal/lib/hx509/ks_p11.c
862
p->selected_slot = atoi(str + 5);
crypto/heimdal/lib/hx509/ks_p11.c
864
str = strnext;
crypto/heimdal/lib/hx509/name.c
1022
else if (strpool == NULL || (*str = rk_strpoolcollect(strpool)) == NULL)
crypto/heimdal/lib/hx509/name.c
122
append_string(char **str, size_t *total_len, const char *ss,
crypto/heimdal/lib/hx509/name.c
132
s = realloc(*str, len + *total_len + 1);
crypto/heimdal/lib/hx509/name.c
139
*str = s;
crypto/heimdal/lib/hx509/name.c
195
hx509_name_to_string(const hx509_name name, char **str)
crypto/heimdal/lib/hx509/name.c
197
return _hx509_Name_to_string(&name->der_name, str);
crypto/heimdal/lib/hx509/name.c
201
_hx509_Name_to_string(const Name *n, char **str)
crypto/heimdal/lib/hx509/name.c
207
*str = strdup("");
crypto/heimdal/lib/hx509/name.c
208
if (*str == NULL)
crypto/heimdal/lib/hx509/name.c
285
append_string(str, &total_len, oidname, strlen(oidname), 0);
crypto/heimdal/lib/hx509/name.c
287
append_string(str, &total_len, "=", 1, 0);
crypto/heimdal/lib/hx509/name.c
288
append_string(str, &total_len, ss, len, 1);
crypto/heimdal/lib/hx509/name.c
295
append_string(str, &total_len, "+", 1, 0);
crypto/heimdal/lib/hx509/name.c
299
append_string(str, &total_len, ",", 1, 0);
crypto/heimdal/lib/hx509/name.c
518
const char *str)
crypto/heimdal/lib/hx509/name.c
551
rdn->val[0].value.u.utf8String = strdup(str);
crypto/heimdal/lib/hx509/name.c
572
hx509_parse_name(hx509_context context, const char *str, hx509_name *name)
crypto/heimdal/lib/hx509/name.c
589
p = str;
crypto/heimdal/lib/hx509/name.c
853
hx509_unparse_der_name(const void *data, size_t length, char **str)
crypto/heimdal/lib/hx509/name.c
858
*str = NULL;
crypto/heimdal/lib/hx509/name.c
863
ret = _hx509_Name_to_string(&name, str);
crypto/heimdal/lib/hx509/name.c
896
_hx509_unparse_Name(const Name *aname, char **str)
crypto/heimdal/lib/hx509/name.c
905
ret = hx509_name_to_string(name, str);
crypto/heimdal/lib/hx509/name.c
938
hx509_general_name_unparse(GeneralName *name, char **str)
crypto/heimdal/lib/hx509/name.c
943
*str = NULL;
crypto/heimdal/lib/hx509/print.c
126
hx509_oid_sprint(const heim_oid *oid, char **str)
crypto/heimdal/lib/hx509/print.c
128
return der_print_heim_oid(oid, '.', str);
crypto/heimdal/lib/hx509/print.c
145
char *str;
crypto/heimdal/lib/hx509/print.c
146
hx509_oid_sprint(oid, &str);
crypto/heimdal/lib/hx509/print.c
147
print_func(func, ctx, "%s", str);
crypto/heimdal/lib/hx509/print.c
148
free(str);
crypto/heimdal/lib/hx509/print.c
397
char *str;
crypto/heimdal/lib/hx509/print.c
398
ret = der_print_heim_oid (&eku.val[i], '.', &str);
crypto/heimdal/lib/hx509/print.c
406
"\teku-%d: %s\n", i, str);;
crypto/heimdal/lib/hx509/print.c
407
free(str);
crypto/heimdal/lib/hx509/print.c
65
Time2string(const Time *T, char **str)
crypto/heimdal/lib/hx509/print.c
71
*str = NULL;
crypto/heimdal/lib/hx509/print.c
736
char *str;
crypto/heimdal/lib/hx509/print.c
740
hx509_general_name_unparse(&aia.val[i].accessLocation, &str);
crypto/heimdal/lib/hx509/print.c
742
"\n\tdirname: %s\n", str);
crypto/heimdal/lib/hx509/print.c
743
free(str);
crypto/heimdal/lib/hx509/print.c
78
*str = s;
crypto/heimdal/lib/hx509/print.c
893
char *str;
crypto/heimdal/lib/hx509/print.c
913
hx509_name_to_string(subject, &str);
crypto/heimdal/lib/hx509/print.c
915
"subject name: %s\n", str);
crypto/heimdal/lib/hx509/print.c
916
free(str);
crypto/heimdal/lib/hx509/print.c
920
hx509_name_to_string(issuer, &str);
crypto/heimdal/lib/hx509/print.c
922
"issuer name: %s\n", str);
crypto/heimdal/lib/hx509/print.c
923
free(str);
crypto/heimdal/lib/hx509/print.c
934
Time2string(&t->validity.notBefore, &str);
crypto/heimdal/lib/hx509/print.c
935
validate_print(ctx, HX509_VALIDATE_F_VERBOSE, "\tnotBefore %s\n", str);
crypto/heimdal/lib/hx509/print.c
936
free(str);
crypto/heimdal/lib/hx509/print.c
937
Time2string(&t->validity.notAfter, &str);
crypto/heimdal/lib/hx509/print.c
938
validate_print(ctx, HX509_VALIDATE_F_VERBOSE, "\tnotAfter %s\n", str);
crypto/heimdal/lib/hx509/print.c
939
free(str);
crypto/heimdal/lib/hx509/softp11.c
136
snprintf_fill(char *str, size_t size, char fillchar, const char *fmt, ...)
crypto/heimdal/lib/hx509/softp11.c
141
len = vsnprintf(str, size, fmt, ap);
crypto/heimdal/lib/hx509/softp11.c
146
str[len++] = fillchar;
crypto/heimdal/lib/hx509/softp11.c
621
char *str;
crypto/heimdal/lib/hx509/softp11.c
622
asprintf(&str, "PASS:%s", pin);
crypto/heimdal/lib/hx509/softp11.c
625
hx509_lock_command_string(lock, str);
crypto/heimdal/lib/hx509/softp11.c
627
memset(str, 0, strlen(str));
crypto/heimdal/lib/hx509/softp11.c
628
free(str);
crypto/heimdal/lib/kadm5/ad.c
412
nt2unixtime(const char *str)
crypto/heimdal/lib/kadm5/ad.c
415
t = strtoll(str, NULL, 10);
crypto/heimdal/lib/kadm5/default_keys.c
43
char *str;
crypto/heimdal/lib/kadm5/default_keys.c
50
ret = krb5_enctype_to_string(context, keys[i].key.keytype, &str);
crypto/heimdal/lib/kadm5/default_keys.c
55
printf("\tenctype %s", str);
crypto/heimdal/lib/kadm5/default_keys.c
56
free(str);
crypto/heimdal/lib/kadm5/ipropd_master.c
691
char str[100];
crypto/heimdal/lib/kadm5/ipropd_master.c
698
krb5_format_time(context, t, str, sizeof(str), TRUE);
crypto/heimdal/lib/kadm5/ipropd_master.c
699
fprintf(fp, "master down at %s\n", str);
crypto/heimdal/lib/kadm5/ipropd_master.c
707
char str[100];
crypto/heimdal/lib/kadm5/ipropd_master.c
716
krb5_format_time(context, t, str, sizeof(str), TRUE);
crypto/heimdal/lib/kadm5/ipropd_master.c
717
fprintf(fp, "Status for slaves, last updated: %s\n\n", str);
crypto/heimdal/lib/kadm5/ipropd_master.c
743
krb5_print_address(&addr, str, sizeof(str), NULL);
crypto/heimdal/lib/kadm5/ipropd_master.c
745
rtbl_add_column_entry(tbl, SLAVE_ADDRESS, str);
crypto/heimdal/lib/kadm5/ipropd_master.c
749
snprintf(str, sizeof(str), "%u", (unsigned)slaves->version);
crypto/heimdal/lib/kadm5/ipropd_master.c
750
rtbl_add_column_entry(tbl, SLAVE_VERSION, str);
crypto/heimdal/lib/kadm5/ipropd_master.c
757
ret = krb5_format_time(context, slaves->seen, str, sizeof(str), TRUE);
crypto/heimdal/lib/kadm5/ipropd_master.c
761
rtbl_add_column_entry(tbl, SLAVE_SEEN, str);
crypto/heimdal/lib/kafs/afskrb5.c
200
free_error(struct kafs_data *data, const char *str)
crypto/heimdal/lib/kafs/afskrb5.c
203
krb5_free_error_message(d->context, str);
crypto/heimdal/lib/kafs/afssys.c
136
map_syscall_name_to_number (const char *str, int *res)
crypto/heimdal/lib/kafs/afssys.c
140
size_t str_len = strlen (str);
crypto/heimdal/lib/kafs/afssys.c
149
if (strncmp (str, buf, str_len) == 0) {
crypto/heimdal/lib/kafs/common.c
351
char *str;
crypto/heimdal/lib/kafs/common.c
352
asprintf(&str, "%s tried afs%s%s@%s -> %s (%d)",
crypto/heimdal/lib/kafs/common.c
355
(*kafs_verbose)(kafs_verbose_ctx, str);
crypto/heimdal/lib/kafs/common.c
358
free(str);
crypto/heimdal/lib/krb5/acache.c
1014
acc_get_default_name(krb5_context context, char **str)
crypto/heimdal/lib/krb5/acache.c
1035
error = asprintf(str, "API:%s", name->data);
crypto/heimdal/lib/krb5/acache.c
1039
if (error < 0 || *str == NULL) {
crypto/heimdal/lib/krb5/addr_families.c
1108
char *str, size_t len, size_t *ret_len)
crypto/heimdal/lib/krb5/addr_families.c
1118
s = str;
crypto/heimdal/lib/krb5/addr_families.c
1132
*ret_len = s - str;
crypto/heimdal/lib/krb5/addr_families.c
1135
ret = (*a->print_addr)(addr, str, len);
crypto/heimdal/lib/krb5/addr_families.c
165
ipv4_print_addr (const krb5_address *addr, char *str, size_t len)
crypto/heimdal/lib/krb5/addr_families.c
171
return snprintf (str, len, "IPv4:%s", inet_ntoa(ia));
crypto/heimdal/lib/krb5/addr_families.c
351
ipv6_print_addr (const krb5_address *addr, char *str, size_t len)
crypto/heimdal/lib/krb5/addr_families.c
367
return snprintf(str, len, "IPv6:%s", buf);
crypto/heimdal/lib/krb5/addr_families.c
600
arange_print_addr (const krb5_address *addr, char *str, size_t len)
crypto/heimdal/lib/krb5/addr_families.c
608
l = strlcpy(str, "RANGE:", len);
crypto/heimdal/lib/krb5/addr_families.c
614
ret = krb5_print_address (&a->low, str + size, len - size, &l);
crypto/heimdal/lib/krb5/addr_families.c
623
l = strlcat(str + size, "-", len - size);
crypto/heimdal/lib/krb5/addr_families.c
630
ret = krb5_print_address (&a->high, str + size, len - size, &l);
crypto/heimdal/lib/krb5/addr_families.c
682
addrport_print_addr (const krb5_address *addr, char *str, size_t len)
crypto/heimdal/lib/krb5/addr_families.c
708
l = strlcpy(str, "ADDRPORT:", len);
crypto/heimdal/lib/krb5/addr_families.c
715
ret = krb5_print_address(&addr1, str + size, len - size, &l);
crypto/heimdal/lib/krb5/addr_families.c
724
ret = snprintf(str + size, len - size, ",PORT=%u", port);
crypto/heimdal/lib/krb5/cache.c
1164
char *str;
crypto/heimdal/lib/krb5/cache.c
1166
krb5_unparse_name(context, client, &str);
crypto/heimdal/lib/krb5/cache.c
1171
str ? str : "<out of memory>");
crypto/heimdal/lib/krb5/cache.c
1172
if (str)
crypto/heimdal/lib/krb5/cache.c
1173
free(str);
crypto/heimdal/lib/krb5/cache.c
365
char **str)
crypto/heimdal/lib/krb5/cache.c
369
*str = NULL;
crypto/heimdal/lib/krb5/cache.c
385
if (asprintf(str, "%s:%s", type, name) == -1) {
crypto/heimdal/lib/krb5/cache.c
387
*str = NULL;
crypto/heimdal/lib/krb5/cache.c
411
_krb5_expand_default_cc_name(krb5_context context, const char *str, char **res)
crypto/heimdal/lib/krb5/cache.c
413
return _krb5_expand_path_tokens(context, str, res);
crypto/heimdal/lib/krb5/changepw.c
51
char *str;
crypto/heimdal/lib/krb5/changepw.c
54
d->length = vasprintf (&str, fmt, args);
crypto/heimdal/lib/krb5/changepw.c
56
d->data = str;
crypto/heimdal/lib/krb5/config_file.c
1039
const char *str;
crypto/heimdal/lib/krb5/config_file.c
1040
str = krb5_config_vget_string (context, c, args);
crypto/heimdal/lib/krb5/config_file.c
1041
if(str == NULL)
crypto/heimdal/lib/krb5/config_file.c
1043
if(strcasecmp(str, "yes") == 0 ||
crypto/heimdal/lib/krb5/config_file.c
1044
strcasecmp(str, "true") == 0 ||
crypto/heimdal/lib/krb5/config_file.c
1045
atoi(str)) return TRUE;
crypto/heimdal/lib/krb5/config_file.c
1153
const char *str;
crypto/heimdal/lib/krb5/config_file.c
1156
str = krb5_config_vget_string (context, c, args);
crypto/heimdal/lib/krb5/config_file.c
1157
if(str == NULL)
crypto/heimdal/lib/krb5/config_file.c
1159
if (krb5_string_to_deltat(str, &t))
crypto/heimdal/lib/krb5/config_file.c
1244
const char *str;
crypto/heimdal/lib/krb5/config_file.c
1245
str = krb5_config_vget_string (context, c, args);
crypto/heimdal/lib/krb5/config_file.c
1246
if(str == NULL)
crypto/heimdal/lib/krb5/config_file.c
1251
l = strtol(str, &endptr, 0);
crypto/heimdal/lib/krb5/config_file.c
1252
if (endptr == str)
crypto/heimdal/lib/krb5/config_file.c
1309
const char *str;
crypto/heimdal/lib/krb5/config_file.c
1316
ret = krb5_config_parse_debug (&f, res, &lineno, &str);
crypto/heimdal/lib/krb5/config_file.c
1319
"<constant>", lineno, str);
crypto/heimdal/lib/krb5/config_file.c
250
char *str;
crypto/heimdal/lib/krb5/config_file.c
252
str = (char *) CFStringGetCStringPtr(string, kCFStringEncodingUTF8);
crypto/heimdal/lib/krb5/config_file.c
253
if (str)
crypto/heimdal/lib/krb5/config_file.c
254
return strdup(str);
crypto/heimdal/lib/krb5/config_file.c
258
str = malloc(len);
crypto/heimdal/lib/krb5/config_file.c
259
if (str == NULL)
crypto/heimdal/lib/krb5/config_file.c
262
if (!CFStringGetCString (string, str, len, kCFStringEncodingUTF8)) {
crypto/heimdal/lib/krb5/config_file.c
263
free (str);
crypto/heimdal/lib/krb5/config_file.c
266
return str;
crypto/heimdal/lib/krb5/config_file.c
417
const char *str;
crypto/heimdal/lib/krb5/config_file.c
49
config_fgets(char *str, size_t len, struct fileptr *ptr)
crypto/heimdal/lib/krb5/config_file.c
509
ret = krb5_config_parse_debug (&f, res, &lineno, &str);
crypto/heimdal/lib/krb5/config_file.c
513
fname, lineno, str);
crypto/heimdal/lib/krb5/config_file.c
54
return fgets(str, len, ptr->f);
crypto/heimdal/lib/krb5/config_file.c
66
memcpy(str, ptr->s, l);
crypto/heimdal/lib/krb5/config_file.c
67
str[l] = '\0';
crypto/heimdal/lib/krb5/config_file.c
70
return str;
crypto/heimdal/lib/krb5/deprecated.c
451
krb5_free_error_string(krb5_context context, char *str)
crypto/heimdal/lib/krb5/deprecated.c
454
krb5_free_error_message(context, str);
crypto/heimdal/lib/krb5/deprecated.c
570
krb5_free_unparsed_name(krb5_context context, char *str)
crypto/heimdal/lib/krb5/deprecated.c
573
krb5_xfree(str);
crypto/heimdal/lib/krb5/error_string.c
164
char *str = NULL, *str2 = NULL;
crypto/heimdal/lib/krb5/error_string.c
174
if (vasprintf(&str, fmt, args) < 0 || str == NULL) {
crypto/heimdal/lib/krb5/error_string.c
181
e = asprintf(&str2, "%s: %s", str, context->error_string);
crypto/heimdal/lib/krb5/error_string.c
187
free(str);
crypto/heimdal/lib/krb5/error_string.c
189
context->error_string = str;
crypto/heimdal/lib/krb5/error_string.c
221
char *str;
crypto/heimdal/lib/krb5/error_string.c
223
str = context->error_string;
crypto/heimdal/lib/krb5/error_string.c
225
return str != NULL;
crypto/heimdal/lib/krb5/error_string.c
244
char *str = NULL;
crypto/heimdal/lib/krb5/error_string.c
266
str = strdup(context->error_string);
crypto/heimdal/lib/krb5/error_string.c
270
if (str)
crypto/heimdal/lib/krb5/error_string.c
271
return str;
crypto/heimdal/lib/krb5/error_string.c
292
if (asprintf(&str, "<unknown error: %d>", (int)code) == -1 || str == NULL)
crypto/heimdal/lib/krb5/error_string.c
295
return str;
crypto/heimdal/lib/krb5/expand_path.c
301
_expand_userid(krb5_context context, PTYPE param, const char *postfix, char **str)
crypto/heimdal/lib/krb5/expand_path.c
303
int ret = asprintf(str, "%ld", (unsigned long)getuid());
crypto/heimdal/lib/krb5/expand_path.c
304
if (ret < 0 || *str == NULL)
crypto/heimdal/lib/krb5/fcache.c
1041
fcc_get_default_name(krb5_context context, char **str)
crypto/heimdal/lib/krb5/fcache.c
1045
str);
crypto/heimdal/lib/krb5/get_cred.c
673
char *str;
crypto/heimdal/lib/krb5/get_cred.c
675
ret = krb5_unparse_name(context, p, &str);
crypto/heimdal/lib/krb5/get_cred.c
681
N_("Matching credential (%s) not found", ""), str);
crypto/heimdal/lib/krb5/get_cred.c
682
free(str);
crypto/heimdal/lib/krb5/init_creds_pw.c
234
const char *str,
crypto/heimdal/lib/krb5/init_creds_pw.c
239
if (asprintf(&p, "%s%s", str, ctime(&now)) < 0 || p == NULL)
crypto/heimdal/lib/krb5/kcm.c
1000
kcm_get_default_name_kcm(krb5_context context, char **str)
crypto/heimdal/lib/krb5/kcm.c
1003
KRB5_DEFAULT_CCNAME_KCM_KCM, str);
crypto/heimdal/lib/krb5/kcm.c
960
const char *defstr, char **str)
crypto/heimdal/lib/krb5/kcm.c
967
*str = NULL;
crypto/heimdal/lib/krb5/kcm.c
976
return _krb5_expand_default_cc_name(context, defstr, str);
crypto/heimdal/lib/krb5/kcm.c
984
asprintf(str, "%s:%s", ops->prefix, name);
crypto/heimdal/lib/krb5/kcm.c
986
if (str == NULL)
crypto/heimdal/lib/krb5/kcm.c
993
kcm_get_default_name_api(krb5_context context, char **str)
crypto/heimdal/lib/krb5/kcm.c
996
KRB5_DEFAULT_CCNAME_KCM_API, str);
crypto/heimdal/lib/krb5/keytab.c
436
char **str)
crypto/heimdal/lib/krb5/keytab.c
442
*str = NULL;
crypto/heimdal/lib/krb5/keytab.c
452
if (asprintf(str, "%s:%s", type, name) == -1) {
crypto/heimdal/lib/krb5/keytab.c
454
*str = NULL;
crypto/heimdal/lib/krb5/mcache.c
452
mcc_default_name(krb5_context context, char **str)
crypto/heimdal/lib/krb5/mcache.c
454
*str = strdup("MEMORY:");
crypto/heimdal/lib/krb5/mcache.c
455
if (*str == NULL) {
crypto/heimdal/lib/krb5/n-fold-test.c
100
for (t = tests; t->str; ++t) {
crypto/heimdal/lib/krb5/n-fold-test.c
103
ret = _krb5_n_fold (t->str, strlen(t->str), data, t->n);
crypto/heimdal/lib/krb5/n-fold-test.c
107
printf ("n-fold(\"%s\", %d) failed\n", t->str, t->n);
crypto/heimdal/lib/krb5/n-fold-test.c
38
const char *str;
crypto/heimdal/lib/krb5/n-fold.c
100
_krb5_n_fold(const void *str, size_t len, void *key, size_t size)
crypto/heimdal/lib/krb5/n-fold.c
115
memcpy(buf, str, len);
crypto/heimdal/lib/krb5/pkinit.c
1901
char *str, *sn;
crypto/heimdal/lib/krb5/pkinit.c
1908
ret = hx509_name_to_string(name, &str);
crypto/heimdal/lib/krb5/pkinit.c
1915
free(str);
crypto/heimdal/lib/krb5/pkinit.c
1926
_krb5_debug(context, 2, "using cert: subject: %s sn: %s", str, sn);
crypto/heimdal/lib/krb5/pkinit.c
1927
free(str);
crypto/heimdal/lib/krb5/principal.c
1109
krb5_parse_nametype(krb5_context context, const char *str, int32_t *nametype)
crypto/heimdal/lib/krb5/principal.c
1114
if (strcasecmp(nametypes[i].type, str) == 0) {
crypto/heimdal/lib/krb5/principal.c
1120
N_("Failed to find name type %s", ""), str);
crypto/heimdal/lib/krb5/salt-des3.c
45
char *str;
crypto/heimdal/lib/krb5/salt-des3.c
52
str = malloc(len);
crypto/heimdal/lib/krb5/salt-des3.c
53
if(len != 0 && str == NULL) {
crypto/heimdal/lib/krb5/salt-des3.c
57
memcpy(str, password.data, password.length);
crypto/heimdal/lib/krb5/salt-des3.c
58
memcpy(str + password.length, salt.saltvalue.data, salt.saltvalue.length);
crypto/heimdal/lib/krb5/salt-des3.c
64
ret = _krb5_n_fold(str, len, tmp, 24);
crypto/heimdal/lib/krb5/salt-des3.c
66
memset(str, 0, len);
crypto/heimdal/lib/krb5/salt-des3.c
67
free(str);
crypto/heimdal/lib/krb5/salt-des3.c
96
memset(str, 0, len);
crypto/heimdal/lib/krb5/salt-des3.c
97
free(str);
crypto/heimdal/lib/krb5/salt.c
251
const void *str,
crypto/heimdal/lib/krb5/salt.c
288
ret = _krb5_n_fold(str, len, tmp, keylen);
crypto/heimdal/lib/krb5/scache.c
1159
char *name = NULL, *str = NULL;
crypto/heimdal/lib/krb5/scache.c
1196
ret = asprintf(&str, "CREATE TEMPORARY TABLE %s AS SELECT name FROM caches",
crypto/heimdal/lib/krb5/scache.c
1198
if (ret < 0 || str == NULL) {
crypto/heimdal/lib/krb5/scache.c
1208
ret = exec_stmt(context, ctx->db, str, KRB5_CC_IO);
crypto/heimdal/lib/krb5/scache.c
1209
free(str);
crypto/heimdal/lib/krb5/scache.c
1210
str = NULL;
crypto/heimdal/lib/krb5/scache.c
1219
ret = asprintf(&str, "SELECT name FROM %s", name);
crypto/heimdal/lib/krb5/scache.c
1221
if (ret < 0 || str == NULL) {
crypto/heimdal/lib/krb5/scache.c
1230
ret = prepare_stmt(context, ctx->db, &ctx->stmt, str);
crypto/heimdal/lib/krb5/scache.c
1231
free(str);
crypto/heimdal/lib/krb5/scache.c
1363
scc_get_default_name(krb5_context context, char **str)
crypto/heimdal/lib/krb5/scache.c
1368
*str = NULL;
crypto/heimdal/lib/krb5/scache.c
1372
return _krb5_expand_default_cc_name(context, KRB5_SCACHE_NAME, str);
crypto/heimdal/lib/krb5/scache.c
1374
ret = asprintf(str, "SCC:%s", name);
crypto/heimdal/lib/krb5/scache.c
1376
if (ret < 0 || *str == NULL) {
crypto/heimdal/lib/krb5/scache.c
148
free_krb5(void *str)
crypto/heimdal/lib/krb5/scache.c
150
krb5_xfree(str);
crypto/heimdal/lib/krb5/scache.c
189
trace(void* ptr, const char * str)
crypto/heimdal/lib/krb5/scache.c
191
printf("SQL: %s\n", str);
crypto/heimdal/lib/krb5/scache.c
197
sqlite3_stmt **stmt, const char *str)
crypto/heimdal/lib/krb5/scache.c
201
ret = sqlite3_prepare_v2(db, str, -1, stmt, NULL);
crypto/heimdal/lib/krb5/scache.c
205
str, sqlite3_errmsg(db));
crypto/heimdal/lib/krb5/scache.c
212
exec_stmt(krb5_context context, sqlite3 *db, const char *str,
crypto/heimdal/lib/krb5/scache.c
217
ret = sqlite3_exec(db, str, NULL, NULL, NULL);
crypto/heimdal/lib/krb5/scache.c
220
N_("scache execute %s: %s", ""), str,
crypto/heimdal/lib/krb5/scache.c
252
get_def_name(krb5_context context, char **str)
crypto/heimdal/lib/krb5/scache.c
280
*str = strdup(name);
crypto/heimdal/lib/krb5/scache.c
281
if (*str == NULL)
crypto/heimdal/lib/krb5/scache.c
460
char *str;
crypto/heimdal/lib/krb5/scache.c
462
ret = krb5_unparse_name(context, principal, &str);
crypto/heimdal/lib/krb5/scache.c
466
ret = sqlite3_bind_text(stmt, col, str, -1, free_krb5);
crypto/heimdal/lib/krb5/scache.c
468
krb5_xfree(str);
crypto/heimdal/lib/krb5/scache.c
823
const char *str;
crypto/heimdal/lib/krb5/scache.c
850
str = (const char *)sqlite3_column_text(s->scache, 0);
crypto/heimdal/lib/krb5/scache.c
851
if (str == NULL) {
crypto/heimdal/lib/krb5/scache.c
859
ret = krb5_parse_name(context, str, principal);
crypto/heimdal/lib/krb5/scache.c
880
char *str = NULL, *name = NULL;
crypto/heimdal/lib/krb5/scache.c
923
ret = asprintf(&str, "CREATE TEMPORARY TABLE %s "
crypto/heimdal/lib/krb5/scache.c
926
if (ret < 0 || str == NULL) {
crypto/heimdal/lib/krb5/scache.c
933
ret = exec_stmt(context, s->db, str, KRB5_CC_IO);
crypto/heimdal/lib/krb5/scache.c
934
free(str);
crypto/heimdal/lib/krb5/scache.c
935
str = NULL;
crypto/heimdal/lib/krb5/scache.c
943
ret = asprintf(&str, "SELECT oid FROM %s ORDER BY created_at", name);
crypto/heimdal/lib/krb5/scache.c
944
if (ret < 0 || str == NULL) {
crypto/heimdal/lib/krb5/scache.c
952
ret = prepare_stmt(context, s->db, &ctx->stmt, str);
crypto/heimdal/lib/krb5/scache.c
953
free(str);
crypto/heimdal/lib/krb5/scache.c
954
str = NULL;
crypto/heimdal/lib/krb5/send_to_kdc.c
187
char *str;
crypto/heimdal/lib/krb5/send_to_kdc.c
189
int len = base64_encode(req->data, req->length, &str);
crypto/heimdal/lib/krb5/send_to_kdc.c
193
ret = asprintf(&request, "GET %s%s HTTP/1.0\r\n\r\n", prefix, str);
crypto/heimdal/lib/krb5/send_to_kdc.c
194
free(str);
crypto/heimdal/lib/krb5/test_cc.c
290
char *str;
crypto/heimdal/lib/krb5/test_cc.c
328
char *str;
crypto/heimdal/lib/krb5/test_cc.c
332
ret = _krb5_expand_default_cc_name(context, cc_names[i].str, &str);
crypto/heimdal/lib/krb5/test_cc.c
336
i, cc_names[i].str);
crypto/heimdal/lib/krb5/test_cc.c
340
i, cc_names[i].str);
crypto/heimdal/lib/krb5/test_cc.c
341
if (cc_names[i].res && strcmp(cc_names[i].res, str) != 0)
crypto/heimdal/lib/krb5/test_cc.c
343
i, cc_names[i].res, str);
crypto/heimdal/lib/krb5/test_cc.c
345
printf("%s => %s\n", cc_names[i].str, str);
crypto/heimdal/lib/krb5/test_cc.c
346
free(str);
crypto/heimdal/lib/krb5/transited.c
69
const char *str;
crypto/heimdal/lib/krb5/transited.c
70
str = from;
crypto/heimdal/lib/krb5/transited.c
72
to = str;
crypto/heimdal/lib/roken/base64-test.c
59
char *str;
crypto/heimdal/lib/roken/base64-test.c
61
len = base64_encode(t->data, t->len, &str);
crypto/heimdal/lib/roken/base64-test.c
62
if(strcmp(str, t->result) != 0) {
crypto/heimdal/lib/roken/base64-test.c
64
str, t->result);
crypto/heimdal/lib/roken/base64-test.c
67
free(str);
crypto/heimdal/lib/roken/base64-test.c
68
str = strdup(t->result);
crypto/heimdal/lib/roken/base64-test.c
69
len = base64_decode(t->result, str);
crypto/heimdal/lib/roken/base64-test.c
74
} else if(memcmp(str, t->data, t->len) != 0) {
crypto/heimdal/lib/roken/base64-test.c
78
free(str);
crypto/heimdal/lib/roken/base64-test.c
83
char str[32];
crypto/heimdal/lib/roken/base64-test.c
84
if(base64_decode("M=M=", str) != -1) {
crypto/heimdal/lib/roken/base64-test.c
89
if(base64_decode("MQ===", str) != -1) {
crypto/heimdal/lib/roken/base64.c
124
base64_decode(const char *str, void *data)
crypto/heimdal/lib/roken/base64.c
130
for (p = str; *p && (*p == '=' || strchr(base64_chars, *p)); p += 4) {
crypto/heimdal/lib/roken/base64.c
55
base64_encode(const void *data, int size, char **str)
crypto/heimdal/lib/roken/base64.c
63
*str = NULL;
crypto/heimdal/lib/roken/base64.c
69
*str = NULL;
crypto/heimdal/lib/roken/base64.c
95
*str = s;
crypto/heimdal/lib/roken/estrdup.c
46
estrdup (const char *str)
crypto/heimdal/lib/roken/estrdup.c
48
char *tmp = strdup (str);
crypto/heimdal/lib/roken/gai_strerror.c
40
const char *str;
crypto/heimdal/lib/roken/gai_strerror.c
70
for (g = errors; g->str != NULL; ++g)
crypto/heimdal/lib/roken/gai_strerror.c
72
return g->str;
crypto/heimdal/lib/roken/getarg.c
204
builtin_i18n(const char *str)
crypto/heimdal/lib/roken/getarg.c
206
return rk_UNCONST(str);
crypto/heimdal/lib/roken/getcap.c
1042
*str = mem;
crypto/heimdal/lib/roken/getcap.c
851
cgetstr(char *buf, const char *cap, char **str)
crypto/heimdal/lib/roken/getcap.c
859
*str = NULL;
crypto/heimdal/lib/roken/getcap.c
95
ROKEN_LIB_FUNCTION int ROKEN_LIB_CALL cgetstr(char *buf, const char *cap, char **str);
crypto/heimdal/lib/roken/getcap.c
96
ROKEN_LIB_FUNCTION int ROKEN_LIB_CALL cgetustr(char *buf, const char *cap, char **str);
crypto/heimdal/lib/roken/getcap.c
969
*str = mem;
crypto/heimdal/lib/roken/getcap.c
984
cgetustr(char *buf, const char *cap, char **str)
crypto/heimdal/lib/roken/glob.c
759
g_opendir(Char *str, glob_t *pglob)
crypto/heimdal/lib/roken/glob.c
763
if (!*str)
crypto/heimdal/lib/roken/glob.c
766
g_Ctoc(str, buf);
crypto/heimdal/lib/roken/glob.c
797
g_strchr(const Char *str, int ch)
crypto/heimdal/lib/roken/glob.c
800
if (*str == ch)
crypto/heimdal/lib/roken/glob.c
801
return (Char *)str;
crypto/heimdal/lib/roken/glob.c
802
} while (*str++);
crypto/heimdal/lib/roken/glob.c
823
g_Ctoc(const Char *str, char *buf)
crypto/heimdal/lib/roken/glob.c
827
for (dc = buf; (*dc++ = *str++) != CHAR_EOS;)
crypto/heimdal/lib/roken/glob.c
833
qprintf(const Char *str, Char *s)
crypto/heimdal/lib/roken/glob.c
837
printf("%s:\n", str);
crypto/heimdal/lib/roken/hex-test.c
61
char *str;
crypto/heimdal/lib/roken/hex-test.c
63
len = hex_encode(t->data, t->len, &str);
crypto/heimdal/lib/roken/hex-test.c
64
if(strcmp(str, t->result) != 0) {
crypto/heimdal/lib/roken/hex-test.c
66
str, t->result);
crypto/heimdal/lib/roken/hex-test.c
69
free(str);
crypto/heimdal/lib/roken/hex-test.c
70
str = strdup(t->result);
crypto/heimdal/lib/roken/hex-test.c
71
len = strlen(str);
crypto/heimdal/lib/roken/hex-test.c
72
len = hex_decode(t->result, str, len);
crypto/heimdal/lib/roken/hex-test.c
77
} else if(memcmp(str, t->data, t->len) != 0) {
crypto/heimdal/lib/roken/hex-test.c
81
free(str);
crypto/heimdal/lib/roken/hex.c
102
p[i] = pos(str[i * 2]) << 4 | pos(str[(i * 2) + 1]);
crypto/heimdal/lib/roken/hex.c
54
hex_encode(const void *data, size_t size, char **str)
crypto/heimdal/lib/roken/hex.c
62
*str = NULL;
crypto/heimdal/lib/roken/hex.c
68
*str = NULL;
crypto/heimdal/lib/roken/hex.c
78
*str = p;
crypto/heimdal/lib/roken/hex.c
84
hex_decode(const char *str, void *data, size_t len)
crypto/heimdal/lib/roken/hex.c
90
l = strlen(str);
crypto/heimdal/lib/roken/hex.c
97
p[0] = pos(str[0]);
crypto/heimdal/lib/roken/hex.c
98
str++;
crypto/heimdal/lib/roken/parse_bytes-test.c
43
const char *str;
crypto/heimdal/lib/roken/parse_bytes-test.c
65
int val = parse_bytes (tests[i].str, tests[i].def_unit);
crypto/heimdal/lib/roken/parse_bytes-test.c
70
tests[i].str,
crypto/heimdal/lib/roken/parse_bytes-test.c
77
if (strcmp (tests[i].str, buf) != 0) {
crypto/heimdal/lib/roken/parse_bytes-test.c
79
tests[i].val, buf, tests[i].str);
crypto/heimdal/lib/roken/parse_time-test.c
102
tests[i].str, tests[i].size + 1);
crypto/heimdal/lib/roken/parse_time-test.c
109
tests[i].str, tests[i].size + 1);
crypto/heimdal/lib/roken/parse_time-test.c
44
char *str;
crypto/heimdal/lib/roken/parse_time-test.c
80
if (buf_sz > 0 && memcmp(buf, tests[i].str, buf_sz - 1) != 0)
crypto/heimdal/lib/roken/parse_time-test.c
81
errx(1, "test %i wrong result %s vs %s", i, buf, tests[i].str);
crypto/heimdal/lib/roken/parse_time-test.c
94
if (buf_sz > 0 && strncmp(buf, tests[i].str, min(buf_sz, tests[i].size) - 1) != 0)
crypto/heimdal/lib/roken/parse_time-test.c
95
errx(1, "test %i wrong result %s vs %s", i, buf, tests[i].str);
crypto/heimdal/lib/roken/rkpty.c
162
char *str;
crypto/heimdal/lib/roken/rkpty.c
183
if ((str = iscmd(s, "expect ")) != NULL) {
crypto/heimdal/lib/roken/rkpty.c
185
c->str = str;
crypto/heimdal/lib/roken/rkpty.c
186
} else if ((str = iscmd(s, "send ")) != NULL) {
crypto/heimdal/lib/roken/rkpty.c
188
c->str = str;
crypto/heimdal/lib/roken/rkpty.c
189
} else if ((str = iscmd(s, "password ")) != NULL) {
crypto/heimdal/lib/roken/rkpty.c
191
c->str = str;
crypto/heimdal/lib/roken/rkpty.c
216
printf("[expecting %s]", c->str);
crypto/heimdal/lib/roken/rkpty.c
222
if (c->str[len] != in) {
crypto/heimdal/lib/roken/rkpty.c
227
if (c->str[len] == '\0')
crypto/heimdal/lib/roken/rkpty.c
233
c->str, c->lineno);
crypto/heimdal/lib/roken/rkpty.c
236
alarmset, c->str, c->lineno);
crypto/heimdal/lib/roken/rkpty.c
239
c->str, c->lineno);
crypto/heimdal/lib/roken/rkpty.c
244
const char *msg = (c->type == CMD_PASSWORD) ? "****" : c->str;
crypto/heimdal/lib/roken/rkpty.c
249
len = strlen(c->str);
crypto/heimdal/lib/roken/rkpty.c
252
if (c->str[i] == '\\' && i < len - 1) {
crypto/heimdal/lib/roken/rkpty.c
255
switch(c->str[i]) {
crypto/heimdal/lib/roken/rkpty.c
261
c->str[i], c->lineno);
crypto/heimdal/lib/roken/rkpty.c
266
if (net_write(master, &c->str[i], 1) != 1)
crypto/heimdal/lib/roken/rkpty.c
67
char *str;
crypto/heimdal/lib/roken/rtbl.c
320
char *str;
crypto/heimdal/lib/roken/rtbl.c
324
ret = vasprintf(&str, fmt, ap);
crypto/heimdal/lib/roken/rtbl.c
328
ret = rtbl_add_column_entry_by_id(table, id, str);
crypto/heimdal/lib/roken/rtbl.c
329
free(str);
crypto/heimdal/lib/roken/rtbl.c
348
char *str;
crypto/heimdal/lib/roken/rtbl.c
352
ret = vasprintf(&str, fmt, ap);
crypto/heimdal/lib/roken/rtbl.c
356
ret = rtbl_add_column_entry(table, column, str);
crypto/heimdal/lib/roken/rtbl.c
357
free(str);
crypto/heimdal/lib/roken/snprintf.c
509
*arg = state->s - state->str;
crypto/heimdal/lib/roken/snprintf.c
535
rk_snprintf (char *str, size_t sz, const char *format, ...)
crypto/heimdal/lib/roken/snprintf.c
541
ret = vsnprintf (str, sz, format, args);
crypto/heimdal/lib/roken/snprintf.c
556
if (ret != ret2 || strcmp(str, tmp))
crypto/heimdal/lib/roken/snprintf.c
56
unsigned char *str;
crypto/heimdal/lib/roken/snprintf.c
646
state.str = malloc(state.sz);
crypto/heimdal/lib/roken/snprintf.c
647
if (state.str == NULL) {
crypto/heimdal/lib/roken/snprintf.c
651
state.s = state.str;
crypto/heimdal/lib/roken/snprintf.c
657
free (state.str);
crypto/heimdal/lib/roken/snprintf.c
664
tmp = realloc (state.str, st+1);
crypto/heimdal/lib/roken/snprintf.c
666
free (state.str);
crypto/heimdal/lib/roken/snprintf.c
678
rk_vsnprintf (char *str, size_t sz, const char *format, va_list args)
crypto/heimdal/lib/roken/snprintf.c
682
unsigned char *ustr = (unsigned char *)str;
crypto/heimdal/lib/roken/snprintf.c
686
state.str = ustr;
crypto/heimdal/lib/roken/snprintf.c
84
int off = state->s - state->str;
crypto/heimdal/lib/roken/snprintf.c
93
tmp = realloc (state->str, state->sz);
crypto/heimdal/lib/roken/snprintf.c
96
state->str = tmp;
crypto/heimdal/lib/roken/snprintf.c
97
state->s = state->str + off;
crypto/heimdal/lib/roken/snprintf.c
98
state->theend = state->str + state->sz - 1;
crypto/heimdal/lib/roken/strerror_r.c
67
const char *str;
crypto/heimdal/lib/roken/strerror_r.c
68
str = strerror_r(eno, strerrbuf, buflen);
crypto/heimdal/lib/roken/strerror_r.c
69
if (str != strerrbuf)
crypto/heimdal/lib/roken/strerror_r.c
70
if (strlcpy(strerrbuf, str, buflen) >= buflen)
crypto/heimdal/lib/roken/strlwr.c
42
strlwr(char *str)
crypto/heimdal/lib/roken/strlwr.c
46
for(s = str; *s; s++)
crypto/heimdal/lib/roken/strlwr.c
48
return str;
crypto/heimdal/lib/roken/strpool.c
103
char *str;
crypto/heimdal/lib/roken/strpool.c
106
str = p->str;
crypto/heimdal/lib/roken/strpool.c
107
p->str = NULL;
crypto/heimdal/lib/roken/strpool.c
109
return str;
crypto/heimdal/lib/roken/strpool.c
41
char *str;
crypto/heimdal/lib/roken/strpool.c
52
if (p->str) {
crypto/heimdal/lib/roken/strpool.c
53
free(p->str);
crypto/heimdal/lib/roken/strpool.c
54
p->str = NULL;
crypto/heimdal/lib/roken/strpool.c
67
char *str, *str2;
crypto/heimdal/lib/roken/strpool.c
74
p->str = NULL;
crypto/heimdal/lib/roken/strpool.c
78
len = vasprintf(&str, fmt, ap);
crypto/heimdal/lib/roken/strpool.c
80
if (str == NULL) {
crypto/heimdal/lib/roken/strpool.c
84
str2 = realloc(p->str, len + p->len + 1);
crypto/heimdal/lib/roken/strpool.c
89
p->str = str2;
crypto/heimdal/lib/roken/strpool.c
90
memcpy(p->str + p->len, str, len + 1);
crypto/heimdal/lib/roken/strpool.c
92
free(str);
crypto/heimdal/lib/roken/strptime.c
130
char *s, *str;
crypto/heimdal/lib/roken/strptime.c
133
str = malloc(n + 1);
crypto/heimdal/lib/roken/strptime.c
134
if (str == NULL)
crypto/heimdal/lib/roken/strptime.c
143
str[i] = **buf;
crypto/heimdal/lib/roken/strptime.c
144
str[i] = '\0';
crypto/heimdal/lib/roken/strptime.c
146
*num = strtol (str, &s, 10);
crypto/heimdal/lib/roken/strptime.c
147
free(str);
crypto/heimdal/lib/roken/strptime.c
148
if (s == str)
crypto/heimdal/lib/roken/strsep.c
43
strsep(char **str, const char *delim)
crypto/heimdal/lib/roken/strsep.c
45
char *save = *str;
crypto/heimdal/lib/roken/strsep.c
46
if(*str == NULL)
crypto/heimdal/lib/roken/strsep.c
48
*str = *str + strcspn(*str, delim);
crypto/heimdal/lib/roken/strsep.c
49
if(**str == 0)
crypto/heimdal/lib/roken/strsep.c
50
*str = NULL;
crypto/heimdal/lib/roken/strsep.c
52
**str = 0;
crypto/heimdal/lib/roken/strsep.c
53
(*str)++;
crypto/heimdal/lib/roken/strupr.c
42
strupr(char *str)
crypto/heimdal/lib/roken/strupr.c
46
for(s = str; *s; s++)
crypto/heimdal/lib/roken/strupr.c
48
return str;
crypto/heimdal/lib/sl/slc-gram.c
1828
static void gen_name(char *str);
crypto/heimdal/lib/sl/slc-gram.c
1859
gen_name(char *str)
crypto/heimdal/lib/sl/slc-gram.c
1862
for(p = str; *p != '\0'; p++)
crypto/heimdal/lib/sl/slc-gram.y
319
static void gen_name(char *str);
crypto/heimdal/lib/sl/slc-gram.y
350
gen_name(char *str)
crypto/heimdal/lib/sl/slc-gram.y
353
for(p = str; *p != '\0'; p++)
crypto/heimdal/lib/wind/test-utf8.c
111
char str[MAX_LENGTH * 4];
crypto/heimdal/lib/wind/test-utf8.c
162
len2 = sizeof(str);
crypto/heimdal/lib/wind/test-utf8.c
163
ret = wind_ucs4utf8(u, len, str, &len2);
crypto/krb5/src/clients/ksu/krb_auth_su.c
219
dump_principal(krb5_context context, char *str, krb5_principal p)
crypto/krb5/src/clients/ksu/krb_auth_su.c
229
fprintf(stderr, " %s: %s\n", str, stname);
crypto/krb5/src/include/k5-base64.h
50
void *k5_base64_decode(const char *str, size_t *len_out);
crypto/krb5/src/include/k5-int.h
2249
string2data(char *str)
crypto/krb5/src/include/k5-int.h
2251
return make_data(str, strlen(str));
crypto/krb5/src/include/k5-int.h
673
zapfreestr(void *str)
crypto/krb5/src/include/k5-int.h
675
if (str != NULL) {
crypto/krb5/src/include/k5-int.h
676
zap(str, strlen((char *)str));
crypto/krb5/src/include/k5-int.h
677
free(str);
crypto/krb5/src/include/k5-json.h
216
int k5_json_decode(const char *str, k5_json_value *val_out);
crypto/krb5/src/include/k5-platform.h
916
vsnprintf(char *str, size_t size, const char *format, va_list args)
crypto/krb5/src/include/k5-platform.h
925
_vsnprintf(str, size, format, args);
crypto/krb5/src/include/k5-platform.h
926
str[size - 1] = '\0';
crypto/krb5/src/include/k5-platform.h
931
snprintf(char *str, size_t size, const char *format, ...)
crypto/krb5/src/include/k5-platform.h
937
n = vsnprintf(str, size, format, args);
crypto/krb5/src/include/krb5/localauth_plugin.h
124
krb5_localauth_moddata data, char *str);
crypto/krb5/src/kadmin/cli/kadmin.c
158
parse_date(char *str, time_t now)
crypto/krb5/src/kadmin/cli/kadmin.c
162
date = get_date_rel(str, now);
crypto/krb5/src/kadmin/cli/kadmin.c
164
error(_("Invalid date specification \"%s\".\n"), str);
crypto/krb5/src/kadmin/cli/kadmin.c
174
parse_interval(char *str, time_t now)
crypto/krb5/src/kadmin/cli/kadmin.c
179
if (krb5_string_to_deltat(str, &delta) == 0)
crypto/krb5/src/kadmin/cli/kadmin.c
182
date = parse_date(str, now);
crypto/krb5/src/kadmin/cli/kadmin.c
192
error(_("Interval specification \"%s\" is in the past.\n"), str);
crypto/krb5/src/kadmin/cli/kadmin.c
827
cpw_usage(const char *str)
crypto/krb5/src/kadmin/cli/kadmin.c
829
if (str)
crypto/krb5/src/kadmin/cli/kadmin.c
830
error("%s\n", str);
crypto/krb5/src/kadmin/server/auth_acl.c
168
parse_restrictions(const char *str, const char *fname)
crypto/krb5/src/kadmin/server/auth_acl.c
175
copy = strdup(str);
crypto/krb5/src/kadmin/server/auth_acl.c
240
krb5_klog_syslog(LOG_ERR, _("%s: invalid restrictions: %s"), fname, str);
crypto/krb5/src/kadmin/server/kadm_rpc_svc.c
351
char *str;
crypto/krb5/src/kadmin/server/kadm_rpc_svc.c
361
str = malloc(gss_str->length +1);
crypto/krb5/src/kadmin/server/kadm_rpc_svc.c
362
if (str == NULL)
crypto/krb5/src/kadmin/server/kadm_rpc_svc.c
364
*str = '\0';
crypto/krb5/src/kadmin/server/kadm_rpc_svc.c
366
strncat(str, gss_str->value, gss_str->length);
crypto/krb5/src/kadmin/server/kadm_rpc_svc.c
367
success = (krb5_parse_name(ctx, str, princ) == 0);
crypto/krb5/src/kadmin/server/kadm_rpc_svc.c
368
free(str);
crypto/krb5/src/kadmin/server/server_stubs.c
242
gss_name_to_string(gss_name_t gss_name, gss_buffer_desc *str)
crypto/krb5/src/kadmin/server/server_stubs.c
249
status = gss_display_name(&minor_stat, gss_name, str, &gss_type);
crypto/krb5/src/kadmin/server/server_stubs.c
254
if (str->length < preflen || memcmp(str->value, pref, preflen) != 0)
crypto/krb5/src/kadmin/server/server_stubs.c
38
static int gss_name_to_string(gss_name_t gss_name, gss_buffer_desc *str);
crypto/krb5/src/kdc/kdc_log.c
105
unparse_and_limit(krb5_context ctx, krb5_principal princ, char **str)
crypto/krb5/src/kdc/kdc_log.c
108
krb5_unparse_name(ctx, princ, str);
crypto/krb5/src/kdc/kdc_log.c
109
limit_string(*str);
crypto/krb5/src/kdc/kdc_util.c
867
char *str = NULL, *copy = NULL, *save, *ind;
crypto/krb5/src/kdc/kdc_util.c
869
ret = krb5_dbe_get_string(context, server, KRB5_KDB_SK_REQUIRE_AUTH, &str);
crypto/krb5/src/kdc/kdc_util.c
870
if (ret || str == NULL)
crypto/krb5/src/kdc/kdc_util.c
872
copy = strdup(str);
crypto/krb5/src/kdc/kdc_util.c
888
_("Required auth indicators not present in ticket: %s"), str);
crypto/krb5/src/kdc/kdc_util.c
891
krb5_dbe_free_string(context, str);
crypto/krb5/src/kdc/rtest.c
35
make_princ(krb5_context ctx, const char *str, const char *prog)
crypto/krb5/src/kdc/rtest.c
47
if(!(dat = (char *) malloc(strlen(str)))) {
crypto/krb5/src/kdc/rtest.c
51
memcpy(dat, str, strlen(str));
crypto/krb5/src/kdc/rtest.c
53
krb5_princ_set_realm_length(ctx, ret, strlen(str));
crypto/krb5/src/kprop/kproplog.c
105
print_str(const char *tag, utf8str_t *str)
crypto/krb5/src/kprop/kproplog.c
110
s = k5memdup0(str->utf8str_t_val, str->utf8str_t_len, &ret);
crypto/krb5/src/kprop/kproplog.c
115
printf("\t\t\t%s(%d): %s\n", tag, str->utf8str_t_len, s);
crypto/krb5/src/kprop/kproplog.c
147
utf8str_t *str;
crypto/krb5/src/kprop/kproplog.c
155
str = k->k_contents.k_contents_val;
crypto/krb5/src/kprop/kproplog.c
156
for (i = 0; i < k->k_contents.k_contents_len; i++, str++)
crypto/krb5/src/kprop/kproplog.c
157
print_hex("key", str);
crypto/krb5/src/kprop/kproplog.c
90
print_hex(const char *tag, utf8str_t *str)
crypto/krb5/src/kprop/kproplog.c
95
len = str->utf8str_t_len;
crypto/krb5/src/kprop/kproplog.c
97
if (k5_hex_encode(str->utf8str_t_val, len, FALSE, &hex) != 0)
crypto/krb5/src/lib/crypto/crypto_tests/t_sha2.c
100
if (strcmp(t->str, ONE_MILLION_A) == 0) {
crypto/krb5/src/lib/crypto/crypto_tests/t_sha2.c
120
iov.data = string2data(t->str);
crypto/krb5/src/lib/crypto/crypto_tests/t_sha2.c
40
char *str;
crypto/krb5/src/lib/crypto/crypto_tests/t_sha2.c
99
for (t = tests; t->str; ++t) {
crypto/krb5/src/lib/gssapi/generic/disp_major_status.c
114
char *str;
crypto/krb5/src/lib/gssapi/generic/disp_major_status.c
116
if (asprintf(&str, _(unknown_error), kind, value) < 0)
crypto/krb5/src/lib/gssapi/generic/disp_major_status.c
119
buffer->length = strlen(str);
crypto/krb5/src/lib/gssapi/generic/disp_major_status.c
120
buffer->value = str;
crypto/krb5/src/lib/gssapi/generic/disp_major_status.c
131
const char *str;
crypto/krb5/src/lib/gssapi/generic/disp_major_status.c
133
if ((str = GSS_CALLING_ERROR_STR(code))) {
crypto/krb5/src/lib/gssapi/generic/disp_major_status.c
134
if (! g_make_string_buffer(str, status_string)) {
crypto/krb5/src/lib/gssapi/generic/disp_major_status.c
155
const char *str;
crypto/krb5/src/lib/gssapi/generic/disp_major_status.c
157
if ((str = GSS_ROUTINE_ERROR_STR(code))) {
crypto/krb5/src/lib/gssapi/generic/disp_major_status.c
158
if (! g_make_string_buffer(str, status_string)) {
crypto/krb5/src/lib/gssapi/generic/disp_major_status.c
179
const char *str;
crypto/krb5/src/lib/gssapi/generic/disp_major_status.c
181
if ((str = GSS_SINFO_STR(code))) {
crypto/krb5/src/lib/gssapi/generic/disp_major_status.c
182
if (! g_make_string_buffer(str, status_string)) {
crypto/krb5/src/lib/gssapi/generic/gssapiP_generic.h
87
int g_make_string_buffer (const char *str, gss_buffer_t buffer);
crypto/krb5/src/lib/gssapi/generic/gssapi_alloc.h
120
gssalloc_strdup(const char *str)
crypto/krb5/src/lib/gssapi/generic/gssapi_alloc.h
122
size_t size = strlen(str)+1;
crypto/krb5/src/lib/gssapi/generic/gssapi_alloc.h
125
memcpy(copy, str, size);
crypto/krb5/src/lib/gssapi/generic/util_buffer.c
35
int g_make_string_buffer(const char *str, gss_buffer_t buffer)
crypto/krb5/src/lib/gssapi/generic/util_buffer.c
40
buffer->length = strlen(str);
crypto/krb5/src/lib/gssapi/generic/util_buffer.c
42
if ((buffer->value = gssalloc_strdup(str)) == NULL) {
crypto/krb5/src/lib/gssapi/generic/util_errmap.c
116
if (generic_gss_oid_to_str(&minor, &value.mech, &str)) {
crypto/krb5/src/lib/gssapi/generic/util_errmap.c
122
if (!strcmp(str.value, mechnames[i].oidstr) && mechnames[i].name != 0) {
crypto/krb5/src/lib/gssapi/generic/util_errmap.c
128
fprintf(f, "%s", (char *) str.value);
crypto/krb5/src/lib/gssapi/generic/util_errmap.c
129
generic_gss_release_buffer(&minor, &str);
crypto/krb5/src/lib/gssapi/generic/util_errmap.c
98
gss_buffer_desc str;
crypto/krb5/src/lib/gssapi/krb5/disp_name.c
33
char *str;
crypto/krb5/src/lib/gssapi/krb5/disp_name.c
56
&str))) {
crypto/krb5/src/lib/gssapi/krb5/disp_name.c
63
if (! g_make_string_buffer(str, output_name_buffer)) {
crypto/krb5/src/lib/gssapi/krb5/disp_name.c
64
krb5_free_unparsed_name(context, str);
crypto/krb5/src/lib/gssapi/krb5/disp_name.c
71
krb5_free_unparsed_name(context, str);
crypto/krb5/src/lib/gssapi/krb5/export_cred.c
113
k5_json_string str;
crypto/krb5/src/lib/gssapi/krb5/export_cred.c
122
ret = k5_json_string_create(name, &str);
crypto/krb5/src/lib/gssapi/krb5/export_cred.c
123
*val_out = str;
crypto/krb5/src/lib/gssapi/krb5/export_cred.c
132
k5_json_string str = NULL;
crypto/krb5/src/lib/gssapi/krb5/export_cred.c
136
ret = k5_json_string_create(k5_rc_get_name(context, rcache), &str);
crypto/krb5/src/lib/gssapi/krb5/export_cred.c
137
*val_out = str;
crypto/krb5/src/lib/gssapi/krb5/export_cred.c
356
k5_json_string str;
crypto/krb5/src/lib/gssapi/krb5/export_cred.c
368
ret = k5_json_string_create(name, &str);
crypto/krb5/src/lib/gssapi/krb5/export_cred.c
370
*val_out = str;
crypto/krb5/src/lib/gssapi/krb5/export_cred.c
43
k5_json_string str = NULL;
crypto/krb5/src/lib/gssapi/krb5/export_cred.c
439
char *str = NULL;
crypto/krb5/src/lib/gssapi/krb5/export_cred.c
460
if (k5_json_encode(array, &str))
crypto/krb5/src/lib/gssapi/krb5/export_cred.c
462
d = string2data(str);
crypto/krb5/src/lib/gssapi/krb5/export_cred.c
465
str = NULL;
crypto/krb5/src/lib/gssapi/krb5/export_cred.c
468
free(str);
crypto/krb5/src/lib/gssapi/krb5/export_cred.c
52
ret = k5_json_string_create(princname, &str);
crypto/krb5/src/lib/gssapi/krb5/export_cred.c
54
*val_out = str;
crypto/krb5/src/lib/gssapi/krb5/export_name.c
36
char *str;
crypto/krb5/src/lib/gssapi/krb5/export_name.c
53
&str))) {
crypto/krb5/src/lib/gssapi/krb5/export_name.c
62
length = strlen(str);
crypto/krb5/src/lib/gssapi/krb5/export_name.c
66
free(str);
crypto/krb5/src/lib/gssapi/krb5/export_name.c
83
memcpy(cp, str, length);
crypto/krb5/src/lib/gssapi/krb5/export_name.c
85
free(str);
crypto/krb5/src/lib/gssapi/krb5/import_cred.c
601
k5_json_string str;
crypto/krb5/src/lib/gssapi/krb5/import_cred.c
626
str = check_element(array, 0, K5_JSON_TID_STRING);
crypto/krb5/src/lib/gssapi/krb5/import_cred.c
627
if (str == NULL ||
crypto/krb5/src/lib/gssapi/krb5/import_cred.c
628
strcmp(k5_json_string_utf8(str), CRED_EXPORT_MAGIC) != 0)
crypto/krb5/src/lib/gssapi/krb5/import_name.c
102
memcpy(service, str, servicelen);
crypto/krb5/src/lib/gssapi/krb5/import_name.c
87
parse_hostbased(const char *str, size_t len,
crypto/krb5/src/lib/gssapi/krb5/import_name.c
97
at = memchr(str, '@', len);
crypto/krb5/src/lib/gssapi/krb5/import_name.c
98
servicelen = (at == NULL) ? len : (size_t)(at - str);
crypto/krb5/src/lib/gssapi/krb5/s4u_gss_glue.c
188
char *str;
crypto/krb5/src/lib/gssapi/krb5/s4u_gss_glue.c
195
code = krb5_unparse_name(context, impersonator_cred->name->princ, &str);
crypto/krb5/src/lib/gssapi/krb5/s4u_gss_glue.c
199
data = string2data(str);
crypto/krb5/src/lib/gssapi/krb5/s4u_gss_glue.c
202
krb5_free_unparsed_name(context, str);
crypto/krb5/src/lib/gssapi/mechglue/g_initialize.c
1230
skip_whitespace(char *str)
crypto/krb5/src/lib/gssapi/mechglue/g_initialize.c
1232
while (isspace(*str))
crypto/krb5/src/lib/gssapi/mechglue/g_initialize.c
1233
str++;
crypto/krb5/src/lib/gssapi/mechglue/g_initialize.c
1234
return str;
crypto/krb5/src/lib/gssapi/mechglue/g_initialize.c
1240
delimit_ws(char *str)
crypto/krb5/src/lib/gssapi/mechglue/g_initialize.c
1242
while (*str != '\0' && !isspace(*str))
crypto/krb5/src/lib/gssapi/mechglue/g_initialize.c
1243
str++;
crypto/krb5/src/lib/gssapi/mechglue/g_initialize.c
1244
if (*str != '\0')
crypto/krb5/src/lib/gssapi/mechglue/g_initialize.c
1245
*str++ = '\0';
crypto/krb5/src/lib/gssapi/mechglue/g_initialize.c
1246
return skip_whitespace(str);
crypto/krb5/src/lib/gssapi/mechglue/g_initialize.c
1252
delimit(char *str, char delimiter)
crypto/krb5/src/lib/gssapi/mechglue/g_initialize.c
1254
while (*str != '\0' && *str != delimiter)
crypto/krb5/src/lib/gssapi/mechglue/g_initialize.c
1255
str++;
crypto/krb5/src/lib/gssapi/mechglue/g_initialize.c
1256
if (*str != '\0')
crypto/krb5/src/lib/gssapi/mechglue/g_initialize.c
1257
*str++ = '\0';
crypto/krb5/src/lib/gssapi/mechglue/g_initialize.c
1258
return skip_whitespace(str);
crypto/krb5/src/lib/kadm5/srv/pwqual_hesiod.c
41
reverse(char *str, char *newstr, size_t newstr_size)
crypto/krb5/src/lib/kadm5/srv/pwqual_hesiod.c
46
i = strlen(str);
crypto/krb5/src/lib/kadm5/srv/pwqual_hesiod.c
49
p = str + i - 1;
crypto/krb5/src/lib/kadm5/t_kadm5.c
100
parse_princ(const char *str)
crypto/krb5/src/lib/kadm5/t_kadm5.c
104
check(krb5_parse_name(context, str, &princ));
crypto/krb5/src/lib/krb5/asn.1/asn1_encode.c
226
uint8_t *str;
crypto/krb5/src/lib/krb5/asn.1/asn1_encode.c
232
str = malloc(len);
crypto/krb5/src/lib/krb5/asn.1/asn1_encode.c
233
if (str == NULL)
crypto/krb5/src/lib/krb5/asn.1/asn1_encode.c
235
memcpy(str, asn1, len);
crypto/krb5/src/lib/krb5/asn.1/asn1_encode.c
236
*str_out = str;
crypto/krb5/src/lib/krb5/ccache/ccselect_k5identity.c
50
char *str, *p;
crypto/krb5/src/lib/krb5/ccache/ccselect_k5identity.c
53
str = k5memdup0(data->data, data->length, &ret);
crypto/krb5/src/lib/krb5/ccache/ccselect_k5identity.c
54
if (str == NULL)
crypto/krb5/src/lib/krb5/ccache/ccselect_k5identity.c
58
for (p = str; *p != '\0'; p++) {
crypto/krb5/src/lib/krb5/ccache/ccselect_k5identity.c
64
res = fnmatch(pattern, str, 0);
crypto/krb5/src/lib/krb5/ccache/ccselect_k5identity.c
65
free(str);
crypto/krb5/src/lib/krb5/ccache/t_cc.c
192
#define CHECK_STR(str,msg) \
crypto/krb5/src/lib/krb5/ccache/t_cc.c
193
if (str == 0) { \
crypto/krb5/src/lib/krb5/ccache/t_cc.c
77
#define SET_TICKET(ent, str) {ent.magic = KV5M_DATA; ent.length = sizeof(str); ent.data = str;}
crypto/krb5/src/lib/krb5/keytab/t_keytab.c
52
#define CHECK_STR(str,msg) \
crypto/krb5/src/lib/krb5/keytab/t_keytab.c
53
if (str == 0) { \
crypto/krb5/src/lib/krb5/krb/get_in_tkt.c
1051
free(str);
crypto/krb5/src/lib/krb5/krb/get_in_tkt.c
862
char *str = NULL;
crypto/krb5/src/lib/krb5/krb/get_in_tkt.c
940
KRB5_CONF_TICKET_LIFETIME, &str) == 0) {
crypto/krb5/src/lib/krb5/krb/get_in_tkt.c
941
code = krb5_string_to_deltat(str, &ctx->tkt_life);
crypto/krb5/src/lib/krb5/krb/get_in_tkt.c
944
free(str);
crypto/krb5/src/lib/krb5/krb/get_in_tkt.c
945
str = NULL;
crypto/krb5/src/lib/krb5/krb/get_in_tkt.c
953
KRB5_CONF_RENEW_LIFETIME, &str) == 0) {
crypto/krb5/src/lib/krb5/krb/get_in_tkt.c
954
code = krb5_string_to_deltat(str, &ctx->renew_life);
crypto/krb5/src/lib/krb5/krb/get_in_tkt.c
957
free(str);
crypto/krb5/src/lib/krb5/krb/get_in_tkt.c
958
str = NULL;
crypto/krb5/src/lib/krb5/krb/init_ctx.c
104
char *str;
crypto/krb5/src/lib/krb5/krb/init_ctx.c
112
NULL, NULL, &str);
crypto/krb5/src/lib/krb5/krb/init_ctx.c
115
match = (strcasecmp(third_option, str) == 0);
crypto/krb5/src/lib/krb5/krb/init_ctx.c
116
free(str);
crypto/krb5/src/lib/krb5/krb/preauth2.c
538
k5_json_string str;
crypto/krb5/src/lib/krb5/krb/preauth2.c
543
ret = k5_json_string_create(data, &str);
crypto/krb5/src/lib/krb5/krb/preauth2.c
547
ret = k5_json_object_set(ctx->cc_config_out, key, str);
crypto/krb5/src/lib/krb5/krb/preauth2.c
548
k5_json_release(str);
crypto/krb5/src/lib/krb5/krb/preauth_otp.c
103
retval = k5_json_string_create_len(data->data, data->length, &str);
crypto/krb5/src/lib/krb5/krb/preauth_otp.c
107
retval = k5_json_object_set(obj, key, str);
crypto/krb5/src/lib/krb5/krb/preauth_otp.c
108
k5_json_release(str);
crypto/krb5/src/lib/krb5/krb/preauth_otp.c
1198
k5_json_string str;
crypto/krb5/src/lib/krb5/krb/preauth_otp.c
1215
retval = k5_json_string_create(value, &str);
crypto/krb5/src/lib/krb5/krb/preauth_otp.c
1219
retval = k5_json_object_set(obj, "value", str);
crypto/krb5/src/lib/krb5/krb/preauth_otp.c
1220
k5_json_release(str);
crypto/krb5/src/lib/krb5/krb/preauth_otp.c
1226
retval = k5_json_string_create(pin, &str);
crypto/krb5/src/lib/krb5/krb/preauth_otp.c
1230
retval = k5_json_object_set(obj, "pin", str);
crypto/krb5/src/lib/krb5/krb/preauth_otp.c
1231
k5_json_release(str);
crypto/krb5/src/lib/krb5/krb/preauth_otp.c
214
k5_json_string str = NULL;
crypto/krb5/src/lib/krb5/krb/preauth_otp.c
225
chl->service.length, &str);
crypto/krb5/src/lib/krb5/krb/preauth_otp.c
228
retval = k5_json_object_set(obj, "service", str);
crypto/krb5/src/lib/krb5/krb/preauth_otp.c
229
k5_json_release(str);
crypto/krb5/src/lib/krb5/krb/preauth_otp.c
61
char *str;
crypto/krb5/src/lib/krb5/krb/preauth_otp.c
70
str = strdup(k5_json_string_utf8(val));
crypto/krb5/src/lib/krb5/krb/preauth_otp.c
71
if (str == NULL)
crypto/krb5/src/lib/krb5/krb/preauth_otp.c
74
*string = str;
crypto/krb5/src/lib/krb5/krb/preauth_otp.c
98
k5_json_string str;
crypto/krb5/src/lib/krb5/krb/preauth_sam2.c
36
#define SAMDATA(kdata, str, maxsize) \
crypto/krb5/src/lib/krb5/krb/preauth_sam2.c
38
((((kdata.length)<=(maxsize))?(kdata.length):strlen(str))): \
crypto/krb5/src/lib/krb5/krb/preauth_sam2.c
39
strlen(str)), \
crypto/krb5/src/lib/krb5/krb/preauth_sam2.c
41
((((kdata.length)<=(maxsize))?(kdata.data):(str))):(str)
crypto/krb5/src/lib/krb5/krb/s4u_creds.c
405
char *str;
crypto/krb5/src/lib/krb5/krb/s4u_creds.c
408
code = krb5_unparse_name(context, princ, &str);
crypto/krb5/src/lib/krb5/krb/s4u_creds.c
411
code = krb5_parse_name_flags(context, str,
crypto/krb5/src/lib/krb5/krb/s4u_creds.c
415
krb5_free_unparsed_name(context, str);
crypto/krb5/src/lib/krb5/krb/t_etypes.c
196
if (tests[i].str != NULL) {
crypto/krb5/src/lib/krb5/krb/t_etypes.c
197
copy = strdup(tests[i].str);
crypto/krb5/src/lib/krb5/krb/t_etypes.c
216
compare(ctx, tests[i].str ? list : ctx->tgs_etypes,
crypto/krb5/src/lib/krb5/krb/t_etypes.c
218
tests[i].str, weak);
crypto/krb5/src/lib/krb5/krb/t_etypes.c
222
if (!tests[i].str)
crypto/krb5/src/lib/krb5/krb/t_etypes.c
32
const char *str;
crypto/krb5/src/lib/krb5/krb/walk_rtree.c
410
c.str = client->data;
crypto/krb5/src/lib/krb5/krb/walk_rtree.c
413
s.str = server->data;
crypto/krb5/src/lib/krb5/krb/walk_rtree.c
42
char *str;
crypto/krb5/src/lib/krb5/krb/walk_rtree.c
486
r = realm->str;
crypto/krb5/src/lib/krb5/krb/walk_rtree.c
537
cfull = (cp == c->str || cp[-1] == sep);
crypto/krb5/src/lib/krb5/krb/walk_rtree.c
538
sfull = (sp == s->str || sp[-1] == sep);
crypto/krb5/src/lib/krb5/krb/walk_rtree.c
550
if (cp >= &c->str[c->len] || sp >= &s->str[s->len]) {
crypto/krb5/src/lib/krb5/krb/walk_rtree.c
581
cp = &c->str[c->len];
crypto/krb5/src/lib/krb5/krb/walk_rtree.c
582
sp = &s->str[s->len];
crypto/krb5/src/lib/krb5/krb/walk_rtree.c
588
while (cp > c->str && sp > s->str) {
crypto/krb5/src/lib/krb5/krb/walk_rtree.c
607
if (cp == &c->str[c->len])
crypto/krb5/src/lib/krb5/os/expand_path.c
292
char **str)
crypto/krb5/src/lib/krb5/os/expand_path.c
294
if (asprintf(str, "%lu", (unsigned long)getuid()) < 0)
crypto/krb5/src/lib/krb5/os/expand_path.c
300
expand_euid(krb5_context context, PTYPE param, const char *postfix, char **str)
crypto/krb5/src/lib/krb5/os/expand_path.c
302
if (asprintf(str, "%lu", (unsigned long)geteuid()) < 0)
crypto/krb5/src/lib/krb5/os/expand_path.c
309
char **str)
crypto/krb5/src/lib/krb5/os/expand_path.c
320
*str = strdup(pw->pw_name);
crypto/krb5/src/lib/krb5/os/expand_path.c
321
if (*str == NULL)
crypto/krb5/src/lib/krb5/os/hostrealm_registry.c
59
char *str = NULL;
crypto/krb5/src/lib/krb5/os/hostrealm_registry.c
66
rc = RegGetValue(hBaseKey, path, value, RRF_RT_REG_SZ, NULL, str,
crypto/krb5/src/lib/krb5/os/hostrealm_registry.c
72
str = malloc(bsize);
crypto/krb5/src/lib/krb5/os/hostrealm_registry.c
73
if (str == NULL)
crypto/krb5/src/lib/krb5/os/hostrealm_registry.c
75
rc = RegGetValue(hBaseKey, path, value, RRF_RT_REG_SZ, NULL, str,
crypto/krb5/src/lib/krb5/os/hostrealm_registry.c
83
*str_out = str;
crypto/krb5/src/lib/krb5/os/hostrealm_registry.c
84
str = NULL;
crypto/krb5/src/lib/krb5/os/hostrealm_registry.c
86
free(str);
crypto/krb5/src/lib/krb5/os/ktdefname.c
39
char *str;
crypto/krb5/src/lib/krb5/os/ktdefname.c
45
(str = secure_getenv("KRB5_KTNAME")) != NULL) {
crypto/krb5/src/lib/krb5/os/ktdefname.c
46
*name_out = strdup(str);
crypto/krb5/src/lib/krb5/os/ktdefname.c
50
&str) == 0 && str != NULL) {
crypto/krb5/src/lib/krb5/os/ktdefname.c
51
ret = k5_expand_path_tokens(context, str, name_out);
crypto/krb5/src/lib/krb5/os/ktdefname.c
52
profile_release_string(str);
crypto/krb5/src/lib/krb5/os/ktdefname.c
63
char *str;
crypto/krb5/src/lib/krb5/os/ktdefname.c
66
(str = secure_getenv("KRB5_CLIENT_KTNAME")) != NULL) {
crypto/krb5/src/lib/krb5/os/ktdefname.c
67
*name_out = strdup(str);
crypto/krb5/src/lib/krb5/os/ktdefname.c
71
NULL, &str) == 0 && str != NULL) {
crypto/krb5/src/lib/krb5/os/ktdefname.c
72
ret = k5_expand_path_tokens(context, str, name_out);
crypto/krb5/src/lib/krb5/os/ktdefname.c
73
profile_release_string(str);
crypto/krb5/src/lib/krb5/os/localauth.c
225
free_lname(krb5_context context, struct localauth_module_handle *h, char *str)
crypto/krb5/src/lib/krb5/os/localauth.c
227
h->vt.free_string(context, h->data, str);
crypto/krb5/src/lib/krb5/os/localauth.c
355
freestr(krb5_context context, krb5_localauth_moddata data, char *str)
crypto/krb5/src/lib/krb5/os/localauth.c
357
free(str);
crypto/krb5/src/lib/krb5/os/localauth_names.c
87
freestr(krb5_context context, krb5_localauth_moddata data, char *str)
crypto/krb5/src/lib/krb5/os/localauth_names.c
89
free(str);
crypto/krb5/src/lib/krb5/os/localauth_rule.c
305
freestr(krb5_context context, krb5_localauth_moddata data, char *str)
crypto/krb5/src/lib/krb5/os/localauth_rule.c
307
free(str);
crypto/krb5/src/lib/krb5/os/t_trace.c
102
s, str);
crypto/krb5/src/lib/krb5/os/t_trace.c
106
"{hashlenstr}", s, str);
crypto/krb5/src/lib/krb5/os/t_trace.c
132
data.length = strlen(str);
crypto/krb5/src/lib/krb5/os/t_trace.c
133
data.data = str;
crypto/krb5/src/lib/krb5/os/t_trace.c
144
key.keyblock.length = strlen(str);
crypto/krb5/src/lib/krb5/os/t_trace.c
145
key.keyblock.contents = (krb5_octet *)str;
crypto/krb5/src/lib/krb5/os/t_trace.c
234
creds.ticket.length = strlen(str);
crypto/krb5/src/lib/krb5/os/t_trace.c
235
creds.ticket.data = str;
crypto/krb5/src/lib/krb5/os/t_trace.c
237
creds.second_ticket.length = strlen(str);
crypto/krb5/src/lib/krb5/os/t_trace.c
238
creds.second_ticket.data = str;
crypto/krb5/src/lib/krb5/os/t_trace.c
56
char *str = "example.data";
crypto/krb5/src/lib/krb5/os/t_trace.c
57
krb5_octet *oct = (krb5_octet *) str;
crypto/krb5/src/lib/krb5/os/t_trace.c
58
unsigned int oct_length = strlen(str);
crypto/krb5/src/lib/krb5/os/t_trace.c
95
TRACE(ctx, "const char *, display as C string: {str}", str);
crypto/krb5/src/lib/krb5/os/t_trace.c
96
s = strlen(str);
crypto/krb5/src/lib/krb5/os/t_trace.c
98
s, str);
crypto/krb5/src/lib/krb5/os/trace.c
183
char addrbuf[128], tmpbuf[200], *str;
crypto/krb5/src/lib/krb5/os/trace.c
242
str = hash_bytes(context, p, len);
crypto/krb5/src/lib/krb5/os/trace.c
243
if (str != NULL)
crypto/krb5/src/lib/krb5/os/trace.c
244
k5_buf_add(&buf, str);
crypto/krb5/src/lib/krb5/os/trace.c
245
free(str);
crypto/krb5/src/lib/krb5/os/trace.c
306
if (krb5_unparse_name(context, princ, &str) == 0) {
crypto/krb5/src/lib/krb5/os/trace.c
307
k5_buf_add(&buf, str);
crypto/krb5/src/lib/krb5/os/trace.c
308
krb5_free_unparsed_name(context, str);
crypto/krb5/src/lib/krb5/os/trace.c
374
char *str;
crypto/krb5/src/lib/krb5/os/trace.c
377
str = trace_format(context, fmt, ap);
crypto/krb5/src/lib/krb5/os/trace.c
378
if (str != NULL)
crypto/krb5/src/lib/krb5/os/trace.c
379
k5_buf_add(buf, str);
crypto/krb5/src/lib/krb5/os/trace.c
380
free(str);
crypto/krb5/src/lib/krb5/os/trace.c
399
char *str = NULL, *msg = NULL;
crypto/krb5/src/lib/krb5/os/trace.c
406
str = trace_format(context, fmt, ap);
crypto/krb5/src/lib/krb5/os/trace.c
407
if (str == NULL)
crypto/krb5/src/lib/krb5/os/trace.c
412
(unsigned int)sec, (int)usec, str) < 0)
crypto/krb5/src/lib/krb5/os/trace.c
417
free(str);
crypto/krb5/src/lib/krb5/unicode/ucdata/ucdata.c
617
uccomp_hangul(krb5_ui_4 *str, int len)
crypto/krb5/src/lib/krb5/unicode/ucdata/ucdata.c
628
last = str[0];
crypto/krb5/src/lib/krb5/unicode/ucdata/ucdata.c
631
ch = str[i];
crypto/krb5/src/lib/krb5/unicode/ucdata/ucdata.c
640
str[rlen-1] = last; /* reset last */
crypto/krb5/src/lib/krb5/unicode/ucdata/ucdata.c
654
str[rlen-1] = last; /* reset last */
crypto/krb5/src/lib/krb5/unicode/ucdata/ucdata.c
661
str[rlen] = ch;
crypto/krb5/src/lib/krb5/unicode/ucdata/ucdata.c
668
uccanoncomp(krb5_ui_4 *str, int len)
crypto/krb5/src/lib/krb5/unicode/ucdata/ucdata.c
673
st = str[0];
crypto/krb5/src/lib/krb5/unicode/ucdata/ucdata.c
679
ch = str[i];
crypto/krb5/src/lib/krb5/unicode/ucdata/ucdata.c
682
st = str[stpos] = co;
crypto/krb5/src/lib/krb5/unicode/ucdata/ucdata.c
689
str[copos++] = ch;
crypto/krb5/src/lib/krb5/unicode/ucdata/ucdata.c
693
return uccomp_hangul(str, copos);
crypto/krb5/src/lib/krb5/unicode/ucdata/ucdata.h
234
int uccomp_hangul(krb5_ui_4 *str, int len);
crypto/krb5/src/lib/krb5/unicode/ucdata/ucdata.h
240
int uccanoncomp(krb5_ui_4 *str, int len);
crypto/krb5/src/lib/rpc/clnt_perror.c
117
if (str - bufstart + 10 + strlen(strerror(e.re_errno)) < BUFSIZ)
crypto/krb5/src/lib/rpc/clnt_perror.c
118
(void) snprintf(str, strend-str, "; errno = %s",
crypto/krb5/src/lib/rpc/clnt_perror.c
120
str += strlen(str);
crypto/krb5/src/lib/rpc/clnt_perror.c
125
if(str - bufstart + 33 + 22 < BUFSIZ)
crypto/krb5/src/lib/rpc/clnt_perror.c
126
(void) snprintf(str, strend-str,
crypto/krb5/src/lib/rpc/clnt_perror.c
130
str += strlen(str);
crypto/krb5/src/lib/rpc/clnt_perror.c
136
if(str - bufstart + 8 < BUFSIZ)
crypto/krb5/src/lib/rpc/clnt_perror.c
137
(void) snprintf(str, strend-str, "; why = ");
crypto/krb5/src/lib/rpc/clnt_perror.c
138
str += strlen(str);
crypto/krb5/src/lib/rpc/clnt_perror.c
140
if(str - bufstart + strlen(err) < BUFSIZ)
crypto/krb5/src/lib/rpc/clnt_perror.c
141
(void) snprintf(str, strend-str, "%s",err);
crypto/krb5/src/lib/rpc/clnt_perror.c
144
if(str - bufstart + 33 + 11 < BUFSIZ)
crypto/krb5/src/lib/rpc/clnt_perror.c
145
(void) snprintf(str, strend-str,
crypto/krb5/src/lib/rpc/clnt_perror.c
149
str += strlen(str);
crypto/krb5/src/lib/rpc/clnt_perror.c
154
if(str - bufstart + 33 + 22 < BUFSIZ)
crypto/krb5/src/lib/rpc/clnt_perror.c
155
(void) snprintf(str, strend-str,
crypto/krb5/src/lib/rpc/clnt_perror.c
159
str += strlen(str);
crypto/krb5/src/lib/rpc/clnt_perror.c
164
if(str - bufstart + 14 + 22 < BUFSIZ)
crypto/krb5/src/lib/rpc/clnt_perror.c
165
(void) snprintf(str, strend-str,
crypto/krb5/src/lib/rpc/clnt_perror.c
169
str += strlen(str);
crypto/krb5/src/lib/rpc/clnt_perror.c
172
if (str - bufstart + 1 < BUFSIZ)
crypto/krb5/src/lib/rpc/clnt_perror.c
173
(void) snprintf(str, strend-str, "\n");
crypto/krb5/src/lib/rpc/clnt_perror.c
255
char *str = get_buf();
crypto/krb5/src/lib/rpc/clnt_perror.c
258
if (str == 0)
crypto/krb5/src/lib/rpc/clnt_perror.c
260
strend = str+BUFSIZ;
crypto/krb5/src/lib/rpc/clnt_perror.c
261
(void) snprintf(str, strend-str, "%s: ", s);
crypto/krb5/src/lib/rpc/clnt_perror.c
262
str[BUFSIZ - 1] = '\0';
crypto/krb5/src/lib/rpc/clnt_perror.c
263
(void) strncat(str, clnt_sperrno(rpc_createerr.cf_stat), BUFSIZ - 1);
crypto/krb5/src/lib/rpc/clnt_perror.c
266
(void) strncat(str, " - ", BUFSIZ - 1 - strlen(str));
crypto/krb5/src/lib/rpc/clnt_perror.c
267
(void) strncat(str,
crypto/krb5/src/lib/rpc/clnt_perror.c
269
BUFSIZ - 1 - strlen(str));
crypto/krb5/src/lib/rpc/clnt_perror.c
273
(void) strncat(str, " - ", BUFSIZ - 1 - strlen(str));
crypto/krb5/src/lib/rpc/clnt_perror.c
277
(void) strncat(str, m, BUFSIZ - 1 - strlen(str));
crypto/krb5/src/lib/rpc/clnt_perror.c
279
(void) snprintf(&str[strlen(str)], BUFSIZ - strlen(str),
crypto/krb5/src/lib/rpc/clnt_perror.c
304
(void) strncat(str, "\n", BUFSIZ - 1 - strlen(str));
crypto/krb5/src/lib/rpc/clnt_perror.c
305
return (str);
crypto/krb5/src/lib/rpc/clnt_perror.c
81
char *str = bufstart;
crypto/krb5/src/lib/rpc/clnt_perror.c
82
char *strstart = str;
crypto/krb5/src/lib/rpc/clnt_perror.c
85
if (str == 0)
crypto/krb5/src/lib/rpc/clnt_perror.c
87
strend = str + BUFSIZ;
crypto/krb5/src/lib/rpc/clnt_perror.c
90
strncpy (str, s, BUFSIZ - 1);
crypto/krb5/src/lib/rpc/clnt_perror.c
91
str[BUFSIZ - 1] = 0;
crypto/krb5/src/lib/rpc/clnt_perror.c
92
strncat (str, ": ", BUFSIZ - 1 - strlen (bufstart));
crypto/krb5/src/lib/rpc/clnt_perror.c
93
str += strlen(str);
crypto/krb5/src/lib/rpc/clnt_perror.c
94
strncat (str, clnt_sperrno(e.re_status), BUFSIZ - 1 - strlen (bufstart));
crypto/krb5/src/lib/rpc/clnt_perror.c
96
str += strlen(str);
crypto/krb5/src/plugins/audit/kdc_j_encode.c
446
k5_json_string str = NULL;
crypto/krb5/src/plugins/audit/kdc_j_encode.c
451
ret = k5_json_string_create(in, &str);
crypto/krb5/src/plugins/audit/kdc_j_encode.c
454
ret = k5_json_object_set(obj, key, str);
crypto/krb5/src/plugins/audit/kdc_j_encode.c
455
k5_json_release(str);
crypto/krb5/src/plugins/audit/kdc_j_encode.c
469
k5_json_string str = NULL;
crypto/krb5/src/plugins/audit/kdc_j_encode.c
474
ret = k5_json_string_create_len(data->data, data->length, &str);
crypto/krb5/src/plugins/audit/kdc_j_encode.c
477
ret = k5_json_object_set(obj, key, str);
crypto/krb5/src/plugins/audit/kdc_j_encode.c
478
k5_json_release(str);
crypto/krb5/src/plugins/audit/kdc_j_encode.c
551
k5_json_string str = NULL;
crypto/krb5/src/plugins/audit/kdc_j_encode.c
566
(&princ->data[i])->length, &str);
crypto/krb5/src/plugins/audit/kdc_j_encode.c
569
ret = k5_json_array_add(arr, str);
crypto/krb5/src/plugins/audit/kdc_j_encode.c
570
k5_json_release(str);
crypto/krb5/src/plugins/audit/kdc_j_encode.c
634
k5_json_string str = NULL;
crypto/krb5/src/plugins/audit/kdc_j_encode.c
636
ret = k5_json_string_create_len(a->contents, a->length, &str);
crypto/krb5/src/plugins/audit/kdc_j_encode.c
640
ret = k5_json_object_set(obj, AU_PATH, str);
crypto/krb5/src/plugins/audit/kdc_j_encode.c
641
k5_json_release(str);
crypto/krb5/src/plugins/audit/kdc_j_encode.c
685
k5_json_string str = NULL;
crypto/krb5/src/plugins/audit/kdc_j_encode.c
739
&str);
crypto/krb5/src/plugins/audit/kdc_j_encode.c
742
ret = k5_json_array_add(arrpa, str);
crypto/krb5/src/plugins/audit/kdc_j_encode.c
743
k5_json_release(str);
crypto/krb5/src/plugins/audit/kdc_j_encode.c
788
k5_json_string str = NULL;
crypto/krb5/src/plugins/audit/kdc_j_encode.c
808
&str);
crypto/krb5/src/plugins/audit/kdc_j_encode.c
811
ret = k5_json_array_add(arrpa, str);
crypto/krb5/src/plugins/audit/kdc_j_encode.c
812
k5_json_release(str);
crypto/krb5/src/plugins/kdb/ldap/ldap_util/kdb5_ldap_list.c
110
str = strdup(buffer);
crypto/krb5/src/plugins/kdb/ldap/ldap_util/kdb5_ldap_list.c
111
if (str == NULL)
crypto/krb5/src/plugins/kdb/ldap/ldap_util/kdb5_ldap_list.c
114
token = strtok_r(str, delimiter, &ptrptr);
crypto/krb5/src/plugins/kdb/ldap/ldap_util/kdb5_ldap_list.c
127
if (str) {
crypto/krb5/src/plugins/kdb/ldap/ldap_util/kdb5_ldap_list.c
128
free(str);
crypto/krb5/src/plugins/kdb/ldap/ldap_util/kdb5_ldap_list.c
129
str = NULL;
crypto/krb5/src/plugins/kdb/ldap/ldap_util/kdb5_ldap_list.c
99
char *str = NULL;
crypto/krb5/src/plugins/kdb/ldap/ldap_util/kdb5_ldap_services.c
100
char *str = NULL, *hexpasswd = NULL;
crypto/krb5/src/plugins/kdb/ldap/ldap_util/kdb5_ldap_services.c
204
if ((str = strstr (line, service_object)) != NULL) {
crypto/krb5/src/plugins/kdb/ldap/ldap_util/kdb5_ldap_services.c
208
str = NULL;
crypto/krb5/src/plugins/kdb/ldap/ldap_util/kdb5_ldap_services.c
212
if (str == NULL) {
crypto/krb5/src/plugins/kdb/ldap/ldap_util/kdb5_ldap_services.c
256
if (((str = strstr(line, service_object)) != NULL) &&
crypto/krb5/src/plugins/kdb/ldap/libkdb_ldap/kdb_ldap.h
125
#define CHECK_CLASS_VALIDITY(st, mask, str) \
crypto/krb5/src/plugins/kdb/ldap/libkdb_ldap/kdb_ldap.h
130
k5_prependmsg(context, st, str); \
crypto/krb5/src/plugins/kdb/ldap/libkdb_ldap/ldap_misc.c
599
char *str;
crypto/krb5/src/plugins/kdb/ldap/libkdb_ldap/ldap_misc.c
620
str = value;
crypto/krb5/src/plugins/kdb/ldap/libkdb_ldap/ldap_misc.c
621
len = strlen(str);
crypto/krb5/src/plugins/kdb/ldap/libkdb_ldap/ldap_misc.c
629
memcpy(ptr + 3, str, len);
crypto/krb5/src/plugins/kdb/ldap/libkdb_ldap/ldap_service_stash.c
39
dec_password(krb5_context context, const char *str, char **password_out)
crypto/krb5/src/plugins/kdb/ldap/libkdb_ldap/ldap_service_stash.c
47
if (strncmp(str, "{HEX}", 5) != 0) {
crypto/krb5/src/plugins/kdb/ldap/libkdb_ldap/ldap_service_stash.c
52
ret = k5_hex_decode(str + 5, &bytes, &len);
crypto/krb5/src/plugins/kdb/lmdb/marshal.c
269
const char *str;
crypto/krb5/src/plugins/kdb/lmdb/marshal.c
296
str = (char *)k5_input_get_bytes(&in, len);
crypto/krb5/src/plugins/kdb/lmdb/marshal.c
297
if (str == NULL) {
crypto/krb5/src/plugins/kdb/lmdb/marshal.c
301
pol->allowed_keysalts = k5memdup0(str, len, &ret);
crypto/krb5/src/plugins/kdb/test/kdb_test.c
292
const char *str, *sep;
crypto/krb5/src/plugins/kdb/test/kdb_test.c
297
str = *p;
crypto/krb5/src/plugins/kdb/test/kdb_test.c
298
sep = strchr(str, ':');
crypto/krb5/src/plugins/kdb/test/kdb_test.c
300
k5_buf_add_len(&buf, str, sep - str);
crypto/krb5/src/plugins/localauth/test/main.c
130
freestr(krb5_context context, krb5_localauth_moddata data, char *str)
crypto/krb5/src/plugins/localauth/test/main.c
132
free(str);
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto.h
582
int parse_dh_min_bits(krb5_context context, const char *str);
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
1090
char *str, buf[128];
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
1097
r = vasprintf(&str, fmt, ap);
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
1104
krb5_set_error_message(context, code, _("%s: %s"), str,
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
1107
krb5_set_error_message(context, code, "%s", str);
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
1110
TRACE_PKINIT_OPENSSL_ERROR(context, str);
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
1116
free(str);
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
4772
char *str;
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
4780
str = calloc(BIO_number_written(b) + 1, 1);
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
4781
if (str == NULL)
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
4783
BIO_read(b, str, BIO_number_written(b));
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
4785
*str_out = str;
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
5673
parse_dh_min_bits(krb5_context context, const char *str)
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
5678
if (str == NULL)
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
5681
n = strtol(str, &endptr, 0);
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
5682
if (endptr == str) {
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
5683
if (strcasecmp(str, "P-256") == 0)
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
5685
else if (strcasecmp(str, "P-384") == 0)
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
5687
else if (strcasecmp(str, "P-521") == 0)
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
5698
TRACE_PKINIT_DH_INVALID_MIN_BITS(context, str);
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
81
#define TRACE_PKINIT_DH_INVALID_MIN_BITS(c, str) \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
82
TRACE(c, "Invalid pkinit_dh_min_bits value {str}, using default", str)
crypto/krb5/src/plugins/preauth/spake/groups.c
178
parse_groups(krb5_context context, char *str, int32_t **list_out,
crypto/krb5/src/plugins/preauth/spake/groups.c
190
for (token = strtok_r(str, delim, &save); token != NULL;
crypto/krb5/src/plugins/preauth/test/kdctest.c
121
char *str, *ind, *toksave = NULL;
crypto/krb5/src/plugins/preauth/test/kdctest.c
169
str = k5memdup0(data->contents, data->length, &ret);
crypto/krb5/src/plugins/preauth/test/kdctest.c
172
ind = strtok_r(str, " ", &toksave);
crypto/krb5/src/plugins/preauth/test/kdctest.c
177
free(str);
crypto/krb5/src/util/profile/prof_get.c
101
static int is_list_member(struct profile_string_list *list, const char *str)
crypto/krb5/src/util/profile/prof_get.c
109
if (!strcmp(*cpp, str))
crypto/krb5/src/util/profile/prof_get.c
614
profile_release_string(char *str)
crypto/krb5/src/util/profile/prof_get.c
616
free(str);
crypto/krb5/src/util/profile/prof_get.c
76
static errcode_t add_to_list(struct profile_string_list *list, const char *str)
crypto/krb5/src/util/profile/prof_get.c
89
newstr = strdup(str);
crypto/krb5/src/util/profile/prof_parse.c
462
static int need_double_quotes(char *str)
crypto/krb5/src/util/profile/prof_parse.c
464
if (!str)
crypto/krb5/src/util/profile/prof_parse.c
466
if (str[0] == '\0')
crypto/krb5/src/util/profile/prof_parse.c
468
if (isspace((int) (*str)) ||isspace((int) (*(str + strlen(str) - 1))))
crypto/krb5/src/util/profile/prof_parse.c
47
static void parse_quoted_string(char *str)
crypto/krb5/src/util/profile/prof_parse.c
470
if (strchr(str, '\n') || strchr(str, '\t') || strchr(str, '\b'))
crypto/krb5/src/util/profile/prof_parse.c
479
static void output_quoted_string(char *str, void (*cb)(const char *,void *),
crypto/krb5/src/util/profile/prof_parse.c
486
if (!str) {
crypto/krb5/src/util/profile/prof_parse.c
491
while ((ch = *str++)) {
crypto/krb5/src/util/profile/prof_parse.c
51
for (to = from = str; *from && *from != '"'; to++, from++) {
crypto/krb5/src/util/profile/prof_parse.c
585
static void dump_profile_to_file_cb(const char *str, void *data)
crypto/krb5/src/util/profile/prof_parse.c
587
fputs(str, data);
crypto/krb5/src/util/profile/prof_parse.c
623
static void dump_profile_to_buffer_cb(const char *str, void *data)
crypto/krb5/src/util/profile/prof_parse.c
625
add_data_to_buffer((struct prof_buf *)data, str, strlen(str));
crypto/krb5/src/util/profile/test_vtable.c
239
char **values, *str, *name, *value;
crypto/krb5/src/util/profile/test_vtable.c
265
&str) == 0);
crypto/krb5/src/util/profile/test_vtable.c
266
assert(strcmp(str, "string result") == 0);
crypto/krb5/src/util/profile/test_vtable.c
267
profile_release_string(str);
crypto/krb5/src/util/support/base64.c
111
k5_base64_decode(const char *str, size_t *len_out)
crypto/krb5/src/util/support/base64.c
120
len = strlen(str);
crypto/krb5/src/util/support/base64.c
130
for (; *str != '\0'; str += 4) {
crypto/krb5/src/util/support/base64.c
131
val = decode_token(str);
crypto/krb5/src/util/support/errors.c
51
char *str;
crypto/krb5/src/util/support/errors.c
56
if (vasprintf(&str, fmt, args) < 0)
crypto/krb5/src/util/support/errors.c
58
ep->msg = str;
crypto/krb5/src/util/support/errors.c
62
oom_check(const char *str)
crypto/krb5/src/util/support/errors.c
64
return (str == NULL) ? oom_msg : str;
crypto/krb5/src/util/support/json.c
1007
k5_json_string str;
crypto/krb5/src/util/support/json.c
1022
ret = k5_json_string_create(cstring, &str);
crypto/krb5/src/util/support/json.c
1026
*val_out = str;
crypto/krb5/src/util/support/json.c
285
k5_json_string str;
crypto/krb5/src/util/support/json.c
329
if (k5_json_string_create(cstring, &str))
crypto/krb5/src/util/support/json.c
331
val = str;
crypto/krb5/src/util/support/json.c
337
if (k5_json_string_create_base64(data, len, &str))
crypto/krb5/src/util/support/json.c
339
val = str;
crypto/krb5/src/util/support/json.c
585
encode_string(struct k5buf *buf, const char *str)
crypto/krb5/src/util/support/json.c
591
while (*str != '\0') {
crypto/krb5/src/util/support/json.c
592
n = strcspn(str, needs_quote);
crypto/krb5/src/util/support/json.c
593
k5_buf_add_len(buf, str, n);
crypto/krb5/src/util/support/json.c
594
str += n;
crypto/krb5/src/util/support/json.c
595
if (*str == '\0')
crypto/krb5/src/util/support/json.c
598
p = strchr(quotemap_c, *str);
crypto/krb5/src/util/support/json.c
602
k5_buf_add_fmt(buf, "u00%02X", (unsigned int)*str);
crypto/krb5/src/util/support/json.c
603
str++;
crypto/krb5/src/util/support/printf.c
39
char *str = NULL, *nstr;
crypto/krb5/src/util/support/printf.c
46
nstr = realloc(str, len);
crypto/krb5/src/util/support/printf.c
49
str = nstr;
crypto/krb5/src/util/support/printf.c
51
len2 = vsnprintf(str, len, format, ap2);
crypto/krb5/src/util/support/printf.c
78
nstr = realloc(str, (size_t) len2 + 1);
crypto/krb5/src/util/support/printf.c
80
str = nstr;
crypto/krb5/src/util/support/printf.c
82
*ret = str;
crypto/krb5/src/util/support/printf.c
86
free(str);
crypto/krb5/src/util/support/strerror_r.c
75
const char *str;
crypto/krb5/src/util/support/strerror_r.c
77
str = strerror_r(errnum, buf, buflen);
crypto/krb5/src/util/support/strerror_r.c
78
if (str != buf) {
crypto/krb5/src/util/support/strerror_r.c
79
if (strlcpy(buf, str, buflen) >= buflen) {
crypto/krb5/src/util/support/t_base64.c
72
char *str, **ntest;
crypto/krb5/src/util/support/t_base64.c
79
str = k5_base64_encode(t->data, t->len);
crypto/krb5/src/util/support/t_base64.c
80
if (strcmp(str, t->result) != 0) {
crypto/krb5/src/util/support/t_base64.c
82
str, t->result);
crypto/krb5/src/util/support/t_base64.c
85
free(str);
crypto/krb5/src/util/support/t_json.c
75
err(const char *str)
crypto/krb5/src/util/support/t_json.c
77
fprintf(stderr, "%s\n", str);
crypto/krb5/src/util/support/t_json.c
82
check(int pred, const char *str)
crypto/krb5/src/util/support/t_json.c
85
err(str);
crypto/krb5/src/wconfig.c
158
void add_ignore_list(char *str)
crypto/krb5/src/wconfig.c
164
*cpp = str;
crypto/krb5/src/wconfig.c
48
void add_ignore_list(char *str);
crypto/krb5/src/windows/include/loadfuncs-profile.h
119
(char *str)
crypto/krb5/src/windows/installer/wix/custom/custom.cpp
107
static void ShowMsiErrorEx(MSIHANDLE hInstall, DWORD errcode, LPTSTR str,
crypto/krb5/src/windows/installer/wix/custom/custom.cpp
115
MsiRecordSetString(hRecord, 2, str);
crypto/krb5/src/windows/installer/wix/custom/custom.cpp
731
int npi_CheckAndAddRemove( LPTSTR str, LPTSTR str2, int bInst ) {
crypto/krb5/src/windows/installer/wix/custom/custom.cpp
736
target = new TCHAR[lstrlen(str)+3];
crypto/krb5/src/windows/installer/wix/custom/custom.cpp
738
lstrcat(target,str);
crypto/krb5/src/windows/installer/wix/custom/custom.cpp
759
lstrcat(str, _T(","));
crypto/krb5/src/windows/installer/wix/custom/custom.cpp
760
lstrcat(str, str2);
crypto/krb5/src/windows/installer/wix/custom/custom.cpp
767
lstrcpy(str+(match-target),match+lstrlen(str2)+2);
crypto/krb5/src/windows/installer/wix/custom/custom.cpp
768
str[lstrlen(str)-1]=_T('\0');
crypto/krb5/src/windows/leash/LeashView.cpp
146
LPTSTR str;
crypto/krb5/src/windows/leash/LeashView.cpp
156
str = (LPSTR)malloc(strSize);
crypto/krb5/src/windows/leash/LeashView.cpp
157
if (str != NULL) {
crypto/krb5/src/windows/leash/LeashView.cpp
158
*str = 0;
crypto/krb5/src/windows/leash/LeashView.cpp
162
if (str[0])
crypto/krb5/src/windows/leash/LeashView.cpp
163
_tcscat_s(str, strSize, _T(", "));
crypto/krb5/src/windows/leash/LeashView.cpp
164
_tcscat_s(str, strSize, sm_TicketFlags[i].m_description);
crypto/krb5/src/windows/leash/LeashView.cpp
168
*outStr = str;
crypto/krb5/src/windows/leash/LeashView.cpp
250
LPTSTR str = (LPSTR)malloc((dateSize + timeSize - 1) * sizeof(TCHAR));
crypto/krb5/src/windows/leash/LeashView.cpp
251
if (!str) {
crypto/krb5/src/windows/leash/LeashView.cpp
260
&str[0],
crypto/krb5/src/windows/leash/LeashView.cpp
267
&str[dateSize - 1],
crypto/krb5/src/windows/leash/LeashView.cpp
269
*outStr = str;
crypto/krb5/src/windows/leashdll/lshutil.cpp
176
void AddString(LPTSTR str)
crypto/krb5/src/windows/leashdll/lshutil.cpp
179
if (str) {
crypto/krb5/src/windows/leashdll/lshutil.cpp
180
copy = _tcsdup(str);
crypto/krb5/src/windows/leashdll/lshutil.cpp
187
void RemoveString(LPTSTR str)
crypto/krb5/src/windows/leashdll/lshutil.cpp
191
if (_tcscmp(*i, str) == 0) {
crypto/krb5/src/windows/leashdll/lshutil.cpp
396
static bool StrToUpper(LPTSTR str)
crypto/krb5/src/windows/leashdll/lshutil.cpp
400
if (str != NULL) {
crypto/krb5/src/windows/leashdll/lshutil.cpp
401
while ((c = *str) != NULL) {
crypto/krb5/src/windows/leashdll/lshutil.cpp
404
*str = _toupper(c);
crypto/krb5/src/windows/leashdll/lshutil.cpp
406
str++;
crypto/krb5/src/windows/leashdll/lshutil.cpp
467
LPTSTR str = new TCHAR [++text_len];
crypto/krb5/src/windows/leashdll/lshutil.cpp
468
if (str != NULL) {
crypto/krb5/src/windows/leashdll/lshutil.cpp
469
GetWindowText(m_hwnd, str, text_len);
crypto/krb5/src/windows/leashdll/lshutil.cpp
470
LPTSTR realmStr = strchr(str, '@');
crypto/krb5/src/windows/leashdll/lshutil.cpp
474
SuggestDefaultRealm(str);
crypto/krb5/src/windows/leashdll/lshutil.cpp
477
AdjustRealmCase(str, realmStr);
crypto/krb5/src/windows/leashdll/lshutil.cpp
481
delete[] str;
crypto/openssh/openbsd-compat/bsd-asprintf.c
41
vasprintf(char **str, const char *fmt, va_list ap)
crypto/openssh/openbsd-compat/bsd-asprintf.c
54
*str = string;
crypto/openssh/openbsd-compat/bsd-asprintf.c
68
*str = newstr;
crypto/openssh/openbsd-compat/bsd-asprintf.c
79
*str = NULL;
crypto/openssh/openbsd-compat/bsd-asprintf.c
87
int asprintf(char **str, const char *fmt, ...)
crypto/openssh/openbsd-compat/bsd-asprintf.c
92
*str = NULL;
crypto/openssh/openbsd-compat/bsd-asprintf.c
94
ret = vasprintf(str, fmt, ap);
crypto/openssh/openbsd-compat/bsd-misc.c
320
strdup(const char *str)
crypto/openssh/openbsd-compat/bsd-misc.c
325
len = strlen(str) + 1;
crypto/openssh/openbsd-compat/bsd-misc.c
328
return(memcpy(cp, str, len));
crypto/openssh/openbsd-compat/bsd-snprintf.c
865
vsnprintf (char *str, size_t count, const char *fmt, va_list args)
crypto/openssh/openbsd-compat/bsd-snprintf.c
867
return dopr(str, count, fmt, args);
crypto/openssh/openbsd-compat/bsd-snprintf.c
873
snprintf(char *str, size_t count, SNPRINTF_CONST char *fmt, ...)
crypto/openssh/openbsd-compat/bsd-snprintf.c
879
ret = vsnprintf(str, count, fmt, ap);
crypto/openssh/openbsd-compat/glob.c
1001
if (!*str)
crypto/openssh/openbsd-compat/glob.c
1004
if (g_Ctoc(str, buf, sizeof(buf)))
crypto/openssh/openbsd-compat/glob.c
1039
g_strchr(const Char *str, int ch)
crypto/openssh/openbsd-compat/glob.c
1042
if (*str == ch)
crypto/openssh/openbsd-compat/glob.c
1043
return ((Char *)str);
crypto/openssh/openbsd-compat/glob.c
1044
} while (*str++);
crypto/openssh/openbsd-compat/glob.c
1049
g_Ctoc(const Char *str, char *buf, size_t len)
crypto/openssh/openbsd-compat/glob.c
1053
if ((*buf++ = *str++) == EOS)
crypto/openssh/openbsd-compat/glob.c
1061
qprintf(const char *str, Char *s)
crypto/openssh/openbsd-compat/glob.c
1065
(void)printf("%s:\n", str);
crypto/openssh/openbsd-compat/glob.c
997
g_opendir(Char *str, glob_t *pglob)
crypto/openssh/openbsd-compat/regress/snprintftest.c
37
int x_snprintf(char *str, size_t count, const char *fmt, ...)
crypto/openssh/openbsd-compat/regress/snprintftest.c
43
ret = vsnprintf(str, count, fmt, ap);
crypto/openssh/openbsd-compat/setenv.c
100
environ[offset++] = str;
crypto/openssh/openbsd-compat/setenv.c
102
while (__findenv(str, (int)(cp - str), &offset)) {
crypto/openssh/openbsd-compat/setenv.c
120
environ[cnt] = str;
crypto/openssh/openbsd-compat/setenv.c
86
putenv(char *str)
crypto/openssh/openbsd-compat/setenv.c
92
for (cp = str; *cp && *cp != '='; ++cp)
crypto/openssh/openbsd-compat/setenv.c
99
if (__findenv(str, (int)(cp - str), &offset) != NULL) {
crypto/openssh/openbsd-compat/strndup.c
28
strndup(const char *str, size_t maxlen)
crypto/openssh/openbsd-compat/strndup.c
33
len = strnlen(str, maxlen);
crypto/openssh/openbsd-compat/strndup.c
36
(void)memcpy(copy, str, len);
crypto/openssh/openbsd-compat/strnlen.c
28
strnlen(const char *str, size_t maxlen)
crypto/openssh/openbsd-compat/strnlen.c
32
for (cp = str; maxlen != 0 && *cp != '\0'; cp++, maxlen--)
crypto/openssh/openbsd-compat/strnlen.c
35
return (size_t)(cp - str);
crypto/openssh/readconf.c
1140
char *str, **charptr, *endofnumber, *keyword, *arg, *arg2, *p;
crypto/openssh/readconf.c
1175
str = line;
crypto/openssh/readconf.c
1177
if ((keyword = strdelim(&str)) == NULL)
crypto/openssh/readconf.c
1181
keyword = strdelim(&str);
crypto/openssh/readconf.c
1188
if (str != NULL)
crypto/openssh/readconf.c
1189
str += strspn(str, WHITESPACE);
crypto/openssh/readconf.c
1190
if (str == NULL || *str == '\0') {
crypto/openssh/readconf.c
1197
if (argv_split(str, &oac, &oav, 1) != 0) {
crypto/openssh/readconf.c
1536
if (str == NULL) {
crypto/openssh/readconf.c
1541
len = strspn(str, WHITESPACE "=");
crypto/openssh/readconf.c
1543
*charptr = xstrdup(str + len);
crypto/openssh/readconf.c
1548
if (str == NULL) {
crypto/openssh/readconf.c
1553
len = strspn(str, WHITESPACE "=");
crypto/openssh/readconf.c
1555
if (parse_jump(str + len, options, *activep) == -1) {
crypto/openssh/readconf.c
1557
filename, linenum, str + len);
crypto/openssh/readconf.c
1874
value = match_cfg_line(options, str, &ac, &av, pw, host,
crypto/openssh/readconf.c
2490
if (str == NULL || *str == '\0')
crypto/openssh/readconf.c
2493
len = strspn(str, WHITESPACE);
crypto/openssh/readconf.c
2494
if (strchr(str + len, '\r') != NULL) {
crypto/openssh/readconf.c
2503
if (strcasecmp(str + len, "none") == 0)
crypto/openssh/readconf.c
2506
options->version_addendum = xstrdup(str + len);
crypto/openssh/regress/unittests/misc/test_expand.c
36
char *str = dollar_expand(NULL, (x)); \
crypto/openssh/regress/unittests/misc/test_expand.c
37
ASSERT_STRING_EQ(str, (y)); \
crypto/openssh/regress/unittests/misc/test_expand.c
38
free(str); \
crypto/openssh/regress/unittests/misc/test_hpdelim.c
29
char *orig, *str, *cp, *port;
crypto/openssh/regress/unittests/misc/test_hpdelim.c
31
#define START_STRING(x) orig = str = xstrdup(x)
crypto/openssh/regress/unittests/misc/test_hpdelim.c
36
cp = hpdelim(&str);
crypto/openssh/regress/unittests/misc/test_hpdelim.c
38
ASSERT_PTR_EQ(str, NULL);
crypto/openssh/regress/unittests/misc/test_hpdelim.c
44
cp = hpdelim(&str);
crypto/openssh/regress/unittests/misc/test_hpdelim.c
46
ASSERT_PTR_NE(str, NULL);
crypto/openssh/regress/unittests/misc/test_hpdelim.c
47
port = hpdelim(&str);
crypto/openssh/regress/unittests/misc/test_hpdelim.c
49
ASSERT_PTR_EQ(str, NULL);
crypto/openssh/regress/unittests/misc/test_hpdelim.c
55
cp = hpdelim(&str);
crypto/openssh/regress/unittests/misc/test_hpdelim.c
57
ASSERT_PTR_NE(str, NULL);
crypto/openssh/regress/unittests/misc/test_hpdelim.c
58
port = hpdelim(&str);
crypto/openssh/regress/unittests/misc/test_hpdelim.c
60
ASSERT_PTR_EQ(str, NULL);
crypto/openssh/regress/unittests/misc/test_hpdelim.c
66
cp = hpdelim(&str);
crypto/openssh/regress/unittests/misc/test_hpdelim.c
68
ASSERT_PTR_NE(str, NULL);
crypto/openssh/regress/unittests/misc/test_hpdelim.c
69
port = hpdelim(&str);
crypto/openssh/regress/unittests/misc/test_hpdelim.c
71
ASSERT_PTR_EQ(str, NULL);
crypto/openssh/regress/unittests/misc/test_hpdelim.c
77
cp = hpdelim(&str);
crypto/openssh/regress/unittests/misc/test_strdelim.c
100
cp = strdelim(&str);
crypto/openssh/regress/unittests/misc/test_strdelim.c
102
ASSERT_STRING_EQ(str, "blob2");
crypto/openssh/regress/unittests/misc/test_strdelim.c
103
cp = strdelim(&str);
crypto/openssh/regress/unittests/misc/test_strdelim.c
105
ASSERT_PTR_EQ(str, NULL);
crypto/openssh/regress/unittests/misc/test_strdelim.c
106
cp = strdelim(&str);
crypto/openssh/regress/unittests/misc/test_strdelim.c
113
cp = strdelim(&str);
crypto/openssh/regress/unittests/misc/test_strdelim.c
115
ASSERT_STRING_EQ(str, "=blob2");
crypto/openssh/regress/unittests/misc/test_strdelim.c
116
cp = strdelim(&str);
crypto/openssh/regress/unittests/misc/test_strdelim.c
118
ASSERT_STRING_EQ(str, "blob2");
crypto/openssh/regress/unittests/misc/test_strdelim.c
119
cp = strdelim(&str);
crypto/openssh/regress/unittests/misc/test_strdelim.c
121
ASSERT_PTR_EQ(str, NULL);
crypto/openssh/regress/unittests/misc/test_strdelim.c
127
cp = strdelimw(&str);
crypto/openssh/regress/unittests/misc/test_strdelim.c
129
ASSERT_PTR_EQ(str, NULL);
crypto/openssh/regress/unittests/misc/test_strdelim.c
130
cp = strdelimw(&str);
crypto/openssh/regress/unittests/misc/test_strdelim.c
137
cp = strdelim(&str);
crypto/openssh/regress/unittests/misc/test_strdelim.c
139
cp = strdelim(&str);
crypto/openssh/regress/unittests/misc/test_strdelim.c
141
ASSERT_PTR_EQ(str, NULL);
crypto/openssh/regress/unittests/misc/test_strdelim.c
147
cp = strdelim(&str);
crypto/openssh/regress/unittests/misc/test_strdelim.c
149
ASSERT_STRING_EQ(str, "blob2");
crypto/openssh/regress/unittests/misc/test_strdelim.c
150
cp = strdelim(&str);
crypto/openssh/regress/unittests/misc/test_strdelim.c
152
ASSERT_PTR_EQ(str, NULL);
crypto/openssh/regress/unittests/misc/test_strdelim.c
153
cp = strdelim(&str);
crypto/openssh/regress/unittests/misc/test_strdelim.c
160
cp = strdelim(&str);
crypto/openssh/regress/unittests/misc/test_strdelim.c
162
ASSERT_STRING_EQ(str, "\"blob2\"");
crypto/openssh/regress/unittests/misc/test_strdelim.c
163
cp = strdelim(&str);
crypto/openssh/regress/unittests/misc/test_strdelim.c
165
ASSERT_STRING_EQ(str, "");
crypto/openssh/regress/unittests/misc/test_strdelim.c
166
cp = strdelim(&str);
crypto/openssh/regress/unittests/misc/test_strdelim.c
168
ASSERT_PTR_EQ(str, NULL);
crypto/openssh/regress/unittests/misc/test_strdelim.c
174
cp = strdelim(&str);
crypto/openssh/regress/unittests/misc/test_strdelim.c
176
cp = strdelim(&str);
crypto/openssh/regress/unittests/misc/test_strdelim.c
178
cp = strdelim(&str);
crypto/openssh/regress/unittests/misc/test_strdelim.c
180
cp = strdelim(&str);
crypto/openssh/regress/unittests/misc/test_strdelim.c
187
cp = strdelim(&str);
crypto/openssh/regress/unittests/misc/test_strdelim.c
194
cp = strdelim(&str);
crypto/openssh/regress/unittests/misc/test_strdelim.c
196
cp = strdelim(&str);
crypto/openssh/regress/unittests/misc/test_strdelim.c
29
char *orig, *str, *cp;
crypto/openssh/regress/unittests/misc/test_strdelim.c
31
#define START_STRING(x) orig = str = xstrdup(x)
crypto/openssh/regress/unittests/misc/test_strdelim.c
36
cp = strdelim(&str);
crypto/openssh/regress/unittests/misc/test_strdelim.c
38
cp = strdelim(&str);
crypto/openssh/regress/unittests/misc/test_strdelim.c
45
cp = strdelim(&str);
crypto/openssh/regress/unittests/misc/test_strdelim.c
47
ASSERT_STRING_EQ(str, "");
crypto/openssh/regress/unittests/misc/test_strdelim.c
53
cp = strdelim(&str);
crypto/openssh/regress/unittests/misc/test_strdelim.c
55
cp = strdelim(&str);
crypto/openssh/regress/unittests/misc/test_strdelim.c
57
ASSERT_PTR_EQ(str, NULL);
crypto/openssh/regress/unittests/misc/test_strdelim.c
63
cp = strdelim(&str);
crypto/openssh/regress/unittests/misc/test_strdelim.c
65
ASSERT_STRING_EQ(str, "");
crypto/openssh/regress/unittests/misc/test_strdelim.c
66
cp = strdelim(&str);
crypto/openssh/regress/unittests/misc/test_strdelim.c
68
ASSERT_PTR_EQ(str, NULL);
crypto/openssh/regress/unittests/misc/test_strdelim.c
74
cp = strdelim(&str);
crypto/openssh/regress/unittests/misc/test_strdelim.c
76
ASSERT_STRING_EQ(str, "blob2");
crypto/openssh/regress/unittests/misc/test_strdelim.c
77
cp = strdelim(&str);
crypto/openssh/regress/unittests/misc/test_strdelim.c
79
ASSERT_PTR_EQ(str, NULL);
crypto/openssh/regress/unittests/misc/test_strdelim.c
80
cp = strdelim(&str);
crypto/openssh/regress/unittests/misc/test_strdelim.c
87
cp = strdelim(&str);
crypto/openssh/regress/unittests/misc/test_strdelim.c
89
ASSERT_STRING_EQ(str, "blob2 ");
crypto/openssh/regress/unittests/misc/test_strdelim.c
90
cp = strdelim(&str);
crypto/openssh/regress/unittests/misc/test_strdelim.c
92
cp = strdelim(&str);
crypto/openssh/regress/unittests/misc/test_strdelim.c
94
ASSERT_PTR_EQ(str, NULL);
crypto/openssh/scp.c
1681
#define SCREWUP(str) { why = str; goto screwup; }
crypto/openssh/servconf.c
1334
char *str, ***chararrayptr, **charptr, *arg, *arg2, *p, *keyword;
crypto/openssh/servconf.c
1362
str = line;
crypto/openssh/servconf.c
1363
if ((keyword = strdelim(&str)) == NULL)
crypto/openssh/servconf.c
1367
keyword = strdelim(&str);
crypto/openssh/servconf.c
1370
if (str == NULL || *str == '\0') {
crypto/openssh/servconf.c
1379
if (argv_split(str, &oac, &oav, 1) != 0) {
crypto/openssh/servconf.c
1391
debug3("%s:%d setting %s %s", filename, linenum, keyword, str);
crypto/openssh/servconf.c
2409
value = match_cfg_line(str, &ac, &av, linenum,
crypto/openssh/servconf.c
2483
if (str == NULL || *str == '\0')
crypto/openssh/servconf.c
2486
len = strspn(str, WHITESPACE);
crypto/openssh/servconf.c
2488
options->adm_forced_command = xstrdup(str + len);
crypto/openssh/servconf.c
2547
if (str == NULL || *str == '\0')
crypto/openssh/servconf.c
2550
len = strspn(str, WHITESPACE);
crypto/openssh/servconf.c
2551
if (strchr(str + len, '\r') != NULL) {
crypto/openssh/servconf.c
2560
if (strcasecmp(str + len, "none") == 0)
crypto/openssh/servconf.c
2563
options->version_addendum = xstrdup(str + len);
crypto/openssh/servconf.c
2571
len = strspn(str, WHITESPACE);
crypto/openssh/servconf.c
2572
if (str[len] != '/' && strcasecmp(str + len, "none") != 0) {
crypto/openssh/servconf.c
2577
*charptr = xstrdup(str + len);
crypto/openssh/sftp-server.c
285
#define PAPPEND(str) { \
crypto/openssh/sftp-server.c
288
strlcat(ret, str, sizeof(ret)); \
crypto/openssh/ssh-keyscan.c
176
xstrsep(char **str, const char *delim)
crypto/openssh/ssh-keyscan.c
180
if (!**str)
crypto/openssh/ssh-keyscan.c
183
s = *str;
crypto/openssh/ssh-keyscan.c
188
*str = e;
crypto/openssh/ssh.c
220
default_client_percent_expand(const char *str,
crypto/openssh/ssh.c
223
return percent_expand(str,
crypto/openssh/ssh.c
234
default_client_percent_dollar_expand(const char *str,
crypto/openssh/ssh.c
239
ret = percent_dollar_expand(str,
crypto/openssh/utf8.c
104
vasnmprintf(char **str, size_t maxsz, int *wp, const char *fmt, va_list ap)
crypto/openssh/utf8.c
211
*str = dst;
crypto/openssh/utf8.c
231
*str = src;
crypto/openssh/utf8.c
234
*str = NULL;
crypto/openssh/utf8.c
240
snmprintf(char *str, size_t sz, int *wp, const char *fmt, ...)
crypto/openssh/utf8.c
250
(void)strlcpy(str, cp, sz);
crypto/openssh/utf8.c
253
*str = '\0';
crypto/openssh/utf8.c
279
char *str = NULL;
crypto/openssh/utf8.c
282
if ((ret = vasnmprintf(&str, INT_MAX, NULL, fmt, ap)) < 0) {
crypto/openssh/utf8.c
283
free(str);
crypto/openssh/utf8.c
286
if (fputs(str, stream) == EOF)
crypto/openssh/utf8.c
288
free(str);
crypto/openssh/xmalloc.c
87
xstrdup(const char *str)
crypto/openssh/xmalloc.c
92
len = strlen(str) + 1;
crypto/openssh/xmalloc.c
94
return memcpy(cp, str, len);
crypto/openssl/apps/asn1parse.c
194
if (PEM_read_bio(in, &name, &header, &str, &num) != 1) {
crypto/openssl/apps/asn1parse.c
199
buf->data = (char *)str;
crypto/openssl/apps/asn1parse.c
237
str = (unsigned char *)buf->data;
crypto/openssl/apps/asn1parse.c
243
tmpbuf = str;
crypto/openssl/apps/asn1parse.c
277
str = tmpbuf;
crypto/openssl/apps/asn1parse.c
291
if (BIO_write(derout, str + offset, length) != (int)length) {
crypto/openssl/apps/asn1parse.c
298
const unsigned char *p = str + offset;
crypto/openssl/apps/asn1parse.c
80
unsigned char *str = NULL;
crypto/openssl/apps/ca.c
134
static int check_time_format(const char *str);
crypto/openssl/apps/ca.c
138
static int make_revoked(X509_REVOKED *rev, const char *str);
crypto/openssl/apps/ca.c
139
static int old_entry_print(const ASN1_OBJECT *obj, const ASN1_STRING *str);
crypto/openssl/apps/ca.c
1501
ASN1_STRING *str, *str2;
crypto/openssl/apps/ca.c
1533
str = X509_NAME_ENTRY_get_data(ne);
crypto/openssl/apps/ca.c
1540
if (str->type == V_ASN1_UNIVERSALSTRING)
crypto/openssl/apps/ca.c
1541
ASN1_UNIVERSALSTRING_to_string(str);
crypto/openssl/apps/ca.c
1543
if (str->type == V_ASN1_IA5STRING && nid != NID_pkcs9_emailAddress)
crypto/openssl/apps/ca.c
1544
str->type = V_ASN1_T61STRING;
crypto/openssl/apps/ca.c
1547
&& str->type == V_ASN1_PRINTABLESTRING)
crypto/openssl/apps/ca.c
1548
str->type = V_ASN1_IA5STRING;
crypto/openssl/apps/ca.c
1556
if (nid == NID_pkcs9_emailAddress && str->type != V_ASN1_IA5STRING) {
crypto/openssl/apps/ca.c
1561
if (str->type != V_ASN1_BMPSTRING && str->type != V_ASN1_UTF8STRING) {
crypto/openssl/apps/ca.c
1562
j = ASN1_PRINTABLE_type(str->data, str->length);
crypto/openssl/apps/ca.c
1563
if ((j == V_ASN1_T61STRING && str->type != V_ASN1_T61STRING) || (j == V_ASN1_IA5STRING && str->type == V_ASN1_PRINTABLESTRING)) {
crypto/openssl/apps/ca.c
1571
old_entry_print(obj, str);
crypto/openssl/apps/ca.c
1587
str = str2 = NULL;
crypto/openssl/apps/ca.c
1650
str = X509_NAME_ENTRY_get_data(tne);
crypto/openssl/apps/ca.c
1653
if (ASN1_STRING_cmp(str, str2) != 0)
crypto/openssl/apps/ca.c
1662
((str == NULL) ? "NULL" : (char *)str->data));
crypto/openssl/apps/ca.c
2129
static int check_time_format(const char *str)
crypto/openssl/apps/ca.c
2131
return ASN1_TIME_set_string(NULL, str);
crypto/openssl/apps/ca.c
2384
char *str;
crypto/openssl/apps/ca.c
2452
str = app_malloc(i, "revocation reason");
crypto/openssl/apps/ca.c
2453
OPENSSL_strlcpy(str, (char *)revtm->data, i);
crypto/openssl/apps/ca.c
2455
OPENSSL_strlcat(str, ",", i);
crypto/openssl/apps/ca.c
2456
OPENSSL_strlcat(str, reason, i);
crypto/openssl/apps/ca.c
2459
OPENSSL_strlcat(str, ",", i);
crypto/openssl/apps/ca.c
2460
OPENSSL_strlcat(str, other, i);
crypto/openssl/apps/ca.c
2463
return str;
crypto/openssl/apps/ca.c
2474
static int make_revoked(X509_REVOKED *rev, const char *str)
crypto/openssl/apps/ca.c
2485
i = unpack_revinfo(&revDate, &reason_code, &hold, &comp_time, str);
crypto/openssl/apps/ca.c
2526
static int old_entry_print(const ASN1_OBJECT *obj, const ASN1_STRING *str)
crypto/openssl/apps/ca.c
2540
if (str->type == V_ASN1_PRINTABLESTRING)
crypto/openssl/apps/ca.c
2542
else if (str->type == V_ASN1_T61STRING)
crypto/openssl/apps/ca.c
2544
else if (str->type == V_ASN1_IA5STRING)
crypto/openssl/apps/ca.c
2546
else if (str->type == V_ASN1_UNIVERSALSTRING)
crypto/openssl/apps/ca.c
2549
BIO_printf(bio_err, "ASN.1 %2d:'", str->type);
crypto/openssl/apps/ca.c
2551
p = (const char *)str->data;
crypto/openssl/apps/ca.c
2552
for (j = str->length; j > 0; j--) {
crypto/openssl/apps/ca.c
2568
ASN1_GENERALIZEDTIME **pinvtm, const char *str)
crypto/openssl/apps/ca.c
2578
tmp = OPENSSL_strdup(str);
crypto/openssl/apps/cmp.c
1023
static int set_name(const char *str,
crypto/openssl/apps/cmp.c
1027
if (str != NULL) {
crypto/openssl/apps/cmp.c
1028
X509_NAME *n = parse_name(str, MBSTRING_UTF8, 1, desc);
crypto/openssl/apps/cmp.c
2699
char *str = conf_get_string(conf_, groups, name);
crypto/openssl/apps/cmp.c
2703
if (str == NULL || *str == '\0')
crypto/openssl/apps/cmp.c
2706
res = strtol(str, &tailptr, 10);
crypto/openssl/apps/cms.c
1506
char *str = sk_OPENSSL_STRING_value(ns, i);
crypto/openssl/apps/cms.c
1507
gen = a2i_GENERAL_NAME(NULL, NULL, NULL, GEN_EMAIL, str, 0);
crypto/openssl/apps/enc.c
156
char *str = NULL, *passarg = NULL, *pass = NULL, *strbuf = NULL;
crypto/openssl/apps/enc.c
293
str = opt_arg();
crypto/openssl/apps/enc.c
313
str = buf;
crypto/openssl/apps/enc.c
430
if (str == NULL && passarg != NULL) {
crypto/openssl/apps/enc.c
435
str = pass;
crypto/openssl/apps/enc.c
438
if ((str == NULL) && (cipher != NULL) && (hkey == NULL) && (skeyopts == NULL)) {
crypto/openssl/apps/enc.c
454
str = strbuf;
crypto/openssl/apps/enc.c
542
if (str != NULL) { /* a passphrase is available */
crypto/openssl/apps/enc.c
549
size_t str_len = strlen(str);
crypto/openssl/apps/enc.c
613
if (!PKCS5_PBKDF2_HMAC(str, str_len, sptr, islen,
crypto/openssl/apps/enc.c
627
(unsigned char *)str, str_len,
crypto/openssl/apps/enc.c
638
if (str == strbuf)
crypto/openssl/apps/enc.c
639
OPENSSL_cleanse(str, SIZE);
crypto/openssl/apps/enc.c
641
OPENSSL_cleanse(str, str_len);
crypto/openssl/apps/enc.c
653
if ((hiv == NULL) && (str == NULL)
crypto/openssl/apps/include/apps.h
129
void cleanse(char *str);
crypto/openssl/apps/include/apps.h
130
void clear_free(char *str);
crypto/openssl/apps/include/apps.h
200
ASN1_GENERALIZEDTIME **pinvtm, const char *str);
crypto/openssl/apps/include/apps.h
251
int parse_yesno(const char *str, int def);
crypto/openssl/apps/include/apps.h
253
X509_NAME *parse_name(const char *str, int chtype, int multirdn,
crypto/openssl/apps/include/s_apps.h
76
int config_ctx(SSL_CONF_CTX *cctx, STACK_OF(OPENSSL_STRING) *str, SSL_CTX *ctx);
crypto/openssl/apps/lib/apps.c
1884
int parse_yesno(const char *str, int def)
crypto/openssl/apps/lib/apps.c
1886
if (str) {
crypto/openssl/apps/lib/apps.c
1887
switch (*str) {
crypto/openssl/apps/lib/apps.c
549
void cleanse(char *str)
crypto/openssl/apps/lib/apps.c
551
if (str != NULL)
crypto/openssl/apps/lib/apps.c
552
OPENSSL_cleanse(str, strlen(str));
crypto/openssl/apps/lib/apps.c
555
void clear_free(char *str)
crypto/openssl/apps/lib/apps.c
557
if (str != NULL)
crypto/openssl/apps/lib/apps.c
558
OPENSSL_clear_free(str, strlen(str));
crypto/openssl/apps/lib/cmp_mock_srv.c
346
ASN1_UTF8STRING *str;
crypto/openssl/apps/lib/cmp_mock_srv.c
356
str = sk_ASN1_UTF8STRING_value(strs, 0);
crypto/openssl/apps/lib/cmp_mock_srv.c
357
if (str == NULL
crypto/openssl/apps/lib/cmp_mock_srv.c
358
|| (data = (const char *)ASN1_STRING_get0_data(str)) == NULL) {
crypto/openssl/apps/lib/log.c
33
static int print_syslog(const char *str, size_t len, void *levPtr)
crypto/openssl/apps/lib/log.c
38
syslog(level, "%.*s", ilen, str);
crypto/openssl/apps/lib/s_cb.c
1344
int config_ctx(SSL_CONF_CTX *cctx, STACK_OF(OPENSSL_STRING) *str,
crypto/openssl/apps/lib/s_cb.c
1350
for (i = 0; i < sk_OPENSSL_STRING_num(str); i += 2) {
crypto/openssl/apps/lib/s_cb.c
1351
const char *flag = sk_OPENSSL_STRING_value(str, i);
crypto/openssl/apps/lib/s_cb.c
1352
const char *arg = sk_OPENSSL_STRING_value(str, i + 1);
crypto/openssl/apps/lib/s_cb.c
549
const char *str;
crypto/openssl/apps/lib/s_cb.c
555
str = "SSL_connect";
crypto/openssl/apps/lib/s_cb.c
557
str = "SSL_accept";
crypto/openssl/apps/lib/s_cb.c
559
str = "undefined";
crypto/openssl/apps/lib/s_cb.c
562
BIO_printf(bio_err, "%s:%s\n", str, SSL_state_string_long(s));
crypto/openssl/apps/lib/s_cb.c
564
str = (where & SSL_CB_READ) ? "read" : "write";
crypto/openssl/apps/lib/s_cb.c
566
str,
crypto/openssl/apps/lib/s_cb.c
572
str, SSL_state_string_long(s));
crypto/openssl/apps/lib/s_cb.c
575
str, SSL_state_string_long(s));
crypto/openssl/apps/openssl.c
197
static void setup_trace(const char *str)
crypto/openssl/apps/openssl.c
209
val = OPENSSL_strdup(str);
crypto/openssl/apps/pkcs12.c
1379
static int set_pbe(int *ppbe, const char *str)
crypto/openssl/apps/pkcs12.c
1381
if (!str)
crypto/openssl/apps/pkcs12.c
1383
if (strcmp(str, "NONE") == 0) {
crypto/openssl/apps/pkcs12.c
1387
*ppbe = OBJ_txt2nid(str);
crypto/openssl/apps/pkcs12.c
1389
BIO_printf(bio_err, "Unknown PBE algorithm %s\n", str);
crypto/openssl/apps/pkcs12.c
57
static int set_pbe(int *ppbe, const char *str);
crypto/openssl/apps/req.c
1486
static int check_end(const char *str, const char *end)
crypto/openssl/apps/req.c
1492
slen = strlen(str);
crypto/openssl/apps/req.c
1495
tmp = str + slen - elen;
crypto/openssl/apps/req.c
70
static int check_end(const char *str, const char *end);
crypto/openssl/apps/s_server.c
264
static int ebcdic_puts(BIO *bp, const char *str);
crypto/openssl/apps/s_server.c
2862
static const char str[] = "Lets print some clear text\n";
crypto/openssl/apps/s_server.c
2863
BIO_write(SSL_get_wbio(con), str, sizeof(str) - 1);
crypto/openssl/apps/s_server.c
3152
const char *str;
crypto/openssl/apps/s_server.c
3190
str = SSL_CIPHER_get_name(SSL_get_current_cipher(con));
crypto/openssl/apps/s_server.c
3197
BIO_printf(bio_s_out, "CIPHER is %s\n", (str != NULL) ? str : "(NONE)");
crypto/openssl/apps/s_server.c
410
static int ebcdic_puts(BIO *bp, const char *str)
crypto/openssl/apps/s_server.c
414
return ebcdic_write(bp, str, strlen(str));
crypto/openssl/apps/speed.c
124
static void pkey_print_message(const char *str, const char *str2,
crypto/openssl/apps/speed.c
126
static void kskey_print_message(const char *str, const char *str2, int tm);
crypto/openssl/apps/speed.c
4860
static void pkey_print_message(const char *str, const char *str2, unsigned int bits,
crypto/openssl/apps/speed.c
4866
bits, str, str2, tm);
crypto/openssl/apps/speed.c
4872
static void kskey_print_message(const char *str, const char *str2, int tm)
crypto/openssl/apps/speed.c
4877
str, str2, tm);
crypto/openssl/apps/speed.c
4922
static int strtoint(const char *str, const int min_val, const int upper_val,
crypto/openssl/apps/speed.c
4929
val = strtol(str, &end, 10);
crypto/openssl/apps/speed.c
4930
if (errno == 0 && end != str && *end == 0
crypto/openssl/crypto/LPdir_vms.c
186
str$free1_dx(&(*ctx)->result_dsc);
crypto/openssl/crypto/asn1/a_digest.c
32
unsigned char *str, *p;
crypto/openssl/crypto/asn1/a_digest.c
39
if ((str = OPENSSL_malloc(inl)) == NULL)
crypto/openssl/crypto/asn1/a_digest.c
41
p = str;
crypto/openssl/crypto/asn1/a_digest.c
44
if (!EVP_Digest(str, inl, md, len, type, NULL)) {
crypto/openssl/crypto/asn1/a_digest.c
45
OPENSSL_free(str);
crypto/openssl/crypto/asn1/a_digest.c
48
OPENSSL_free(str);
crypto/openssl/crypto/asn1/a_digest.c
59
unsigned char *str = NULL;
crypto/openssl/crypto/asn1/a_digest.c
62
i = ASN1_item_i2d(asn, &str, it);
crypto/openssl/crypto/asn1/a_digest.c
63
if (i < 0 || str == NULL)
crypto/openssl/crypto/asn1/a_digest.c
79
ret = EVP_Digest(str, i, data, len, fetched_md, NULL);
crypto/openssl/crypto/asn1/a_digest.c
81
OPENSSL_free(str);
crypto/openssl/crypto/asn1/a_gentm.c
38
int ASN1_GENERALIZEDTIME_set_string(ASN1_GENERALIZEDTIME *s, const char *str)
crypto/openssl/crypto/asn1/a_gentm.c
43
t.length = strlen(str);
crypto/openssl/crypto/asn1/a_gentm.c
44
t.data = (unsigned char *)str;
crypto/openssl/crypto/asn1/a_strex.c
257
const ASN1_STRING *str)
crypto/openssl/crypto/asn1/a_strex.c
271
outlen = do_hex_dump(io_ch, arg, str->data, str->length);
crypto/openssl/crypto/asn1/a_strex.c
276
t.type = str->type;
crypto/openssl/crypto/asn1/a_strex.c
277
t.value.ptr = (char *)str;
crypto/openssl/crypto/asn1/a_strex.c
326
const ASN1_STRING *str)
crypto/openssl/crypto/asn1/a_strex.c
336
type = str->type;
crypto/openssl/crypto/asn1/a_strex.c
370
len = do_dump(lflags, io_ch, arg, str);
crypto/openssl/crypto/asn1/a_strex.c
389
len = do_buf(str->data, str->length, type, flags, &quotes, io_ch, NULL);
crypto/openssl/crypto/asn1/a_strex.c
399
if (do_buf(str->data, str->length, type, flags, NULL, io_ch, arg) < 0)
crypto/openssl/crypto/asn1/a_strex.c
584
int ASN1_STRING_print_ex(BIO *out, const ASN1_STRING *str, unsigned long flags)
crypto/openssl/crypto/asn1/a_strex.c
586
return do_print_ex(send_bio_chars, out, flags, str);
crypto/openssl/crypto/asn1/a_strex.c
590
int ASN1_STRING_print_ex_fp(FILE *fp, const ASN1_STRING *str, unsigned long flags)
crypto/openssl/crypto/asn1/a_strex.c
592
return do_print_ex(send_fp_chars, fp, flags, str);
crypto/openssl/crypto/asn1/a_strex.c
603
ASN1_STRING stmp, *str = &stmp;
crypto/openssl/crypto/asn1/a_strex.c
617
ret = ASN1_mbstring_copy(&str, in->data, in->length, mbflag,
crypto/openssl/crypto/asn1/a_strnid.c
84
ASN1_STRING *str = NULL;
crypto/openssl/crypto/asn1/a_strnid.c
89
out = &str;
crypto/openssl/crypto/asn1/a_time.c
376
int ASN1_TIME_set_string(ASN1_TIME *s, const char *str)
crypto/openssl/crypto/asn1/a_time.c
379
if (ASN1_UTCTIME_set_string(s, str))
crypto/openssl/crypto/asn1/a_time.c
381
return ASN1_GENERALIZEDTIME_set_string(s, str);
crypto/openssl/crypto/asn1/a_time.c
384
int ASN1_TIME_set_string_X509(ASN1_TIME *s, const char *str)
crypto/openssl/crypto/asn1/a_time.c
390
t.length = strlen(str);
crypto/openssl/crypto/asn1/a_time.c
391
t.data = (unsigned char *)str;
crypto/openssl/crypto/asn1/a_time.c
429
memcpy(t.data, str + 2, t.length);
crypto/openssl/crypto/asn1/a_time.c
437
if (t.data != (unsigned char *)str)
crypto/openssl/crypto/asn1/a_utctm.c
34
int ASN1_UTCTIME_set_string(ASN1_UTCTIME *s, const char *str)
crypto/openssl/crypto/asn1/a_utctm.c
39
t.length = strlen(str);
crypto/openssl/crypto/asn1/a_utctm.c
40
t.data = (unsigned char *)str;
crypto/openssl/crypto/asn1/a_utf8.c
100
if (str)
crypto/openssl/crypto/asn1/a_utf8.c
101
*str = (unsigned char)value;
crypto/openssl/crypto/asn1/a_utf8.c
107
if (str) {
crypto/openssl/crypto/asn1/a_utf8.c
108
*str++ = (unsigned char)(((value >> 6) & 0x1f) | 0xc0);
crypto/openssl/crypto/asn1/a_utf8.c
109
*str = (unsigned char)((value & 0x3f) | 0x80);
crypto/openssl/crypto/asn1/a_utf8.c
118
if (str) {
crypto/openssl/crypto/asn1/a_utf8.c
119
*str++ = (unsigned char)(((value >> 12) & 0xf) | 0xe0);
crypto/openssl/crypto/asn1/a_utf8.c
120
*str++ = (unsigned char)(((value >> 6) & 0x3f) | 0x80);
crypto/openssl/crypto/asn1/a_utf8.c
121
*str = (unsigned char)((value & 0x3f) | 0x80);
crypto/openssl/crypto/asn1/a_utf8.c
128
if (str) {
crypto/openssl/crypto/asn1/a_utf8.c
129
*str++ = (unsigned char)(((value >> 18) & 0x7) | 0xf0);
crypto/openssl/crypto/asn1/a_utf8.c
130
*str++ = (unsigned char)(((value >> 12) & 0x3f) | 0x80);
crypto/openssl/crypto/asn1/a_utf8.c
131
*str++ = (unsigned char)(((value >> 6) & 0x3f) | 0x80);
crypto/openssl/crypto/asn1/a_utf8.c
132
*str = (unsigned char)((value & 0x3f) | 0x80);
crypto/openssl/crypto/asn1/a_utf8.c
28
int UTF8_getc(const unsigned char *str, int len, unsigned long *val)
crypto/openssl/crypto/asn1/a_utf8.c
35
p = str;
crypto/openssl/crypto/asn1/a_utf8.c
93
int UTF8_putc(unsigned char *str, int len, unsigned long value)
crypto/openssl/crypto/asn1/a_utf8.c
95
if (!str)
crypto/openssl/crypto/asn1/ameth_lib.c
107
const char *str, int len)
crypto/openssl/crypto/asn1/ameth_lib.c
113
len = strlen(str);
crypto/openssl/crypto/asn1/ameth_lib.c
117
ameth = ENGINE_pkey_asn1_find_str(&e, str, len);
crypto/openssl/crypto/asn1/ameth_lib.c
136
&& OPENSSL_strncasecmp(ameth->pem_str, str, len) == 0)
crypto/openssl/crypto/asn1/asn1_gen.c
121
if (CONF_parse_list(str, ',', 1, asn1_cb, &asn1_tags) != 0) {
crypto/openssl/crypto/asn1/asn1_gen.c
136
ret = asn1_multi(asn1_tags.utype, asn1_tags.str, cnf, depth, perr);
crypto/openssl/crypto/asn1/asn1_gen.c
138
ret = asn1_str2type(asn1_tags.str, asn1_tags.format, asn1_tags.utype);
crypto/openssl/crypto/asn1/asn1_gen.c
25
#define ASN1_GEN_STR(str, val) { str, sizeof(str) - 1, val }
crypto/openssl/crypto/asn1/asn1_gen.c
282
arg->str = vstart;
crypto/openssl/crypto/asn1/asn1_gen.c
580
static ASN1_TYPE *asn1_str2type(const char *str, int format, int utype)
crypto/openssl/crypto/asn1/asn1_gen.c
593
if (!str)
crypto/openssl/crypto/asn1/asn1_gen.c
594
str = "";
crypto/openssl/crypto/asn1/asn1_gen.c
599
if (str && *str) {
crypto/openssl/crypto/asn1/asn1_gen.c
61
const char *str;
crypto/openssl/crypto/asn1/asn1_gen.c
612
vtmp.value = (char *)str;
crypto/openssl/crypto/asn1/asn1_gen.c
626
= s2i_ASN1_INTEGER(NULL, str))
crypto/openssl/crypto/asn1/asn1_gen.c
638
if ((atmp->value.object = OBJ_txt2obj(str, 0)) == NULL) {
crypto/openssl/crypto/asn1/asn1_gen.c
654
if (!ASN1_STRING_set(atmp->value.asn1_string, str, -1)) {
crypto/openssl/crypto/asn1/asn1_gen.c
66
static ASN1_TYPE *generate_v3(const char *str, X509V3_CTX *cnf, int depth,
crypto/openssl/crypto/asn1/asn1_gen.c
684
if (ASN1_mbstring_copy(&atmp->value.asn1_string, (unsigned char *)str,
crypto/openssl/crypto/asn1/asn1_gen.c
701
if ((rdata = OPENSSL_hexstr2buf(str, &rdlen)) == NULL) {
crypto/openssl/crypto/asn1/asn1_gen.c
709
if (!ASN1_STRING_set(atmp->value.asn1_string, str, -1)) {
crypto/openssl/crypto/asn1/asn1_gen.c
715
if (!CONF_parse_list(str, ',', 1, bitstr_cb, atmp->value.bit_string)) {
crypto/openssl/crypto/asn1/asn1_gen.c
740
ERR_add_error_data(2, "string=", str);
crypto/openssl/crypto/asn1/asn1_gen.c
76
static ASN1_TYPE *asn1_str2type(const char *str, int format, int utype);
crypto/openssl/crypto/asn1/asn1_gen.c
787
int ASN1_str2mask(const char *str, unsigned long *pmask)
crypto/openssl/crypto/asn1/asn1_gen.c
79
ASN1_TYPE *ASN1_generate_nconf(const char *str, CONF *nconf)
crypto/openssl/crypto/asn1/asn1_gen.c
790
return CONF_parse_list(str, '|', 1, mask_cb, pmask);
crypto/openssl/crypto/asn1/asn1_gen.c
84
return ASN1_generate_v3(str, NULL);
crypto/openssl/crypto/asn1/asn1_gen.c
87
return ASN1_generate_v3(str, &cnf);
crypto/openssl/crypto/asn1/asn1_gen.c
90
ASN1_TYPE *ASN1_generate_v3(const char *str, X509V3_CTX *cnf)
crypto/openssl/crypto/asn1/asn1_gen.c
93
ASN1_TYPE *ret = generate_v3(str, cnf, 0, &err);
crypto/openssl/crypto/asn1/asn1_gen.c
99
static ASN1_TYPE *generate_v3(const char *str, X509V3_CTX *cnf, int depth,
crypto/openssl/crypto/asn1/asn1_lib.c
251
void ossl_asn1_string_set_bits_left(ASN1_STRING *str, unsigned int num)
crypto/openssl/crypto/asn1/asn1_lib.c
253
str->flags &= ~0x07;
crypto/openssl/crypto/asn1/asn1_lib.c
254
str->flags |= ASN1_STRING_FLAG_BITS_LEFT | (num & 0x07);
crypto/openssl/crypto/asn1/asn1_lib.c
257
int ASN1_STRING_copy(ASN1_STRING *dst, const ASN1_STRING *str)
crypto/openssl/crypto/asn1/asn1_lib.c
259
if (str == NULL)
crypto/openssl/crypto/asn1/asn1_lib.c
261
dst->type = str->type;
crypto/openssl/crypto/asn1/asn1_lib.c
262
if (!ASN1_STRING_set(dst, str->data, str->length))
crypto/openssl/crypto/asn1/asn1_lib.c
266
dst->flags |= str->flags & ~ASN1_STRING_FLAG_EMBED;
crypto/openssl/crypto/asn1/asn1_lib.c
270
ASN1_STRING *ASN1_STRING_dup(const ASN1_STRING *str)
crypto/openssl/crypto/asn1/asn1_lib.c
274
if (!str)
crypto/openssl/crypto/asn1/asn1_lib.c
279
if (!ASN1_STRING_copy(ret, str)) {
crypto/openssl/crypto/asn1/asn1_lib.c
286
int ASN1_STRING_set(ASN1_STRING *str, const void *_data, int len_in)
crypto/openssl/crypto/asn1/asn1_lib.c
308
if ((size_t)str->length <= len || str->data == NULL) {
crypto/openssl/crypto/asn1/asn1_lib.c
309
c = str->data;
crypto/openssl/crypto/asn1/asn1_lib.c
312
str->data = OPENSSL_realloc(c, len != 0 ? len : 1);
crypto/openssl/crypto/asn1/asn1_lib.c
314
str->data = OPENSSL_realloc(c, len + 1);
crypto/openssl/crypto/asn1/asn1_lib.c
316
if (str->data == NULL) {
crypto/openssl/crypto/asn1/asn1_lib.c
317
str->data = c;
crypto/openssl/crypto/asn1/asn1_lib.c
321
str->length = len;
crypto/openssl/crypto/asn1/asn1_lib.c
323
memcpy(str->data, data, len);
crypto/openssl/crypto/asn1/asn1_lib.c
327
str->data[len] = '~';
crypto/openssl/crypto/asn1/asn1_lib.c
333
str->data[len] = '\0';
crypto/openssl/crypto/asn1/asn1_lib.c
339
void ASN1_STRING_set0(ASN1_STRING *str, void *data, int len)
crypto/openssl/crypto/asn1/asn1_lib.c
341
OPENSSL_free(str->data);
crypto/openssl/crypto/asn1/asn1_lib.c
342
str->data = data;
crypto/openssl/crypto/asn1/asn1_lib.c
343
str->length = len;
crypto/openssl/crypto/asn1/asn1_parse.c
25
char str[128];
crypto/openssl/crypto/asn1/asn1_parse.c
37
if (BIO_snprintf(str, sizeof(str), "%5ld:d=%-2d hl=%ld l=%4ld %s",
crypto/openssl/crypto/asn1/asn1_parse.c
42
if (BIO_snprintf(str, sizeof(str), "%5ld:d=%-2d hl=%ld l=inf %s",
crypto/openssl/crypto/asn1/asn1_parse.c
48
if (BIO_set_prefix(bp, str) <= 0) {
crypto/openssl/crypto/asn1/asn1_parse.c
55
if (BIO_set_prefix(bp, str) <= 0 || BIO_set_indent(bp, indent) <= 0)
crypto/openssl/crypto/asn1/asn1_parse.c
63
p = str;
crypto/openssl/crypto/asn1/asn1_parse.c
65
BIO_snprintf(str, sizeof(str), "priv [ %d ] ", tag);
crypto/openssl/crypto/asn1/asn1_parse.c
67
BIO_snprintf(str, sizeof(str), "cont [ %d ]", tag);
crypto/openssl/crypto/asn1/asn1_parse.c
69
BIO_snprintf(str, sizeof(str), "appl [ %d ]", tag);
crypto/openssl/crypto/asn1/asn1_parse.c
71
BIO_snprintf(str, sizeof(str), "<ASN1 %d>", tag);
crypto/openssl/crypto/asn1/bio_asn1.c
300
static int asn1_bio_puts(BIO *b, const char *str)
crypto/openssl/crypto/asn1/bio_asn1.c
302
return asn1_bio_write(b, str, strlen(str));
crypto/openssl/crypto/asn1/bio_asn1.c
305
static int asn1_bio_gets(BIO *b, char *str, int size)
crypto/openssl/crypto/asn1/bio_asn1.c
310
return BIO_gets(next, str, size);
crypto/openssl/crypto/asn1/bio_asn1.c
64
static int asn1_bio_puts(BIO *h, const char *str);
crypto/openssl/crypto/asn1/bio_asn1.c
65
static int asn1_bio_gets(BIO *h, char *str, int size);
crypto/openssl/crypto/asn1/tasn_new.c
263
ASN1_STRING *str;
crypto/openssl/crypto/asn1/tasn_new.c
308
str = *(ASN1_STRING **)pval;
crypto/openssl/crypto/asn1/tasn_new.c
309
memset(str, 0, sizeof(*str));
crypto/openssl/crypto/asn1/tasn_new.c
310
str->type = utype;
crypto/openssl/crypto/asn1/tasn_new.c
311
str->flags = ASN1_STRING_FLAG_EMBED;
crypto/openssl/crypto/asn1/tasn_new.c
313
str = ASN1_STRING_type_new(utype);
crypto/openssl/crypto/asn1/tasn_new.c
314
*pval = (ASN1_VALUE *)str;
crypto/openssl/crypto/asn1/tasn_new.c
316
if (it->itype == ASN1_ITYPE_MSTRING && str)
crypto/openssl/crypto/asn1/tasn_new.c
317
str->flags |= ASN1_STRING_FLAG_MSTRING;
crypto/openssl/crypto/asn1/tasn_prn.c
369
const char *str;
crypto/openssl/crypto/asn1/tasn_prn.c
372
str = "BOOL ABSENT";
crypto/openssl/crypto/asn1/tasn_prn.c
376
str = "FALSE";
crypto/openssl/crypto/asn1/tasn_prn.c
380
str = "TRUE";
crypto/openssl/crypto/asn1/tasn_prn.c
384
if (BIO_puts(out, str) <= 0)
crypto/openssl/crypto/asn1/tasn_prn.c
389
static int asn1_print_integer(BIO *out, const ASN1_INTEGER *str)
crypto/openssl/crypto/asn1/tasn_prn.c
393
s = i2s_ASN1_INTEGER(NULL, str);
crypto/openssl/crypto/asn1/tasn_prn.c
415
static int asn1_print_obstring(BIO *out, const ASN1_STRING *str, int indent)
crypto/openssl/crypto/asn1/tasn_prn.c
417
if (str->type == V_ASN1_BIT_STRING) {
crypto/openssl/crypto/asn1/tasn_prn.c
418
if (BIO_printf(out, " (%ld unused bits)\n", str->flags & 0x7) <= 0)
crypto/openssl/crypto/asn1/tasn_prn.c
422
if ((str->length > 0)
crypto/openssl/crypto/asn1/tasn_prn.c
423
&& BIO_dump_indent(out, (const char *)str->data, str->length,
crypto/openssl/crypto/asn1/tasn_prn.c
436
ASN1_STRING *str;
crypto/openssl/crypto/asn1/tasn_prn.c
446
str = (ASN1_STRING *)*fld;
crypto/openssl/crypto/asn1/tasn_prn.c
447
utype = str->type & ~V_ASN1_NEG;
crypto/openssl/crypto/asn1/tasn_prn.c
451
str = NULL;
crypto/openssl/crypto/asn1/tasn_prn.c
453
str = (ASN1_STRING *)*fld;
crypto/openssl/crypto/asn1/tasn_prn.c
459
str = (ASN1_STRING *)*fld;
crypto/openssl/crypto/asn1/tasn_prn.c
494
ret = asn1_print_integer(out, str);
crypto/openssl/crypto/asn1/tasn_prn.c
498
ret = ASN1_UTCTIME_print(out, str);
crypto/openssl/crypto/asn1/tasn_prn.c
502
ret = ASN1_GENERALIZEDTIME_print(out, str);
crypto/openssl/crypto/asn1/tasn_prn.c
511
ret = asn1_print_obstring(out, str, indent);
crypto/openssl/crypto/asn1/tasn_prn.c
520
if (ASN1_parse_dump(out, str->data, str->length, indent, 0) <= 0)
crypto/openssl/crypto/asn1/tasn_prn.c
526
ret = ASN1_STRING_print_ex(out, str, pctx->str_flags);
crypto/openssl/crypto/bio/bf_buff.c
17
static int buffer_puts(BIO *h, const char *str);
crypto/openssl/crypto/bio/bf_buff.c
18
static int buffer_gets(BIO *h, char *str, int size);
crypto/openssl/crypto/bio/bf_buff.c
465
static int buffer_puts(BIO *b, const char *str)
crypto/openssl/crypto/bio/bf_buff.c
467
return buffer_write(b, str, strlen(str));
crypto/openssl/crypto/bio/bf_lbuf.c
18
static int linebuffer_puts(BIO *h, const char *str);
crypto/openssl/crypto/bio/bf_lbuf.c
19
static int linebuffer_gets(BIO *h, char *str, int size);
crypto/openssl/crypto/bio/bf_lbuf.c
332
static int linebuffer_puts(BIO *b, const char *str)
crypto/openssl/crypto/bio/bf_lbuf.c
334
return linebuffer_write(b, str, strlen(str));
crypto/openssl/crypto/bio/bf_nbio.c
184
static int nbiof_puts(BIO *bp, const char *str)
crypto/openssl/crypto/bio/bf_nbio.c
188
return BIO_puts(bp->next_bio, str);
crypto/openssl/crypto/bio/bf_nbio.c
22
static int nbiof_puts(BIO *h, const char *str);
crypto/openssl/crypto/bio/bf_nbio.c
23
static int nbiof_gets(BIO *h, char *str, int size);
crypto/openssl/crypto/bio/bf_null.c
108
static int nullf_puts(BIO *bp, const char *str)
crypto/openssl/crypto/bio/bf_null.c
112
return BIO_puts(bp->next_bio, str);
crypto/openssl/crypto/bio/bf_null.c
21
static int nullf_puts(BIO *h, const char *str);
crypto/openssl/crypto/bio/bf_null.c
22
static int nullf_gets(BIO *h, char *str, int size);
crypto/openssl/crypto/bio/bf_prefix.c
18
static int prefix_puts(BIO *b, const char *str);
crypto/openssl/crypto/bio/bf_prefix.c
19
static int prefix_gets(BIO *b, char *str, int size);
crypto/openssl/crypto/bio/bf_prefix.c
204
static int prefix_puts(BIO *b, const char *str)
crypto/openssl/crypto/bio/bf_prefix.c
206
return BIO_write(b, str, strlen(str));
crypto/openssl/crypto/bio/bf_readbuff.c
157
static int readbuffer_puts(BIO *b, const char *str)
crypto/openssl/crypto/bio/bf_readbuff.c
26
static int readbuffer_puts(BIO *h, const char *str);
crypto/openssl/crypto/bio/bf_readbuff.c
27
static int readbuffer_gets(BIO *h, char *str, int size);
crypto/openssl/crypto/bio/bio_sock.c
45
int BIO_get_host_ip(const char *str, unsigned char *ip)
crypto/openssl/crypto/bio/bio_sock.c
53
if (BIO_lookup(str, NULL, BIO_LOOKUP_CLIENT, AF_INET, SOCK_STREAM, &res)) {
crypto/openssl/crypto/bio/bio_sock.c
68
ERR_add_error_data(2, "host=", str);
crypto/openssl/crypto/bio/bio_sock.c
74
int BIO_get_port(const char *str, unsigned short *port_ptr)
crypto/openssl/crypto/bio/bio_sock.c
79
if (str == NULL) {
crypto/openssl/crypto/bio/bio_sock.c
87
if (BIO_lookup(NULL, str, BIO_LOOKUP_CLIENT, AF_INET, SOCK_STREAM, &res)) {
crypto/openssl/crypto/bio/bio_sock.c
96
ERR_add_error_data(2, "host=", str);
crypto/openssl/crypto/bio/bss_acpt.c
40
static int acpt_puts(BIO *h, const char *str);
crypto/openssl/crypto/bio/bss_acpt.c
559
static int acpt_puts(BIO *bp, const char *str)
crypto/openssl/crypto/bio/bss_acpt.c
563
n = strlen(str);
crypto/openssl/crypto/bio/bss_acpt.c
564
ret = acpt_write(bp, str, n);
crypto/openssl/crypto/bio/bss_acpt.c
568
BIO *BIO_new_accept(const char *str)
crypto/openssl/crypto/bio/bss_acpt.c
575
if (BIO_set_accept_name(ret, str) > 0)
crypto/openssl/crypto/bio/bss_bio.c
33
static int bio_puts(BIO *bio, const char *str);
crypto/openssl/crypto/bio/bss_bio.c
597
static int bio_puts(BIO *bio, const char *str)
crypto/openssl/crypto/bio/bss_bio.c
599
return bio_write(bio, str, strlen(str));
crypto/openssl/crypto/bio/bss_conn.c
52
static int conn_puts(BIO *h, const char *str);
crypto/openssl/crypto/bio/bss_conn.c
736
static int conn_puts(BIO *bp, const char *str)
crypto/openssl/crypto/bio/bss_conn.c
740
n = strlen(str);
crypto/openssl/crypto/bio/bss_conn.c
741
ret = conn_write(bp, str, n);
crypto/openssl/crypto/bio/bss_conn.c
862
BIO *BIO_new_connect(const char *str)
crypto/openssl/crypto/bio/bss_conn.c
869
if (BIO_set_conn_hostname(ret, str))
crypto/openssl/crypto/bio/bss_core.c
78
static int bio_core_puts(BIO *bio, const char *str)
crypto/openssl/crypto/bio/bss_core.c
84
return bcgbl->c_bio_puts(BIO_get_data(bio), str);
crypto/openssl/crypto/bio/bss_dgram.c
1050
static int dgram_puts(BIO *bp, const char *str)
crypto/openssl/crypto/bio/bss_dgram.c
1054
n = strlen(str);
crypto/openssl/crypto/bio/bss_dgram.c
1055
ret = dgram_write(bp, str, n);
crypto/openssl/crypto/bio/bss_dgram.c
154
static int dgram_puts(BIO *h, const char *str);
crypto/openssl/crypto/bio/bss_dgram.c
169
static int dgram_sctp_puts(BIO *h, const char *str);
crypto/openssl/crypto/bio/bss_dgram.c
2788
static int dgram_sctp_puts(BIO *bp, const char *str)
crypto/openssl/crypto/bio/bss_dgram.c
2792
n = strlen(str);
crypto/openssl/crypto/bio/bss_dgram.c
2793
ret = dgram_sctp_write(bp, str, n);
crypto/openssl/crypto/bio/bss_fd.c
199
static int fd_puts(BIO *bp, const char *str)
crypto/openssl/crypto/bio/bss_fd.c
203
n = strlen(str);
crypto/openssl/crypto/bio/bss_fd.c
204
ret = fd_write(bp, str, n);
crypto/openssl/crypto/bio/bss_fd.c
53
static int fd_puts(BIO *h, const char *str);
crypto/openssl/crypto/bio/bss_file.c
368
static int file_puts(BIO *bp, const char *str)
crypto/openssl/crypto/bio/bss_file.c
37
static int file_puts(BIO *h, const char *str);
crypto/openssl/crypto/bio/bss_file.c
372
n = strlen(str);
crypto/openssl/crypto/bio/bss_file.c
373
ret = file_write(bp, str, n);
crypto/openssl/crypto/bio/bss_file.c
38
static int file_gets(BIO *h, char *str, int size);
crypto/openssl/crypto/bio/bss_file.c
387
static int file_puts(BIO *bp, const char *str)
crypto/openssl/crypto/bio/bss_log.c
134
char str[10];
crypto/openssl/crypto/bio/bss_log.c
168
while (strncmp(buf, mapping[i].str, mapping[i].strl) != 0)
crypto/openssl/crypto/bio/bss_log.c
192
static int slg_puts(BIO *bp, const char *str)
crypto/openssl/crypto/bio/bss_log.c
196
n = strlen(str);
crypto/openssl/crypto/bio/bss_log.c
197
ret = slg_write(bp, str, n);
crypto/openssl/crypto/bio/bss_log.c
81
static int slg_puts(BIO *h, const char *str);
crypto/openssl/crypto/bio/bss_mem.c
17
static int mem_puts(BIO *h, const char *str);
crypto/openssl/crypto/bio/bss_mem.c
18
static int mem_gets(BIO *h, char *str, int size);
crypto/openssl/crypto/bio/bss_mem.c
379
static int mem_puts(BIO *bp, const char *str)
crypto/openssl/crypto/bio/bss_mem.c
383
n = strlen(str);
crypto/openssl/crypto/bio/bss_mem.c
384
ret = mem_write(bp, str, n);
crypto/openssl/crypto/bio/bss_null.c
17
static int null_puts(BIO *h, const char *str);
crypto/openssl/crypto/bio/bss_null.c
18
static int null_gets(BIO *h, char *str, int size);
crypto/openssl/crypto/bio/bss_null.c
80
static int null_puts(BIO *bp, const char *str)
crypto/openssl/crypto/bio/bss_null.c
82
if (str == NULL)
crypto/openssl/crypto/bio/bss_null.c
84
return strlen(str);
crypto/openssl/crypto/bio/bss_sock.c
274
static int sock_puts(BIO *bp, const char *str)
crypto/openssl/crypto/bio/bss_sock.c
278
n = strlen(str);
crypto/openssl/crypto/bio/bss_sock.c
279
ret = sock_write(bp, str, n);
crypto/openssl/crypto/bio/bss_sock.c
41
static int sock_puts(BIO *h, const char *str);
crypto/openssl/crypto/bn/bn_ctx.c
109
#define CTXDBG(str, ctx) \
crypto/openssl/crypto/bn/bn_ctx.c
112
ctxdbg(trc_out, str, ctx); \
crypto/openssl/crypto/bn/bn_ctx.c
117
#define CTXDBG(str, ctx) \
crypto/openssl/crypto/buffer/buffer.c
100
str->max = n;
crypto/openssl/crypto/buffer/buffer.c
101
memset(&str->data[str->length], 0, len - str->length);
crypto/openssl/crypto/buffer/buffer.c
102
str->length = len;
crypto/openssl/crypto/buffer/buffer.c
107
size_t BUF_MEM_grow_clean(BUF_MEM *str, size_t len)
crypto/openssl/crypto/buffer/buffer.c
112
if (str->length >= len) {
crypto/openssl/crypto/buffer/buffer.c
113
if (str->data != NULL)
crypto/openssl/crypto/buffer/buffer.c
114
memset(&str->data[len], 0, str->length - len);
crypto/openssl/crypto/buffer/buffer.c
115
str->length = len;
crypto/openssl/crypto/buffer/buffer.c
118
if (str->max >= len) {
crypto/openssl/crypto/buffer/buffer.c
119
memset(&str->data[str->length], 0, len - str->length);
crypto/openssl/crypto/buffer/buffer.c
120
str->length = len;
crypto/openssl/crypto/buffer/buffer.c
129
if ((str->flags & BUF_MEM_FLAG_SECURE))
crypto/openssl/crypto/buffer/buffer.c
130
ret = sec_alloc_realloc(str, n);
crypto/openssl/crypto/buffer/buffer.c
132
ret = OPENSSL_clear_realloc(str->data, str->max, n);
crypto/openssl/crypto/buffer/buffer.c
136
str->data = ret;
crypto/openssl/crypto/buffer/buffer.c
137
str->max = n;
crypto/openssl/crypto/buffer/buffer.c
138
memset(&str->data[str->length], 0, len - str->length);
crypto/openssl/crypto/buffer/buffer.c
139
str->length = len;
crypto/openssl/crypto/buffer/buffer.c
56
static char *sec_alloc_realloc(BUF_MEM *str, size_t len)
crypto/openssl/crypto/buffer/buffer.c
61
if (str->data != NULL) {
crypto/openssl/crypto/buffer/buffer.c
63
memcpy(ret, str->data, str->length);
crypto/openssl/crypto/buffer/buffer.c
64
OPENSSL_secure_clear_free(str->data, str->length);
crypto/openssl/crypto/buffer/buffer.c
65
str->data = NULL;
crypto/openssl/crypto/buffer/buffer.c
71
size_t BUF_MEM_grow(BUF_MEM *str, size_t len)
crypto/openssl/crypto/buffer/buffer.c
76
if (str->length >= len) {
crypto/openssl/crypto/buffer/buffer.c
77
str->length = len;
crypto/openssl/crypto/buffer/buffer.c
80
if (str->max >= len) {
crypto/openssl/crypto/buffer/buffer.c
81
if (str->data != NULL)
crypto/openssl/crypto/buffer/buffer.c
82
memset(&str->data[str->length], 0, len - str->length);
crypto/openssl/crypto/buffer/buffer.c
83
str->length = len;
crypto/openssl/crypto/buffer/buffer.c
92
if ((str->flags & BUF_MEM_FLAG_SECURE))
crypto/openssl/crypto/buffer/buffer.c
93
ret = sec_alloc_realloc(str, n);
crypto/openssl/crypto/buffer/buffer.c
95
ret = OPENSSL_realloc(str->data, n);
crypto/openssl/crypto/buffer/buffer.c
99
str->data = ret;
crypto/openssl/crypto/cmp/cmp_client.c
105
ASN1_UTF8STRING *str = sk_ASN1_UTF8STRING_value(ss, i);
crypto/openssl/crypto/cmp/cmp_client.c
106
ASN1_UTF8STRING *dup = ASN1_STRING_dup(str);
crypto/openssl/crypto/cmp/cmp_client.c
304
char str[OSSL_CMP_PKISI_BUFLEN];
crypto/openssl/crypto/cmp/cmp_client.c
321
if (BIO_snprintf(str, OSSL_CMP_PKISI_BUFLEN, "value = %jd",
crypto/openssl/crypto/cmp/cmp_client.c
324
ERR_add_error_data(1, str);
crypto/openssl/crypto/cmp/cmp_client.c
329
|| (len = BIO_snprintf(str, OSSL_CMP_PKISI_BUFLEN,
crypto/openssl/crypto/cmp/cmp_client.c
332
*str = '\0';
crypto/openssl/crypto/cmp/cmp_client.c
335
sizeof(str) - len - 2);
crypto/openssl/crypto/cmp/cmp_client.c
338
|| BIO_snprintf(str + len, sizeof(str) - len,
crypto/openssl/crypto/cmp/cmp_client.c
341
*str = '\0';
crypto/openssl/crypto/cmp/cmp_client.c
346
str, check_after);
crypto/openssl/crypto/cmp/cmp_server.c
443
const char *str = ossl_cmp_PKIStatus_to_string(pki_status);
crypto/openssl/crypto/cmp/cmp_server.c
446
str == NULL ? "without" : "with",
crypto/openssl/crypto/cmp/cmp_server.c
447
str == NULL ? "PKIStatus" : str);
crypto/openssl/crypto/cmp/cmp_vfy.c
167
char *str;
crypto/openssl/crypto/cmp/cmp_vfy.c
177
str = X509_NAME_oneline(actual_name, NULL, 0);
crypto/openssl/crypto/cmp/cmp_vfy.c
179
if (log_success && str != NULL)
crypto/openssl/crypto/cmp/cmp_vfy.c
181
actual_desc, expect_desc, str);
crypto/openssl/crypto/cmp/cmp_vfy.c
182
OPENSSL_free(str);
crypto/openssl/crypto/cmp/cmp_vfy.c
186
if (str != NULL)
crypto/openssl/crypto/cmp/cmp_vfy.c
187
ossl_cmp_log2(INFO, ctx, " actual name in %s = %s", actual_desc, str);
crypto/openssl/crypto/cmp/cmp_vfy.c
188
OPENSSL_free(str);
crypto/openssl/crypto/cmp/cmp_vfy.c
189
if ((str = X509_NAME_oneline(expect_name, NULL, 0)) != NULL)
crypto/openssl/crypto/cmp/cmp_vfy.c
190
ossl_cmp_log2(INFO, ctx, " does not match %s = %s", expect_desc, str);
crypto/openssl/crypto/cmp/cmp_vfy.c
191
OPENSSL_free(str);
crypto/openssl/crypto/cmp/cmp_vfy.c
200
char *str;
crypto/openssl/crypto/cmp/cmp_vfy.c
210
str = i2s_ASN1_OCTET_STRING(NULL, ckid);
crypto/openssl/crypto/cmp/cmp_vfy.c
212
if (str != NULL)
crypto/openssl/crypto/cmp/cmp_vfy.c
213
ossl_cmp_log1(INFO, ctx, " subjectKID matches senderKID: %s", str);
crypto/openssl/crypto/cmp/cmp_vfy.c
214
OPENSSL_free(str);
crypto/openssl/crypto/cmp/cmp_vfy.c
218
if (str != NULL)
crypto/openssl/crypto/cmp/cmp_vfy.c
219
ossl_cmp_log1(INFO, ctx, " cert Subject Key Identifier = %s", str);
crypto/openssl/crypto/cmp/cmp_vfy.c
220
OPENSSL_free(str);
crypto/openssl/crypto/cmp/cmp_vfy.c
221
if ((str = i2s_ASN1_OCTET_STRING(NULL, skid)) != NULL)
crypto/openssl/crypto/cmp/cmp_vfy.c
222
ossl_cmp_log1(INFO, ctx, " does not match senderKID = %s", str);
crypto/openssl/crypto/cmp/cmp_vfy.c
223
OPENSSL_free(str);
crypto/openssl/crypto/cmp/cmp_vfy.c
254
char *str;
crypto/openssl/crypto/cmp/cmp_vfy.c
260
if ((str = X509_NAME_oneline(X509_get_subject_name(cert), NULL, 0)) != NULL)
crypto/openssl/crypto/cmp/cmp_vfy.c
261
ossl_cmp_log1(INFO, ctx, " subject = %s", str);
crypto/openssl/crypto/cmp/cmp_vfy.c
262
OPENSSL_free(str);
crypto/openssl/crypto/cmp/cmp_vfy.c
264
str = X509_NAME_oneline(X509_get_issuer_name(cert), NULL, 0);
crypto/openssl/crypto/cmp/cmp_vfy.c
265
if (str != NULL)
crypto/openssl/crypto/cmp/cmp_vfy.c
266
ossl_cmp_log1(INFO, ctx, " issuer = %s", str);
crypto/openssl/crypto/cmp/cmp_vfy.c
267
OPENSSL_free(str);
crypto/openssl/crypto/cmp/cmp_vfy.c
719
char *str;
crypto/openssl/crypto/cmp/cmp_vfy.c
733
str = X509_NAME_oneline(actual_sender, NULL, 0);
crypto/openssl/crypto/cmp/cmp_vfy.c
735
str != NULL ? str : "<unknown>");
crypto/openssl/crypto/cmp/cmp_vfy.c
736
OPENSSL_free(str);
crypto/openssl/crypto/cms/cms_ess.c
28
ASN1_STRING *str;
crypto/openssl/crypto/cms/cms_ess.c
34
str = CMS_signed_get0_data_by_OBJ(si, obj, -3, V_ASN1_SEQUENCE);
crypto/openssl/crypto/cms/cms_ess.c
35
if (str == NULL)
crypto/openssl/crypto/cms/cms_ess.c
38
rr = ASN1_item_unpack(str, ASN1_ITEM_rptr(CMS_ReceiptRequest));
crypto/openssl/crypto/cms/cms_ess.c
55
ASN1_STRING *str;
crypto/openssl/crypto/cms/cms_ess.c
61
str = CMS_signed_get0_data_by_OBJ(si, obj, -3, V_ASN1_SEQUENCE);
crypto/openssl/crypto/cms/cms_ess.c
62
if (str == NULL)
crypto/openssl/crypto/cms/cms_ess.c
65
sc = ASN1_item_unpack(str, ASN1_ITEM_rptr(ESS_SIGNING_CERT));
crypto/openssl/crypto/cms/cms_ess.c
82
ASN1_STRING *str;
crypto/openssl/crypto/cms/cms_ess.c
88
str = CMS_signed_get0_data_by_OBJ(si, obj, -3, V_ASN1_SEQUENCE);
crypto/openssl/crypto/cms/cms_ess.c
89
if (str == NULL)
crypto/openssl/crypto/cms/cms_ess.c
92
sc = ASN1_item_unpack(str, ASN1_ITEM_rptr(ESS_SIGNING_CERT_V2));
crypto/openssl/crypto/conf/conf_lib.c
334
char *str;
crypto/openssl/crypto/conf/conf_lib.c
344
str = NCONF_get_string(conf, group, name);
crypto/openssl/crypto/conf/conf_lib.c
346
if (str == NULL)
crypto/openssl/crypto/conf/conf_lib.c
355
for (res = 0; is_number(conf, *str); str++) {
crypto/openssl/crypto/conf/conf_lib.c
356
const int d = to_int(conf, *str);
crypto/openssl/crypto/cpuid.c
61
static uint64_t ossl_strtouint64(const variant_char *str)
crypto/openssl/crypto/cpuid.c
66
if (*str == '0') {
crypto/openssl/crypto/cpuid.c
67
base = 8, str++;
crypto/openssl/crypto/cpuid.c
68
if (ossl_tolower(*str) == 'x')
crypto/openssl/crypto/cpuid.c
69
base = 16, str++;
crypto/openssl/crypto/cpuid.c
72
while ((digit = todigit(*str++)) < base)
crypto/openssl/crypto/cpuid.c
78
static variant_char *ossl_strchr(const variant_char *str, char srch)
crypto/openssl/crypto/cpuid.c
82
while ((c = *str)) {
crypto/openssl/crypto/cpuid.c
84
return (variant_char *)str;
crypto/openssl/crypto/cpuid.c
85
str++;
crypto/openssl/crypto/ct/ct_x509v3.c
21
static void *s2i_poison(const X509V3_EXT_METHOD *method, X509V3_CTX *ctx, const char *str)
crypto/openssl/crypto/des/str2key.c
19
void DES_string_to_key(const char *str, DES_cblock *key)
crypto/openssl/crypto/des/str2key.c
25
length = strlen(str);
crypto/openssl/crypto/des/str2key.c
27
register unsigned char j = str[i];
crypto/openssl/crypto/des/str2key.c
41
DES_cbc_cksum((const unsigned char *)str, key, length, &ks, key);
crypto/openssl/crypto/des/str2key.c
46
void DES_string_to_2keys(const char *str, DES_cblock *key1, DES_cblock *key2)
crypto/openssl/crypto/des/str2key.c
53
length = strlen(str);
crypto/openssl/crypto/des/str2key.c
55
register unsigned char j = str[i];
crypto/openssl/crypto/des/str2key.c
77
DES_cbc_cksum((const unsigned char *)str, key1, length, &ks, key1);
crypto/openssl/crypto/des/str2key.c
79
DES_cbc_cksum((const unsigned char *)str, key2, length, &ks, key2);
crypto/openssl/crypto/dh/dh_ameth.c
117
ASN1_STRING *str;
crypto/openssl/crypto/dh/dh_ameth.c
122
str = ASN1_STRING_new();
crypto/openssl/crypto/dh/dh_ameth.c
123
if (str == NULL) {
crypto/openssl/crypto/dh/dh_ameth.c
127
str->length = i2d_dhp(pkey, dh, &str->data);
crypto/openssl/crypto/dh/dh_ameth.c
128
if (str->length <= 0) {
crypto/openssl/crypto/dh/dh_ameth.c
148
ptype, str, penc, penclen))
crypto/openssl/crypto/dh/dh_ameth.c
153
ASN1_STRING_free(str);
crypto/openssl/crypto/dsa/dsa_ameth.c
101
str = ASN1_STRING_new();
crypto/openssl/crypto/dsa/dsa_ameth.c
102
if (str == NULL) {
crypto/openssl/crypto/dsa/dsa_ameth.c
106
str->length = i2d_DSAparams(dsa, &str->data);
crypto/openssl/crypto/dsa/dsa_ameth.c
107
if (str->length <= 0) {
crypto/openssl/crypto/dsa/dsa_ameth.c
134
if (X509_PUBKEY_set0_param(pk, aobj, ptype, str, penc, penclen))
crypto/openssl/crypto/dsa/dsa_ameth.c
139
ASN1_STRING_free(str);
crypto/openssl/crypto/dsa/dsa_ameth.c
92
ASN1_STRING *str = NULL;
crypto/openssl/crypto/ec/ec_backend.c
741
const ASN1_STRING *str = pval;
crypto/openssl/crypto/ec/ec_backend.c
742
const unsigned char *der = str->data;
crypto/openssl/crypto/ec/ec_backend.c
743
int derlen = str->length;
crypto/openssl/crypto/ec/eck_prn.c
227
char str[128 + 1 + 4];
crypto/openssl/crypto/ec/eck_prn.c
234
memset(str, ' ', off);
crypto/openssl/crypto/ec/eck_prn.c
235
if (BIO_write(fp, str, off) <= 0)
crypto/openssl/crypto/ec/eck_prn.c
246
str[0] = '\n';
crypto/openssl/crypto/ec/eck_prn.c
247
memset(&(str[1]), ' ', off + 4);
crypto/openssl/crypto/ec/eck_prn.c
248
if (BIO_write(fp, str, off + 1 + 4) <= 0)
crypto/openssl/crypto/ec/eck_prn.c
67
static int print_bin(BIO *fp, const char *str, const unsigned char *num,
crypto/openssl/crypto/ec/ecx_meth.c
542
const ASN1_BIT_STRING *str, EVP_PKEY *pkey)
crypto/openssl/crypto/ec/ecx_meth.c
576
ASN1_BIT_STRING *str)
crypto/openssl/crypto/ec/ecx_meth.c
592
ASN1_BIT_STRING *str)
crypto/openssl/crypto/encode_decode/decoder_lib.c
487
const char *str = data->ctx->input_structure;
crypto/openssl/crypto/encode_decode/decoder_lib.c
490
(char *)str, 0);
crypto/openssl/crypto/engine/tb_asnmth.c
140
const char *str,
crypto/openssl/crypto/engine/tb_asnmth.c
149
len = strlen(str);
crypto/openssl/crypto/engine/tb_asnmth.c
155
&& OPENSSL_strncasecmp(ameth->pem_str, str, len) == 0)
crypto/openssl/crypto/engine/tb_asnmth.c
164
const char *str;
crypto/openssl/crypto/engine/tb_asnmth.c
180
&& OPENSSL_strncasecmp(ameth->pem_str, lk->str, lk->len) == 0) {
crypto/openssl/crypto/engine/tb_asnmth.c
189
const char *str,
crypto/openssl/crypto/engine/tb_asnmth.c
195
fstr.str = str;
crypto/openssl/crypto/err/err.c
250
static void err_patch(int lib, ERR_STRING_DATA *str)
crypto/openssl/crypto/err/err.c
254
for (; str->error != 0; str++)
crypto/openssl/crypto/err/err.c
255
str->error |= plib;
crypto/openssl/crypto/err/err.c
261
static int err_load_strings(const ERR_STRING_DATA *str)
crypto/openssl/crypto/err/err.c
265
for (; str->error; str++)
crypto/openssl/crypto/err/err.c
267
(ERR_STRING_DATA *)str);
crypto/openssl/crypto/err/err.c
285
int ERR_load_strings(int lib, ERR_STRING_DATA *str)
crypto/openssl/crypto/err/err.c
291
err_patch(lib, str);
crypto/openssl/crypto/err/err.c
292
err_load_strings(str);
crypto/openssl/crypto/err/err.c
298
int ERR_load_strings_const(const ERR_STRING_DATA *str)
crypto/openssl/crypto/err/err.c
303
err_load_strings(str);
crypto/openssl/crypto/err/err.c
309
int ERR_unload_strings(int lib, ERR_STRING_DATA *str)
crypto/openssl/crypto/err/err.c
321
for (; str->error; str++)
crypto/openssl/crypto/err/err.c
322
(void)lh_ERR_STRING_DATA_delete(int_error_hash, str);
crypto/openssl/crypto/err/err.c
33
static int err_load_strings(const ERR_STRING_DATA *str);
crypto/openssl/crypto/err/err.c
824
char *str, *arg;
crypto/openssl/crypto/err/err.c
839
str = es->err_data[i];
crypto/openssl/crypto/err/err.c
851
} else if ((str = OPENSSL_malloc(size = 81)) == NULL) {
crypto/openssl/crypto/err/err.c
854
str[0] = '\0';
crypto/openssl/crypto/err/err.c
856
len = strlen(str);
crypto/openssl/crypto/err/err.c
867
p = OPENSSL_realloc(str, size);
crypto/openssl/crypto/err/err.c
869
OPENSSL_free(str);
crypto/openssl/crypto/err/err.c
872
str = p;
crypto/openssl/crypto/err/err.c
874
OPENSSL_strlcat(str, arg, (size_t)size);
crypto/openssl/crypto/err/err.c
876
if (!err_set_error_data_int(str, size, flags, 0))
crypto/openssl/crypto/err/err.c
877
OPENSSL_free(str);
crypto/openssl/crypto/err/err_prn.c
150
char *str;
crypto/openssl/crypto/err/err_prn.c
151
long len = BIO_get_mem_data(bio, &str);
crypto/openssl/crypto/err/err_prn.c
154
if (str[len - 1] != '\0') {
crypto/openssl/crypto/err/err_prn.c
158
len = BIO_get_mem_data(bio, &str);
crypto/openssl/crypto/err/err_prn.c
161
ERR_add_error_txt(separator, str);
crypto/openssl/crypto/err/err_prn.c
166
static int print_bio(const char *str, size_t len, void *bp)
crypto/openssl/crypto/err/err_prn.c
168
return BIO_write((BIO *)bp, str, len);
crypto/openssl/crypto/err/err_prn.c
20
void ERR_print_errors_cb(int (*cb)(const char *str, size_t len, void *u),
crypto/openssl/crypto/evp/bio_b64.c
19
static int b64_puts(BIO *h, const char *str);
crypto/openssl/crypto/evp/bio_b64.c
528
static int b64_puts(BIO *b, const char *str)
crypto/openssl/crypto/evp/bio_b64.c
530
return b64_write(b, str, strlen(str));
crypto/openssl/crypto/evp/bio_md.c
22
static int md_gets(BIO *h, char *str, int size);
crypto/openssl/crypto/evp/e_aes.c
343
cctx->str = enc ? (ccm128_f)aesni_ccm64_encrypt_blocks : (ccm128_f)aesni_ccm64_decrypt_blocks;
crypto/openssl/crypto/evp/e_aes.c
3503
cctx->str = NULL;
crypto/openssl/crypto/evp/e_aes.c
3513
cctx->str = NULL;
crypto/openssl/crypto/evp/e_aes.c
3521
cctx->str = NULL;
crypto/openssl/crypto/evp/e_aes.c
3559
if (cctx->str ? CRYPTO_ccm128_encrypt_ccm64(ccm, in, out, len,
crypto/openssl/crypto/evp/e_aes.c
3560
cctx->str)
crypto/openssl/crypto/evp/e_aes.c
3567
if (cctx->str ? !CRYPTO_ccm128_decrypt_ccm64(ccm, in, out, len,
crypto/openssl/crypto/evp/e_aes.c
3568
cctx->str)
crypto/openssl/crypto/evp/e_aes.c
3626
if (cctx->str ? CRYPTO_ccm128_encrypt_ccm64(ccm, in, out, len,
crypto/openssl/crypto/evp/e_aes.c
3627
cctx->str)
crypto/openssl/crypto/evp/e_aes.c
3634
if (cctx->str ? !CRYPTO_ccm128_decrypt_ccm64(ccm, in, out, len,
crypto/openssl/crypto/evp/e_aes.c
3635
cctx->str)
crypto/openssl/crypto/evp/e_aes.c
729
cctx->str = NULL;
crypto/openssl/crypto/evp/e_aes.c
92
ccm128_f str;
crypto/openssl/crypto/evp/e_aria.c
528
cctx->str = NULL;
crypto/openssl/crypto/evp/e_aria.c
57
ccm128_f str;
crypto/openssl/crypto/evp/e_aria.c
664
if (cctx->str ? CRYPTO_ccm128_encrypt_ccm64(ccm, in, out, len, cctx->str)
crypto/openssl/crypto/evp/e_aria.c
671
if (cctx->str ? !CRYPTO_ccm128_decrypt_ccm64(ccm, in, out, len, cctx->str)
crypto/openssl/crypto/evp/e_aria.c
729
if (cctx->str ? CRYPTO_ccm128_encrypt_ccm64(ccm, in, out, len, cctx->str)
crypto/openssl/crypto/evp/e_aria.c
736
if (cctx->str ? !CRYPTO_ccm128_decrypt_ccm64(ccm, in, out, len,
crypto/openssl/crypto/evp/e_aria.c
737
cctx->str)
crypto/openssl/crypto/evp/evp_rand.c
644
unsigned int str = evp_rand_strength_locked(ctx);
crypto/openssl/crypto/evp/evp_rand.c
647
return ctx->meth->nonce(ctx->algctx, out, str, outlen, outlen) > 0;
crypto/openssl/crypto/evp/evp_rand.c
648
return evp_rand_generate_locked(ctx, out, outlen, str, 0, NULL, 0);
crypto/openssl/crypto/evp/p_lib.c
1548
static int pkey_set_type(EVP_PKEY *pkey, ENGINE *e, int type, const char *str,
crypto/openssl/crypto/evp/p_lib.c
1594
if (str != NULL)
crypto/openssl/crypto/evp/p_lib.c
1595
ameth = EVP_PKEY_asn1_find_str(eptr, str, len);
crypto/openssl/crypto/evp/p_lib.c
1665
const char **str = data;
crypto/openssl/crypto/evp/p_lib.c
1675
if (str[0] == NULL)
crypto/openssl/crypto/evp/p_lib.c
1676
str[0] = name;
crypto/openssl/crypto/evp/p_lib.c
1677
else if (str[1] == NULL)
crypto/openssl/crypto/evp/p_lib.c
1678
str[1] = name;
crypto/openssl/crypto/evp/p_lib.c
1688
#define EVP_PKEY_TYPE_STR str[0]
crypto/openssl/crypto/evp/p_lib.c
1689
#define EVP_PKEY_TYPE_STRLEN (str[0] == NULL ? -1 : (int)strlen(str[0]))
crypto/openssl/crypto/evp/p_lib.c
1695
const char *str[2] = { NULL, NULL };
crypto/openssl/crypto/evp/p_lib.c
1697
if (!EVP_KEYMGMT_names_do_all(keymgmt, find_ameth, &str)
crypto/openssl/crypto/evp/p_lib.c
1698
|| str[1] != NULL) {
crypto/openssl/crypto/evp/p_lib.c
2288
char *str, size_t max_buf_sz,
crypto/openssl/crypto/evp/p_lib.c
2297
params[0] = OSSL_PARAM_construct_utf8_string(key_name, str, max_buf_sz);
crypto/openssl/crypto/evp/p_lib.c
2308
if (ret2 && str != NULL)
crypto/openssl/crypto/evp/p_lib.c
2309
str[params[0].return_size] = '\0';
crypto/openssl/crypto/evp/p_lib.c
2391
const char *str)
crypto/openssl/crypto/evp/p_lib.c
2398
params[0] = OSSL_PARAM_construct_utf8_string(key_name, (char *)str, 0);
crypto/openssl/crypto/evp/p_lib.c
53
static int pkey_set_type(EVP_PKEY *pkey, ENGINE *e, int type, const char *str,
crypto/openssl/crypto/evp/p_lib.c
721
int EVP_PKEY_set_type_str(EVP_PKEY *pkey, const char *str, int len)
crypto/openssl/crypto/evp/p_lib.c
723
return pkey_set_type(pkey, NULL, EVP_PKEY_NONE, str, len, NULL);
crypto/openssl/crypto/evp/pmeth_lib.c
1588
int EVP_PKEY_CTX_str2ctrl(EVP_PKEY_CTX *ctx, int cmd, const char *str)
crypto/openssl/crypto/evp/pmeth_lib.c
1592
len = strlen(str);
crypto/openssl/crypto/evp/pmeth_lib.c
1595
return ctx->pmeth->ctrl(ctx, cmd, len, (void *)str);
crypto/openssl/crypto/hpke/hpke.c
1440
int OSSL_HPKE_str2suite(const char *str, OSSL_HPKE_SUITE *suite)
crypto/openssl/crypto/hpke/hpke.c
1442
return ossl_hpke_str2suite(str, suite);
crypto/openssl/crypto/info.c
181
#define add_seeds_string(str) \
crypto/openssl/crypto/info.c
185
OPENSSL_strlcat(seeds, str, sizeof(seeds)); \
crypto/openssl/crypto/mem.c
302
void *CRYPTO_realloc(void *str, size_t num, const char *file, int line)
crypto/openssl/crypto/mem.c
306
return realloc_impl(str, num, file, line);
crypto/openssl/crypto/mem.c
308
if (str == NULL)
crypto/openssl/crypto/mem.c
312
CRYPTO_free(str, file, line);
crypto/openssl/crypto/mem.c
317
return realloc(str, num);
crypto/openssl/crypto/mem.c
320
void *CRYPTO_clear_realloc(void *str, size_t old_len, size_t num,
crypto/openssl/crypto/mem.c
325
if (str == NULL)
crypto/openssl/crypto/mem.c
329
CRYPTO_clear_free(str, old_len, file, line);
crypto/openssl/crypto/mem.c
335
OPENSSL_cleanse((char *)str + num, old_len - num);
crypto/openssl/crypto/mem.c
336
return str;
crypto/openssl/crypto/mem.c
341
memcpy(ret, str, old_len);
crypto/openssl/crypto/mem.c
342
CRYPTO_clear_free(str, old_len, file, line);
crypto/openssl/crypto/mem.c
347
void CRYPTO_free(void *str, const char *file, int line)
crypto/openssl/crypto/mem.c
351
free_impl(str, file, line);
crypto/openssl/crypto/mem.c
355
free(str);
crypto/openssl/crypto/mem.c
358
void CRYPTO_clear_free(void *str, size_t num, const char *file, int line)
crypto/openssl/crypto/mem.c
360
if (str == NULL)
crypto/openssl/crypto/mem.c
363
OPENSSL_cleanse(str, num);
crypto/openssl/crypto/mem.c
364
CRYPTO_free(str, file, line);
crypto/openssl/crypto/mem.c
439
int CRYPTO_mem_leaks_cb(int (*cb)(const char *str, size_t len, void *u),
crypto/openssl/crypto/o_str.c
124
int OPENSSL_strtoul(const char *str, char **endptr, int base,
crypto/openssl/crypto/o_str.c
132
*internal_endptr = (char *)str;
crypto/openssl/crypto/o_str.c
137
if (str == NULL)
crypto/openssl/crypto/o_str.c
141
if (*str == '-')
crypto/openssl/crypto/o_str.c
144
*num = strtoul(str, internal_endptr, base);
crypto/openssl/crypto/o_str.c
155
if (errno != 0 || (endptr == NULL && **internal_endptr != '\0') || (str == *internal_endptr))
crypto/openssl/crypto/o_str.c
211
const char *str, const char sep)
crypto/openssl/crypto/o_str.c
219
for (p = (const unsigned char *)str, q = buf, cnt = 0; *p;) {
crypto/openssl/crypto/o_str.c
22
char *CRYPTO_strdup(const char *str, const char *file, int line)
crypto/openssl/crypto/o_str.c
254
const char *str, const char sep)
crypto/openssl/crypto/o_str.c
256
return hexstr2buf_sep(buf, buf_n, buflen, str, sep);
crypto/openssl/crypto/o_str.c
259
unsigned char *ossl_hexstr2buf_sep(const char *str, long *buflen,
crypto/openssl/crypto/o_str.c
26
if (str == NULL)
crypto/openssl/crypto/o_str.c
265
buf_n = strlen(str);
crypto/openssl/crypto/o_str.c
277
if (hexstr2buf_sep(buf, buf_n, &tmp_buflen, str, sep)) {
crypto/openssl/crypto/o_str.c
28
ret = CRYPTO_malloc(strlen(str) + 1, file, line);
crypto/openssl/crypto/o_str.c
286
unsigned char *OPENSSL_hexstr2buf(const char *str, long *buflen)
crypto/openssl/crypto/o_str.c
288
return ossl_hexstr2buf_sep(str, buflen, DEFAULT_SEPARATOR);
crypto/openssl/crypto/o_str.c
291
static int buf2hexstr_sep(char *str, size_t str_n, size_t *strlength,
crypto/openssl/crypto/o_str.c
30
strcpy(ret, str);
crypto/openssl/crypto/o_str.c
308
if (str == NULL)
crypto/openssl/crypto/o_str.c
316
q = str;
crypto/openssl/crypto/o_str.c
327
ebcdic2ascii(str, str, q - str);
crypto/openssl/crypto/o_str.c
332
int OPENSSL_buf2hexstr_ex(char *str, size_t str_n, size_t *strlength,
crypto/openssl/crypto/o_str.c
336
return buf2hexstr_sep(str, str_n, strlength, buf, buflen, sep);
crypto/openssl/crypto/o_str.c
34
char *CRYPTO_strndup(const char *str, size_t s, const char *file, int line)
crypto/openssl/crypto/o_str.c
39
if (str == NULL)
crypto/openssl/crypto/o_str.c
42
maxlen = OPENSSL_strnlen(str, s);
crypto/openssl/crypto/o_str.c
46
memcpy(ret, str, maxlen);
crypto/openssl/crypto/o_str.c
65
size_t OPENSSL_strnlen(const char *str, size_t maxlen)
crypto/openssl/crypto/o_str.c
69
for (p = str; maxlen-- != 0 && *p != CH_ZERO; ++p)
crypto/openssl/crypto/o_str.c
72
return p - str;
crypto/openssl/crypto/ocsp/v3_ocsp.c
204
X509V3_CTX *ctx, const char *str)
crypto/openssl/crypto/ocsp/v3_ocsp.c
38
X509V3_CTX *ctx, const char *str);
crypto/openssl/crypto/pem/pem_info.c
122
} else if ((str = strstr(name, PEM_STRING_PKCS8INF)) != NULL) {
crypto/openssl/crypto/pem/pem_info.c
130
if (str == name || strcmp(name, PEM_STRING_PKCS8) == 0) {
crypto/openssl/crypto/pem/pem_info.c
134
*--str = '\0';
crypto/openssl/crypto/pem/pem_info.c
58
char *name = NULL, *header = NULL, *str;
crypto/openssl/crypto/pem/pem_lib.c
71
const char *str;
crypto/openssl/crypto/pem/pem_lib.c
75
str = "ENCRYPTED";
crypto/openssl/crypto/pem/pem_lib.c
77
str = "MIC-CLEAR";
crypto/openssl/crypto/pem/pem_lib.c
79
str = "MIC-ONLY";
crypto/openssl/crypto/pem/pem_lib.c
81
str = "BAD-TYPE";
crypto/openssl/crypto/pem/pem_lib.c
83
BIO_snprintf(p, PEM_BUFSIZE - (size_t)(p - buf), "Proc-Type: 4,%s\n", str);
crypto/openssl/crypto/pem/pem_lib.c
86
void PEM_dek_info(char *buf, const char *type, int len, const char *str)
crypto/openssl/crypto/pem/pem_lib.c
97
n = BIO_snprintf(p, j, "%02X", 0xff & str[i]);
crypto/openssl/crypto/pem/pem_local.h
101
IMPLEMENT_PEM_provided_write_body_fallback(str, asn1, \
crypto/openssl/crypto/pem/pem_local.h
108
IMPLEMENT_PEM_provided_write_body_fallback(str, asn1, \
crypto/openssl/crypto/pem/pem_local.h
112
#define IMPLEMENT_PEM_provided_write_cb_to(name, TYPE, type, str, asn1, \
crypto/openssl/crypto/pem/pem_local.h
119
IMPLEMENT_PEM_provided_write_body_fallback_cb(str, asn1, \
crypto/openssl/crypto/pem/pem_local.h
127
IMPLEMENT_PEM_provided_write_body_fallback(str, asn1, \
crypto/openssl/crypto/pem/pem_local.h
133
#define IMPLEMENT_PEM_provided_write_fp(name, TYPE, type, str, asn1)
crypto/openssl/crypto/pem/pem_local.h
134
#define IMPLEMENT_PEM_provided_write_cb_fp(name, TYPE, type, str, asn1)
crypto/openssl/crypto/pem/pem_local.h
138
#define IMPLEMENT_PEM_provided_write_fp(name, TYPE, type, str, asn1) \
crypto/openssl/crypto/pem/pem_local.h
139
IMPLEMENT_PEM_provided_write_to(name, TYPE, type, str, asn1, FILE, fp, write)
crypto/openssl/crypto/pem/pem_local.h
140
#define IMPLEMENT_PEM_provided_write_cb_fp(name, TYPE, type, str, asn1) \
crypto/openssl/crypto/pem/pem_local.h
141
IMPLEMENT_PEM_provided_write_cb_to(name, TYPE, type, str, asn1, FILE, fp, write)
crypto/openssl/crypto/pem/pem_local.h
145
#define IMPLEMENT_PEM_provided_write_bio(name, TYPE, type, str, asn1) \
crypto/openssl/crypto/pem/pem_local.h
146
IMPLEMENT_PEM_provided_write_to(name, TYPE, type, str, asn1, BIO, bio, write_bio)
crypto/openssl/crypto/pem/pem_local.h
147
#define IMPLEMENT_PEM_provided_write_cb_bio(name, TYPE, type, str, asn1) \
crypto/openssl/crypto/pem/pem_local.h
148
IMPLEMENT_PEM_provided_write_cb_to(name, TYPE, type, str, asn1, BIO, bio, write_bio)
crypto/openssl/crypto/pem/pem_local.h
150
#define IMPLEMENT_PEM_provided_write(name, TYPE, type, str, asn1) \
crypto/openssl/crypto/pem/pem_local.h
151
IMPLEMENT_PEM_provided_write_bio(name, TYPE, type, str, asn1) \
crypto/openssl/crypto/pem/pem_local.h
152
IMPLEMENT_PEM_provided_write_fp(name, TYPE, type, str, asn1)
crypto/openssl/crypto/pem/pem_local.h
154
#define IMPLEMENT_PEM_provided_write_cb(name, TYPE, type, str, asn1) \
crypto/openssl/crypto/pem/pem_local.h
155
IMPLEMENT_PEM_provided_write_cb_bio(name, TYPE, type, str, asn1) \
crypto/openssl/crypto/pem/pem_local.h
156
IMPLEMENT_PEM_provided_write_cb_fp(name, TYPE, type, str, asn1)
crypto/openssl/crypto/pem/pem_local.h
158
#define IMPLEMENT_PEM_provided_rw(name, TYPE, type, str, asn1) \
crypto/openssl/crypto/pem/pem_local.h
159
IMPLEMENT_PEM_read(name, TYPE, str, asn1) \
crypto/openssl/crypto/pem/pem_local.h
160
IMPLEMENT_PEM_provided_write(name, TYPE, type, str, asn1)
crypto/openssl/crypto/pem/pem_local.h
162
#define IMPLEMENT_PEM_provided_rw_cb(name, TYPE, type, str, asn1) \
crypto/openssl/crypto/pem/pem_local.h
163
IMPLEMENT_PEM_read(name, TYPE, str, asn1) \
crypto/openssl/crypto/pem/pem_local.h
164
IMPLEMENT_PEM_provided_write_cb(name, TYPE, type, str, asn1)
crypto/openssl/crypto/pem/pem_local.h
84
#define IMPLEMENT_PEM_provided_write_body_fallback(str, asn1, \
crypto/openssl/crypto/pem/pem_local.h
87
return PEM_ASN1_##writename((i2d_of_void *)i2d_##asn1, str, out, \
crypto/openssl/crypto/pem/pem_local.h
89
#define IMPLEMENT_PEM_provided_write_body_fallback_cb(str, asn1, \
crypto/openssl/crypto/pem/pem_local.h
92
return PEM_ASN1_##writename##((i2d_of_void *)i2d_##asn1, str, out, \
crypto/openssl/crypto/pem/pem_local.h
95
#define IMPLEMENT_PEM_provided_write_to(name, TYPE, type, str, asn1, \
crypto/openssl/crypto/pkcs12/p12_utl.c
150
static int bmp_to_utf8(char *str, const unsigned char *utf16, int len)
crypto/openssl/crypto/pkcs12/p12_utl.c
178
return UTF8_putc((unsigned char *)str, 4, utf32chr);
crypto/openssl/crypto/property/property_parse.c
619
static void put_str(const char *str, char **buf, size_t *remain, size_t *needed)
crypto/openssl/crypto/property/property_parse.c
625
len = olen = strlen(str);
crypto/openssl/crypto/property/property_parse.c
634
if (!ossl_isalnum(str[i]) && str[i] != '.' && str[i] != '_') {
crypto/openssl/crypto/property/property_parse.c
639
if (str[i] == '\'')
crypto/openssl/crypto/property/property_parse.c
656
memcpy(*buf, str, len);
crypto/openssl/crypto/property/property_string.c
204
const char *str;
crypto/openssl/crypto/property/property_string.c
213
findstr->str = prop->s;
crypto/openssl/crypto/property/property_string.c
235
findstr.str = NULL;
crypto/openssl/crypto/property/property_string.c
241
r = findstr.str;
crypto/openssl/crypto/riscvcap.c
50
static void strtoupper(const char *str, char *dst, size_t dstlen)
crypto/openssl/crypto/riscvcap.c
53
if (i == dstlen - 1 || str[i] == '\0') {
crypto/openssl/crypto/riscvcap.c
57
dst[i] = toupper((unsigned char)str[i]);
crypto/openssl/crypto/rsa/rsa_ameth.c
149
ASN1_STRING *str;
crypto/openssl/crypto/rsa/rsa_ameth.c
152
if (!rsa_param_encode(pkey, &str, &strtype))
crypto/openssl/crypto/rsa/rsa_ameth.c
158
ASN1_STRING_free(str);
crypto/openssl/crypto/rsa/rsa_ameth.c
163
strtype, str, rk, rklen)) {
crypto/openssl/crypto/rsa/rsa_ameth.c
165
ASN1_STRING_free(str);
crypto/openssl/crypto/rsa/rsa_ameth.c
302
char *str;
crypto/openssl/crypto/rsa/rsa_ameth.c
321
str = "modulus:";
crypto/openssl/crypto/rsa/rsa_ameth.c
326
str = "Modulus:";
crypto/openssl/crypto/rsa/rsa_ameth.c
329
if (!ASN1_bn_print(bp, str, x->n, NULL, off))
crypto/openssl/crypto/rsa/rsa_ameth.c
57
ASN1_STRING *str;
crypto/openssl/crypto/rsa/rsa_ameth.c
60
if (!rsa_param_encode(pkey, &str, &strtype))
crypto/openssl/crypto/rsa/rsa_ameth.c
64
ASN1_STRING_free(str);
crypto/openssl/crypto/rsa/rsa_ameth.c
68
strtype, str, penc, penclen))
crypto/openssl/crypto/rsa/rsa_ameth.c
72
ASN1_STRING_free(str);
crypto/openssl/crypto/trace.c
40
static int trace_puts(BIO *b, const char *str);
crypto/openssl/crypto/trace.c
76
static int trace_puts(BIO *channel, const char *str)
crypto/openssl/crypto/trace.c
80
if (trace_write(channel, str, strlen(str), &written))
crypto/openssl/crypto/ui/ui_lib.c
462
static int print_error(const char *str, size_t len, UI *ui)
crypto/openssl/crypto/ui/ui_lib.c
468
uis.out_string = str;
crypto/openssl/crypto/x509/pcy_tree.c
54
char *str, X509_POLICY_TREE *tree,
crypto/openssl/crypto/x509/pcy_tree.c
64
BIO_printf(channel, "Level print after %s\n", str);
crypto/openssl/crypto/x509/pcy_tree.c
84
#define TREE_PRINT(str, tree, curr) \
crypto/openssl/crypto/x509/t_x509.c
457
char *str;
crypto/openssl/crypto/x509/t_x509.c
463
while ((str = X509_VERIFY_PARAM_get0_host(vpm, idx++)) != NULL)
crypto/openssl/crypto/x509/t_x509.c
464
BIO_printf(bio, "%s%s", idx == 1 ? "" : ", ", str);
crypto/openssl/crypto/x509/t_x509.c
468
str = X509_VERIFY_PARAM_get0_email(vpm);
crypto/openssl/crypto/x509/t_x509.c
469
if (str != NULL)
crypto/openssl/crypto/x509/t_x509.c
470
BIO_printf(bio, "Expected email address = %s\n", str);
crypto/openssl/crypto/x509/t_x509.c
473
str = X509_VERIFY_PARAM_get1_ip_asc(vpm);
crypto/openssl/crypto/x509/t_x509.c
474
if (str != NULL)
crypto/openssl/crypto/x509/t_x509.c
475
BIO_printf(bio, "Expected IP address = %s\n", str);
crypto/openssl/crypto/x509/t_x509.c
476
OPENSSL_free(str);
crypto/openssl/crypto/x509/v3_conf.c
418
void X509V3_string_free(X509V3_CTX *ctx, char *str)
crypto/openssl/crypto/x509/v3_conf.c
420
if (!str)
crypto/openssl/crypto/x509/v3_conf.c
423
ctx->db_meth->free_string(ctx->db, str);
crypto/openssl/crypto/x509/v3_group_ac.c
35
static void *s2i_GROUP_AC(const X509V3_EXT_METHOD *method, X509V3_CTX *ctx, const char *str)
crypto/openssl/crypto/x509/v3_ia5.c
42
X509V3_CTX *ctx, const char *str)
crypto/openssl/crypto/x509/v3_ia5.c
45
if (str == NULL) {
crypto/openssl/crypto/x509/v3_ia5.c
53
if (!ASN1_STRING_set((ASN1_STRING *)ia5, str, strlen(str))) {
crypto/openssl/crypto/x509/v3_ind_iss.c
35
static void *s2i_INDIRECT_ISSUER(const X509V3_EXT_METHOD *method, X509V3_CTX *ctx, const char *str)
crypto/openssl/crypto/x509/v3_ncons.c
102
static char *ia5memrchr(ASN1_IA5STRING *str, int c)
crypto/openssl/crypto/x509/v3_ncons.c
106
for (i = str->length; i > 0 && str->data[i - 1] != c; i--)
crypto/openssl/crypto/x509/v3_ncons.c
112
return (char *)&str->data[i - 1];
crypto/openssl/crypto/x509/v3_ncons.c
99
#define ia5memchr(str, start, c) memchr(start, c, IA5_OFFSET_LEN(str, start))
crypto/openssl/crypto/x509/v3_no_ass.c
35
static void *s2i_NO_ASSERTION(const X509V3_EXT_METHOD *method, X509V3_CTX *ctx, const char *str)
crypto/openssl/crypto/x509/v3_no_rev_avail.c
35
static void *s2i_NO_REV_AVAIL(const X509V3_EXT_METHOD *method, X509V3_CTX *ctx, const char *str)
crypto/openssl/crypto/x509/v3_pci.c
55
X509V3_CTX *ctx, char *str);
crypto/openssl/crypto/x509/v3_single_use.c
35
static void *s2i_SINGLE_USE(const X509V3_EXT_METHOD *method, X509V3_CTX *ctx, const char *str)
crypto/openssl/crypto/x509/v3_skid.c
17
X509V3_CTX *ctx, char *str);
crypto/openssl/crypto/x509/v3_skid.c
34
X509V3_CTX *ctx, const char *str)
crypto/openssl/crypto/x509/v3_skid.c
44
if ((oct->data = OPENSSL_hexstr2buf(str, &length)) == NULL) {
crypto/openssl/crypto/x509/v3_skid.c
91
X509V3_CTX *ctx, char *str)
crypto/openssl/crypto/x509/v3_skid.c
93
if (strcmp(str, "none") == 0)
crypto/openssl/crypto/x509/v3_skid.c
96
if (strcmp(str, "hash") != 0)
crypto/openssl/crypto/x509/v3_skid.c
97
return s2i_ASN1_OCTET_STRING(method, ctx /* not used */, str);
crypto/openssl/crypto/x509/v3_soa_id.c
35
static void *s2i_SOA_IDENTIFIER(const X509V3_EXT_METHOD *method, X509V3_CTX *ctx, const char *str)
crypto/openssl/crypto/x509/v3_utf8.c
45
X509V3_CTX *ctx, const char *str)
crypto/openssl/crypto/x509/v3_utf8.c
48
if (str == NULL) {
crypto/openssl/crypto/x509/v3_utf8.c
56
if (!ASN1_STRING_set((ASN1_STRING *)utf8, str, strlen(str))) {
crypto/openssl/crypto/x509/v3_utl.c
1183
static int get_ipv4_component(uint8_t *out_byte, const char **str)
crypto/openssl/crypto/x509/v3_utl.c
1189
if (!ossl_isdigit(**str)) {
crypto/openssl/crypto/x509/v3_utl.c
1192
out = (out * 10) + (**str - '0');
crypto/openssl/crypto/x509/v3_utl.c
1197
(*str)++;
crypto/openssl/crypto/x509/v3_utl.c
1198
if ((**str) == '.' || (**str) == '\0') {
crypto/openssl/crypto/x509/v3_utl.c
1215
static int get_ipv4_dot(const char **str)
crypto/openssl/crypto/x509/v3_utl.c
1217
if (**str != '.') {
crypto/openssl/crypto/x509/v3_utl.c
1220
(*str)++;
crypto/openssl/crypto/x509/v3_utl.c
29
static void str_free(OPENSSL_STRING str);
crypto/openssl/crypto/x509/v3_utl.c
524
static void str_free(OPENSSL_STRING str)
crypto/openssl/crypto/x509/v3_utl.c
526
OPENSSL_free(str);
crypto/openssl/crypto/x509/v3_utl.c
990
const ASN1_STRING *str = X509_NAME_ENTRY_get_data(ne);
crypto/openssl/crypto/x509/v3_utl.c
993
if ((rv = do_check_string(str, -1, equal, flags,
crypto/openssl/crypto/x509/x509_local.h
92
const char *str, int len, X509_OBJECT *ret);
crypto/openssl/crypto/x509/x509_lu.c
137
const char *str, int len, X509_OBJECT *ret)
crypto/openssl/crypto/x509/x509_lu.c
141
return ctx->method->get_by_alias(ctx, type, str, len, ret);
crypto/openssl/crypto/x509/x509spki.c
30
NETSCAPE_SPKI *NETSCAPE_SPKI_b64_decode(const char *str, int len)
crypto/openssl/crypto/x509/x509spki.c
37
len = strlen(str);
crypto/openssl/crypto/x509/x509spki.c
40
spki_len = EVP_DecodeBlock(spki_der, (const unsigned char *)str, len);
crypto/openssl/crypto/x509/x_attrib.c
102
str = av->value.integer;
crypto/openssl/crypto/x509/x_attrib.c
103
return ossl_bio_print_hex(out, str->data, str->length);
crypto/openssl/crypto/x509/x_attrib.c
81
ASN1_STRING *str;
crypto/openssl/engines/e_afalg.c
852
char *str;
crypto/openssl/engines/e_afalg.c
862
str = strtok(ut.release, ".");
crypto/openssl/engines/e_afalg.c
863
for (i = 0; i < 3 && str != NULL; i++) {
crypto/openssl/engines/e_afalg.c
864
kver[i] = atoi(str);
crypto/openssl/engines/e_afalg.c
865
str = strtok(NULL, ".");
crypto/openssl/engines/e_capi.c
1129
char *str;
crypto/openssl/engines/e_capi.c
1149
str = OPENSSL_malloc(sz);
crypto/openssl/engines/e_capi.c
1150
if (str == NULL)
crypto/openssl/engines/e_capi.c
1152
if (!WideCharToMultiByte(CP_ACP, 0, wstr, len_0, str, sz, NULL, NULL)) {
crypto/openssl/engines/e_capi.c
1153
OPENSSL_free(str);
crypto/openssl/engines/e_capi.c
1157
return str;
crypto/openssl/engines/e_devcrypto.c
1011
static int cryptodev_select_digest_cb(const char *str, int len, void *usr)
crypto/openssl/engines/e_devcrypto.c
1020
if (usr == NULL || (name = OPENSSL_strndup(str, len)) == NULL)
crypto/openssl/engines/e_devcrypto.c
587
static int cryptodev_select_cipher_cb(const char *str, int len, void *usr)
crypto/openssl/engines/e_devcrypto.c
596
if (usr == NULL || (name = OPENSSL_strndup(str, len)) == NULL)
crypto/openssl/engines/e_loader_attic.c
137
static int check_suffix(const char *str, const char *suffix)
crypto/openssl/engines/e_loader_attic.c
139
int str_len = strlen(str);
crypto/openssl/engines/e_loader_attic.c
145
p = str + str_len - suffix_len;
crypto/openssl/engines/e_loader_attic.c
149
return p - str;
crypto/openssl/include/crypto/asn1.h
150
void ossl_asn1_string_set_bits_left(ASN1_STRING *str, unsigned int num);
crypto/openssl/include/internal/common.h
58
#define HAS_PREFIX(str, pre) (strncmp(str, pre "", sizeof(pre) - 1) == 0)
crypto/openssl/include/internal/common.h
60
#define CHECK_AND_SKIP_PREFIX(str, pre) \
crypto/openssl/include/internal/common.h
61
(HAS_PREFIX(str, pre) ? ((str) += sizeof(pre) - 1, 1) : 0)
crypto/openssl/include/internal/common.h
65
#define CHECK_AND_SKIP_CASE_PREFIX(str, pre) \
crypto/openssl/include/internal/common.h
66
(HAS_CASE_PREFIX(str, pre) ? ((str) += sizeof(pre) - 1, 1) : 0)
crypto/openssl/include/internal/common.h
68
#define HAS_CASE_SUFFIX(str, suffix) (strlen(str) < sizeof(suffix) - 1 ? 0 : OPENSSL_strcasecmp(str + strlen(str) - sizeof(suffix) + 1, suffix "") == 0)
crypto/openssl/include/internal/cryptlib.h
162
unsigned char *ossl_hexstr2buf_sep(const char *str, long *buflen,
crypto/openssl/include/internal/json_enc.h
209
void ossl_json_str(OSSL_JSON_ENC *json, const char *str);
crypto/openssl/include/internal/json_enc.h
215
void ossl_json_str_len(OSSL_JSON_ENC *json, const char *str, size_t str_len);
crypto/openssl/include/openssl/asn1.h
1035
ASN1_TYPE *ASN1_generate_nconf(const char *str, CONF *nconf);
crypto/openssl/include/openssl/asn1.h
1036
ASN1_TYPE *ASN1_generate_v3(const char *str, X509V3_CTX *cnf);
crypto/openssl/include/openssl/asn1.h
1037
int ASN1_str2mask(const char *str, unsigned long *pmask);
crypto/openssl/include/openssl/asn1.h
655
int ASN1_STRING_copy(ASN1_STRING *dst, const ASN1_STRING *str);
crypto/openssl/include/openssl/asn1.h
663
int ASN1_STRING_set(ASN1_STRING *str, const void *data, int len);
crypto/openssl/include/openssl/asn1.h
664
void ASN1_STRING_set0(ASN1_STRING *str, void *data, int len);
crypto/openssl/include/openssl/asn1.h
730
int ASN1_UTCTIME_set_string(ASN1_UTCTIME *s, const char *str);
crypto/openssl/include/openssl/asn1.h
739
int ASN1_GENERALIZEDTIME_set_string(ASN1_GENERALIZEDTIME *s, const char *str);
crypto/openssl/include/openssl/asn1.h
748
int ASN1_OCTET_STRING_set(ASN1_OCTET_STRING *str, const unsigned char *data,
crypto/openssl/include/openssl/asn1.h
787
int UTF8_getc(const unsigned char *str, int len, unsigned long *val);
crypto/openssl/include/openssl/asn1.h
788
int UTF8_putc(unsigned char *str, int len, unsigned long value);
crypto/openssl/include/openssl/asn1.h
844
int ASN1_TIME_set_string(ASN1_TIME *s, const char *str);
crypto/openssl/include/openssl/asn1.h
845
int ASN1_TIME_set_string_X509(ASN1_TIME *s, const char *str);
crypto/openssl/include/openssl/asn1.h
943
int ASN1_STRING_print_ex_fp(FILE *fp, const ASN1_STRING *str, unsigned long flags);
crypto/openssl/include/openssl/asn1.h
973
int ASN1_STRING_print_ex(BIO *out, const ASN1_STRING *str, unsigned long flags);
crypto/openssl/include/openssl/bio.h
891
OSSL_DEPRECATEDIN_1_1_0 int BIO_get_port(const char *str, unsigned short *port_ptr);
crypto/openssl/include/openssl/bio.h
892
OSSL_DEPRECATEDIN_1_1_0 int BIO_get_host_ip(const char *str, unsigned char *ip);
crypto/openssl/include/openssl/bn.h
345
int BN_hex2bn(BIGNUM **a, const char *str);
crypto/openssl/include/openssl/bn.h
346
int BN_dec2bn(BIGNUM **a, const char *str);
crypto/openssl/include/openssl/bn.h
347
int BN_asc2bn(BIGNUM **a, const char *str);
crypto/openssl/include/openssl/buffer.h
38
#define BUF_strnlen(str, maxlen) OPENSSL_strnlen(str, maxlen)
crypto/openssl/include/openssl/buffer.h
53
size_t BUF_MEM_grow(BUF_MEM *str, size_t len);
crypto/openssl/include/openssl/buffer.h
54
size_t BUF_MEM_grow_clean(BUF_MEM *str, size_t len);
crypto/openssl/include/openssl/core_dispatch.h
168
OSSL_CORE_MAKE_FUNC(int, BIO_puts, (OSSL_CORE_BIO *bio, const char *str))
crypto/openssl/include/openssl/crypto.h
120
#define OPENSSL_memdup(str, s) \
crypto/openssl/include/openssl/crypto.h
121
CRYPTO_memdup((str), s, OPENSSL_FILE, OPENSSL_LINE)
crypto/openssl/include/openssl/crypto.h
122
#define OPENSSL_strdup(str) \
crypto/openssl/include/openssl/crypto.h
123
CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
crypto/openssl/include/openssl/crypto.h
124
#define OPENSSL_strndup(str, n) \
crypto/openssl/include/openssl/crypto.h
125
CRYPTO_strndup(str, n, OPENSSL_FILE, OPENSSL_LINE)
crypto/openssl/include/openssl/crypto.h
139
size_t OPENSSL_strnlen(const char *str, size_t maxlen);
crypto/openssl/include/openssl/crypto.h
140
int OPENSSL_strtoul(const char *str, char **endptr, int base, unsigned long *num);
crypto/openssl/include/openssl/crypto.h
141
int OPENSSL_buf2hexstr_ex(char *str, size_t str_n, size_t *strlength,
crypto/openssl/include/openssl/crypto.h
146
const char *str, const char sep);
crypto/openssl/include/openssl/crypto.h
147
unsigned char *OPENSSL_hexstr2buf(const char *str, long *buflen);
crypto/openssl/include/openssl/crypto.h
368
void *CRYPTO_memdup(const void *str, size_t siz, const char *file, int line);
crypto/openssl/include/openssl/crypto.h
369
char *CRYPTO_strdup(const char *str, const char *file, int line);
crypto/openssl/include/openssl/crypto.h
370
char *CRYPTO_strndup(const char *str, size_t s, const char *file, int line);
crypto/openssl/include/openssl/crypto.h
426
int CRYPTO_mem_leaks_cb(int (*cb)(const char *str, size_t len, void *u),
crypto/openssl/include/openssl/des.h
193
OSSL_DEPRECATEDIN_3_0 void DES_string_to_key(const char *str, DES_cblock *key);
crypto/openssl/include/openssl/des.h
195
void DES_string_to_2keys(const char *str, DES_cblock *key1, DES_cblock *key2);
crypto/openssl/include/openssl/engine.h
593
const char *str,
crypto/openssl/include/openssl/engine.h
597
const char *str, int len);
crypto/openssl/include/openssl/err.h
466
void ERR_print_errors_cb(int (*cb)(const char *str, size_t len, void *u),
crypto/openssl/include/openssl/err.h
478
int ERR_load_strings(int lib, ERR_STRING_DATA *str);
crypto/openssl/include/openssl/err.h
479
int ERR_load_strings_const(const ERR_STRING_DATA *str);
crypto/openssl/include/openssl/err.h
480
int ERR_unload_strings(int lib, ERR_STRING_DATA *str);
crypto/openssl/include/openssl/evp.h
1368
int EVP_PKEY_set_type_str(EVP_PKEY *pkey, const char *str, int len);
crypto/openssl/include/openssl/evp.h
1612
const char *str, int len);
crypto/openssl/include/openssl/evp.h
1882
int EVP_PKEY_CTX_str2ctrl(EVP_PKEY_CTX *ctx, int cmd, const char *str);
crypto/openssl/include/openssl/evp.h
2063
char *str, size_t max_buf_sz, size_t *out_sz);
crypto/openssl/include/openssl/evp.h
2075
const char *str);
crypto/openssl/include/openssl/hpke.h
160
int OSSL_HPKE_str2suite(const char *str, OSSL_HPKE_SUITE *suite);
crypto/openssl/include/openssl/pem.h
105
#define IMPLEMENT_PEM_read_fp(name, type, str, asn1) /**/
crypto/openssl/include/openssl/pem.h
106
#define IMPLEMENT_PEM_write_fp(name, type, str, asn1) /**/
crypto/openssl/include/openssl/pem.h
108
#define IMPLEMENT_PEM_write_fp_const(name, type, str, asn1) /**/
crypto/openssl/include/openssl/pem.h
110
#define IMPLEMENT_PEM_write_cb_fp(name, type, str, asn1) /**/
crypto/openssl/include/openssl/pem.h
112
#define IMPLEMENT_PEM_write_cb_fp_const(name, type, str, asn1) /**/
crypto/openssl/include/openssl/pem.h
116
#define IMPLEMENT_PEM_read_fp(name, type, str, asn1) \
crypto/openssl/include/openssl/pem.h
119
return PEM_ASN1_read((d2i_of_void *)d2i_##asn1, str, fp, \
crypto/openssl/include/openssl/pem.h
123
#define IMPLEMENT_PEM_write_fp(name, type, str, asn1) \
crypto/openssl/include/openssl/pem.h
126
return PEM_ASN1_write((i2d_of_void *)i2d_##asn1, str, out, \
crypto/openssl/include/openssl/pem.h
131
#define IMPLEMENT_PEM_write_fp_const(name, type, str, asn1) \
crypto/openssl/include/openssl/pem.h
132
IMPLEMENT_PEM_write_fp(name, type, str, asn1)
crypto/openssl/include/openssl/pem.h
135
#define IMPLEMENT_PEM_write_cb_fp(name, type, str, asn1) \
crypto/openssl/include/openssl/pem.h
138
return PEM_ASN1_write((i2d_of_void *)i2d_##asn1, str, out, \
crypto/openssl/include/openssl/pem.h
143
#define IMPLEMENT_PEM_write_cb_fp_const(name, type, str, asn1) \
crypto/openssl/include/openssl/pem.h
144
IMPLEMENT_PEM_write_cb_fp(name, type, str, asn1)
crypto/openssl/include/openssl/pem.h
148
#define IMPLEMENT_PEM_read_bio(name, type, str, asn1) \
crypto/openssl/include/openssl/pem.h
152
return PEM_ASN1_read_bio((d2i_of_void *)d2i_##asn1, str, bp, \
crypto/openssl/include/openssl/pem.h
156
#define IMPLEMENT_PEM_write_bio(name, type, str, asn1) \
crypto/openssl/include/openssl/pem.h
159
return PEM_ASN1_write_bio((i2d_of_void *)i2d_##asn1, str, out, \
crypto/openssl/include/openssl/pem.h
164
#define IMPLEMENT_PEM_write_bio_const(name, type, str, asn1) \
crypto/openssl/include/openssl/pem.h
165
IMPLEMENT_PEM_write_bio(name, type, str, asn1)
crypto/openssl/include/openssl/pem.h
168
#define IMPLEMENT_PEM_write_cb_bio(name, type, str, asn1) \
crypto/openssl/include/openssl/pem.h
171
return PEM_ASN1_write_bio((i2d_of_void *)i2d_##asn1, str, out, \
crypto/openssl/include/openssl/pem.h
176
#define IMPLEMENT_PEM_write_cb_bio_const(name, type, str, asn1) \
crypto/openssl/include/openssl/pem.h
177
IMPLEMENT_PEM_write_cb_bio(name, type, str, asn1)
crypto/openssl/include/openssl/pem.h
180
#define IMPLEMENT_PEM_write(name, type, str, asn1) \
crypto/openssl/include/openssl/pem.h
181
IMPLEMENT_PEM_write_bio(name, type, str, asn1) \
crypto/openssl/include/openssl/pem.h
182
IMPLEMENT_PEM_write_fp(name, type, str, asn1)
crypto/openssl/include/openssl/pem.h
185
#define IMPLEMENT_PEM_write_const(name, type, str, asn1) \
crypto/openssl/include/openssl/pem.h
186
IMPLEMENT_PEM_write_bio_const(name, type, str, asn1) \
crypto/openssl/include/openssl/pem.h
187
IMPLEMENT_PEM_write_fp_const(name, type, str, asn1)
crypto/openssl/include/openssl/pem.h
190
#define IMPLEMENT_PEM_write_cb(name, type, str, asn1) \
crypto/openssl/include/openssl/pem.h
191
IMPLEMENT_PEM_write_cb_bio(name, type, str, asn1) \
crypto/openssl/include/openssl/pem.h
192
IMPLEMENT_PEM_write_cb_fp(name, type, str, asn1)
crypto/openssl/include/openssl/pem.h
195
#define IMPLEMENT_PEM_write_cb_const(name, type, str, asn1) \
crypto/openssl/include/openssl/pem.h
196
IMPLEMENT_PEM_write_cb_bio_const(name, type, str, asn1) \
crypto/openssl/include/openssl/pem.h
197
IMPLEMENT_PEM_write_cb_fp_const(name, type, str, asn1)
crypto/openssl/include/openssl/pem.h
200
#define IMPLEMENT_PEM_read(name, type, str, asn1) \
crypto/openssl/include/openssl/pem.h
201
IMPLEMENT_PEM_read_bio(name, type, str, asn1) \
crypto/openssl/include/openssl/pem.h
202
IMPLEMENT_PEM_read_fp(name, type, str, asn1)
crypto/openssl/include/openssl/pem.h
204
#define IMPLEMENT_PEM_rw(name, type, str, asn1) \
crypto/openssl/include/openssl/pem.h
205
IMPLEMENT_PEM_read(name, type, str, asn1) \
crypto/openssl/include/openssl/pem.h
206
IMPLEMENT_PEM_write(name, type, str, asn1)
crypto/openssl/include/openssl/pem.h
209
#define IMPLEMENT_PEM_rw_const(name, type, str, asn1) \
crypto/openssl/include/openssl/pem.h
210
IMPLEMENT_PEM_read(name, type, str, asn1) \
crypto/openssl/include/openssl/pem.h
211
IMPLEMENT_PEM_write_const(name, type, str, asn1)
crypto/openssl/include/openssl/pem.h
214
#define IMPLEMENT_PEM_rw_cb(name, type, str, asn1) \
crypto/openssl/include/openssl/pem.h
215
IMPLEMENT_PEM_read(name, type, str, asn1) \
crypto/openssl/include/openssl/pem.h
216
IMPLEMENT_PEM_write_cb(name, type, str, asn1)
crypto/openssl/include/openssl/pem.h
442
void PEM_dek_info(char *buf, const char *type, int len, const char *str);
crypto/openssl/include/openssl/ssl.h
1506
#define SSL_set1_groups_list(s, str) \
crypto/openssl/include/openssl/ssl.h
1507
SSL_ctrl(s, SSL_CTRL_SET_GROUPS_LIST, 0, (char *)(str))
crypto/openssl/include/openssl/ssl.h
1518
#define SSL_set1_sigalgs_list(s, str) \
crypto/openssl/include/openssl/ssl.h
1519
SSL_ctrl(s, SSL_CTRL_SET_SIGALGS_LIST, 0, (char *)(str))
crypto/openssl/include/openssl/ssl.h
1526
#define SSL_set1_client_sigalgs_list(s, str) \
crypto/openssl/include/openssl/ssl.h
1527
SSL_ctrl(s, SSL_CTRL_SET_CLIENT_SIGALGS_LIST, 0, (char *)(str))
crypto/openssl/include/openssl/ssl.h
1535
#define SSL_get0_signature_name(s, str) \
crypto/openssl/include/openssl/ssl.h
1536
SSL_ctrl(s, SSL_CTRL_GET_SIGNATURE_NAME, 0, (1 ? (str) : (const char **)NULL))
crypto/openssl/include/openssl/ssl.h
1539
#define SSL_get0_peer_signature_name(s, str) \
crypto/openssl/include/openssl/ssl.h
1540
SSL_ctrl(s, SSL_CTRL_GET_PEER_SIGNATURE_NAME, 0, (1 ? (str) : (const char **)NULL))
crypto/openssl/include/openssl/ssl.h
1622
__owur int SSL_CTX_set_cipher_list(SSL_CTX *, const char *str);
crypto/openssl/include/openssl/ssl.h
1674
__owur int SSL_set_cipher_list(SSL *s, const char *str);
crypto/openssl/include/openssl/ssl.h
1675
__owur int SSL_CTX_set_ciphersuites(SSL_CTX *ctx, const char *str);
crypto/openssl/include/openssl/ssl.h
1676
__owur int SSL_set_ciphersuites(SSL *s, const char *str);
crypto/openssl/include/openssl/x509.h
533
NETSCAPE_SPKI *NETSCAPE_SPKI_b64_decode(const char *str, int len);
crypto/openssl/include/openssl/x509_vfy.h
650
const char *str,
crypto/openssl/include/openssl/x509_vfy.h
736
const char *str, int len, X509_OBJECT *ret);
crypto/openssl/include/openssl/x509v3.h
56
struct v3_ext_ctx *ctx, const char *str);
crypto/openssl/include/openssl/x509v3.h
60
struct v3_ext_ctx *ctx, const char *str);
crypto/openssl/include/openssl/x509v3.h
837
X509V3_CTX *ctx, const char *str);
crypto/openssl/include/openssl/x509v3.h
840
X509V3_CTX *ctx, const char *str);
crypto/openssl/include/openssl/x509v3.h
868
X509V3_CTX *ctx, const char *str);
crypto/openssl/include/openssl/x509v3.h
957
void X509V3_string_free(X509V3_CTX *ctx, char *str);
crypto/openssl/providers/common/bio_prov.c
113
int ossl_prov_bio_puts(OSSL_CORE_BIO *bio, const char *str)
crypto/openssl/providers/common/bio_prov.c
117
return c_bio_puts(bio, str);
crypto/openssl/providers/common/bio_prov.c
186
static int bio_core_puts(BIO *bio, const char *str)
crypto/openssl/providers/common/bio_prov.c
188
return ossl_prov_bio_puts(BIO_get_data(bio), str);
crypto/openssl/providers/common/include/prov/bio.h
24
int ossl_prov_bio_puts(OSSL_CORE_BIO *bio, const char *str);
crypto/openssl/providers/implementations/asymciphers/rsa_enc.c
466
char *str = NULL;
crypto/openssl/providers/implementations/asymciphers/rsa_enc.c
482
str = mdname;
crypto/openssl/providers/implementations/asymciphers/rsa_enc.c
483
if (!OSSL_PARAM_get_utf8_string(p, &str, sizeof(mdname)))
crypto/openssl/providers/implementations/asymciphers/rsa_enc.c
489
str = mdprops;
crypto/openssl/providers/implementations/asymciphers/rsa_enc.c
490
if (!OSSL_PARAM_get_utf8_string(p, &str, sizeof(mdprops)))
crypto/openssl/providers/implementations/asymciphers/rsa_enc.c
543
str = mdname;
crypto/openssl/providers/implementations/asymciphers/rsa_enc.c
544
if (!OSSL_PARAM_get_utf8_string(p, &str, sizeof(mdname)))
crypto/openssl/providers/implementations/asymciphers/rsa_enc.c
550
str = mdprops;
crypto/openssl/providers/implementations/asymciphers/rsa_enc.c
551
if (!OSSL_PARAM_get_utf8_string(p, &str, sizeof(mdprops)))
crypto/openssl/providers/implementations/asymciphers/rsa_enc.c
554
str = NULL;
crypto/openssl/providers/implementations/asymciphers/rsa_enc.c
558
prsactx->mgf1_md = EVP_MD_fetch(prsactx->libctx, mdname, str);
crypto/openssl/providers/implementations/ciphers/cipher_aes_ccm_hw.c
24
ctx->str = ctx->enc ? (ccm128_f)fn_ccm_enc : (ccm128_f)fn_ccm_dec; \
crypto/openssl/providers/implementations/ciphers/cipher_aria_ccm_hw.c
24
ctx->str = NULL;
crypto/openssl/providers/implementations/ciphers/cipher_sm4_ccm_hw.c
21
ctx->str = ctx->enc ? (ccm128_f)fn_ccm_enc : (ccm128_f)fn_ccm_dec; \
crypto/openssl/providers/implementations/ciphers/ciphercommon_ccm_hw.c
37
if (ctx->str != NULL)
crypto/openssl/providers/implementations/ciphers/ciphercommon_ccm_hw.c
39
out, len, ctx->str)
crypto/openssl/providers/implementations/ciphers/ciphercommon_ccm_hw.c
55
if (ctx->str != NULL)
crypto/openssl/providers/implementations/ciphers/ciphercommon_ccm_hw.c
57
ctx->str)
crypto/openssl/providers/implementations/encode_decode/decode_der2key.c
185
char *str = ctx->propq;
crypto/openssl/providers/implementations/encode_decode/decode_der2key.c
188
if (p != NULL && !OSSL_PARAM_get_utf8_string(p, &str, sizeof(ctx->propq)))
crypto/openssl/providers/implementations/encode_decode/decode_epki2pki.c
70
char *str = ctx->propq;
crypto/openssl/providers/implementations/encode_decode/decode_epki2pki.c
73
if (p != NULL && !OSSL_PARAM_get_utf8_string(p, &str, sizeof(ctx->propq)))
crypto/openssl/providers/implementations/encode_decode/decode_pem2der.c
100
str = ctx->data_structure;
crypto/openssl/providers/implementations/encode_decode/decode_pem2der.c
102
&& !OSSL_PARAM_get_utf8_string(p, &str, sizeof(ctx->data_structure)))
crypto/openssl/providers/implementations/encode_decode/decode_pem2der.c
91
char *str;
crypto/openssl/providers/implementations/encode_decode/decode_pem2der.c
94
str = ctx->propq;
crypto/openssl/providers/implementations/encode_decode/decode_pem2der.c
96
&& !OSSL_PARAM_get_utf8_string(p, &str, sizeof(ctx->propq)))
crypto/openssl/providers/implementations/encode_decode/decode_pvk2key.c
102
if (p != NULL && !OSSL_PARAM_get_utf8_string(p, &str, sizeof(ctx->propq)))
crypto/openssl/providers/implementations/encode_decode/decode_pvk2key.c
99
char *str = ctx->propq;
crypto/openssl/providers/implementations/encode_decode/decode_spki2typespki.c
68
char *str = ctx->propq;
crypto/openssl/providers/implementations/encode_decode/decode_spki2typespki.c
71
if (p != NULL && !OSSL_PARAM_get_utf8_string(p, &str, sizeof(ctx->propq)))
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
199
void *str = NULL;
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
206
if (p2s != NULL && !p2s(key, key_nid, ctx->save_parameters, &str, &strtype))
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
209
p8 = key_to_encp8(key, key_nid, str, strtype, k2d, ctx);
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
226
void *str = NULL;
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
233
if (p2s != NULL && !p2s(key, key_nid, ctx->save_parameters, &str, &strtype))
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
236
p8 = key_to_encp8(key, key_nid, str, strtype, k2d, ctx);
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
253
void *str = NULL;
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
261
if (p2s != NULL && !p2s(key, key_nid, ctx->save_parameters, &str, &strtype))
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
264
p8info = key_to_p8info(key, key_nid, str, strtype, k2d, ctx);
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
269
free_asn1_data(strtype, str);
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
284
void *str = NULL;
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
292
if (p2s != NULL && !p2s(key, key_nid, ctx->save_parameters, &str, &strtype))
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
295
p8info = key_to_p8info(key, key_nid, str, strtype, k2d, ctx);
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
300
free_asn1_data(strtype, str);
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
315
void *str = NULL;
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
319
if (p2s != NULL && !p2s(key, key_nid, ctx->save_parameters, &str, &strtype))
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
322
xpk = key_to_pubkey(key, key_nid, str, strtype, k2d, ctx);
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
340
void *str = NULL;
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
344
if (p2s != NULL && !p2s(key, key_nid, ctx->save_parameters, &str, &strtype))
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
347
xpk = key_to_pubkey(key, key_nid, str, strtype, k2d, ctx);
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
352
free_asn1_data(strtype, str);
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
65
void **str, int *strtype);
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
930
unsigned char *str = NULL;
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
941
if ((str = OPENSSL_malloc(str_sz)) == NULL
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
942
|| !WPACKET_init_der(&pkt, str, str_sz)) {
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
969
ASN1_STRING_set0(astr, str, (int)str_sz);
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
974
OPENSSL_free(str);
crypto/openssl/providers/implementations/exchange/dh_exch.c
346
char *str = NULL;
crypto/openssl/providers/implementations/exchange/dh_exch.c
362
str = name;
crypto/openssl/providers/implementations/exchange/dh_exch.c
363
if (!OSSL_PARAM_get_utf8_string(p, &str, sizeof(name)))
crypto/openssl/providers/implementations/exchange/dh_exch.c
377
str = name;
crypto/openssl/providers/implementations/exchange/dh_exch.c
378
if (!OSSL_PARAM_get_utf8_string(p, &str, sizeof(name)))
crypto/openssl/providers/implementations/exchange/dh_exch.c
381
str = mdprops;
crypto/openssl/providers/implementations/exchange/dh_exch.c
386
if (!OSSL_PARAM_get_utf8_string(p, &str, sizeof(mdprops)))
crypto/openssl/providers/implementations/exchange/dh_exch.c
443
str = name;
crypto/openssl/providers/implementations/exchange/dh_exch.c
448
if (!OSSL_PARAM_get_utf8_string(p, &str, sizeof(name)))
crypto/openssl/providers/implementations/exchange/ecdh_exch.c
243
char *str = NULL;
crypto/openssl/providers/implementations/exchange/ecdh_exch.c
277
str = name;
crypto/openssl/providers/implementations/exchange/ecdh_exch.c
278
if (!OSSL_PARAM_get_utf8_string(p, &str, sizeof(name)))
crypto/openssl/providers/implementations/exchange/ecdh_exch.c
293
str = name;
crypto/openssl/providers/implementations/exchange/ecdh_exch.c
294
if (!OSSL_PARAM_get_utf8_string(p, &str, sizeof(name)))
crypto/openssl/providers/implementations/exchange/ecdh_exch.c
297
str = mdprops;
crypto/openssl/providers/implementations/exchange/ecdh_exch.c
302
if (!OSSL_PARAM_get_utf8_string(p, &str, sizeof(mdprops)))
crypto/openssl/providers/implementations/include/prov/ciphercommon_ccm.h
47
ccm128_f str;
crypto/openssl/providers/implementations/rands/drbg.c
84
static int get_parent_strength(PROV_DRBG *drbg, unsigned int *str)
crypto/openssl/providers/implementations/rands/drbg.c
95
*params = OSSL_PARAM_construct_uint(OSSL_RAND_PARAM_STRENGTH, str);
crypto/openssl/providers/implementations/storemgmt/file_store_any2obj.c
72
char *str;
crypto/openssl/providers/implementations/storemgmt/file_store_any2obj.c
75
str = ctx->data_structure;
crypto/openssl/providers/implementations/storemgmt/file_store_any2obj.c
77
&& !OSSL_PARAM_get_utf8_string(p, &str, sizeof(ctx->data_structure)))
crypto/openssl/ssl/bio_ssl.c
23
static int ssl_puts(BIO *h, const char *str);
crypto/openssl/ssl/bio_ssl.c
434
static int ssl_puts(BIO *bp, const char *str)
crypto/openssl/ssl/bio_ssl.c
438
n = strlen(str);
crypto/openssl/ssl/bio_ssl.c
439
ret = BIO_write(bp, str, n);
crypto/openssl/ssl/quic/json_enc.c
296
static void json_write_qstring(OSSL_JSON_ENC *json, const char *str);
crypto/openssl/ssl/quic/json_enc.c
607
json_write_qstring_inner(OSSL_JSON_ENC *json, const char *str, size_t str_len,
crypto/openssl/ssl/quic/json_enc.c
620
for (j = nul_term ? strlen(str) : str_len; j > 0; str++, j--) {
crypto/openssl/ssl/quic/json_enc.c
621
c = *str;
crypto/openssl/ssl/quic/json_enc.c
622
u_str = (unsigned char *)str;
crypto/openssl/ssl/quic/json_enc.c
649
memcpy(obuf, str, 2);
crypto/openssl/ssl/quic/json_enc.c
651
str++, j--;
crypto/openssl/ssl/quic/json_enc.c
660
memcpy(obuf, str, 3);
crypto/openssl/ssl/quic/json_enc.c
662
str += 2;
crypto/openssl/ssl/quic/json_enc.c
673
memcpy(obuf, str, 4);
crypto/openssl/ssl/quic/json_enc.c
675
str += 3;
crypto/openssl/ssl/quic/json_enc.c
701
json_write_qstring(OSSL_JSON_ENC *json, const char *str)
crypto/openssl/ssl/quic/json_enc.c
703
json_write_qstring_inner(json, str, 0, 1);
crypto/openssl/ssl/quic/json_enc.c
707
json_write_qstring_len(OSSL_JSON_ENC *json, const char *str, size_t str_len)
crypto/openssl/ssl/quic/json_enc.c
709
json_write_qstring_inner(json, str, str_len, 0);
crypto/openssl/ssl/quic/json_enc.c
712
void ossl_json_str(OSSL_JSON_ENC *json, const char *str)
crypto/openssl/ssl/quic/json_enc.c
717
json_write_qstring(json, str);
crypto/openssl/ssl/quic/json_enc.c
721
void ossl_json_str_len(OSSL_JSON_ENC *json, const char *str, size_t str_len)
crypto/openssl/ssl/quic/json_enc.c
726
json_write_qstring_len(json, str, str_len);
crypto/openssl/ssl/quic/qlog.c
593
static void lex_get_rest(struct lexer *lex, const char **str, size_t *str_l)
crypto/openssl/ssl/quic/qlog.c
595
*str = lex->p;
crypto/openssl/ssl/quic/qlog.c
600
const char **str, size_t *str_l)
crypto/openssl/ssl/quic/qlog.c
609
*str = p;
crypto/openssl/ssl/quic/quic_trace.c
46
static void put_str(BIO *bio, char *str, size_t slen)
crypto/openssl/ssl/quic/quic_trace.c
51
BIO_printf(bio, "%c", str[i]);
crypto/openssl/ssl/ssl_ciph.c
1288
static __owur int set_ciphersuites(STACK_OF(SSL_CIPHER) **currciphers, const char *str)
crypto/openssl/ssl/ssl_ciph.c
1296
if (*str != '\0'
crypto/openssl/ssl/ssl_ciph.c
1297
&& (CONF_parse_list(str, ':', 1, ciphersuite_cb, newciphers) <= 0
crypto/openssl/ssl/ssl_ciph.c
1373
int SSL_CTX_set_ciphersuites(SSL_CTX *ctx, const char *str)
crypto/openssl/ssl/ssl_ciph.c
1375
int ret = set_ciphersuites(&(ctx->tls13_ciphersuites), str);
crypto/openssl/ssl/ssl_ciph.c
1384
int SSL_set_ciphersuites(SSL *s, const char *str)
crypto/openssl/ssl/ssl_ciph.c
1393
ret = set_ciphersuites(&(sc->tls13_ciphersuites), str);
crypto/openssl/ssl/ssl_conf.c
55
#define SSL_FLAG_TBL(str, flag) \
crypto/openssl/ssl/ssl_conf.c
56
{ str, (int)(sizeof(str) - 1), SSL_TFLAG_BOTH, flag }
crypto/openssl/ssl/ssl_conf.c
57
#define SSL_FLAG_TBL_SRV(str, flag) \
crypto/openssl/ssl/ssl_conf.c
58
{ str, (int)(sizeof(str) - 1), SSL_TFLAG_SERVER, flag }
crypto/openssl/ssl/ssl_conf.c
59
#define SSL_FLAG_TBL_CLI(str, flag) \
crypto/openssl/ssl/ssl_conf.c
60
{ str, (int)(sizeof(str) - 1), SSL_TFLAG_CLIENT, flag }
crypto/openssl/ssl/ssl_conf.c
61
#define SSL_FLAG_TBL_INV(str, flag) \
crypto/openssl/ssl/ssl_conf.c
62
{ str, (int)(sizeof(str) - 1), SSL_TFLAG_INV | SSL_TFLAG_BOTH, flag }
crypto/openssl/ssl/ssl_conf.c
63
#define SSL_FLAG_TBL_SRV_INV(str, flag) \
crypto/openssl/ssl/ssl_conf.c
64
{ str, (int)(sizeof(str) - 1), SSL_TFLAG_INV | SSL_TFLAG_SERVER, flag }
crypto/openssl/ssl/ssl_conf.c
65
#define SSL_FLAG_TBL_CERT(str, flag) \
crypto/openssl/ssl/ssl_conf.c
66
{ str, (int)(sizeof(str) - 1), SSL_TFLAG_CERT | SSL_TFLAG_BOTH, flag }
crypto/openssl/ssl/ssl_conf.c
68
#define SSL_FLAG_VFY_CLI(str, flag) \
crypto/openssl/ssl/ssl_conf.c
69
{ str, (int)(sizeof(str) - 1), SSL_TFLAG_VFY | SSL_TFLAG_CLIENT, flag }
crypto/openssl/ssl/ssl_conf.c
70
#define SSL_FLAG_VFY_SRV(str, flag) \
crypto/openssl/ssl/ssl_conf.c
71
{ str, (int)(sizeof(str) - 1), SSL_TFLAG_VFY | SSL_TFLAG_SERVER, flag }
crypto/openssl/ssl/ssl_lib.c
3360
int SSL_CTX_set_cipher_list(SSL_CTX *ctx, const char *str)
crypto/openssl/ssl/ssl_lib.c
3365
&ctx->cipher_list, &ctx->cipher_list_by_id, str,
crypto/openssl/ssl/ssl_lib.c
3384
int SSL_set_cipher_list(SSL *s, const char *str)
crypto/openssl/ssl/ssl_lib.c
3395
&sc->cipher_list, &sc->cipher_list_by_id, str,
crypto/openssl/ssl/ssl_local.h
2769
__owur size_t tls1_final_finish_mac(SSL_CONNECTION *s, const char *str,
crypto/openssl/ssl/ssl_local.h
2775
__owur size_t tls13_final_finish_mac(SSL_CONNECTION *s, const char *str, size_t slen,
crypto/openssl/ssl/ssl_local.h
2857
const char *str);
crypto/openssl/ssl/ssl_local.h
2889
__owur int tls1_set_sigalgs_list(SSL_CTX *ctx, CERT *c, const char *str, int client);
crypto/openssl/ssl/t1_enc.c
335
size_t tls1_final_finish_mac(SSL_CONNECTION *s, const char *str,
crypto/openssl/ssl/t1_enc.c
355
if (!tls1_PRF(s, str, slen, hash, hashlen, NULL, 0, NULL, 0, NULL, 0,
crypto/openssl/ssl/t1_lib.c
1607
const char *str)
crypto/openssl/ssl/t1_lib.c
1637
while (str[0] != '\0' && isspace((unsigned char)*str))
crypto/openssl/ssl/t1_lib.c
1638
str++;
crypto/openssl/ssl/t1_lib.c
1639
if (str[0] == '\0')
crypto/openssl/ssl/t1_lib.c
1646
parse_ret = CONF_parse_list(str, TUPLE_DELIMITER_CHARACTER, 1, tuple_cb, &gcb);
crypto/openssl/ssl/t1_lib.c
1652
"Syntax error in '%s'", str);
crypto/openssl/ssl/t1_lib.c
1674
str, OPENSSL_CLIENT_MAX_KEY_SHARES);
crypto/openssl/ssl/t1_lib.c
3697
static void get_sigorhash(int *psig, int *phash, const char *str)
crypto/openssl/ssl/t1_lib.c
3699
if (OPENSSL_strcasecmp(str, "RSA") == 0) {
crypto/openssl/ssl/t1_lib.c
3701
} else if (OPENSSL_strcasecmp(str, "RSA-PSS") == 0
crypto/openssl/ssl/t1_lib.c
3702
|| OPENSSL_strcasecmp(str, "PSS") == 0) {
crypto/openssl/ssl/t1_lib.c
3704
} else if (OPENSSL_strcasecmp(str, "DSA") == 0) {
crypto/openssl/ssl/t1_lib.c
3706
} else if (OPENSSL_strcasecmp(str, "ECDSA") == 0) {
crypto/openssl/ssl/t1_lib.c
3709
*phash = OBJ_sn2nid(str);
crypto/openssl/ssl/t1_lib.c
3711
*phash = OBJ_ln2nid(str);
crypto/openssl/ssl/t1_lib.c
3825
int tls1_set_sigalgs_list(SSL_CTX *ctx, CERT *c, const char *str, int client)
crypto/openssl/ssl/t1_lib.c
3832
if (!CONF_parse_list(str, ':', 1, sig_cb, &sig))
crypto/openssl/ssl/t1_lib.c
3836
"No valid signature algorithms in '%s'", str);
crypto/openssl/ssl/tls13_enc.c
267
size_t tls13_final_finish_mac(SSL_CONNECTION *s, const char *str, size_t slen,
crypto/openssl/ssl/tls13_enc.c
294
if (str == SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->server_finished_label) {
crypto/openssl/test/asn1_internal_test.c
280
ASN1_STRING *str = NULL;
crypto/openssl/test/asn1_internal_test.c
285
if (!TEST_int_eq(ASN1_mbstring_ncopy(&str, in, inlen, inform, B_ASN1_GENERALSTRING, 0, 0), -1)
crypto/openssl/test/asn1_internal_test.c
286
|| !TEST_int_eq(ASN1_mbstring_ncopy(&str, in, inlen, inform, B_ASN1_VISIBLESTRING, 0, 0), -1)
crypto/openssl/test/asn1_internal_test.c
287
|| !TEST_int_eq(ASN1_mbstring_ncopy(&str, in, inlen, inform, B_ASN1_VIDEOTEXSTRING, 0, 0), -1)
crypto/openssl/test/asn1_internal_test.c
288
|| !TEST_int_eq(ASN1_mbstring_ncopy(&str, in, inlen, inform, B_ASN1_GENERALIZEDTIME, 0, 0), -1))
crypto/openssl/test/asynciotest.c
282
static int async_puts(BIO *bio, const char *str)
crypto/openssl/test/asynciotest.c
284
return async_write(bio, str, strlen(str));
crypto/openssl/test/asynciotest.c
33
static int async_puts(BIO *bp, const char *str);
crypto/openssl/test/bio_core_test.c
36
static int tst_bio_core_puts(OSSL_CORE_BIO *bio, const char *str)
crypto/openssl/test/bio_core_test.c
38
return BIO_puts(bio->bio, str);
crypto/openssl/test/bio_memleak_test.c
21
static const char str[] = "BIO test\n";
crypto/openssl/test/bio_memleak_test.c
242
static const char str[] = "BIO mime test\n";
crypto/openssl/test/bio_memleak_test.c
248
bufmem.length = sizeof(str);
crypto/openssl/test/bio_memleak_test.c
249
bufmem.data = (char *)str;
crypto/openssl/test/bio_memleak_test.c
27
bufmem.length = sizeof(str);
crypto/openssl/test/bio_memleak_test.c
28
bufmem.data = (char *)str;
crypto/openssl/test/bio_memleak_test.c
32
if (!TEST_int_eq(BIO_read(bio, buf, sizeof(buf)), sizeof(str)))
crypto/openssl/test/bio_memleak_test.c
34
if (!TEST_mem_eq(buf, sizeof(str), str, sizeof(str)))
crypto/openssl/test/bntest.c
3211
char *str = NULL;
crypto/openssl/test/bntest.c
3224
if (!TEST_ptr_ne(str = BN_bn2dec(r), NULL))
crypto/openssl/test/bntest.c
3226
if (!TEST_int_eq(strcmp(str, "2609653924"), 0))
crypto/openssl/test/bntest.c
3239
OPENSSL_free(str);
crypto/openssl/test/bntest.c
3246
char *str = NULL;
crypto/openssl/test/bntest.c
3265
if (!TEST_ptr_ne(str = BN_bn2dec(r), NULL))
crypto/openssl/test/bntest.c
3267
if (!TEST_str_eq(str, "36"))
crypto/openssl/test/bntest.c
3270
OPENSSL_free(str);
crypto/openssl/test/bntest.c
3271
str = NULL;
crypto/openssl/test/bntest.c
3280
if (!TEST_ptr_ne(str = BN_bn2dec(r), NULL))
crypto/openssl/test/bntest.c
3282
if (!TEST_str_eq(str, "36"))
crypto/openssl/test/bntest.c
3285
OPENSSL_free(str);
crypto/openssl/test/bntest.c
3286
str = NULL;
crypto/openssl/test/bntest.c
3295
if (!TEST_ptr_ne(str = BN_bn2dec(c), NULL))
crypto/openssl/test/bntest.c
3297
if (!TEST_str_eq(str, "36"))
crypto/openssl/test/bntest.c
3308
OPENSSL_free(str);
crypto/openssl/test/cmp_ctx_test.c
220
unsigned char str[16 /* = len */];
crypto/openssl/test/cmp_ctx_test.c
229
if (!TEST_int_eq(1, RAND_bytes(str, len))
crypto/openssl/test/cmp_ctx_test.c
231
|| !TEST_true(ASN1_OCTET_STRING_set(data, str, len)))
crypto/openssl/test/cmp_status_test.c
17
const char *str; /* Not freed by tear_down */
crypto/openssl/test/cmp_status_test.c
54
|| !TEST_str_eq(fixture->str, ossl_cmp_PKIStatus_to_string(status)))
crypto/openssl/test/cmp_status_test.c
82
fixture->str = "PKIStatus: revocation notification - a revocation of the cert has occurred";
crypto/openssl/test/conf_include_test.c
120
str = NCONF_get_string(conf, "req_distinguished_name", "countryName_default");
crypto/openssl/test/conf_include_test.c
121
if (!TEST_ptr(str) || !TEST_str_eq(str, "AU")) {
crypto/openssl/test/conf_include_test.c
83
char *str;
crypto/openssl/test/d2i_test.c
156
if (strcmp(expected_errors[i].str, expected_error_string) == 0) {
crypto/openssl/test/d2i_test.c
38
const char *str;
crypto/openssl/test/helpers/ssltestlib.c
250
static int tls_dump_puts(BIO *bio, const char *str)
crypto/openssl/test/helpers/ssltestlib.c
252
return tls_dump_write(bio, str, strlen(str));
crypto/openssl/test/helpers/ssltestlib.c
288
static int mempacket_test_puts(BIO *bp, const char *str);
crypto/openssl/test/helpers/ssltestlib.c
39
static int tls_dump_puts(BIO *bp, const char *str);
crypto/openssl/test/helpers/ssltestlib.c
747
static int mempacket_test_puts(BIO *bio, const char *str)
crypto/openssl/test/helpers/ssltestlib.c
749
return mempacket_test_write(bio, str, strlen(str));
crypto/openssl/test/helpers/ssltestlib.c
758
static int always_retry_puts(BIO *bp, const char *str);
crypto/openssl/test/helpers/ssltestlib.c
845
static int always_retry_puts(BIO *bio, const char *str)
crypto/openssl/test/sslcorrupttest.c
83
static int tls_corrupt_puts(BIO *bio, const char *str)
crypto/openssl/test/testutil.h
351
DECLARE_COMPARISON(char *, str, eq)
crypto/openssl/test/testutil.h
352
DECLARE_COMPARISON(char *, str, ne)
crypto/openssl/test/testutil/cb.c
13
int openssl_error_cb(const char *str, size_t len, void *u)
crypto/openssl/test/testutil/cb.c
15
return test_printf_stderr("%s", str);
crypto/openssl/test/testutil/compare.c
12
static void strip_line_ends(char *str)
crypto/openssl/test/testutil/compare.c
16
for (i = strlen(str);
crypto/openssl/test/testutil/compare.c
17
i > 0 && (str[i - 1] == '\n' || str[i - 1] == '\r');
crypto/openssl/test/testutil/compare.c
21
str[i] = '\0';
crypto/openssl/test/testutil/testutil_init.c
102
static void setup_trace(const char *str)
crypto/openssl/test/testutil/testutil_init.c
114
val = OPENSSL_strdup(str);
crypto/openssl/test/testutil/tu_local.h
18
int openssl_error_cb(const char *str, size_t len, void *u);
crypto/openssl/test/tls-provider.c
1326
void **str, int *strtype);
crypto/openssl/test/tls-provider.c
1458
void *str = NULL;
crypto/openssl/test/tls-provider.c
1465
if (p2s != NULL && !p2s(key, key_nid, ctx->save_parameters, &str, &strtype))
crypto/openssl/test/tls-provider.c
1468
p8 = key_to_encp8(key, key_nid, str, strtype, k2d, ctx);
crypto/openssl/test/tls-provider.c
1485
void *str = NULL;
crypto/openssl/test/tls-provider.c
1492
if (p2s != NULL && !p2s(key, key_nid, ctx->save_parameters, &str, &strtype))
crypto/openssl/test/tls-provider.c
1495
p8 = key_to_encp8(key, key_nid, str, strtype, k2d, ctx);
crypto/openssl/test/tls-provider.c
1512
void *str = NULL;
crypto/openssl/test/tls-provider.c
1520
if (p2s != NULL && !p2s(key, key_nid, ctx->save_parameters, &str, &strtype))
crypto/openssl/test/tls-provider.c
1523
p8info = key_to_p8info(key, key_nid, str, strtype, k2d);
crypto/openssl/test/tls-provider.c
1528
free_asn1_data(strtype, str);
crypto/openssl/test/tls-provider.c
1543
void *str = NULL;
crypto/openssl/test/tls-provider.c
1551
if (p2s != NULL && !p2s(key, key_nid, ctx->save_parameters, &str, &strtype))
crypto/openssl/test/tls-provider.c
1554
p8info = key_to_p8info(key, key_nid, str, strtype, k2d);
crypto/openssl/test/tls-provider.c
1559
free_asn1_data(strtype, str);
crypto/openssl/test/tls-provider.c
1575
void *str = NULL;
crypto/openssl/test/tls-provider.c
1578
if (p2s != NULL && !p2s(key, key_nid, ctx->save_parameters, &str, &strtype))
crypto/openssl/test/tls-provider.c
1581
xpk = xorx_key_to_pubkey(key, key_nid, str, strtype, k2d);
crypto/openssl/test/tls-provider.c
1599
void *str = NULL;
crypto/openssl/test/tls-provider.c
1602
if (p2s != NULL && !p2s(key, key_nid, ctx->save_parameters, &str, &strtype))
crypto/openssl/test/tls-provider.c
1605
xpk = xorx_key_to_pubkey(key, key_nid, str, strtype, k2d);
crypto/openssl/test/tls-provider.c
1610
free_asn1_data(strtype, str);
crypto/openssl/test/tls13ccstest.c
240
static int watchccs_puts(BIO *bio, const char *str)
crypto/openssl/test/tls13ccstest.c
242
return watchccs_write(bio, str, strlen(str));
crypto/openssl/test/tls13ccstest.c
33
static int watchccs_puts(BIO *bp, const char *str);
crypto/openssl/test/tls13encryptiontest.c
178
static unsigned char *multihexstr2buf(const char *str[3], size_t *len)
crypto/openssl/test/tls13encryptiontest.c
186
totlen += strlen(str[outer]);
crypto/openssl/test/tls13encryptiontest.c
197
for (inner = 0; str[outer][inner] != 0; inner += 2) {
crypto/openssl/test/tls13encryptiontest.c
200
hi = OPENSSL_hexchar2int(str[outer][inner]);
crypto/openssl/test/tls13encryptiontest.c
201
lo = OPENSSL_hexchar2int(str[outer][inner + 1]);
crypto/openssl/test/trace_api_test.c
100
OSSL_trace_string(trc_out, text, full, (unsigned char *)(str), strlen(str))
crypto/openssl/test/trace_api_test.c
99
#define trace_string(text, full, str) \
include/ssp/signal.h
40
(int signum, char *__restrict str))
include/ssp/signal.h
42
if (__ssp_bos(str) < SIG2STR_MAX)
include/ssp/signal.h
45
return (__ssp_real(sig2str)(signum, str));
include/ssp/stdio.h
100
#define fgets(str, len, fp) __extension__ ({ \
include/ssp/stdio.h
101
char *_ssp_str = (str); \
include/ssp/stdio.h
76
#define sprintf(str, ...) __extension__ ({ \
include/ssp/stdio.h
77
char *_ssp_str = (str); \
include/ssp/stdio.h
82
#define vsprintf(str, fmt, ap) __extension__ ({ \
include/ssp/stdio.h
83
char *_ssp_str = (str); \
include/ssp/stdio.h
88
#define snprintf(str, len, ...) __extension__ ({ \
include/ssp/stdio.h
89
char *_ssp_str = (str); \
include/ssp/stdio.h
94
#define vsnprintf(str, len, fmt, ap) __extension__ ({ \
include/ssp/stdio.h
95
char *_ssp_str = (str); \
kerberos5/lib/libgssapi_krb5/gss_krb5.c
109
char *str;
kerberos5/lib/libgssapi_krb5/gss_krb5.c
127
ret = krb5_cc_get_full_name(context, id, &str);
kerberos5/lib/libgssapi_krb5/gss_krb5.c
129
ret = krb5_store_string(sp, str);
kerberos5/lib/libgssapi_krb5/gss_krb5.c
130
free(str);
kerberos5/lib/libgssapi_krb5/gss_krb5.c
141
ret = krb5_unparse_name(context, keytab_principal, &str);
kerberos5/lib/libgssapi_krb5/gss_krb5.c
143
ret = krb5_store_string(sp, str);
kerberos5/lib/libgssapi_krb5/gss_krb5.c
144
free(str);
kerberos5/lib/libgssapi_krb5/gss_krb5.c
156
ret = krb5_kt_get_full_name(context, keytab, &str);
kerberos5/lib/libgssapi_krb5/gss_krb5.c
158
ret = krb5_store_string(sp, str);
kerberos5/lib/libgssapi_krb5/gss_krb5.c
159
free(str);
kerberos5/lib/libgssapi_krb5/gss_krb5.c
48
char *str;
kerberos5/lib/libgssapi_krb5/gss_krb5.c
70
kret = asprintf(&str, "%.*s", (int)data_set->elements[0].length,
kerberos5/lib/libgssapi_krb5/gss_krb5.c
78
kret = krb5_cc_resolve(context, str, &id);
kerberos5/lib/libgssapi_krb5/gss_krb5.c
79
free(str);
lib/clang/liblldb/LLDBWrapLua.cpp
1100
SWIG_fail_arg(func_name,argnum,(type && type->str)?type->str:"void*")
lib/clang/liblldb/LLDBWrapLua.cpp
1828
lua_pushfstring(L, "<userdata of type '%s' at %p>", userData->type->str, userData->ptr);
lib/clang/liblldb/LLDBWrapLua.cpp
2596
func_name,(type && type->str)?type->str:"void*",argnum);
lib/clang/liblldb/LLDBWrapLua.cpp
2634
if (usr && usr->type && usr->type->str)
lib/clang/liblldb/LLDBWrapLua.cpp
2635
return usr->type->str;
lib/clang/liblldb/LLDBWrapLua.cpp
2712
SWIG_Lua_dostring(lua_State *L, const char *str) {
lib/clang/liblldb/LLDBWrapLua.cpp
2714
if (str==0 || str[0]==0) return 0; /* nothing to do */
lib/clang/liblldb/LLDBWrapLua.cpp
2717
ok=luaL_dostring(L,str); /* looks like this is lua 5.1.X or later, good */
lib/clang/liblldb/LLDBWrapLua.cpp
2719
ok=lua_dostring(L,str); /* might be lua 5.0.x, using lua_dostring */
lib/clang/liblldb/LLDBWrapLua.cpp
3392
SWIGINTERN void lldb_SBCommandReturnObject_Print(lldb::SBCommandReturnObject *self,char const *str){
lib/clang/liblldb/LLDBWrapLua.cpp
3393
self->Printf("%s", str);
lib/clang/liblldb/LLDBWrapLua.cpp
365
const char *str; /* human readable name of this type */
lib/clang/liblldb/LLDBWrapLua.cpp
3867
static void LLDBSwigLuaCallLuaLogOutputCallback(const char *str, void *baton) {
lib/clang/liblldb/LLDBWrapLua.cpp
3874
lua_pushstring(L, str);
lib/clang/liblldb/LLDBWrapLua.cpp
533
if (type->str != NULL) {
lib/clang/liblldb/LLDBWrapLua.cpp
534
const char *last_name = type->str;
lib/clang/liblldb/LLDBWrapLua.cpp
536
for (s = type->str; *s; s++)
lib/clang/liblldb/LLDBWrapLua.cpp
637
if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
lib/clang/liblldb/LLDBWrapLua.cpp
966
SWIG_Lua_pusherrstring (lua_State *L, const char *str)
lib/clang/liblldb/LLDBWrapLua.cpp
969
lua_pushstring (L, str);
lib/geom/eli/geom_eli.c
729
const char *str, *prov;
lib/geom/eli/geom_eli.c
770
str = gctl_get_ascii(req, "aalgo");
lib/geom/eli/geom_eli.c
771
if (*str != '\0') {
lib/geom/eli/geom_eli.c
778
md.md_aalgo = g_eli_str2aalgo(str);
lib/geom/eli/geom_eli.c
787
md.md_ealgo = g_eli_str2ealgo(str);
lib/geom/eli/geom_eli.c
802
str = gctl_get_ascii(req, "ealgo");
lib/geom/eli/geom_eli.c
803
if (*str == '\0') {
lib/geom/eli/geom_eli.c
805
str = "aes-cbc";
lib/geom/eli/geom_eli.c
807
str = GELI_ENC_ALGO;
lib/geom/eli/geom_eli.c
809
md.md_ealgo = g_eli_str2ealgo(str);
lib/geom/eli/geom_eli.c
957
str = gctl_get_ascii(r, "backupfile");
lib/geom/eli/geom_eli.c
958
if (str[0] != '\0') {
lib/geom/eli/geom_eli.c
960
strlcpy(backfile, str, sizeof(backfile));
lib/geom/eli/geom_eli.c
971
str = strnstr(backfile, "PROV",
lib/geom/eli/geom_eli.c
973
if (str != NULL) {
lib/geom/eli/geom_eli.c
975
j = str - backfile;
lib/geom/journal/geom_journal.c
139
const char *data, *journal, *str;
lib/geom/journal/geom_journal.c
146
str = NULL; /* gcc */
lib/geom/journal/geom_journal.c
167
str = gctl_get_ascii(req, "arg%d", i);
lib/geom/journal/geom_journal.c
168
if (g_get_mediasize(str) == 0) {
lib/geom/journal/geom_journal.c
169
gctl_error(req, "Invalid provider %s.", str);
lib/geom/journal/geom_journal.c
242
str = gctl_get_ascii(req, "arg%d", i);
lib/geom/journal/geom_journal.c
243
error = g_metadata_clear(str, NULL);
lib/geom/journal/geom_journal.c
245
gctl_error(req, "Cannot clear metadata on %s: %s.", str,
lib/geom/journal/geom_journal.c
257
str = data;
lib/geom/journal/geom_journal.c
263
str = journal;
lib/geom/journal/geom_journal.c
267
md.md_provsize = g_get_mediasize(str);
lib/geom/journal/geom_journal.c
272
if (strncmp(str, _PATH_DEV, sizeof(_PATH_DEV) - 1) == 0)
lib/geom/journal/geom_journal.c
273
str += sizeof(_PATH_DEV) - 1;
lib/geom/journal/geom_journal.c
274
strlcpy(md.md_provider, str, sizeof(md.md_provider));
lib/geom/journal/geom_journal.c
277
error = g_metadata_store(str, sector, sizeof(sector));
lib/geom/journal/geom_journal.c
280
str, strerror(error));
lib/geom/journal/geom_journal.c
285
printf("Metadata value stored on %s.\n", str);
lib/geom/mirror/geom_mirror.c
182
const char *str;
lib/geom/mirror/geom_mirror.c
197
str = gctl_get_ascii(req, "arg0");
lib/geom/mirror/geom_mirror.c
198
strlcpy(md.md_name, str, sizeof(md.md_name));
lib/geom/mirror/geom_mirror.c
208
str = gctl_get_ascii(req, "balance");
lib/geom/mirror/geom_mirror.c
209
bal = balance_id(str);
lib/geom/mirror/geom_mirror.c
231
str = gctl_get_ascii(req, "arg%d", i);
lib/geom/mirror/geom_mirror.c
232
msize = g_get_mediasize(str);
lib/geom/mirror/geom_mirror.c
233
ssize = g_get_sectorsize(str);
lib/geom/mirror/geom_mirror.c
236
str, strerror(errno));
lib/geom/mirror/geom_mirror.c
255
str = gctl_get_ascii(req, "arg%d", i);
lib/geom/mirror/geom_mirror.c
256
error = g_metadata_clear(str, NULL);
lib/geom/mirror/geom_mirror.c
258
gctl_error(req, "Can't store metadata on %s: %s.", str,
lib/geom/mirror/geom_mirror.c
268
str = gctl_get_ascii(req, "arg%d", i);
lib/geom/mirror/geom_mirror.c
271
md.md_provsize = g_get_mediasize(str);
lib/geom/mirror/geom_mirror.c
276
if (strncmp(str, _PATH_DEV, sizeof(_PATH_DEV) - 1) == 0)
lib/geom/mirror/geom_mirror.c
277
str += sizeof(_PATH_DEV) - 1;
lib/geom/mirror/geom_mirror.c
278
strlcpy(md.md_provider, str, sizeof(md.md_provider));
lib/geom/mirror/geom_mirror.c
281
error = g_metadata_store(str, sector, sizeof(sector));
lib/geom/mirror/geom_mirror.c
284
str, strerror(error));
lib/geom/mirror/geom_mirror.c
289
printf("Metadata value stored on %s.\n", str);
lib/geom/raid3/geom_raid3.c
145
const char *str;
lib/geom/raid3/geom_raid3.c
164
str = gctl_get_ascii(req, "arg0");
lib/geom/raid3/geom_raid3.c
165
strlcpy(md.md_name, str, sizeof(md.md_name));
lib/geom/raid3/geom_raid3.c
196
str = gctl_get_ascii(req, "arg%d", i);
lib/geom/raid3/geom_raid3.c
197
msize = g_get_mediasize(str);
lib/geom/raid3/geom_raid3.c
198
ssize = g_get_sectorsize(str);
lib/geom/raid3/geom_raid3.c
201
str, strerror(errno));
lib/geom/raid3/geom_raid3.c
225
str = gctl_get_ascii(req, "arg%d", i);
lib/geom/raid3/geom_raid3.c
226
error = g_metadata_clear(str, NULL);
lib/geom/raid3/geom_raid3.c
228
gctl_error(req, "Can't store metadata on %s: %s.", str,
lib/geom/raid3/geom_raid3.c
238
str = gctl_get_ascii(req, "arg%d", i);
lib/geom/raid3/geom_raid3.c
239
msize = g_get_mediasize(str);
lib/geom/raid3/geom_raid3.c
240
ssize = g_get_sectorsize(str);
lib/geom/raid3/geom_raid3.c
244
str, (intmax_t)mediasize, (intmax_t)(msize - ssize));
lib/geom/raid3/geom_raid3.c
252
if (strncmp(str, _PATH_DEV, sizeof(_PATH_DEV) - 1) == 0)
lib/geom/raid3/geom_raid3.c
253
str += sizeof(_PATH_DEV) - 1;
lib/geom/raid3/geom_raid3.c
254
strlcpy(md.md_provider, str, sizeof(md.md_provider));
lib/geom/raid3/geom_raid3.c
264
error = g_metadata_store(str, sector, sizeof(sector));
lib/geom/raid3/geom_raid3.c
267
str, strerror(error));
lib/geom/raid3/geom_raid3.c
272
printf("Metadata value stored on %s.\n", str);
lib/libbluetooth/bluetooth.c
275
bt_ntoa(bdaddr_t const *ba, char *str)
lib/libbluetooth/bluetooth.c
279
if (str == NULL)
lib/libbluetooth/bluetooth.c
280
str = buffer;
lib/libbluetooth/bluetooth.c
282
sprintf(str, "%2.2x:%2.2x:%2.2x:%2.2x:%2.2x:%2.2x",
lib/libbluetooth/bluetooth.c
285
return (str);
lib/libbluetooth/bluetooth.c
289
bt_aton(char const *str, bdaddr_t *ba)
lib/libbluetooth/bluetooth.c
296
for (i = 5, end = strchr(str, ':');
lib/libbluetooth/bluetooth.c
297
i > 0 && *str != '\0' && end != NULL;
lib/libbluetooth/bluetooth.c
298
i --, str = end + 1, end = strchr(str, ':')) {
lib/libbluetooth/bluetooth.c
299
switch (end - str) {
lib/libbluetooth/bluetooth.c
301
b = bt_hex_nibble(str[0]);
lib/libbluetooth/bluetooth.c
305
b = bt_hex_byte(str);
lib/libbluetooth/bluetooth.c
319
if (i != 0 || end != NULL || *str == 0)
lib/libbluetooth/bluetooth.c
322
switch (strlen(str)) {
lib/libbluetooth/bluetooth.c
324
b = bt_hex_nibble(str[0]);
lib/libbluetooth/bluetooth.c
328
b = bt_hex_byte(str);
lib/libbluetooth/bluetooth.c
345
bt_hex_byte(char const *str)
lib/libbluetooth/bluetooth.c
349
if ((n1 = bt_hex_nibble(str[0])) < 0)
lib/libbluetooth/bluetooth.c
352
if ((n2 = bt_hex_nibble(str[1])) < 0)
lib/libbluetooth/bluetooth.c
58
static int bt_hex_byte (char const *str);
lib/libbluetooth/bluetooth.h
64
#define ba2str(ba, str) bt_ntoa((ba), (str))
lib/libbluetooth/bluetooth.h
65
#define str2ba(str, ba) (bt_aton((str), (ba)) == 1? 0 : -1)
lib/libbluetooth/bluetooth.h
87
char const * bt_ntoa (bdaddr_t const *ba, char *str);
lib/libbluetooth/bluetooth.h
88
int bt_aton (char const *str, bdaddr_t *ba);
lib/libc/amd64/string/amd64_archlevel.c
126
match_archlevel(const char *str, int *force)
lib/libc/amd64/string/amd64_archlevel.c
132
if (str[0] == '!') {
lib/libc/amd64/string/amd64_archlevel.c
133
str++;
lib/libc/amd64/string/amd64_archlevel.c
142
for (i = 0; str[i] == candidate[i]; i++)
lib/libc/amd64/string/amd64_archlevel.c
144
if (str[i] == '\0' || str[i] == ':' || str[i] == '+') {
lib/libc/gen/getcap.c
780
cgetstr(char *buf, const char *cap, char **str)
lib/libc/gen/getcap.c
892
*str = mem;
lib/libc/gen/getcap.c
907
cgetustr(char *buf, const char *cap, char **str)
lib/libc/gen/getcap.c
964
*str = mem;
lib/libc/gen/getnetgrent.c
476
_revnetgr_lookup(char* lookupdom, char* map, const char* str,
lib/libc/gen/getnetgrent.c
487
snprintf(key, MAXHOSTNAMELEN, "%s.%s", str,
lib/libc/gen/getnetgrent.c
491
snprintf(key, MAXHOSTNAMELEN, "%s.*", str);
lib/libc/gen/glob-compat11.c
1006
g_strchr(const Char *str, wchar_t ch)
lib/libc/gen/glob-compat11.c
1010
if (*str == ch)
lib/libc/gen/glob-compat11.c
1011
return (str);
lib/libc/gen/glob-compat11.c
1012
} while (*str++);
lib/libc/gen/glob-compat11.c
1017
g_Ctoc(const Char *str, char *buf, size_t len)
lib/libc/gen/glob-compat11.c
1024
clen = wcrtomb(buf, CHAR(*str), &mbs);
lib/libc/gen/glob-compat11.c
1027
*buf = (char)CHAR(*str);
lib/libc/gen/glob-compat11.c
1031
if (CHAR(*str) == EOS)
lib/libc/gen/glob-compat11.c
1033
str++;
lib/libc/gen/glob-compat11.c
1065
qprintf(const char *str, Char *s)
lib/libc/gen/glob-compat11.c
1069
(void)printf("%s\n", str);
lib/libc/gen/glob-compat11.c
958
g_opendir(Char *str, glob11_t *pglob)
lib/libc/gen/glob-compat11.c
962
if (*str == EOS)
lib/libc/gen/glob-compat11.c
965
if (g_Ctoc(str, buf, sizeof(buf))) {
lib/libc/gen/glob.c
1020
g_opendir(Char *str, glob_t *pglob)
lib/libc/gen/glob.c
1024
if (*str == EOS)
lib/libc/gen/glob.c
1027
if (g_Ctoc(str, buf, sizeof(buf))) {
lib/libc/gen/glob.c
1068
g_strchr(const Char *str, wchar_t ch)
lib/libc/gen/glob.c
1072
if (*str == ch)
lib/libc/gen/glob.c
1073
return (str);
lib/libc/gen/glob.c
1074
} while (*str++);
lib/libc/gen/glob.c
1079
g_Ctoc(const Char *str, char *buf, size_t len)
lib/libc/gen/glob.c
1086
clen = wcrtomb(buf, CHAR(*str), &mbs);
lib/libc/gen/glob.c
1089
*buf = (char)CHAR(*str);
lib/libc/gen/glob.c
1093
if (CHAR(*str) == EOS)
lib/libc/gen/glob.c
1095
str++;
lib/libc/gen/glob.c
1138
qprintf(const char *str, Char *s)
lib/libc/gen/glob.c
1142
(void)printf("%s\n", str);
lib/libc/gen/sig2str.c
106
if (strcasecmp(sys_signame[sig], str) == 0) {
lib/libc/gen/sig2str.c
45
__ssp_real(sig2str)(int signum, char *str)
lib/libc/gen/sig2str.c
51
(void)strlcpy(str, sys_signame[signum], SIG2STR_MAX);
lib/libc/gen/sig2str.c
53
(void)snprintf(str, SIG2STR_MAX, "%d", signum);
lib/libc/gen/sig2str.c
55
(void)strlcpy(str, rtmin_str, SIG2STR_MAX);
lib/libc/gen/sig2str.c
57
(void)strlcpy(str, rtmax_str, SIG2STR_MAX);
lib/libc/gen/sig2str.c
59
(void)snprintf(str, SIG2STR_MAX, "%s+%d",
lib/libc/gen/sig2str.c
62
(void)snprintf(str, SIG2STR_MAX, "%s-%d",
lib/libc/gen/sig2str.c
69
str2sig(const char * restrict str, int * restrict pnum)
lib/libc/gen/sig2str.c
76
if (strncasecmp(str, "SIG", 3) == 0)
lib/libc/gen/sig2str.c
77
str += 3;
lib/libc/gen/sig2str.c
79
if (strncasecmp(str, rtmin_str, sizeof(rtmin_str) - 1) == 0 ||
lib/libc/gen/sig2str.c
80
strncasecmp(str, rtmax_str, sizeof(rtmax_str) - 1) == 0) {
lib/libc/gen/sig2str.c
81
sig = (toupper(str[4]) == 'X') ? SIGRTMAX : SIGRTMIN;
lib/libc/gen/sig2str.c
83
if (str[rtend] == '+' || str[rtend] == '-') {
lib/libc/gen/sig2str.c
84
n = strtonum(str + rtend, INT_MIN, INT_MAX, &errstr);
lib/libc/gen/sig2str.c
87
} else if (str[rtend] != '\0') {
lib/libc/gen/sig2str.c
97
if (isdigit((unsigned char)str[0])) {
lib/libc/gen/sig2str.c
98
n = strtonum(str, 1, SIGRTMAX, &errstr);
lib/libc/iconv/citrus_esdb.c
103
ret = _db_lookupstr_by_s(db, _CITRUS_ESDB_SYM_ENCODING, &str, NULL);
lib/libc/iconv/citrus_esdb.c
106
esdb->db_encname = strdup(str);
lib/libc/iconv/citrus_esdb.c
114
ret = _db_lookupstr_by_s(db, _CITRUS_ESDB_SYM_VARIABLE, &str, NULL);
lib/libc/iconv/citrus_esdb.c
116
esdb->db_len_variable = strlen(str) + 1;
lib/libc/iconv/citrus_esdb.c
117
esdb->db_variable = strdup(str);
lib/libc/iconv/citrus_esdb.c
158
ret = _db_lookupstr_by_s(db, buf, &str, NULL);
lib/libc/iconv/citrus_esdb.c
161
esdb->db_charsets[i].ec_csname = strdup(str);
lib/libc/iconv/citrus_esdb.c
78
const char *str;
lib/libc/iconv/citrus_prop.c
292
obj->u.str = (const char *)s;
lib/libc/iconv/citrus_prop.c
403
CALL0(str);
lib/libc/iconv/citrus_prop.c
52
const char *str;
lib/libc/iconv/citrus_prop.c
72
free(__DECONST(void *, obj->u.str));
lib/libc/iconv/citrus_prop.h
51
_CITRUS_PROP_CB0_T(str, const char *)
lib/libc/iconv/citrus_prop.h
71
_CITRUS_PROP_CB_T_OPS(str);
lib/libc/iconv/citrus_prop.h
80
{ name, _CITRUS_PROP_STR, { .str = { cb } } }
lib/libc/isc/ev_streams.c
131
evStream *str = id.opaque;
lib/libc/isc/ev_streams.c
135
str->timer = timer;
lib/libc/isc/ev_streams.c
136
str->flags |= EV_STR_TIMEROK;
lib/libc/isc/ev_streams.c
142
evStream *str = id.opaque;
lib/libc/isc/ev_streams.c
146
str->flags &= ~EV_STR_TIMEROK;
lib/libc/isc/ev_streams.c
206
copyvec(evStream *str, const struct iovec *iov, int iocnt) {
lib/libc/isc/ev_streams.c
209
str->iovOrig = (struct iovec *)memget(sizeof(struct iovec) * iocnt);
lib/libc/isc/ev_streams.c
210
if (str->iovOrig == NULL) {
lib/libc/isc/ev_streams.c
214
str->ioTotal = 0;
lib/libc/isc/ev_streams.c
216
str->iovOrig[i] = iov[i];
lib/libc/isc/ev_streams.c
217
str->ioTotal += iov[i].iov_len;
lib/libc/isc/ev_streams.c
219
str->iovOrigCount = iocnt;
lib/libc/isc/ev_streams.c
220
str->iovCur = str->iovOrig;
lib/libc/isc/ev_streams.c
221
str->iovCurCount = str->iovOrigCount;
lib/libc/isc/ev_streams.c
222
str->ioDone = 0;
lib/libc/isc/ev_streams.c
228
consume(evStream *str, size_t bytes) {
lib/libc/isc/ev_streams.c
230
if (bytes < (size_t)str->iovCur->iov_len) {
lib/libc/isc/ev_streams.c
231
str->iovCur->iov_len -= bytes;
lib/libc/isc/ev_streams.c
232
str->iovCur->iov_base = (void *)
lib/libc/isc/ev_streams.c
233
((u_char *)str->iovCur->iov_base + bytes);
lib/libc/isc/ev_streams.c
234
str->ioDone += bytes;
lib/libc/isc/ev_streams.c
237
bytes -= str->iovCur->iov_len;
lib/libc/isc/ev_streams.c
238
str->ioDone += str->iovCur->iov_len;
lib/libc/isc/ev_streams.c
239
str->iovCur++;
lib/libc/isc/ev_streams.c
240
str->iovCurCount--;
lib/libc/isc/ev_streams.c
247
done(evContext opaqueCtx, evStream *str) {
lib/libc/isc/ev_streams.c
251
str->prevDone = ctx->strLast;
lib/libc/isc/ev_streams.c
252
ctx->strLast->nextDone = str;
lib/libc/isc/ev_streams.c
253
ctx->strLast = str;
lib/libc/isc/ev_streams.c
256
ctx->strDone = ctx->strLast = str;
lib/libc/isc/ev_streams.c
258
evDeselectFD(opaqueCtx, str->file);
lib/libc/isc/ev_streams.c
259
str->file.opaque = NULL;
lib/libc/isc/ev_streams.c
266
evStream *str = uap;
lib/libc/isc/ev_streams.c
271
bytes = writev(fd, str->iovCur, str->iovCurCount);
lib/libc/isc/ev_streams.c
273
if ((str->flags & EV_STR_TIMEROK) != 0)
lib/libc/isc/ev_streams.c
274
evTouchIdleTimer(opaqueCtx, str->timer);
lib/libc/isc/ev_streams.c
275
consume(str, bytes);
lib/libc/isc/ev_streams.c
278
str->ioDone = -1;
lib/libc/isc/ev_streams.c
279
str->ioErrno = errno;
lib/libc/isc/ev_streams.c
282
if (str->ioDone == -1 || str->ioDone == str->ioTotal)
lib/libc/isc/ev_streams.c
283
done(opaqueCtx, str);
lib/libc/isc/ev_streams.c
289
evStream *str = uap;
lib/libc/isc/ev_streams.c
294
bytes = readv(fd, str->iovCur, str->iovCurCount);
lib/libc/isc/ev_streams.c
296
if ((str->flags & EV_STR_TIMEROK) != 0)
lib/libc/isc/ev_streams.c
297
evTouchIdleTimer(opaqueCtx, str->timer);
lib/libc/isc/ev_streams.c
298
consume(str, bytes);
lib/libc/isc/ev_streams.c
301
str->ioDone = 0;
lib/libc/isc/ev_streams.c
304
str->ioDone = -1;
lib/libc/isc/ev_streams.c
305
str->ioErrno = errno;
lib/libc/isc/ev_streams.c
309
if (str->ioDone <= 0 || str->ioDone == str->ioTotal)
lib/libc/isc/ev_streams.c
310
done(opaqueCtx, str);
lib/libc/isc/ev_streams.c
43
static int copyvec(evStream *str, const struct iovec *iov, int iocnt);
lib/libc/isc/ev_streams.c
44
static void consume(evStream *str, size_t bytes);
lib/libc/isc/ev_streams.c
45
static void done(evContext opaqueCtx, evStream *str);
lib/libc/locale/collate.c
271
compar = *key - *p->str;
lib/libc/locale/collate.c
273
l = wcsnlen(p->str, COLLATE_STR_LEN);
lib/libc/locale/collate.c
274
compar = wcsncmp(key, p->str, l);
lib/libc/locale/collate.c
691
__collate_equiv_value(locale_t locale, const wchar_t *str, size_t len)
lib/libc/locale/collate.c
703
return ((len == 1 && *str <= UCHAR_MAX) ? *str : -1);
lib/libc/locale/collate.c
707
if (*str <= UCHAR_MAX)
lib/libc/locale/collate.c
708
e = table->char_pri_table[*str].pri[0];
lib/libc/locale/collate.c
711
match_large = largesearch(table, *str);
lib/libc/locale/collate.c
724
wcsncpy (name, str, len);
lib/libc/locale/collate.h
105
wchar_t str[COLLATE_STR_LEN];
lib/libc/locale/fix_grouping.c
43
__fix_locale_grouping_str(const char *str)
lib/libc/locale/fix_grouping.c
48
if (str == NULL || *str == '\0') {
lib/libc/locale/fix_grouping.c
52
for (src = (char*)str, dst = (char*)str; *src != '\0'; src++) {
lib/libc/locale/fix_grouping.c
80
return (dst == (char*)str) ? nogrouping : str;
lib/libc/locale/fix_grouping.c
84
return str;
lib/libc/locale/gb2312.c
86
_GB2312_check(const char *str, size_t n)
lib/libc/locale/gb2312.c
88
const u_char *s = (const u_char *)str;
lib/libc/locale/lmonetary.c
78
cnv(const char *str)
lib/libc/locale/lmonetary.c
80
int i = strtol(str, NULL, 10);
lib/libc/nameser/ns_print.c
1017
const char *str = "record too long to print";
lib/libc/nameser/ns_print.c
1018
T(addstr(str, strlen(str), &buf, &buflen));
lib/libc/nameser/ns_print.c
594
const char *str = "record too long to print";
lib/libc/nameser/ns_print.c
595
T(addstr(str, strlen(str), &buf, &buflen));
lib/libc/nameser/ns_print.c
885
const char *str = "record too long to print";
lib/libc/nameser/ns_print.c
886
T(addstr(str, strlen(str), &buf, &buflen));
lib/libc/nameser/ns_print.c
977
const char *str = "record too long to print";
lib/libc/nameser/ns_print.c
978
T(addstr(str, strlen(str), &buf, &buflen));
lib/libc/net/getaddrinfo.c
1395
get_canonname(const struct addrinfo *pai, struct addrinfo *ai, const char *str)
lib/libc/net/getaddrinfo.c
1398
ai->ai_canonname = strdup(str);
lib/libc/net/getaddrinfo.c
335
#define GET_CANONNAME(ai, str) \
lib/libc/net/getaddrinfo.c
338
error = get_canonname(pai, (ai), (str)); \
lib/libc/net/gethostnamadr.c
163
char *str;
lib/libc/net/gethostnamadr.c
180
str = va_arg(ap, char *);
lib/libc/net/gethostnamadr.c
183
size = strlen(str);
lib/libc/net/gethostnamadr.c
206
memcpy(p, str, size + 1);
lib/libc/net/gethostnamadr.c
258
char *str __unused;
lib/libc/net/gethostnamadr.c
270
str = va_arg(ap, char *);
lib/libc/net/gethostnamadr.c
364
char *str __unused;
lib/libc/net/gethostnamadr.c
377
str = va_arg(ap, char *);
lib/libc/net/getnetbynis.c
187
char *str, *cp;
lib/libc/net/getnetbynis.c
236
str = (char *)&buf;
lib/libc/net/getnetbynis.c
237
cp = str + (strlen(str) - 2);
lib/libc/net/getnetbynis.c
241
cp = str + (strlen(str) - 2);
lib/libc/net/getnetbynis.c
244
if (_getnetbynis(str, "networks.byaddr", af, &ne, ned) != 0) {
lib/libc/net/nsparser.y
51
char *str;
lib/libc/net/nsparser.y
59
%token <str> STRING
lib/libc/net/nsparser.y
94
curdbt.name = yylval.str;
lib/libc/posix1e/acl_from_text_nfs4.c
104
error = _acl_name_to_id(tag, str, &id);
lib/libc/posix1e/acl_from_text_nfs4.c
114
parse_access_mask(char *str, acl_entry_t entry)
lib/libc/posix1e/acl_from_text_nfs4.c
119
error = _nfs4_parse_access_mask(str, &perm);
lib/libc/posix1e/acl_from_text_nfs4.c
129
parse_flags(char *str, acl_entry_t entry)
lib/libc/posix1e/acl_from_text_nfs4.c
134
error = _nfs4_parse_flags(str, &flags);
lib/libc/posix1e/acl_from_text_nfs4.c
144
parse_entry_type(const char *str, acl_entry_t entry)
lib/libc/posix1e/acl_from_text_nfs4.c
147
if (strcmp(str, "allow") == 0)
lib/libc/posix1e/acl_from_text_nfs4.c
149
if (strcmp(str, "deny") == 0)
lib/libc/posix1e/acl_from_text_nfs4.c
151
if (strcmp(str, "audit") == 0)
lib/libc/posix1e/acl_from_text_nfs4.c
153
if (strcmp(str, "alarm") == 0)
lib/libc/posix1e/acl_from_text_nfs4.c
162
parse_appended_id(char *str, acl_entry_t entry)
lib/libc/posix1e/acl_from_text_nfs4.c
168
qualifier_length = strlen(str);
lib/libc/posix1e/acl_from_text_nfs4.c
175
id = strtod(str, &end);
lib/libc/posix1e/acl_from_text_nfs4.c
176
if (end - str != qualifier_length) {
lib/libc/posix1e/acl_from_text_nfs4.c
185
number_of_colons(const char *str)
lib/libc/posix1e/acl_from_text_nfs4.c
189
while (*str != '\0') {
lib/libc/posix1e/acl_from_text_nfs4.c
190
if (*str == ':')
lib/libc/posix1e/acl_from_text_nfs4.c
193
str++;
lib/libc/posix1e/acl_from_text_nfs4.c
200
_nfs4_acl_entry_from_text(acl_t aclp, char *str)
lib/libc/posix1e/acl_from_text_nfs4.c
212
if (str == NULL)
lib/libc/posix1e/acl_from_text_nfs4.c
214
field = strsep(&str, ":");
lib/libc/posix1e/acl_from_text_nfs4.c
217
if ((*field == '\0') && (!str)) {
lib/libc/posix1e/acl_from_text_nfs4.c
230
if (str == NULL)
lib/libc/posix1e/acl_from_text_nfs4.c
232
qualifier_field = field = strsep(&str, ":");
lib/libc/posix1e/acl_from_text_nfs4.c
238
if (str == NULL)
lib/libc/posix1e/acl_from_text_nfs4.c
240
field = strsep(&str, ":");
lib/libc/posix1e/acl_from_text_nfs4.c
245
if (str == NULL)
lib/libc/posix1e/acl_from_text_nfs4.c
248
if (number_of_colons(str) > 0) {
lib/libc/posix1e/acl_from_text_nfs4.c
249
field = strsep(&str, ":");
lib/libc/posix1e/acl_from_text_nfs4.c
255
if (str == NULL)
lib/libc/posix1e/acl_from_text_nfs4.c
257
field = strsep(&str, ":");
lib/libc/posix1e/acl_from_text_nfs4.c
263
if (str == NULL) {
lib/libc/posix1e/acl_from_text_nfs4.c
269
error = parse_appended_id(str, entry);
lib/libc/posix1e/acl_from_text_nfs4.c
52
parse_tag(const char *str, acl_entry_t entry, int *need_qualifier)
lib/libc/posix1e/acl_from_text_nfs4.c
58
if (strcmp(str, "owner@") == 0)
lib/libc/posix1e/acl_from_text_nfs4.c
60
if (strcmp(str, "group@") == 0)
lib/libc/posix1e/acl_from_text_nfs4.c
62
if (strcmp(str, "everyone@") == 0)
lib/libc/posix1e/acl_from_text_nfs4.c
67
if (strcmp(str, "user") == 0 || strcmp(str, "u") == 0)
lib/libc/posix1e/acl_from_text_nfs4.c
69
if (strcmp(str, "group") == 0 || strcmp(str, "g") == 0)
lib/libc/posix1e/acl_from_text_nfs4.c
84
parse_qualifier(char *str, acl_entry_t entry, int *need_qualifier)
lib/libc/posix1e/acl_from_text_nfs4.c
93
qualifier_length = strlen(str);
lib/libc/posix1e/acl_support.h
50
int _nfs4_format_flags(char *str, size_t size, acl_flag_t var, int verbose);
lib/libc/posix1e/acl_support.h
51
int _nfs4_format_access_mask(char *str, size_t size, acl_perm_t var, int verbose);
lib/libc/posix1e/acl_support.h
52
int _nfs4_parse_flags(const char *str, acl_flag_t *var);
lib/libc/posix1e/acl_support.h
53
int _nfs4_parse_access_mask(const char *str, acl_perm_t *var);
lib/libc/posix1e/acl_support_nfs4.c
101
off += snprintf(str + off, size - off, "%s/", tmp);
lib/libc/posix1e/acl_support_nfs4.c
109
assert(str[off] == '/');
lib/libc/posix1e/acl_support_nfs4.c
112
str[off] = '\0';
lib/libc/posix1e/acl_support_nfs4.c
118
format_flags_compact(char *str, size_t size, uint32_t var,
lib/libc/posix1e/acl_support_nfs4.c
126
str[i] = '-';
lib/libc/posix1e/acl_support_nfs4.c
128
str[i] = flags[i].letter;
lib/libc/posix1e/acl_support_nfs4.c
131
str[i] = '\0';
lib/libc/posix1e/acl_support_nfs4.c
142
char *str, *flag, *to_free;
lib/libc/posix1e/acl_support_nfs4.c
144
str = strdup(strp);
lib/libc/posix1e/acl_support_nfs4.c
145
to_free = str;
lib/libc/posix1e/acl_support_nfs4.c
149
while (str != NULL) {
lib/libc/posix1e/acl_support_nfs4.c
150
flag = strsep(&str, "/:");
lib/libc/posix1e/acl_support_nfs4.c
177
parse_flags_compact(const char *str, uint32_t *var,
lib/libc/posix1e/acl_support_nfs4.c
185
if (str[i] == '\0')
lib/libc/posix1e/acl_support_nfs4.c
189
if (str[i] == '-')
lib/libc/posix1e/acl_support_nfs4.c
195
if (flags[j].letter == str[i]) {
lib/libc/posix1e/acl_support_nfs4.c
204
"invalid flag \"%c\"", flags_name, str[i]);
lib/libc/posix1e/acl_support_nfs4.c
211
_nfs4_format_flags(char *str, size_t size, acl_flag_t var, int verbose)
lib/libc/posix1e/acl_support_nfs4.c
215
return (format_flags_verbose(str, size, var, a_flags));
lib/libc/posix1e/acl_support_nfs4.c
217
return (format_flags_compact(str, size, var, a_flags));
lib/libc/posix1e/acl_support_nfs4.c
221
_nfs4_format_access_mask(char *str, size_t size, acl_perm_t var, int verbose)
lib/libc/posix1e/acl_support_nfs4.c
225
return (format_flags_verbose(str, size, var, a_access_masks));
lib/libc/posix1e/acl_support_nfs4.c
227
return (format_flags_compact(str, size, var, a_access_masks));
lib/libc/posix1e/acl_support_nfs4.c
231
_nfs4_parse_flags(const char *str, acl_flag_t *flags)
lib/libc/posix1e/acl_support_nfs4.c
236
error = parse_flags_verbose(str, &tmpflags, a_flags, "flags", &try_compact);
lib/libc/posix1e/acl_support_nfs4.c
238
error = parse_flags_compact(str, &tmpflags, a_flags, "flags");
lib/libc/posix1e/acl_support_nfs4.c
246
_nfs4_parse_access_mask(const char *str, acl_perm_t *perms)
lib/libc/posix1e/acl_support_nfs4.c
251
error = parse_flags_verbose(str, &tmpperms, a_access_masks,
lib/libc/posix1e/acl_support_nfs4.c
254
error = parse_flags_compact(str, &tmpperms,
lib/libc/posix1e/acl_support_nfs4.c
94
format_flags_verbose(char *str, size_t size, uint32_t var,
lib/libc/posix1e/acl_to_text_nfs4.c
110
format_entry_type(char *str, size_t size, const acl_entry_t entry)
lib/libc/posix1e/acl_to_text_nfs4.c
121
snprintf(str, size, "allow");
lib/libc/posix1e/acl_to_text_nfs4.c
124
snprintf(str, size, "deny");
lib/libc/posix1e/acl_to_text_nfs4.c
127
snprintf(str, size, "audit");
lib/libc/posix1e/acl_to_text_nfs4.c
130
snprintf(str, size, "alarm");
lib/libc/posix1e/acl_to_text_nfs4.c
140
format_additional_id(char *str, size_t size, const acl_entry_t entry)
lib/libc/posix1e/acl_to_text_nfs4.c
154
str[0] = '\0';
lib/libc/posix1e/acl_to_text_nfs4.c
161
snprintf(str, size, ":%d", (unsigned int)*id);
lib/libc/posix1e/acl_to_text_nfs4.c
169
format_entry(char *str, size_t size, const acl_entry_t entry, int flags)
lib/libc/posix1e/acl_to_text_nfs4.c
194
off += snprintf(str + off, size - off, "%*s:", len, buf);
lib/libc/posix1e/acl_to_text_nfs4.c
200
off += snprintf(str + off, size - off, "%s:", buf);
lib/libc/posix1e/acl_to_text_nfs4.c
206
off += snprintf(str + off, size - off, "%s:", buf);
lib/libc/posix1e/acl_to_text_nfs4.c
211
off += snprintf(str + off, size - off, "%s", buf);
lib/libc/posix1e/acl_to_text_nfs4.c
217
off += snprintf(str + off, size - off, "%s", buf);
lib/libc/posix1e/acl_to_text_nfs4.c
220
off += snprintf(str + off, size - off, "\n");
lib/libc/posix1e/acl_to_text_nfs4.c
232
char *str;
lib/libc/posix1e/acl_to_text_nfs4.c
239
str = malloc(size);
lib/libc/posix1e/acl_to_text_nfs4.c
240
if (str == NULL)
lib/libc/posix1e/acl_to_text_nfs4.c
248
error = format_entry(str + off, size - off, entry, flags);
lib/libc/posix1e/acl_to_text_nfs4.c
250
free(str);
lib/libc/posix1e/acl_to_text_nfs4.c
255
off = strlen(str);
lib/libc/posix1e/acl_to_text_nfs4.c
259
str[off] = '\0';
lib/libc/posix1e/acl_to_text_nfs4.c
264
return (str);
lib/libc/posix1e/acl_to_text_nfs4.c
45
format_who(char *str, size_t size, const acl_entry_t entry, int numeric)
lib/libc/posix1e/acl_to_text_nfs4.c
59
snprintf(str, size, "owner@");
lib/libc/posix1e/acl_to_text_nfs4.c
72
snprintf(str, size, "user:%d", (unsigned int)*id);
lib/libc/posix1e/acl_to_text_nfs4.c
74
snprintf(str, size, "user:%s", pwd->pw_name);
lib/libc/posix1e/acl_to_text_nfs4.c
79
snprintf(str, size, "group@");
lib/libc/posix1e/acl_to_text_nfs4.c
92
snprintf(str, size, "group:%d", (unsigned int)*id);
lib/libc/posix1e/acl_to_text_nfs4.c
94
snprintf(str, size, "group:%s", grp->gr_name);
lib/libc/posix1e/acl_to_text_nfs4.c
99
snprintf(str, size, "everyone@");
lib/libc/regex/engine.c
140
#define NOTE(str) { if (m->eflags&REG_TRACE) printf("=%s\n", (str)); }
lib/libc/regex/grot/main.c
391
check(char *str, regmatch_t sub, char *should)
lib/libc/regex/grot/main.c
423
if (sub.rm_eo > strlen(str)) {
lib/libc/regex/grot/main.c
431
p = str + sub.rm_so;
lib/libc/regex/grot/split.c
206
char *str;
lib/libc/regex/grot/split.c
284
for (n = 0; tests[n].str != NULL; n++) {
lib/libc/regex/grot/split.c
285
(void) strcpy(buf, tests[n].str);
lib/libc/regex/grot/split.c
291
tests[n].str, tests[n].seps, nf, tests[n].nf);
lib/libc/regex/grot/split.c
303
tests[n].str, tests[n].seps,
lib/libc/rpc/clnt_perror.c
117
i = snprintf(str, len, "; errno = %s", strerror(e.re_errno));
lib/libc/rpc/clnt_perror.c
119
str += i;
lib/libc/rpc/clnt_perror.c
125
i = snprintf(str, len, "; low version = %u, high version = %u",
lib/libc/rpc/clnt_perror.c
128
str += i;
lib/libc/rpc/clnt_perror.c
135
i = snprintf(str, len, "; why = ");
lib/libc/rpc/clnt_perror.c
137
str += i;
lib/libc/rpc/clnt_perror.c
141
i = snprintf(str, len, "%s",err);
lib/libc/rpc/clnt_perror.c
143
i = snprintf(str, len,
lib/libc/rpc/clnt_perror.c
148
str += i;
lib/libc/rpc/clnt_perror.c
154
i = snprintf(str, len, "; low version = %u, high version = %u",
lib/libc/rpc/clnt_perror.c
157
str += i;
lib/libc/rpc/clnt_perror.c
163
i = snprintf(str, len, "; s1 = %u, s2 = %u",
lib/libc/rpc/clnt_perror.c
166
str += i;
lib/libc/rpc/clnt_perror.c
232
char *str;
lib/libc/rpc/clnt_perror.c
237
str = _buf(); /* side effect: sets CLNT_PERROR_BUFLEN */
lib/libc/rpc/clnt_perror.c
238
if (str == NULL)
lib/libc/rpc/clnt_perror.c
241
i = snprintf(str, len, "%s: ", s);
lib/libc/rpc/clnt_perror.c
244
(void)strncat(str, clnt_sperrno(rpc_createerr.cf_stat), len - 1);
lib/libc/rpc/clnt_perror.c
247
(void) strncat(str, " - ", len - 1);
lib/libc/rpc/clnt_perror.c
248
(void) strncat(str,
lib/libc/rpc/clnt_perror.c
253
(void)strncat(str, " - ", len - 1);
lib/libc/rpc/clnt_perror.c
254
(void)strncat(str, strerror(rpc_createerr.cf_error.re_errno),
lib/libc/rpc/clnt_perror.c
277
str[CLNT_PERROR_BUFLEN-1] = '\0';
lib/libc/rpc/clnt_perror.c
278
return (str);
lib/libc/rpc/clnt_perror.c
75
char *str;
lib/libc/rpc/clnt_perror.c
82
str = _buf(); /* side effect: sets CLNT_PERROR_BUFLEN */
lib/libc/rpc/clnt_perror.c
83
if (str == NULL)
lib/libc/rpc/clnt_perror.c
86
strstart = str;
lib/libc/rpc/clnt_perror.c
89
if ((i = snprintf(str, len, "%s: ", s)) > 0) {
lib/libc/rpc/clnt_perror.c
90
str += i;
lib/libc/rpc/clnt_perror.c
94
(void)strncpy(str, clnt_sperrno(e.re_status), len - 1);
lib/libc/rpc/clnt_perror.c
95
i = strlen(str);
lib/libc/rpc/clnt_perror.c
96
str += i;
lib/libc/rpc/clnt_raw.c
262
clnt_raw_control(CLIENT *cl, u_int ui, void *str)
lib/libc/stdio/snprintf.c
51
snprintf(char * __restrict str, size_t n, char const * __restrict fmt, ...)
lib/libc/stdio/snprintf.c
64
*str = '\0';
lib/libc/stdio/snprintf.c
69
f._bf._base = f._p = (unsigned char *)str;
lib/libc/stdio/snprintf.c
78
snprintf_l(char * __restrict str, size_t n, locale_t locale,
lib/libc/stdio/snprintf.c
93
*str = '\0';
lib/libc/stdio/snprintf.c
98
f._bf._base = f._p = (unsigned char *)str;
lib/libc/stdio/sprintf.c
49
sprintf(char * __restrict str, char const * __restrict fmt, ...)
lib/libc/stdio/sprintf.c
55
ret = vsprintf(str, fmt, ap);
lib/libc/stdio/sprintf.c
60
sprintf_l(char * __restrict str, locale_t locale, char const * __restrict fmt,
lib/libc/stdio/sprintf.c
68
ret = vsprintf_l(str, locale, fmt, ap);
lib/libc/stdio/sscanf.c
47
sscanf(const char * __restrict str, char const * __restrict fmt, ...)
lib/libc/stdio/sscanf.c
53
ret = vsscanf(str, fmt, ap);
lib/libc/stdio/sscanf.c
58
sscanf_l(const char * __restrict str, locale_t locale,
lib/libc/stdio/sscanf.c
65
ret = vsscanf_l(str, locale, fmt, ap);
lib/libc/stdio/swscanf.c
40
swscanf(const wchar_t * __restrict str, const wchar_t * __restrict fmt, ...)
lib/libc/stdio/swscanf.c
46
r = vswscanf(str, fmt, ap);
lib/libc/stdio/swscanf.c
52
swscanf_l(const wchar_t * __restrict str, locale_t locale,
lib/libc/stdio/swscanf.c
59
r = vswscanf_l(str, locale, fmt, ap);
lib/libc/stdio/vasprintf.c
44
vasprintf_l(char **str, locale_t locale, const char *fmt, __va_list ap)
lib/libc/stdio/vasprintf.c
54
*str = NULL;
lib/libc/stdio/vasprintf.c
62
*str = NULL;
lib/libc/stdio/vasprintf.c
67
*str = (char *)f._bf._base;
lib/libc/stdio/vasprintf.c
71
vasprintf(char **str, const char *fmt, __va_list ap)
lib/libc/stdio/vasprintf.c
73
return vasprintf_l(str, __get_locale(), fmt, ap);
lib/libc/stdio/vsnprintf.c
49
vsnprintf_l(char * __restrict str, size_t n, locale_t locale,
lib/libc/stdio/vsnprintf.c
64
*str = '\0';
lib/libc/stdio/vsnprintf.c
70
*str = '\0';
lib/libc/stdio/vsnprintf.c
71
str = dummy;
lib/libc/stdio/vsnprintf.c
75
f._bf._base = f._p = (unsigned char *)str;
lib/libc/stdio/vsnprintf.c
83
vsnprintf(char * __restrict str, size_t n, const char * __restrict fmt,
lib/libc/stdio/vsnprintf.c
86
return vsnprintf_l(str, n, __get_locale(), fmt, ap);
lib/libc/stdio/vsprintf.c
49
vsprintf_l(char * __restrict str, locale_t locale,
lib/libc/stdio/vsprintf.c
58
f._bf._base = f._p = (unsigned char *)str;
lib/libc/stdio/vsprintf.c
65
vsprintf(char * __restrict str, const char * __restrict fmt, __va_list ap)
lib/libc/stdio/vsprintf.c
67
return vsprintf_l(str, __get_locale(), fmt, ap);
lib/libc/stdio/vsscanf.c
57
vsscanf_l(const char * __restrict str, locale_t locale,
lib/libc/stdio/vsscanf.c
64
f._bf._base = f._p = (unsigned char *)str;
lib/libc/stdio/vsscanf.c
65
f._bf._size = f._r = strlen(str);
lib/libc/stdio/vsscanf.c
70
vsscanf(const char * __restrict str, const char * __restrict fmt,
lib/libc/stdio/vsscanf.c
73
return vsscanf_l(str, __get_locale(), fmt, ap);
lib/libc/stdio/vswscanf.c
59
vswscanf_l(const wchar_t * __restrict str, locale_t locale,
lib/libc/stdio/vswscanf.c
75
if ((mbstr = malloc(wcslen(str) * MB_CUR_MAX + 1)) == NULL)
lib/libc/stdio/vswscanf.c
78
strp = str;
lib/libc/stdio/vswscanf.c
93
vswscanf(const wchar_t * __restrict str, const wchar_t * __restrict fmt,
lib/libc/stdio/vswscanf.c
96
return vswscanf_l(str, __get_locale(), fmt, ap);
lib/libc/stdio/xprintf_quote.c
52
const char *str, *p, *t, *o;
lib/libc/stdio/xprintf_quote.c
56
str = *((const char *const *)arg[0]);
lib/libc/stdio/xprintf_quote.c
57
if (str == NULL)
lib/libc/stdio/xprintf_quote.c
59
if (*str == '\0')
lib/libc/stdio/xprintf_quote.c
62
for (i = 0, p = str; *p; p++)
lib/libc/stdio/xprintf_quote.c
66
return (__printf_out(io, pi, str, strlen(str)));
lib/libc/stdio/xprintf_quote.c
69
for (t = p = str; *p; p++) {
lib/libc/stdlib/atoi.c
41
atoi(const char *str)
lib/libc/stdlib/atoi.c
43
return (int)strtol(str, NULL, 10);
lib/libc/stdlib/atoi.c
47
atoi_l(const char *str, locale_t locale)
lib/libc/stdlib/atoi.c
49
return (int)strtol_l(str, NULL, 10, locale);
lib/libc/stdlib/atol.c
41
atol(const char *str)
lib/libc/stdlib/atol.c
43
return strtol(str, (char **)NULL, 10);
lib/libc/stdlib/atol.c
47
atol_l(const char *str, locale_t locale)
lib/libc/stdlib/atol.c
49
return strtol_l(str, (char **)NULL, 10, locale);
lib/libc/stdlib/atoll.c
41
atoll(const char *str)
lib/libc/stdlib/atoll.c
43
return strtoll(str, (char **)NULL, 10);
lib/libc/stdlib/atoll.c
47
atoll_l(const char *str, locale_t locale)
lib/libc/stdlib/atoll.c
49
return strtoll_l(str, (char **)NULL, 10, locale);
lib/libc/stdlib/getenv.c
124
__strleneq(const char *str)
lib/libc/stdlib/getenv.c
128
for (s = str; *s != '\0'; ++s)
lib/libc/stdlib/getenv.c
132
return (s - str);
lib/libc/stdlib/hsearch_r.c
57
hsearch_hash(size_t offset_basis, const char *str)
lib/libc/stdlib/hsearch_r.c
62
while (*str != '\0') {
lib/libc/stdlib/hsearch_r.c
63
hash ^= (uint8_t)*str++;
lib/libc/stdtime/strftime.c
587
_add(const char *str, char *pt, const char * const ptlim)
lib/libc/stdtime/strftime.c
589
while (pt < ptlim && (*pt = *str++) != '\0')
lib/libc/string/strdup.c
37
strdup(const char *str)
lib/libc/string/strdup.c
42
len = strlen(str) + 1;
lib/libc/string/strdup.c
45
memcpy(copy, str, len);
lib/libc/string/strlen.c
70
return (p - str + x); \
lib/libc/string/strlen.c
74
strlen(const char *str)
lib/libc/string/strlen.c
90
lp = (const unsigned long *)((uintptr_t)str & ~LONGPTR_MASK);
lib/libc/string/strlen.c
96
for (p = str; p < (const char *)lp; p++)
lib/libc/string/strlen.c
98
return (p - str);
lib/libc/string/strndup.c
24
strndup(const char *str, size_t maxlen)
lib/libc/string/strndup.c
29
len = strnlen(str, maxlen);
lib/libc/string/strndup.c
32
(void)memcpy(copy, str, len);
lib/libc/tests/gen/sig2str_test.c
40
char str[SIG2STR_MAX];
lib/libc/tests/gen/sig2str_test.c
43
ATF_REQUIRE_EQ_MSG(sig2str(signum, str), 0,
lib/libc/tests/gen/sig2str_test.c
45
ATF_REQUIRE_EQ_MSG(str2sig(str, &sig), 0,
lib/libc/tests/gen/sig2str_test.c
46
"str2sig(\"%s\") failed", str);
lib/libc/tests/net/eui64_aton_test.c
40
test_str(const char *str, const struct eui64 *eui)
lib/libc/tests/net/eui64_aton_test.c
46
ATF_REQUIRE_MSG(eui64_aton(str, &e) == 0, "eui64_aton failed");
lib/libc/tests/net/eui64_aton_test.c
53
str, rc, buf);
lib/libc/tests/net/eui64_ntoa_test.c
39
test_str(const char *str, const struct eui64 *eui)
lib/libc/tests/net/inet_net_test.cc
115
auto str = std::string(std::ranges::begin(strbuf), end);
lib/libc/tests/net/inet_net_test.cc
116
ATF_REQUIRE_EQ(str, addr.output);
lib/libc/tests/net/inet_net_test.cc
234
auto str = std::string(std::ranges::begin(strbuf), end);
lib/libc/tests/net/inet_net_test.cc
235
ATF_REQUIRE_EQ(str, addr.output);
lib/libc/tests/stdio/fmemopen2_test.c
152
char str[] = "Test data length. ";
lib/libc/tests/stdio/fmemopen2_test.c
154
char str3[sizeof(str) + sizeof(str2) -1];
lib/libc/tests/stdio/fmemopen2_test.c
164
nofw = fwrite(str, 1, sizeof(str), fp);
lib/libc/tests/stdio/fmemopen2_test.c
165
ATF_REQUIRE(nofw == sizeof(str));
lib/libc/tests/stdio/fmemopen2_test.c
171
ATF_REQUIRE(pos == sizeof(str));
lib/libc/tests/stdio/fmemopen2_test.c
198
ATF_REQUIRE(strncmp(str3, str, sizeof(str) - 1) == 0);
lib/libc/tests/stdio/fmemopen2_test.c
199
ATF_REQUIRE(strncmp(str3 + sizeof(str) - 1, str2, sizeof(str2)) == 0);
lib/libc/tests/stdio/fmemopen2_test.c
216
char str[] = "Test";
lib/libc/tests/stdio/fmemopen2_test.c
228
nofw = fwrite(str, 1, strlen(str), fp);
lib/libc/tests/stdio/fmemopen2_test.c
229
ATF_REQUIRE(nofw == strlen(str));
lib/libc/tests/stdio/fmemopen2_test.c
44
char str[] = "Test writing some stuff";
lib/libc/tests/stdio/fmemopen2_test.c
56
nofw = fwrite(str, 1, sizeof(str), fp);
lib/libc/tests/stdio/fmemopen2_test.c
57
ATF_REQUIRE(nofw == sizeof(str));
lib/libc/tests/stdio/fmemopen2_test.c
77
ATF_REQUIRE(strcmp(str, buf2) == 0);
lib/libc/tests/stdio/fmemopen2_test.c
84
fp = fmemopen(str, 4, "w");
lib/libc/tests/stdio/fmemopen2_test.c
98
ATF_REQUIRE(strcmp(str, str3) == 0);
lib/libc/tests/stdtime/strptime_test.c
15
const char *str;
lib/libc/tests/stdtime/strptime_test.c
35
for (unsigned int i = 0; cases[i].str != NULL; i++) {
lib/libc/tests/stdtime/strptime_test.c
36
if (strptime(cases[i].str, "%Y-%m-%d", &tm) == NULL) {
lib/libc/tests/stdtime/strptime_test.c
38
cases[i].str);
lib/libc/tests/stdtime/strptime_test.c
41
cases[i].wday, cases[i].str, tm.tm_wday);
lib/libcam/camlib.c
692
cam_path_string(struct cam_device *dev, char *str, int len)
lib/libcam/camlib.c
695
snprintf(str, len, "No path");
lib/libcam/camlib.c
696
return(str);
lib/libcam/camlib.c
699
snprintf(str, len, "(%s%d:%s%d:%d:%d:%jx): ",
lib/libcam/camlib.c
708
return(str);
lib/libcam/camlib.h
141
char * cam_path_string(struct cam_device *dev, char *str,
lib/libcasper/services/cap_grp/cap_grp.c
128
str = (char *)outstrs + sizeof(char *) * (nmem + 1);
lib/libcasper/services/cap_grp/cap_grp.c
134
memcpy(str, mem, strsize);
lib/libcasper/services/cap_grp/cap_grp.c
135
outstrs[ii] = str;
lib/libcasper/services/cap_grp/cap_grp.c
136
str += strsize;
lib/libcasper/services/cap_grp/cap_grp.c
77
const char *str;
lib/libcasper/services/cap_grp/cap_grp.c
80
str = nvlist_get_string(nvl, fieldname);
lib/libcasper/services/cap_grp/cap_grp.c
81
len = strlcpy(*bufferp, str, *bufsizep);
lib/libcasper/services/cap_grp/cap_grp.c
96
char **outstrs, *str, nvlname[64];
lib/libcasper/services/cap_pwd/cap_pwd.c
76
const char *str;
lib/libcasper/services/cap_pwd/cap_pwd.c
79
str = nvlist_get_string(nvl, fieldname);
lib/libcasper/services/cap_pwd/cap_pwd.c
80
len = strlcpy(*bufferp, str, *bufsizep);
lib/libcuse/cuse_lib.c
655
static const char *str[CUSE_CMD_MAX] = {
lib/libcuse/cuse_lib.c
668
(str[cmd] != NULL))
lib/libcuse/cuse_lib.c
669
return (str[cmd]);
lib/libdevdctl/event.cc
225
return (result.str());
lib/libdevdctl/exception.cc
119
GetString() = logstream.str();
lib/libdpv/dialogrc.c
123
if (option->value.str == NULL) {
lib/libdpv/dialogrc.c
124
if ((option->value.str = malloc(STR_BUFSIZE)) == NULL)
lib/libdpv/dialogrc.c
135
val = dialogrc_config_option(cp)->value.str;
lib/libdpv/dialogrc.c
137
snprintf(option->value.str, STR_BUFSIZE, "%s", val);
lib/libdpv/dialogrc.c
195
sprintf(option->value.str, "%s", attrbuf);
lib/libdpv/dialogrc.c
259
if (option->value.str == NULL) {
lib/libdpv/dialogrc.c
260
if ((option->value.str = malloc(STR_BUFSIZE)) == NULL)
lib/libdpv/dialogrc.c
269
snprintf(option->value.str, STR_BUFSIZE, "%s", value);
lib/libdpv/dialogrc.c
272
len = strlen(option->value.str);
lib/libdpv/dialogrc.c
273
if (option->value.str[len - 1] == '"')
lib/libdpv/dialogrc.c
274
option->value.str[len - 1] = '\0';
lib/libdpv/dialogrc.c
322
dialogrc_config_option("gauge_color")->value.str);
lib/libdpv/dialogrc.c
351
value = dialogrc_config[n].value.str;
lib/libdpv/dialogrc.c
353
free(dialogrc_config[n].value.str);
lib/libdpv/dialogrc.c
354
dialogrc_config[n].value.str = NULL;
lib/libdpv/dprompt.c
702
dprompt_sprint(char * restrict str, const char *prefix, const char *append)
lib/libdpv/dprompt.c
705
return (snprintf(str, PROMPT_MAX, "%s%s%s%s", use_color ? "\\Zn" : "",
lib/libefivar/efivar-dp-format.c
2578
char *str;
lib/libefivar/efivar-dp-format.c
2589
str = UefiDevicePathLibConvertDevicePathToText (
lib/libefivar/efivar-dp-format.c
2591
if (str == NULL)
lib/libefivar/efivar-dp-format.c
2593
strlcpy(buf, str, len);
lib/libefivar/efivar-dp-format.c
2594
retval = strlen(str);
lib/libefivar/efivar-dp-format.c
2595
free(str);
lib/libefivar/efivar-dp-format.c
2603
char *str;
lib/libefivar/efivar-dp-format.c
2606
str = UefiDevicePathLibConvertDeviceNodeToText (
lib/libefivar/efivar-dp-format.c
2608
if (str == NULL)
lib/libefivar/efivar-dp-format.c
2610
strlcpy(buf, str, len);
lib/libefivar/efivar-dp-format.c
2611
retval = strlen(str);
lib/libefivar/efivar-dp-format.c
2612
free(str);
lib/libefivar/efivar-dp-parse.c
42
#define StrToIpv4Address(str, unk, ipv4ptr, unk2) (void)(str)
lib/libefivar/efivar-dp-parse.c
43
#define StrToIpv6Address(str, unk, ipv6ptr, unk2) (void)(str)
lib/libefivar/uefi-dplib.h
516
#define StrnLenS(str, max) strlen(str)
lib/libefivar/uefi-dplib.h
559
StrHexToBytes(const char *str, size_t len, uint8_t *buf, size_t buflen)
lib/libefivar/uefi-dplib.h
570
if (!isxdigit(str[i]) || !isxdigit(str[i + 1]))
lib/libefivar/uefi-dplib.h
572
hex[0] = str[i];
lib/libefivar/uefi-dplib.h
573
hex[1] = str[i + 1];
lib/libefivar/uefi-dplib.h
581
StrToGuid(const char *str, EFI_GUID *guid)
lib/libefivar/uefi-dplib.h
585
uuid_from_string(str, (uuid_t *)guid, &status);
lib/libefivar/uefi-dplib.h
605
char *str = NULL;
lib/libefivar/uefi-dplib.h
608
uuid_to_string((const uuid_t *)g, &str, &ignored_status);
lib/libefivar/uefi-dplib.h
609
if (str != NULL)
lib/libefivar/uefi-dplib.h
610
strlcpy(buf, str, sizeof(buf));
lib/libefivar/uefi-dplib.h
614
free(str);
lib/libfetch/common.c
1154
char *str;
lib/libfetch/common.c
1156
str = NULL;
lib/libfetch/common.c
1160
str = X509_NAME_oneline(name, 0, 0);
lib/libfetch/common.c
1162
str != NULL ? str : "no relevant certificate");
lib/libfetch/common.c
1163
OPENSSL_free(str);
lib/libfetch/common.c
1179
char *str;
lib/libfetch/common.c
1237
str = X509_NAME_oneline(name, 0, 0);
lib/libfetch/common.c
1238
fetch_info("Certificate subject: %s", str);
lib/libfetch/common.c
1239
OPENSSL_free(str);
lib/libfetch/common.c
1241
str = X509_NAME_oneline(name, 0, 0);
lib/libfetch/common.c
1242
fetch_info("Certificate issuer: %s", str);
lib/libfetch/common.c
1243
OPENSSL_free(str);
lib/libfetch/common.c
1520
fetch_putln(conn_t *conn, const char *str, size_t len)
lib/libfetch/common.c
1525
DEBUGF(">>> %s\n", str);
lib/libfetch/common.c
1526
iov[0].iov_base = __DECONST(char *, str);
lib/libfetch/http.c
1015
return (str);
lib/libfetch/http.c
1055
char *str = strdup(p);
lib/libfetch/http.c
1057
if (str == NULL) {
lib/libfetch/http.c
1061
v = str;
lib/libfetch/http.c
1102
if (str)
lib/libfetch/http.c
1103
free(str);
lib/libfetch/http.c
460
http_match(const char *str, const char *hdr)
lib/libfetch/http.c
462
while (*str && *hdr &&
lib/libfetch/http.c
463
tolower((unsigned char)*str++) == tolower((unsigned char)*hdr++))
lib/libfetch/http.c
465
if (*str || *hdr != ':')
lib/libfetch/http.c
975
char *str, *dst;
lib/libfetch/http.c
980
if ((str = malloc(((l + 2) / 3) * 4 + 1)) == NULL)
lib/libfetch/http.c
982
dst = str;
lib/libfigpar/figpar.h
37
char *str; /* Pointer to NUL-terminated string */
lib/libiconv_modules/UTF7/citrus_utf7.c
473
#define FILL(str, flag) \
lib/libiconv_modules/UTF7/citrus_utf7.c
475
for (s = str; *s != '\0'; s++) \
lib/libipsec/ipsec_strerror.c
83
void __ipsec_set_strerror(const char *str)
lib/libipsec/ipsec_strerror.c
86
ipsec_errlist[EIPSEC_SYSTEM_ERROR] = str;
lib/libipsec/pfkey_dump.c
100
const char *str;
lib/libipsec/pfkey_dump.c
666
str_lifetime_byte(struct sadb_lifetime *x, char *str)
lib/libipsec/pfkey_dump.c
673
printf("\t%s: 0(bytes)", str);
lib/libipsec/pfkey_dump.c
68
#define GETMSGSTR(str, num) \
lib/libipsec/pfkey_dump.c
696
printf("\t%s: %.*f(%sbytes)", str, w, y, unit);
lib/libipsec/pfkey_dump.c
70
if (sizeof((str)[0]) == 0 \
lib/libipsec/pfkey_dump.c
71
|| num >= sizeof(str)/sizeof((str)[0])) \
lib/libipsec/pfkey_dump.c
73
else if (strlen((str)[(num)]) == 0) \
lib/libipsec/pfkey_dump.c
76
printf("%s ", (str)[(num)]); \
lib/libipsec/pfkey_dump.c
82
for (p = (v2s); p && p->str; p++) { \
lib/libipsec/pfkey_dump.c
86
if (p && p->str) \
lib/libipsec/pfkey_dump.c
87
printf("%s ", p->str); \
lib/libipsec/test-policy.c
112
printf("#%d [%s]\n", i + 1, reqs[i].str);
lib/libipsec/test-policy.c
131
buf = ipsec_set_policy(req->str, strlen(req->str));
lib/libipsec/test-policy.c
54
char *str;
lib/libiscsiutil/keys.c
182
char *str;
lib/libiscsiutil/keys.c
185
ret = asprintf(&str, "%d", value);
lib/libiscsiutil/keys.c
189
keys_add(keys, name, str);
lib/libiscsiutil/keys.c
190
free(str);
lib/libkvm/kvm_getswapinfo.c
81
#define GETSWDEVNAME(dev, str, flags) \
lib/libkvm/kvm_getswapinfo.c
83
strlcpy(str, "[NFS swap]", sizeof(str)); \
lib/libkvm/kvm_getswapinfo.c
86
str, sizeof(str),"%s%s", \
lib/libmt/mtlib.c
157
char *str;
lib/libmt/mtlib.c
172
str = strdup(sbuf_data(mtinfo->cur_sb[mtinfo->level]));
lib/libmt/mtlib.c
173
if (str == NULL) {
lib/libmt/mtlib.c
181
if (strlen(str) == 0) {
lib/libmt/mtlib.c
182
free(str);
lib/libmt/mtlib.c
183
str = NULL;
lib/libmt/mtlib.c
185
if (str != NULL) {
lib/libmt/mtlib.c
191
entry->value_signed = strtoll(str, NULL, 0);
lib/libmt/mtlib.c
194
entry->value_unsigned = strtoull(str, NULL, 0);
lib/libmt/mtlib.c
201
mtinfo->cur_entry[mtinfo->level]->value = str;
lib/libmt/mtlib.c
213
mt_char_handler(void *user_data, const XML_Char *str, int len)
lib/libmt/mtlib.c
221
sbuf_bcat(mtinfo->cur_sb[mtinfo->level], str, len);
lib/libmt/mtlib.h
89
void mt_char_handler(void *user_data, const XML_Char *str, int len);
lib/libnetbsd/sockaddr_snprintf.c
60
debug_in(char *str, size_t len, const struct sockaddr_in *sin)
lib/libnetbsd/sockaddr_snprintf.c
62
return snprintf(str, len, "sin_len=%u, sin_family=%u, sin_port=%u, "
lib/libnetbsd/sockaddr_snprintf.c
69
debug_in6(char *str, size_t len, const struct sockaddr_in6 *sin6)
lib/libnetbsd/sockaddr_snprintf.c
73
return snprintf(str, len, "sin6_len=%u, sin6_family=%u, sin6_port=%u, "
lib/libnetbsd/sockaddr_snprintf.c
84
debug_un(char *str, size_t len, const struct sockaddr_un *sun)
lib/libnetbsd/sockaddr_snprintf.c
86
return snprintf(str, len, "sun_len=%u, sun_family=%u, sun_path=%*s",
lib/libnetbsd/sockaddr_snprintf.c
93
debug_dl(char *str, size_t len, const struct sockaddr_dl *sdl)
lib/libnetbsd/sockaddr_snprintf.c
97
return snprintf(str, len, "sdl_len=%u, sdl_family=%u, sdl_index=%u, "
lib/libnetbsd/util.c
44
char *str;
lib/libnetbsd/util.c
46
str = fflagstostr(flags);
lib/libnetbsd/util.c
47
if (*str == '\0') {
lib/libnetbsd/util.c
48
free(str);
lib/libnetbsd/util.c
49
str = strdup(def);
lib/libnetbsd/util.c
51
return (str);
lib/libnv/tests/dnv_tests.cc
197
set_const_binary_value(const void *&value, size_t &size, const char *str)
lib/libnv/tests/dnv_tests.cc
200
value = str;
lib/libnv/tests/dnv_tests.cc
201
size = strlen(str) + 1; /* +1 to include '\0' */
lib/libnv/tests/dnv_tests.cc
468
set_binary_value(void *&value, size_t &size, const char *str)
lib/libnv/tests/dnv_tests.cc
471
value = strdup(str);
lib/libnv/tests/dnv_tests.cc
472
size = strlen(str) + 1; /* +1 to include '\0' */
lib/libnv/tests/nv_tests.cc
590
ATF_FAIL(msg.str().c_str());
lib/libnvmf/nvmf_transport.c
81
char *str;
lib/libnvmf/nvmf_transport.c
86
vasprintf(&str, fmt, ap);
lib/libnvmf/nvmf_transport.c
88
na->na_last_error = str;
lib/libpam/modules/pam_echo/pam_echo.c
51
const void *str;
lib/libpam/modules/pam_echo/pam_echo.c
93
err = pam_get_item(pamh, item, &str);
lib/libpam/modules/pam_echo/pam_echo.c
96
if (str == NULL)
lib/libpam/modules/pam_echo/pam_echo.c
97
str = "(null)";
lib/libpam/modules/pam_echo/pam_echo.c
98
for (q = str; *q != '\0' && len < sizeof(msg) - 1; ++q)
lib/libpam/modules/pam_exec/pam_exec.c
68
#define PAM_ERR_ENV_X(str, num) str "=" #num
lib/libpam/modules/pam_guest/pam_guest.c
49
lookup(const char *str, const char *list)
lib/libpam/modules/pam_guest/pam_guest.c
54
len = strlen(str);
lib/libpam/modules/pam_guest/pam_guest.c
61
strncmp(list, str, len) == 0)
lib/libpjdlog/pjdlog.c
508
vsnprlcat(char *str, size_t size, const char *fmt, va_list ap)
lib/libpjdlog/pjdlog.c
512
len = strlen(str);
lib/libpjdlog/pjdlog.c
514
return (vsnprintf(str + len, size - len, fmt, ap));
lib/libpjdlog/pjdlog.c
518
snprlcat(char *str, size_t size, const char *fmt, ...)
lib/libpjdlog/pjdlog.c
524
result = vsnprlcat(str, size, fmt, ap);
lib/libpmcstat/libpmcstat_string.c
75
pmcstat_string_unintern(pmcstat_interned_string str)
lib/libpmcstat/libpmcstat_string.c
79
s = ((const struct pmcstat_string *) str)->ps_string;
lib/libradius/radlib.c
1200
rad_put_string(struct rad_handle *h, int type, const char *str)
lib/libradius/radlib.c
1202
return rad_put_attr(h, type, str, strlen(str));
lib/libradius/radlib.c
1303
split(char *str, char *fields[], int maxfields, char *msg, size_t msglen)
lib/libradius/radlib.c
1311
p = str;
lib/libradius/radlib.c
1440
const char *str)
lib/libradius/radlib.c
1442
return (rad_put_vendor_attr(h, vendor, type, str, strlen(str)));
lib/libsysdecode/flags.c
1035
for (t = caprights, comma = false; t->str != NULL; t++) {
lib/libsysdecode/flags.c
1044
fprintf(fp, "%s%s", comma ? "," : "", t->str);
lib/libsysdecode/flags.c
1073
for (t = caprights, swapped = false; t->str != NULL; t++) {
lib/libsysdecode/flags.c
1075
for (q = t + 1; q->str != NULL; q++) {
lib/libsysdecode/flags.c
167
const char *str;
lib/libsysdecode/flags.c
173
str = lookup_value(ngbtsolevel, level);
lib/libsysdecode/flags.c
174
if (str != NULL)
lib/libsysdecode/flags.c
175
return (str);
lib/libsysdecode/flags.c
184
str = sysdecode_ipproto(level);
lib/libsysdecode/flags.c
185
if (str != NULL)
lib/libsysdecode/flags.c
186
return (str);
lib/libsysdecode/flags.c
205
const char *str;
lib/libsysdecode/flags.c
209
str = lookup_value(socktype,
lib/libsysdecode/flags.c
211
if (str != NULL) {
lib/libsysdecode/flags.c
212
fputs(str, fp);
lib/libsysdecode/flags.c
974
const char *str;
lib/libsysdecode/flags.c
976
str = lookup_value(sigcode, si_code);
lib/libsysdecode/flags.c
977
if (str != NULL)
lib/libsysdecode/flags.c
978
return (str);
lib/libsysdecode/linux.c
137
const char *str;
lib/libsysdecode/linux.c
142
str = lookup_value(clockids, which);
lib/libsysdecode/linux.c
143
if (str == NULL)
lib/libsysdecode/linux.c
146
fputs(str, fp);
lib/libsysdecode/linux.c
158
str = lookup_value(clockcpuids, ci);
lib/libsysdecode/linux.c
159
if (str != NULL)
lib/libsysdecode/linux.c
160
fputs(str, fp);
lib/libsysdecode/support.c
157
const char *str;
lib/libsysdecode/support.c
159
str = lookup_value(table, val);
lib/libsysdecode/support.c
160
if (str != NULL) {
lib/libsysdecode/support.c
161
fputs(str, fp);
lib/libsysdecode/support.c
37
for (; table->str != NULL; table++)
lib/libsysdecode/support.c
39
return (table->str);
lib/libsysdecode/support.c
56
for (; table->str != NULL; table++) {
lib/libsysdecode/support.c
64
fprintf(fp, "%s%s", *printed ? "|" : "", table->str);
lib/libsysdecode/support.h
35
const char *str;
lib/libsysdecode/support.h
45
#define print_or(fp,str,orflag) do { \
lib/libsysdecode/support.h
47
fprintf(fp, str); } \
lib/libufs/libufs.h
106
u->d_error = str;
lib/libufs/libufs.h
94
ERROR(struct uufsd *u, const char *str)
lib/libufs/libufs.h
98
if (str != NULL) {
lib/libufs/libufs.h
99
fprintf(stderr, "libufs: %s", str);
lib/libunbound/config.h
1399
int snprintf (char *str, size_t count, const char *fmt, ...);
lib/libunbound/config.h
1400
int vsnprintf (char *str, size_t count, const char *fmt, va_list arg);
lib/libusb/libusb20_desc.c
212
const char *str = getenv("LIBUSB_DEBUG");
lib/libusb/libusb20_desc.c
213
if (str != NULL && str[0] != '\0' && str[0] != '0') {
lib/libutil++/stringf.cc
17
std::string *str = reinterpret_cast<std::string *>(cookie);
lib/libutil++/stringf.cc
19
str->append(buf, len);
lib/libutil++/stringf.cc
33
std::string str;
lib/libutil++/stringf.cc
34
freebsd::FILE_up fp(fwopen(reinterpret_cast<void *>(&str),
lib/libutil++/stringf.cc
43
return str;
lib/libutil++/stringf.cc
50
std::string str;
lib/libutil++/stringf.cc
53
str = freebsd::stringf(fmt, ap);
lib/libutil++/stringf.cc
56
return str;
lib/libutil++/tests/stringf_test.cc
32
std::string str = freebsd::stringf(fmt, ap);
lib/libutil++/tests/stringf_test.cc
34
return (str);
lib/libutil/fparseln.c
73
fparseln(FILE *fp, size_t *size, size_t *lineno, const char str[3], int flags)
lib/libutil/fparseln.c
91
if (str == NULL)
lib/libutil/fparseln.c
92
str = dstr;
lib/libutil/fparseln.c
94
esc = str[0];
lib/libutil/fparseln.c
95
con = str[1];
lib/libutil/fparseln.c
96
com = str[2];
lib/libutil/login_cap.c
103
strcspn_quote(const char *str, const char *exclude, int *is_quoted)
lib/libutil/login_cap.c
108
if (str == NULL)
lib/libutil/login_cap.c
114
for (indx = 0; str[indx] != 0; indx++) {
lib/libutil/login_cap.c
115
if (quote && str[indx] == quote) {
lib/libutil/login_cap.c
122
(str[indx] == '\'' || str[indx] == '"')) {
lib/libutil/login_cap.c
123
quote = str[indx];
lib/libutil/login_cap.c
127
strchr(exclude, str[indx]) != NULL)
lib/libutil/login_cap.c
144
remove_quotes(char *str)
lib/libutil/login_cap.c
160
indx = strcspn(str, quote_chars);
lib/libutil/login_cap.c
161
if (str[indx] == '\0')
lib/libutil/login_cap.c
163
loc = str + indx;
lib/libutil/login_cap.c
164
qc = str[indx];
lib/libutil/login_cap.c
170
loc = strchr(str, qc);
lib/libutil/login_cap.c
198
arrayize(const char *str, const char *chars, int *size)
lib/libutil/login_cap.c
206
for (i = 0, cptr = str; *cptr; i++) {
lib/libutil/login_cap.c
214
if ((ptr = allocstr(str)) != NULL) {
lib/libutil/login_cap.c
216
free((void *)(uintptr_t)(const void *)str);
lib/libutil/login_cap.c
504
const char *str;
lib/libutil/login_cap.c
508
str = login_getcapstr(lc, cap, NULL, NULL);
lib/libutil/login_cap.c
509
if (str == NULL)
lib/libutil/login_cap.c
511
ptr = __DECONST(char *, str); /* XXXX Yes, very dodgy */
lib/libutil/login_cap.c
518
return str;
lib/libutil/login_cap.c
64
allocstr(const char *str)
lib/libutil/login_cap.c
68
size_t sz = strlen(str) + 1; /* realloc() only if necessary */
lib/libutil/login_cap.c
70
p = strcpy(internal_string, str);
lib/libutil/login_cap.c
73
internal_string = strcpy(p, str);
lib/libutil/login_ok.c
48
login_strinlist(const char **list, char const *str, int flags)
lib/libutil/login_ok.c
52
if (str != NULL && *str != '\0') {
lib/libutil/login_ok.c
56
rc = fnmatch(list[i++], str, flags) == 0;
lib/libutil/login_times.c
59
parse_lt(const char *str)
lib/libutil/login_times.c
65
if (str && *str && strcmp(str, "Never") != 0 && strcmp(str, "None") != 0) {
lib/libutil/login_times.c
72
strlcpy(buf, str, sizeof buf);
lib/libutil/tests/expand_number_test.c
213
const char *str;
lib/libutil/tests/expand_number_test.c
232
for (tc = tcs; tc->str != NULL; tc++) {
lib/libutil/tests/expand_number_test.c
233
ret = expand_number(tc->str, &num);
lib/libutil/tests/expand_number_test.c
237
"%s ret = %d", tc->str, ret);
lib/libutil/tests/expand_number_test.c
239
"%s num = %ju", tc->str, (uintmax_t)num);
lib/libutil/tests/expand_number_test.c
242
"%s ret = %d", tc->str, ret);
lib/libutil/tests/expand_number_test.c
244
"%s errno = %d", tc->str, error);
lib/libutil/tests/expand_number_test.c
35
require_success(const char *str, int64_t exp_val)
lib/libutil/tests/expand_number_test.c
39
ATF_REQUIRE_MSG(expand_number(str, &val) == 0,
lib/libutil/tests/expand_number_test.c
40
"Failed to parse '%s': %m", str);
lib/libutil/tests/expand_number_test.c
42
"String '%s' parsed as %jd instead of expected %jd", str,
lib/libutil/tests/expand_number_test.c
47
require_error(const char *str, int exp_errno)
lib/libutil/tests/expand_number_test.c
51
ATF_REQUIRE_MSG(expand_number(str, &val) == -1,
lib/libutil/tests/expand_number_test.c
52
"String '%s' parsed as %jd instead of error", str, (intmax_t)val);
lib/libutil/tests/expand_number_test.c
54
"String '%s' failed with %d instead of expected %d", str, errno,
lib/libvgl/text.c
126
VGLBitmapString(VGLBitmap *Object, int x, int y, char *str,
lib/libvgl/text.c
131
for (pos=0; pos<strlen(str); pos++) {
lib/libvgl/text.c
135
str[pos], fgcol, bgcol, fill, dir);
lib/libvgl/text.c
139
str[pos], fgcol, bgcol, fill, dir);
lib/libvgl/text.c
143
str[pos], fgcol, bgcol, fill, dir);
lib/libvgl/text.c
147
str[pos], fgcol, bgcol, fill, dir);
lib/libvgl/text.c
152
str[pos], fgcol, bgcol, fill, dir);
lib/libvgl/vgl.h
159
void VGLBitmapString(VGLBitmap *Object, int x, int y, char *str, u_long fgcol, u_long bgcol, int fill, int dir);
lib/libvmmapi/vmmapi.c
374
cmpseg(size_t len, const char *str, size_t len2, const char *str2)
lib/libvmmapi/vmmapi.c
378
if ((!str && !str2) || (str && str2 && !strcmp(str, str2)))
lib/nss_tacplus/nss_tacplus.c
105
memcpy(copy, str, len);
lib/nss_tacplus/nss_tacplus.c
96
tacplus_copystr(const char *str, char **buffer, size_t *bufsize)
lib/nss_tacplus/nss_tacplus.c
99
size_t len = strlen(str) + 1;
libexec/bootpd/hash.h
127
extern unsigned hash_HashFunction(u_char *str, u_int len);
libexec/bootpd/readfile.c
1230
byte *str;
libexec/bootpd/readfile.c
1234
str = tmpbuf;
libexec/bootpd/readfile.c
1235
*str++ = (tagvalue & 0xFF); /* Store tag value */
libexec/bootpd/readfile.c
1236
str++; /* Skip over length field */
libexec/bootpd/readfile.c
1239
(void) get_string(src, (char *) str, &newlength);
libexec/bootpd/readfile.c
1244
if (interp_byte(src, str++) < 0)
libexec/getty/chat.c
133
char *str = *chatstr;
libexec/getty/chat.c
136
if (str != NULL) {
libexec/getty/chat.c
140
if ((l=strlen(str)) > 0 && (tmp=malloc(l + 1)) != NULL &&
libexec/getty/chat.c
145
for (l = 0, p = strtok(strcpy(tmp, str), ws);
libexec/getty/chat.c
315
chat_expect(const char *str)
libexec/getty/chat.c
320
syslog(LOG_DEBUG, "chat_expect '%s'", cleanstr(str, strlen(str)));
libexec/getty/chat.c
322
if ((len = strlen(str)) > 0) {
libexec/getty/chat.c
346
if (ch == str[i])
libexec/getty/chat.c
354
while (j < i && memcmp(got + j, str, i - j) != 0)
libexec/getty/chat.c
384
chat_send(char const *str)
libexec/getty/chat.c
389
syslog(LOG_DEBUG, "chat_send '%s'", cleanstr(str, strlen(str)));
libexec/getty/chat.c
391
if (*str) {
libexec/getty/chat.c
394
while (r == 0 && *str)
libexec/getty/chat.c
396
unsigned char ch = (unsigned char)*str++;
libexec/rbootd/defs.h
90
#define FreeStr(str) free(str)
libexec/rbootd/parseconf.c
239
ParseAddr(char *str)
libexec/rbootd/parseconf.c
249
for (cp = str; *cp; cp++) {
libexec/rbootd/utils.c
320
NewStr(char *str)
libexec/rbootd/utils.c
324
if ((stmp = (char *)malloc((unsigned) (strlen(str)+1))) == NULL) {
libexec/rbootd/utils.c
325
syslog(LOG_ERR, "NewStr: out of memory (%s)", str);
libexec/rbootd/utils.c
329
(void) strcpy(stmp, str);
libexec/rtld-elf/rtld.c
6533
parse_integer(const char *str)
libexec/rtld-elf/rtld.c
6540
orig = str;
libexec/rtld-elf/rtld.c
6542
for (c = *str; c != '\0'; c = *++str) {
libexec/rtld-elf/rtld.c
6555
if (str == orig)
libexec/rtld-elf/rtld_printf.c
451
info.buf = info.str = buf;
libexec/rtld-elf/rtld_printf.c
456
*info.str++ = '\0';
libexec/rtld-elf/rtld_printf.c
468
info.buf = info.str = buf;
libexec/rtld-elf/rtld_printf.c
501
rtld_fdputstr(int fd, const char *str)
libexec/rtld-elf/rtld_printf.c
504
write(fd, str, strlen(str));
libexec/rtld-elf/rtld_printf.c
54
char *str;
libexec/rtld-elf/rtld_printf.c
68
info->str = info->buf;
libexec/rtld-elf/rtld_printf.c
79
*info->str++ = ch;
libexec/rtld-elf/rtld_printf.c
86
*info->str++ = ch;
libexec/rtld-elf/rtld_printf.h
41
void rtld_fdputstr(int fd, const char *str);
libexec/rtld-elf/rtld_printf.h
45
#define rtld_putstr(str) rtld_fdputstr(STDOUT_FILENO, (str))
libexec/rtld-elf/xmalloc.c
66
xstrdup(const char *str)
libexec/rtld-elf/xmalloc.c
71
len = strlen(str) + 1;
libexec/rtld-elf/xmalloc.c
73
memcpy(copy, str, len);
libexec/tftpd/tftp-options.c
107
options[opt].o_reply = str;
libexec/tftpd/tftp-options.c
69
char *str;
libexec/tftpd/tftp-options.c
73
str = NULL;
libexec/tftpd/tftp-options.c
76
ret = vasprintf(&str, fmt, ap);
libexec/tftpd/tftp-options.c
84
options[opt].o_request = str;
libexec/tftpd/tftp-options.c
92
char *str;
libexec/tftpd/tftp-options.c
96
str = NULL;
libexec/tftpd/tftp-options.c
99
ret = vasprintf(&str, fmt, ap);
sbin/camcontrol/camcontrol.c
2701
char str[50];
sbin/camcontrol/camcontrol.c
2704
if (fgets(str, sizeof(str), stdin) != NULL) {
sbin/camcontrol/camcontrol.c
2705
if (strncasecmp(str, "yes", 3) == 0) {
sbin/camcontrol/camcontrol.c
2707
} else if (strncasecmp(str, "no", 2) == 0) {
sbin/camcontrol/camcontrol.c
2894
char str[50];
sbin/camcontrol/camcontrol.c
2897
if (NULL != fgets(str, sizeof(str), stdin)) {
sbin/camcontrol/camcontrol.c
2898
if (0 == strncasecmp(str, "yes", 3)) {
sbin/camcontrol/camcontrol.c
2900
} else if (0 == strncasecmp(str, "no", 2)) {
sbin/camcontrol/camcontrol.c
5934
const char *str;
sbin/camcontrol/camcontrol.c
5943
str = "MDP message";
sbin/camcontrol/camcontrol.c
5946
str = "32 bit wide SCSI";
sbin/camcontrol/camcontrol.c
5949
str = "16 bit wide SCSI";
sbin/camcontrol/camcontrol.c
5952
str = "SDTR message";
sbin/camcontrol/camcontrol.c
5955
str = "linked CDBs";
sbin/camcontrol/camcontrol.c
5958
str = "tag queue messages";
sbin/camcontrol/camcontrol.c
5961
str = "soft reset alternative";
sbin/camcontrol/camcontrol.c
5964
str = "SATA Port Multiplier";
sbin/camcontrol/camcontrol.c
5967
str = "unknown PI bit set";
sbin/camcontrol/camcontrol.c
5970
fprintf(stdout, "%s\n", str);
sbin/camcontrol/camcontrol.c
5974
const char *str;
sbin/camcontrol/camcontrol.c
5983
str = "can understand ata_ext requests";
sbin/camcontrol/camcontrol.c
5986
str = "64bit extended LUNs supported";
sbin/camcontrol/camcontrol.c
5989
str = "bus scans from high ID to low ID";
sbin/camcontrol/camcontrol.c
5992
str = "removable devices not included in scan";
sbin/camcontrol/camcontrol.c
5995
str = "initiator role not supported";
sbin/camcontrol/camcontrol.c
5998
str = "user has disabled initial BUS RESET or"
sbin/camcontrol/camcontrol.c
6002
str = "do not send 6-byte commands";
sbin/camcontrol/camcontrol.c
6005
str = "scan bus sequentially";
sbin/camcontrol/camcontrol.c
6008
str = "unmapped I/O supported";
sbin/camcontrol/camcontrol.c
6011
str = "does its own scanning";
sbin/camcontrol/camcontrol.c
6014
str = "unknown PIM bit set";
sbin/camcontrol/camcontrol.c
6017
fprintf(stdout, "%s\n", str);
sbin/camcontrol/camcontrol.c
6021
const char *str;
sbin/camcontrol/camcontrol.c
6029
str = "target mode processor mode";
sbin/camcontrol/camcontrol.c
6032
str = "target mode phase cog. mode";
sbin/camcontrol/camcontrol.c
6035
str = "disconnects in target mode";
sbin/camcontrol/camcontrol.c
6038
str = "terminate I/O message in target mode";
sbin/camcontrol/camcontrol.c
6041
str = "group 6 commands in target mode";
sbin/camcontrol/camcontrol.c
6044
str = "group 7 commands in target mode";
sbin/camcontrol/camcontrol.c
6047
str = "unknown PIT bit set";
sbin/camcontrol/camcontrol.c
6051
fprintf(stdout, "%s\n", str);
sbin/camcontrol/camcontrol.c
6546
char str[1024];
sbin/camcontrol/camcontrol.c
6553
if (fgets(str, sizeof(str), stdin) != NULL) {
sbin/camcontrol/camcontrol.c
6554
if (str[0] != '\0')
sbin/camcontrol/camcontrol.c
6555
new_timeout = atoi(str);
sbin/camcontrol/camcontrol.c
7166
char str[1024];
sbin/camcontrol/camcontrol.c
7173
if (fgets(str, sizeof(str), stdin) != NULL) {
sbin/camcontrol/camcontrol.c
7174
if (str[0] != '\0')
sbin/camcontrol/camcontrol.c
7175
new_timeout = atoi(str);
sbin/camcontrol/util.c
166
char str[1024];
sbin/camcontrol/util.c
171
if (fgets(str, sizeof(str), stdin) != NULL) {
sbin/camcontrol/util.c
172
if (strncasecmp(str, "yes", 3) == 0)
sbin/camcontrol/util.c
174
else if (strncasecmp(str, "no", 2) == 0)
sbin/devd/parse.y
39
char *str;
sbin/devd/parse.y
47
%token <str> STRING
sbin/devd/parse.y
48
%token <str> ID
sbin/devfs/rule.c
292
rulespec_instr(struct devfs_rule *dr, const char *str, devfs_rsnum rsnum)
sbin/devfs/rule.c
297
tokenize(str, &ac, &av);
sbin/devfs/rule.c
50
static void rulespec_instr(struct devfs_rule *dr, const char *str,
sbin/dhclient/parse.c
333
convert_num(unsigned char *buf, char *str, unsigned base, int size)
sbin/dhclient/parse.c
338
char *ptr = str;
sbin/dhclient/parse.c
370
warning("Bogus number: %s.", str);
sbin/dhclient/parse.c
375
str, tval, base);
sbin/dump/dump.h
98
time_t unctime(char *str);
sbin/dump/unctime.c
41
unctime(char *str)
sbin/dump/unctime.c
45
str = strptime(str, "%a %b %e %T %Y", &then);
sbin/dump/unctime.c
46
if (str == NULL || (*str != '\n' && *str != '\0'))
sbin/fdisk/fdisk.c
1103
str2sectors(const char *str)
sbin/fdisk/fdisk.c
1108
val = strtoul(str, &end, 0);
sbin/fdisk/fdisk.c
1109
if (str == end || *end == '\0') {
sbin/fdisk/fdisk.c
1111
current_line_number, str);
sbin/fdisk/fdisk.c
254
static int ok(const char *str);
sbin/fdisk/fdisk.c
255
static int decimal(const char *str, int *num, int deflt, uint32_t maxval);
sbin/fdisk/fdisk.c
68
#define Decimal(str, ans, tmp, maxval) if (decimal(str, &tmp, ans, maxval)) ans = tmp
sbin/fdisk/fdisk.c
905
ok(const char *str)
sbin/fdisk/fdisk.c
907
printf("%s [n] ", str);
sbin/fdisk/fdisk.c
922
decimal(const char *str, int *num, int deflt, uint32_t maxval)
sbin/fdisk/fdisk.c
930
printf("Supply a decimal value for \"%s\" [%d] ", str, deflt);
sbin/fsck/fsck.c
549
getfstype(const char *str)
sbin/fsck/fsck.c
554
if ((fd = open(str, O_RDONLY)) == -1)
sbin/fsck/fsck.c
555
err(1, "cannot open `%s'", str);
sbin/fsck/fsck.c
566
if (strstr(attr.value.str, ptype_map[i].ptype) != NULL)
sbin/fsck_ffs/main.c
209
argtoimax(int flag, const char *req, const char *str, int base)
sbin/fsck_ffs/main.c
214
ret = strtoimax(str, &cp, base);
sbin/fsck_ffs/main.c
215
if (cp == str || *cp)
sbin/fsck_ffs/main.c
62
static intmax_t argtoimax(int flag, const char *req, const char *str, int base);
sbin/geom/core/geom.c
211
strlcatf(char *str, size_t size, const char *format, ...)
sbin/geom/core/geom.c
217
len = strlen(str);
sbin/geom/core/geom.c
218
str += len;
sbin/geom/core/geom.c
222
ret = vsnprintf(str, size, format, ap);
sbin/ggate/shared/ggate.c
394
g_gate_str2ip(const char *str)
sbin/ggate/shared/ggate.c
399
ip = inet_addr(str);
sbin/ggate/shared/ggate.c
405
hp = gethostbyname(str);
sbin/ggate/shared/ggate.h
117
in_addr_t g_gate_str2ip(const char *str);
sbin/hastctl/hastctl.c
296
const char *str;
sbin/hastctl/hastctl.c
302
str = nv_get_string(nv, "resource%u", ii);
sbin/hastctl/hastctl.c
303
if (str == NULL)
sbin/hastctl/hastctl.c
305
printf("%s:\n", str);
sbin/hastctl/hastctl.c
325
str = nv_get_string(nv, "sourceaddr%u", ii);
sbin/hastctl/hastctl.c
326
if (str != NULL)
sbin/hastctl/hastctl.c
327
printf(" sourceaddr: %s\n", str);
sbin/hastctl/hastctl.c
330
str = nv_get_string(nv, "status%u", ii);
sbin/hastctl/hastctl.c
331
if (str != NULL)
sbin/hastctl/hastctl.c
332
printf(" status: %s\n", str);
sbin/hastctl/hastctl.c
371
const char *str;
sbin/hastctl/hastctl.c
378
str = nv_get_string(nv, "resource%u", ii);
sbin/hastctl/hastctl.c
379
if (str == NULL)
sbin/hastctl/hastctl.c
385
printf("%s\t", str);
sbin/hastctl/hastctl.c
393
str = nv_get_string(nv, "status%u", ii);
sbin/hastctl/hastctl.c
394
printf("%-9s", (str != NULL) ? str : "-");
sbin/hastd/control.c
152
const char *str;
sbin/hastd/control.c
187
if ((str = nv_get_string(cnvin, "status")) == NULL) {
sbin/hastd/control.c
192
nv_add_string(nvout, str, "status%u", no);
sbin/hastd/control.c
309
const char *str;
sbin/hastd/control.c
344
str = nv_get_string(nvin, "resource0");
sbin/hastd/control.c
345
if (str == NULL) {
sbin/hastd/control.c
363
if (strcmp(str, "all") == 0) {
sbin/hastd/control.c
390
str = nv_get_string(nvin, "resource%u", ii);
sbin/hastd/control.c
391
if (str == NULL)
sbin/hastd/control.c
396
str, ii);
sbin/hastd/control.c
399
control_status(cfg, nvout, NULL, str, ii);
sbin/hastd/metadata.c
118
str = nv_get_string(nv, "resource");
sbin/hastd/metadata.c
119
if (str != NULL && strcmp(str, res->hr_name) != 0) {
sbin/hastd/metadata.c
141
str = nv_get_string(nv, "prevrole");
sbin/hastd/metadata.c
142
if (str != NULL) {
sbin/hastd/metadata.c
143
if (strcmp(str, "primary") == 0)
sbin/hastd/metadata.c
145
else if (strcmp(str, "secondary") == 0)
sbin/hastd/metadata.c
52
const char *str;
sbin/hastd/nv.c
555
char *str;
sbin/hastd/nv.c
564
str = (char *)NVH_DATA(nvh);
sbin/hastd/nv.c
565
PJDLOG_ASSERT(str[nvh->nvh_dsize - 1] == '\0');
sbin/hastd/nv.c
566
PJDLOG_ASSERT(strlen(str) == nvh->nvh_dsize - 1);
sbin/hastd/nv.c
567
return (str);
sbin/hastd/parse.y
101
char *str;
sbin/hastd/parse.y
105
%token <str> STR
sbin/hastd/parse.y
847
yyerror(const char *str)
sbin/hastd/parse.y
851
lineno, yytext, str);
sbin/hastd/parse.y
92
%type <str> remote_str
sbin/hastd/proto_tcp.c
72
numfromstr(const char *str, intmax_t minnum, intmax_t maxnum, intmax_t *nump)
sbin/hastd/proto_tcp.c
76
if (str[0] == '\0')
sbin/hastd/proto_tcp.c
79
for (; *str != '\0'; str++) {
sbin/hastd/proto_tcp.c
80
if (*str < '0' || *str > '9')
sbin/hastd/proto_tcp.c
82
digit = *str - '0';
sbin/hastd/subr.c
58
vsnprlcat(char *str, size_t size, const char *fmt, va_list ap)
sbin/hastd/subr.c
62
len = strlen(str);
sbin/hastd/subr.c
63
return (vsnprintf(str + len, size - len, fmt, ap));
sbin/hastd/subr.c
67
snprlcat(char *str, size_t size, const char *fmt, ...)
sbin/hastd/subr.c
73
result = vsnprlcat(str, size, fmt, ap);
sbin/hastd/subr.h
49
int vsnprlcat(char *str, size_t size, const char *fmt, va_list ap);
sbin/hastd/subr.h
50
int snprlcat(char *str, size_t size, const char *fmt, ...);
sbin/ifconfig/ifbridge.c
63
static int parse_vlans(ifbvlan_set_t *set, const char *str);
sbin/ifconfig/ifbridge.c
812
parse_vlans(ifbvlan_set_t *set, const char *str)
sbin/ifconfig/ifbridge.c
817
if (strcmp(str, "none") == 0) {
sbin/ifconfig/ifbridge.c
823
if (strcmp(str, "all") == 0) {
sbin/ifconfig/ifbridge.c
830
if ((s = strdup(str)) == NULL)
sbin/ifconfig/iflagg.c
155
char *str, *tmp, *tok;
sbin/ifconfig/iflagg.c
159
str = tmp = strdup(val);
sbin/ifconfig/iflagg.c
170
free(str);
sbin/ipf/common/ipf_y.y
113
%type <str> servicename name interfacename groupname
sbin/ipf/common/ipf_y.y
119
%token <str> YY_STR
sbin/ipf/common/ipf_y.y
72
char *str;
sbin/ipf/common/lexer.c
139
yystrtotext(char *str)
sbin/ipf/common/lexer.c
144
len = strlen(str);
sbin/ipf/common/lexer.c
148
for (s = str; *s != '\0' && len > 0; s++, len--)
sbin/ipf/common/lexer.c
157
char *str;
sbin/ipf/common/lexer.c
168
str = malloc(max + 1);
sbin/ipf/common/lexer.c
169
if (str != NULL) {
sbin/ipf/common/lexer.c
171
str[i - offset] = (char)(yytext[i] & 0xff);
sbin/ipf/common/lexer.c
172
str[i - offset] = '\0';
sbin/ipf/common/lexer.c
174
return (str);
sbin/ipf/common/lexer.c
19
char *str;
sbin/ipf/common/lexer.c
585
yylval.str = strdup(yystr);
sbin/ipf/iplang/iplang_y.y
156
char *str;
sbin/ipf/iplang/iplang_y.y
161
%token <str> IL_TOKEN
sbin/ipf/iplang/iplang_y.y
162
%type <str> token optoken
sbin/ipf/iplang/iplang_y.y
181
%token <str> IL_IPS_RESERV4 IL_IPS_TOPSECRET IL_IPS_SECRET IL_IPS_RESERV3
sbin/ipf/iplang/iplang_y.y
182
%token <str> IL_IPS_CONFID IL_IPS_UNCLASS IL_IPS_RESERV2 IL_IPS_RESERV1
sbin/ipf/ipmon/ipmon_y.y
53
char *str;
sbin/ipf/ipmon/ipmon_y.y
62
%token <str> YY_STR
sbin/ipf/ipnat/ipnat_y.y
100
%token <str> YY_STR
sbin/ipf/ipnat/ipnat_y.y
71
char *str;
sbin/ipf/ippool/ippool_y.y
58
char *str;
sbin/ipf/ippool/ippool_y.y
71
%token <str> YY_STR
sbin/ipf/ippool/ippool_y.y
90
%type <str> number setgroup name
sbin/ipf/ipscan/ipscan_y.y
47
char *str;
sbin/ipf/ipscan/ipscan_y.y
55
%type <str> tag
sbin/ipf/ipscan/ipscan_y.y
62
%token <str> YY_STR
sbin/ipf/libipf/printdstlistnode.c
18
const char *str;
sbin/ipf/libipf/printdstlistnode.c
45
str = inet_ntop(AF_INET6, &np->ipfd_dest.fd_ip6,
sbin/ipf/libipf/printdstlistnode.c
47
if (str != NULL)
sbin/ipf/libipf/printdstlistnode.c
48
PRINTF("%s", str);
sbin/ipf/libipf/printdstlistnode.c
56
str = inet_ntop(np->ipfd_dest.fd_addr.adf_family,
sbin/ipf/libipf/printdstlistnode.c
58
if (str != NULL) {
sbin/ipf/libipf/printdstlistnode.c
59
PRINTF("\tAddress: %s\n", str);
sbin/ipf/libipf/printhashnode.c
36
const char *str;
sbin/ipf/libipf/printhashnode.c
39
str = inet_ntop(AF_INET6, &ipe.ipe_addr.in6,
sbin/ipf/libipf/printhashnode.c
41
if (str == NULL)
sbin/ipf/libipf/printhashnode.c
42
str = "???";
sbin/ipf/libipf/printhashnode.c
43
PRINTF("\t%d\tAddress: %s", hv, str);
sbin/ipf/libipf/printip.c
28
const char *str;
sbin/ipf/libipf/printip.c
31
str = inet_ntop(AF_INET6, addr, buf, sizeof(buf) - 1);
sbin/ipf/libipf/printip.c
32
if (str != NULL)
sbin/ipf/libipf/printip.c
33
PRINTF("%s", str);
sbin/ipf/libipf/printpoolnode.c
35
const char *str;
sbin/ipf/libipf/printpoolnode.c
38
str = inet_ntop(AF_INET6, &np->ipn_addr.adf_addr.in6,
sbin/ipf/libipf/printpoolnode.c
40
if (str == NULL)
sbin/ipf/libipf/printpoolnode.c
41
str = "???";
sbin/ipf/libipf/printpoolnode.c
43
str);
sbin/ipf/libipf/save_syslog.c
31
char *str;
sbin/ipf/libipf/save_syslog.c
41
str = strdup(*strings);
sbin/ipf/libipf/save_syslog.c
42
if (str != NULL && *str != '\0') {
sbin/ipf/libipf/save_syslog.c
45
s = strchr(str, '.');
sbin/ipf/libipf/save_syslog.c
49
if (*str != '\0') {
sbin/ipf/libipf/save_syslog.c
50
fac = fac_findname(str);
sbin/ipf/libipf/save_syslog.c
52
free(str);
sbin/ipf/libipf/save_syslog.c
61
free(str);
sbin/ipf/libipf/save_syslog.c
66
free(str);
sbin/ipf/libipf/save_syslog.c
77
if (str != NULL)
sbin/ipf/libipf/save_syslog.c
78
free(str);
sbin/ipf/libipf/save_v1trap.c
109
char *str;
sbin/ipf/libipf/save_v1trap.c
118
str = strdup(*strings);
sbin/ipf/libipf/save_v1trap.c
126
s = strchr(str, ' ');
sbin/ipf/libipf/save_v1trap.c
128
ctx->community = str;
sbin/ipf/libipf/save_v1trap.c
133
free(str);
sbin/ipf/libipf/save_v1trap.c
188
free(str);
sbin/ipf/libipf/save_v2trap.c
113
char *str;
sbin/ipf/libipf/save_v2trap.c
121
str = strdup(*strings);
sbin/ipf/libipf/save_v2trap.c
125
free(str);
sbin/ipf/libipf/save_v2trap.c
131
s = strchr(str, ' ');
sbin/ipf/libipf/save_v2trap.c
133
ctx->community = str;
sbin/ipf/libipf/save_v2trap.c
138
free(str);
sbin/ipf/libipf/save_v2trap.c
193
free(str);
sbin/ipfw/ipfw2.c
1236
get_reject_code(const char *str)
sbin/ipfw/ipfw2.c
1241
val = strtoul(str, &s, 0);
sbin/ipfw/ipfw2.c
1242
if (s == str || *s != '\0' || val >= 0x100)
sbin/ipfw/ipfw2.c
1243
val = match_token(icmpcodes, str);
sbin/ipfw/ipfw2.c
1245
errx(EX_DATAERR, "unknown ICMP unreachable code ``%s''", str);
sbin/ipfw/ipfw2.c
443
void bprint_uint_arg(struct buf_pr *bp, const char *str, uint32_t arg);
sbin/ipfw/ipfw2.c
545
bprint_uint_arg(struct buf_pr *bp, const char *str, uint32_t arg)
sbin/ipfw/ipfw2.c
548
if (str != NULL)
sbin/ipfw/ipfw2.c
549
bprintf(bp, "%s", str);
sbin/ipfw/ipfw2.h
453
uint16_t get_unreach6_code(const char *str);
sbin/ipfw/ipv6.c
57
get_unreach6_code(const char *str)
sbin/ipfw/ipv6.c
62
val = strtoul(str, &s, 0);
sbin/ipfw/ipv6.c
63
if (s == str || *s != '\0' || val >= 0x100)
sbin/ipfw/ipv6.c
64
val = match_token(icmp6codes, str);
sbin/ipfw/ipv6.c
66
errx(EX_DATAERR, "unknown ICMPv6 unreachable code ``%s''", str);
sbin/ipfw/nat.c
201
StrToAddr (const char* str, struct in_addr* addr)
sbin/ipfw/nat.c
205
if (inet_aton (str, addr))
sbin/ipfw/nat.c
208
hp = gethostbyname (str);
sbin/ipfw/nat.c
210
errx (1, "unknown host %s", str);
sbin/ipfw/nat.c
216
StrToPortRange (const char* str, const char* proto, port_range *portRange)
sbin/ipfw/nat.c
225
sp = getservbyname (str,proto);
sbin/ipfw/nat.c
233
sep = strchr (str, '-');
sbin/ipfw/nat.c
235
SETLOPORT(*portRange, strtol(str, &end, 10));
sbin/ipfw/nat.c
236
if (end != str) {
sbin/ipfw/nat.c
243
errx (EX_DATAERR, "%s/%s: unknown service", str, proto);
sbin/ipfw/nat.c
247
sscanf (str, "%hu-%hu", &loPort, &hiPort);
sbin/ipfw/nat.c
254
errx (EX_DATAERR, "invalid port range %s", str);
sbin/ipfw/nat.c
260
StrToProto (const char* str)
sbin/ipfw/nat.c
262
if (!strcmp (str, "tcp"))
sbin/ipfw/nat.c
265
if (!strcmp (str, "udp"))
sbin/ipfw/nat.c
268
if (!strcmp (str, "sctp"))
sbin/ipfw/nat.c
270
errx (EX_DATAERR, "unknown protocol %s. Expected sctp, tcp or udp", str);
sbin/ipfw/nat.c
274
StrToAddrAndPortRange (const char* str, struct in_addr* addr, char* proto,
sbin/ipfw/nat.c
279
ptr = strchr (str, ':');
sbin/ipfw/nat.c
281
errx (EX_DATAERR, "%s is missing port number", str);
sbin/ipfw/nat.c
286
StrToAddr (str, addr);
sbin/ipfw/nat.c
760
nat_port_alias_parse(char *str, u_short *lpout, u_short *hpout) {
sbin/ipfw/nat.c
764
lp = (long) strtol(str, &ptr, 10);
sbin/mdmfs/mdmfs.c
653
extract_ugid(const char *str, struct mtpt_info *mip)
sbin/mdmfs/mdmfs.c
668
ug = strdup(str);
sbin/natd/natd.c
120
static void StrToAddr (const char* str, struct in_addr* addr);
sbin/natd/natd.c
121
static u_short StrToPort (const char* str, const char* proto);
sbin/natd/natd.c
122
static int StrToPortRange (const char* str, const char* proto, port_range *portRange);
sbin/natd/natd.c
123
static int StrToProto (const char* str);
sbin/natd/natd.c
124
static int StrToAddrAndPortRange (char* str, struct in_addr* addr, char* proto, port_range *portRange);
sbin/natd/natd.c
1871
void StrToAddr (const char* str, struct in_addr* addr)
sbin/natd/natd.c
1875
if (inet_aton (str, addr))
sbin/natd/natd.c
1878
hp = gethostbyname (str);
sbin/natd/natd.c
1880
errx (1, "unknown host %s", str);
sbin/natd/natd.c
1885
u_short StrToPort (const char* str, const char* proto)
sbin/natd/natd.c
1891
port = strtol (str, &end, 10);
sbin/natd/natd.c
1892
if (end != str)
sbin/natd/natd.c
1895
sp = getservbyname (str, proto);
sbin/natd/natd.c
1897
errx (1, "%s/%s: unknown service", str, proto);
sbin/natd/natd.c
1902
int StrToPortRange (const char* str, const char* proto, port_range *portRange)
sbin/natd/natd.c
1911
sp = getservbyname (str,proto);
sbin/natd/natd.c
1919
sep = strchr (str, '-');
sbin/natd/natd.c
1921
SETLOPORT(*portRange, strtol(str, &end, 10));
sbin/natd/natd.c
1922
if (end != str) {
sbin/natd/natd.c
1929
errx (1, "%s/%s: unknown service", str, proto);
sbin/natd/natd.c
1933
sscanf (str, "%hu-%hu", &loPort, &hiPort);
sbin/natd/natd.c
1940
errx (1, "invalid port range %s", str);
sbin/natd/natd.c
1947
StrToProto (const char* str)
sbin/natd/natd.c
1949
if (!strcmp (str, "tcp"))
sbin/natd/natd.c
1952
if (!strcmp (str, "udp"))
sbin/natd/natd.c
1955
errx (1, "unknown protocol %s. Expected tcp or udp", str);
sbin/natd/natd.c
1959
StrToAddrAndPortRange (char* str, struct in_addr* addr, char* proto, port_range *portRange)
sbin/natd/natd.c
1963
ptr = strchr (str, ':');
sbin/natd/natd.c
1965
errx (1, "%s is missing port number", str);
sbin/natd/natd.c
1970
StrToAddr (str, addr);
sbin/nvmecontrol/identify_ext.c
47
uint8_t str[128];
sbin/nvmecontrol/identify_ext.c
85
nvme_strvis(str, cdata->sn, sizeof(str), NVME_SERIAL_NUMBER_LENGTH);
sbin/nvmecontrol/identify_ext.c
86
printf("Serial Number: %s\n", str);
sbin/nvmecontrol/identify_ext.c
87
nvme_strvis(str, cdata->mn, sizeof(str), NVME_MODEL_NUMBER_LENGTH);
sbin/nvmecontrol/identify_ext.c
88
printf("Model Number: %s\n", str);
sbin/nvmecontrol/identify_ext.c
89
nvme_strvis(str, cdata->fr, sizeof(str), NVME_FIRMWARE_REVISION_LENGTH);
sbin/nvmecontrol/identify_ext.c
90
printf("Firmware Version: %s\n", str);
sbin/nvmecontrol/ns.c
364
const char * str;
sbin/nvmecontrol/ns.c
390
return (t->str);
sbin/nvmecontrol/ns.c
393
return t->str;
sbin/nvmecontrol/nvmecontrol.c
170
open_dev(const char *str, int *fd, int write, int exit_on_error)
sbin/nvmecontrol/nvmecontrol.c
174
if (str[0] == '/') /* Full path */
sbin/nvmecontrol/nvmecontrol.c
175
strlcpy(full_path, str, sizeof(full_path));
sbin/nvmecontrol/nvmecontrol.c
177
snprintf(full_path, sizeof(full_path), _PATH_DEV"%s", str);
sbin/nvmecontrol/nvmecontrol.h
80
int open_dev(const char *str, int *fd, int write, int exit_on_error);
sbin/pfctl/parse.y
8156
node_mac_from_string(const char *str)
sbin/pfctl/parse.y
8164
if (sscanf(str, "%02hhx:%02hhx:%02hhx:%02hhx:%02hhx:%02hhx",
sbin/pfctl/parse.y
8181
node_mac_from_string_masklen(const char *str, int masklen)
sbin/pfctl/parse.y
8190
m = node_mac_from_string(str);
sbin/pfctl/parse.y
8202
node_mac_from_string_mask(const char *str, const char *mask)
sbin/pfctl/parse.y
8206
m = node_mac_from_string(str);
sbin/pfctl/pfctl.c
1065
pfctl_parse_host(char *str, struct pf_rule_addr *addr)
sbin/pfctl/pfctl.c
1070
s = strdup(str);
sbin/pfctl/pfctl_optimize.c
48
# define DEBUG(str, v...) \
sbin/pfctl/pfctl_optimize.c
49
printf("%s: " str "\n", __FUNCTION__ , ## v)
sbin/pfctl/pfctl_optimize.c
51
# define DEBUG(str, v...) ((void)0)
sbin/pfctl/pfctl_osfp.c
49
# define DEBUG(fp, str, v...) \
sbin/pfctl/pfctl_osfp.c
50
fprintf(stderr, "%s:%s:%s " str "\n", (fp)->fp_os.fp_class_nm, \
sbin/pfctl/pfctl_osfp.c
53
# define DEBUG(fp, str, v...) ((void)0)
sbin/rcorder/ealloc.c
86
estrdup(const char *str)
sbin/rcorder/ealloc.c
90
if ((p = strdup(str)) == NULL)
sbin/rcorder/ealloc.h
4
char *estrdup(const char *str);
sbin/recoverdisk/recoverdisk.c
102
assert(strftime(pp->str, sizeof pp->str, fmt, &tm1) != 0);
sbin/recoverdisk/recoverdisk.c
133
pp->str, (uintmax_t)pp->bytes_read);
sbin/recoverdisk/recoverdisk.c
46
char str[20];
sbin/route/route.c
1207
getaddr(int idx, char *str, int nrflags)
sbin/route/route.c
1251
if (strcmp(str, ifa->ifa_name) != 0)
sbin/route/route.c
1269
"interface '%s' does not exist", str);
sbin/route/route.c
1276
if (strcmp(str, "default") == 0) {
sbin/route/route.c
1283
getaddr(RTAX_NETMASK, str, nrflags);
sbin/route/route.c
1296
if (idx == RTAX_DST && (q = strchr(str, '/')) != NULL)
sbin/route/route.c
1301
ecode = getaddrinfo(str, NULL, &hints, &res);
sbin/route/route.c
1304
errx(EX_OSERR, "%s: %s", str, gai_strerror(ecode));
sbin/route/route.c
1315
link_addr(str, (struct sockaddr_dl *)(void *)sa);
sbin/route/route.c
1319
sockaddr(str, sa, sizeof(struct sockaddr_storage));
sbin/route/route.c
1331
q = strchr(str,'/');
sbin/route/route.c
1338
if (inet_aton(str, &sin->sin_addr) == 0)
sbin/route/route.c
1339
errx(EX_NOHOST, "bad address: %s", str);
sbin/route/route.c
1355
strchr(str, '.') == NULL)
sbin/route/route.c
1359
str, inet_ntoa(sin->sin_addr));
sbin/route/route.c
1362
if (inet_aton(str, &sin->sin_addr) != 0)
sbin/route/route.c
1365
hp = gethostbyname(str);
sbin/route/route.c
1373
errx(EX_NOHOST, "bad address: %s", str);
sbin/route/route.c
1377
prefixlen(const char *str)
sbin/route/route.c
1379
int len = atoi(str), q, r;
sbin/route/route.c
1416
errx(EX_USAGE, "%s: invalid prefixlen", str);
sbin/route/route.c
1914
printb(int b, const char *str)
sbin/route/route.c
1921
while ((i = *str++) != 0) {
sbin/route/route.c
1929
for (; (i = *str) > 32; str++)
sbin/route/route.c
1932
while (*str > 32)
sbin/route/route.c
1933
str++;
sbin/route/route.c
311
char *str0, *str, *token, *endptr;
sbin/route/route.c
314
str0 = str = strdup(arg);
sbin/route/route.c
317
while ((token = strsep(&str, "-")) != NULL) {
sbin/route/route.c
362
char *str0, *str, *token, *endptr;
sbin/route/route.c
365
str0 = str = NULL;
sbin/route/route.c
367
str = calloc(1, ALLSTRLEN);
sbin/route/route.c
368
if (str == NULL) {
sbin/route/route.c
373
snprintf(str, ALLSTRLEN - 1, "%d-%d", 0, numfibs - 1);
sbin/route/route.c
375
snprintf(str, ALLSTRLEN - 1, "%d", 0);
sbin/route/route.c
377
str0 = str = calloc(1, ALLSTRLEN);
sbin/route/route.c
378
if (str == NULL) {
sbin/route/route.c
382
snprintf(str, ALLSTRLEN - 1, "%d", defaultfib);
sbin/route/route.c
384
str0 = str = strdup(arg);
sbin/route/route.c
387
while ((token = strsep(&str, ",")) != NULL) {
sbin/routed/parms.c
554
#define PARS(str) (!strcasecmp(tgt, str))
sbin/routed/parms.c
555
#define PARSEQ(str) (!strncasecmp(tgt, str"=", sizeof(str)))
sbin/routed/table.c
1156
char str[100], *strp;
sbin/routed/table.c
1221
strlcpy(str, rtm_type_name(m.r.rtm.rtm_type), sizeof(str));
sbin/routed/table.c
1222
strp = &str[strlen(str)];
sbin/routed/table.c
1231
trace_act("ignore %s", str);
sbin/routed/table.c
1239
trace_act("ignore %s without dst", str);
sbin/routed/table.c
1244
trace_act("ignore %s for AF %d", str,
sbin/routed/table.c
1259
trace_act("ignore multicast %s", str);
sbin/routed/table.c
1265
trace_act("ignore ARP %s", str);
sbin/routed/table.c
1272
trace_act("ignore cloned %s", str);
sbin/routed/table.c
1294
str, strerror(m.r.rtm.rtm_errno));
sbin/routed/table.c
1296
trace_act("%s", str);
sbin/routed/table.c
1305
str, strerror(m.r.rtm.rtm_errno));
sbin/routed/table.c
1307
trace_act("%s", str);
sbin/routed/table.c
1314
trace_act("%s", str);
sbin/routed/table.c
1319
trace_act("ignore %s", str);
sbin/routed/trace.c
112
char str[16]; /* xxx.xxx.xxx.xxx\0 */
sbin/routed/trace.c
118
s = strcpy(bufs[bufno].str, inet_ntoa(addr));
sbin/routed/trace.c
422
char str[15+20];
sbin/routed/trace.c
429
strlcpy(bufs[bufno].str, naddr_ntoa(addr), sizeof(bufs[bufno].str));
sbin/routed/trace.c
430
s = bufs[bufno].str;
sbin/routed/trace.c
431
l = sizeof(bufs[bufno].str);
sbin/setkey/test-pfkey.c
368
key_setsadbid(ext, str)
sbin/setkey/test-pfkey.c
370
caddr_t str;
sbin/setkey/test-pfkey.c
373
u_int idlen = strlen(str), len;
sbin/setkey/test-pfkey.c
384
str, idlen);
sbin/setkey/test-pfkey.c
427
key_setsadbkey(ext, str)
sbin/setkey/test-pfkey.c
429
caddr_t str;
sbin/setkey/test-pfkey.c
432
u_int keylen = strlen(str);
sbin/setkey/test-pfkey.c
443
str, keylen);
sbin/setkey/test-pfkey.c
470
key_setsadbaddr(ext, af, str)
sbin/setkey/test-pfkey.c
472
caddr_t str;
sbin/setkey/test-pfkey.c
498
if (getaddrinfo(str, serv, &hints, &res) != 0 || res->ai_next) {
sbin/sysctl/sysctl.c
897
strIKtoi(const char *str, char **endptrp, const char *fmt)
sbin/sysctl/sysctl.c
907
len = strlen(str);
sbin/sysctl/sysctl.c
926
p = &str[len - 1];
sbin/sysctl/sysctl.c
928
temp = strtof(str, endptrp);
sbin/sysctl/sysctl.c
929
if (*endptrp != str && *endptrp == p && errno == 0) {
sbin/sysctl/sysctl.c
941
kelv = (int)strtol(str, endptrp, 10);
sbin/sysctl/sysctl.c
942
if (*endptrp != str && *endptrp == p && errno == 0) {
share/examples/ipfilter/l4check/l4check.c
403
gethostport(char *str, int lnum, u_32_t *ipp, u_short *portp)
share/examples/ipfilter/l4check/l4check.c
410
host = str;
share/examples/ses/srcs/getencstat.c
57
char str[32];
share/examples/ses/srcs/getencstat.c
83
stri.bufsiz = sizeof(str);
share/examples/ses/srcs/getencstat.c
84
stri.buf = &str[0];
share/examples/ses/srcs/getencstat.c
87
stri.bufsiz = sizeof(str);
share/examples/ses/srcs/getencstat.c
88
stri.buf = &str[0];
share/examples/sunrpc/sort/sort_proc.c
17
if (ss_res.ss.ss_val != (str *)NULL)
share/examples/sunrpc/sort/sort_proc.c
22
ss_res.ss.ss_val = (str *)malloc(ssp->ss.ss_len * sizeof(str *));
share/examples/sunrpc/sort/sort_proc.c
24
ssp->ss.ss_len * sizeof(str *));
stand/common/bootstrap.h
62
char *backslash(const char *str);
stand/common/bootstrap.h
65
int parse(int *argc, char ***argv, const char *str);
stand/common/bootstrap.h
73
size_t strlenout(vm_offset_t str);
stand/common/bootstrap.h
74
char *strdupout(vm_offset_t str);
stand/common/gfx_fb.c
210
gfx_parse_mode_str(char *str, int *x, int *y, int *depth)
stand/common/gfx_fb.c
215
p = str;
stand/common/interp_backslash.c
106
if (*str >= '0' && *str <= '3' &&
stand/common/interp_backslash.c
107
*(str + 1) >= '0' && *(str + 1) <= '7' &&
stand/common/interp_backslash.c
108
*(str + 2) >= '0' && *(str + 2) <= '7') {
stand/common/interp_backslash.c
110
val = (DIGIT(*str) << 6) + (DIGIT(*(str + 1)) << 3) +
stand/common/interp_backslash.c
111
DIGIT(*(str + 2));
stand/common/interp_backslash.c
116
str += 3;
stand/common/interp_backslash.c
124
if (*str == '0' &&
stand/common/interp_backslash.c
125
(*(str + 1) == 'x' || *(str + 1) == 'X') &&
stand/common/interp_backslash.c
126
isxdigit(*(str + 2))) {
stand/common/interp_backslash.c
127
val = DIGIT(*(str + 2));
stand/common/interp_backslash.c
128
if (isxdigit(*(str + 3))) {
stand/common/interp_backslash.c
129
val = (val << 4) + DIGIT(*(str + 3));
stand/common/interp_backslash.c
130
str += 4;
stand/common/interp_backslash.c
133
str += 3;
stand/common/interp_backslash.c
142
new_str[i++] = *str++;
stand/common/interp_backslash.c
147
if (*str == '\\') {
stand/common/interp_backslash.c
149
str++;
stand/common/interp_backslash.c
152
new_str[i++] = *str++;
stand/common/interp_backslash.c
28
backslash(const char *str)
stand/common/interp_backslash.c
42
if ((new_str = strdup(str)) == NULL)
stand/common/interp_backslash.c
45
while (*str) {
stand/common/interp_backslash.c
48
switch (*str) {
stand/common/interp_backslash.c
51
str++;
stand/common/interp_backslash.c
59
new_str[i++] = *str++;
stand/common/interp_backslash.c
64
str++;
stand/common/interp_backslash.c
69
str++;
stand/common/interp_backslash.c
74
str++;
stand/common/interp_backslash.c
79
str++;
stand/common/interp_backslash.c
84
str++;
stand/common/interp_backslash.c
89
str++;
stand/common/interp_backslash.c
94
str++;
stand/common/interp_backslash.c
98
str++;
stand/common/interp_parse.c
85
parse(int *argc, char ***argv, const char *str)
stand/common/interp_parse.c
95
if (!str || (p = copy = backslash(str)) == NULL)
stand/common/isapnp.c
162
u_char *str;
stand/common/isapnp.c
197
str = malloc(large_len + 1);
stand/common/isapnp.c
198
if (isapnp_get_resource_info(str, (ssize_t)large_len)) {
stand/common/isapnp.c
199
free(str);
stand/common/isapnp.c
202
str[large_len] = 0;
stand/common/isapnp.c
204
pi->pi_desc = (char *)str;
stand/common/isapnp.c
206
free(str);
stand/common/misc.c
80
strdupout(vm_offset_t str)
stand/common/misc.c
84
result = malloc(strlenout(str) + 1);
stand/common/misc.c
86
archsw.arch_copyout(str++, cp, 1);
stand/efi/libefi/devpath.c
343
char *str;
stand/efi/libefi/devpath.c
365
&hd->Signature[0], &str, &rv);
stand/efi/libefi/devpath.c
370
hd->PartitionNumber, str,
stand/efi/libefi/devpath.c
372
free(str);
stand/efi/libefi/devpath.c
397
str = NULL;
stand/efi/libefi/devpath.c
399
&str) == 0) {
stand/efi/libefi/devpath.c
400
(void)asprintf(&name, "%s%s", str, tail);
stand/efi/libefi/devpath.c
401
free(str);
stand/efi/libefi/devpath.c
408
&str, &rv);
stand/efi/libefi/devpath.c
411
rv = asprintf(&name, "Protocol(%s)%s", str, tail);
stand/efi/libefi/devpath.c
412
free(str);
stand/efi/libefi/efichar.c
50
ucs2len(const efi_char *str)
stand/efi/libefi/efichar.c
55
while (*str++)
stand/efi/libefi/env.c
765
char *str;
stand/efi/libefi/env.c
769
str = NULL;
stand/efi/libefi/env.c
791
if (efi_guid_to_name(matchguid, &str) == false) {
stand/efi/libefi/env.c
795
printf("%s ", str);
stand/efi/libefi/env.c
800
if (strcmp(str, "global") == 0)
stand/efi/libefi/env.c
802
else if (strcmp(str, "freebsd") == 0)
stand/efi/libefi/env.c
804
else if (strcmp(str,
stand/efi/libefi/env.c
808
else if (strcmp(str,
stand/efi/libefi/env.c
811
else if (strcmp(str, MTC_VARIABLE_NAME) == 0) {
stand/efi/libefi/env.c
825
free(str);
stand/efi/loader/arch/amd64/multiboot2.c
247
static unsigned int add_string(void *buf, unsigned int type, const char *str)
stand/efi/loader/arch/amd64/multiboot2.c
253
tag->size = sizeof(*tag) + strlen(str) + 1;
stand/efi/loader/arch/amd64/multiboot2.c
254
strcpy(buf + sizeof(*tag), str);
stand/fdt/fdt_loader_cmd.c
597
#define fdt_strtovect(str, cellbuf, lim, cellsize) _fdt_strtovect((str), \
stand/fdt/fdt_loader_cmd.c
601
#define fdt_strtovectx(str, cellbuf, lim, cellsize) _fdt_strtovect((str), \
stand/fdt/fdt_loader_cmd.c
605
_fdt_strtovect(const char *str, void *cellbuf, int lim, unsigned char cellsize,
stand/fdt/fdt_loader_cmd.c
608
const char *buf = str;
stand/fdt/fdt_loader_cmd.c
609
const char *end = str + strlen(str) - 2;
stand/fdt/fdt_loader_cmd.c
648
fdt_fixup_ethernet(const char *str, char *ethstr, int len)
stand/fdt/fdt_loader_cmd.c
653
fdt_strtovectx(str, &tmp_addr, 6, sizeof(uint8_t));
stand/fdt/fdt_loader_cmd.c
888
fdt_fixup_stdout(const char *str)
stand/fdt/fdt_loader_cmd.c
895
ptr = (char *)str + strlen(str) - 1;
stand/fdt/fdt_loader_cmd.c
896
while (ptr > str && isdigit(*(str - 1)))
stand/fdt/fdt_loader_cmd.c
897
str--;
stand/fdt/fdt_loader_cmd.c
899
if (ptr == str)
stand/ficl/ficl.h
644
#define vmUpdateTib(pVM, str) (pVM)->tib.index = (str) - (pVM)->tib.cp
stand/i386/libi386/biospnp.c
191
char *str;
stand/i386/libi386/biospnp.c
220
str = malloc(rlen + 1);
stand/i386/libi386/biospnp.c
221
bcopy(p + i, str, rlen);
stand/i386/libi386/biospnp.c
222
str[rlen] = 0;
stand/i386/libi386/biospnp.c
224
pi->pi_desc = str;
stand/i386/libi386/biospnp.c
226
free(str);
stand/i386/libi386/vbe.c
826
vbe_find_mode(char *str)
stand/i386/libi386/vbe.c
830
if (!gfx_parse_mode_str(str, &x, &y, &depth))
stand/kboot/libkboot/seg.c
255
kvlookup(const char *str, struct kv *kvs, size_t nkv)
stand/kboot/libkboot/seg.c
258
if (strcmp(kvs[i].name, str) == 0)
stand/kboot/libkboot/seg.c
282
const char *str;
stand/kboot/libkboot/seg.c
307
str = parse_line(buf, &start, &end);
stand/kboot/libkboot/seg.c
308
if (str == NULL) /* Malformed -> ignore */
stand/kboot/libkboot/seg.c
313
if (strncmp(str, SYSTEM_RAM_STR, sizeof(SYSTEM_RAM_STR) - 1) == 0)
stand/kboot/libkboot/seg.c
315
else if (strncmp(str, RESERVED, sizeof(RESERVED) - 1) == 0)
stand/kboot/libkboot/seg.c
321
str = parse_line(buf, &start, &end);
stand/kboot/libkboot/seg.c
322
if (str == NULL)
stand/kboot/libkboot/seg.c
324
kv = kvlookup(str, str2type_kv, nitems(str2type_kv));
stand/kshim/bsd_kernel.c
1435
usb_strdup(const char *str)
stand/kshim/bsd_kernel.c
1440
len = 1 + strlen(str);
stand/kshim/bsd_kernel.c
1446
memcpy(tmp, str, len);
stand/kshim/bsd_kernel.h
530
int snprintf(char *restrict str, size_t size, const char *restrict format,...) __printflike(3, 4);
stand/kshim/bsd_kernel.h
545
char *usb_strdup(const char *str);
stand/liblua/lutils.c
252
const char *mode, *str;
stand/liblua/lutils.c
260
str = lua_tostring(L, 1);
stand/liblua/lutils.c
269
FILE * f = fopen(str, mode);
stand/libsa/bootparam.c
322
xdr_string_encode(char **pkt, char *str, int len)
stand/libsa/bootparam.c
335
bcopy(str, datap, len);
stand/libsa/bootparam.c
341
xdr_string_decode(char **pkt, char *str, int *len_p)
stand/libsa/bootparam.c
358
bcopy(datap, str, slen);
stand/libsa/bootparam.c
360
str[slen] = '\0';
stand/libsa/bootparam.c
84
int xdr_string_encode(char **p, char *str, int len);
stand/libsa/bootparam.c
85
int xdr_string_decode(char **p, char *str, int *len_p);
stand/libsa/stat.c
35
stat(const char *str, struct stat *sb)
stand/libsa/stat.c
39
fd = open(str, O_RDONLY);
stand/libsa/strdup.c
35
strdup(const char *str)
stand/libsa/strdup.c
40
if (str != NULL) {
stand/libsa/strdup.c
41
len = strlen(str) + 1;
stand/libsa/strdup.c
44
memcpy(copy, str, len);
stand/libsa/tftp.c
782
tftp_set_blksize(struct tftp_handle *h, const char *str)
stand/libsa/tftp.c
788
if (h == NULL || str == NULL)
stand/libsa/tftp.c
792
(unsigned int)strtol(str, &endptr, 0);
stand/libsa/zfs/zfs.c
888
char *str, **ptr;
stand/libsa/zfs/zfs.c
905
rv = nvlist_find(nv, name, DATA_TYPE_STRING, NULL, &str, &size);
stand/libsa/zfs/zfs.c
908
asprintf(ptr, "%.*s", size, str);
stand/powerpc/boot1.chrp/boot1.c
696
vsnprintf(char *str, size_t sz, const char *fmt, va_list ap)
stand/powerpc/boot1.chrp/boot1.c
701
sp.sp_buf = str;
stand/powerpc/boot1.chrp/boot1.c
71
static int vsnprintf(char *str, size_t sz, const char *fmt, va_list ap);
stand/uboot/glue.c
539
const char *env, *str;
stand/uboot/glue.c
557
for (i = 0, str = env; *str != '=' && *str != '\0';)
stand/uboot/glue.c
558
env_name[i++] = *str++;
stand/uboot/uboot_fdt.c
118
const char *env, *str;
stand/uboot/uboot_fdt.c
169
str = ub_env_get(env);
stand/uboot/uboot_fdt.c
182
fdt_fixup_ethernet(str, ethstr, len);
stand/uboot/uboot_fdt.c
190
str = ub_env_get(env);
stand/uboot/uboot_fdt.c
191
fdt_fixup_stdout(str);
sys/amd64/include/xen/hypercall.h
293
int cmd, unsigned int count, const char *str)
sys/amd64/include/xen/hypercall.h
295
return _hypercall3(int, console_io, cmd, count, str);
sys/amd64/vmm/amd/svm.c
1282
const char *str;
sys/amd64/vmm/amd/svm.c
1284
{ .reason = VMCB_EXIT_INVALID, .str = "invalvmcb" },
sys/amd64/vmm/amd/svm.c
1285
{ .reason = VMCB_EXIT_SHUTDOWN, .str = "shutdown" },
sys/amd64/vmm/amd/svm.c
1286
{ .reason = VMCB_EXIT_NPF, .str = "nptfault" },
sys/amd64/vmm/amd/svm.c
1287
{ .reason = VMCB_EXIT_PAUSE, .str = "pause" },
sys/amd64/vmm/amd/svm.c
1288
{ .reason = VMCB_EXIT_HLT, .str = "hlt" },
sys/amd64/vmm/amd/svm.c
1289
{ .reason = VMCB_EXIT_CPUID, .str = "cpuid" },
sys/amd64/vmm/amd/svm.c
1290
{ .reason = VMCB_EXIT_IO, .str = "inout" },
sys/amd64/vmm/amd/svm.c
1291
{ .reason = VMCB_EXIT_MC, .str = "mchk" },
sys/amd64/vmm/amd/svm.c
1292
{ .reason = VMCB_EXIT_INTR, .str = "extintr" },
sys/amd64/vmm/amd/svm.c
1293
{ .reason = VMCB_EXIT_NMI, .str = "nmi" },
sys/amd64/vmm/amd/svm.c
1294
{ .reason = VMCB_EXIT_VINTR, .str = "vintr" },
sys/amd64/vmm/amd/svm.c
1295
{ .reason = VMCB_EXIT_MSR, .str = "msr" },
sys/amd64/vmm/amd/svm.c
1296
{ .reason = VMCB_EXIT_IRET, .str = "iret" },
sys/amd64/vmm/amd/svm.c
1297
{ .reason = VMCB_EXIT_MONITOR, .str = "monitor" },
sys/amd64/vmm/amd/svm.c
1298
{ .reason = VMCB_EXIT_MWAIT, .str = "mwait" },
sys/amd64/vmm/amd/svm.c
1299
{ .reason = VMCB_EXIT_VMRUN, .str = "vmrun" },
sys/amd64/vmm/amd/svm.c
1300
{ .reason = VMCB_EXIT_VMMCALL, .str = "vmmcall" },
sys/amd64/vmm/amd/svm.c
1301
{ .reason = VMCB_EXIT_VMLOAD, .str = "vmload" },
sys/amd64/vmm/amd/svm.c
1302
{ .reason = VMCB_EXIT_VMSAVE, .str = "vmsave" },
sys/amd64/vmm/amd/svm.c
1303
{ .reason = VMCB_EXIT_STGI, .str = "stgi" },
sys/amd64/vmm/amd/svm.c
1304
{ .reason = VMCB_EXIT_CLGI, .str = "clgi" },
sys/amd64/vmm/amd/svm.c
1305
{ .reason = VMCB_EXIT_SKINIT, .str = "skinit" },
sys/amd64/vmm/amd/svm.c
1306
{ .reason = VMCB_EXIT_ICEBP, .str = "icebp" },
sys/amd64/vmm/amd/svm.c
1307
{ .reason = VMCB_EXIT_INVD, .str = "invd" },
sys/amd64/vmm/amd/svm.c
1308
{ .reason = VMCB_EXIT_INVLPGA, .str = "invlpga" },
sys/amd64/vmm/amd/svm.c
1309
{ .reason = VMCB_EXIT_POPF, .str = "popf" },
sys/amd64/vmm/amd/svm.c
1310
{ .reason = VMCB_EXIT_PUSHF, .str = "pushf" },
sys/amd64/vmm/amd/svm.c
1315
return (reasons[i].str);
sys/arm64/arm64/machdep_boot.c
75
#define PRELOAD_PUSH_STRING(str) do { \
sys/arm64/arm64/machdep_boot.c
77
ssize = strlen(str) + 1; \
sys/arm64/arm64/machdep_boot.c
79
strcpy((char*)(preload_ptr + size), str); \
sys/arm64/include/asm.h
95
str handler, [tmp, #PCB_ONFAULT] /* Set the handler */
sys/arm64/iommu/smmu.c
167
char *str;
sys/arm64/iommu/smmu.c
463
"Event %s (%s) received.\n", ev->str, ev->msg);
sys/cam/ata/ata_all.c
903
ata_string2mode(char *str)
sys/cam/ata/ata_all.c
905
if (!strcasecmp(str, "PIO0")) return (ATA_PIO0);
sys/cam/ata/ata_all.c
906
if (!strcasecmp(str, "PIO1")) return (ATA_PIO1);
sys/cam/ata/ata_all.c
907
if (!strcasecmp(str, "PIO2")) return (ATA_PIO2);
sys/cam/ata/ata_all.c
908
if (!strcasecmp(str, "PIO3")) return (ATA_PIO3);
sys/cam/ata/ata_all.c
909
if (!strcasecmp(str, "PIO4")) return (ATA_PIO4);
sys/cam/ata/ata_all.c
910
if (!strcasecmp(str, "WDMA0")) return (ATA_WDMA0);
sys/cam/ata/ata_all.c
911
if (!strcasecmp(str, "WDMA1")) return (ATA_WDMA1);
sys/cam/ata/ata_all.c
912
if (!strcasecmp(str, "WDMA2")) return (ATA_WDMA2);
sys/cam/ata/ata_all.c
913
if (!strcasecmp(str, "UDMA0")) return (ATA_UDMA0);
sys/cam/ata/ata_all.c
914
if (!strcasecmp(str, "UDMA16")) return (ATA_UDMA0);
sys/cam/ata/ata_all.c
915
if (!strcasecmp(str, "UDMA1")) return (ATA_UDMA1);
sys/cam/ata/ata_all.c
916
if (!strcasecmp(str, "UDMA25")) return (ATA_UDMA1);
sys/cam/ata/ata_all.c
917
if (!strcasecmp(str, "UDMA2")) return (ATA_UDMA2);
sys/cam/ata/ata_all.c
918
if (!strcasecmp(str, "UDMA33")) return (ATA_UDMA2);
sys/cam/ata/ata_all.c
919
if (!strcasecmp(str, "UDMA3")) return (ATA_UDMA3);
sys/cam/ata/ata_all.c
920
if (!strcasecmp(str, "UDMA44")) return (ATA_UDMA3);
sys/cam/ata/ata_all.c
921
if (!strcasecmp(str, "UDMA4")) return (ATA_UDMA4);
sys/cam/ata/ata_all.c
922
if (!strcasecmp(str, "UDMA66")) return (ATA_UDMA4);
sys/cam/ata/ata_all.c
923
if (!strcasecmp(str, "UDMA5")) return (ATA_UDMA5);
sys/cam/ata/ata_all.c
924
if (!strcasecmp(str, "UDMA100")) return (ATA_UDMA5);
sys/cam/ata/ata_all.c
925
if (!strcasecmp(str, "UDMA6")) return (ATA_UDMA6);
sys/cam/ata/ata_all.c
926
if (!strcasecmp(str, "UDMA133")) return (ATA_UDMA6);
sys/cam/ata/ata_all.h
147
int ata_string2mode(char *str);
sys/cam/cam.c
210
cam_strmatch(const uint8_t *str, const uint8_t *pattern, int str_len)
sys/cam/cam.c
219
if (cam_strmatch(str, pattern, str_len) == 0)
sys/cam/cam.c
221
str++;
sys/cam/cam.c
231
sc = *str++;
sys/cam/cam.c
257
str++;
sys/cam/cam.c
260
if (*str != *pattern)
sys/cam/cam.c
263
str++;
sys/cam/cam.c
278
while (str_len > 0 && *str == ' ') {
sys/cam/cam.c
279
str++;
sys/cam/cam.c
321
cam_error_string(union ccb *ccb, char *str, int str_len,
sys/cam/cam.c
326
cam_error_string(struct cam_device *device, union ccb *ccb, char *str,
sys/cam/cam.c
335
|| (str == NULL)
sys/cam/cam.c
411
sbuf_new(&sb, str, str_len, 0);
sys/cam/cam.c
547
char str[512];
sys/cam/cam.c
549
printf("%s", cam_error_string(ccb, str, sizeof(str), flags,
sys/cam/cam.c
560
char str[512];
sys/cam/cam.c
565
fprintf(ofile, "%s", cam_error_string(device, ccb, str, sizeof(str),
sys/cam/cam.h
411
int cam_strmatch(const uint8_t *str, const uint8_t *pattern, int str_len);
sys/cam/cam.h
415
char * cam_error_string(union ccb *ccb, char *str, int str_len,
sys/cam/cam.h
423
char * cam_error_string(struct cam_device *device, union ccb *ccb, char *str,
sys/cam/cam_xpt.c
3769
xpt_path_string(struct cam_path *path, char *str, size_t str_len)
sys/cam/cam_xpt.c
3773
sbuf_new(&sb, str, str_len, 0);
sys/cam/cam_xpt.c
3776
return (str);
sys/cam/cam_xpt.h
105
char * xpt_path_string(struct cam_path *path, char *str,
sys/cam/ctl/ctl.c
13839
char str[256];
sys/cam/ctl/ctl.c
13844
sbuf_new(&sb, str, sizeof(str), SBUF_FIXEDLEN);
sys/cam/ctl/ctl.c
2504
ctl_sbuf_printf_esc(struct sbuf *sb, char *str, int size)
sys/cam/ctl/ctl.c
2506
char *end = str + size;
sys/cam/ctl/ctl.c
2511
for (; *str && str < end; str++) {
sys/cam/ctl/ctl.c
2512
switch (*str) {
sys/cam/ctl/ctl.c
2523
retval = sbuf_putc(sb, *str);
sys/cam/ctl/ctl.c
4407
hex2bin(const char *str, uint8_t *buf, int buf_size)
sys/cam/ctl/ctl.c
4413
while (isspace(str[0]))
sys/cam/ctl/ctl.c
4414
str++;
sys/cam/ctl/ctl.c
4415
if (str[0] == '0' && (str[1] == 'x' || str[1] == 'X'))
sys/cam/ctl/ctl.c
4416
str += 2;
sys/cam/ctl/ctl.c
4418
for (i = 0; str[i] != 0 && i < buf_size; i++) {
sys/cam/ctl/ctl.c
4419
while (str[i] == '-') /* Skip dashes in UUIDs. */
sys/cam/ctl/ctl.c
4420
str++;
sys/cam/ctl/ctl.c
4421
c = str[i];
sys/cam/ctl/ctl.h
155
int ctl_sbuf_printf_esc(struct sbuf *sb, char *str, int size);
sys/cam/ctl/ctl_scsi_all.c
151
struct scsi_inquiry_data *inq_data, char *str,
sys/cam/ctl/ctl_scsi_all.c
156
sbuf_new(&sb, str, str_len, 0);
sys/cam/ctl/ctl_scsi_all.c
171
char str[512];
sys/cam/ctl/ctl_scsi_all.c
173
sbuf_new(&sb, str, sizeof(str), 0);
sys/cam/ctl/ctl_scsi_all.c
188
char str[512];
sys/cam/ctl/ctl_scsi_all.c
193
sbuf_new(&sb, str, sizeof(str), 0);
sys/cam/ctl/ctl_scsi_all.h
48
struct scsi_inquiry_data *inq_data, char *str,
sys/cam/ctl/ctl_util.c
830
ctl_io_string(union ctl_io *io, char *str, int str_len)
sys/cam/ctl/ctl_util.c
834
sbuf_new(&sb, str, str_len, SBUF_FIXEDLEN);
sys/cam/ctl/ctl_util.c
842
char *str, int str_len)
sys/cam/ctl/ctl_util.c
846
sbuf_new(&sb, str, str_len, SBUF_FIXEDLEN);
sys/cam/ctl/ctl_util.c
857
char str[512];
sys/cam/ctl/ctl_util.c
859
printf("%s", ctl_io_string(io, str, sizeof(str)));
sys/cam/ctl/ctl_util.c
865
char str[512];
sys/cam/ctl/ctl_util.c
867
printf("%s", ctl_io_error_string(io, inq_data, str, sizeof(str)));
sys/cam/ctl/ctl_util.c
874
char str[128];
sys/cam/ctl/ctl_util.c
898
sbuf_new(&sb, str, sizeof(str), SBUF_FIXEDLEN);
sys/cam/ctl/ctl_util.c
918
char str[512];
sys/cam/ctl/ctl_util.c
920
fprintf(ofile, "%s", ctl_io_error_string(io, inq_data, str,
sys/cam/ctl/ctl_util.c
921
sizeof(str)));
sys/cam/ctl/ctl_util.h
108
char *ctl_io_string(union ctl_io *io, char *str, int str_len);
sys/cam/ctl/ctl_util.h
110
struct scsi_inquiry_data *inq_data, char *str,
sys/cam/scsi/scsi_all.c
5245
scsi_sense_string(struct ccb_scsiio *csio, char *str, int str_len)
sys/cam/scsi/scsi_all.c
5249
char *str, int str_len)
sys/cam/scsi/scsi_all.c
5254
sbuf_new(&sb, str, str_len, 0);
sys/cam/scsi/scsi_all.c
5272
char str[512];
sys/cam/scsi/scsi_all.c
5274
sbuf_new(&sb, str, sizeof(str), 0);
sys/cam/scsi/scsi_all.c
5289
char str[512];
sys/cam/scsi/scsi_all.c
5294
sbuf_new(&sb, str, sizeof(str), 0);
sys/cam/scsi/scsi_all.h
1261
int (*parse_str)(char *str, struct scsi_mam_attribute_header *hdr,
sys/cam/scsi/scsi_all.h
3935
char *str, int str_len);
sys/cam/scsi/scsi_all.h
3947
char *str, int str_len);
sys/cam/scsi/scsi_enc_ses.c
2866
char str[32];
sys/cam/scsi/scsi_enc_ses.c
2917
rsize = snprintf(str, sizeof(str), "%s %s %s",
sys/cam/scsi/scsi_enc_ses.c
2919
if (rsize > sizeof(str))
sys/cam/scsi/scsi_enc_ses.c
2920
rsize = sizeof(str);
sys/cam/scsi/scsi_enc_ses.c
2924
ret = copyout(str, sstr->buf, size);
sys/cam/scsi/scsi_enc_ses.c
2931
rsize = snprintf(str, sizeof(str), "%16jx",
sys/cam/scsi/scsi_enc_ses.c
2933
if (rsize > sizeof(str))
sys/cam/scsi/scsi_enc_ses.c
2934
rsize = sizeof(str);
sys/cam/scsi/scsi_enc_ses.c
2938
ret = copyout(str, sstr->buf, size);
sys/cam/scsi/scsi_sa.c
295
SASBADDBASE(sb, indent, data, fmt, name, str, sizeof(data), \
sys/cam/scsi/scsi_sa.c
299
SASBADDBASE(sb, indent, data, fmt, name, str, sizeof(data), \
sys/cam/scsi/scsi_sa.c
303
SASBADDBASE(sb, indent, data, fmt, name, str, maxlen, NULL)
sys/cam/scsi/scsi_sa.c
306
SASBADDBASE(sb, indent, data, fmt, name, str, maxlen, desc)
sys/cam/scsi/smp_all.c
68
char *str;
sys/cam/scsi/smp_all.c
71
str = "Yes";
sys/cam/scsi/smp_all.c
73
str = "No";
sys/cam/scsi/smp_all.c
75
return (str);
sys/cddl/compat/opensolaris/kern/opensolaris_string.c
100
strfree(char *str)
sys/cddl/compat/opensolaris/kern/opensolaris_string.c
102
ASSERT(str != NULL);
sys/cddl/compat/opensolaris/kern/opensolaris_string.c
103
kmem_free(str, strlen(str) + 1);
sys/cddl/compat/opensolaris/sys/refstr.h
31
#define refstr_value(str) (str)
sys/cddl/compat/opensolaris/sys/sunddi.h
41
int ddi_strtol(const char *str, char **nptr, int base, long *result);
sys/cddl/compat/opensolaris/sys/sunddi.h
42
int ddi_strtoul(const char *str, char **nptr, int base, unsigned long *result);
sys/cddl/compat/opensolaris/sys/sunddi.h
43
int ddi_strtoll(const char *str, char **nptr, int base, long long *result);
sys/cddl/compat/opensolaris/sys/sunddi.h
44
int ddi_strtoull(const char *str, char **nptr, int base,
sys/cddl/dev/dtrace/dtrace_ioctl.c
535
char *str;
sys/cddl/dev/dtrace/dtrace_ioctl.c
555
str = state->dts_formats[fmt->dtfd_format - 1];
sys/cddl/dev/dtrace/dtrace_ioctl.c
556
ASSERT(str != NULL);
sys/cddl/dev/dtrace/dtrace_ioctl.c
558
len = strlen(str) + 1;
sys/cddl/dev/dtrace/dtrace_ioctl.c
563
if (copyout(str, fmt->dtfd_string, len) != 0) {
sys/compat/lindebugfs/lindebugfs.c
671
char *str, *str_with_newline;
sys/compat/lindebugfs/lindebugfs.c
677
str = *(char **)filp->private_data;
sys/compat/lindebugfs/lindebugfs.c
678
str_len = strlen(str);
sys/compat/lindebugfs/lindebugfs.c
689
strncpy(str_with_newline, str, str_len);
sys/compat/linsysfs/linsysfs.c
61
atoi(const char *str)
sys/compat/linsysfs/linsysfs.c
63
return (int)strtol(str, (char **)NULL, 10);
sys/compat/linuxkpi/common/include/linux/device.h
175
char *str;
sys/compat/linuxkpi/common/include/linux/device.h
184
return snprintf(buf, PAGE_SIZE, "%s\n", cs->str);
sys/compat/linuxkpi/common/include/linux/device.h
295
const char *str = "";
sys/compat/linuxkpi/common/include/linux/device.h
300
str = drv->name;
sys/compat/linuxkpi/common/include/linux/device.h
303
return (str);
sys/compat/linuxkpi/common/include/linux/dmi.h
47
#define dmi_match(f, str) linux_dmi_match(f, str)
sys/compat/linuxkpi/common/include/linux/moduleparam.h
118
#define module_param_string(name, str, len, perm) \
sys/compat/linuxkpi/common/include/linux/moduleparam.h
121
LINUXKPI_PARAM_NAME(name), LINUXKPI_PARAM_PERM(perm), (str), (len), \
sys/compat/linuxkpi/common/include/linux/seq_file.h
91
void seq_puts(struct seq_file *m, const char *str);
sys/compat/linuxkpi/common/include/linux/string.h
157
skip_spaces(const char *str)
sys/compat/linuxkpi/common/include/linux/string.h
159
while (isspace(*str))
sys/compat/linuxkpi/common/include/linux/string.h
160
++str;
sys/compat/linuxkpi/common/include/linux/string.h
161
return (__DECONST(char *, str));
sys/compat/linuxkpi/common/include/linux/string.h
169
strim(char *str)
sys/compat/linuxkpi/common/include/linux/string.h
173
end = str + strlen(str);
sys/compat/linuxkpi/common/include/linux/string.h
174
while (end >= str && (*end == '\0' || isspace(*end))) {
sys/compat/linuxkpi/common/include/linux/string.h
179
return (skip_spaces(str));
sys/compat/linuxkpi/common/include/linux/string.h
202
str_has_prefix(const char *str, const char *prefix)
sys/compat/linuxkpi/common/include/linux/string.h
207
return (strncmp(str, prefix, len) == 0 ? len : 0);
sys/compat/linuxkpi/common/include/linux/string.h
211
strreplace(char *str, char old, char new)
sys/compat/linuxkpi/common/include/linux/string.h
215
p = strchrnul(str, old);
sys/compat/linuxkpi/common/include/linux/string.h
218
p = strchrnul(str, old);
sys/compat/linuxkpi/common/src/linux_dmi.c
64
linux_dmi_match(enum dmi_field f, const char *str)
sys/compat/linuxkpi/common/src/linux_dmi.c
69
strcmp(dmi_data[f], str) == 0)
sys/compat/linuxkpi/common/src/linux_seq_file.c
90
seq_puts(struct seq_file *seq, const char *str)
sys/compat/linuxkpi/common/src/linux_seq_file.c
94
ret = sbuf_printf(seq->buf, "%s", str);
sys/ddb/db_output.c
216
db_puts(const char *str)
sys/ddb/db_output.c
220
for (i = 0; str[i] != '\0'; i++)
sys/ddb/db_output.c
221
db_putc(str[i]);
sys/ddb/db_output.c
84
static void db_puts(const char *str);
sys/dev/acpica/acpi.c
4908
acpi_parse_interfaces(char *str, struct acpi_interface *iface)
sys/dev/acpica/acpi.c
4914
p = str;
sys/dev/acpica/acpi_battery.c
316
acpi_battery_clean_str(char *str, int len)
sys/dev/acpica/acpi_battery.c
320
for (i = 0; i < len && *str != '\0'; i++, str++) {
sys/dev/acpica/acpi_battery.c
321
if (!isprint(*str))
sys/dev/acpica/acpi_battery.c
322
*str = '?';
sys/dev/acpica/acpi_battery.c
327
*str = '\0';
sys/dev/acpica/acpi_battery.c
54
static void acpi_battery_clean_str(char *str, int len);
sys/dev/acpica/acpi_button.c
103
char *str;
sys/dev/acpica/acpi_button.c
108
rv = ACPI_ID_PROBE(device_get_parent(dev), dev, btn_ids, &str);
sys/dev/acpica/acpi_button.c
113
if (strcmp(str, "PNP0C0C") == 0) {
sys/dev/acpica/acpi_button.c
116
} else if (strcmp(str, "ACPI_FPB") == 0) {
sys/dev/acpica/acpi_button.c
120
} else if (strcmp(str, "PNP0C0E") == 0) {
sys/dev/acpica/acpi_button.c
123
} else if (strcmp(str, "ACPI_FSB") == 0) {
sys/dev/aic7xxx/aicasm/aicasm_gram.y
113
char *str;
sys/dev/aic7xxx/aicasm/aicasm_gram.y
165
%token <str> T_PATH T_STRING T_ARG T_MACROBODY
sys/dev/aic7xxx/aicasm/aicasm_macro_gram.y
71
char *str;
sys/dev/aic7xxx/aicasm/aicasm_macro_gram.y
76
%token <str> T_ARG
sys/dev/asmc/asmc.c
617
#define ASMC_DPRINTF(str, ...) device_printf(dev, str, ##__VA_ARGS__)
sys/dev/asmc/asmc.c
619
#define ASMC_DPRINTF(str, ...)
sys/dev/ata/ata-all.c
665
ata_str2mode(const char *str)
sys/dev/ata/ata-all.c
668
if (!strcasecmp(str, "PIO0")) return (ATA_PIO0);
sys/dev/ata/ata-all.c
669
if (!strcasecmp(str, "PIO1")) return (ATA_PIO1);
sys/dev/ata/ata-all.c
670
if (!strcasecmp(str, "PIO2")) return (ATA_PIO2);
sys/dev/ata/ata-all.c
671
if (!strcasecmp(str, "PIO3")) return (ATA_PIO3);
sys/dev/ata/ata-all.c
672
if (!strcasecmp(str, "PIO4")) return (ATA_PIO4);
sys/dev/ata/ata-all.c
673
if (!strcasecmp(str, "WDMA0")) return (ATA_WDMA0);
sys/dev/ata/ata-all.c
674
if (!strcasecmp(str, "WDMA1")) return (ATA_WDMA1);
sys/dev/ata/ata-all.c
675
if (!strcasecmp(str, "WDMA2")) return (ATA_WDMA2);
sys/dev/ata/ata-all.c
676
if (!strcasecmp(str, "UDMA0")) return (ATA_UDMA0);
sys/dev/ata/ata-all.c
677
if (!strcasecmp(str, "UDMA16")) return (ATA_UDMA0);
sys/dev/ata/ata-all.c
678
if (!strcasecmp(str, "UDMA1")) return (ATA_UDMA1);
sys/dev/ata/ata-all.c
679
if (!strcasecmp(str, "UDMA25")) return (ATA_UDMA1);
sys/dev/ata/ata-all.c
680
if (!strcasecmp(str, "UDMA2")) return (ATA_UDMA2);
sys/dev/ata/ata-all.c
681
if (!strcasecmp(str, "UDMA33")) return (ATA_UDMA2);
sys/dev/ata/ata-all.c
682
if (!strcasecmp(str, "UDMA3")) return (ATA_UDMA3);
sys/dev/ata/ata-all.c
683
if (!strcasecmp(str, "UDMA44")) return (ATA_UDMA3);
sys/dev/ata/ata-all.c
684
if (!strcasecmp(str, "UDMA4")) return (ATA_UDMA4);
sys/dev/ata/ata-all.c
685
if (!strcasecmp(str, "UDMA66")) return (ATA_UDMA4);
sys/dev/ata/ata-all.c
686
if (!strcasecmp(str, "UDMA5")) return (ATA_UDMA5);
sys/dev/ata/ata-all.c
687
if (!strcasecmp(str, "UDMA100")) return (ATA_UDMA5);
sys/dev/ata/ata-all.c
688
if (!strcasecmp(str, "UDMA6")) return (ATA_UDMA6);
sys/dev/ata/ata-all.c
689
if (!strcasecmp(str, "UDMA133")) return (ATA_UDMA6);
sys/dev/ata/ata-all.c
69
static int ata_str2mode(const char *str);
sys/dev/bhnd/nvram/bhnd_nvram_data_bcm.c
1036
bhnd_nvram_val *str;
sys/dev/bhnd/nvram/bhnd_nvram_data_bcm.c
1044
error = bhnd_nvram_val_convert_new(&str, &bhnd_nvram_val_bcm_string_fmt,
sys/dev/bhnd/nvram/bhnd_nvram_data_bcm.c
1050
*result = str;
sys/dev/bhnd/nvram/bhnd_nvram_data_bcmraw.c
461
bhnd_nvram_val *str;
sys/dev/bhnd/nvram/bhnd_nvram_data_bcmraw.c
469
error = bhnd_nvram_val_convert_new(&str, &bhnd_nvram_val_bcm_string_fmt,
sys/dev/bhnd/nvram/bhnd_nvram_data_bcmraw.c
475
*result = str;
sys/dev/bhnd/nvram/bhnd_nvram_data_btxt.c
920
bhnd_nvram_val *str;
sys/dev/bhnd/nvram/bhnd_nvram_data_btxt.c
931
error = bhnd_nvram_val_convert_new(&str, &bhnd_nvram_val_bcm_string_fmt,
sys/dev/bhnd/nvram/bhnd_nvram_data_btxt.c
938
inp = bhnd_nvram_val_bytes(str, &ilen, &itype);
sys/dev/bhnd/nvram/bhnd_nvram_data_btxt.c
946
bhnd_nvram_val_release(str);
sys/dev/bhnd/nvram/bhnd_nvram_data_btxt.c
952
*result = str;
sys/dev/bhnd/nvram/bhnd_nvram_data_tlv.c
572
bhnd_nvram_val *str;
sys/dev/bhnd/nvram/bhnd_nvram_data_tlv.c
595
error = bhnd_nvram_val_convert_new(&str, &bhnd_nvram_val_bcm_string_fmt,
sys/dev/bhnd/nvram/bhnd_nvram_data_tlv.c
601
inp = bhnd_nvram_val_bytes(str, &ilen, &itype);
sys/dev/bhnd/nvram/bhnd_nvram_data_tlv.c
606
bhnd_nvram_val_release(str);
sys/dev/bhnd/nvram/bhnd_nvram_data_tlv.c
612
*result = str;
sys/dev/bhnd/nvram/bhnd_nvram_private.h
103
bhnd_nv_strndup(const char *str, size_t len)
sys/dev/bhnd/nvram/bhnd_nvram_private.h
107
len = strnlen(str, len);
sys/dev/bhnd/nvram/bhnd_nvram_private.h
112
memcpy(dest, str, len);
sys/dev/bhnd/nvram/bhnd_nvram_private.h
155
#define bhnd_nv_strdup(str) strdup(str)
sys/dev/bhnd/nvram/bhnd_nvram_private.h
156
#define bhnd_nv_strndup(str, len) strndup(str, len)
sys/dev/bhnd/nvram/bhnd_nvram_private.h
85
bhnd_nv_strdup(const char *str)
sys/dev/bhnd/nvram/bhnd_nvram_private.h
90
len = strlen(str);
sys/dev/bhnd/nvram/bhnd_nvram_private.h
95
memcpy(dest, str, len);
sys/dev/bhnd/nvram/bhnd_nvram_store_subr.c
1155
info->path.str.value = path;
sys/dev/bhnd/nvram/bhnd_nvram_store_subr.c
1156
info->path.str.value_len = path_len;
sys/dev/bhnd/nvram/bhnd_nvram_store_subr.c
1174
info->path.str.value = BHND_NVSTORE_ROOT_PATH;
sys/dev/bhnd/nvram/bhnd_nvram_store_subr.c
1175
info->path.str.value_len = BHND_NVSTORE_ROOT_PATH_LEN;
sys/dev/bhnd/nvram/bhnd_nvram_store_subr.c
727
info->path.str.value, info->path.str.value_len));
sys/dev/bhnd/nvram/bhnd_nvram_store_subr.c
762
return (bhnd_nvstore_get_path(sc, info->path.str.value,
sys/dev/bhnd/nvram/bhnd_nvram_store_subr.c
763
info->path.str.value_len));
sys/dev/bhnd/nvram/bhnd_nvram_storevar.h
216
} str;
sys/dev/bhnd/nvram/bhnd_nvram_subr.c
708
bhnd_nvram_parse_int(const char *str, size_t maxlen, u_int base,
sys/dev/bhnd/nvram/bhnd_nvram_subr.c
745
if (!bhnd_nv_isspace(str[*nbytes]))
sys/dev/bhnd/nvram/bhnd_nvram_subr.c
754
if (str[*nbytes] == '-') {
sys/dev/bhnd/nvram/bhnd_nvram_subr.c
758
} else if (str[*nbytes] == '+') {
sys/dev/bhnd/nvram/bhnd_nvram_subr.c
770
if (maxlen - *nbytes >= 2 && str[*nbytes] == '0' &&
sys/dev/bhnd/nvram/bhnd_nvram_subr.c
771
(str[*nbytes+1] == 'x' || str[*nbytes+1] == 'X'))
sys/dev/bhnd/nvram/bhnd_nvram_subr.c
784
if (str[*nbytes] == '0') {
sys/dev/bhnd/nvram/bhnd_nvram_subr.c
867
c = str[*nbytes];
sys/dev/bhnd/nvram/bhnd_nvram_value.c
745
const char *str = bval ? "true" : "false";
sys/dev/bhnd/nvram/bhnd_nvram_value.c
747
nbytes = strlen(str) + 1;
sys/dev/bhnd/nvram/bhnd_nvram_value.c
749
strcpy(outp, str);
sys/dev/bhnd/nvram/bhnd_nvram_value_fmts.c
789
const char *str;
sys/dev/bhnd/nvram/bhnd_nvram_value_fmts.c
795
str = bhnd_nvram_val_bytes(value, &slen, &stype);
sys/dev/bhnd/nvram/bhnd_nvram_value_fmts.c
807
if (!bhnd_nvram_ident_octet_string(str, slen, &delim, NULL)) {
sys/dev/bhnd/nvram/bhnd_nvram_value_fmts.c
813
next = str;
sys/dev/bhnd/nvram/bhnd_nvram_value_fmts.c
820
if ((size_t)(next - str) >= slen)
sys/dev/bhnd/nvram/bhnd_nvram_value_fmts.c
826
remain = slen - (size_t)(next - str);
sys/dev/bnxt/bnxt_en/bnxt_sysctl.c
1295
static int bnxt_get_rss_type_str_bit(char *str)
sys/dev/bnxt/bnxt_en/bnxt_sysctl.c
1300
if (strcmp(bnxt_hash_types[i], str) == 0)
sys/dev/bnxt/bnxt_re/ib_verbs.c
432
sprintf(str, "%d.%d.%d.%d", rdev->dev_attr->fw_ver[0],
sys/dev/bnxt/bnxt_re/ib_verbs.h
137
char *str, size_t str_len)
sys/dev/bxe/bxe.h
1780
char str[1]; /* holds names of desc.num stats, each desc.len in length */
sys/dev/bxe/bxe_elink.c
11483
static elink_status_t elink_848xx_format_ver(uint32_t raw_ver, uint8_t *str, uint16_t *len)
sys/dev/bxe/bxe_elink.c
11488
status = elink_format_ver(spirom_ver, str, len);
sys/dev/bxe/bxe_elink.c
12348
static elink_status_t elink_7101_format_ver(uint32_t spirom_ver, uint8_t *str, uint16_t *len)
sys/dev/bxe/bxe_elink.c
12352
str[0] = (spirom_ver & 0xFF);
sys/dev/bxe/bxe_elink.c
12353
str[1] = (spirom_ver & 0xFF00) >> 8;
sys/dev/bxe/bxe_elink.c
12354
str[2] = (spirom_ver & 0xFF0000) >> 16;
sys/dev/bxe/bxe_elink.c
12355
str[3] = (spirom_ver & 0xFF000000) >> 24;
sys/dev/bxe/bxe_elink.c
12356
str[4] = '\0';
sys/dev/bxe/bxe_elink.c
7022
static elink_status_t elink_format_ver(uint32_t num, uint8_t *str, uint16_t *len)
sys/dev/bxe/bxe_elink.c
7024
uint8_t *str_ptr = str;
sys/dev/bxe/bxe_elink.c
7061
static elink_status_t elink_null_format_ver(uint32_t spirom_ver, uint8_t *str, uint16_t *len)
sys/dev/bxe/bxe_elink.c
7063
str[0] = '\0';
sys/dev/bxe/bxe_elink.h
250
typedef uint8_t (*format_fw_ver_t)(uint32_t raw, uint8_t *str, uint16_t *len);
sys/dev/bxe/ecore_sp.h
267
#define ECORE_ERR(str, ...) \
sys/dev/bxe/ecore_sp.h
268
BLOGE(sc, "ECORE: " str, ##__VA_ARGS__)
sys/dev/cxgbe/cudbg/cudbg.h
308
typedef int (*cudbg_print_cb) (char *str, ...);
sys/dev/dpaa/if_dtsec.c
150
return (dtsec_fm_mac_exceptions[i].str);
sys/dev/dpaa/if_dtsec.c
83
const char *str;
sys/dev/dpaa2/dpaa2_types.c
76
dpaa2_stot(const char *str)
sys/dev/dpaa2/dpaa2_types.c
78
if (COMPARE_TYPE(str, "dprc")) {
sys/dev/dpaa2/dpaa2_types.c
80
} else if (COMPARE_TYPE(str, "dpio")) {
sys/dev/dpaa2/dpaa2_types.c
82
} else if (COMPARE_TYPE(str, "dpni")) {
sys/dev/dpaa2/dpaa2_types.c
84
} else if (COMPARE_TYPE(str, "dpmcp")) {
sys/dev/dpaa2/dpaa2_types.c
86
} else if (COMPARE_TYPE(str, "dpbp")) {
sys/dev/dpaa2/dpaa2_types.c
88
} else if (COMPARE_TYPE(str, "dpcon")) {
sys/dev/dpaa2/dpaa2_types.c
90
} else if (COMPARE_TYPE(str, "dpmac")) {
sys/dev/dpaa2/dpaa2_types.c
92
} else if (COMPARE_TYPE(str, "dpdmux")) {
sys/dev/dpaa2/dpaa2_types.c
94
} else if (COMPARE_TYPE(str, "dpsw")) {
sys/dev/drm2/drm_edid.c
1678
*(u8 **)data = t->data.other_data.data.str.str;
sys/dev/drm2/drm_edid.h
138
struct detailed_data_string str;
sys/dev/drm2/drm_edid.h
82
u8 str[13];
sys/dev/fb/vesa.c
751
char *str; \
sys/dev/fb/vesa.c
754
str = x86bios_offset(BIOS_SADDRTOLADDR(src)); \
sys/dev/fb/vesa.c
755
for (i = 0; i < VESA_MAXSTR - 1 && str[i] != '\0'; i++) \
sys/dev/fb/vesa.c
756
dst[i] = str[i]; \
sys/dev/hid/hidquirk.c
189
hid_strquirk(const char *str, size_t len)
sys/dev/hid/hidquirk.c
196
if (strncmp(str, quirk, len) == 0 &&
sys/dev/hptmv/vdevice.h
241
void VBus_Config(PVBus pVBus, char *str);
sys/dev/hptmv/vdevice.h
243
#define VBus_Config(pVBus, str)
sys/dev/ice/ice_lib.c
11488
ice_ets_str_to_tbl(const char *str, u8 *table, u8 limit)
sys/dev/ice/ice_lib.c
11490
const char *str_start = str;
sys/dev/ice/ice_lib.c
171
static int ice_ets_str_to_tbl(const char *str, u8 *table, u8 limit);
sys/dev/ice/ice_lib.c
6234
const char *str = ice_state_to_str((enum ice_state)i);
sys/dev/ice/ice_lib.c
6238
if (str)
sys/dev/ice/ice_lib.c
6239
sbuf_printf(sbuf, "\n%s", str);
sys/dev/ice/ice_lib.h
816
char str[ICE_STR_BUF_LEN];
sys/dev/ice/ice_lib.h
829
#define ice_aq_str(err) _ice_aq_str(err).str
sys/dev/ice/ice_lib.h
830
#define ice_status_str(err) _ice_status_str(err).str
sys/dev/ice/ice_lib.h
831
#define ice_err_str(err) _ice_err_str(err).str
sys/dev/ice/ice_lib.h
832
#define ice_fltr_flag_str(flag) _ice_fltr_flag_str(flag).str
sys/dev/ice/ice_lib.h
834
#define ice_mdd_tx_tclan_str(event) _ice_mdd_tx_tclan_str(event).str
sys/dev/ice/ice_lib.h
835
#define ice_mdd_tx_pqm_str(event) _ice_mdd_tx_pqm_str(event).str
sys/dev/ice/ice_lib.h
836
#define ice_mdd_rx_str(event) _ice_mdd_rx_str(event).str
sys/dev/ice/ice_lib.h
838
#define ice_log_sev_str(log_level) _ice_log_sev_str(log_level).str
sys/dev/ice/ice_lib.h
839
#define ice_fw_lldp_status(lldp_status) _ice_fw_lldp_status(lldp_status).str
sys/dev/ice/ice_strings.c
101
str = "AQ_RC_ENOMEM";
sys/dev/ice/ice_strings.c
104
str = "AQ_RC_EACCES";
sys/dev/ice/ice_strings.c
107
str = "AQ_RC_EFAULT";
sys/dev/ice/ice_strings.c
110
str = "AQ_RC_EBUSY";
sys/dev/ice/ice_strings.c
113
str = "AQ_RC_EEXIST";
sys/dev/ice/ice_strings.c
1158
struct ice_str_buf buf = { .str = "" };
sys/dev/ice/ice_strings.c
1159
const char *str = NULL;
sys/dev/ice/ice_strings.c
116
str = "AQ_RC_EINVAL";
sys/dev/ice/ice_strings.c
1164
str = "DISABLED";
sys/dev/ice/ice_strings.c
1167
str = "ENA_RX";
sys/dev/ice/ice_strings.c
1170
str = "ENA_TX";
sys/dev/ice/ice_strings.c
1173
str = "ENA_RXTX";
sys/dev/ice/ice_strings.c
1176
str = "NVM_DEFAULT";
sys/dev/ice/ice_strings.c
1180
if (str)
sys/dev/ice/ice_strings.c
1181
snprintf(buf.str, ICE_STR_BUF_LEN, "%s", str);
sys/dev/ice/ice_strings.c
1183
snprintf(buf.str, ICE_STR_BUF_LEN, "Unknown LLDP status %u", lldp_status);
sys/dev/ice/ice_strings.c
119
str = "AQ_RC_ENOTTY";
sys/dev/ice/ice_strings.c
122
str = "AQ_RC_ENOSPC";
sys/dev/ice/ice_strings.c
125
str = "AQ_RC_ENOSYS";
sys/dev/ice/ice_strings.c
128
str = "AQ_RC_ERANGE";
sys/dev/ice/ice_strings.c
131
str = "AQ_RC_EFLUSHED";
sys/dev/ice/ice_strings.c
134
str = "AQ_RC_BAD_ADDR";
sys/dev/ice/ice_strings.c
137
str = "AQ_RC_EMODE";
sys/dev/ice/ice_strings.c
140
str = "AQ_RC_EFBIG";
sys/dev/ice/ice_strings.c
143
str = "AQ_RC_ESBCOMP";
sys/dev/ice/ice_strings.c
146
str = "AQ_RC_ENOSEC";
sys/dev/ice/ice_strings.c
149
str = "AQ_RC_EBADSIG";
sys/dev/ice/ice_strings.c
152
str = "AQ_RC_ESVN";
sys/dev/ice/ice_strings.c
155
str = "AQ_RC_EBADMAN";
sys/dev/ice/ice_strings.c
158
str = "AQ_RC_EBADBUF";
sys/dev/ice/ice_strings.c
161
str = "AQ_RC_EACCES_BMCU";
sys/dev/ice/ice_strings.c
165
if (str)
sys/dev/ice/ice_strings.c
166
snprintf(buf.str, ICE_STR_BUF_LEN, "%s", str);
sys/dev/ice/ice_strings.c
168
snprintf(buf.str, ICE_STR_BUF_LEN, "%d", aq_err);
sys/dev/ice/ice_strings.c
184
struct ice_str_buf buf = { .str = "" };
sys/dev/ice/ice_strings.c
185
const char *str = NULL;
sys/dev/ice/ice_strings.c
189
str = "OK";
sys/dev/ice/ice_strings.c
192
str = "ICE_ERR_PARAM";
sys/dev/ice/ice_strings.c
195
str = "ICE_ERR_NOT_IMPL";
sys/dev/ice/ice_strings.c
198
str = "ICE_ERR_NOT_READY";
sys/dev/ice/ice_strings.c
201
str = "ICE_ERR_NOT_SUPPORTED";
sys/dev/ice/ice_strings.c
204
str = "ICE_ERR_BAD_PTR";
sys/dev/ice/ice_strings.c
207
str = "ICE_ERR_INVAL_SIZE";
sys/dev/ice/ice_strings.c
210
str = "ICE_ERR_DEVICE_NOT_SUPPORTED";
sys/dev/ice/ice_strings.c
213
str = "ICE_ERR_RESET_FAILED";
sys/dev/ice/ice_strings.c
216
str = "ICE_ERR_FW_API_VER";
sys/dev/ice/ice_strings.c
219
str = "ICE_ERR_NO_MEMORY";
sys/dev/ice/ice_strings.c
222
str = "ICE_ERR_CFG";
sys/dev/ice/ice_strings.c
225
str = "ICE_ERR_OUT_OF_RANGE";
sys/dev/ice/ice_strings.c
228
str = "ICE_ERR_ALREADY_EXISTS";
sys/dev/ice/ice_strings.c
231
str = "ICE_ERR_NVM";
sys/dev/ice/ice_strings.c
234
str = "ICE_ERR_NVM_CHECKSUM";
sys/dev/ice/ice_strings.c
237
str = "ICE_ERR_BUF_TOO_SHORT";
sys/dev/ice/ice_strings.c
240
str = "ICE_ERR_NVM_BLANK_MODE";
sys/dev/ice/ice_strings.c
243
str = "ICE_ERR_IN_USE";
sys/dev/ice/ice_strings.c
246
str = "ICE_ERR_MAX_LIMIT";
sys/dev/ice/ice_strings.c
249
str = "ICE_ERR_RESET_ONGOING";
sys/dev/ice/ice_strings.c
252
str = "ICE_ERR_HW_TABLE";
sys/dev/ice/ice_strings.c
255
str = "ICE_ERR_FW_DDP_MISMATCH";
sys/dev/ice/ice_strings.c
258
str = "ICE_ERR_DOES_NOT_EXIST";
sys/dev/ice/ice_strings.c
261
str = "ICE_ERR_AQ_ERROR";
sys/dev/ice/ice_strings.c
264
str = "ICE_ERR_AQ_TIMEOUT";
sys/dev/ice/ice_strings.c
267
str = "ICE_ERR_AQ_FULL";
sys/dev/ice/ice_strings.c
270
str = "ICE_ERR_AQ_NO_WORK";
sys/dev/ice/ice_strings.c
273
str = "ICE_ERR_AQ_EMPTY";
sys/dev/ice/ice_strings.c
276
str = "ICE_ERR_AQ_FW_CRITICAL";
sys/dev/ice/ice_strings.c
280
if (str)
sys/dev/ice/ice_strings.c
281
snprintf(buf.str, ICE_STR_BUF_LEN, "%s", str);
sys/dev/ice/ice_strings.c
283
snprintf(buf.str, ICE_STR_BUF_LEN, "%d", status);
sys/dev/ice/ice_strings.c
300
struct ice_str_buf buf = { .str = "" };
sys/dev/ice/ice_strings.c
301
const char *str = NULL;
sys/dev/ice/ice_strings.c
305
str = "OK";
sys/dev/ice/ice_strings.c
308
str = "EPERM";
sys/dev/ice/ice_strings.c
311
str = "ENOENT";
sys/dev/ice/ice_strings.c
314
str = "ESRCH";
sys/dev/ice/ice_strings.c
317
str = "EINTR";
sys/dev/ice/ice_strings.c
320
str = "EIO";
sys/dev/ice/ice_strings.c
323
str = "ENXIO";
sys/dev/ice/ice_strings.c
326
str = "E2BIG";
sys/dev/ice/ice_strings.c
329
str = "ENOEXEC";
sys/dev/ice/ice_strings.c
332
str = "EBADF";
sys/dev/ice/ice_strings.c
335
str = "ECHILD";
sys/dev/ice/ice_strings.c
338
str = "EDEADLK";
sys/dev/ice/ice_strings.c
341
str = "ENOMEM";
sys/dev/ice/ice_strings.c
344
str = "EACCES";
sys/dev/ice/ice_strings.c
347
str = "EFAULT";
sys/dev/ice/ice_strings.c
350
str = "ENOTBLK";
sys/dev/ice/ice_strings.c
353
str = "EBUSY";
sys/dev/ice/ice_strings.c
356
str = "EEXIST";
sys/dev/ice/ice_strings.c
359
str = "EXDEV";
sys/dev/ice/ice_strings.c
362
str = "ENODEV";
sys/dev/ice/ice_strings.c
365
str = "ENOTDIR";
sys/dev/ice/ice_strings.c
368
str = "EISDIR";
sys/dev/ice/ice_strings.c
371
str = "EINVAL";
sys/dev/ice/ice_strings.c
374
str = "ENFILE";
sys/dev/ice/ice_strings.c
377
str = "EMFILE";
sys/dev/ice/ice_strings.c
380
str = "ENOTTY";
sys/dev/ice/ice_strings.c
383
str = "ETXTBSY";
sys/dev/ice/ice_strings.c
386
str = "EFBIG";
sys/dev/ice/ice_strings.c
389
str = "ENOSPC";
sys/dev/ice/ice_strings.c
392
str = "ESPIPE";
sys/dev/ice/ice_strings.c
395
str = "EROFS";
sys/dev/ice/ice_strings.c
398
str = "EMLINK";
sys/dev/ice/ice_strings.c
401
str = "EPIPE";
sys/dev/ice/ice_strings.c
404
str = "EDOM";
sys/dev/ice/ice_strings.c
407
str = "ERANGE";
sys/dev/ice/ice_strings.c
411
str = "EAGAIN";
sys/dev/ice/ice_strings.c
414
str = "EINPROGRESS";
sys/dev/ice/ice_strings.c
417
str = "EALREADY";
sys/dev/ice/ice_strings.c
420
str = "ENOTSOCK";
sys/dev/ice/ice_strings.c
423
str = "EDESTADDRREQ";
sys/dev/ice/ice_strings.c
426
str = "EMSGSIZE";
sys/dev/ice/ice_strings.c
429
str = "EPROTOTYPE";
sys/dev/ice/ice_strings.c
432
str = "ENOPROTOOPT";
sys/dev/ice/ice_strings.c
435
str = "EPROTONOSUPPORT";
sys/dev/ice/ice_strings.c
438
str = "ESOCKTNOSUPPORT";
sys/dev/ice/ice_strings.c
441
str = "EOPNOTSUPP";
sys/dev/ice/ice_strings.c
445
str = "EPFNOSUPPORT";
sys/dev/ice/ice_strings.c
448
str = "EAFNOSUPPORT";
sys/dev/ice/ice_strings.c
451
str = "EADDRINUSE";
sys/dev/ice/ice_strings.c
454
str = "EADDRNOTAVAIL";
sys/dev/ice/ice_strings.c
457
str = "ENETDOWN";
sys/dev/ice/ice_strings.c
460
str = "ENETUNREACH";
sys/dev/ice/ice_strings.c
463
str = "ENETRESET";
sys/dev/ice/ice_strings.c
466
str = "ECONNABORTED";
sys/dev/ice/ice_strings.c
469
str = "ECONNRESET";
sys/dev/ice/ice_strings.c
472
str = "ENOBUFS";
sys/dev/ice/ice_strings.c
475
str = "EISCONN";
sys/dev/ice/ice_strings.c
478
str = "ENOTCONN";
sys/dev/ice/ice_strings.c
481
str = "ESHUTDOWN";
sys/dev/ice/ice_strings.c
484
str = "ETOOMANYREFS";
sys/dev/ice/ice_strings.c
487
str = "ETIMEDOUT";
sys/dev/ice/ice_strings.c
490
str = "ECONNREFUSED";
sys/dev/ice/ice_strings.c
493
str = "ELOOP";
sys/dev/ice/ice_strings.c
496
str = "ENAMETOOLONG";
sys/dev/ice/ice_strings.c
499
str = "EHOSTDOWN";
sys/dev/ice/ice_strings.c
502
str = "EHOSTUNREACH";
sys/dev/ice/ice_strings.c
505
str = "ENOTEMPTY";
sys/dev/ice/ice_strings.c
508
str = "EPROCLIM";
sys/dev/ice/ice_strings.c
511
str = "EUSERS";
sys/dev/ice/ice_strings.c
514
str = "EDQUOT";
sys/dev/ice/ice_strings.c
517
str = "ESTALE";
sys/dev/ice/ice_strings.c
520
str = "EREMOTE";
sys/dev/ice/ice_strings.c
523
str = "EBADRPC";
sys/dev/ice/ice_strings.c
526
str = "ERPCMISMATCH";
sys/dev/ice/ice_strings.c
529
str = "EPROGUNAVAIL";
sys/dev/ice/ice_strings.c
532
str = "EPROGMISMATCH";
sys/dev/ice/ice_strings.c
535
str = "EPROCUNAVAIL";
sys/dev/ice/ice_strings.c
538
str = "ENOLCK";
sys/dev/ice/ice_strings.c
541
str = "ENOSYS";
sys/dev/ice/ice_strings.c
544
str = "EFTYPE";
sys/dev/ice/ice_strings.c
547
str = "EAUTH";
sys/dev/ice/ice_strings.c
550
str = "ENEEDAUTH";
sys/dev/ice/ice_strings.c
553
str = "EIDRM";
sys/dev/ice/ice_strings.c
556
str = "ENOMSG";
sys/dev/ice/ice_strings.c
559
str = "EOVERFLOW";
sys/dev/ice/ice_strings.c
562
str = "ECANCELED";
sys/dev/ice/ice_strings.c
565
str = "EILSEQ";
sys/dev/ice/ice_strings.c
568
str = "ENOATTR";
sys/dev/ice/ice_strings.c
571
str = "EDOOFUS";
sys/dev/ice/ice_strings.c
574
str = "EBADMSG";
sys/dev/ice/ice_strings.c
577
str = "EMULTIHOP";
sys/dev/ice/ice_strings.c
580
str = "ENOLINK";
sys/dev/ice/ice_strings.c
583
str = "EPROTO";
sys/dev/ice/ice_strings.c
586
str = "ENOTCAPABLE";
sys/dev/ice/ice_strings.c
589
str = "ECAPMODE";
sys/dev/ice/ice_strings.c
592
str = "ENOTRECOVERABLE";
sys/dev/ice/ice_strings.c
595
str = "EOWNERDEAD";
sys/dev/ice/ice_strings.c
599
if (str)
sys/dev/ice/ice_strings.c
600
snprintf(buf.str, ICE_STR_BUF_LEN, "%s", str);
sys/dev/ice/ice_strings.c
602
snprintf(buf.str, ICE_STR_BUF_LEN, "%d", err);
sys/dev/ice/ice_strings.c
678
struct ice_str_buf buf = { .str = "" };
sys/dev/ice/ice_strings.c
679
const char *str = NULL;
sys/dev/ice/ice_strings.c
683
str = "RX";
sys/dev/ice/ice_strings.c
686
str = "TX";
sys/dev/ice/ice_strings.c
689
str = "TX_RX";
sys/dev/ice/ice_strings.c
69
struct ice_str_buf buf = { .str = "" };
sys/dev/ice/ice_strings.c
695
if (str)
sys/dev/ice/ice_strings.c
696
snprintf(buf.str, ICE_STR_BUF_LEN, "%s", str);
sys/dev/ice/ice_strings.c
698
snprintf(buf.str, ICE_STR_BUF_LEN, "%u", flag);
sys/dev/ice/ice_strings.c
70
const char *str = NULL;
sys/dev/ice/ice_strings.c
713
struct ice_str_buf buf = { .str = "" };
sys/dev/ice/ice_strings.c
714
const char *str = NULL;
sys/dev/ice/ice_strings.c
718
str = "none";
sys/dev/ice/ice_strings.c
721
str = "error";
sys/dev/ice/ice_strings.c
724
str = "warning";
sys/dev/ice/ice_strings.c
727
str = "normal";
sys/dev/ice/ice_strings.c
730
str = "verbose";
sys/dev/ice/ice_strings.c
736
if (str)
sys/dev/ice/ice_strings.c
737
snprintf(buf.str, ICE_STR_BUF_LEN, "%s", str);
sys/dev/ice/ice_strings.c
739
snprintf(buf.str, ICE_STR_BUF_LEN, "%u", log_level);
sys/dev/ice/ice_strings.c
74
str = "OK";
sys/dev/ice/ice_strings.c
77
str = "AQ_RC_EPERM";
sys/dev/ice/ice_strings.c
788
struct ice_str_buf buf = { .str = "" };
sys/dev/ice/ice_strings.c
789
const char *str = NULL;
sys/dev/ice/ice_strings.c
793
str = "Wrong descriptor format/order";
sys/dev/ice/ice_strings.c
796
str = "Descriptor fetch failed";
sys/dev/ice/ice_strings.c
799
str = "Tail descriptor not EOP/NOP";
sys/dev/ice/ice_strings.c
80
str = "AQ_RC_ENOENT";
sys/dev/ice/ice_strings.c
802
str = "False scheduling error";
sys/dev/ice/ice_strings.c
805
str = "Tail value larger than ring len";
sys/dev/ice/ice_strings.c
808
str = "Too many data commands";
sys/dev/ice/ice_strings.c
811
str = "Zero packets sent in quanta";
sys/dev/ice/ice_strings.c
814
str = "Packet too small or too big";
sys/dev/ice/ice_strings.c
817
str = "TSO length doesn't match sum";
sys/dev/ice/ice_strings.c
820
str = "TSO tail reached before TLEN";
sys/dev/ice/ice_strings.c
823
str = "TSO max 3 descs for headers";
sys/dev/ice/ice_strings.c
826
str = "EOP on header descriptor";
sys/dev/ice/ice_strings.c
829
str = "MSS is 0 or TLEN is 0";
sys/dev/ice/ice_strings.c
83
str = "AQ_RC_ESRCH";
sys/dev/ice/ice_strings.c
832
str = "CTX desc invalid IPSec fields";
sys/dev/ice/ice_strings.c
835
str = "Quanta invalid # of SSO packets";
sys/dev/ice/ice_strings.c
838
str = "Quanta bytes exceeds pkt_len*64";
sys/dev/ice/ice_strings.c
841
str = "Quanta exceeds max_cmds_in_sq";
sys/dev/ice/ice_strings.c
844
str = "incoherent last_lso_quanta";
sys/dev/ice/ice_strings.c
847
str = "incoherent TSO TLEN";
sys/dev/ice/ice_strings.c
850
str = "Quanta: too many descriptors";
sys/dev/ice/ice_strings.c
853
str = "Quanta: # of packets mismatch";
sys/dev/ice/ice_strings.c
859
if (str)
sys/dev/ice/ice_strings.c
86
str = "AQ_RC_EINTR";
sys/dev/ice/ice_strings.c
860
snprintf(buf.str, ICE_STR_BUF_LEN, "%s", str);
sys/dev/ice/ice_strings.c
862
snprintf(buf.str, ICE_STR_BUF_LEN, "Unknown Tx TCLAN event %u", event);
sys/dev/ice/ice_strings.c
877
struct ice_str_buf buf = { .str = "" };
sys/dev/ice/ice_strings.c
878
const char *str = NULL;
sys/dev/ice/ice_strings.c
882
str = "PCI_DUMMY_COMP";
sys/dev/ice/ice_strings.c
885
str = "PCI_UR_COMP";
sys/dev/ice/ice_strings.c
889
str = "RCV_SH_BE_LSO";
sys/dev/ice/ice_strings.c
89
str = "AQ_RC_EIO";
sys/dev/ice/ice_strings.c
892
str = "Q_FL_MNG_EPY_CH";
sys/dev/ice/ice_strings.c
895
str = "Q_EPY_MNG_FL_CH";
sys/dev/ice/ice_strings.c
898
str = "LSO_NUMDESCS_ZERO";
sys/dev/ice/ice_strings.c
901
str = "LSO_LENGTH_ZERO";
sys/dev/ice/ice_strings.c
904
str = "LSO_MSS_BELOW_MIN";
sys/dev/ice/ice_strings.c
907
str = "LSO_MSS_ABOVE_MAX";
sys/dev/ice/ice_strings.c
910
str = "LSO_HDR_SIZE_ZERO";
sys/dev/ice/ice_strings.c
913
str = "RCV_CNT_BE_LSO";
sys/dev/ice/ice_strings.c
916
str = "SKIP_ONE_QT_ONLY";
sys/dev/ice/ice_strings.c
919
str = "LSO_PKTCNT_ZERO";
sys/dev/ice/ice_strings.c
92
str = "AQ_RC_ENXIO";
sys/dev/ice/ice_strings.c
922
str = "SSO_LENGTH_ZERO";
sys/dev/ice/ice_strings.c
925
str = "SSO_LENGTH_EXCEED";
sys/dev/ice/ice_strings.c
928
str = "SSO_PKTCNT_ZERO";
sys/dev/ice/ice_strings.c
931
str = "SSO_PKTCNT_EXCEED";
sys/dev/ice/ice_strings.c
934
str = "SSO_NUMDESCS_ZERO";
sys/dev/ice/ice_strings.c
937
str = "SSO_NUMDESCS_EXCEED";
sys/dev/ice/ice_strings.c
940
str = "TAIL_GT_RING_LENGTH";
sys/dev/ice/ice_strings.c
943
str = "RESERVED_DBL_TYPE";
sys/dev/ice/ice_strings.c
946
str = "ILLEGAL_HEAD_DROP_DBL";
sys/dev/ice/ice_strings.c
949
str = "LSO_OVER_COMMS_Q";
sys/dev/ice/ice_strings.c
95
str = "AQ_RC_E2BIG";
sys/dev/ice/ice_strings.c
952
str = "ILLEGAL_VF_QNUM";
sys/dev/ice/ice_strings.c
955
str = "QTAIL_GT_RING_LENGTH";
sys/dev/ice/ice_strings.c
961
if (str)
sys/dev/ice/ice_strings.c
962
snprintf(buf.str, ICE_STR_BUF_LEN, "%s", str);
sys/dev/ice/ice_strings.c
964
snprintf(buf.str, ICE_STR_BUF_LEN, "Unknown Tx PQM event %u", event);
sys/dev/ice/ice_strings.c
979
struct ice_str_buf buf = { .str = "" };
sys/dev/ice/ice_strings.c
98
str = "AQ_RC_EAGAIN";
sys/dev/ice/ice_strings.c
980
const char *str = NULL;
sys/dev/ice/ice_strings.c
984
str = "Descriptor fetch failed";
sys/dev/ice/ice_strings.c
990
if (str)
sys/dev/ice/ice_strings.c
991
snprintf(buf.str, ICE_STR_BUF_LEN, "%s", str);
sys/dev/ice/ice_strings.c
993
snprintf(buf.str, ICE_STR_BUF_LEN, "Unknown Rx event %u", event);
sys/dev/ichiic/ig4_acpi.c
87
char *str;
sys/dev/ichiic/ig4_acpi.c
93
error = ACPI_ID_PROBE(device_get_parent(dev), dev, ig4iic_ids, &str);
sys/dev/ichiic/ig4_acpi.c
96
if (strcmp(str, "APMC0D0F") == 0) {
sys/dev/iicbus/controller/qcom/geni_iic_acpi.c
78
char *str;
sys/dev/iicbus/controller/qcom/geni_iic_acpi.c
84
error = ACPI_ID_PROBE(device_get_parent(dev), dev, geniiic_ids, &str);
sys/dev/intel/pchtherm.c
145
#define FLAG_PRINT(dev, str, val) device_printf \
sys/dev/intel/pchtherm.c
146
(dev, str " %s %sable\n", \
sys/dev/intpm/intpm.c
243
char *str;
sys/dev/intpm/intpm.c
297
str = "SMI";
sys/dev/intpm/intpm.c
300
str = "IRQ 9";
sys/dev/intpm/intpm.c
303
str = "PCI IRQ";
sys/dev/intpm/intpm.c
306
str = "BOGUS";
sys/dev/intpm/intpm.c
309
device_printf(dev, "intr %s %s ", str,
sys/dev/iommu/busdma_iommu.c
74
char str[128], *env;
sys/dev/iommu/busdma_iommu.c
92
snprintf(str, sizeof(str), "hw.busdma.pci%d.%d.%d.%d",
sys/dev/iommu/busdma_iommu.c
94
env = kern_getenv(str);
sys/dev/irdma/fbsd_kcompat.h
184
void irdma_get_dev_fw_str(struct ib_device *dev, char *str, size_t str_len);
sys/dev/irdma/irdma_kcompat.c
69
char *str,
sys/dev/irdma/irdma_kcompat.c
74
snprintf(str, str_len, "%u.%u",
sys/dev/isp/isp_freebsd.c
2465
const char *str;
sys/dev/isp/isp_freebsd.c
2468
str = "XPT_IMMEDIATE_NOTIFY";
sys/dev/isp/isp_freebsd.c
2470
str = "XPT_ACCEPT_TARGET_IO";
sys/dev/isp/isp_freebsd.c
2473
__func__, str);
sys/dev/ixgbe/ixgbe_common.h
161
u8 build, u8 ver, u16 len, const char *str);
sys/dev/ixgbe/ixgbe_fw_logging.c
168
char str[IXGBE_STR_BUF_LEN];
sys/dev/ixgbe/ixgbe_fw_logging.c
174
struct ixgbe_str_buf buf = { .str = "" };
sys/dev/ixgbe/ixgbe_fw_logging.c
175
const char *str = NULL;
sys/dev/ixgbe/ixgbe_fw_logging.c
179
str = "none";
sys/dev/ixgbe/ixgbe_fw_logging.c
182
str = "error";
sys/dev/ixgbe/ixgbe_fw_logging.c
185
str = "warning";
sys/dev/ixgbe/ixgbe_fw_logging.c
188
str = "normal";
sys/dev/ixgbe/ixgbe_fw_logging.c
191
str = "verbose";
sys/dev/ixgbe/ixgbe_fw_logging.c
197
if (str)
sys/dev/ixgbe/ixgbe_fw_logging.c
198
snprintf(buf.str, IXGBE_STR_BUF_LEN, "%s", str);
sys/dev/ixgbe/ixgbe_fw_logging.c
200
snprintf(buf.str, IXGBE_STR_BUF_LEN, "%u", log_level);
sys/dev/ixgbe/ixgbe_fw_logging.c
205
#define ixgbe_log_sev_str(log_level) _ixgbe_log_sev_str(log_level).str
sys/dev/ixgbe/ixgbe_x550.h
69
u8 build, u8 ver, u16 len, const char *str);
sys/dev/kbd/kbd.c
1106
bcmp(oldkey->str, newkey->keydef, oldkey->len) != 0)
sys/dev/kbd/kbd.c
1123
return (kbd->kb_fkeytab[fkey].str);
sys/dev/kbd/kbd.c
980
bcopy(kbd->kb_fkeytab[fkeyp->keynum].str, fkeyp->keydef,
sys/dev/kbd/kbd.c
996
bcopy(fkeyp->keydef, kbd->kb_fkeytab[fkeyp->keynum].str,
sys/dev/led/led.c
101
sc->ptr = sc->str;
sys/dev/led/led.c
103
sc->str = NULL;
sys/dev/led/led.c
37
char *str;
sys/dev/led/led.c
82
sc->ptr = sc->str;
sys/dev/led/led.c
96
sc->str = sbuf_data(*sb);
sys/dev/liquidio/base/lio_console.c
188
lio_bootmem_named_get_name(struct octeon_device *oct, uint64_t addr, char *str,
sys/dev/liquidio/base/lio_console.c
193
lio_pci_read_core_mem(oct, addr, (uint8_t *) str, len);
sys/dev/liquidio/base/lio_console.c
194
str[len] = 0;
sys/dev/mfi/mfireg.h
1045
char str[96];
sys/dev/mfi/mfireg.h
1055
char str[64];
sys/dev/mlx4/mlx4_core/mlx4_mcg.c
902
static void mlx4_err_rule(struct mlx4_dev *dev, char *str,
sys/dev/mlx4/mlx4_core/mlx4_mcg.c
910
mlx4_err(dev, "%s", str);
sys/dev/mlx4/mlx4_ib/mlx4_ib_main.c
2405
static void get_fw_ver_str(struct ib_device *device, char *str,
sys/dev/mlx4/mlx4_ib/mlx4_ib_main.c
2410
snprintf(str, str_len, "%d.%d.%d",
sys/dev/mlx5/mlx5_ib/mlx5_ib_main.c
3111
static void get_dev_fw_str(struct ib_device *ibdev, char *str,
sys/dev/mlx5/mlx5_ib/mlx5_ib_main.c
3116
snprintf(str, str_len, "%d.%d.%04d", fw_rev_maj(dev->mdev),
sys/dev/mpi3mr/mpi3mr.c
2753
char str[32];
sys/dev/mpi3mr/mpi3mr.c
2920
snprintf(str, 32, "Dev REMHS commands lock[%d]", i);
sys/dev/mpi3mr/mpi3mr.c
2921
mtx_init(&sc->dev_rmhs_cmds[i].completion.lock, str, NULL, MTX_DEF);
sys/dev/mpr/mpr_sas.c
310
char str[224];
sys/dev/mpr/mpr_sas.c
319
sbuf_new(&sb, str, sizeof(str), 0);
sys/dev/mps/mps_sas.c
301
char str[224];
sys/dev/mps/mps_sas.c
310
sbuf_new(&sb, str, sizeof(str), 0);
sys/dev/mpt/mpt_raid.c
1742
const char *str;
sys/dev/mpt/mpt_raid.c
1748
str = mpt_vol_mwce_strs[mpt->raid_mwce_setting];
sys/dev/mpt/mpt_raid.c
1749
error = SYSCTL_OUT(req, str, strlen(str) + 1);
sys/dev/mrsas/mrsas.h
2937
char str[96];
sys/dev/mrsas/mrsas.h
2947
char str[64];
sys/dev/mthca/mthca_provider.c
1125
static void get_dev_fw_str(struct ib_device *device, char *str,
sys/dev/mthca/mthca_provider.c
1130
snprintf(str, str_len, "%d.%d.%d",
sys/dev/nvmf/controller/ctl_frontend_nvmf.c
700
const char *str;
sys/dev/nvmf/controller/ctl_frontend_nvmf.c
703
str = dnvlist_get_string(nvl, name, NULL);
sys/dev/nvmf/controller/ctl_frontend_nvmf.c
704
if (str == NULL) {
sys/dev/nvmf/controller/ctl_frontend_nvmf.c
708
if (*str == '\0')
sys/dev/nvmf/controller/ctl_frontend_nvmf.c
710
*value = strtoul(str, &cp, 0);
sys/dev/ocs_fc/ocs_ioctl.c
1075
const char *str = NULL;
sys/dev/ocs_fc/ocs_ioctl.c
1085
if (0 == pci_get_vpd_ident(ocs->dev, &str)) {
sys/dev/ocs_fc/ocs_ioctl.c
1086
snprintf(ocs->modeldesc, sizeof(ocs->modeldesc), "%s", str);
sys/dev/ocs_fc/ocs_ioctl.c
1094
if (0 == pci_get_vpd_readonly(ocs->dev, "SN", &str)) {
sys/dev/ocs_fc/ocs_ioctl.c
1095
snprintf(ocs->serialnum, sizeof(ocs->serialnum), "%s", str);
sys/dev/ppbus/ppbconf.c
178
search_token(char *str, int slen, char *token)
sys/dev/ppbus/ppbconf.c
186
slen = strlen(str);
sys/dev/ppbus/ppbconf.c
191
return (str);
sys/dev/ppbus/ppbconf.c
194
if (strncmp(str + i, token, tlen) == 0)
sys/dev/ppbus/ppbconf.c
195
return (&str[i]);
sys/dev/ppbus/ppbconf.c
212
char str[PPB_PnP_STRING_SIZE+1];
sys/dev/ppbus/ppbconf.c
216
if ((error = ppb_1284_read_id(bus, PPB_NIBBLE, str,
sys/dev/ppbus/ppbconf.c
223
printf("%c(0x%x) ", str[i], str[i]);
sys/dev/ppbus/ppbconf.c
229
str[i] = (str[i] == ';') ? '\0' : str[i];
sys/dev/ppbus/ppbconf.c
231
if ((token = search_token(str, len, "MFG")) != NULL ||
sys/dev/ppbus/ppbconf.c
232
(token = search_token(str, len, "MANUFACTURER")) != NULL)
sys/dev/ppbus/ppbconf.c
238
if ((token = search_token(str, len, "MDL")) != NULL ||
sys/dev/ppbus/ppbconf.c
239
(token = search_token(str, len, "MODEL")) != NULL)
sys/dev/ppbus/ppbconf.c
245
if ((token = search_token(str, len, "VER")) != NULL)
sys/dev/ppbus/ppbconf.c
249
if ((token = search_token(str, len, "REV")) != NULL)
sys/dev/ppbus/ppbconf.c
255
if ((token = search_token(str, len, "CLS")) != NULL) {
sys/dev/ppbus/ppbconf.c
260
if ((token = search_token(str, len, "CMD")) != NULL ||
sys/dev/ppbus/ppbconf.c
261
(token = search_token(str, len, "COMMAND")) != NULL)
sys/dev/ppc/ppc.c
1530
u_char ctr, ecr, str;
sys/dev/ppc/ppc.c
1546
str = r_str(ppc);
sys/dev/ppc/ppc.c
1551
printf("![%x/%x/%x]", ctr, ecr, str);
sys/dev/ppc/ppc.c
1562
if ((str & nFAULT) && (ppc->ppc_mode & PPB_ECP)) {
sys/dev/qat/include/adf_cfg_device.h
41
#define ADF_CFG_FW_STRING_TO_ID(str, acc, id) \
sys/dev/qat/include/adf_cfg_device.h
44
typeof(str) str_; \
sys/dev/qat/include/adf_cfg_device.h
45
memcpy(str_, (str), sizeof(str_)); \
sys/dev/qat/qat_common/qat_uclo.c
226
qat_uclo_parse_num(char *str, unsigned int *num)
sys/dev/qat/qat_common/qat_uclo.c
232
strncpy(buf, str, 15);
sys/dev/qat/qat_common/qat_uclo.c
256
char *str;
sys/dev/qat/qat_common/qat_uclo.c
266
str = qat_uclo_get_string(&obj_handle->str_table, init_mem->sym_name);
sys/dev/qat/qat_common/qat_uclo.c
267
if (!str) {
sys/dev/qat/qat_common/qat_uclo.c
271
if (qat_uclo_parse_num(str, ae)) {
sys/dev/qlnx/qlnxe/bcm_osal.h
398
#define OFFSETOF(str, field) offsetof(str, field)
sys/dev/qlnx/qlnxe/ecore_dbg_fw_funcs.c
1990
const char *str)
sys/dev/qlnx/qlnxe/ecore_dbg_fw_funcs.c
1993
OSAL_STRCPY(dump_buf, str);
sys/dev/qlnx/qlnxe/ecore_dbg_fw_funcs.c
1995
return (u32)OSAL_STRLEN(str) + 1;
sys/dev/qlnx/qlnxe/ecore_dev.c
1227
u8 *str, osal_size_t str_len)
sys/dev/qlnx/qlnxe/ecore_dev.c
1231
OSAL_SNPRINTF(str, str_len, "Ethertype 0x%04x",
sys/dev/qlnx/qlnxe/ecore_dev.c
1235
OSAL_SNPRINTF(str, str_len, "TCP src port 0x%04x",
sys/dev/qlnx/qlnxe/ecore_dev.c
1239
OSAL_SNPRINTF(str, str_len, "UDP src port 0x%04x",
sys/dev/qlnx/qlnxe/ecore_dev.c
1243
OSAL_SNPRINTF(str, str_len, "TCP dst port 0x%04x", dest_port);
sys/dev/qlnx/qlnxe/ecore_dev.c
1246
OSAL_SNPRINTF(str, str_len, "UDP dst port 0x%04x", dest_port);
sys/dev/qlnx/qlnxe/ecore_dev.c
1249
OSAL_SNPRINTF(str, str_len, "TCP src/dst ports 0x%04x/0x%04x",
sys/dev/qlnx/qlnxe/ecore_dev.c
1253
OSAL_SNPRINTF(str, str_len, "UDP src/dst ports 0x%04x/0x%04x",
sys/dev/qlnx/qlnxe/ecore_dev.c
1306
u8 filter_idx, abs_ppfid, str[32], type_bitmap;
sys/dev/qlnx/qlnxe/ecore_dev.c
1319
dest_port, str, sizeof(str));
sys/dev/qlnx/qlnxe/ecore_dev.c
1354
str, ppfid, abs_ppfid, filter_idx, ref_cnt);
sys/dev/qlnx/qlnxe/ecore_dev.c
1361
str, ppfid);
sys/dev/qlnx/qlnxe/ecore_dev.c
1427
u8 filter_idx, abs_ppfid, str[32];
sys/dev/qlnx/qlnxe/ecore_dev.c
1440
dest_port, str, sizeof(str));
sys/dev/qlnx/qlnxe/ecore_dev.c
1467
str, ppfid, abs_ppfid, filter_idx, ref_cnt);
sys/dev/qlnx/qlnxe/ecore_dev.c
1474
str, ppfid);
sys/dev/qlnx/qlnxr/qlnxr_verbs.c
5706
char *str)
sys/dev/qlnx/qlnxr/qlnxr_verbs.c
5733
QL_DPRINT12(ha, "event=[%d] %s\n", event.event, str);
sys/dev/qlnx/qlnxr/qlnxr_verbs.c
5916
char *str)
sys/dev/qlnx/qlnxr/qlnxr_verbs.c
5928
context, params->event, str, ibqp->event_handler);
sys/dev/qlxgb/qla_dbg.h
40
extern void qla_dump_buf8(qla_host_t *ha, char *str, void *dbuf,
sys/dev/qlxgb/qla_dbg.h
42
extern void qla_dump_buf16(qla_host_t *ha, char *str, void *dbuf,
sys/dev/qlxgb/qla_dbg.h
44
extern void qla_dump_buf32(qla_host_t *ha, char *str, void *dbuf,
sys/dev/qlxgb/qla_inline.h
203
qla_lock(qla_host_t *ha, const char *str)
sys/dev/qlxgb/qla_inline.h
209
ha->qla_lock = str;
sys/dev/qlxgb/qla_inline.h
220
qla_unlock(qla_host_t *ha, const char *str)
sys/dev/qlxgb/qla_inline.h
224
ha->qla_unlock = str;
sys/dev/qlxgb/qla_os.h
147
#define QLA_LOCK(ha, str) qla_lock(ha, str);
sys/dev/qlxgb/qla_os.h
148
#define QLA_UNLOCK(ha, str) qla_unlock(ha, str)
sys/dev/qlxgbe/ql_dbg.h
38
extern void ql_dump_buf8(qla_host_t *ha, const char *str, void *dbuf,
sys/dev/qlxgbe/ql_dbg.h
40
extern void ql_dump_buf16(qla_host_t *ha, const char *str, void *dbuf,
sys/dev/qlxgbe/ql_dbg.h
42
extern void ql_dump_buf32(qla_host_t *ha, const char *str, void *dbuf,
sys/dev/qlxgbe/ql_inline.h
159
qla_lock(qla_host_t *ha, const char *str, uint32_t timeout_ms,
sys/dev/qlxgbe/ql_inline.h
174
ha->qla_lock = str;
sys/dev/qlxgbe/ql_inline.h
200
qla_unlock(qla_host_t *ha, const char *str)
sys/dev/qlxgbe/ql_inline.h
204
ha->qla_unlock = str;
sys/dev/qlxgbe/ql_os.h
157
#define QLA_LOCK(ha, str, to_ms, no_sleep) qla_lock(ha, str, to_ms, no_sleep)
sys/dev/qlxgbe/ql_os.h
158
#define QLA_UNLOCK(ha, str) qla_unlock(ha, str)
sys/dev/qlxge/qls_dbg.h
40
extern void qls_dump_buf8(qla_host_t *ha, const char *str, void *dbuf,
sys/dev/qlxge/qls_dbg.h
42
extern void qls_dump_buf16(qla_host_t *ha, const char *str, void *dbuf,
sys/dev/qlxge/qls_dbg.h
44
extern void qls_dump_buf32(qla_host_t *ha, const char *str, void *dbuf,
sys/dev/qlxge/qls_inline.h
105
qls_unlock(qla_host_t *ha, const char *str)
sys/dev/qlxge/qls_inline.h
109
ha->qla_unlock = str;
sys/dev/qlxge/qls_inline.h
81
qls_lock(qla_host_t *ha, const char *str, uint32_t no_delay)
sys/dev/qlxge/qls_inline.h
89
ha->qla_lock = str;
sys/dev/qlxge/qls_os.h
149
#define QLA_LOCK(ha, str, no_delay) qls_lock(ha, str, no_delay)
sys/dev/qlxge/qls_os.h
150
#define QLA_UNLOCK(ha, str) qls_unlock(ha, str)
sys/dev/rtwn/usb/rtwn_usb_attach.c
363
char str[64];
sys/dev/rtwn/usb/rtwn_usb_attach.c
366
ret = snprintf(str, sizeof(str),
sys/dev/rtwn/usb/rtwn_usb_attach.c
375
uc->uc_rx_buf_size, str);
sys/dev/sound/pci/hda/hdaa.c
1281
hdaa_config_fetch(const char *str, uint32_t *on, uint32_t *off)
sys/dev/sound/pci/hda/hdaa.c
1287
while (str[i] != '\0' &&
sys/dev/sound/pci/hda/hdaa.c
1288
(str[i] == ',' || isspace(str[i]) != 0))
sys/dev/sound/pci/hda/hdaa.c
1290
if (str[i] == '\0')
sys/dev/sound/pci/hda/hdaa.c
1293
while (str[j] != '\0' &&
sys/dev/sound/pci/hda/hdaa.c
1294
!(str[j] == ',' || isspace(str[j]) != 0))
sys/dev/sound/pci/hda/hdaa.c
1297
if (len > 2 && strncmp(str + i, "no", 2) == 0)
sys/dev/sound/pci/hda/hdaa.c
1302
if (strncmp(str + i + inv,
sys/dev/sound/pci/hda/hdaa.c
846
hdaa_widget_pin_patch(uint32_t config, const char *str)
sys/dev/sound/pci/hda/hdaa.c
852
strlcpy(buf, str, sizeof(buf));
sys/dev/sound/pci/hda/hdaa.c
940
hdaa_gpio_patch(uint32_t gpio, const char *str)
sys/dev/sound/pci/hda/hdaa.c
946
strlcpy(buf, str, sizeof(buf));
sys/dev/sound/pci/hda/hdaa.h
269
uint32_t hdaa_widget_pin_patch(uint32_t config, const char *str);
sys/dev/sound/pci/hda/hdaa.h
270
uint32_t hdaa_gpio_patch(uint32_t gpio, const char *str);
sys/dev/sound/pcm/channel.c
1117
const char *str;
sys/dev/sound/pcm/channel.c
1124
str = "play";
sys/dev/sound/pcm/channel.c
1127
str = "virtual_play";
sys/dev/sound/pcm/channel.c
1130
str = "record";
sys/dev/sound/pcm/channel.c
1133
str = "virtual_record";
sys/dev/sound/pcm/channel.c
1140
device_get_unit(c->dev), str, c->unit);
sys/dev/sound/pcm/sound.c
376
pcm_register(device_t dev, char *str)
sys/dev/sound/pcm/sound.c
391
strlcpy(d->status, str, SND_STATUSLEN);
sys/dev/sound/pcm/sound.h
160
int pcm_register(device_t dev, char *str);
sys/dev/sound/sndstat.c
1160
sndstat_register(device_t dev, enum sndstat_type type, char *str)
sys/dev/sound/sndstat.c
1170
ent->str = str;
sys/dev/sound/sndstat.c
1392
sbuf_printf(s, " %s", ent->str);
sys/dev/sound/sndstat.c
295
char *line, *str;
sys/dev/sound/sndstat.c
297
str = sbuf_data(&pf->sbuf);
sys/dev/sound/sndstat.c
298
while ((line = strsep(&str, "\n")) != NULL) {
sys/dev/sound/sndstat.c
74
char *str;
sys/dev/sound/sndstat.h
39
void sndstat_register(device_t dev, enum sndstat_type type, char *str);
sys/dev/syscons/syscons.c
2121
return fkey.str[fkeycp++];
sys/dev/syscons/syscons.c
2132
bcopy(p, fkey.str, fkey.len);
sys/dev/syscons/syscons.c
2134
return fkey.str[0];
sys/dev/syscons/syscons.c
2140
bcopy(p, fkey.str, fkey.len);
sys/dev/syscons/syscons.c
2142
return fkey.str[0];
sys/dev/usb/net/if_umb.c
1396
umb_addstr(void *buf, size_t bufsz, int *offs, void *str, int slen,
sys/dev/usb/net/if_umb.c
1403
if (slen && str) {
sys/dev/usb/net/if_umb.c
1405
memcpy((char *)buf + *offs, str, slen);
sys/dev/usb/net/if_umb.c
2296
const char *op, *str;
sys/dev/usb/net/if_umb.c
2303
str = umb_cid2str(le32toh(c->cid));
sys/dev/usb/net/if_umb.c
2306
str = umb_request2str(req);
sys/dev/usb/net/if_umb.c
2308
DPRINTF("-> %s %s (tid %u)\n", op, str, tid);
sys/dev/usb/quirk/usb_quirk.c
680
usb_strquirk(const char *str, size_t len)
sys/dev/usb/quirk/usb_quirk.c
687
if (strncmp(str, quirk, len) == 0 &&
sys/dev/usb/serial/ufoma.c
1145
char *str;
sys/dev/usb/serial/ufoma.c
1160
for(i = 0 ;umcpc_modetostr_tab[i].str != NULL; i++){
sys/dev/usb/serial/ufoma.c
1162
return umcpc_modetostr_tab[i].str;
sys/dev/usb/serial/ufoma.c
1168
static int ufoma_str_to_mode(char *str)
sys/dev/usb/serial/ufoma.c
1171
for(i = 0 ;umcpc_modetostr_tab[i].str != NULL; i++){
sys/dev/usb/serial/ufoma.c
1172
if(strcmp(str, umcpc_modetostr_tab[i].str)==0){
sys/dev/usb/serial/ulpt.c
712
ieee1284_print_id(char *str)
sys/dev/usb/serial/ulpt.c
716
for (p = str - 1; p; p = strchr(p, ';')) {
sys/dev/virtio/scsi/virtio_scsi.c
2336
char str[192];
sys/dev/virtio/scsi/virtio_scsi.c
2345
sbuf_new(&sb, str, sizeof(str), 0);
sys/dev/xen/console/xen_console.c
141
xen_emergency_print(const char *str, size_t size)
sys/dev/xen/console/xen_console.c
144
HYPERVISOR_console_write(str, size);
sys/dev/xen/debug/debug.c
59
xendebug_drain(void *arg, const char *str, int len)
sys/dev/xen/debug/debug.c
65
xen_emergency_print(str, len);
sys/dev/xen/pcifront/pcifront.c
453
char str[64];
sys/dev/xen/pcifront/pcifront.c
472
len = snprintf(str, sizeof(str), "root-%d", i);
sys/dev/xen/pcifront/pcifront.c
473
if (unlikely(len >= (sizeof(str) - 1))) {
sys/dev/xen/pcifront/pcifront.c
478
err = xenbus_scanf(NULL, pdev->xdev->otherend, str,
sys/fs/nfs/nfs.h
651
const u_char *str;
sys/fs/nfs/nfs_commonsubs.c
2781
nfsrv_mtostr(struct nfsrv_descript *nd, char *str, int siz)
sys/fs/nfs/nfs_commonsubs.c
2797
NFSBCOPY(cp, str, xfer);
sys/fs/nfs/nfs_commonsubs.c
2798
str += xfer;
sys/fs/nfs/nfs_commonsubs.c
2813
*str = '\0';
sys/fs/nfs/nfs_commonsubs.c
3813
nfsv4_strtouid(struct nfsrv_descript *nd, u_char *str, int len, uid_t *uidp)
sys/fs/nfs/nfs_commonsubs.c
3829
str0 = str;
sys/fs/nfs/nfs_commonsubs.c
3870
if (len == 6 && !NFSBCMP(str, "nobody", 6)) {
sys/fs/nfs/nfs_commonsubs.c
3876
hp = NFSUSERNAMEHASH(str, len);
sys/fs/nfs/nfs_commonsubs.c
3880
!NFSBCMP(usrp->lug_name, str, len)) {
sys/fs/nfs/nfs_commonsubs.c
3899
str);
sys/fs/nfs/nfs_commonsubs.c
4039
nfsv4_strtogid(struct nfsrv_descript *nd, u_char *str, int len, gid_t *gidp)
sys/fs/nfs/nfs_commonsubs.c
4055
str0 = str;
sys/fs/nfs/nfs_commonsubs.c
4094
if (len == 7 && !NFSBCMP(str, "nogroup", 7)) {
sys/fs/nfs/nfs_commonsubs.c
4100
hp = NFSGROUPNAMEHASH(str, len);
sys/fs/nfs/nfs_commonsubs.c
4104
!NFSBCMP(usrp->lug_name, str, len)) {
sys/fs/nfs/nfs_commonsubs.c
4123
str);
sys/fs/nfs/nfs_commonsubs.c
4874
u_char *cp = NULL, *cp2 = NULL, *cp3, *str;
sys/fs/nfs/nfs_commonsubs.c
4990
str = cp3;
sys/fs/nfs/nfs_commonsubs.c
5001
NFSBCOPY(str, cp3, stringlen);
sys/fs/nfsclient/nfs_clrpcops.c
8317
char *str, str0[NFSV4_SMALLSTR + 1];
sys/fs/nfsclient/nfs_clrpcops.c
8323
str = NULL;
sys/fs/nfsclient/nfs_clrpcops.c
8337
str = malloc(len + 1, M_TEMP, M_WAITOK);
sys/fs/nfsclient/nfs_clrpcops.c
8339
str = str0;
sys/fs/nfsclient/nfs_clrpcops.c
8340
error = nfsrv_mtostr(nd, str, len);
sys/fs/nfsclient/nfs_clrpcops.c
8343
NFSCL_DEBUG(4, "nfsrv_parseug: str=%s\n", str);
sys/fs/nfsclient/nfs_clrpcops.c
8345
error = nfsv4_strtogid(nd, str, len, gidp);
sys/fs/nfsclient/nfs_clrpcops.c
8347
error = nfsv4_strtouid(nd, str, len, uidp);
sys/fs/nfsclient/nfs_clrpcops.c
8350
free(str, M_TEMP);
sys/fs/nfsserver/nfs_nfsdserv.c
4020
nfsm_strtom(nd, nfsgss_mechlist[KERBV_MECH].str,
sys/fs/nfsserver/nfs_nfsdserv.c
4026
nfsm_strtom(nd, nfsgss_mechlist[KERBV_MECH].str,
sys/fs/nfsserver/nfs_nfsdserv.c
4032
nfsm_strtom(nd, nfsgss_mechlist[KERBV_MECH].str,
sys/fs/nfsserver/nfs_nfsdserv.c
4047
(void) nfsm_strtom(nd, nfsgss_mechlist[KERBV_MECH].str,
sys/fs/nfsserver/nfs_nfsdserv.c
4056
(void) nfsm_strtom(nd, nfsgss_mechlist[KERBV_MECH].str,
sys/fs/nfsserver/nfs_nfsdserv.c
4065
(void) nfsm_strtom(nd, nfsgss_mechlist[KERBV_MECH].str,
sys/fs/nfsserver/nfs_nfsdserv.c
4164
nfsm_strtom(nd, nfsgss_mechlist[KERBV_MECH].str,
sys/fs/nfsserver/nfs_nfsdserv.c
4170
nfsm_strtom(nd, nfsgss_mechlist[KERBV_MECH].str,
sys/fs/nfsserver/nfs_nfsdserv.c
4176
nfsm_strtom(nd, nfsgss_mechlist[KERBV_MECH].str,
sys/fs/nfsserver/nfs_nfsdserv.c
4191
nfsm_strtom(nd, nfsgss_mechlist[KERBV_MECH].str,
sys/fs/nfsserver/nfs_nfsdserv.c
4200
nfsm_strtom(nd, nfsgss_mechlist[KERBV_MECH].str,
sys/fs/nfsserver/nfs_nfsdserv.c
4209
nfsm_strtom(nd, nfsgss_mechlist[KERBV_MECH].str,
sys/fs/tarfs/tarfs.h
249
tarfs_strtofflags(const char *str, char **end);
sys/fs/tarfs/tarfs_subr.c
503
tarfs_strtofflags(const char *str, char **end)
sys/fs/tarfs/tarfs_subr.c
510
for (p = q = str; *q != '\0'; p = q + 1) {
sys/gdb/gdb_packet.c
163
gdb_rx_equal(const char *str)
sys/gdb/gdb_packet.c
167
len = strlen(str);
sys/gdb/gdb_packet.c
168
if (len > gdb_rxsz || strncmp(str, gdb_rxp, len) != 0)
sys/geom/eli/g_eli.h
484
char str[sizeof(md->md_mkeys) * 2 + 1];
sys/geom/eli/g_eli.h
498
bzero(str, sizeof(str));
sys/geom/eli/g_eli.h
500
str[i * 2] = hex[md->md_salt[i] >> 4];
sys/geom/eli/g_eli.h
501
str[i * 2 + 1] = hex[md->md_salt[i] & 0x0f];
sys/geom/eli/g_eli.h
503
printf(" Salt: %s\n", str);
sys/geom/eli/g_eli.h
504
bzero(str, sizeof(str));
sys/geom/eli/g_eli.h
506
str[i * 2] = hex[md->md_mkeys[i] >> 4];
sys/geom/eli/g_eli.h
507
str[i * 2 + 1] = hex[md->md_mkeys[i] & 0x0f];
sys/geom/eli/g_eli.h
509
printf("Master Key: %s\n", str);
sys/geom/eli/g_eli.h
510
bzero(str, sizeof(str));
sys/geom/eli/g_eli.h
512
str[i * 2] = hex[md->md_hash[i] >> 4];
sys/geom/eli/g_eli.h
513
str[i * 2 + 1] = hex[md->md_hash[i] & 0x0f];
sys/geom/eli/g_eli.h
515
printf(" MD5 hash: %s\n", str);
sys/geom/geom.h
291
int g_handleattr_str(struct bio *bp, const char *attribute, const char *str);
sys/geom/geom_subr.c
1116
g_handleattr_str(struct bio *bp, const char *attribute, const char *str)
sys/geom/geom_subr.c
1119
return (g_handleattr(bp, attribute, str, 0));
sys/geom/geom_subr.c
1413
strlcat(str, ",", size); \
sys/geom/geom_subr.c
1414
strlcat(str, (sflag), size); \
sys/geom/geom_subr.c
1420
provider_flags_to_string(struct g_provider *pp, char *str, size_t size)
sys/geom/geom_subr.c
1424
bzero(str, size);
sys/geom/geom_subr.c
1426
strlcpy(str, "NONE", size);
sys/geom/geom_subr.c
1427
return (str);
sys/geom/geom_subr.c
1431
return (str);
sys/geom/geom_subr.c
1435
geom_flags_to_string(struct g_geom *gp, char *str, size_t size)
sys/geom/geom_subr.c
1439
bzero(str, size);
sys/geom/geom_subr.c
1441
strlcpy(str, "NONE", size);
sys/geom/geom_subr.c
1442
return (str);
sys/geom/geom_subr.c
1445
return (str);
sys/geom/label/g_label_gpt.c
52
sbuf_nprintf_utf16(struct sbuf *sb, uint16_t *str, size_t len)
sys/geom/label/g_label_gpt.c
59
while (len > 0 && *str != 0) {
sys/geom/label/g_label_gpt.c
60
ch = (bo == BIG_ENDIAN) ? be16toh(*str) : le16toh(*str);
sys/geom/label/g_label_gpt.c
61
str++, len--;
sys/geom/label/g_label_gpt.c
64
c = (bo == BIG_ENDIAN) ? be16toh(*str)
sys/geom/label/g_label_gpt.c
65
: le16toh(*str);
sys/geom/label/g_label_gpt.c
66
str++, len--;
sys/geom/linux_lvm/g_linux_lvm.c
869
#define SPLIT(key, value, str) \
sys/geom/linux_lvm/g_linux_lvm.c
870
key = strsep(&value, str); \
sys/geom/part/g_part_gpt.c
1387
g_gpt_printf_utf16(struct sbuf *sb, uint16_t *str, size_t len)
sys/geom/part/g_part_gpt.c
1394
while (len > 0 && *str != 0) {
sys/geom/part/g_part_gpt.c
1395
ch = (bo == BIG_ENDIAN) ? be16toh(*str) : le16toh(*str);
sys/geom/part/g_part_gpt.c
1396
str++, len--;
sys/geom/part/g_part_gpt.c
1399
c = (bo == BIG_ENDIAN) ? be16toh(*str)
sys/geom/part/g_part_gpt.c
1400
: le16toh(*str);
sys/geom/part/g_part_gpt.c
1401
str++, len--;
sys/geom/raid/g_raid.c
370
g_raid_volume_str2level(const char *str, int *level, int *qual)
sys/geom/raid/g_raid.c
375
if (strcasecmp(str, "RAID0") == 0)
sys/geom/raid/g_raid.c
377
else if (strcasecmp(str, "RAID1") == 0)
sys/geom/raid/g_raid.c
379
else if (strcasecmp(str, "RAID3-P0") == 0) {
sys/geom/raid/g_raid.c
382
} else if (strcasecmp(str, "RAID3-PN") == 0 ||
sys/geom/raid/g_raid.c
383
strcasecmp(str, "RAID3") == 0) {
sys/geom/raid/g_raid.c
386
} else if (strcasecmp(str, "RAID4-P0") == 0) {
sys/geom/raid/g_raid.c
389
} else if (strcasecmp(str, "RAID4-PN") == 0 ||
sys/geom/raid/g_raid.c
390
strcasecmp(str, "RAID4") == 0) {
sys/geom/raid/g_raid.c
393
} else if (strcasecmp(str, "RAID5-RA") == 0) {
sys/geom/raid/g_raid.c
396
} else if (strcasecmp(str, "RAID5-RS") == 0) {
sys/geom/raid/g_raid.c
399
} else if (strcasecmp(str, "RAID5") == 0 ||
sys/geom/raid/g_raid.c
400
strcasecmp(str, "RAID5-LA") == 0) {
sys/geom/raid/g_raid.c
403
} else if (strcasecmp(str, "RAID5-LS") == 0) {
sys/geom/raid/g_raid.c
406
} else if (strcasecmp(str, "RAID6-RA") == 0) {
sys/geom/raid/g_raid.c
409
} else if (strcasecmp(str, "RAID6-RS") == 0) {
sys/geom/raid/g_raid.c
412
} else if (strcasecmp(str, "RAID6") == 0 ||
sys/geom/raid/g_raid.c
413
strcasecmp(str, "RAID6-LA") == 0) {
sys/geom/raid/g_raid.c
416
} else if (strcasecmp(str, "RAID6-LS") == 0) {
sys/geom/raid/g_raid.c
419
} else if (strcasecmp(str, "RAIDMDF-RA") == 0) {
sys/geom/raid/g_raid.c
422
} else if (strcasecmp(str, "RAIDMDF-RS") == 0) {
sys/geom/raid/g_raid.c
425
} else if (strcasecmp(str, "RAIDMDF") == 0 ||
sys/geom/raid/g_raid.c
426
strcasecmp(str, "RAIDMDF-LA") == 0) {
sys/geom/raid/g_raid.c
429
} else if (strcasecmp(str, "RAIDMDF-LS") == 0) {
sys/geom/raid/g_raid.c
432
} else if (strcasecmp(str, "RAID10") == 0 ||
sys/geom/raid/g_raid.c
433
strcasecmp(str, "RAID1E") == 0 ||
sys/geom/raid/g_raid.c
434
strcasecmp(str, "RAID1E-A") == 0) {
sys/geom/raid/g_raid.c
437
} else if (strcasecmp(str, "RAID1E-O") == 0) {
sys/geom/raid/g_raid.c
440
} else if (strcasecmp(str, "SINGLE") == 0)
sys/geom/raid/g_raid.c
442
else if (strcasecmp(str, "CONCAT") == 0)
sys/geom/raid/g_raid.c
444
else if (strcasecmp(str, "RAID5E-RA") == 0) {
sys/geom/raid/g_raid.c
447
} else if (strcasecmp(str, "RAID5E-RS") == 0) {
sys/geom/raid/g_raid.c
450
} else if (strcasecmp(str, "RAID5E") == 0 ||
sys/geom/raid/g_raid.c
451
strcasecmp(str, "RAID5E-LA") == 0) {
sys/geom/raid/g_raid.c
454
} else if (strcasecmp(str, "RAID5E-LS") == 0) {
sys/geom/raid/g_raid.c
457
} else if (strcasecmp(str, "RAID5EE-RA") == 0) {
sys/geom/raid/g_raid.c
460
} else if (strcasecmp(str, "RAID5EE-RS") == 0) {
sys/geom/raid/g_raid.c
463
} else if (strcasecmp(str, "RAID5EE") == 0 ||
sys/geom/raid/g_raid.c
464
strcasecmp(str, "RAID5EE-LA") == 0) {
sys/geom/raid/g_raid.c
467
} else if (strcasecmp(str, "RAID5EE-LS") == 0) {
sys/geom/raid/g_raid.c
470
} else if (strcasecmp(str, "RAID5R-RA") == 0) {
sys/geom/raid/g_raid.c
473
} else if (strcasecmp(str, "RAID5R-RS") == 0) {
sys/geom/raid/g_raid.c
476
} else if (strcasecmp(str, "RAID5R") == 0 ||
sys/geom/raid/g_raid.c
477
strcasecmp(str, "RAID5R-LA") == 0) {
sys/geom/raid/g_raid.c
480
} else if (strcasecmp(str, "RAID5R-LS") == 0) {
sys/geom/raid/g_raid.h
384
int g_raid_volume_str2level(const char *str, int *level, int *qual);
sys/i386/i386/bios.c
447
u_char c, *s, *se, *str, *bios_str;
sys/i386/i386/bios.c
463
str = sig->anchor;
sys/i386/i386/bios.c
464
len = strlen(str);
sys/i386/i386/bios.c
473
str, from, to, off,
sys/i386/i386/bios.c
481
str, idx, tot, idx+tot, maxlen-1);
sys/i386/i386/bios.c
488
if (!bcmp(str, s, len)) {
sys/i386/include/xen/hypercall.h
281
int cmd, int count, const char *str)
sys/i386/include/xen/hypercall.h
283
return _hypercall3(int, console_io, cmd, count, str);
sys/kern/imgact_binmisc.c
118
imgact_binmisc_populate_interp(char *str, imgact_binmisc_entry_t *ibe, int flags)
sys/kern/imgact_binmisc.c
130
sp = str; tp = t;
sys/kern/kern_exec.c
1601
exec_args_add_str(struct image_args *args, const char *str,
sys/kern/kern_exec.c
1611
copystr(str, args->endp, args->stringspace, &length) :
sys/kern/kern_exec.c
1612
copyinstr(str, args->endp, args->stringspace, &length);
sys/kern/kern_rctl.c
1538
char *str;
sys/kern/kern_rctl.c
1548
str = malloc(inbuflen + 1, M_RCTL, M_WAITOK);
sys/kern/kern_rctl.c
1549
error = copyinstr(inbufp, str, inbuflen, NULL);
sys/kern/kern_rctl.c
1551
free(str, M_RCTL);
sys/kern/kern_rctl.c
1555
*inputstr = str;
sys/kern/kern_rctl.c
828
str2value(const char *str, int *value, struct dict *table)
sys/kern/kern_rctl.c
836
if (strcasecmp(table[i].d_name, str) == 0) {
sys/kern/kern_rctl.c
846
str2id(const char *str, id_t *value)
sys/kern/kern_rctl.c
850
if (str == NULL)
sys/kern/kern_rctl.c
853
*value = strtoul(str, &end, 10);
sys/kern/kern_rctl.c
854
if ((size_t)(end - str) != strlen(str))
sys/kern/kern_rctl.c
861
str2int64(const char *str, int64_t *value)
sys/kern/kern_rctl.c
865
if (str == NULL)
sys/kern/kern_rctl.c
868
*value = strtoul(str, &end, 10);
sys/kern/kern_rctl.c
869
if ((size_t)(end - str) != strlen(str))
sys/kern/kern_uuid.c
383
validate_uuid(const char *str, size_t size, struct uuid *uuid, int flags)
sys/kern/kern_uuid.c
388
if (size == 0 || *str == '\0') {
sys/kern/kern_uuid.c
409
if (str[8] != '-')
sys/kern/kern_uuid.c
413
n = sscanf(str, "%8x-%4x-%4x-%2x%2x-%2x%2x%2x%2x%2x%2x", c + 0, c + 1,
sys/kern/kern_uuid.c
441
parse_uuid(const char *str, struct uuid *uuid)
sys/kern/kern_uuid.c
444
return (validate_uuid(str, strlen(str), uuid, VUUIDF_PARSEFLAGS));
sys/kern/subr_asan.c
478
kasan_strlen(const char *str)
sys/kern/subr_asan.c
482
s = str;
sys/kern/subr_asan.c
490
return (s - str);
sys/kern/subr_csan.c
339
kcsan_strlen(const char *str)
sys/kern/subr_csan.c
343
s = str;
sys/kern/subr_csan.c
351
return (s - str);
sys/kern/subr_hints.c
341
const char *str;
sys/kern/subr_hints.c
348
NULL, NULL, NULL, NULL, NULL, &str);
sys/kern/subr_hints.c
351
if (*str == '\0')
sys/kern/subr_hints.c
353
val = strtoul(str, &op, 0);
sys/kern/subr_hints.c
365
const char *str;
sys/kern/subr_hints.c
372
NULL, NULL, NULL, NULL, NULL, &str);
sys/kern/subr_hints.c
375
if (*str == '\0')
sys/kern/subr_hints.c
377
val = strtoul(str, &op, 0);
sys/kern/subr_hints.c
389
const char *str;
sys/kern/subr_hints.c
394
NULL, NULL, NULL, NULL, NULL, &str);
sys/kern/subr_hints.c
397
*result = str;
sys/kern/subr_intr.c
1817
char str[INTRNAME_LEN];
sys/kern/subr_intr.c
1834
snprintf(str, INTRNAME_LEN, "cpu%d:%s", i, name);
sys/kern/subr_intr.c
1835
intrcnt_setname(str, index + i);
sys/kern/subr_intr.c
273
char str[INTRNAME_LEN];
sys/kern/subr_intr.c
278
snprintf(str, INTRNAME_LEN, "%s: %s", isrc->isrc_name, name);
sys/kern/subr_intr.c
279
intrcnt_setname(str, isrc->isrc_index);
sys/kern/subr_intr.c
280
snprintf(str, INTRNAME_LEN, "stray %s: %s", isrc->isrc_name,
sys/kern/subr_intr.c
282
intrcnt_setname(str, isrc->isrc_index + 1);
sys/kern/subr_intr.c
284
snprintf(str, INTRNAME_LEN, "%s:", isrc->isrc_name);
sys/kern/subr_intr.c
285
intrcnt_setname(str, isrc->isrc_index);
sys/kern/subr_intr.c
286
snprintf(str, INTRNAME_LEN, "stray %s:", isrc->isrc_name);
sys/kern/subr_intr.c
287
intrcnt_setname(str, isrc->isrc_index + 1);
sys/kern/subr_msan.c
864
kmsan_strlen(const char *str)
sys/kern/subr_msan.c
868
kmsan_check_arg(sizeof(str), "strlen():args");
sys/kern/subr_msan.c
870
s = str;
sys/kern/subr_msan.c
877
kmsan_shadow_check((uintptr_t)str, (size_t)(s - str) + 1, "strlen():arg1");
sys/kern/subr_msan.c
879
return (s - str);
sys/kern/subr_msgbuf.c
184
msgbuf_addstr(struct msgbuf *mbp, int pri, const char *str, int filter_cr)
sys/kern/subr_msgbuf.c
191
len = strlen(str);
sys/kern/subr_msgbuf.c
258
if ((filter_cr != 0) && (str[i] == '\r'))
sys/kern/subr_msgbuf.c
265
if (str[i] == '\n')
sys/kern/subr_msgbuf.c
270
msgbuf_do_addchar(mbp, str[i]);
sys/kern/subr_prf.c
1049
msglogstr(char *str, int pri, int filter_cr)
sys/kern/subr_prf.c
1054
msgbuf_addstr(msgbufp, pri, str, filter_cr);
sys/kern/subr_prf.c
106
char *str;
sys/kern/subr_prf.c
114
static void msglogstr(char *str, int pri, int filter_cr);
sys/kern/subr_prf.c
553
snprintf(char *str, size_t size, const char *format, ...)
sys/kern/subr_prf.c
559
retval = vsnprintf(str, size, format, ap);
sys/kern/subr_prf.c
568
vsnprintf(char *str, size_t size, const char *format, va_list ap)
sys/kern/subr_prf.c
573
info.str = str;
sys/kern/subr_prf.c
577
*info.str++ = '\0';
sys/kern/subr_prf.c
585
vsnrprintf(char *str, size_t size, int radix, const char *format, va_list ap)
sys/kern/subr_prf.c
590
info.str = str;
sys/kern/subr_prf.c
594
*info.str++ = '\0';
sys/kern/subr_prf.c
604
*info->str++ = ch;
sys/kern/subr_sbuf.c
563
sbuf_cat(struct sbuf *s, const char *str)
sys/kern/subr_sbuf.c
567
n = strlen(str);
sys/kern/subr_sbuf.c
568
sbuf_put_bytes(s, str, n);
sys/kern/subr_sbuf.c
619
sbuf_cpy(struct sbuf *s, const char *str)
sys/kern/subr_sbuf.c
626
return (sbuf_cat(s, str));
sys/kern/subr_terminal.c
326
char str[2] = {
sys/kern/subr_terminal.c
331
ttydisc_rint_simple(tp, str, sizeof str);
sys/kern/subr_terminal.c
333
char str[3] = {
sys/kern/subr_terminal.c
339
ttydisc_rint_simple(tp, str, sizeof str);
sys/kern/subr_terminal.c
341
char str[4] = {
sys/kern/subr_terminal.c
348
ttydisc_rint_simple(tp, str, sizeof str);
sys/kern/subr_terminal.c
373
const char *str;
sys/kern/subr_terminal.c
379
str = teken_get_sequence(&tm->tm_emulator, k);
sys/kern/subr_terminal.c
380
if (str == NULL)
sys/kern/subr_terminal.c
384
ttydisc_rint_simple(tp, str, strlen(str));
sys/kern/vfs_subr.c
5758
assert_vi_locked(struct vnode *vp, const char *str)
sys/kern/vfs_subr.c
5761
("%s: vnode interlock is not locked but should be", str));
sys/kern/vfs_subr.c
5765
assert_vi_unlocked(struct vnode *vp, const char *str)
sys/kern/vfs_subr.c
5768
("%s: vnode interlock is locked but should not be", str));
sys/kern/vfs_subr.c
5772
assert_vop_locked(struct vnode *vp, const char *str)
sys/kern/vfs_subr.c
5786
VNASSERT(locked, vp, ("%s: vnode is not locked but should be", str));
sys/kern/vfs_subr.c
5790
assert_vop_unlocked(struct vnode *vp, const char *str)
sys/kern/vfs_subr.c
5803
VNASSERT(!locked, vp, ("%s: vnode is locked but should not be", str));
sys/kern/vfs_subr.c
5807
assert_vop_elocked(struct vnode *vp, const char *str)
sys/kern/vfs_subr.c
5816
("%s: vnode is not exclusive locked but should be", str));
sys/libkern/strlen.c
70
return (p - str + x); \
sys/libkern/strlen.c
74
(strlen)(const char *str)
sys/libkern/strlen.c
90
lp = (const unsigned long *)((uintptr_t)str & ~LONGPTR_MASK);
sys/libkern/strlen.c
96
for (p = str; p < (const char *)lp; p++)
sys/libkern/strlen.c
98
return (p - str);
sys/net/iflib.c
681
static int iflib_legacy_setup(if_ctx_t ctx, driver_filter_t filter, void *filterarg, int *rid, const char *str);
sys/net/netisr.c
313
const char *str;
sys/net/netisr.c
316
str = "unknown";
sys/net/netisr.c
320
str = ndtep->ndte_policy_str;
sys/net/netisr.c
324
snprintf(buffer, buflen, "%s", str);
sys/net/netisr.c
328
netisr_dispatch_policy_from_str(const char *str, u_int *dispatch_policyp)
sys/net/netisr.c
335
if (strcmp(ndtep->ndte_policy_str, str) == 0) {
sys/netgraph/ng_eiface.c
313
char *str;
sys/netgraph/ng_eiface.c
317
str = "IO";
sys/netgraph/ng_eiface.c
320
str = "IOR";
sys/netgraph/ng_eiface.c
323
str = "IOW";
sys/netgraph/ng_eiface.c
326
str = "IORW";
sys/netgraph/ng_eiface.c
329
str = "IO??";
sys/netgraph/ng_eiface.c
333
str,
sys/netgraph/ng_iface.c
484
char *str;
sys/netgraph/ng_iface.c
488
str = "IO";
sys/netgraph/ng_iface.c
491
str = "IOR";
sys/netgraph/ng_iface.c
494
str = "IOW";
sys/netgraph/ng_iface.c
497
str = "IORW";
sys/netgraph/ng_iface.c
500
str = "IO??";
sys/netgraph/ng_iface.c
504
str,
sys/netgraph/ng_parse.c
1096
char *str;
sys/netgraph/ng_parse.c
1101
if ((str = ng_get_string_token(s, off, &toklen, &slen)) != NULL) {
sys/netgraph/ng_parse.c
1107
free(str, M_NETGRAPH_PARSE);
sys/netgraph/ng_parse.c
1111
free(str, M_NETGRAPH_PARSE);
sys/netgraph/ng_parse.c
1114
bcopy(str, buf, slen);
sys/netgraph/ng_parse.c
1116
free(str, M_NETGRAPH_PARSE);
sys/netinet/accf_http.c
142
#define STRSETUP(sptr, slen, str) \
sys/netinet/accf_http.c
144
sptr = str; \
sys/netinet/accf_http.c
145
slen = sizeof(str) - 1; \
sys/netinet/libalias/alias_db.c
135
AliasLog(char *str, const char *format, ...)
sys/netinet/libalias/alias_db.c
140
vsnprintf(str, LIBALIAS_BUF_SIZE, format, ap);
sys/netinet/sctp_auth.c
263
sctp_print_key(sctp_key_t *key, const char *str)
sys/netinet/sctp_auth.c
268
SCTP_PRINTF("%s: [Null key]\n", str);
sys/netinet/sctp_auth.c
271
SCTP_PRINTF("%s: len %u, ", str, key->keylen);
sys/netinet/sctp_auth.c
282
sctp_show_key(sctp_key_t *key, const char *str)
sys/netinet/sctp_auth.c
287
SCTP_PRINTF("%s: [Null key]\n", str);
sys/netinet/sctp_auth.c
290
SCTP_PRINTF("%s: len %u, ", str, key->keylen);
sys/netinet/sctp_auth.h
125
extern void sctp_print_key(sctp_key_t *key, const char *str);
sys/netinet/sctp_auth.h
126
extern void sctp_show_key(sctp_key_t *key, const char *str);
sys/netinet/sctputil.c
7104
sctp_log_trace(uint32_t subsys, const char *str SCTP_UNUSED, uint32_t a, uint32_t b, uint32_t c, uint32_t d, uint32_t e, uint32_t f)
sys/netinet/sctputil.h
57
sctp_log_trace(uint32_t fr, const char *str SCTP_UNUSED, uint32_t a, uint32_t b, uint32_t c, uint32_t d, uint32_t e, uint32_t f);
sys/netlink/netlink_message_writer.h
301
nlattr_add_string(struct nl_writer *nw, uint16_t attrtype, const char *str)
sys/netlink/netlink_message_writer.h
303
return (nlattr_add(nw, attrtype, strlen(str) + 1, str));
sys/netlink/netlink_snl.h
1243
snl_add_msg_attr_string(struct snl_writer *nw, int attrtype, const char *str)
sys/netlink/netlink_snl.h
1245
return (snl_add_msg_attr(nw, attrtype, strlen(str) + 1, str));
sys/netpfil/ipfilter/netinet/ip_scan.c
283
ipf_scan_matchstr(sinfo_t *sp, char *str, int n)
sys/netpfil/ipfilter/netinet/ip_scan.c
290
up = str;
sys/netpfil/ipfilter/netinet/mlfk_ipl.c
250
char *c, *str;
sys/netpfil/ipfilter/netinet/mlfk_ipl.c
262
for (i = 0; (str = ipf_devfiles[i]); i++) {
sys/netpfil/ipfilter/netinet/mlfk_ipl.c
264
for(j = strlen(str); j > 0; j--)
sys/netpfil/ipfilter/netinet/mlfk_ipl.c
265
if (str[j] == '/') {
sys/netpfil/ipfilter/netinet/mlfk_ipl.c
266
c = str + j + 1;
sys/netpfil/ipfilter/netinet/mlfk_ipl.c
270
c = str;
sys/netpfil/ipfilter/netinet/radix_ipf.c
1072
setaddr(addrfamily_t *afp, char *str)
sys/netpfil/ipfilter/netinet/radix_ipf.c
1077
if (strchr(str, ':') == NULL) {
sys/netpfil/ipfilter/netinet/radix_ipf.c
1084
inet_pton(afp->adf_family, str, &afp->adf_addr);
sys/netpfil/ipfilter/netinet/radix_ipf.c
1089
setmask(addrfamily_t *afp, char *str)
sys/netpfil/ipfilter/netinet/radix_ipf.c
1091
if (strchr(str, '.') != NULL) {
sys/netpfil/ipfilter/netinet/radix_ipf.c
1092
afp->adf_addr.in4.s_addr = inet_addr(str);
sys/netpfil/ipfilter/netinet/radix_ipf.c
1095
afp->adf_addr.i6[0] = htonl(0xffffffff << (32 - atoi(str)));
sys/netpfil/ipfilter/netinet/radix_ipf.c
1098
fill6bits(atoi(str), afp->adf_addr.i6);
sys/netpfil/pf/pf_nv.c
155
pf_nvstring(const nvlist_t *nvl, const char *name, char *str, size_t maxlen)
sys/netpfil/pf/pf_nv.c
162
ret = strlcpy(str, nvlist_get_string(nvl, name), maxlen);
sys/nfs/krpc.h
17
struct mbuf *xdr_string_encode(char *str, int len);
sys/nfs/krpc_subr.c
447
xdr_string_encode(char *str, int len)
sys/nfs/krpc_subr.c
464
bcopy(str, xs->data, len);
sys/ofed/drivers/infiniband/core/ib_device.c
308
void ib_get_device_fw_str(struct ib_device *dev, char *str, size_t str_len)
sys/ofed/drivers/infiniband/core/ib_device.c
311
dev->get_dev_fw_str(dev, str, str_len);
sys/ofed/drivers/infiniband/core/ib_device.c
313
str[0] = '\0';
sys/ofed/drivers/infiniband/ulp/sdp/sdp_bcopy.c
102
_sdp_printk(func, line, KERN_WARNING, sk, "%s: %s\n", str, buf);
sys/ofed/drivers/infiniband/ulp/sdp/sdp_bcopy.c
41
void _dump_packet(const char *func, int line, struct socket *sk, char *str,
sys/ofed/drivers/infiniband/ulp/sdp/sdp_bcopy.c
53
str, mb, h->mid, mid2str(h->mid), h->flags,
sys/ofed/drivers/infiniband/ulp/sdp/sdp_dbg.h
112
#define SDP_DUMP_PACKET(sk, str, mb, h) \
sys/ofed/drivers/infiniband/ulp/sdp/sdp_dbg.h
115
dump_packet(sk, str, mb, h); \
sys/ofed/drivers/infiniband/ulp/sdp/sdp_dbg.h
119
#define SDP_DUMP_PACKET(sk, str, mb, h)
sys/ofed/drivers/infiniband/ulp/sdp/sdp_dbg.h
161
void _dump_packet(const char *func, int line, struct socket *sk, char *str,
sys/ofed/drivers/infiniband/ulp/sdp/sdp_dbg.h
163
#define dump_packet(sk, str, mb, h) \
sys/ofed/drivers/infiniband/ulp/sdp/sdp_dbg.h
164
_dump_packet(__func__, __LINE__, sk, str, mb, h)
sys/ofed/drivers/infiniband/ulp/sdp/sdp_proc.c
208
static void sdpstats_seq_hist(struct seq_file *seq, char *str, u32 *h, int n,
sys/ofed/drivers/infiniband/ulp/sdp/sdp_proc.c
214
seq_printf(seq, "%s:\n", str);
sys/ofed/include/rdma/ib_verbs.h
2436
void (*get_dev_fw_str)(struct ib_device *, char *str, size_t str_len);
sys/ofed/include/rdma/ib_verbs.h
2472
void ib_get_device_fw_str(struct ib_device *device, char *str, size_t str_len);
sys/powerpc/ps3/ps3-hvcall.h
41
lv1_repository_string(const char *str)
sys/powerpc/ps3/ps3-hvcall.h
44
strncpy((char *)&ret, str, sizeof(ret));
sys/powerpc/pseries/phyp_console.c
315
memmove(&sc->phyp_inbuf.str[0], &sc->phyp_inbuf.str[4],
sys/powerpc/pseries/phyp_console.c
329
sc->phyp_inbuf.str[j] = sc->phyp_inbuf.str[i];
sys/powerpc/pseries/phyp_console.c
331
if (sc->phyp_inbuf.str[i] == '\r' &&
sys/powerpc/pseries/phyp_console.c
333
sc->phyp_inbuf.str[i + 1] == '\0')
sys/powerpc/pseries/phyp_console.c
342
memcpy(buffer, sc->phyp_inbuf.str, bufsize);
sys/powerpc/pseries/phyp_console.c
345
memmove(&sc->phyp_inbuf.str[0], &sc->phyp_inbuf.str[bufsize],
sys/powerpc/pseries/phyp_console.c
68
char str[16];
sys/powerpc/pseries/phyp_dbg.c
119
c = dbgport.inbuf.str[0];
sys/powerpc/pseries/phyp_dbg.c
131
if (c == '\r' && dbgport.inbuf.str[next] == '\0') {
sys/powerpc/pseries/phyp_dbg.c
137
memmove(&dbgport.inbuf.str[0], &dbgport.inbuf.str[next],
sys/powerpc/pseries/phyp_dbg.c
49
char str[16];
sys/riscv/riscv/elf_machdep.c
146
const char *str;
sys/riscv/riscv/elf_machdep.c
267
return t2s[i].str;
sys/riscv/riscv/identcpu.c
166
#define CHECK_S_EXT(str, flag) \
sys/riscv/riscv/identcpu.c
168
if (strncmp(&isa[idx], (str), \
sys/riscv/riscv/identcpu.c
169
MIN(strlen(str), len - idx)) == 0) { \
sys/riscv/riscv/identcpu.c
171
return (idx + strlen(str)); \
sys/riscv/riscv/identcpu.c
212
#define CHECK_Z_EXT(str, flag) \
sys/riscv/riscv/identcpu.c
214
if (strncmp(&isa[idx], (str), \
sys/riscv/riscv/identcpu.c
215
MIN(strlen(str), len - idx)) == 0) { \
sys/riscv/riscv/identcpu.c
217
return (idx + strlen(str)); \
sys/riscv/riscv/machdep.c
351
#define PRELOAD_PUSH_STRING(str) do { \
sys/riscv/riscv/machdep.c
353
ssize = strlen(str) + 1; \
sys/riscv/riscv/machdep.c
355
strcpy(((char *)fake_preload + fake_size), str); \
sys/security/mac_do/mac_do.c
194
const char *const str)
sys/security/mac_do/mac_do.c
197
flags, str);
sys/security/mac_do/mac_do.c
203
const char *str;
sys/security/mac_do/mac_do.c
209
str = "only 0 allowed";
sys/security/mac_do/mac_do.c
215
str = "only bits in MDF_ID_MASK allowed";
sys/security/mac_do/mac_do.c
219
str = "only a single flag in MDF_SUPP_MASK allowed";
sys/security/mac_do/mac_do.c
229
panic_for_unexpected_flags(type, flags, str);
sys/security/mac_do/mac_do.c
241
const char *str;
sys/security/mac_do/mac_do.c
245
str = "only MDF_ID_MASK | MDF_TYPE_MASK bits allowed";
sys/security/mac_do/mac_do.c
250
str = "MDF_ANY and MDF_CURRENT are exclusive for UIDs "
sys/security/mac_do/mac_do.c
256
str = "MDF_SUPP_ANY and MDF_CURRENT with supplementary "
sys/security/mac_do/mac_do.c
263
str = "Presence of folded primary clause not reflected "
sys/security/mac_do/mac_do.c
269
str = "Presence of folded supplementary clause not reflected "
sys/security/mac_do/mac_do.c
276
panic_for_unexpected_flags(type, flags, str);
sys/sys/_iovec.h
52
#define IOVEC_INIT_CSTR(iovp, str) do { \
sys/sys/_iovec.h
53
void *__str = (str); \
sys/sys/disk.h
117
char str[DISK_IDENT_SIZE];
sys/sys/fnv_hash.h
33
fnv_32_str(const char *str, Fnv32_t hval)
sys/sys/fnv_hash.h
35
const u_int8_t *s = (const u_int8_t *)str;
sys/sys/fnv_hash.h
58
fnv_64_str(const char *str, Fnv64_t hval)
sys/sys/fnv_hash.h
60
const u_int8_t *s = (const u_int8_t *)str;
sys/sys/kbio.h
238
u_char str[MAXFK];
sys/sys/msgbuf.h
71
void msgbuf_addstr(struct msgbuf *mbp, int pri, const char *str, int filter_cr);
sys/sys/vnode.h
557
void assert_vi_locked(struct vnode *vp, const char *str);
sys/sys/vnode.h
558
void assert_vi_unlocked(struct vnode *vp, const char *str);
sys/sys/vnode.h
559
void assert_vop_elocked(struct vnode *vp, const char *str);
sys/sys/vnode.h
560
void assert_vop_locked(struct vnode *vp, const char *str);
sys/sys/vnode.h
561
void assert_vop_unlocked(struct vnode *vp, const char *str);
sys/sys/vnode.h
563
#define ASSERT_VI_LOCKED(vp, str) assert_vi_locked((vp), (str))
sys/sys/vnode.h
564
#define ASSERT_VI_UNLOCKED(vp, str) assert_vi_unlocked((vp), (str))
sys/sys/vnode.h
565
#define ASSERT_VOP_ELOCKED(vp, str) assert_vop_elocked((vp), (str))
sys/sys/vnode.h
566
#define ASSERT_VOP_LOCKED(vp, str) assert_vop_locked((vp), (str))
sys/sys/vnode.h
567
#define ASSERT_VOP_UNLOCKED(vp, str) assert_vop_unlocked((vp), (str))
sys/sys/vnode.h
583
#define ASSERT_VI_LOCKED(vp, str) ((void)0)
sys/sys/vnode.h
584
#define ASSERT_VI_UNLOCKED(vp, str) ((void)0)
sys/sys/vnode.h
585
#define ASSERT_VOP_ELOCKED(vp, str) ((void)0)
sys/sys/vnode.h
586
#define ASSERT_VOP_LOCKED(vp, str) ((void)0)
sys/sys/vnode.h
587
#define ASSERT_VOP_UNLOCKED(vp, str) ((void)0)
sys/teken/demo/teken_demo.c
101
str[0] = 0xe0 | (px->c >> 12);
sys/teken/demo/teken_demo.c
102
str[1] = 0x80 | ((px->c >> 6) & 0x3f);
sys/teken/demo/teken_demo.c
103
str[2] = 0x80 | (px->c & 0x3f);
sys/teken/demo/teken_demo.c
105
str[0] = 0xf0 | (px->c >> 18);
sys/teken/demo/teken_demo.c
106
str[1] = 0x80 | ((px->c >> 12) & 0x3f);
sys/teken/demo/teken_demo.c
107
str[2] = 0x80 | ((px->c >> 6) & 0x3f);
sys/teken/demo/teken_demo.c
108
str[3] = 0x80 | (px->c & 0x3f);
sys/teken/demo/teken_demo.c
123
mvaddstr(p->tp_row, p->tp_col, str);
sys/teken/demo/teken_demo.c
84
char str[5] = { 0 };
sys/teken/demo/teken_demo.c
96
str[0] = px->c;
sys/teken/demo/teken_demo.c
98
str[0] = 0xc0 | (px->c >> 6);
sys/teken/demo/teken_demo.c
99
str[1] = 0x80 | (px->c & 0x3f);
sys/ufs/ffs/ffs_softdep.c
597
#define SOFTDEP_TYPE(type, str, long) \
sys/ufs/ffs/ffs_softdep.c
598
static MALLOC_DEFINE(M_ ## type, #str, long); \
sys/ufs/ffs/ffs_softdep.c
599
SYSCTL_ULONG(_debug_softdep_total, OID_AUTO, str, CTLFLAG_RD, \
sys/ufs/ffs/ffs_softdep.c
601
SYSCTL_ULONG(_debug_softdep_current, OID_AUTO, str, CTLFLAG_RD, \
sys/ufs/ffs/ffs_softdep.c
603
SYSCTL_ULONG(_debug_softdep_highuse, OID_AUTO, str, CTLFLAG_RD, \
sys/ufs/ffs/ffs_softdep.c
605
SYSCTL_ULONG(_debug_softdep_write, OID_AUTO, str, CTLFLAG_RD, \
sys/x86/include/apicvar.h
222
void lapic_dump(const char *str);
sys/x86/x86/local_apic.c
776
lapic_dump(const char* str)
sys/x86/x86/local_apic.c
786
printf("cpu%d %s:\n", PCPU_GET(cpuid), str);
sys/x86/xen/hvm.c
103
void xen_emergency_print(const char *str, size_t size)
sys/x86/xen/hvm.c
105
outsb(XEN_HVM_DEBUGCONS_IOPORT, str, size);
sys/xen/hypervisor.h
25
HYPERVISOR_console_write(const char *str, int count)
sys/xen/hypervisor.h
27
return HYPERVISOR_console_io(CONSOLEIO_write, count, str);
sys/xen/xen-os.h
161
void xen_emergency_print(const char *str, size_t size);
tests/sys/capsicum/ioctls_test.c
51
child_fail_require(const char *file, int line, const char *str)
tests/sys/capsicum/ioctls_test.c
55
snprintf(buf, sizeof(buf), "%s:%d: %s\n", file, line, str);
tests/sys/fs/fusefs/mockfs.hh
231
char str[80];
tests/sys/fs/fusefs/readlink.cc
111
memcpy(out.body.str, dst, sizeof(dst));
tests/sys/fs/fusefs/readlink.cc
131
strlcpy(out.body.str, dst, sizeof(out.body.str));
tests/sys/fs/fusefs/readlink.cc
151
strlcpy(out.body.str, dst, sizeof(out.body.str));
tests/sys/kern/tty/test_sti.c
60
inject(int fileno, const char *str)
tests/sys/kern/tty/test_sti.c
64
for (const char *walker = str; *walker != '\0'; walker++) {
tests/sys/net/bpf/pcap-test.c
55
const char *str;
tests/sys/net/bpf/pcap-test.c
65
if (strcasecmp(s, dirs[i].str) == 0)
tests/sys/net/routing/rtsock_print.h
108
while ((i = *str++) != 0) {
tests/sys/net/routing/rtsock_print.h
116
for (; (i = *str) > 32; str++)
tests/sys/net/routing/rtsock_print.h
119
while (*str > 32)
tests/sys/net/routing/rtsock_print.h
120
str++;
tests/sys/net/routing/rtsock_print.h
97
_printb(char *buf, size_t bufsize, int b, const char *str)
tests/sys/sound/sndstat.c
226
const char *str;
tests/sys/sound/sndstat.c
301
NV(string, NAMEUNIT, str);
tests/sys/sound/sndstat.c
302
if (strcmp(str, UDEV_NAMEUNIT) == 0)
tests/sys/sound/sndstat.c
308
NV(string, NAMEUNIT, str);
tests/sys/sound/sndstat.c
309
ATF_CHECK(strcmp(str, UDEV_NAMEUNIT) == 0);
tests/sys/sound/sndstat.c
314
NV(string, DEVNODE, str);
tests/sys/sound/sndstat.c
315
ATF_CHECK(strcmp(str, UDEV_DEVNODE) == 0);
tests/sys/sound/sndstat.c
317
NV(string, DESC, str);
tests/sys/sound/sndstat.c
318
ATF_CHECK(strcmp(str, UDEV_DESC) == 0);
tests/sys/sound/sndstat.c
320
NV(string, PROVIDER, str);
tests/sys/sound/sndstat.c
321
ATF_CHECK(strcmp(str, UDEV_PROVIDER) == 0);
tools/build/cross-build/include/linux/string.h
55
char *strnstr(const char *str, const char *find, size_t str_len);
tools/build/cross-build/include/linux/string.h
56
void strmode(mode_t mode, char *str);
tools/test/gpioevents/gpioevents.c
165
print_timestamp(const char *str, sbintime_t timestamp)
tools/test/gpioevents/gpioevents.c
173
printf("%s %jd.%09ld ", str, (intmax_t)ts.tv_sec, ts.tv_nsec);
tools/test/gpioevents/gpioevents.c
178
printf("%s %s.%09ld ", str, timebuf, ts.tv_nsec);
tools/tools/kttcp/kttcp.c
76
get_bytes(const char *str)
tools/tools/kttcp/kttcp.c
81
bytes = strtoull(str, &cp, 10);
tools/tools/kttcp/kttcp.c
83
err(1, "%s", str);
tools/tools/kttcp/kttcp.c
87
errx(1, "invalid byte count: %s", str);
tools/tools/kttcp/kttcp.c
95
errx(1, "invalid byte count modifier: %s", str);
tools/tools/net80211/w00t/libw00t/w00t.c
275
int str2wep(char *wep, int *len, char *str)
tools/tools/net80211/w00t/libw00t/w00t.c
279
klen = strlen(str);
tools/tools/net80211/w00t/libw00t/w00t.c
292
if (sscanf(str, "%2x", &x) != 1)
tools/tools/net80211/w00t/libw00t/w00t.c
297
str += 2;
tools/tools/net80211/w00t/libw00t/w00t.c
45
int str2mac(char *mac, char *str)
tools/tools/net80211/w00t/libw00t/w00t.c
50
if (sscanf(str, "%x:%x:%x:%x:%x:%x",
tools/tools/net80211/w00t/libw00t/w00t.c
61
void mac2str(char *str, char* m)
tools/tools/net80211/w00t/libw00t/w00t.c
64
sprintf(str, "%.2X:%.2X:%.2X:%.2X:%.2X:%.2X",
tools/tools/net80211/w00t/libw00t/w00t.h
32
int str2mac(char *mac, char *str);
tools/tools/net80211/w00t/libw00t/w00t.h
33
void mac2str(char *str, char *mac);
tools/tools/net80211/w00t/libw00t/w00t.h
47
int str2wep(char *wep, int *len, char *str);
tools/tools/net80211/wlaninject/wlaninject.c
219
void str2mac(unsigned char *mac, char *str)
tools/tools/net80211/wlaninject/wlaninject.c
224
if (sscanf(str, "%x:%x:%x:%x:%x:%x",
tools/tools/net80211/wlaninject/wlaninject.c
227
printf("can't parse mac %s\n", str);
tools/tools/net80211/wlaninject/wlaninject.c
388
int parse_ie(char *str, unsigned char *ie, int len)
tools/tools/net80211/wlaninject/wlaninject.c
395
ielen = strlen(str)/2;
tools/tools/net80211/wlaninject/wlaninject.c
396
if (ielen < 1 || (strlen(str) % 2)) {
tools/tools/net80211/wlaninject/wlaninject.c
397
printf("Invalid IE %s\n", str);
tools/tools/net80211/wlaninject/wlaninject.c
403
num[digits++] = *str;
tools/tools/net80211/wlaninject/wlaninject.c
404
str++;
tools/tools/vimage/vimage.c
100
char *str;
tools/tools/vimage/vimage.c
271
for (str = argv[i]; *str != '=' && *str != 0; str++) {
tools/tools/vimage/vimage.c
274
if (*str == 0)
tools/tools/vimage/vimage.c
276
*str++ = 0;
tools/tools/vimage/vimage.c
277
if (*str == 0)
tools/tools/vimage/vimage.c
280
jailparam_import(&params[i], str);
tools/tools/vimage/vimage.c
302
if ((str = getenv("SHELL")) == NULL)
tools/tools/vimage/vimage.c
305
execlp(str, invocname, NULL);
usr.bin/ar/acpyacc.y
106
%token <str> FNAME
usr.bin/ar/acpyacc.y
110
char *str;
usr.bin/ar/acpyacc.y
50
char *str;
usr.bin/ar/acpyacc.y
557
arscp_mlist(struct list *list, char *str)
usr.bin/ar/acpyacc.y
564
l->str = str;
usr.bin/ar/acpyacc.y
611
argv[i] = list->str;
usr.bin/ar/acpyacc.y
70
static struct list *arscp_mlist(struct list *list, char *str);
usr.bin/bluetooth/btsockstat/btsockstat.c
549
bdaddrpr(bdaddr_p const ba, char *str, int len)
usr.bin/bluetooth/btsockstat/btsockstat.c
554
if (str == NULL) {
usr.bin/bluetooth/btsockstat/btsockstat.c
555
str = buffer;
usr.bin/bluetooth/btsockstat/btsockstat.c
560
str[0] = '*';
usr.bin/bluetooth/btsockstat/btsockstat.c
561
str[1] = 0;
usr.bin/bluetooth/btsockstat/btsockstat.c
563
return (str);
usr.bin/bluetooth/btsockstat/btsockstat.c
568
strlcpy(str, he->h_name, len);
usr.bin/bluetooth/btsockstat/btsockstat.c
570
return (str);
usr.bin/bluetooth/btsockstat/btsockstat.c
573
bt_ntoa(ba, str);
usr.bin/bluetooth/btsockstat/btsockstat.c
575
return (str);
usr.bin/bluetooth/btsockstat/btsockstat.c
69
static char * bdaddrpr (bdaddr_p const ba, char *str, int len);
usr.bin/brandelf/brandelf.c
206
return (elftypes[elfwalk].str);
usr.bin/brandelf/brandelf.c
216
if (strcasecmp(elfstrtype, elftypes[elfwalk].str) == 0)
usr.bin/brandelf/brandelf.c
228
fprintf(stderr, "%s(%u) ", elftypes[elfwalk].str,
usr.bin/brandelf/brandelf.c
55
const char *str;
usr.bin/chat/chat.c
1344
char *str, *buf0;
usr.bin/chat/chat.c
1394
str = NULL;
usr.bin/chat/chat.c
1422
str = va_arg(args, char *);
usr.bin/chat/chat.c
1427
str = num;
usr.bin/chat/chat.c
1430
str = strerror(errno);
usr.bin/chat/chat.c
1486
str = num + sizeof(num);
usr.bin/chat/chat.c
1487
*--str = 0;
usr.bin/chat/chat.c
1488
while (str > num + neg) {
usr.bin/chat/chat.c
1489
*--str = hexchars[val % base];
usr.bin/chat/chat.c
1496
*--str = '-';
usr.bin/chat/chat.c
1499
*--str = 'x';
usr.bin/chat/chat.c
1500
*--str = '0';
usr.bin/chat/chat.c
1503
len = num + sizeof(num) - 1 - str;
usr.bin/chat/chat.c
1505
len = strlen(str);
usr.bin/chat/chat.c
1520
memcpy(buf, str, len);
usr.bin/chat/chat.c
706
static char *str = blank;
usr.bin/chat/chat.c
714
str = s;
usr.bin/chat/chat.c
719
if (*str)
usr.bin/chat/chat.c
720
result = str;
usr.bin/chat/chat.c
724
while (*str) {
usr.bin/chat/chat.c
727
++str;
usr.bin/chat/chat.c
731
if (*str == '\\') {
usr.bin/chat/chat.c
732
++str;
usr.bin/chat/chat.c
740
if (strchr (term, *str) == (char *) 0) {
usr.bin/chat/chat.c
741
++str;
usr.bin/chat/chat.c
748
*str++ = '\0';
usr.bin/comm/comm.c
181
convert(const char *str)
usr.bin/comm/comm.c
186
if ((n = mbstowcs(NULL, str, 0)) == (size_t)-1)
usr.bin/comm/comm.c
192
if (mbstowcs(buf, str, n + 1) != n)
usr.bin/ctlstat/ctlstat.c
491
cctl_char_phandler(void *user_data, const XML_Char *str, int len)
usr.bin/ctlstat/ctlstat.c
495
sbuf_bcat(targdata->cur_sb[targdata->level], str, len);
usr.bin/ctlstat/ctlstat.c
502
char *str;
usr.bin/ctlstat/ctlstat.c
510
str = strdup(sbuf_data(targdata->cur_sb[targdata->level]));
usr.bin/ctlstat/ctlstat.c
511
if (str == NULL)
usr.bin/ctlstat/ctlstat.c
521
targdata->target = str;
usr.bin/ctlstat/ctlstat.c
540
free(str);
usr.bin/ctlstat/ctlstat.c
542
free(str);
usr.bin/diff/xmalloc.c
62
xstrdup(const char *str)
usr.bin/diff/xmalloc.c
66
if ((cp = strdup(str)) == NULL)
usr.bin/diff3/diff3.c
201
strtoi(char *str, char **end)
usr.bin/diff3/diff3.c
206
num = strtoimax(str, end, 10);
usr.bin/diff3/diff3.c
207
if ((end != NULL && *end == str) ||
usr.bin/dtc/dtb.cc
308
string_table::add_string(const string &str)
usr.bin/dtc/dtb.cc
310
auto old = string_offsets.find(str);
usr.bin/dtc/dtb.cc
315
size += str.size() + 1;
usr.bin/dtc/dtb.cc
316
string_offsets.insert(std::make_pair(str, start));
usr.bin/dtc/dtb.cc
317
strings.push_back(str);
usr.bin/dtc/dtb.hh
362
uint32_t add_string(const std::string &str);
usr.bin/dtc/fdt.cc
2003
c->unit_address = new_address.str();
usr.bin/dtc/input_buffer.cc
318
input_buffer::consume(const char *str)
usr.bin/dtc/input_buffer.cc
320
int len = strlen(str);
usr.bin/dtc/input_buffer.cc
329
if (str[i] != (*this)[i])
usr.bin/dtc/input_buffer.hh
195
bool consume(const char *str);
usr.bin/dtc/input_buffer.hh
414
bool consume(const char *str)
usr.bin/dtc/input_buffer.hh
420
return input_stack.top()->consume(str);
usr.bin/dtc/string.cc
134
std::unique_ptr<char, decltype(free)*> str = {strdup(s.c_str()), free};
usr.bin/dtc/string.cc
135
string dn(fn(str.get()));
usr.bin/elfdump/elfdump.c
464
static void elf_print_symtab(Elf32_Ehdr *e, void *sh, char *str);
usr.bin/elfdump/elfdump.c
865
elf_print_symtab(Elf32_Ehdr *e, void *sh, char *str)
usr.bin/elfdump/elfdump.c
895
fprintf(out, "\tst_name: %s\n", str + name);
usr.bin/env/envopts.c
163
split_spaces(const char *str, int *origind, int *origc, char ***origv)
usr.bin/env/envopts.c
175
while (isspacech(*str))
usr.bin/env/envopts.c
176
str++;
usr.bin/env/envopts.c
177
if (*str == '\0')
usr.bin/env/envopts.c
179
newstr = malloc(strlen(str) + 1);
usr.bin/env/envopts.c
186
newargv = malloc((*origc + (strlen(str) / 2) + 2) * sizeof(char *));
usr.bin/env/envopts.c
194
for (src = str, dest = newstr; *src != '\0'; src++) {
usr.bin/env/envopts.c
362
fprintf(stderr, "#env split -S:\t'%s'\n", str);
usr.bin/env/envopts.h
34
void split_spaces(const char *str, int *origind, int *origc,
usr.bin/factor/factor.c
327
BN_dec2bn(BIGNUM **a, const char *str)
usr.bin/factor/factor.c
332
**a = strtoul(str, &p, 10);
usr.bin/factor/factor.c
337
BN_hex2bn(BIGNUM **a, const char *str)
usr.bin/factor/factor.c
342
**a = strtoul(str, &p, 16);
usr.bin/factor/factor.c
363
is_hex_str(char *str)
usr.bin/factor/factor.c
368
for (p = str; *p; p++) {
usr.bin/fetch/fetch.c
204
stat_seconds(char *str, size_t strsz, long seconds)
usr.bin/fetch/fetch.c
208
snprintf(str, strsz, "%02ldd%02ldh",
usr.bin/fetch/fetch.c
211
snprintf(str, strsz, "%02ldh%02ldm",
usr.bin/fetch/fetch.c
214
snprintf(str, strsz, "%02ldm%02lds",
usr.bin/fetch/fetch.c
217
snprintf(str, strsz, " %02lds",
usr.bin/fetch/fetch.c
225
stat_eta(char *str, size_t strsz, const struct xferstat *xs)
usr.bin/fetch/fetch.c
235
stat_seconds(str, strsz, eta);
usr.bin/fetch/fetch.c
237
stat_seconds(str, strsz, elapsed);
usr.bin/fetch/fetch.c
245
stat_bytes(char *str, size_t strsz, off_t bytes)
usr.bin/fetch/fetch.c
253
snprintf(str, strsz, "%4ju %cB", (uintmax_t)bytes, *prefix);
usr.bin/fetch/fetch.c
260
stat_bps(char *str, size_t strsz, struct xferstat *xs)
usr.bin/fetch/fetch.c
269
snprintf(str, strsz, "?? Bps");
usr.bin/fetch/fetch.c
273
snprintf(str, strsz, "%sps", bytes);
usr.bin/find/function.c
107
char *endchar, *str; /* Pointer to character ending conversion. */
usr.bin/find/function.c
110
str = vp;
usr.bin/find/function.c
111
switch (*str) {
usr.bin/find/function.c
113
++str;
usr.bin/find/function.c
117
++str;
usr.bin/find/function.c
130
value = strtoq(str, &endchar, 10);
usr.bin/find/function.c
131
if (value == 0 && endchar == str)
usr.bin/find/function.c
148
char *str, *unit; /* Pointer to character ending conversion. */
usr.bin/find/function.c
1493
char *str;
usr.bin/find/function.c
1502
str = entry->fts_path;
usr.bin/find/function.c
1503
len = strlen(str);
usr.bin/find/function.c
1509
errcode = regexec(pre, str, 1, &pmatch, REG_STARTEND);
usr.bin/find/function.c
151
str = vp;
usr.bin/find/function.c
152
switch (*str) {
usr.bin/find/function.c
154
++str;
usr.bin/find/function.c
158
++str;
usr.bin/find/function.c
166
value = strtoq(str, &unit, 10);
usr.bin/find/function.c
167
if (value == 0 && unit == str) {
usr.bin/find/function.c
197
str = unit + 1;
usr.bin/find/function.c
198
if (*str == '\0') /* EOS */
usr.bin/find/function.c
200
value = strtoq(str, &unit, 10);
usr.bin/find/function.c
201
if (value == 0 && unit == str) {
usr.bin/find/function.c
526
char *str;
usr.bin/find/function.c
530
str = **argvp;
usr.bin/find/function.c
531
if (str && !(new->flags & F_DEPTH)) {
usr.bin/find/function.c
533
if (*str == '+' || *str == '-')
usr.bin/find/function.c
534
str++;
usr.bin/find/function.c
536
if (*str == '+' || *str == '-')
usr.bin/find/function.c
537
str++;
usr.bin/find/function.c
538
if (isdigit(*str))
usr.bin/find/printf.c
39
escape(const char *str, bool *flush, bool *warned)
usr.bin/find/printf.c
54
for (c = *str++; c; c = *str++) {
usr.bin/find/printf.c
59
c = *str++;
usr.bin/find/printf.c
84
c = *str++) {
usr.bin/find/printf.c
88
str--;
usr.bin/finger/lprint.c
248
demi_print(char *str, int oddfield)
usr.bin/finger/lprint.c
253
lenthis = strlen(str);
usr.bin/finger/lprint.c
273
(void)printf("\t%s\n", str); /* force one tab */
usr.bin/finger/lprint.c
275
(void)printf("\n%s", str); /* go to next line */
usr.bin/finger/lprint.c
279
(void)printf("%s", str);
usr.bin/fortune/fortune/fortune.c
1178
#define STR(str) ((str) == NULL ? "NULL" : (str))
usr.bin/fortune/fortune/fortune.c
1378
char *pch, **ppch, *str, *path;
usr.bin/fortune/fortune/fortune.c
1396
str = strtok(path, ":");
usr.bin/fortune/fortune/fortune.c
1397
while (str) {
usr.bin/fortune/fortune/fortune.c
1398
if (is_dir(str)) {
usr.bin/fortune/fortune/fortune.c
1400
*ppch++ = str;
usr.bin/fortune/fortune/fortune.c
1402
str = strtok(NULL, ":");
usr.bin/fortune/fortune/fortune.c
822
copy(const char *str, unsigned int len)
usr.bin/fortune/fortune/fortune.c
829
*sp++ = *str;
usr.bin/fortune/fortune/fortune.c
830
} while (*str++);
usr.bin/gencat/gencat.c
224
xstrdup(const char *str)
usr.bin/gencat/gencat.c
228
if ((nstr = strdup(str)) == NULL)
usr.bin/gencat/gencat.c
391
char *cptr, *str;
usr.bin/gencat/gencat.c
458
str = getmsg(fd, cptr, quote);
usr.bin/gencat/gencat.c
459
MCAddMsg(msgid, str);
usr.bin/gencat/gencat.c
504
string_size += strlen(msg->str) + 1;
usr.bin/gencat/gencat.c
554
int msg_len = strlen(msg->str) + 1;
usr.bin/gencat/gencat.c
560
memcpy(strings, msg->str, msg_len);
usr.bin/gencat/gencat.c
617
MCAddMsg(int msgId, const char *str)
usr.bin/gencat/gencat.c
638
free(p->str);
usr.bin/gencat/gencat.c
651
p->str = xstrdup(str);
usr.bin/gencat/gencat.c
667
free(msg->str);
usr.bin/gencat/gencat.c
689
free(msg->str);
usr.bin/gencat/gencat.c
89
char *str;
usr.bin/genl/genl.c
202
const char *str;
usr.bin/genl/genl.c
226
op_caps[j].str);
usr.bin/grep/grep.c
354
char *str;
usr.bin/grep/grep.c
365
while ((str = strsep(&eopts, " ")) != NULL)
usr.bin/grep/grep.c
366
if (str[0] != '\0')
usr.bin/grep/grep.c
367
eargv[eargc++] = grep_strdup(str);
usr.bin/grep/grep.h
106
struct str ln; /* Current line */
usr.bin/grep/grep.h
147
char *grep_strdup(const char *str);
usr.bin/grep/grep.h
148
void grep_printline(struct str *line, int sep);
usr.bin/grep/grep.h
152
bool enqueue(struct str *x);
usr.bin/grep/queue.c
45
typedef struct str qentry_t;
usr.bin/grep/queue.c
77
enqueue(struct str *x)
usr.bin/grep/util.c
714
grep_strdup(const char *str)
usr.bin/grep/util.c
718
if ((ret = strdup(str)) == NULL)
usr.bin/grep/util.c
727
void grep_printline(struct str *line, int sep) {
usr.bin/grep/util.c
736
printline_metadata(struct str *line, int sep)
usr.bin/grep/util.c
76
static void printline_metadata(struct str *line, int sep);
usr.bin/hexdump/conv.c
151
str = buf;
usr.bin/hexdump/conv.c
153
(void)printf(pr->fmt, str);
usr.bin/hexdump/conv.c
48
char const *str;
usr.bin/hexdump/conv.c
58
str = "**";
usr.bin/hexdump/conv.c
65
str = "\\0";
usr.bin/hexdump/conv.c
69
str = "\\a";
usr.bin/hexdump/conv.c
72
str = "\\b";
usr.bin/hexdump/conv.c
75
str = "\\f";
usr.bin/hexdump/conv.c
78
str = "\\n";
usr.bin/hexdump/conv.c
81
str = "\\r";
usr.bin/hexdump/conv.c
84
str = "\\t";
usr.bin/hexdump/conv.c
87
str = "\\v";
usr.bin/indent/args.c
333
add_typedefs_from_file(const char *str)
usr.bin/indent/args.c
338
if ((file = fopen(str, "r")) == NULL) {
usr.bin/indent/args.c
339
fprintf(stderr, "indent: cannot open file %s\n", str);
usr.bin/indent/args.c
77
void add_typedefs_from_file(const char *str);
usr.bin/iscsictl/parse.y
407
yyerror(const char *str)
usr.bin/iscsictl/parse.y
411
lineno, yytext, str);
usr.bin/iscsictl/parse.y
68
char *str;
usr.bin/iscsictl/parse.y
71
%token <str> STR
usr.bin/jot/jot.c
379
getprec(const char *str)
usr.bin/jot/jot.c
384
for (p = str; *p; p++)
usr.bin/kdump/kdump.c
1164
const char *str;
usr.bin/kdump/kdump.c
1170
str = sysdecode_sockopt_name(ip[0], ip[1]);
usr.bin/kdump/kdump.c
1171
if (str != NULL) {
usr.bin/kdump/kdump.c
1172
printf(",%s", str);
usr.bin/kdump/kdump.c
1797
const char *str;
usr.bin/kdump/kdump.c
1807
str = sysdecode_sigcode(psig->signo, psig->code);
usr.bin/kdump/kdump.c
1808
if (str != NULL)
usr.bin/kdump/kdump.c
1809
printf("%s", str);
usr.bin/kdump/kdump.c
1892
const char *str;
usr.bin/kdump/kdump.c
1901
str = sysdecode_sockaddr_family(sa->sa_family);
usr.bin/kdump/kdump.c
1902
if (str != NULL)
usr.bin/kdump/kdump.c
1903
printf("%s", str);
usr.bin/kdump/kdump.c
202
const char *str;
usr.bin/kdump/kdump.c
204
str = decoder(value);
usr.bin/kdump/kdump.c
205
if (str != NULL)
usr.bin/kdump/kdump.c
206
printf("%s", str);
usr.bin/kdump/kdump.c
219
const char *str;
usr.bin/kdump/kdump.c
221
str = decoder(value);
usr.bin/kdump/kdump.c
222
if (str != NULL)
usr.bin/kdump/kdump.c
223
printf("%s", str);
usr.bin/kdump/kdump.c
2290
const char *str;
usr.bin/kdump/kdump.c
2292
str = sysdecode_vmresult(ktr->result);
usr.bin/kdump/kdump.c
2293
if (str != NULL)
usr.bin/kdump/kdump.c
2294
printf("%s", str);
usr.bin/kdump/kdump.c
757
const char *str;
usr.bin/kdump/kdump.c
759
str = sysdecode_ioctlname(val);
usr.bin/kdump/kdump.c
760
if (str != NULL)
usr.bin/kdump/kdump.c
761
printf("%s", str);
usr.bin/lex/initparse.c
584
void synerr( const char *str )
usr.bin/lex/initparse.c
587
pinpoint_message( str );
usr.bin/lex/initparse.c
604
void lwarn( const char *str )
usr.bin/lex/initparse.c
606
line_warning( str, linenum );
usr.bin/lex/initparse.c
624
void pinpoint_message( const char *str )
usr.bin/lex/initparse.c
626
line_pinpoint( str, linenum );
usr.bin/lex/initparse.c
632
void line_warning( const char *str, int line )
usr.bin/lex/initparse.c
638
snprintf( warning, sizeof(warning), "warning, %s", str );
usr.bin/lex/initparse.c
646
void line_pinpoint( const char *str, int line )
usr.bin/lex/initparse.c
648
fprintf( stderr, "%s:%d: %s\n", infilename, line, str );
usr.bin/lex/initscan.c
1933
#define PUT_BACK_STRING(str, start) \
usr.bin/lex/initscan.c
1934
{ size_t i = strlen( str ); \
usr.bin/lex/initscan.c
1936
unput((str)[--i]); \
usr.bin/lex/initscan.c
1939
#define CHECK_REJECT(str) \
usr.bin/lex/initscan.c
1940
if ( all_upper( str ) ) \
usr.bin/lex/initscan.c
1943
#define CHECK_YYMORE(str) \
usr.bin/lex/initscan.c
1944
if ( all_lower( str ) ) \
usr.bin/limits/limits.c
265
static rlim_t resource_num(int which, int ch, const char *str);
usr.bin/limits/limits.c
400
char str[40];
usr.bin/limits/limits.c
404
sprintf(str, "%s-cur", resources[rcswhich].cap);
usr.bin/limits/limits.c
406
limits[rcswhich].rlim_cur = resources[rcswhich].func(lc, str, val, val);
usr.bin/limits/limits.c
408
sprintf(str, "%s-max", resources[rcswhich].cap);
usr.bin/limits/limits.c
410
limits[rcswhich].rlim_max = resources[rcswhich].func(lc, str, val, val);
usr.bin/limits/limits.c
578
resource_num(int which, int ch, const char *str)
usr.bin/limits/limits.c
582
if (str != NULL &&
usr.bin/limits/limits.c
583
!(strcasecmp(str, "inf") == 0 ||
usr.bin/limits/limits.c
584
strcasecmp(str, "infinity") == 0 ||
usr.bin/limits/limits.c
585
strcasecmp(str, "unlimit") == 0 ||
usr.bin/limits/limits.c
586
strcasecmp(str, "unlimited") == 0)) {
usr.bin/limits/limits.c
587
const char * s = str;
usr.bin/limits/limits.c
676
warnx("invalid value -%c `%s'", ch, str);
usr.bin/localedef/collate.c
1253
(void) wsncpy(chain[n].str, ce->expand, COLLATE_STR_LEN);
usr.bin/localedef/messages.c
56
char *str;
usr.bin/localedef/messages.c
58
if ((str = to_mb_string(wcs)) == NULL) {
usr.bin/localedef/messages.c
66
msgs.yesstr = str;
usr.bin/localedef/messages.c
69
msgs.nostr = str;
usr.bin/localedef/messages.c
72
msgs.yesexpr = str;
usr.bin/localedef/messages.c
75
msgs.noexpr = str;
usr.bin/localedef/messages.c
78
free(str);
usr.bin/localedef/monetary.c
102
mon.int_frac_digits = str;
usr.bin/localedef/monetary.c
105
mon.frac_digits = str;
usr.bin/localedef/monetary.c
108
mon.p_cs_precedes = str;
usr.bin/localedef/monetary.c
111
mon.p_sep_by_space = str;
usr.bin/localedef/monetary.c
114
mon.n_cs_precedes = str;
usr.bin/localedef/monetary.c
117
mon.n_sep_by_space = str;
usr.bin/localedef/monetary.c
120
mon.p_sign_posn = str;
usr.bin/localedef/monetary.c
123
mon.n_sign_posn = str;
usr.bin/localedef/monetary.c
126
mon.int_p_cs_precedes = str;
usr.bin/localedef/monetary.c
129
mon.int_n_cs_precedes = str;
usr.bin/localedef/monetary.c
132
mon.int_p_sep_by_space = str;
usr.bin/localedef/monetary.c
135
mon.int_n_sep_by_space = str;
usr.bin/localedef/monetary.c
138
mon.int_p_sign_posn = str;
usr.bin/localedef/monetary.c
141
mon.int_n_sign_posn = str;
usr.bin/localedef/monetary.c
144
mon.mon_grouping = str;
usr.bin/localedef/monetary.c
56
char *str;
usr.bin/localedef/monetary.c
58
if ((str = to_mb_string(wcs)) == NULL) {
usr.bin/localedef/monetary.c
65
mon.int_curr_symbol = str;
usr.bin/localedef/monetary.c
68
mon.currency_symbol = str;
usr.bin/localedef/monetary.c
71
mon.mon_decimal_point = str;
usr.bin/localedef/monetary.c
74
mon.mon_thousands_sep = str;
usr.bin/localedef/monetary.c
77
mon.positive_sign = str;
usr.bin/localedef/monetary.c
80
mon.negative_sign = str;
usr.bin/localedef/monetary.c
83
free(str);
usr.bin/localedef/monetary.c
92
char *str = NULL;
usr.bin/localedef/monetary.c
94
(void) asprintf(&str, "%d", n);
usr.bin/localedef/monetary.c
95
if (str == NULL) {
usr.bin/localedef/numeric.c
56
char *str;
usr.bin/localedef/numeric.c
58
if ((str = to_mb_string(wcs)) == NULL) {
usr.bin/localedef/numeric.c
66
numeric.decimal_point = str;
usr.bin/localedef/numeric.c
69
numeric.thousands_sep = str;
usr.bin/localedef/numeric.c
72
free(str);
usr.bin/localedef/time.c
103
ptr[i] = str;
usr.bin/localedef/time.c
113
char *str;
usr.bin/localedef/time.c
115
if ((str = to_mb_string(wcs)) == NULL) {
usr.bin/localedef/time.c
123
add_list(tm.mon, str, 12);
usr.bin/localedef/time.c
126
add_list(tm.month, str, 12);
usr.bin/localedef/time.c
129
add_list(tm.wday, str, 7);
usr.bin/localedef/time.c
132
add_list(tm.weekday, str, 7);
usr.bin/localedef/time.c
136
tm.am = str;
usr.bin/localedef/time.c
138
tm.pm = str;
usr.bin/localedef/time.c
141
free(str);
usr.bin/localedef/time.c
146
free(str);
usr.bin/localedef/time.c
149
free(str);
usr.bin/localedef/time.c
56
char *str;
usr.bin/localedef/time.c
58
if ((str = to_mb_string(wcs)) == NULL) {
usr.bin/localedef/time.c
66
tm.c_fmt = str;
usr.bin/localedef/time.c
69
tm.x_fmt = str;
usr.bin/localedef/time.c
72
tm.X_fmt = str;
usr.bin/localedef/time.c
75
tm.ampm_fmt = str;
usr.bin/localedef/time.c
82
tm.date_fmt = str;
usr.bin/localedef/time.c
88
free(str);
usr.bin/localedef/time.c
91
free(str);
usr.bin/localedef/time.c
98
add_list(const char *ptr[], char *str, int limit)
usr.bin/logins/logins.c
110
xstrdup(const char *str)
usr.bin/logins/logins.c
114
if ((dupstr = strdup(str)) == NULL)
usr.bin/lsvfs/lsvfs.c
26
const char str[32]; /* must be longer than the longest one. */
usr.bin/lsvfs/lsvfs.c
28
{ .flag = VFCF_STATIC, .str = "static", },
usr.bin/lsvfs/lsvfs.c
29
{ .flag = VFCF_NETWORK, .str = "network", },
usr.bin/lsvfs/lsvfs.c
30
{ .flag = VFCF_READONLY, .str = "read-only", },
usr.bin/lsvfs/lsvfs.c
31
{ .flag = VFCF_SYNTHETIC, .str = "synthetic", },
usr.bin/lsvfs/lsvfs.c
32
{ .flag = VFCF_LOOPBACK, .str = "loopback", },
usr.bin/lsvfs/lsvfs.c
33
{ .flag = VFCF_UNICODE, .str = "unicode", },
usr.bin/lsvfs/lsvfs.c
34
{ .flag = VFCF_JAIL, .str = "jail", },
usr.bin/lsvfs/lsvfs.c
35
{ .flag = VFCF_DELEGADMIN, .str = "delegated-administration", },
usr.bin/lsvfs/lsvfs.c
91
strlcat(buf, fl[i].str, sizeof(buf));
usr.bin/mail/cmd2.c
130
char *str = v;
usr.bin/mail/cmd2.c
132
return (save1(str, 1, "save", saveignore));
usr.bin/mail/cmd2.c
141
char *str = v;
usr.bin/mail/cmd2.c
143
return (save1(str, 0, "copy", saveignore));
usr.bin/mail/cmd2.c
151
save1(char str[], int mark, const char *cmd, struct ignoretab *ignore)
usr.bin/mail/cmd2.c
160
if ((file = snarf(str, &f)) == NULL)
usr.bin/mail/cmd2.c
170
if (f && getmsglist(str, msgvec, 0) < 0)
usr.bin/mail/cmd2.c
210
char *str = v;
usr.bin/mail/cmd2.c
212
return (save1(str, 1, "write", ignoreall));
usr.bin/mail/cmd3.c
129
if (strlcpy(str, bangbuf, strsize) >= strsize)
usr.bin/mail/cmd3.c
46
shell(void *str)
usr.bin/mail/cmd3.c
52
if (strlcpy(cmd, str, sizeof(cmd)) >= sizeof(cmd))
usr.bin/mail/cmd3.c
69
dosh(void *str __unused)
usr.bin/mail/cmd3.c
87
bangexp(char *str, size_t strsize)
usr.bin/mail/cmd3.c
94
cp = str;
usr.bin/mail/list.c
646
matchsender(char *str, int mesg)
usr.bin/mail/list.c
651
if (*str == '\0')
usr.bin/mail/list.c
655
return (strcasestr(cp, str) != NULL);
usr.bin/mail/list.c
666
matchto(char *str, int mesg)
usr.bin/mail/list.c
671
str++;
usr.bin/mail/list.c
674
if (*str == '\0')
usr.bin/mail/list.c
681
if (cp != NULL && strcasestr(cp, str) != NULL)
usr.bin/mail/list.c
702
matchfield(char *str, int mesg)
usr.bin/mail/list.c
707
str++;
usr.bin/mail/list.c
708
if (*str == '\0')
usr.bin/mail/list.c
709
str = lastscan;
usr.bin/mail/list.c
711
strlcpy(lastscan, str, sizeof(lastscan));
usr.bin/mail/list.c
718
if (value("searchheaders") && (cp = strchr(str, ':')) != NULL) {
usr.bin/mail/list.c
720
if (strncmp(str, "to:", 3) == 0)
usr.bin/mail/list.c
723
cp2 = hfield(*str != '\0' ? str : "subject", mp);
usr.bin/mail/list.c
725
str = cp;
usr.bin/mail/list.c
733
return (strcasestr(cp, str) != NULL);
usr.bin/mail/names.c
48
nalloc(char str[], int ntype)
usr.bin/mail/names.c
56
np->n_name = savestr(str);
usr.bin/mail/send.c
263
sendmail(void *str)
usr.bin/mail/send.c
267
head.h_to = extract(str, GTO);
usr.bin/mail/send.c
527
fmt(const char *str, struct name *np, FILE *fo, int comma)
usr.bin/mail/send.c
532
col = strlen(str);
usr.bin/mail/send.c
534
fputs(str, fo);
usr.bin/mail/util.c
51
savestr(char *str)
usr.bin/mail/util.c
54
int size = strlen(str) + 1;
usr.bin/mail/util.c
551
charcount(char *str, int c)
usr.bin/mail/util.c
556
for (i = 0, cp = str; *cp != '\0'; cp++)
usr.bin/mail/util.c
57
bcopy(str, new, size);
usr.bin/mail/util.c
65
save2str(char *str, char *old)
usr.bin/mail/util.c
68
int newsize = strlen(str) + 1;
usr.bin/mail/util.c
76
bcopy(str, new + oldsize, newsize);
usr.bin/mail/vars.c
82
vcopy(const char *str)
usr.bin/mail/vars.c
87
if (*str == '\0')
usr.bin/mail/vars.c
89
len = strlen(str) + 1;
usr.bin/mail/vars.c
92
bcopy(str, new, (int)len);
usr.bin/mkcsmapper/yacc.y
430
set_name(char *str)
usr.bin/mkcsmapper/yacc.y
438
map_name = str;
usr.bin/mkstr/mkstr.c
264
hashit(char *str, int really, unsigned fakept)
usr.bin/mkstr/mkstr.c
274
for (cp = str; *cp;)
usr.bin/mkstr/mkstr.c
287
if (strcmp(buf, str) == 0)
usr.bin/mkstr/mkstr.c
298
fwrite(str, sizeof (char), strlen(str) + 1, mesgwrite);
usr.bin/netstat/ipsec.c
112
const char *str;
usr.bin/netstat/ipsec.c
238
for (p = name; p && p->str; p++) {
usr.bin/netstat/ipsec.c
242
if (p && p->str) {
usr.bin/netstat/ipsec.c
243
xo_emit("\t\t{k:name}: {:count/%ju}\n", p->str,
usr.bin/netstat/netisr.c
101
snprintf(buf, buflen, "%s", str);
usr.bin/netstat/netisr.c
82
const char *str;
usr.bin/netstat/netisr.c
86
str = "default";
usr.bin/netstat/netisr.c
89
str = "deferred";
usr.bin/netstat/netisr.c
92
str = "hybrid";
usr.bin/netstat/netisr.c
95
str = "direct";
usr.bin/netstat/netisr.c
98
str = "unknown";
usr.bin/patch/pch.c
245
p4_fetchname(struct file_name *name, char *str)
usr.bin/patch/pch.c
250
while (isspace((unsigned char)*str))
usr.bin/patch/pch.c
251
str++;
usr.bin/patch/pch.c
254
for (t = str, h = NULL; *t != '\0' && !isspace((unsigned char)*t); t++)
usr.bin/patch/pch.c
260
name->path = fetchname(str, &name->exists, strippath);
usr.bin/posixshmcontrol/posixshmcontrol.c
202
shm_decode_mode(mode_t m, char *str)
usr.bin/posixshmcontrol/posixshmcontrol.c
207
str[i++] = (m & S_IRUSR) != 0 ? 'r' : '-';
usr.bin/posixshmcontrol/posixshmcontrol.c
208
str[i++] = (m & S_IWUSR) != 0 ? 'w' : '-';
usr.bin/posixshmcontrol/posixshmcontrol.c
209
str[i++] = (m & S_IXUSR) != 0 ? 'x' : '-';
usr.bin/posixshmcontrol/posixshmcontrol.c
210
str[i++] = (m & S_IRGRP) != 0 ? 'r' : '-';
usr.bin/posixshmcontrol/posixshmcontrol.c
211
str[i++] = (m & S_IWGRP) != 0 ? 'w' : '-';
usr.bin/posixshmcontrol/posixshmcontrol.c
212
str[i++] = (m & S_IXGRP) != 0 ? 'x' : '-';
usr.bin/posixshmcontrol/posixshmcontrol.c
213
str[i++] = (m & S_IROTH) != 0 ? 'r' : '-';
usr.bin/posixshmcontrol/posixshmcontrol.c
214
str[i++] = (m & S_IWOTH) != 0 ? 'w' : '-';
usr.bin/posixshmcontrol/posixshmcontrol.c
215
str[i++] = (m & S_IXOTH) != 0 ? 'x' : '-';
usr.bin/posixshmcontrol/posixshmcontrol.c
216
str[i] = '\0';
usr.bin/posixshmcontrol/posixshmcontrol.c
222
char *buf, *bp, *ep, jailpath[MAXPATHLEN], sizebuf[8], str[10];
usr.bin/posixshmcontrol/posixshmcontrol.c
321
shm_decode_mode(kif->kf_un.kf_file.kf_file_mode, str);
usr.bin/posixshmcontrol/posixshmcontrol.c
322
printf("%s\t", str);
usr.bin/printf/printf.c
434
mknum(char *str, char ch)
usr.bin/printf/printf.c
441
len = strlen(str) + 2;
usr.bin/printf/printf.c
452
memmove(copy, str, len - 3);
usr.bin/proccontrol/proccontrol.c
79
str2pid(const char *str)
usr.bin/proccontrol/proccontrol.c
84
res = strtol(str, &tail, 0);
usr.bin/procstat/procstat.c
258
getcmd(const char *str)
usr.bin/procstat/procstat.c
264
if (str == NULL)
usr.bin/procstat/procstat.c
267
if ((l = strlen(str)) == 0)
usr.bin/procstat/procstat.c
269
s = l > 1 && strcasecmp(str + l - 1, "s") == 0;
usr.bin/procstat/procstat.c
276
cmp = strncasecmp(str, cmd_table[i].command, l -
usr.bin/procstat/procstat.c
280
cmp = strncasecmp(str, cmd_table[i].command, l - 1);
usr.bin/procstat/procstat.c
282
cmp = strcasecmp(str, cmd_table[i].command);
usr.bin/procstat/procstat_files.c
300
const char *str;
usr.bin/procstat/procstat_files.c
364
str = "v";
usr.bin/procstat/procstat_files.c
369
str = "s";
usr.bin/procstat/procstat_files.c
374
str = "p";
usr.bin/procstat/procstat_files.c
379
str = "f";
usr.bin/procstat/procstat_files.c
384
str = "k";
usr.bin/procstat/procstat_files.c
389
str = "m";
usr.bin/procstat/procstat_files.c
394
str = "h";
usr.bin/procstat/procstat_files.c
399
str = "t";
usr.bin/procstat/procstat_files.c
404
str = "e";
usr.bin/procstat/procstat_files.c
409
str = "P";
usr.bin/procstat/procstat_files.c
414
str = "D";
usr.bin/procstat/procstat_files.c
419
str = "E";
usr.bin/procstat/procstat_files.c
424
str = "i";
usr.bin/procstat/procstat_files.c
429
str = "?";
usr.bin/procstat/procstat_files.c
435
str = "?";
usr.bin/procstat/procstat_files.c
439
xo_emit("{d:fd_type/%1s/%s} ", str);
usr.bin/procstat/procstat_files.c
441
str = "-";
usr.bin/procstat/procstat_files.c
447
str = "r";
usr.bin/procstat/procstat_files.c
452
str = "d";
usr.bin/procstat/procstat_files.c
457
str = "b";
usr.bin/procstat/procstat_files.c
462
str = "c";
usr.bin/procstat/procstat_files.c
467
str = "l";
usr.bin/procstat/procstat_files.c
472
str = "s";
usr.bin/procstat/procstat_files.c
477
str = "f";
usr.bin/procstat/procstat_files.c
482
str = "x";
usr.bin/procstat/procstat_files.c
487
str = "?";
usr.bin/procstat/procstat_files.c
493
str = "?";
usr.bin/procstat/procstat_files.c
498
xo_emit("{d:vnode_type/%1s/%s} ", str);
usr.bin/procstat/procstat_kqueue.c
69
#define PK_FLAG_ELEM(fname, str) { .flag = fname, .dispstr = str }
usr.bin/procstat/procstat_threads.c
103
str = "wait";
usr.bin/procstat/procstat_threads.c
107
str = "zomb";
usr.bin/procstat/procstat_threads.c
111
str = "idle";
usr.bin/procstat/procstat_threads.c
115
str = "??";
usr.bin/procstat/procstat_threads.c
118
xo_emit("{:run_state/%-7s/%s} ", str);
usr.bin/procstat/procstat_threads.c
48
const char *str;
usr.bin/procstat/procstat_threads.c
87
str = "run";
usr.bin/procstat/procstat_threads.c
91
str = "stop";
usr.bin/procstat/procstat_threads.c
95
str = "sleep";
usr.bin/procstat/procstat_threads.c
99
str = "lock";
usr.bin/procstat/procstat_vm.c
122
str = "--";
usr.bin/procstat/procstat_vm.c
126
str = "df";
usr.bin/procstat/procstat_vm.c
130
str = "vn";
usr.bin/procstat/procstat_vm.c
134
str = "sw";
usr.bin/procstat/procstat_vm.c
138
str = "dv";
usr.bin/procstat/procstat_vm.c
142
str = "ph";
usr.bin/procstat/procstat_vm.c
146
str = "dd";
usr.bin/procstat/procstat_vm.c
150
str = "sg";
usr.bin/procstat/procstat_vm.c
154
str = "md";
usr.bin/procstat/procstat_vm.c
158
str = "gd";
usr.bin/procstat/procstat_vm.c
163
str = "??";
usr.bin/procstat/procstat_vm.c
167
xo_emit("{d:kve_type/%-2s} ", str);
usr.bin/procstat/procstat_vm.c
50
const char *str, *lstr;
usr.bin/rctl/rctl.c
290
str2int64(const char *str, int64_t *value)
usr.bin/rctl/rctl.c
294
if (str == NULL)
usr.bin/rctl/rctl.c
297
*value = strtoul(str, &end, 10);
usr.bin/rctl/rctl.c
298
if ((size_t)(end - str) != strlen(str))
usr.bin/renice/renice.c
152
getnum(const char *com, const char *str, int *val)
usr.bin/renice/renice.c
158
v = strtol(str, &ep, 10);
usr.bin/renice/renice.c
160
warnx("%s argument %s is out of range.", com, str);
usr.bin/renice/renice.c
163
if (ep == str || *ep != '\0' || errno != 0) {
usr.bin/renice/renice.c
164
warnx("%s argument %s is invalid.", com, str);
usr.bin/rpcgen/rpc_cout.c
698
upcase(const char *str)
usr.bin/rpcgen/rpc_cout.c
702
ptr = (char *)xmalloc(strlen(str)+1);
usr.bin/rpcgen/rpc_cout.c
705
while (*str != '\0')
usr.bin/rpcgen/rpc_cout.c
706
*ptr++ = toupper(*str++);
usr.bin/rpcgen/rpc_parse.c
113
defp->def_name = tok.str;
usr.bin/rpcgen/rpc_parse.c
144
defp->def_name = tok.str;
usr.bin/rpcgen/rpc_parse.c
152
vlist->vers_name = tok.str;
usr.bin/rpcgen/rpc_parse.c
164
plist->proc_name = tok.str;
usr.bin/rpcgen/rpc_parse.c
205
plist->proc_num = tok.str;
usr.bin/rpcgen/rpc_parse.c
217
vlist->vers_num = tok.str;
usr.bin/rpcgen/rpc_parse.c
230
defp->def.pr.prog_num = tok.str;
usr.bin/rpcgen/rpc_parse.c
244
defp->def_name = tok.str;
usr.bin/rpcgen/rpc_parse.c
250
elist->name = tok.str;
usr.bin/rpcgen/rpc_parse.c
255
elist->assignment = tok.str;
usr.bin/rpcgen/rpc_parse.c
271
defp->def_name = tok.str;
usr.bin/rpcgen/rpc_parse.c
274
defp->def.co = tok.str;
usr.bin/rpcgen/rpc_parse.c
287
defp->def_name = tok.str;
usr.bin/rpcgen/rpc_parse.c
299
cases->case_name = tok.str;
usr.bin/rpcgen/rpc_parse.c
310
cases->case_name = tok.str;
usr.bin/rpcgen/rpc_parse.c
425
dec->name = tok.str;
usr.bin/rpcgen/rpc_parse.c
432
dec->array_max = tok.str;
usr.bin/rpcgen/rpc_parse.c
443
dec->array_max = tok.str;
usr.bin/rpcgen/rpc_parse.c
478
strcpy(name, tok.str);
usr.bin/rpcgen/rpc_parse.c
498
dec->name = xstrdup(tok.str);
usr.bin/rpcgen/rpc_parse.c
511
dec->array_max = tok.str;
usr.bin/rpcgen/rpc_parse.c
539
*typep = tok.str;
usr.bin/rpcgen/rpc_parse.c
544
*prefixp = tok.str;
usr.bin/rpcgen/rpc_parse.c
546
*typep = tok.str;
usr.bin/rpcgen/rpc_parse.c
568
*typep = tok.str;
usr.bin/rpcgen/rpc_parse.c
578
*typep = tok.str;
usr.bin/rpcgen/rpc_scan.c
259
findstrconst(&where, &tokp->str);
usr.bin/rpcgen/rpc_scan.c
263
findchrconst(&where, &tokp->str);
usr.bin/rpcgen/rpc_scan.c
278
findconst(&where, &tokp->str);
usr.bin/rpcgen/rpc_scan.c
308
findstrconst(char **str, const char **val)
usr.bin/rpcgen/rpc_scan.c
314
p = *str;
usr.bin/rpcgen/rpc_scan.c
322
size = p - *str + 1;
usr.bin/rpcgen/rpc_scan.c
324
(void) strlcpy(tmp, *str, size);
usr.bin/rpcgen/rpc_scan.c
326
*str = p;
usr.bin/rpcgen/rpc_scan.c
330
findchrconst(char **str, const char **val)
usr.bin/rpcgen/rpc_scan.c
336
p = *str;
usr.bin/rpcgen/rpc_scan.c
344
size = p - *str + 1;
usr.bin/rpcgen/rpc_scan.c
349
(void) strlcpy(tmp, *str, size);
usr.bin/rpcgen/rpc_scan.c
351
*str = p;
usr.bin/rpcgen/rpc_scan.c
355
findconst(char **str, const char **val)
usr.bin/rpcgen/rpc_scan.c
361
p = *str;
usr.bin/rpcgen/rpc_scan.c
372
size = p - *str + 1;
usr.bin/rpcgen/rpc_scan.c
374
(void) strlcpy(tmp, *str, size);
usr.bin/rpcgen/rpc_scan.c
376
*str = p;
usr.bin/rpcgen/rpc_scan.c
411
char *str, *tmp;
usr.bin/rpcgen/rpc_scan.c
413
str = *mark;
usr.bin/rpcgen/rpc_scan.c
415
len = strlen(s->str);
usr.bin/rpcgen/rpc_scan.c
416
if (strncmp(str, s->str, len) == 0) {
usr.bin/rpcgen/rpc_scan.c
417
if (!isalnum(str[len]) && str[len] != '_') {
usr.bin/rpcgen/rpc_scan.c
419
tokp->str = s->str;
usr.bin/rpcgen/rpc_scan.c
420
*mark = str + len;
usr.bin/rpcgen/rpc_scan.c
426
for (len = 0; isalnum(str[len]) || str[len] == '_'; len++);
usr.bin/rpcgen/rpc_scan.c
428
(void) strlcpy(tmp, str, len + 1);
usr.bin/rpcgen/rpc_scan.c
429
tokp->str = tmp;
usr.bin/rpcgen/rpc_scan.c
430
*mark = str + len;
usr.bin/rpcgen/rpc_scan.h
117
const char *str;
usr.bin/rpcgen/rpc_util.c
214
locase(const char *str)
usr.bin/rpcgen/rpc_util.c
220
while ( (c = *str++) ) {
usr.bin/rpcgen/rpc_util.c
367
return (sp->str);
usr.bin/rpcgen/rpc_util.c
492
xstrdup(const char *str)
usr.bin/rpcgen/rpc_util.c
496
if ((p = strdup(str)) == NULL) {
usr.bin/rpcgen/rpc_util.h
168
char *locase(const char *str);
usr.bin/sort/bwstring.c
1003
bws_setlen(str, newlen);
usr.bin/sort/bwstring.c
1005
return (str);
usr.bin/sort/bwstring.c
1012
ignore_case(struct bwstring *str)
usr.bin/sort/bwstring.c
1018
s = str->cdata.str;
usr.bin/sort/bwstring.c
1019
end = s + str->cdata.len;
usr.bin/sort/bwstring.c
1028
s = str->wdata.str;
usr.bin/sort/bwstring.c
1029
end = s + str->wdata.len;
usr.bin/sort/bwstring.c
1036
return (str);
usr.bin/sort/bwstring.c
1044
warnx("%s:%zu: disorder: %s", fn, pos + 1, s->cdata.str);
usr.bin/sort/bwstring.c
1046
warnx("%s:%zu: disorder: %ls", fn, pos + 1, s->wdata.str);
usr.bin/sort/bwstring.c
206
fprintf(f, "%s%s%s", prefix, bws->cdata.str, suffix);
usr.bin/sort/bwstring.c
208
fprintf(f, "%s%S%s", prefix, bws->wdata.str, suffix);
usr.bin/sort/bwstring.c
214
return (bws->wdata.str);
usr.bin/sort/bwstring.c
240
bws->cdata.str[newlen] = '\0';
usr.bin/sort/bwstring.c
243
bws->wdata.str[newlen] = L'\0';
usr.bin/sort/bwstring.c
258
ret->cdata.str[sz] = '\0';
usr.bin/sort/bwstring.c
263
ret->wdata.str[sz] = L'\0';
usr.bin/sort/bwstring.c
283
memcpy(ret->cdata.str, s->cdata.str, (s->cdata.len));
usr.bin/sort/bwstring.c
285
memcpy(ret->wdata.str, s->wdata.str,
usr.bin/sort/bwstring.c
296
bwssbdup(const wchar_t *str, size_t len)
usr.bin/sort/bwstring.c
299
if (str == NULL)
usr.bin/sort/bwstring.c
308
ret->cdata.str[i] = (char)str[i];
usr.bin/sort/bwstring.c
310
memcpy(ret->wdata.str, str, SIZEOF_WCHAR_STRING(len));
usr.bin/sort/bwstring.c
320
bwscsbdup(const unsigned char *str, size_t len)
usr.bin/sort/bwstring.c
326
if (str) {
usr.bin/sort/bwstring.c
328
memcpy(ret->cdata.str, str, len);
usr.bin/sort/bwstring.c
336
s = (const char *) str;
usr.bin/sort/bwstring.c
352
ret->wdata.str[chars++] =
usr.bin/sort/bwstring.c
357
n = mbrtowc(ret->wdata.str + (chars++),
usr.bin/sort/bwstring.c
367
ret->wdata.str[ret->wdata.len] = L'\0';
usr.bin/sort/bwstring.c
406
memcpy(dst->cdata.str, src->cdata.str + offset, nums);
usr.bin/sort/bwstring.c
408
dst->cdata.str[nums] = '\0';
usr.bin/sort/bwstring.c
410
memcpy(dst->wdata.str, src->wdata.str + offset,
usr.bin/sort/bwstring.c
413
dst->wdata.str[nums] = L'\0';
usr.bin/sort/bwstring.c
432
bws->cdata.str[len] = '\n';
usr.bin/sort/bwstring.c
434
if (fwrite(bws->cdata.str, len + 1, 1, f) < 1)
usr.bin/sort/bwstring.c
437
bws->cdata.str[len] = '\0';
usr.bin/sort/bwstring.c
438
} else if (fwrite(bws->cdata.str, len + 1, 1, f) < 1)
usr.bin/sort/bwstring.c
450
const wchar_t *s = bws->wdata.str + printed;
usr.bin/sort/bwstring.c
505
s1 = bws1->cdata.str + offset;
usr.bin/sort/bwstring.c
506
s2 = bws2->cdata.str + offset;
usr.bin/sort/bwstring.c
513
s1 = bws1->wdata.str + offset;
usr.bin/sort/bwstring.c
514
s2 = bws2->wdata.str + offset;
usr.bin/sort/bwstring.c
598
s1 = bws1->cdata.str + offset;
usr.bin/sort/bwstring.c
599
s2 = bws2->cdata.str + offset;
usr.bin/sort/bwstring.c
681
s1 = bws1->wdata.str + offset;
usr.bin/sort/bwstring.c
682
s2 = bws2->wdata.str + offset;
usr.bin/sort/bwstring.c
755
s = s0->cdata.str;
usr.bin/sort/bwstring.c
775
s = s0->wdata.str;
usr.bin/sort/bwstring.c
811
s = s0->cdata.str;
usr.bin/sort/bwstring.c
829
s = s0->wdata.str;
usr.bin/sort/bwstring.c
852
ignore_leading_blanks(struct bwstring *str)
usr.bin/sort/bwstring.c
858
src = str->cdata.str;
usr.bin/sort/bwstring.c
860
end = src + str->cdata.len;
usr.bin/sort/bwstring.c
868
newlen = BWSLEN(str) - (src - dst);
usr.bin/sort/bwstring.c
875
bws_setlen(str, newlen);
usr.bin/sort/bwstring.c
880
src = str->wdata.str;
usr.bin/sort/bwstring.c
882
end = src + str->wdata.len;
usr.bin/sort/bwstring.c
889
size_t newlen = BWSLEN(str) - (src - dst);
usr.bin/sort/bwstring.c
896
bws_setlen(str, newlen);
usr.bin/sort/bwstring.c
900
return (str);
usr.bin/sort/bwstring.c
907
ignore_nonprinting(struct bwstring *str)
usr.bin/sort/bwstring.c
909
size_t newlen = BWSLEN(str);
usr.bin/sort/bwstring.c
915
src = str->cdata.str;
usr.bin/sort/bwstring.c
917
end = src + str->cdata.len;
usr.bin/sort/bwstring.c
934
src = str->wdata.str;
usr.bin/sort/bwstring.c
936
end = src + str->wdata.len;
usr.bin/sort/bwstring.c
950
bws_setlen(str, newlen);
usr.bin/sort/bwstring.c
952
return (str);
usr.bin/sort/bwstring.c
960
dictionary_order(struct bwstring *str)
usr.bin/sort/bwstring.c
962
size_t newlen = BWSLEN(str);
usr.bin/sort/bwstring.c
968
src = str->cdata.str;
usr.bin/sort/bwstring.c
970
end = src + str->cdata.len;
usr.bin/sort/bwstring.c
987
src = str->wdata.str;
usr.bin/sort/bwstring.c
989
end = src + str->wdata.len;
usr.bin/sort/bwstring.h
103
return ((bwstring_iterator)bws->wdata.str);
usr.bin/sort/bwstring.h
111
(bwstring_iterator) (bws->cdata.str + bws->cdata.len) :
usr.bin/sort/bwstring.h
112
(bwstring_iterator) (bws->wdata.str + bws->wdata.len));
usr.bin/sort/bwstring.h
138
#define BWS_GET(bws, pos) ((mb_cur_max == 1) ? (bws->cdata.str[(pos)]) : bws->wdata.str[(pos)])
usr.bin/sort/bwstring.h
50
wchar_t str[];
usr.bin/sort/bwstring.h
55
char str[];
usr.bin/sort/bwstring.h
81
struct bwstring *ignore_leading_blanks(struct bwstring *str);
usr.bin/sort/bwstring.h
82
struct bwstring *ignore_nonprinting(struct bwstring *str);
usr.bin/sort/bwstring.h
83
struct bwstring *dictionary_order(struct bwstring *str);
usr.bin/sort/bwstring.h
84
struct bwstring *ignore_case(struct bwstring *str);
usr.bin/sort/bwstring.h
90
struct bwstring *bwssbdup(const wchar_t *str, size_t size);
usr.bin/sort/bwstring.h
91
struct bwstring *bwscsbdup(const unsigned char *str, size_t size);
usr.bin/sort/coll.c
168
if (si->str)
usr.bin/sort/coll.c
169
ret += bws_memsize(si->str);
usr.bin/sort/coll.c
175
if (kv->k != si->str)
usr.bin/sort/coll.c
189
preproc(si->str, &(si->ka));
usr.bin/sort/coll.c
197
sort_list_item_set(struct sort_list_item *si, struct bwstring *str)
usr.bin/sort/coll.c
201
clean_keys_array(si->str, &(si->ka));
usr.bin/sort/coll.c
202
if (si->str) {
usr.bin/sort/coll.c
203
if (si->str == str) {
usr.bin/sort/coll.c
207
bwsfree(si->str);
usr.bin/sort/coll.c
208
si->str = NULL;
usr.bin/sort/coll.c
211
si->str = str;
usr.bin/sort/coll.c
224
clean_keys_array(si->str, &(si->ka));
usr.bin/sort/coll.c
225
if (si->str) {
usr.bin/sort/coll.c
226
bwsfree(si->str);
usr.bin/sort/coll.c
227
si->str = NULL;
usr.bin/sort/coll.c
547
bwsprintf(stdout, (*ss2)->str, ", s2=<", ">");
usr.bin/sort/coll.c
559
ret = top_level_str_coll(str1, ((*ss2)->str));
usr.bin/sort/coll.c
584
bwsprintf(stdout, ((*ss1)->str), "; s1=<", ">");
usr.bin/sort/coll.c
585
bwsprintf(stdout, ((*ss2)->str), ", s2=<", ">");
usr.bin/sort/coll.c
593
ret = top_level_str_coll(((*ss1)->str), ((*ss2)->str));
usr.bin/sort/coll.c
663
return (top_level_str_coll(((*ss1)->str), ((*ss2)->str)));
usr.bin/sort/coll.h
136
struct bwstring *str;
usr.bin/sort/coll.h
167
void sort_list_item_set(struct sort_list_item *si, struct bwstring *str);
usr.bin/sort/file.c
1323
if (sl && sl->count && f_out && sl->list[0]->str) {
usr.bin/sort/file.c
1327
bwsfwrite(sl->list[0]->str, f_out,
usr.bin/sort/file.c
1332
bwsfwrite(sl->list[0]->str, f_out,
usr.bin/sort/file.c
293
sort_list_add(struct sort_list *l, struct bwstring *str)
usr.bin/sort/file.c
296
if (l && str) {
usr.bin/sort/file.c
309
sort_list_item_set(l->list[indx], str);
usr.bin/sort/file.c
364
bwsfwrite(l->list[i]->str, f,
usr.bin/sort/file.c
373
bwsfwrite(item->str, f, sort_opts_vals.zflag);
usr.bin/sort/file.c
922
struct bwstring *str;
usr.bin/sort/file.c
932
if (fh && fh->fr && f_out && fh->si && fh->si->str) {
usr.bin/sort/file.c
934
if ((lp->str == NULL) || (str_list_coll(lp->str, &(fh->si)))) {
usr.bin/sort/file.c
935
bwsfwrite(fh->si->str, f_out, sort_opts_vals.zflag);
usr.bin/sort/file.c
936
if (lp->str)
usr.bin/sort/file.c
937
bwsfree(lp->str);
usr.bin/sort/file.c
938
lp->str = bwsdup(fh->si->str);
usr.bin/sort/file.c
941
bwsfwrite(fh->si->str, f_out, sort_opts_vals.zflag);
usr.bin/sort/file.c
998
if (lp.str)
usr.bin/sort/file.c
999
bwsfree(lp.str);
usr.bin/sort/file.h
121
void sort_list_add(struct sort_list *l, struct bwstring *str);
usr.bin/sort/mem.c
84
sort_strdup(const char *str)
usr.bin/sort/mem.c
88
if ((dup = strdup(str)) == NULL)
usr.bin/stat/stat.c
423
static char *str = NULL;
usr.bin/stat/stat.c
425
if (str != NULL)
usr.bin/stat/stat.c
426
free(str);
usr.bin/stat/stat.c
428
str = fflagstostr(fflags);
usr.bin/stat/stat.c
429
if (str == NULL)
usr.bin/stat/stat.c
431
return (str);
usr.bin/systat/convtbl.c
114
return (tp->str);
usr.bin/systat/convtbl.c
53
const char *str;
usr.bin/systat/icmp.c
104
#define L(row, str) mvwprintw(wnd, row, 10, str)
usr.bin/systat/icmp.c
105
#define R(row, str) mvwprintw(wnd, row, 45, str);
usr.bin/systat/icmp.c
115
#define B(row, str) L(row, str); R(row, str)
usr.bin/systat/icmp6.c
103
#define L(row, str) mvwprintw(wnd, row, 10, str)
usr.bin/systat/icmp6.c
104
#define R(row, str) mvwprintw(wnd, row, 45, str);
usr.bin/systat/icmp6.c
113
#define B(row, str) L(row, str); R(row, str)
usr.bin/systat/iolat.c
123
split_u64(char *str, const char *delim, uint64_t *buckets, int *nbuckets)
usr.bin/systat/iolat.c
129
for (i = 0; (v = strsep(&str, delim)) != NULL && i < n; i++) {
usr.bin/systat/ip.c
113
#define L(row, str) mvwprintw(wnd, row, 10, str)
usr.bin/systat/ip.c
114
#define R(row, str) mvwprintw(wnd, row, 45, str);
usr.bin/systat/ip6.c
107
#define L(row, str) mvwprintw(wnd, row, 10, str)
usr.bin/systat/ip6.c
108
#define R(row, str) mvwprintw(wnd, row, 45, str);
usr.bin/systat/sctp.c
94
#define L(row, str) mvwprintw(wnd, row, 13, str)
usr.bin/systat/sctp.c
95
#define R(row, str) mvwprintw(wnd, row, 51, str);
usr.bin/systat/tcp.c
105
#define L(row, str) mvwprintw(wnd, row, 13, str)
usr.bin/systat/tcp.c
106
#define R(row, str) mvwprintw(wnd, row, 51, str);
usr.bin/systat/zarc.c
89
#define L(str) mvwprintw(wnd, row++, 5, \
usr.bin/systat/zarc.c
90
"%-26.26s: %% | %%", #str)
usr.bin/top/commands.c
131
next_field(char *str)
usr.bin/top/commands.c
133
if ((str = strchr(str, ' ')) == NULL)
usr.bin/top/commands.c
137
*str = '\0';
usr.bin/top/commands.c
138
while (*++str == ' ') /* loop */;
usr.bin/top/commands.c
142
return(*str == '\0' ? NULL : str);
usr.bin/top/commands.c
146
scanint(char *str, int *intp)
usr.bin/top/commands.c
153
if (*str == '\0')
usr.bin/top/commands.c
158
while ((ch = *str++) != '\0')
usr.bin/top/commands.c
276
str_adderr(char *str, int len, int err)
usr.bin/top/commands.c
287
strcat(str, ": ");
usr.bin/top/commands.c
288
strcat(str, msg);
usr.bin/top/commands.c
299
str_addarg(char str[], int len, char arg[], bool first)
usr.bin/top/commands.c
314
strcat(str, ", ");
usr.bin/top/commands.c
316
strcat(str, arg);
usr.bin/top/commands.c
395
kill_procs(char *str)
usr.bin/top/commands.c
405
while (isspace(*str)) str++;
usr.bin/top/commands.c
407
if (str[0] == '-')
usr.bin/top/commands.c
410
if ((nptr = next_field(str)) == NULL)
usr.bin/top/commands.c
415
if (isdigit(str[1]))
usr.bin/top/commands.c
417
scanint(str + 1, &signum);
usr.bin/top/commands.c
425
signum = signame_to_signum(str + 1);
usr.bin/top/commands.c
434
str = nptr;
usr.bin/top/commands.c
44
static int str_adderr(char *str, int len, int err);
usr.bin/top/commands.c
440
if (scanint(str, &procnum) == -1)
usr.bin/top/commands.c
442
ERROR(str, 0);
usr.bin/top/commands.c
45
static int str_addarg(char *str, int len, char *arg, bool first);
usr.bin/top/commands.c
450
ERROR(str, errno);
usr.bin/top/commands.c
453
} while ((str = next_field(str)) != NULL);
usr.bin/top/commands.c
465
renice_procs(char *str)
usr.bin/top/commands.c
474
if ((negate = (*str == '-')) != 0)
usr.bin/top/commands.c
477
str++;
usr.bin/top/commands.c
481
procnum = scanint(str, &prio);
usr.bin/top/commands.c
496
if ((str = next_field(str)) == NULL)
usr.bin/top/commands.c
504
if (scanint(str, &procnum) == -1)
usr.bin/top/commands.c
506
ERROR(str, 0);
usr.bin/top/commands.c
511
ERROR(str, errno);
usr.bin/top/commands.c
513
} while ((str = next_field(str)) != NULL);
usr.bin/top/display.c
1121
summary_format(char *str, int *numbers, const char * const *names)
usr.bin/top/display.c
1129
p = str;
usr.bin/top/display.c
1171
if (p >= str && p[0] == ',' && p[1] == ' ')
usr.bin/top/screen.h
8
#define TCputs(str) tputs(str, 1, putchar)
usr.bin/top/screen.h
9
#define putcap(str) (void)((str) != NULL ? TCputs(str) : 0)
usr.bin/top/utils.c
30
atoiwi(const char *str)
usr.bin/top/utils.c
34
len = strlen(str);
usr.bin/top/utils.c
37
if (strncmp(str, "infinity", len) == 0 ||
usr.bin/top/utils.c
38
strncmp(str, "all", len) == 0 ||
usr.bin/top/utils.c
39
strncmp(str, "maximum", len) == 0)
usr.bin/top/utils.c
43
else if (str[0] == '-')
usr.bin/top/utils.c
49
return((int)strtol(str, NULL, 10));
usr.bin/tr/extern.h
46
char *str; /* user's string */
usr.bin/tr/str.c
137
switch (s->str[1]) {
usr.bin/tr/str.c
139
if ((p = strchr(s->str + 2, ']')) == NULL)
usr.bin/tr/str.c
141
if (*(p - 1) != ':' || p - s->str < 4)
usr.bin/tr/str.c
144
s->str += 2;
usr.bin/tr/str.c
146
s->str = p + 1;
usr.bin/tr/str.c
149
if (s->str[2] == '\0' || (p = strchr(s->str + 3, ']')) == NULL)
usr.bin/tr/str.c
151
if (*(p - 1) != '=' || p - s->str < 4)
usr.bin/tr/str.c
153
s->str += 2;
usr.bin/tr/str.c
158
if ((p = strpbrk(s->str + 2, "*]")) == NULL)
usr.bin/tr/str.c
162
s->str += 1;
usr.bin/tr/str.c
173
if ((s->cclass = wctype(s->str)) == 0)
usr.bin/tr/str.c
174
errx(1, "unknown class %s", s->str);
usr.bin/tr/str.c
177
if (strcmp(s->str, "upper") == 0)
usr.bin/tr/str.c
179
else if (strcmp(s->str, "lower") == 0)
usr.bin/tr/str.c
193
if (*s->str == '\\') {
usr.bin/tr/str.c
195
if (*s->str != '=')
usr.bin/tr/str.c
197
s->str += 2;
usr.bin/tr/str.c
199
clen = mbrtowc(&wc, s->str, MB_LEN_MAX, NULL);
usr.bin/tr/str.c
203
if (s->str[clen] != '=')
usr.bin/tr/str.c
205
s->str += clen + 2;
usr.bin/tr/str.c
245
savestart = s->str;
usr.bin/tr/str.c
246
if (*++s->str == '\\')
usr.bin/tr/str.c
249
clen = mbrtowc(&wc, s->str, MB_LEN_MAX, NULL);
usr.bin/tr/str.c
253
s->str += clen;
usr.bin/tr/str.c
261
s->str = savestart;
usr.bin/tr/str.c
270
s->str = savestart;
usr.bin/tr/str.c
299
if (*s->str == '\\')
usr.bin/tr/str.c
302
clen = mbrtowc(&wc, s->str, MB_LEN_MAX, NULL);
usr.bin/tr/str.c
306
s->str += clen;
usr.bin/tr/str.c
308
if (*s->str != '*')
usr.bin/tr/str.c
311
switch (*++s->str) {
usr.bin/tr/str.c
317
++s->str;
usr.bin/tr/str.c
320
if (isdigit((u_char)*s->str)) {
usr.bin/tr/str.c
321
s->cnt = strtol(s->str, &ep, 0);
usr.bin/tr/str.c
323
s->str = ep + 1;
usr.bin/tr/str.c
346
ch = (u_char)*++s->str;
usr.bin/tr/str.c
351
++s->str;
usr.bin/tr/str.c
361
++s->str;
usr.bin/tr/str.c
69
switch (*s->str) {
usr.bin/tr/str.c
81
clen = mbrtowc(&wch, s->str, MB_LEN_MAX, NULL);
usr.bin/tr/str.c
87
s->str += clen;
usr.bin/tr/str.c
92
if (s->str[0] == '-' && genrange(s, is_octal))
usr.bin/tr/tr.c
190
s1.str = argv[0];
usr.bin/tr/tr.c
194
if ((s2.str = strdup(argv[1])) == NULL)
usr.bin/tr/tr.c
197
s2.str = argv[1];
usr.bin/tr/tr.c
299
s2.str = argv[1];
usr.bin/tr/tr.c
328
s2.str = argv[1];
usr.bin/tr/tr.c
367
setup(char *arg, STR *str, int cflag, int Cflag)
usr.bin/tr/tr.c
374
str->str = arg;
usr.bin/tr/tr.c
375
while (next(str))
usr.bin/tr/tr.c
376
cset_add(cs, str->lastch);
usr.bin/truss/setup.c
676
const char *str;
usr.bin/truss/setup.c
679
str = sysdecode_sigcode(si->si_signo, si->si_code);
usr.bin/truss/setup.c
680
if (str == NULL)
usr.bin/truss/setup.c
683
fprintf(fp, "%s", str);
usr.bin/truss/syscalls.c
642
const char *str;
usr.bin/truss/syscalls.c
695
for (; xlat->str != NULL; xlat++)
usr.bin/truss/syscalls.c
697
return (xlat->str);
usr.bin/truss/syscalls.c
730
static char str[512];
usr.bin/truss/syscalls.c
734
for (; xlat->str != NULL; xlat++) {
usr.bin/truss/syscalls.c
742
len += sprintf(str + len, "%s|", xlat->str);
usr.bin/truss/syscalls.c
752
len += sprintf(str + len, "0x%x", rem);
usr.bin/truss/syscalls.c
753
if (len && str[len - 1] == '|')
usr.bin/truss/syscalls.c
755
str[len] = 0;
usr.bin/truss/syscalls.c
756
return (str);
usr.bin/truss/syscalls.c
762
const char *str;
usr.bin/truss/syscalls.c
764
str = decoder(value);
usr.bin/truss/syscalls.c
765
if (str != NULL)
usr.bin/truss/syscalls.c
766
fputs(str, fp);
usr.bin/uniq/uniq.c
251
convert(const char *str)
usr.bin/uniq/uniq.c
256
if ((n = mbstowcs(NULL, str, 0)) == (size_t)-1)
usr.bin/uniq/uniq.c
262
if (mbstowcs(buf, str, n + 1) != n)
usr.bin/uniq/uniq.c
308
show(FILE *ofp, const char *str)
usr.bin/uniq/uniq.c
311
(void)fprintf(ofp, "%4lld %s", repeats + 1, str);
usr.bin/uniq/uniq.c
313
(void)fprintf(ofp, "%s", str);
usr.bin/uniq/uniq.c
317
skip(wchar_t *str)
usr.bin/uniq/uniq.c
321
for (nfields = 0; *str != L'\0' && nfields++ != numfields; ) {
usr.bin/uniq/uniq.c
322
while (iswblank(*str))
usr.bin/uniq/uniq.c
323
str++;
usr.bin/uniq/uniq.c
324
while (*str != L'\0' && !iswblank(*str))
usr.bin/uniq/uniq.c
325
str++;
usr.bin/uniq/uniq.c
327
for (nchars = numchars; nchars-- && *str != L'\0'; ++str)
usr.bin/uniq/uniq.c
329
return(str);
usr.bin/units/units.c
104
dupstr(const char *str)
usr.bin/units/units.c
108
ret = strdup(str);
usr.bin/units/units.c
85
static char *dupstr(const char *str);
usr.bin/vmstat/vmstat.c
1461
const char *str;
usr.bin/vmstat/vmstat.c
1474
str = (val); \
usr.bin/vmstat/vmstat.c
1513
str = "??";
usr.bin/vmstat/vmstat.c
1516
xo_emit("{:attribute/%-3s} ", str);
usr.bin/vmstat/vmstat.c
1519
str = "--";
usr.bin/vmstat/vmstat.c
1522
str = "df";
usr.bin/vmstat/vmstat.c
1525
str = "vn";
usr.bin/vmstat/vmstat.c
1528
str = "sw";
usr.bin/vmstat/vmstat.c
1531
str = "dv";
usr.bin/vmstat/vmstat.c
1534
str = "ph";
usr.bin/vmstat/vmstat.c
1537
str = "dd";
usr.bin/vmstat/vmstat.c
1540
str = "sg";
usr.bin/vmstat/vmstat.c
1543
str = "md";
usr.bin/vmstat/vmstat.c
1547
str = "??";
usr.bin/vmstat/vmstat.c
1550
xo_emit("{:type/%-2s} ", str);
usr.bin/xargs/strnsubst.c
33
strnsubst(char **str, const char *match, const char *replstr, size_t maxsize)
usr.bin/xargs/strnsubst.c
38
s1 = *str;
usr.bin/xargs/strnsubst.c
81
*str = s2;
usr.bin/xstr/xstr.c
330
hashit(char *str, int new)
usr.bin/xstr/xstr.c
335
hp = hp0 = &bucket[lastchr(str) & 0177];
usr.bin/xstr/xstr.c
338
i = istail(str, hp->hstr);
usr.bin/xstr/xstr.c
345
if (!(hp->hstr = strdup(str)))
usr.bin/xstr/xstr.c
388
found(int new, off_t off, char *str)
usr.bin/xstr/xstr.c
396
prstr(str);
usr.bin/xstr/xstr.c
461
istail(char *str, char *of)
usr.bin/xstr/xstr.c
463
int d = strlen(of) - strlen(str);
usr.bin/xstr/xstr.c
465
if (d < 0 || strcmp(&of[d], str) != 0)
usr.sbin/apmd/apmdparse.y
49
char *str;
usr.sbin/apmd/apmdparse.y
64
%token <str> STRING UNKNOWN
usr.sbin/apmd/apmdparse.y
68
%type <str> string
usr.sbin/apmd/apmdparse.y
69
%type <str> unknown
usr.sbin/bhyve/amd64/fwctl.c
157
ctl_locate(const char *str, int maxlen)
usr.sbin/bhyve/amd64/fwctl.c
163
if (!strncmp(str, cp->c_oid, maxlen))
usr.sbin/bhyve/amd64/pci_lpc.c
100
str = cpy = strdup(opts);
usr.sbin/bhyve/amd64/pci_lpc.c
101
lpcdev = strsep(&str, ",");
usr.sbin/bhyve/amd64/pci_lpc.c
104
romfile = strsep(&str, ",");
usr.sbin/bhyve/amd64/pci_lpc.c
110
varfile = strsep(&str, ",");
usr.sbin/bhyve/amd64/pci_lpc.c
124
pci_parse_legacy_config(find_config_node("lpc"), str);
usr.sbin/bhyve/amd64/pci_lpc.c
131
tpm_type = strsep(&str, ",");
usr.sbin/bhyve/amd64/pci_lpc.c
137
tpm_path = strsep(&str, ",");
usr.sbin/bhyve/amd64/pci_lpc.c
143
pci_parse_legacy_config(find_config_node("tpm"), str);
usr.sbin/bhyve/amd64/pci_lpc.c
153
set_config_value(node_name, str);
usr.sbin/bhyve/amd64/pci_lpc.c
96
char *str, *cpy, *lpcdev, *node_name;
usr.sbin/bhyve/bhyverun.c
140
char *cp, *str, *tofree;
usr.sbin/bhyve/bhyverun.c
150
tofree = str = strdup(opt);
usr.sbin/bhyve/bhyverun.c
151
if (str == NULL)
usr.sbin/bhyve/bhyverun.c
154
while ((cp = strsep(&str, ",")) != NULL) {
usr.sbin/bhyve/bhyverun.c
195
char *cp, *str, *tofree;
usr.sbin/bhyve/bhyverun.c
203
tofree = str = strdup(opt);
usr.sbin/bhyve/bhyverun.c
204
if (str == NULL)
usr.sbin/bhyve/bhyverun.c
207
while ((cp = strsep(&str, ",")) != NULL) {
usr.sbin/bhyve/gdb.c
1660
char *feature, *next_feature, *str, *value;
usr.sbin/bhyve/gdb.c
1663
str = malloc(len + 1);
usr.sbin/bhyve/gdb.c
1664
memcpy(str, data, len);
usr.sbin/bhyve/gdb.c
1665
str[len] = '\0';
usr.sbin/bhyve/gdb.c
1666
next_feature = str;
usr.sbin/bhyve/gdb.c
1709
free(str);
usr.sbin/bhyve/gdb.c
677
append_string(const char *str)
usr.sbin/bhyve/gdb.c
680
append_packet_data(str, strlen(str));
usr.sbin/bhyve/gdb.c
727
append_asciihex(const char *str)
usr.sbin/bhyve/gdb.c
730
while (*str != '\0') {
usr.sbin/bhyve/gdb.c
731
append_byte(*str);
usr.sbin/bhyve/gdb.c
732
str++;
usr.sbin/bhyve/pci_ahci.c
2399
char *next, *next2, *str, *tofree;
usr.sbin/bhyve/pci_ahci.c
2407
tofree = str = strdup(opts);
usr.sbin/bhyve/pci_ahci.c
2408
for (p = 0; p < MAX_PORTS && str != NULL; p++, str = next) {
usr.sbin/bhyve/pci_ahci.c
2410
if (strncmp(str, "hd:", 3) == 0) {
usr.sbin/bhyve/pci_ahci.c
2412
str += 3;
usr.sbin/bhyve/pci_ahci.c
2413
} else if (strncmp(str, "cd:", 3) == 0) {
usr.sbin/bhyve/pci_ahci.c
2415
str += 3;
usr.sbin/bhyve/pci_ahci.c
2420
next = strstr(str, ",hd:");
usr.sbin/bhyve/pci_ahci.c
2421
next2 = strstr(str, ",cd:");
usr.sbin/bhyve/pci_ahci.c
2429
if (str[0] == 0)
usr.sbin/bhyve/pci_ahci.c
2434
p, str);
usr.sbin/bhyve/pci_ahci.c
2438
if (pci_ahci_legacy_config_port(ports_nvl, p, type, str) != 0)
usr.sbin/bhyve/pci_emul.c
275
char *emul, *config, *str, *cp;
usr.sbin/bhyve/pci_emul.c
280
str = strdup(opt);
usr.sbin/bhyve/pci_emul.c
283
if ((cp = strchr(str, ',')) != NULL) {
usr.sbin/bhyve/pci_emul.c
296
if (sscanf(str, "%d:%d:%d", &bnum, &snum, &fnum) != 3) {
usr.sbin/bhyve/pci_emul.c
299
if (sscanf(str, "%d:%d", &snum, &fnum) != 2) {
usr.sbin/bhyve/pci_emul.c
302
if (sscanf(str, "%d", &snum) != 1) {
usr.sbin/bhyve/pci_emul.c
340
free(str);
usr.sbin/bhyve/pci_virtio_console.c
672
char *opt, *str, *tofree;
usr.sbin/bhyve/pci_virtio_console.c
677
tofree = str = strdup(opts);
usr.sbin/bhyve/pci_virtio_console.c
680
while ((opt = strsep(&str, ",")) != NULL) {
usr.sbin/bhyve/pci_xhci.c
2729
char *cp, *opt, *str, *tofree;
usr.sbin/bhyve/pci_xhci.c
2737
tofree = str = strdup(opts);
usr.sbin/bhyve/pci_xhci.c
2738
while ((opt = strsep(&str, ",")) != NULL) {
usr.sbin/bhyve/usb_mouse.c
329
const char *str;
usr.sbin/bhyve/usb_mouse.c
426
str = NULL;
usr.sbin/bhyve/usb_mouse.c
428
str = umouse_desc_strings[value & 0xFF];
usr.sbin/bhyve/usb_mouse.c
440
udata[2] = str[0];
usr.sbin/bhyve/usb_mouse.c
441
udata[3] = str[1];
usr.sbin/bhyve/usb_mouse.c
450
slen = 2 + strlen(str) * 2;
usr.sbin/bhyve/usb_mouse.c
460
udata[i] = *str++;
usr.sbin/bhyveload/bhyveload.c
568
char *str; /* name=value */
usr.sbin/bhyveload/bhyveload.c
575
addenv(const char *str)
usr.sbin/bhyveload/bhyveload.c
582
env->str = strdup(str);
usr.sbin/bhyveload/bhyveload.c
583
if (env->str == NULL)
usr.sbin/bhyveload/bhyveload.c
597
return (env->str);
usr.sbin/binmiscctl/binmiscctl.c
175
getoptstr(char *str, size_t size, const char *argname)
usr.sbin/binmiscctl/binmiscctl.c
179
strlcpy(str, optarg, size);
usr.sbin/bluetooth/l2control/l2cap.c
49
static char str[24];
usr.sbin/bluetooth/l2control/l2cap.c
53
str[0] = '*';
usr.sbin/bluetooth/l2control/l2cap.c
54
str[1] = 0;
usr.sbin/bluetooth/l2control/l2cap.c
56
return (str);
usr.sbin/bluetooth/l2control/l2cap.c
61
strlcpy(str, he->h_name, sizeof(str));
usr.sbin/bluetooth/l2control/l2cap.c
63
return (str);
usr.sbin/bluetooth/l2control/l2cap.c
66
bt_ntoa(ba, str);
usr.sbin/bluetooth/l2control/l2cap.c
68
return (str);
usr.sbin/bsnmpd/modules/snmp_hast/hast_snmp.c
102
static int str2role(const char *str);
usr.sbin/bsnmpd/modules/snmp_hast/hast_snmp.c
103
static int str2replication(const char *str);
usr.sbin/bsnmpd/modules/snmp_hast/hast_snmp.c
104
static int str2status(const char *str);
usr.sbin/bsnmpd/modules/snmp_hast/hast_snmp.c
164
str2role(const char *str)
usr.sbin/bsnmpd/modules/snmp_hast/hast_snmp.c
167
if (strcmp(str, "init") == 0)
usr.sbin/bsnmpd/modules/snmp_hast/hast_snmp.c
169
if (strcmp(str, "primary") == 0)
usr.sbin/bsnmpd/modules/snmp_hast/hast_snmp.c
171
if (strcmp(str, "secondary") == 0)
usr.sbin/bsnmpd/modules/snmp_hast/hast_snmp.c
177
str2replication(const char *str)
usr.sbin/bsnmpd/modules/snmp_hast/hast_snmp.c
180
if (strcmp(str, "fullsync") == 0)
usr.sbin/bsnmpd/modules/snmp_hast/hast_snmp.c
182
if (strcmp(str, "memsync") == 0)
usr.sbin/bsnmpd/modules/snmp_hast/hast_snmp.c
184
if (strcmp(str, "async") == 0)
usr.sbin/bsnmpd/modules/snmp_hast/hast_snmp.c
190
str2status(const char *str)
usr.sbin/bsnmpd/modules/snmp_hast/hast_snmp.c
193
if (strcmp(str, "complete") == 0)
usr.sbin/bsnmpd/modules/snmp_hast/hast_snmp.c
195
if (strcmp(str, "degraded") == 0)
usr.sbin/bsnmpd/modules/snmp_hast/hast_snmp.c
276
const char *str;
usr.sbin/bsnmpd/modules/snmp_hast/hast_snmp.c
296
str = nv_get_string(nvout, "resource%u", i);
usr.sbin/bsnmpd/modules/snmp_hast/hast_snmp.c
297
if (str == NULL)
usr.sbin/bsnmpd/modules/snmp_hast/hast_snmp.c
306
strncpy(res->name, str, sizeof(res->name) - 1);
usr.sbin/bsnmpd/modules/snmp_hast/hast_snmp.c
310
str = nv_get_string(nvout, "role%u", i);
usr.sbin/bsnmpd/modules/snmp_hast/hast_snmp.c
311
res->role = str != NULL ? str2role(str) : HAST_ROLE_UNDEF;
usr.sbin/bsnmpd/modules/snmp_hast/hast_snmp.c
312
str = nv_get_string(nvout, "provname%u", i);
usr.sbin/bsnmpd/modules/snmp_hast/hast_snmp.c
313
if (str != NULL)
usr.sbin/bsnmpd/modules/snmp_hast/hast_snmp.c
314
strncpy(res->provname, str, sizeof(res->provname) - 1);
usr.sbin/bsnmpd/modules/snmp_hast/hast_snmp.c
315
str = nv_get_string(nvout, "localpath%u", i);
usr.sbin/bsnmpd/modules/snmp_hast/hast_snmp.c
316
if (str != NULL) {
usr.sbin/bsnmpd/modules/snmp_hast/hast_snmp.c
317
strncpy(res->localpath, str,
usr.sbin/bsnmpd/modules/snmp_hast/hast_snmp.c
322
str = nv_get_string(nvout, "remoteaddr%u", i);
usr.sbin/bsnmpd/modules/snmp_hast/hast_snmp.c
323
if (str != NULL) {
usr.sbin/bsnmpd/modules/snmp_hast/hast_snmp.c
324
strncpy(res->remoteaddr, str,
usr.sbin/bsnmpd/modules/snmp_hast/hast_snmp.c
327
str = nv_get_string(nvout, "sourceaddr%u", i);
usr.sbin/bsnmpd/modules/snmp_hast/hast_snmp.c
328
if (str != NULL) {
usr.sbin/bsnmpd/modules/snmp_hast/hast_snmp.c
329
strncpy(res->sourceaddr, str,
usr.sbin/bsnmpd/modules/snmp_hast/hast_snmp.c
332
str = nv_get_string(nvout, "replication%u", i);
usr.sbin/bsnmpd/modules/snmp_hast/hast_snmp.c
333
res->replication = str != NULL ? str2replication(str) : -1;
usr.sbin/bsnmpd/modules/snmp_hast/hast_snmp.c
334
str = nv_get_string(nvout, "status%u", i);
usr.sbin/bsnmpd/modules/snmp_hast/hast_snmp.c
335
res->status = str != NULL ? str2status(str) : -1;
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_fs_tbl.c
128
const char *str; /* the type string */
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_fs_tbl.c
329
if (strcmp(fs_type_map[t].str, fs_p->f_fstypename) == 0)
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_scalars.c
284
OS_checkSystemDateInput(const u_char *str, u_int len)
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_scalars.c
293
if (str[2] == 0 || str[2] > 12 ||
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_scalars.c
294
str[3] == 0 || str[3] > 31 ||
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_scalars.c
295
str[4] > 23 || str[5] > 59 || str[6] > 60 || str[7] > 9)
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_scalars.c
298
tm_to_set.tm_year = ((str[0] << 8) + str[1]) - 1900;
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_scalars.c
299
tm_to_set.tm_mon = str[2] - 1;
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_scalars.c
300
tm_to_set.tm_mday = str[3];
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_scalars.c
301
tm_to_set.tm_hour = str[4];
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_scalars.c
302
tm_to_set.tm_min = str[5];
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_scalars.c
303
tm_to_set.tm_sec = str[6];
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_scalars.c
312
if (str[9] > 13 || str[10] > 59)
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_scalars.c
314
if (str[8] == '+')
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_scalars.c
315
t += 3600 * str[9] + 60 * str[10];
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_scalars.c
317
t -= 3600 * str[9] + 60 * str[10];
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_scalars.c
324
tv->tv_usec = (int32_t)str[7] * 100000;
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_scalars.c
352
u_char *str;
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_scalars.c
370
if ((err = OS_getSystemInitialLoadParameters(&str)) !=
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_scalars.c
373
return (string_get(value, str, -1));
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.c
188
make_date_time(u_char *str, const struct tm *tm, u_int decisecs)
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.c
191
str[0] = (u_char)((tm->tm_year + 1900) >> 8);
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.c
192
str[1] = (u_char)(tm->tm_year + 1900);
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.c
193
str[2] = tm->tm_mon + 1;
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.c
194
str[3] = tm->tm_mday;
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.c
195
str[4] = tm->tm_hour;
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.c
196
str[5] = tm->tm_min;
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.c
197
str[6] = tm->tm_sec;
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.c
198
str[7] = decisecs;
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.c
200
str[8] = '-';
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.c
202
str[8] = '+';
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.c
204
str[9] = (u_char)(labs(tm->tm_gmtoff) / 3600);
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.c
205
str[10] = (u_char)((labs(tm->tm_gmtoff) % 3600) / 60);
usr.sbin/bsnmpd/modules/snmp_pf/pf_snmp.c
158
unsigned char str[128];
usr.sbin/bsnmpd/modules/snmp_pf/pf_snmp.c
180
sprintf(str, "0x%08x", ntohl(pfs->hostid));
usr.sbin/bsnmpd/modules/snmp_pf/pf_snmp.c
181
return (string_get(val, str, strlen(str)));
usr.sbin/bsnmpd/modules/snmp_pf/pf_snmp.c
451
unsigned char str[IFNAMSIZ];
usr.sbin/bsnmpd/modules/snmp_pf/pf_snmp.c
462
strlcpy(str, pfs->ifname, sizeof str);
usr.sbin/bsnmpd/modules/snmp_pf/pf_snmp.c
463
return (string_get(val, str, strlen(str)));
usr.sbin/bsnmpd/tools/bsnmptools/bsnmpget.c
258
char string[MAXSTR], *str;
usr.sbin/bsnmpd/tools/bsnmptools/bsnmpget.c
262
str = argv;
usr.sbin/bsnmpd/tools/bsnmptools/bsnmpget.c
264
if (*str == '.')
usr.sbin/bsnmpd/tools/bsnmptools/bsnmpget.c
265
str++;
usr.sbin/bsnmpd/tools/bsnmptools/bsnmpget.c
267
while (isalpha(*str) || *str == '_' || (i != 0 && isdigit(*str))) {
usr.sbin/bsnmpd/tools/bsnmptools/bsnmpget.c
268
str++;
usr.sbin/bsnmpd/tools/bsnmptools/bsnmpget.c
276
if ((str = snmp_parse_suboid((argv + i), &in_oid)) == NULL) {
usr.sbin/bsnmpd/tools/bsnmptools/bsnmpget.c
290
else if (*str == '[') {
usr.sbin/bsnmpd/tools/bsnmptools/bsnmpget.c
291
if ((str = snmp_parse_index(snmptoolctx, str + 1, obj)) == NULL)
usr.sbin/bsnmpd/tools/bsnmptools/bsnmpget.c
299
return (str);
usr.sbin/bsnmpd/tools/bsnmptools/bsnmpget.c
613
char *endptr, *str;
usr.sbin/bsnmpd/tools/bsnmptools/bsnmpget.c
617
str = val;
usr.sbin/bsnmpd/tools/bsnmptools/bsnmpget.c
619
v = strtoul(str, &endptr, 10);
usr.sbin/bsnmpd/tools/bsnmptools/bsnmpget.c
624
str = endptr + 1;
usr.sbin/bsnmpd/tools/bsnmptools/bsnmpget.c
792
parse_pair_numoid_val(char *str, struct snmp_value *snmp_val)
usr.sbin/bsnmpd/tools/bsnmptools/bsnmpget.c
799
ptr = str;
usr.sbin/bsnmpd/tools/bsnmptools/bsnmpget.c
805
warnx("OID too long - %s", str);
usr.sbin/bsnmpd/tools/bsnmptools/bsnmpget.c
810
ptr = str + cnt + 1;
usr.sbin/bsnmpd/tools/bsnmptools/bsnmpget.c
816
warnx("Unknown syntax in OID - %s", str);
usr.sbin/bsnmpd/tools/bsnmptools/bsnmpget.c
852
struct snmp_object *object, char *str)
usr.sbin/bsnmpd/tools/bsnmptools/bsnmpget.c
862
for (len = 0 ; *(str + len) != ':'; len++) {
usr.sbin/bsnmpd/tools/bsnmptools/bsnmpget.c
863
if (*(str + len) == '\0') {
usr.sbin/bsnmpd/tools/bsnmptools/bsnmpget.c
864
warnx("Syntax missing in value - %s", str);
usr.sbin/bsnmpd/tools/bsnmptools/bsnmpget.c
868
if ((syn = parse_syntax(str)) <= SNMP_SYNTAX_NULL) {
usr.sbin/bsnmpd/tools/bsnmptools/bsnmpget.c
869
warnx("Unknown syntax in - %s", str);
usr.sbin/bsnmpd/tools/bsnmptools/bsnmpget.c
874
warnx("Bad syntax in - %s", str);
usr.sbin/bsnmpd/tools/bsnmptools/bsnmpget.c
885
return (parse_int_string(object, str + len));
usr.sbin/bsnmpd/tools/bsnmptools/bsnmpget.c
887
return (parse_ip(&(object->val), str + len));
usr.sbin/bsnmpd/tools/bsnmptools/bsnmpget.c
889
return (parse_counter(&(object->val), str + len));
usr.sbin/bsnmpd/tools/bsnmptools/bsnmpget.c
891
return (parse_gauge(&(object->val), str + len));
usr.sbin/bsnmpd/tools/bsnmptools/bsnmpget.c
893
return (parse_ticks(&(object->val), str + len));
usr.sbin/bsnmpd/tools/bsnmptools/bsnmpget.c
895
return (parse_uint64(&(object->val), str + len));
usr.sbin/bsnmpd/tools/bsnmptools/bsnmpget.c
898
str + len));
usr.sbin/bsnmpd/tools/bsnmptools/bsnmpget.c
901
str + len));
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpimport.c
279
const char *str;
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpimport.c
454
for (c = 0; keywords[c].str != NULL; c++)
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpimport.c
455
if (strcmp(keywords[c].str, nexttok) == 0) {
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.c
1028
snmp_bport_id2oct(char *str, struct asn_oid *oid)
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.c
1037
ptr = str;
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.c
1187
snmp_inetaddr2oct(char *str __unused, struct asn_oid *oid __unused)
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.c
1220
snmp_bits2oct(char *str, struct asn_oid *oid)
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.c
1229
v = strtoull(str, &endptr, 16);
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.c
1231
warn("Bad BITS value %s", str);
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.c
141
snmp_get_tc(char *str)
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.c
145
if (!strncmp(text_convs[i].tc_str, str,
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.c
182
snmp_tc2oid(enum snmp_tc tc, char *str, struct asn_oid *oid)
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.c
187
return (text_convs[tc].tc2oid(str, oid));
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.c
229
snmp_str2asn_oid(char *str, struct asn_oid *oid)
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.c
239
if (strchr(",]", *(str + len)) != NULL)
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.c
250
if (snmp_suboid_append(oid, (asn_subid_t) *(str + i)) < 0)
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.c
253
return (str + len);
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.c
336
snmp_date2asn_oid(char *str, struct asn_oid *oid)
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.c
347
ptr = str;
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.c
489
warnx("Date value %s not supported", str);
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.c
608
snmp_addr2asn_oid(char *str, struct asn_oid *oid)
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.c
617
ptr = str;
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.c
623
warnx("Integer value %s not supported", str);
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.c
627
warnx("Failed adding oid - %s", str);
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.c
640
warnx("Integer value %s not supported", str);
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.c
722
snmp_ntp_ts2asn_oid(char *str, struct asn_oid *oid)
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.c
732
ptr = str;
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.c
737
warnx("Integer value %s not supported", str);
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.c
744
warnx("Failed adding oid - %s", str);
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.c
762
warnx("Integer value %s not supported", str);
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.c
87
static char *snmp_inetaddr2oct(char *str, struct asn_oid *oid);
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.c
880
snmp_bridgeid2oct(char *str, struct asn_oid *oid)
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.c
889
ptr = str;
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.c
91
static char *snmp_bits2oct(char *str, struct asn_oid *oid);
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.c
914
warnx("Integer value %s not supported", str);
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.c
918
warnx("Failed adding oid - %s",str);
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.c
932
warnx("Integer value %s not supported", str);
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.h
85
typedef char * (*snmp_tc2oid_f) (char *str, struct asn_oid *oid);
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.h
88
enum snmp_tc snmp_get_tc(char *str);
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.h
90
char *snmp_tc2oid(enum snmp_tc tc, char *str, struct asn_oid *oid);
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
1000
if (*str < '0' || *str > '9')
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
1001
return (str);
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
1004
suboid = strtoul(str, &endptr, 10);
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
1011
str = endptr + 1;
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
1018
snmp_int2asn_oid(char *str, struct asn_oid *oid)
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
1026
v = strtol(str, &endptr, 10);
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
1028
warn("Integer value %s not supported", str);
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
1042
snmp_oid2asn_oid(struct snmp_toolinfo *snmptoolctx, char *str,
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
1050
if (isalpha (*(str + i)) == 0)
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
1053
endptr = str + i;
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
1056
if ((endptr = snmp_parse_suboid(str, &(obj.val.var))) == NULL)
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
106
const char *str;
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
1061
strlcpy(string, str, i + 1);
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
1073
snmp_ip2asn_oid(char *str, struct asn_oid *oid)
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
1079
ptr = str;
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
1097
snmp_uint2asn_oid(char *str, struct asn_oid *oid)
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
1106
v = strtoul(str, &endptr, 10);
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
1108
warn("Integer value %s not supported", str);
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
1120
snmp_cnt64_2asn_oid(char *str, struct asn_oid *oid)
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
1129
v = strtoull(str, &endptr, 10);
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
1132
warn("Integer value %s not supported", str);
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
1147
parse_syntax(char *str)
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
1152
if (strncmp(syntax_strings[i].str, str,
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
1153
strlen(syntax_strings[i].str)) == 0)
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
1161
snmp_parse_subindex(struct snmp_toolinfo *snmptoolctx, char *str,
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
1169
ptr = str;
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
1177
warnx("Unknown syntax in OID - %s", str);
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
1181
if ((stx = parse_syntax(str)) <= SNMP_SYNTAX_NULL) {
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
1195
ptr = str + i + 1;
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
1226
snmp_parse_index(struct snmp_toolinfo *snmptoolctx, char *str,
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
1237
if ((ptr = snmp_parse_subindex(snmptoolctx, str, temp, object))
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
124
char *str;
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
1243
str = ptr + 1;
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
1247
warnx("Mismatching index - %s", str);
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
1262
char *endptr, *str;
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
1265
str = argv;
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
1267
if (*str == '.')
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
1268
str++;
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
1276
suboid = strtoul(str, &endptr, 10);
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
1283
str = endptr + 1;
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
142
if ((str = getenv("SNMPAUTH")) != NULL) {
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
143
slen = strlen(str);
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
144
if (slen == strlen("md5") && strcasecmp(str, "md5") == 0)
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
146
else if (slen == strlen("sha")&& strcasecmp(str, "sha") == 0)
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
149
warnx("Bad authentication type - %s in SNMPAUTH", str);
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
152
if ((str = getenv("SNMPPRIV")) != NULL) {
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
153
slen = strlen(str);
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
154
if (slen == strlen("des") && strcasecmp(str, "des") == 0)
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
156
else if (slen == strlen("aes")&& strcasecmp(str, "aes") == 0)
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
159
warnx("Bad privacy type - %s in SNMPPRIV", str);
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
162
if ((str = getenv("SNMPUSER")) != NULL) {
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
163
if ((slen = strlen(str)) > sizeof(snmp_client.user.sec_name)) {
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
164
warnx("Username too long - %s in SNMPUSER", str);
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
1641
syntax_strings[SNMP_SYNTAX_OCTETSTRING].str);
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
1677
fprintf(stdout, "%s : ", syntax_strings[SNMP_SYNTAX_OID].str);
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
168
strlcpy(snmp_client.user.sec_name, str,
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
1707
syntax_strings[SNMP_SYNTAX_INTEGER].str);
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
1721
syntax_strings[SNMP_SYNTAX_IPADDRESS].str);
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
1731
syntax_strings[SNMP_SYNTAX_COUNTER].str);
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
174
if ((str = getenv("SNMPPASSWD")) != NULL) {
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
1740
fprintf(stdout, "%s : ", syntax_strings[SNMP_SYNTAX_GAUGE].str);
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
175
if ((slen = strlen(str)) > MAXSTR)
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
1750
syntax_strings[SNMP_SYNTAX_TIMETICKS].str);
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
1760
syntax_strings[SNMP_SYNTAX_COUNTER64].str);
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
181
strlcpy(snmptoolctx->passwd, str, slen + 1);
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
2020
fprintf(stdout, "%s\n", error_strings[pdu->error_status].str);
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
2022
fprintf(stdout,"%s\n", error_strings[SNMP_ERR_UNKNOWN].str);
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
77
const char *str;
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
992
snmp_parse_suboid(char *str, struct asn_oid *oid)
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
997
if (*str == '.')
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
998
str++;
usr.sbin/certctl/certctl.c
130
normalize_path(const char *str)
usr.sbin/certctl/certctl.c
134
if ((buf = malloc(strlen(str) + 1)) == NULL)
usr.sbin/certctl/certctl.c
136
for (dst = buf; *str != '\0'; dst++) {
usr.sbin/certctl/certctl.c
137
if ((*dst = *str++) == '/') {
usr.sbin/certctl/certctl.c
138
while (*str == '/')
usr.sbin/certctl/certctl.c
139
str++;
usr.sbin/certctl/certctl.c
140
if (*str == '\0')
usr.sbin/certctl/certctl.c
152
split_paths(const char *str)
usr.sbin/certctl/certctl.c
158
for (p = str, n = 1; *p; p++) {
usr.sbin/certctl/certctl.c
164
for (p = q = str, i = 0; i < n; i++, p = q + 1) {
usr.sbin/certctl/certctl.c
36
char *str;
usr.sbin/certctl/certctl.c
40
ret = vasprintf(&str, fmt, ap);
usr.sbin/certctl/certctl.c
42
if (ret < 0 || str == NULL)
usr.sbin/certctl/certctl.c
44
return (str);
usr.sbin/certctl/certctl.c
48
xstrdup(const char *str)
usr.sbin/certctl/certctl.c
52
if ((dup = strdup(str)) == NULL)
usr.sbin/certctl/certctl.c
970
char *str;
usr.sbin/certctl/certctl.c
975
if ((str = malloc((len = PATH_MAX) + 1)) == NULL)
usr.sbin/certctl/certctl.c
977
while (sysctlbyname("user.localbase", str, &len, NULL, 0) < 0) {
usr.sbin/certctl/certctl.c
980
if ((str = realloc(str, len + 1)) == NULL)
usr.sbin/certctl/certctl.c
983
str[len] = '\0';
usr.sbin/certctl/certctl.c
984
localbase = str;
usr.sbin/config/config.y
2
char *str;
usr.sbin/config/config.y
30
%token <str> ENVLINE
usr.sbin/config/config.y
31
%token <str> ID
usr.sbin/config/config.y
34
%type <str> Save_id
usr.sbin/config/config.y
35
%type <str> Opt_value
usr.sbin/config/config.y
36
%type <str> Dev
usr.sbin/config/config.y
37
%token <str> PATH
usr.sbin/config/main.cc
310
line_buf.str("");
usr.sbin/config/main.cc
320
"partial line = %s", line_buf.str().c_str());
usr.sbin/config/main.cc
323
return line_buf.str();
usr.sbin/config/main.cc
569
fprintf(fo, "%s", cfg.str().c_str());
usr.sbin/config/mkmakefile.cc
838
raisestr(char *str)
usr.sbin/config/mkmakefile.cc
840
char *cp = str;
usr.sbin/config/mkmakefile.cc
842
while (*str) {
usr.sbin/config/mkmakefile.cc
843
if (islower(*str))
usr.sbin/config/mkmakefile.cc
844
*str = toupper(*str);
usr.sbin/config/mkmakefile.cc
845
str++;
usr.sbin/config/mkoptions.cc
450
lower(char *str)
usr.sbin/config/mkoptions.cc
452
char *cp = str;
usr.sbin/config/mkoptions.cc
454
while (*str) {
usr.sbin/config/mkoptions.cc
455
if (isupper(*str))
usr.sbin/config/mkoptions.cc
456
*str = tolower(*str);
usr.sbin/config/mkoptions.cc
457
str++;
usr.sbin/cpucontrol/cpucontrol.c
118
strtouint32(const char *str, char **endptr, int base)
usr.sbin/cpucontrol/cpucontrol.c
123
val = strtoumax(str, endptr, base);
usr.sbin/cpucontrol/cpucontrol.c
124
if (*str == '\0' || errno == ERANGE || val > UINT32_MAX) {
usr.sbin/cpucontrol/cpucontrol.c
125
WARNX(0, "invalid operand: %s", str);
usr.sbin/cron/lib/env.c
141
char quotechar, *c, *str;
usr.sbin/cron/lib/env.c
164
str = name;
usr.sbin/cron/lib/env.c
201
*str++ = *c++;
usr.sbin/cron/lib/env.c
207
str = val;
usr.sbin/crunch/crunchgen/crunchgen.c
1071
fprintf(outmk, " $(%s_OBJDIR)/%s", p->ident, lst->str);
usr.sbin/crunch/crunchgen/crunchgen.c
110
void status(const char *str);
usr.sbin/crunch/crunchgen/crunchgen.c
112
void add_string(strlst_t **listp, char *str);
usr.sbin/crunch/crunchgen/crunchgen.c
1136
fprintf(outmk, "-k %s ", lst->str);
usr.sbin/crunch/crunchgen/crunchgen.c
1144
if ( strlen(lst->str) )
usr.sbin/crunch/crunchgen/crunchgen.c
1145
fprintf(outf, " %s", lst->str);
usr.sbin/crunch/crunchgen/crunchgen.c
1157
status(const char *str)
usr.sbin/crunch/crunchgen/crunchgen.c
116
int in_list(strlst_t **listp, char *str);
usr.sbin/crunch/crunchgen/crunchgen.c
1165
len = strlen(str);
usr.sbin/crunch/crunchgen/crunchgen.c
1170
fprintf(stderr, " [%s]%*.*s\r", str, spaces, spaces, " ");
usr.sbin/crunch/crunchgen/crunchgen.c
1184
add_string(strlst_t **listp, char *str)
usr.sbin/crunch/crunchgen/crunchgen.c
1191
if (!strcmp(p2->str, str))
usr.sbin/crunch/crunchgen/crunchgen.c
1197
p2->str = strdup(str);
usr.sbin/crunch/crunchgen/crunchgen.c
1199
if (!p2 || !p2->str)
usr.sbin/crunch/crunchgen/crunchgen.c
1214
if ( in_list(lista, p1->str) ) {
usr.sbin/crunch/crunchgen/crunchgen.c
1215
warnx("Will compile library `%s' dynamically", p1->str);
usr.sbin/crunch/crunchgen/crunchgen.c
1216
strcat(p1->str, "");
usr.sbin/crunch/crunchgen/crunchgen.c
1223
in_list(strlst_t **listp, char *str)
usr.sbin/crunch/crunchgen/crunchgen.c
1227
if (!strcmp(p1->str, str))
usr.sbin/crunch/crunchgen/crunchgen.c
262
prog_t *find_prog(char *str);
usr.sbin/crunch/crunchgen/crunchgen.c
579
prog_t *find_prog(char *str)
usr.sbin/crunch/crunchgen/crunchgen.c
584
if (!strcmp(p->name, str))
usr.sbin/crunch/crunchgen/crunchgen.c
60
char *str;
usr.sbin/crunch/crunchgen/crunchgen.c
609
char *genident(char *str);
usr.sbin/crunch/crunchgen/crunchgen.c
758
fprintf(f, " %s", s->str);
usr.sbin/crunch/crunchgen/crunchgen.c
936
s->str, p->ident);
usr.sbin/crunch/crunchgen/crunchgen.c
948
char *genident(char *str)
usr.sbin/crunch/crunchgen/crunchgen.c
959
if ((n = strdup(str)) == NULL)
usr.sbin/crunch/crunchgen/crunchgen.c
979
snprintf(path, MAXPATHLEN, "%s/%s", dir->str, progname);
usr.sbin/ctladm/ctladm.c
2882
char *str;
usr.sbin/ctladm/ctladm.c
2896
str = strdup(sbuf_data(islist->cur_sb[islist->level]));
usr.sbin/ctladm/ctladm.c
2897
if (str == NULL)
usr.sbin/ctladm/ctladm.c
2906
cur_conn->initiator = str;
usr.sbin/ctladm/ctladm.c
2907
str = NULL;
usr.sbin/ctladm/ctladm.c
2909
cur_conn->initiator_addr = str;
usr.sbin/ctladm/ctladm.c
2910
str = NULL;
usr.sbin/ctladm/ctladm.c
2912
cur_conn->initiator_alias = str;
usr.sbin/ctladm/ctladm.c
2913
str = NULL;
usr.sbin/ctladm/ctladm.c
2915
cur_conn->target = str;
usr.sbin/ctladm/ctladm.c
2916
str = NULL;
usr.sbin/ctladm/ctladm.c
2918
cur_conn->target_alias = str;
usr.sbin/ctladm/ctladm.c
2919
str = NULL;
usr.sbin/ctladm/ctladm.c
2922
cur_conn->header_digest = str;
usr.sbin/ctladm/ctladm.c
2923
str = NULL;
usr.sbin/ctladm/ctladm.c
2925
cur_conn->data_digest = str;
usr.sbin/ctladm/ctladm.c
2926
str = NULL;
usr.sbin/ctladm/ctladm.c
2928
cur_conn->max_recv_data_segment_length = str;
usr.sbin/ctladm/ctladm.c
2929
str = NULL;
usr.sbin/ctladm/ctladm.c
2931
cur_conn->max_send_data_segment_length = str;
usr.sbin/ctladm/ctladm.c
2932
str = NULL;
usr.sbin/ctladm/ctladm.c
2934
cur_conn->max_burst_length = str;
usr.sbin/ctladm/ctladm.c
2935
str = NULL;
usr.sbin/ctladm/ctladm.c
2937
cur_conn->first_burst_length = str;
usr.sbin/ctladm/ctladm.c
2938
str = NULL;
usr.sbin/ctladm/ctladm.c
2940
cur_conn->offload = str;
usr.sbin/ctladm/ctladm.c
2941
str = NULL;
usr.sbin/ctladm/ctladm.c
2943
cur_conn->immediate_data = atoi(str);
usr.sbin/ctladm/ctladm.c
2945
cur_conn->iser = atoi(str);
usr.sbin/ctladm/ctladm.c
2956
free(str);
usr.sbin/ctladm/ctladm.c
2960
cctl_islist_char_handler(void *user_data, const XML_Char *str, int len)
usr.sbin/ctladm/ctladm.c
2966
sbuf_bcat(islist->cur_sb[islist->level], str, len);
usr.sbin/ctladm/ctladm.c
3313
char *str;
usr.sbin/ctladm/ctladm.c
3329
str = strdup(sbuf_data(devlist->cur_sb[devlist->level]));
usr.sbin/ctladm/ctladm.c
3330
if (str == NULL)
usr.sbin/ctladm/ctladm.c
3334
if (strlen(str) == 0) {
usr.sbin/ctladm/ctladm.c
3335
free(str);
usr.sbin/ctladm/ctladm.c
3336
str = NULL;
usr.sbin/ctladm/ctladm.c
3344
cur_lun->backend_type = str;
usr.sbin/ctladm/ctladm.c
3345
str = NULL;
usr.sbin/ctladm/ctladm.c
3347
cur_lun->size_blocks = strtoull(str, NULL, 0);
usr.sbin/ctladm/ctladm.c
3349
cur_lun->blocksize = strtoul(str, NULL, 0);
usr.sbin/ctladm/ctladm.c
3351
cur_lun->serial_number = str;
usr.sbin/ctladm/ctladm.c
3352
str = NULL;
usr.sbin/ctladm/ctladm.c
3354
cur_lun->device_id = str;
usr.sbin/ctladm/ctladm.c
3355
str = NULL;
usr.sbin/ctladm/ctladm.c
3361
nvlist_move_string(cur_lun->attr_list, name, str);
usr.sbin/ctladm/ctladm.c
3366
str = NULL;
usr.sbin/ctladm/ctladm.c
3369
free(str);
usr.sbin/ctladm/ctladm.c
3373
cctl_char_handler(void *user_data, const XML_Char *str, int len)
usr.sbin/ctladm/ctladm.c
3379
sbuf_bcat(devlist->cur_sb[devlist->level], str, len);
usr.sbin/ctladm/ctladm.c
3569
char *str;
usr.sbin/ctladm/ctladm.c
3585
str = strdup(sbuf_data(portlist->cur_sb[portlist->level]));
usr.sbin/ctladm/ctladm.c
3586
if (str == NULL)
usr.sbin/ctladm/ctladm.c
3590
if (strlen(str) == 0) {
usr.sbin/ctladm/ctladm.c
3591
free(str);
usr.sbin/ctladm/ctladm.c
3592
str = NULL;
usr.sbin/ctladm/ctladm.c
3600
cur_port->frontend_type = str;
usr.sbin/ctladm/ctladm.c
3601
str = NULL;
usr.sbin/ctladm/ctladm.c
3603
cur_port->name = str;
usr.sbin/ctladm/ctladm.c
3604
str = NULL;
usr.sbin/ctladm/ctladm.c
3606
cur_port->online = str;
usr.sbin/ctladm/ctladm.c
3607
str = NULL;
usr.sbin/ctladm/ctladm.c
3609
cur_port->pp = strtoull(str, NULL, 0);
usr.sbin/ctladm/ctladm.c
3611
cur_port->vp = strtoull(str, NULL, 0);
usr.sbin/ctladm/ctladm.c
3613
cur_port->target = str;
usr.sbin/ctladm/ctladm.c
3614
str = NULL;
usr.sbin/ctladm/ctladm.c
3616
cur_port->controller = str;
usr.sbin/ctladm/ctladm.c
3617
str = NULL;
usr.sbin/ctladm/ctladm.c
3619
cur_port->port = str;
usr.sbin/ctladm/ctladm.c
3620
str = NULL;
usr.sbin/ctladm/ctladm.c
3622
cur_port->lun_map = str;
usr.sbin/ctladm/ctladm.c
3623
str = NULL;
usr.sbin/ctladm/ctladm.c
3630
nvlist_move_string(cur_port->host_list, idname, str);
usr.sbin/ctladm/ctladm.c
3635
str = NULL;
usr.sbin/ctladm/ctladm.c
3638
nvlist_move_string(cur_port->init_list, idname, str);
usr.sbin/ctladm/ctladm.c
3643
str = NULL;
usr.sbin/ctladm/ctladm.c
3646
nvlist_move_string(cur_port->lun_list, idname, str);
usr.sbin/ctladm/ctladm.c
3650
str = NULL;
usr.sbin/ctladm/ctladm.c
3652
nvlist_move_string(cur_port->attr_list, name, str);
usr.sbin/ctladm/ctladm.c
3657
str = NULL;
usr.sbin/ctladm/ctladm.c
3660
free(str);
usr.sbin/ctladm/ctladm.c
3664
cctl_char_phandler(void *user_data, const XML_Char *str, int len)
usr.sbin/ctladm/ctladm.c
3670
sbuf_bcat(portlist->cur_sb[portlist->level], str, len);
usr.sbin/ctladm/ctladm.c
3918
char *str;
usr.sbin/ctladm/ctladm.c
3931
str = strdup(sbuf_data(nvlist->cur_sb[nvlist->level]));
usr.sbin/ctladm/ctladm.c
3932
if (str == NULL)
usr.sbin/ctladm/ctladm.c
3941
cur_conn->hostnqn = str;
usr.sbin/ctladm/ctladm.c
3942
str = NULL;
usr.sbin/ctladm/ctladm.c
3944
cur_conn->subnqn = str;
usr.sbin/ctladm/ctladm.c
3945
str = NULL;
usr.sbin/ctladm/ctladm.c
3947
cur_conn->trtype = atoi(str);
usr.sbin/ctladm/ctladm.c
3958
free(str);
usr.sbin/ctladm/ctladm.c
3962
cctl_nvlist_char_handler(void *user_data, const XML_Char *str, int len)
usr.sbin/ctladm/ctladm.c
3968
sbuf_bcat(nvlist->cur_sb[nvlist->level], str, len);
usr.sbin/ctld/conf.cc
213
portal_group_set_filter(const char *str)
usr.sbin/ctld/conf.cc
215
return (portal_group->set_filter(str));
usr.sbin/ctld/ctld.cc
176
auth_group::set_type(const char *str)
usr.sbin/ctld/ctld.cc
180
if (strcmp(str, "none") == 0) {
usr.sbin/ctld/ctld.cc
182
} else if (strcmp(str, "deny") == 0) {
usr.sbin/ctld/ctld.cc
184
} else if (strcmp(str, "chap") == 0) {
usr.sbin/ctld/ctld.cc
186
} else if (strcmp(str, "chap-mutual") == 0) {
usr.sbin/ctld/ctld.cc
189
log_warnx("invalid auth-type \"%s\" for %s", str, label());
usr.sbin/ctld/ctld.cc
195
"already has a different type", str, label());
usr.sbin/ctld/ctld.hh
103
bool set_type(const char *str);
usr.sbin/ctld/ctld.hh
221
virtual bool set_filter(const char *str) = 0;
usr.sbin/ctld/iscsi.cc
195
iscsi_portal_group::set_filter(const char *str)
usr.sbin/ctld/iscsi.cc
199
if (strcmp(str, "none") == 0) {
usr.sbin/ctld/iscsi.cc
201
} else if (strcmp(str, "portal") == 0) {
usr.sbin/ctld/iscsi.cc
203
} else if (strcmp(str, "portal-name") == 0) {
usr.sbin/ctld/iscsi.cc
205
} else if (strcmp(str, "portal-name-auth") == 0) {
usr.sbin/ctld/iscsi.cc
211
str, name());
usr.sbin/ctld/iscsi.cc
219
"value", str, name());
usr.sbin/ctld/iscsi.cc
79
bool set_filter(const char *str) override;
usr.sbin/ctld/kernel.cc
192
std::string str;
usr.sbin/ctld/kernel.cc
206
str = sbuf_data(devlist->cur_sb[devlist->level]);
usr.sbin/ctld/kernel.cc
213
cur_lun->backend_type = std::move(str);
usr.sbin/ctld/kernel.cc
215
if (str.empty())
usr.sbin/ctld/kernel.cc
217
cur_lun->device_type = strtoull(str.c_str(), NULL, 0);
usr.sbin/ctld/kernel.cc
219
if (str.empty())
usr.sbin/ctld/kernel.cc
221
cur_lun->size_blocks = strtoull(str.c_str(), NULL, 0);
usr.sbin/ctld/kernel.cc
223
if (str.empty())
usr.sbin/ctld/kernel.cc
225
cur_lun->blocksize = strtoul(str.c_str(), NULL, 0);
usr.sbin/ctld/kernel.cc
227
cur_lun->serial_number = std::move(str);
usr.sbin/ctld/kernel.cc
229
cur_lun->device_id = std::move(str);
usr.sbin/ctld/kernel.cc
231
cur_lun->ctld_name = std::move(str);
usr.sbin/ctld/kernel.cc
237
cur_lun->attr_list.emplace_back(name, std::move(str));
usr.sbin/ctld/kernel.cc
284
std::string str;
usr.sbin/ctld/kernel.cc
298
str = sbuf_data(devlist->cur_sb[devlist->level]);
usr.sbin/ctld/kernel.cc
305
cur_port->port_frontend = std::move(str);
usr.sbin/ctld/kernel.cc
307
cur_port->port_name = std::move(str);
usr.sbin/ctld/kernel.cc
309
if (str.empty())
usr.sbin/ctld/kernel.cc
311
cur_port->pp = strtoul(str.c_str(), NULL, 0);
usr.sbin/ctld/kernel.cc
313
if (str.empty())
usr.sbin/ctld/kernel.cc
315
cur_port->vp = strtoul(str.c_str(), NULL, 0);
usr.sbin/ctld/kernel.cc
317
cur_port->cfiscsi_target = std::move(str);
usr.sbin/ctld/kernel.cc
319
if (str.empty())
usr.sbin/ctld/kernel.cc
321
cur_port->cfiscsi_state = strtoul(str.c_str(), NULL, 0);
usr.sbin/ctld/kernel.cc
323
if (str.empty())
usr.sbin/ctld/kernel.cc
325
cur_port->cfiscsi_portal_group_tag = strtoul(str.c_str(), NULL, 0);
usr.sbin/ctld/kernel.cc
327
cur_port->ctld_portal_group_name = std::move(str);
usr.sbin/ctld/kernel.cc
329
cur_port->ctld_transport_group_name = std::move(str);
usr.sbin/ctld/kernel.cc
331
cur_port->nqn = std::move(str);
usr.sbin/ctld/kernel.cc
333
if (str.empty())
usr.sbin/ctld/kernel.cc
335
cur_port->portid = strtoul(str.c_str(), NULL, 0);
usr.sbin/ctld/kernel.cc
341
cur_port->attr_list.emplace_back(name, std::move(str));
usr.sbin/ctld/kernel.cc
346
cctl_char_handler(void *user_data, const XML_Char *str, int len)
usr.sbin/ctld/kernel.cc
352
sbuf_bcat(devlist->cur_sb[devlist->level], str, len);
usr.sbin/ctld/login.cc
251
char *tofree, *str, *token;
usr.sbin/ctld/login.cc
253
tofree = str = checked_strdup(list);
usr.sbin/ctld/login.cc
255
while ((token = strsep(&str, ",")) != NULL) {
usr.sbin/ctld/login.cc
269
char *tofree, *str, *token;
usr.sbin/ctld/login.cc
271
tofree = str = checked_strdup(list);
usr.sbin/ctld/login.cc
273
while ((token = strsep(&str, ",")) != NULL) {
usr.sbin/ctld/nvmf.cc
261
nvmf_transport_group::set_filter(const char *str)
usr.sbin/ctld/nvmf.cc
265
if (strcmp(str, "none") == 0) {
usr.sbin/ctld/nvmf.cc
267
} else if (strcmp(str, "address") == 0) {
usr.sbin/ctld/nvmf.cc
269
} else if (strcmp(str, "address-name") == 0) {
usr.sbin/ctld/nvmf.cc
275
str, name());
usr.sbin/ctld/nvmf.cc
283
"value", str, name());
usr.sbin/ctld/nvmf.cc
55
bool set_filter(const char *str) override;
usr.sbin/ctld/parse.y
1109
yyerror(const char *str)
usr.sbin/ctld/parse.y
1113
lineno, yytext, str);
usr.sbin/ctld/parse.y
70
char *str;
usr.sbin/ctld/parse.y
73
%token <str> STR
usr.sbin/cxgbetool/cxgbetool.c
3432
special_offload_rule(char *str)
usr.sbin/cxgbetool/cxgbetool.c
3436
while (isspace(*str))
usr.sbin/cxgbetool/cxgbetool.c
3437
str++;
usr.sbin/cxgbetool/cxgbetool.c
3440
if (*str == '-') {
usr.sbin/cxgbetool/cxgbetool.c
3441
str++;
usr.sbin/cxgbetool/cxgbetool.c
3442
} else if (!strncmp(str, "all", 3) || !strncmp(str, "any", 3)) {
usr.sbin/cxgbetool/cxgbetool.c
3443
str += 3;
usr.sbin/cxgbetool/cxgbetool.c
3449
while (isspace(*str))
usr.sbin/cxgbetool/cxgbetool.c
3450
str++;
usr.sbin/cxgbetool/cxgbetool.c
3452
return (*str == '\0');
usr.sbin/daemon/daemon.c
651
get_log_mapping(const char *str, const CODE *c)
usr.sbin/daemon/daemon.c
655
if (strcmp(cp->c_name, str) == 0) {
usr.sbin/diskinfo/diskinfo.c
256
arg.len = sizeof(arg.value.str);
usr.sbin/diskinfo/diskinfo.c
258
printf("\t%-12s\t# Disk descr.\n", arg.value.str);
usr.sbin/diskinfo/diskinfo.c
262
arg.len = sizeof(arg.value.str);
usr.sbin/diskinfo/diskinfo.c
264
printf("\t%-12s\t# Attachment\n", arg.value.str);
usr.sbin/efivar/efiutil.c
128
char *str = NULL;
usr.sbin/efivar/efiutil.c
160
ucs2_to_utf8(descr, &str);
usr.sbin/efivar/efiutil.c
161
printf("%s\n", str);
usr.sbin/efivar/efiutil.c
162
free(str);
usr.sbin/gpioctl/gpioctl.c
103
if (strcasecmp(str, pdesc->name) == 0)
usr.sbin/gpioctl/gpioctl.c
71
int str2cap(const char *str);
usr.sbin/gpioctl/gpioctl.c
99
str2cap(const char *str)
usr.sbin/iscsid/login.c
310
char *tofree, *str, *token;
usr.sbin/iscsid/login.c
312
tofree = str = checked_strdup(list);
usr.sbin/iscsid/login.c
314
while ((token = strsep(&str, ",")) != NULL) {
usr.sbin/jail/jail.c
1036
quoted_print(FILE *fp, char *str)
usr.sbin/jail/jail.c
1039
char *p = str;
usr.sbin/jail/jail.c
608
estrdup(const char *str)
usr.sbin/jail/jail.c
612
ns = strdup(str);
usr.sbin/jail/jail.c
72
static void quoted_print(FILE *fp, char *str);
usr.sbin/kldxref/kldxref.c
162
record_string(const char *str)
usr.sbin/kldxref/kldxref.c
170
val = len = strlen(str);
usr.sbin/kldxref/kldxref.c
172
errx(1, "string %s too long", str);
usr.sbin/kldxref/kldxref.c
176
return (record_buf(str, len));
usr.sbin/lpr/lpd/modes.c
196
msearch(char *str, struct termios *ip)
usr.sbin/lpr/lpd/modes.c
201
if (CHK(str, mp->name)) {
usr.sbin/lpr/lpd/modes.c
207
if (CHK(str, mp->name)) {
usr.sbin/lpr/lpd/modes.c
213
if (CHK(str, mp->name)) {
usr.sbin/lpr/lpd/modes.c
219
if (CHK(str, mp->name)) {
usr.sbin/lpr/pac/pac.c
375
any(int ch, const char str[])
usr.sbin/lpr/pac/pac.c
378
register const char *cp = str;
usr.sbin/makefs/cd9660/cd9660_conversion.c
137
cd9660_pad_string_spaces(char *str, int len)
usr.sbin/makefs/cd9660/cd9660_conversion.c
142
if (str[i] == '\0')
usr.sbin/makefs/cd9660/cd9660_conversion.c
143
str[i] = 0x20;
usr.sbin/makefs/cd9660/cd9660_strings.c
105
cd9660_valid_d_chars(const char *str)
usr.sbin/makefs/cd9660/cd9660_strings.c
107
const char *c=str;
usr.sbin/makefs/cd9660/cd9660_strings.c
47
cd9660_uppercase_characters(char *str, size_t len)
usr.sbin/makefs/cd9660/cd9660_strings.c
52
if (islower((unsigned char)str[p]) )
usr.sbin/makefs/cd9660/cd9660_strings.c
53
str[p] -= 32;
usr.sbin/makefs/cd9660/cd9660_strings.c
81
cd9660_valid_a_chars(const char *str)
usr.sbin/makefs/cd9660/cd9660_strings.c
83
const char *c = str;
usr.sbin/makefs/zfs/dsl.c
74
char *str;
usr.sbin/makefs/zfs/dsl.c
77
error = nvlist_find(nvl, key, DATA_TYPE_STRING, NULL, &str, &len);
usr.sbin/makefs/zfs/dsl.c
80
memcpy(*retp, str, len);
usr.sbin/mfiutil/mfi_evt.c
520
detail->args.ecc.str);
usr.sbin/mlxcontrol/mlxcontrol.h
54
extern int ctrlrunit(char *str);
usr.sbin/mlxcontrol/mlxcontrol.h
55
extern int driveunit(char *str);
usr.sbin/mlxcontrol/util.c
100
if (sscanf(str, "mlxd%d", &unit) == 1)
usr.sbin/mlxcontrol/util.c
85
ctrlrunit(char *str)
usr.sbin/mlxcontrol/util.c
89
if (sscanf(str, "mlx%d", &unit) == 1)
usr.sbin/mlxcontrol/util.c
96
driveunit(char *str)
usr.sbin/mountd/mountd.c
3751
char str[STRSIZ];
usr.sbin/mountd/mountd.c
3762
while (fgets(str, STRSIZ, mlfile) != NULL) {
usr.sbin/mountd/mountd.c
3763
cp = str;
usr.sbin/moused/moused/quirks.c
531
strv_parse_hex(const char *str, size_t index, void *data)
usr.sbin/moused/moused/quirks.c
535
return !parse_hex(str, &product[index]); /* 0 for success */
usr.sbin/moused/moused/util-evdev.c
42
startswith(const char *str, size_t len, const char *prefix, size_t plen)
usr.sbin/moused/moused/util-evdev.c
44
return len >= plen && !strncmp(str, prefix, plen);
usr.sbin/moused/moused/util.c
254
const char *str;
usr.sbin/moused/moused/util.c
266
if (!strstartswith(s, m->str))
usr.sbin/moused/moused/util.h
183
safe_strdup(const char *str)
usr.sbin/moused/moused/util.h
187
if (!str)
usr.sbin/moused/moused/util.h
190
s = strdup(str);
usr.sbin/moused/moused/util.h
226
safe_atoi_base(const char *str, int *val, int base)
usr.sbin/moused/moused/util.h
228
assert(str != NULL);
usr.sbin/moused/moused/util.h
236
v = strtol(str, &endptr, base);
usr.sbin/moused/moused/util.h
239
if (str == endptr)
usr.sbin/moused/moused/util.h
241
if (*str != '\0' && *endptr != '\0')
usr.sbin/moused/moused/util.h
252
safe_atoi(const char *str, int *val)
usr.sbin/moused/moused/util.h
254
assert(str != NULL);
usr.sbin/moused/moused/util.h
255
return safe_atoi_base(str, val, 10);
usr.sbin/moused/moused/util.h
259
safe_atou_base(const char *str, unsigned int *val, int base)
usr.sbin/moused/moused/util.h
261
assert(str != NULL);
usr.sbin/moused/moused/util.h
269
v = strtoul(str, &endptr, base);
usr.sbin/moused/moused/util.h
272
if (str == endptr)
usr.sbin/moused/moused/util.h
274
if (*str != '\0' && *endptr != '\0')
usr.sbin/moused/moused/util.h
285
safe_atou(const char *str, unsigned int *val)
usr.sbin/moused/moused/util.h
287
assert(str != NULL);
usr.sbin/moused/moused/util.h
288
return safe_atou_base(str, val, 10);
usr.sbin/moused/moused/util.h
292
safe_atod(const char *str, double *val)
usr.sbin/moused/moused/util.h
294
assert(str != NULL);
usr.sbin/moused/moused/util.h
298
size_t slen = strlen(str);
usr.sbin/moused/moused/util.h
303
char c = str[i];
usr.sbin/moused/moused/util.h
324
v = strtod_l(str, &endptr, c_locale);
usr.sbin/moused/moused/util.h
329
v = strtod(str, &endptr);
usr.sbin/moused/moused/util.h
333
if (str == endptr)
usr.sbin/moused/moused/util.h
335
if (*str != '\0' && *endptr != '\0')
usr.sbin/moused/moused/util.h
346
typedef int (*strv_foreach_callback_t)(const char *str, size_t index, void *data);
usr.sbin/moused/moused/util.h
370
strendswith(const char *str, const char *suffix)
usr.sbin/moused/moused/util.h
372
if (str == NULL)
usr.sbin/moused/moused/util.h
375
size_t slen = strlen(str);
usr.sbin/moused/moused/util.h
383
return strneq(&str[offset], suffix, suffixlen);
usr.sbin/moused/moused/util.h
387
strstartswith(const char *str, const char *prefix)
usr.sbin/moused/moused/util.h
389
if (str == NULL)
usr.sbin/moused/moused/util.h
394
return prefixlen > 0 ? strneq(str, prefix, strlen(prefix)) : false;
usr.sbin/newsyslog/newsyslog.c
514
parse_compression_type(const char *str, enum compress_types_enum *type)
usr.sbin/newsyslog/newsyslog.c
519
if (strcasecmp(str, compress_type[i].name) == 0) {
usr.sbin/newsyslog/newsyslog.c
525
if (strcasecmp(str, "legacy") == 0)
usr.sbin/newsyslog/ptimes.c
392
const char *str)
usr.sbin/newsyslog/ptimes.c
409
pres = parseDWM(ptime, str);
usr.sbin/newsyslog/ptimes.c
411
pres = parse8601(ptime, str);
usr.sbin/newsyslog/ptimes.c
81
static int parse8601(struct ptime_data *ptime, const char *str);
usr.sbin/newsyslog/ptimes.c
82
static int parseDWM(struct ptime_data *ptime, const char *str);
usr.sbin/nscd/parser.c
301
get_yesno(const char *str)
usr.sbin/nscd/parser.c
304
if (strcmp(str, "yes") == 0)
usr.sbin/nscd/parser.c
306
else if (strcmp(str, "no") == 0)
usr.sbin/nscd/parser.c
313
get_number(const char *str, int low, int max)
usr.sbin/nscd/parser.c
319
if (str[0] == '\0')
usr.sbin/nscd/parser.c
322
res = strtol(str, &end, 10);
usr.sbin/nscd/parser.c
334
get_policy(const char *str)
usr.sbin/nscd/parser.c
337
if (strcmp(str, "fifo") == 0)
usr.sbin/nscd/parser.c
339
else if (strcmp(str, "lru") == 0)
usr.sbin/nscd/parser.c
341
else if (strcmp(str, "lfu") == 0)
usr.sbin/nscd/parser.c
348
check_cachename(const char *str)
usr.sbin/nscd/parser.c
351
assert(str != NULL);
usr.sbin/nscd/parser.c
352
return ((strlen(str) > 0) ? 0 : -1);
usr.sbin/nscd/parser.c
66
strbreak(char *str, char **fields, int fields_size)
usr.sbin/nscd/parser.c
68
char *c = str;
usr.sbin/ofwdump/ofwdump.c
143
ofw_dump_properties(int fd, phandle_t n, int level, bool raw, bool str)
usr.sbin/ofwdump/ofwdump.c
150
ofw_dump_property(fd, n, level, prop, raw, str);
usr.sbin/ofwdump/ofwdump.c
155
bool str)
usr.sbin/ofwdump/ofwdump.c
168
else if (str)
usr.sbin/ofwdump/ofwdump.c
211
const char *pmatch, bool raw, bool str)
usr.sbin/ofwdump/ofwdump.c
218
if (!(raw || str)) {
usr.sbin/ofwdump/ofwdump.c
229
ofw_dump_property(fd, n, level, pmatch, raw, str);
usr.sbin/ofwdump/ofwdump.c
231
ofw_dump_properties(fd, n, level, raw, str);
usr.sbin/ofwdump/ofwdump.c
236
raw, str);
usr.sbin/ofwdump/ofwdump.c
243
bool raw, bool str)
usr.sbin/ofwdump/ofwdump.c
248
ofw_dump_node(fd, n, 0, rec, prop, pmatch, raw, str);
usr.sbin/ofwdump/ofwdump.c
53
const char *prop, bool raw, bool str);
usr.sbin/pciconf/pciconf.c
1081
char buf[1024], str[1024];
usr.sbin/pciconf/pciconf.c
1120
if (buf[0] != '\t' && sscanf(buf, "%04x %[^\n]", &id, str) == 2) {
usr.sbin/pciconf/pciconf.c
1121
if ((id == 0) || (strlen(str) < 1))
usr.sbin/pciconf/pciconf.c
1128
if ((cv->desc = strdup(str)) == NULL) {
usr.sbin/pciconf/pciconf.c
1141
if (buf[0] == '\t' && sscanf(buf + 1, "%04x %[^\n]", &id, str) == 2) {
usr.sbin/pciconf/pciconf.c
1142
if ((id == 0) || (strlen(str) < 1))
usr.sbin/pciconf/pciconf.c
1153
if ((cd->desc = strdup(str)) == NULL) {
usr.sbin/pciconf/pciconf.c
1244
parsesel(const char *str)
usr.sbin/pciconf/pciconf.c
1252
ep = strchr(str, '@');
usr.sbin/pciconf/pciconf.c
1256
ep = str;
usr.sbin/pciconf/pciconf.c
1275
errx(1, "cannot parse selector %s", str);
usr.sbin/pciconf/pciconf.c
1279
getsel(const char *str)
usr.sbin/pciconf/pciconf.c
1286
if (strchr(str, ':') == NULL)
usr.sbin/pciconf/pciconf.c
1287
return (getdevice(str));
usr.sbin/pciconf/pciconf.c
1289
return (parsesel(str));
usr.sbin/pciconf/pciconf.c
78
static struct pcisel getsel(const char *str);
usr.sbin/pkg/config.c
204
boolstr_to_bool(const char *str)
usr.sbin/pkg/config.c
206
if (str != NULL && (strcasecmp(str, "true") == 0 ||
usr.sbin/pkg/config.c
207
strcasecmp(str, "yes") == 0 || strcasecmp(str, "on") == 0 ||
usr.sbin/pkg/config.c
208
str[0] == '1'))
usr.sbin/pmcannotate/pmcannotate.c
122
isasminline(const char *str)
usr.sbin/pmcannotate/pmcannotate.c
127
if (sscanf(str, " %p%n", &ptr, &nbytes) != 1)
usr.sbin/pmcannotate/pmcannotate.c
129
if (str[nbytes] != ':' || isspace(str[nbytes + 1]) == 0)
usr.sbin/pmcannotate/pmcannotate.c
139
newfunction(const char *str)
usr.sbin/pmcannotate/pmcannotate.c
145
if (isspace(str[0]))
usr.sbin/pmcannotate/pmcannotate.c
147
if (sscanf(str, "%p <%[^>:]>:%n", &ptr, fname, &nbytes) != 2)
usr.sbin/pmcstudy/eval_expr.c
424
parse_expression(char *str)
usr.sbin/pmcstudy/eval_expr.c
451
siz = strlen(str);
usr.sbin/pmcstudy/eval_expr.c
453
if (str[(siz-1)] == '\n') {
usr.sbin/pmcstudy/eval_expr.c
454
str[(siz-1)] = 0;
usr.sbin/pmcstudy/eval_expr.c
458
if (str[i] == '(') {
usr.sbin/pmcstudy/eval_expr.c
460
} else if (str[i] == ')') {
usr.sbin/pmcstudy/eval_expr.c
466
str, open_par, close_par);
usr.sbin/pmcstudy/eval_expr.c
470
if (str[i] == '(') {
usr.sbin/pmcstudy/eval_expr.c
473
} else if (str[i] == ')') {
usr.sbin/pmcstudy/eval_expr.c
476
} else if (str[i] == ' ') {
usr.sbin/pmcstudy/eval_expr.c
479
} else if (str[i] == '\t') {
usr.sbin/pmcstudy/eval_expr.c
482
} else if (str[i] == '+') {
usr.sbin/pmcstudy/eval_expr.c
485
} else if (str[i] == '-') {
usr.sbin/pmcstudy/eval_expr.c
488
} else if (str[i] == '/') {
usr.sbin/pmcstudy/eval_expr.c
491
} else if (str[i] == '*') {
usr.sbin/pmcstudy/eval_expr.c
497
if (isdigit(str[i]) || (str[i] == '.')) {
usr.sbin/pmcstudy/eval_expr.c
503
while ((str[i] != ' ') &&
usr.sbin/pmcstudy/eval_expr.c
504
(str[i] != '\t') &&
usr.sbin/pmcstudy/eval_expr.c
505
(str[i] != 0) &&
usr.sbin/pmcstudy/eval_expr.c
506
(str[i] != ')') &&
usr.sbin/pmcstudy/eval_expr.c
507
(str[i] != '(')) {
usr.sbin/pmcstudy/eval_expr.c
509
at->name[x] = str[i];
usr.sbin/pmcstudy/eval_expr.c
518
if (str[i] != 0) {
usr.sbin/pmcstudy/eval_expr.h
52
struct expression *parse_expression(char *str);
usr.sbin/pmcstudy/pmcstudy.c
2339
char linebuf[1024], *str;
usr.sbin/pmcstudy/pmcstudy.c
2518
str = &linebuf[1];
usr.sbin/pmcstudy/pmcstudy.c
2519
len = strlen(str) + 1;
usr.sbin/pmcstudy/pmcstudy.c
2526
strcpy(valid_pmcs[valid_pmc_cnt], str);
usr.sbin/ppp/chat.c
627
ExpandString(struct chat *c, const char *str, char *result, int reslen, int cr)
usr.sbin/ppp/chat.c
632
while (*str && reslen > 0) {
usr.sbin/ppp/chat.c
633
switch (*str) {
usr.sbin/ppp/chat.c
635
str++;
usr.sbin/ppp/chat.c
636
switch (*str) {
usr.sbin/ppp/chat.c
684
*result++ = *str;
usr.sbin/ppp/chat.c
687
if (*str)
usr.sbin/ppp/chat.c
688
str++;
usr.sbin/ppp/chat.c
691
str++;
usr.sbin/ppp/chat.c
692
if (*str) {
usr.sbin/ppp/chat.c
693
*result++ = *str++ & 0x1f;
usr.sbin/ppp/chat.c
698
*result++ = *str++;
usr.sbin/ppp/command.c
1040
FindCommand(struct cmdtab const *cmds, const char *str, int *pmatch)
usr.sbin/ppp/command.c
1047
len = strlen(str);
usr.sbin/ppp/command.c
1050
if (cmds->name && strncasecmp(str, cmds->name, len) == 0) {
usr.sbin/ppp/command.c
1057
} else if (cmds->alias && strncasecmp(str, cmds->alias, len) == 0) {
usr.sbin/ppp/nat_cmd.c
307
StrToAddr(const char *str, struct in_addr *addr)
usr.sbin/ppp/nat_cmd.c
311
if (inet_aton(str, addr))
usr.sbin/ppp/nat_cmd.c
314
hp = gethostbyname(str);
usr.sbin/ppp/nat_cmd.c
316
log_Printf(LogWARN, "StrToAddr: Unknown host %s.\n", str);
usr.sbin/ppp/nat_cmd.c
325
StrToPort(const char *str, u_short *port, const char *proto)
usr.sbin/ppp/nat_cmd.c
330
*port = strtol(str, &end, 10);
usr.sbin/ppp/nat_cmd.c
332
sp = getservbyname(str, proto);
usr.sbin/ppp/nat_cmd.c
335
str, proto);
usr.sbin/ppp/nat_cmd.c
345
StrToPortRange(const char *str, u_short *low, u_short *high, const char *proto)
usr.sbin/ppp/nat_cmd.c
350
minus = strchr(str, '-');
usr.sbin/ppp/nat_cmd.c
354
res = StrToPort(str, low, proto);
usr.sbin/ppp/nat_cmd.c
370
StrToAddrAndPort(const char *str, struct in_addr *addr, u_short *low,
usr.sbin/ppp/nat_cmd.c
376
colon = strchr(str, ':');
usr.sbin/ppp/nat_cmd.c
378
log_Printf(LogWARN, "StrToAddrAndPort: %s is missing port number.\n", str);
usr.sbin/ppp/nat_cmd.c
383
res = StrToAddr(str, addr);
usr.sbin/ppp/physical.c
223
GetParityValue(const char *str)
usr.sbin/ppp/physical.c
228
if (strcasecmp(pp->name, str) == 0 ||
usr.sbin/ppp/physical.c
229
strcasecmp(pp->name1, str) == 0) {
usr.sbin/ppp/physical.c
237
physical_SetParity(struct physical *p, const char *str)
usr.sbin/ppp/physical.c
242
val = GetParityValue(str);
usr.sbin/ppp/physical.c
253
log_Printf(LogWARN, "%s: %s: Invalid parity\n", p->link.name, str);
usr.sbin/pw/psdate.c
128
ret = strptime_l(str, valid_formats[i], &tm, l);
usr.sbin/pw/psdate.c
160
parse_date(time_t dt, char const * str)
usr.sbin/pw/psdate.c
170
while (*str && isspace((unsigned char)*str))
usr.sbin/pw/psdate.c
171
++str;
usr.sbin/pw/psdate.c
173
if (numerics(str)) {
usr.sbin/pw/psdate.c
174
dt = strtol(str, &p, 0);
usr.sbin/pw/psdate.c
175
} else if (*str == '+' || *str == '-') {
usr.sbin/pw/psdate.c
176
val = strtol(str, &p, 0);
usr.sbin/pw/psdate.c
227
weekday(&str);
usr.sbin/pw/psdate.c
228
strlcpy(tmp, str, sizeof(tmp));
usr.sbin/pw/psdate.c
229
str = tmp;
usr.sbin/pw/psdate.c
39
numerics(char const * str)
usr.sbin/pw/psdate.c
42
return (str[strspn(str, "0123456789x")] == '\0');
usr.sbin/pw/psdate.c
46
aindex(char const * arr[], char const ** str, int len)
usr.sbin/pw/psdate.c
52
l = strlen(strncpy(mystr, *str, len));
usr.sbin/pw/psdate.c
59
while (**str && isalpha((unsigned char)**str))
usr.sbin/pw/psdate.c
60
++(*str);
usr.sbin/pw/psdate.c
62
while (**str && (**str == ',' || isspace((unsigned char)**str)))
usr.sbin/pw/psdate.c
63
++(*str);
usr.sbin/pw/psdate.c
69
weekday(char const ** str)
usr.sbin/pw/psdate.c
74
return aindex(days, str, 3);
usr.sbin/pw/psdate.c
78
parse_datesub(char const * str, struct tm *t)
usr.sbin/pw/psdate.h
36
int numerics(char const * str);
usr.sbin/pw/psdate.h
37
time_t parse_date(time_t dt, char const * str);
usr.sbin/pw/pw.h
107
int boolean_val(char const * str, int dflt);
usr.sbin/pw/pw.h
108
int passwd_val(char const * str, int dflt);
usr.sbin/pw/pw_conf.c
159
unquote(char const * str)
usr.sbin/pw/pw_conf.c
161
if (str && (*str == '"' || *str == '\'')) {
usr.sbin/pw/pw_conf.c
162
char *p = strchr(str + 1, *str);
usr.sbin/pw/pw_conf.c
166
return (char *) (*++str ? str : NULL);
usr.sbin/pw/pw_conf.c
168
return (char *) str;
usr.sbin/pw/pw_conf.c
172
boolean_val(char const * str, int dflt)
usr.sbin/pw/pw_conf.c
174
if ((str = unquote(str)) != NULL) {
usr.sbin/pw/pw_conf.c
178
if (strcmp(str, booltrue[i]) == 0)
usr.sbin/pw/pw_conf.c
181
if (strcmp(str, boolfalse[i]) == 0)
usr.sbin/pw/pw_conf.c
188
passwd_val(char const * str, int dflt)
usr.sbin/pw/pw_conf.c
190
if ((str = unquote(str)) != NULL) {
usr.sbin/pw/pw_conf.c
194
if (strcmp(str, booltrue[i]) == 0)
usr.sbin/pw/pw_conf.c
197
if (strcmp(str, boolfalse[i]) == 0)
usr.sbin/pw/pw_conf.c
203
if (strcmp(str, "random") == 0)
usr.sbin/pw/pw_conf.c
205
if (strcmp(str, "none") == 0)
usr.sbin/pw/pw_user.c
1137
validate_expire(char *str, int opt)
usr.sbin/pw/pw_user.c
1139
if (!numerics(str))
usr.sbin/pw/pw_user.c
1141
"when setting defaults: %s", (char)opt, str);
usr.sbin/pw/pw_user.c
1142
return strtol(str, NULL, 0);
usr.sbin/rarpd/rarpd.c
968
const char *str, *m;
usr.sbin/rarpd/rarpd.c
972
str = fmt;
usr.sbin/rarpd/rarpd.c
973
while ((m = strstr(str, "%m")) != NULL) {
usr.sbin/rarpd/rarpd.c
974
asprintf(&np, "%s%.*s%s", p, (int)(m - str),
usr.sbin/rarpd/rarpd.c
975
str, strerror(errno));
usr.sbin/rarpd/rarpd.c
982
str = m + 2;
usr.sbin/rarpd/rarpd.c
985
if (*str != '\0') {
usr.sbin/rarpd/rarpd.c
986
asprintf(&np, "%s%s", p, str);
usr.sbin/rpc.umntall/mounttab.c
77
char str[STRSIZ];
usr.sbin/rpc.umntall/mounttab.c
93
while (fgets(str, STRSIZ, mtabfile) != NULL) {
usr.sbin/rpc.umntall/mounttab.c
94
cp = str;
usr.sbin/rtadvd/advcap.c
386
tdecode(char *str, char **area)
usr.sbin/rtadvd/advcap.c
397
if (*str == '"') {
usr.sbin/rtadvd/advcap.c
399
str++;
usr.sbin/rtadvd/advcap.c
401
while ((c = *str++) && c != term) {
usr.sbin/rtadvd/advcap.c
405
c = *str++ & 037;
usr.sbin/rtadvd/advcap.c
410
c = *str++;
usr.sbin/rtadvd/advcap.c
422
c <<= 3, c |= *str++ - '0';
usr.sbin/rtadvd/advcap.c
423
while (--i && isdigit(*str));
usr.sbin/rtadvd/advcap.c
434
str = *area;
usr.sbin/rtadvd/advcap.c
436
return (str);
usr.sbin/rtadvd/control.c
343
cm_bin2pl(char *str, struct ctrl_msg_pl *cp)
usr.sbin/rtadvd/control.c
351
p = str;
usr.sbin/rtadvd/control.c
403
cm_pl2bin(char *str, struct ctrl_msg_pl *cp)
usr.sbin/rtadvd/control.c
426
memset(str, 0, len);
usr.sbin/rtadvd/control.c
427
p = str;
usr.sbin/rtadvd/control.c
466
cm_str2bin(char *bin, void *str, size_t len)
usr.sbin/rtadvd/control.c
478
memcpy(bin, (char *)str, len);
usr.sbin/rtadvd/control.c
484
cm_bin2str(char *bin, void *str, size_t len)
usr.sbin/rtadvd/control.c
489
memcpy((char *)str, bin, len);
usr.sbin/rtadvd/control.c
491
return (str);
usr.sbin/rtprio/rtprio.c
126
parseint(const char *str, const char *errname)
usr.sbin/rtprio/rtprio.c
132
res = strtol(str, &endp, 10);
usr.sbin/rtprio/rtprio.c
133
if (errno != 0 || endp == str || *endp != '\0')
usr.sbin/services_mkdb/services_mkdb.c
355
char *str;
usr.sbin/services_mkdb/services_mkdb.c
357
while ((str = strsep(cp, " \t")) != NULL && *str == '\0')
usr.sbin/services_mkdb/services_mkdb.c
360
if (str == NULL)
usr.sbin/services_mkdb/services_mkdb.c
363
return str;
usr.sbin/services_mkdb/services_mkdb.c
405
getprotoindex(StringList *sl, const char *str)
usr.sbin/services_mkdb/services_mkdb.c
411
if (strcmp(sl->sl_str[i], str) == 0)
usr.sbin/services_mkdb/services_mkdb.c
416
" recompile with larger PROTOMAX", str);
usr.sbin/services_mkdb/services_mkdb.c
417
if ((p = strdup(str)) == NULL)
usr.sbin/sesutil/sesutil.c
421
char str[32];
usr.sbin/sesutil/sesutil.c
482
stri.bufsiz = sizeof(str);
usr.sbin/sesutil/sesutil.c
483
stri.buf = &str[0];
usr.sbin/sesutil/sesutil.c
486
stri.bufsiz = sizeof(str);
usr.sbin/sesutil/sesutil.c
487
stri.buf = &str[0];
usr.sbin/sesutil/sesutil.c
606
arg.len = sizeof(arg.value.str);
usr.sbin/sesutil/sesutil.c
608
*model = strdup(arg.value.str);
usr.sbin/sesutil/sesutil.c
729
char str[32];
usr.sbin/sesutil/sesutil.c
791
stri.bufsiz = sizeof(str);
usr.sbin/sesutil/sesutil.c
792
stri.buf = &str[0];
usr.sbin/sesutil/sesutil.c
795
stri.bufsiz = sizeof(str);
usr.sbin/sesutil/sesutil.c
796
stri.buf = &str[0];
usr.sbin/sndctl/sndctl.c
127
const char *str;
usr.sbin/sndctl/sndctl.c
275
for (p = capmap; p->str != NULL; p++) {
usr.sbin/sndctl/sndctl.c
278
strlcat(buf, p->str, size);
usr.sbin/sndctl/sndctl.c
297
for (p = fmtmap; p->str != NULL; p++) {
usr.sbin/sndctl/sndctl.c
300
strlcat(buf, p->str, size);
usr.sbin/syslogd/syslogd.c
1718
iovlist_append(struct iovlist *il, const char *str)
usr.sbin/syslogd/syslogd.c
1724
size = strlen(str);
usr.sbin/syslogd/syslogd.c
1726
.iov_base = __DECONST(char *, str),
usr.sbin/traceroute/traceroute.c
2007
str2val(register const char *str, register const char *what,
usr.sbin/traceroute/traceroute.c
2014
if (str[0] == '0' && (str[1] == 'x' || str[1] == 'X')) {
usr.sbin/traceroute/traceroute.c
2015
cp = str + 2;
usr.sbin/traceroute/traceroute.c
2018
val = (int)strtol(str, &ep, 10);
usr.sbin/traceroute/traceroute.c
2021
prog, str, what);
usr.sbin/uefisign/uefisign.c
158
char *digest_hex, *magic_conf, *str;
usr.sbin/uefisign/uefisign.c
190
str = NCONF_get_string(cnf, "default", "asn1");
usr.sbin/uefisign/uefisign.c
191
if (str == NULL) {
usr.sbin/uefisign/uefisign.c
196
t = ASN1_generate_nconf(str, cnf);
usr.sbin/usbconfig/dump.c
301
dump_extra(struct libusb20_me_struct *str, const char *plevel)
usr.sbin/usbconfig/dump.c
308
while ((ptr = libusb20_desc_foreach(str, ptr))) {
usr.sbin/usbconfig/dump.c
363
char buf[1024], str[1024];
usr.sbin/usbconfig/dump.c
403
if (buf[0] != '\t' && sscanf(buf, "%04x %[^\n]", &id, str) == 2) {
usr.sbin/usbconfig/dump.c
404
if ((id == 0) || (strlen(str) < 1))
usr.sbin/usbconfig/dump.c
408
if ((cv->desc = strdup(str)) == NULL)
usr.sbin/usbconfig/dump.c
417
if (buf[0] == '\t' && sscanf(buf + 1, "%04x %[^\n]", &id, str) == 2) {
usr.sbin/usbconfig/dump.c
418
if ((id == 0) || (strlen(str) < 1))
usr.sbin/usbconfig/dump.c
424
if ((cd->desc = strdup(str)) == NULL)
usr.sbin/usbconfig/usbconfig.c
169
const char *str)
usr.sbin/usbconfig/usbconfig.c
180
strlcpy(q.quirkname, str, sizeof(q.quirkname));
usr.sbin/usbconfig/usbconfig.c
184
fprintf(stderr, "Removing quirk '%s' failed, continuing.\n", str);
usr.sbin/usbconfig/usbconfig.c
191
const char *str)
usr.sbin/usbconfig/usbconfig.c
202
strlcpy(q.quirkname, str, sizeof(q.quirkname));
usr.sbin/usbconfig/usbconfig.c
206
fprintf(stderr, "Adding quirk '%s' failed, continuing.\n", str);
usr.sbin/usbconfig/usbconfig.c
211
get_token(const char *str, uint8_t narg)
usr.sbin/usbconfig/usbconfig.c
216
if (strcasecmp(str, token[n].name) == 0) {
usr.sbin/virtual_oss/virtual_oss/main.c
2510
voss_add_options(char *str)
usr.sbin/virtual_oss/virtual_oss/main.c
2522
for (word = strtok_r(str, sep, &brkt); word != NULL;
usr.sbin/virtual_oss/virtual_oss/main.c
2533
strlcpy(str, ptrerr, VIRTUAL_OSS_OPTIONS_MAX);
usr.sbin/virtual_oss/virtual_oss/main.c
2535
str[0] = 0;
usr.sbin/ypldap/aldap.c
1181
char *str;
usr.sbin/ypldap/aldap.c
1188
if ((str = calloc(len + 1, sizeof(char))) == NULL)
usr.sbin/ypldap/aldap.c
1194
str[j++] = isascii((unsigned char)u[i]) ? u[i] : '?';
usr.sbin/ypldap/aldap.c
1196
return str;
usr.sbin/ypldap/ber.c
418
char *sp, *p, str[BUFSIZ];
usr.sbin/ypldap/ber.c
421
if (strlcpy(str, oidstr, sizeof(str)) >= sizeof(str))
usr.sbin/ypldap/ber.c
426
for (p = sp = str; p != NULL; sp = p) {