usr/src/boot/common/bootstrap.h
51
char *backslash(char *str);
usr/src/boot/common/bootstrap.h
54
int parse(int *argc, char ***argv, char *str);
usr/src/boot/common/bootstrap.h
68
size_t strlenout(vm_offset_t str);
usr/src/boot/common/bootstrap.h
69
char *strdupout(vm_offset_t str);
usr/src/boot/common/gfx_fb.c
176
gfx_parse_mode_str(char *str, int *x, int *y, int *depth)
usr/src/boot/common/gfx_fb.c
181
p = str;
usr/src/boot/common/interp_backslash.c
101
str++;
usr/src/boot/common/interp_backslash.c
109
if (*str >= '0' && *str <= '3' &&
usr/src/boot/common/interp_backslash.c
110
*(str + 1) >= '0' && *(str + 1) <= '7' &&
usr/src/boot/common/interp_backslash.c
111
*(str + 2) >= '0' && *(str + 2) <= '7') {
usr/src/boot/common/interp_backslash.c
113
val = (DIGIT(*str) << 6) +
usr/src/boot/common/interp_backslash.c
114
(DIGIT(*(str + 1)) << 3) +
usr/src/boot/common/interp_backslash.c
115
DIGIT(*(str + 2));
usr/src/boot/common/interp_backslash.c
122
str += 3;
usr/src/boot/common/interp_backslash.c
132
if (*str == '0' &&
usr/src/boot/common/interp_backslash.c
133
(*(str + 1) == 'x' || *(str + 1) == 'X') &&
usr/src/boot/common/interp_backslash.c
134
isxdigit(*(str + 2))) {
usr/src/boot/common/interp_backslash.c
135
val = DIGIT(*(str + 2));
usr/src/boot/common/interp_backslash.c
136
if (isxdigit(*(str + 3))) {
usr/src/boot/common/interp_backslash.c
138
DIGIT(*(str + 3));
usr/src/boot/common/interp_backslash.c
139
str += 4;
usr/src/boot/common/interp_backslash.c
141
str += 3;
usr/src/boot/common/interp_backslash.c
150
new_str[i++] = *str++;
usr/src/boot/common/interp_backslash.c
154
if (*str == '\\') {
usr/src/boot/common/interp_backslash.c
156
str++;
usr/src/boot/common/interp_backslash.c
158
new_str[i++] = *str++;
usr/src/boot/common/interp_backslash.c
31
backslash(char *str)
usr/src/boot/common/interp_backslash.c
45
if ((new_str = strdup(str)) == NULL)
usr/src/boot/common/interp_backslash.c
48
while (*str) {
usr/src/boot/common/interp_backslash.c
51
switch (*str) {
usr/src/boot/common/interp_backslash.c
54
str++;
usr/src/boot/common/interp_backslash.c
62
new_str[i++] = *str++;
usr/src/boot/common/interp_backslash.c
67
str++;
usr/src/boot/common/interp_backslash.c
72
str++;
usr/src/boot/common/interp_backslash.c
77
str++;
usr/src/boot/common/interp_backslash.c
82
str++;
usr/src/boot/common/interp_backslash.c
87
str++;
usr/src/boot/common/interp_backslash.c
92
str++;
usr/src/boot/common/interp_backslash.c
97
str++;
usr/src/boot/common/interp_parse.c
84
parse(int *argc, char ***argv, char *str)
usr/src/boot/common/interp_parse.c
94
if (!str || (p = copy = backslash(str)) == NULL)
usr/src/boot/common/isapnp.c
165
uchar_t *str;
usr/src/boot/common/isapnp.c
200
str = malloc(large_len + 1);
usr/src/boot/common/isapnp.c
201
if (isapnp_get_resource_info(str,
usr/src/boot/common/isapnp.c
203
free(str);
usr/src/boot/common/isapnp.c
206
str[large_len] = 0;
usr/src/boot/common/isapnp.c
208
pi->pi_desc = (char *)str;
usr/src/boot/common/isapnp.c
210
free(str);
usr/src/boot/common/linenoise/linenoise.c
286
void linenoiseAddCompletion(linenoiseCompletions *lc, const char *str) {
usr/src/boot/common/linenoise/linenoise.c
287
size_t len = strlen(str);
usr/src/boot/common/linenoise/linenoise.c
292
memcpy(copy,str,len+1);
usr/src/boot/common/misc.c
85
strdupout(vm_offset_t str)
usr/src/boot/common/misc.c
89
result = malloc(strlenout(str) + 1);
usr/src/boot/common/misc.c
91
archsw.arch_copyout(str++, cp, 1);
usr/src/boot/efi/libefi/efichar.c
35
ucs2len(const CHAR16 *str)
usr/src/boot/efi/libefi/efichar.c
40
while (*str++)
usr/src/boot/efi/libefi/env.c
1063
char *str;
usr/src/boot/efi/libefi/env.c
1067
str = NULL;
usr/src/boot/efi/libefi/env.c
1089
if (efi_guid_to_name(matchguid, &str) == false) {
usr/src/boot/efi/libefi/env.c
1093
printf("%s ", str);
usr/src/boot/efi/libefi/env.c
1098
if (strcmp(str, "global") == 0)
usr/src/boot/efi/libefi/env.c
1100
else if (strcmp(str, "illumos") == 0)
usr/src/boot/efi/libefi/env.c
1102
else if (strcmp(str,
usr/src/boot/efi/libefi/env.c
1105
else if (strcmp(str,
usr/src/boot/efi/libefi/env.c
1108
else if (strcmp(str, MTC_VARIABLE_NAME) == 0) {
usr/src/boot/efi/libefi/env.c
1120
free(str);
usr/src/boot/efi/loader/framebuffer.c
696
efifb_find_mode(char *str)
usr/src/boot/efi/loader/framebuffer.c
701
if (!gfx_parse_mode_str(str, &x, &y, &depth))
usr/src/boot/i386/libi386/biospnp.c
192
char *str;
usr/src/boot/i386/libi386/biospnp.c
221
str = malloc(rlen + 1);
usr/src/boot/i386/libi386/biospnp.c
222
bcopy(p + i, str, rlen);
usr/src/boot/i386/libi386/biospnp.c
223
str[rlen] = 0;
usr/src/boot/i386/libi386/biospnp.c
225
pi->pi_desc = str;
usr/src/boot/i386/libi386/biospnp.c
227
free(str);
usr/src/boot/i386/libi386/vbe.c
583
vbe_find_mode(char *str)
usr/src/boot/i386/libi386/vbe.c
587
if (!gfx_parse_mode_str(str, &x, &y, &depth))
usr/src/boot/libsa/bootparam.c
324
xdr_string_encode(char **pkt, char *str, int len)
usr/src/boot/libsa/bootparam.c
337
bcopy(str, datap, len);
usr/src/boot/libsa/bootparam.c
343
xdr_string_decode(char **pkt, char *str, int *len_p)
usr/src/boot/libsa/bootparam.c
360
bcopy(datap, str, slen);
usr/src/boot/libsa/bootparam.c
362
str[slen] = '\0';
usr/src/boot/libsa/bootparam.c
86
int xdr_string_encode(char **p, char *str, int len);
usr/src/boot/libsa/bootparam.c
87
int xdr_string_decode(char **p, char *str, int *len_p);
usr/src/boot/libsa/stat.c
39
stat(const char *str, struct stat *sb)
usr/src/boot/libsa/stat.c
43
fd = open(str, O_RDONLY);
usr/src/boot/libsa/strdup.c
37
strdup(const char *str)
usr/src/boot/libsa/strdup.c
42
if (str != NULL) {
usr/src/boot/libsa/strdup.c
43
len = strlen(str) + 1;
usr/src/boot/libsa/strdup.c
46
memcpy(copy, str, len);
usr/src/boot/libsa/string/strlen.c
105
for (p = str; p < (const char *)lp; p++)
usr/src/boot/libsa/string/strlen.c
107
return (p - str);
usr/src/boot/libsa/string/strlen.c
79
return (p - str + x); \
usr/src/boot/libsa/string/strlen.c
83
strlen(const char *str)
usr/src/boot/libsa/string/strlen.c
99
lp = (const unsigned long *)((uintptr_t)str & ~LONGPTR_MASK);
usr/src/boot/libsa/tftp.c
633
tftp_set_blksize(struct tftp_handle *h, const char *str)
usr/src/boot/libsa/tftp.c
639
if (h == NULL || str == NULL)
usr/src/boot/libsa/tftp.c
643
(unsigned int)strtol(str, &endptr, 0);
usr/src/boot/libsa/zfs/zfs.c
827
char *str, **ptr;
usr/src/boot/libsa/zfs/zfs.c
844
rv = nvlist_find(nv, name, DATA_TYPE_STRING, NULL, &str, &size);
usr/src/boot/libsa/zfs/zfs.c
847
asprintf(ptr, "%.*s", size, str);
usr/src/boot/sys/sys/disk.h
132
char str[DISK_IDENT_SIZE];
usr/src/cmd/abi/spectrans/parser/frontend.c
411
non_empty(const char *str)
usr/src/cmd/abi/spectrans/parser/frontend.c
413
while (*str != '\0') {
usr/src/cmd/abi/spectrans/parser/frontend.c
414
if (!isspace(*str))
usr/src/cmd/abi/spectrans/parser/frontend.c
416
++str;
usr/src/cmd/abi/spectrans/spec2map/bucket.c
217
#define ADD_EQUALS(str) if (strchr(str, '=') == NULL) (void) strcat(str, " =")
usr/src/cmd/abi/spectrans/spec2trace/parseproto.y
1989
decl_Parse(char *str, decl_t **dpp) {
usr/src/cmd/abi/spectrans/spec2trace/parseproto.y
1991
input = str;
usr/src/cmd/abi/spectrans/spec2trace/parseproto.y
2133
de_const(char *str)
usr/src/cmd/abi/spectrans/spec2trace/parseproto.y
2135
return (str);
usr/src/cmd/abi/spectrans/spec2trace/printfuncs.c
298
space_to_uscore(char const *str)
usr/src/cmd/abi/spectrans/spec2trace/printfuncs.c
302
strp = strdup(str);
usr/src/cmd/abi/spectrans/spec2trace/trace.c
621
to_basetype(char *str)
usr/src/cmd/abi/spectrans/spec2trace/trace.c
623
char *p = str,
usr/src/cmd/abi/spectrans/spec2trace/trace.c
628
assert(strlen(str) < MAXLINE, "string exceeded MAXLINE");
usr/src/cmd/abi/spectrans/spec2trace/trace.c
661
(void) strcpy(str, buffer);
usr/src/cmd/abi/spectrans/spec2trace/util.c
49
strnormalize(char *str)
usr/src/cmd/abi/spectrans/spec2trace/util.c
53
if (str == NULL || *str == '\0')
usr/src/cmd/abi/spectrans/spec2trace/util.c
54
return (str);
usr/src/cmd/abi/spectrans/spec2trace/util.c
55
for (p = str; *p != '\0'; p++) {
usr/src/cmd/abi/spectrans/spec2trace/util.c
61
while (p >= str && (isspace(*p) || *p == ';'))
usr/src/cmd/abi/spectrans/spec2trace/util.c
65
while (isspace(*str))
usr/src/cmd/abi/spectrans/spec2trace/util.c
66
str++;
usr/src/cmd/abi/spectrans/spec2trace/util.c
68
return (str);
usr/src/cmd/abi/spectrans/spec2trace/util.c
72
strtrim(char *str)
usr/src/cmd/abi/spectrans/spec2trace/util.c
76
for (p = str; *p != '\0'; p++)
usr/src/cmd/abi/spectrans/spec2trace/util.c
79
while (p >= str && isspace(*p))
usr/src/cmd/abi/spectrans/spec2trace/util.c
81
return (str);
usr/src/cmd/abi/spectrans/spec2trace/util.c
89
strlower(char *str)
usr/src/cmd/abi/spectrans/spec2trace/util.c
93
for (p = str; *p != '\0'; p++) {
usr/src/cmd/abi/spectrans/spec2trace/util.c
96
return (str);
usr/src/cmd/acct/acctcom.c
593
convtime(str)
usr/src/cmd/acct/acctcom.c
594
char *str;
usr/src/cmd/acct/acctcom.c
600
if(sscanf(str, "%ld:%ld:%ld", &hr, &min, &sec) < 1) {
usr/src/cmd/acct/acctcom.c
601
fatal("acctcom: bad time:", str);
usr/src/cmd/acctadm/res.c
297
str2buf(ac_res_t *buf, char *str, int state, int type)
usr/src/cmd/acctadm/res.c
302
if (strcmp(str, AC_STR_NONE) == 0)
usr/src/cmd/acctadm/res.c
308
if ((copy = malloc(strlen(str) + 1)) == NULL)
usr/src/cmd/acctadm/res.c
310
(void) memcpy(copy, str, strlen(str) + 1);
usr/src/cmd/acctadm/res.c
348
char *str, *g;
usr/src/cmd/acctadm/res.c
352
(str = malloc(MAXRESLEN)) == NULL)
usr/src/cmd/acctadm/res.c
354
(void) memset(str, 0, MAXRESLEN);
usr/src/cmd/acctadm/res.c
370
if (strlen(str) != 0)
usr/src/cmd/acctadm/res.c
371
(void) strcat(str, ",");
usr/src/cmd/acctadm/res.c
372
(void) strcat(str, g);
usr/src/cmd/acctadm/res.c
386
if (strlen(str) != 0)
usr/src/cmd/acctadm/res.c
387
(void) strcat(str, ",");
usr/src/cmd/acctadm/res.c
391
(void) strcat(str, id2name(cur->ar_id, type));
usr/src/cmd/acctadm/res.c
394
if (strlen(str) == 0)
usr/src/cmd/acctadm/res.c
395
(void) strcpy(str, AC_STR_NONE);
usr/src/cmd/acctadm/res.c
397
return (str);
usr/src/cmd/acpi/iasl/prparser.y
189
char *str;
usr/src/cmd/acpi/iasl/prparser.y
284
EXPOP_PAREN_CLOSE { $$ = PrIsDefined (PrParserlval.str);}
usr/src/cmd/acpi/iasl/prparser.y
286
| EXPOP_DEFINE EXPOP_IDENTIFIER { $$ = PrIsDefined (PrParserlval.str);}
usr/src/cmd/acpi/iasl/prparser.y
288
| EXPOP_IDENTIFIER { $$ = PrResolveDefine (PrParserlval.str);}
usr/src/cmd/allocate/add_allocatable.c
316
char *p, *val, *str;
usr/src/cmd/allocate/add_allocatable.c
333
str = strdup(val);
usr/src/cmd/allocate/add_allocatable.c
335
while (*str == '"')
usr/src/cmd/allocate/add_allocatable.c
336
str++;
usr/src/cmd/allocate/add_allocatable.c
337
if ((p = strchr(str, '"')) != NULL)
usr/src/cmd/allocate/add_allocatable.c
339
if (str_to_label(str, &slabel, MAC_LABEL, L_NO_CORRECTION,
usr/src/cmd/allocate/add_allocatable.c
345
free(str);
usr/src/cmd/allocate/add_allocatable.c
349
free(str);
usr/src/cmd/amdzen/usmn.c
31
usmn_parse_uint32(const char *str, uint32_t *valp)
usr/src/cmd/amdzen/usmn.c
37
l = strtoll(str, &eptr, 16);
usr/src/cmd/amdzen/usmn.c
39
warnx("failed to parse string '%s'", str);
usr/src/cmd/amdzen/usmn.c
45
str);
usr/src/cmd/audio/audioconvert/convert.h
43
#define MGET(str) (char *)gettext(str)
usr/src/cmd/audio/audioctl/audioctl.c
456
char *str;
usr/src/cmd/audio/audioctl/audioctl.c
498
str = get_enum_str(cinfop, cval.value);
usr/src/cmd/audio/audioctl/audioctl.c
499
if (str == NULL) {
usr/src/cmd/audio/audioctl/audioctl.c
505
(void) snprintf(valbuf, sizeof (valbuf), "%s", str);
usr/src/cmd/audio/audioctl/audioctl.c
537
str = get_enum_str(cinfop, i);
usr/src/cmd/audio/audioctl/audioctl.c
538
if (str == NULL)
usr/src/cmd/audio/audioctl/audioctl.c
541
if ((strlen(str) + 1 + strlen(selbuf)) >=
usr/src/cmd/audio/audioctl/audioctl.c
549
(void) strlcat(selbuf, str, sizeof (selbuf));
usr/src/cmd/audio/audioctl/audioctl.c
577
str = get_enum_str(cinfop, i);
usr/src/cmd/audio/audioctl/audioctl.c
578
if (str == NULL)
usr/src/cmd/audio/audioctl/audioctl.c
581
if ((strlen(str) + 1 + strlen(selbuf)) >=
usr/src/cmd/audio/audioctl/audioctl.c
589
(void) strlcat(selbuf, str, sizeof (selbuf));
usr/src/cmd/audio/audioctl/audioctl.c
611
char *str;
usr/src/cmd/audio/audioctl/audioctl.c
650
str = get_enum_str(cinfop, i);
usr/src/cmd/audio/audioctl/audioctl.c
651
if (str == NULL)
usr/src/cmd/audio/audioctl/audioctl.c
654
if (strncmp(wstr, str, wlen) == 0) {
usr/src/cmd/audio/audioplay/audioplay.c
147
static int parse_unsigned(char *str, unsigned *dst, char *flag);
usr/src/cmd/audio/audioplay/audioplay.c
904
parse_unsigned(char *str, unsigned *dst, char *flag)
usr/src/cmd/audio/audioplay/audioplay.c
908
if (sscanf(str, "%u%c", dst, &x) != 1) {
usr/src/cmd/audio/audiorecord/audiorecord.c
118
static int parse_unsigned(char *str, unsigned *dst, char *flag);
usr/src/cmd/audio/audiorecord/audiorecord.c
729
parse_unsigned(char *str, unsigned *dst, char *flag)
usr/src/cmd/audio/audiorecord/audiorecord.c
733
if (sscanf(str, "%u%c", dst, &x) != 1) {
usr/src/cmd/audio/include/Audio.h
71
void SetName(const char *str); // Set name string
usr/src/cmd/audio/include/Audio.h
95
Audio(const char *str = ""); // Constructor
usr/src/cmd/audio/include/AudioError.h
42
#define _MGET_(str) (char *)dgettext(TEXT_DOMAIN, str)
usr/src/cmd/audio/include/AudioError.h
43
#define _GETTEXT_(str) (char *)gettext(str)
usr/src/cmd/audio/include/AudioUnixfile.h
100
const char *str, // ptr to info data
usr/src/cmd/audio/include/audio_i18n.h
38
#define DGET(labels, str) (char *)dgettext(labels, str)
usr/src/cmd/audio/utilities/Audio.cc
143
const char *str) // new name string
usr/src/cmd/audio/utilities/Audio.cc
146
name = new char[strlen(str) + 1];
usr/src/cmd/audio/utilities/Audio.cc
147
(void) strcpy(name, str);
usr/src/cmd/audio/utilities/Audio.cc
44
const char *str): // name
usr/src/cmd/audio/utilities/Audio.cc
49
s = (char *)((str == NULL) ? "" : str);
usr/src/cmd/audio/utilities/AudioDebug.cc
105
name, str, code.msg());
usr/src/cmd/audio/utilities/AudioDebug.cc
59
const char *str) // additional message string
usr/src/cmd/audio/utilities/AudioDebug.cc
80
id, str, name, code.msg());
usr/src/cmd/audio/utilities/AudioDebug.cc
84
name, code.msg(), str);
usr/src/cmd/audio/utilities/AudioDebug.cc
90
name, code.msg(), str);
usr/src/cmd/audio/utilities/AudioDebug.cc
97
name, str, code.msg());
usr/src/cmd/audio/utilities/AudioFile.cc
215
char *str;
usr/src/cmd/audio/utilities/AudioFile.cc
249
str = (path == NULL) ? NULL : getenv(path);
usr/src/cmd/audio/utilities/AudioFile.cc
250
if (str == NULL)
usr/src/cmd/audio/utilities/AudioFile.cc
251
str = (char *)path;
usr/src/cmd/audio/utilities/AudioFile.cc
253
if (str != NULL) {
usr/src/cmd/audio/utilities/AudioFile.cc
255
wrk = new char[strlen(str) + 1];
usr/src/cmd/audio/utilities/AudioFile.cc
256
(void) strcpy(wrk, str);
usr/src/cmd/audio/utilities/AudioFile.cc
257
str = wrk;
usr/src/cmd/audio/utilities/AudioFile.cc
260
for (prefix = str;
usr/src/cmd/audio/utilities/AudioFile.cc
262
prefix = str) {
usr/src/cmd/audio/utilities/AudioFile.cc
263
str = strchr(str, ':');
usr/src/cmd/audio/utilities/AudioFile.cc
264
if (str != NULL)
usr/src/cmd/audio/utilities/AudioFile.cc
265
*str++ = '\0';
usr/src/cmd/audio/utilities/AudioHdrParse.cc
101
str = new char[32];
usr/src/cmd/audio/utilities/AudioHdrParse.cc
104
(void) sprintf(str, "mono");
usr/src/cmd/audio/utilities/AudioHdrParse.cc
107
(void) sprintf(str, "stereo");
usr/src/cmd/audio/utilities/AudioHdrParse.cc
110
(void) sprintf(str, "quad");
usr/src/cmd/audio/utilities/AudioHdrParse.cc
113
(void) sprintf(str, "%d-channel", channels);
usr/src/cmd/audio/utilities/AudioHdrParse.cc
116
return (str);
usr/src/cmd/audio/utilities/AudioHdrParse.cc
123
char *str;
usr/src/cmd/audio/utilities/AudioHdrParse.cc
127
str = new char[64];
usr/src/cmd/audio/utilities/AudioHdrParse.cc
130
(void) sprintf(str, "???");
usr/src/cmd/audio/utilities/AudioHdrParse.cc
136
(void) sprintf(str, "%d-bit ", iprec);
usr/src/cmd/audio/utilities/AudioHdrParse.cc
138
(void) sprintf(str, "%.1f-bit ", double(prec));
usr/src/cmd/audio/utilities/AudioHdrParse.cc
146
(void) strcat(str, "u-law");
usr/src/cmd/audio/utilities/AudioHdrParse.cc
149
(void) strcat(str, "A-law");
usr/src/cmd/audio/utilities/AudioHdrParse.cc
152
(void) strcat(str, "linear");
usr/src/cmd/audio/utilities/AudioHdrParse.cc
155
(void) strcat(str, "float");
usr/src/cmd/audio/utilities/AudioHdrParse.cc
158
(void) strcat(str, "G.721 ADPCM");
usr/src/cmd/audio/utilities/AudioHdrParse.cc
161
(void) strcat(str, "G.722 ADPCM");
usr/src/cmd/audio/utilities/AudioHdrParse.cc
164
(void) strcat(str, "G.723 ADPCM");
usr/src/cmd/audio/utilities/AudioHdrParse.cc
167
(void) strcat(str, "DVI ADPCM");
usr/src/cmd/audio/utilities/AudioHdrParse.cc
170
(void) strcat(str, "???");
usr/src/cmd/audio/utilities/AudioHdrParse.cc
174
return (str);
usr/src/cmd/audio/utilities/AudioHdrParse.cc
181
char *str;
usr/src/cmd/audio/utilities/AudioHdrParse.cc
186
str = new char[4 * 32];
usr/src/cmd/audio/utilities/AudioHdrParse.cc
191
(void) sprintf(str, "%s, %s, %s", enc, rate, chan);
usr/src/cmd/audio/utilities/AudioHdrParse.cc
195
return (str);
usr/src/cmd/audio/utilities/AudioHdrParse.cc
201
char *str)
usr/src/cmd/audio/utilities/AudioHdrParse.cc
211
if (str == NULL)
usr/src/cmd/audio/utilities/AudioHdrParse.cc
221
switch (sscanf(str, " %lf %15s", &r, khzbuf)) {
usr/src/cmd/audio/utilities/AudioHdrParse.cc
256
char *str)
usr/src/cmd/audio/utilities/AudioHdrParse.cc
274
switch (sscanf(str, " %d %15s", &chan, cstrbuf)) {
usr/src/cmd/audio/utilities/AudioHdrParse.cc
288
if (sscanf(str, " %15s %1s", cstrbuf, xtra) != 1) {
usr/src/cmd/audio/utilities/AudioHdrParse.cc
319
char *str)
usr/src/cmd/audio/utilities/AudioHdrParse.cc
346
(void) strncpy(buf, str, BUFSIZ);
usr/src/cmd/audio/utilities/AudioHdrParse.cc
41
char *str)
usr/src/cmd/audio/utilities/AudioHdrParse.cc
47
oldstr = (unsigned char *) str;
usr/src/cmd/audio/utilities/AudioHdrParse.cc
48
newstr = new unsigned char [strlen(str) + 1];
usr/src/cmd/audio/utilities/AudioHdrParse.cc
601
char *str)
usr/src/cmd/audio/utilities/AudioHdrParse.cc
609
pstr = new char[strlen(str) + 1];
usr/src/cmd/audio/utilities/AudioHdrParse.cc
610
(void) strcpy(pstr, str);
usr/src/cmd/audio/utilities/AudioHdrParse.cc
69
char *str;
usr/src/cmd/audio/utilities/AudioHdrParse.cc
74
str = new char[32];
usr/src/cmd/audio/utilities/AudioHdrParse.cc
78
(void) sprintf(str, "%dkHz", ratek);
usr/src/cmd/audio/utilities/AudioHdrParse.cc
90
(void) sprintf(str, "%d.%0*dkHz", ratek, prec, rateh);
usr/src/cmd/audio/utilities/AudioHdrParse.cc
92
return (str);
usr/src/cmd/audio/utilities/AudioHdrParse.cc
99
char *str;
usr/src/cmd/audio/utilities/AudioUnixfile.cc
274
const char *str, // new info string
usr/src/cmd/audio/utilities/AudioUnixfile.cc
279
len = strlen(str) + 1;
usr/src/cmd/audio/utilities/AudioUnixfile.cc
283
(void) memcpy(infostring, str, len);
usr/src/cmd/audio/utilities/filehdr.c
54
#define _MGET_(str) (char *)dgettext(TEXT_DOMAIN, str)
usr/src/cmd/audio/utilities/hdr_misc.c
100
val += strtod(str, &str2); /* another field is required */
usr/src/cmd/audio/utilities/hdr_misc.c
101
if (str2 == str)
usr/src/cmd/audio/utilities/hdr_misc.c
120
audio_secs_to_str(double sec, char *str, int precision)
usr/src/cmd/audio/utilities/hdr_misc.c
129
(void) strcpy(str, "0:00");
usr/src/cmd/audio/utilities/hdr_misc.c
130
return (str);
usr/src/cmd/audio/utilities/hdr_misc.c
138
p = str;
usr/src/cmd/audio/utilities/hdr_misc.c
178
return (str);
usr/src/cmd/audio/utilities/hdr_misc.c
211
audio_enc_to_str(Audio_hdr *hdrp, char *str)
usr/src/cmd/audio/utilities/hdr_misc.c
274
(void) sprintf(str, "%s %s %s @ %s", chan, prec, enc, sbuf);
usr/src/cmd/audio/utilities/hdr_misc.c
80
audio_str_to_secs(char *str)
usr/src/cmd/audio/utilities/hdr_misc.c
85
val = strtod(str, &str2); /* get first numeric field */
usr/src/cmd/audio/utilities/hdr_misc.c
86
if (str2 == str)
usr/src/cmd/audio/utilities/hdr_misc.c
91
str = str2 + 1;
usr/src/cmd/audio/utilities/hdr_misc.c
92
val += strtod(str, &str2); /* another field is required */
usr/src/cmd/audio/utilities/hdr_misc.c
93
if (str2 == str)
usr/src/cmd/audio/utilities/hdr_misc.c
99
str = str2 + 1;
usr/src/cmd/auditreduce/option.c
490
a_isnum(char *str, int leading)
usr/src/cmd/auditreduce/option.c
494
if ((leading == TRUE) && (*str == '-' || *str == '+'))
usr/src/cmd/auditreduce/option.c
495
strs = str + 1;
usr/src/cmd/auditreduce/option.c
497
strs = str;
usr/src/cmd/auditreduce/proc.c
392
char *str;
usr/src/cmd/auditreduce/proc.c
566
str = (pcb->pcb_cur)->fcb_file;
usr/src/cmd/auditreduce/proc.c
568
str = "pipe";
usr/src/cmd/auditreduce/proc.c
572
ar, str);
usr/src/cmd/auditreduce/time.c
275
parse_time(char *str, int opt)
usr/src/cmd/auditreduce/time.c
282
len = strlen(str);
usr/src/cmd/auditreduce/time.c
287
if (*str++ != '+') {
usr/src/cmd/auditreduce/time.c
289
do_invalid(), str);
usr/src/cmd/auditreduce/time.c
296
do_invalid(), str);
usr/src/cmd/auditreduce/time.c
303
str);
usr/src/cmd/auditreduce/time.c
311
if ((strxx = strpbrk(str, "dhms")) == NULL) {
usr/src/cmd/auditreduce/time.c
314
do_invalid(), str);
usr/src/cmd/auditreduce/time.c
321
if (strlen(str) != strspn(str, "0123456789")) {
usr/src/cmd/auditreduce/time.c
324
do_invalid(), str);
usr/src/cmd/auditreduce/time.c
335
lnum = atol(str);
usr/src/cmd/auditreduce/time.c
342
if (derive_date(str, &thentime))
usr/src/cmd/auditreduce/time.c
378
derive_date(char *str, struct tm *tme)
usr/src/cmd/auditreduce/time.c
385
len = strlen(str);
usr/src/cmd/auditreduce/time.c
387
if (len != strspn(str, digits)) {
usr/src/cmd/auditreduce/time.c
389
do_invalid(), str);
usr/src/cmd/auditreduce/time.c
395
do_invalid(), str);
usr/src/cmd/auditreduce/time.c
413
if ((str[0] != '1' || str[1] != '9') && /* 19XX */
usr/src/cmd/auditreduce/time.c
414
(str[0] != '2' || str[1] != '0')) { /* 20XX */
usr/src/cmd/auditreduce/time.c
416
str[0], str[1], str[2], str[3]);
usr/src/cmd/auditreduce/time.c
422
len = strlen(str); /* may have changed */
usr/src/cmd/auditreduce/time.c
425
gettext("invalid date/time length (%s)"), str);
usr/src/cmd/auditreduce/time.c
432
(void) strncpy(strs, str, 4);
usr/src/cmd/auditreduce/time.c
435
(void) strncpy(strs, str + 4, 2);
usr/src/cmd/auditreduce/time.c
438
(void) strncpy(strs, str + 6, 2);
usr/src/cmd/auditreduce/time.c
442
(void) strncpy(strs, str + 8, 2);
usr/src/cmd/auditreduce/time.c
447
(void) strncpy(strs, str + 10, 2);
usr/src/cmd/auditreduce/time.c
452
(void) strncpy(strs, str + 12, 2);
usr/src/cmd/awk_xpg4/awk.h
311
NODE *stringnode(STRING str, int aflag, size_t wcslen);
usr/src/cmd/awk_xpg4/awk1.c
1271
mbconvert(char *str)
usr/src/cmd/awk_xpg4/awk1.c
1277
return (op = mbstowcsdup(str));
usr/src/cmd/awk_xpg4/awk1.c
1281
mbunconvert(wchar_t *str)
usr/src/cmd/awk_xpg4/awk1.c
1287
return (op = wcstombsdup(str));
usr/src/cmd/awk_xpg4/awk1.c
1435
regtxthash(const wchar_t *str)
usr/src/cmd/awk_xpg4/awk1.c
1439
while (*str != L'\0')
usr/src/cmd/awk_xpg4/awk1.c
1440
k = (31 * k) + *str++;
usr/src/cmd/awk_xpg4/awk1.c
72
void strescape(wchar_t *str);
usr/src/cmd/awk_xpg4/awk1.c
75
static wchar_t *mbconvert(char *str);
usr/src/cmd/awk_xpg4/awk1.c
893
strescape(wchar_t *str)
usr/src/cmd/awk_xpg4/awk1.c
895
progptr = str;
usr/src/cmd/awk_xpg4/awk1.c
896
proglen = wcslen(str) + 1; /* Include \0 */
usr/src/cmd/awk_xpg4/awk4.c
479
register STRING str;
usr/src/cmd/awk_xpg4/awk4.c
486
str = exprstring(getlist(&np));
usr/src/cmd/awk_xpg4/awk4.c
498
n = wcslen((wchar_t *)str);
usr/src/cmd/awk_xpg4/awk4.c
504
str += start;
usr/src/cmd/awk_xpg4/awk4.c
505
n = str[len];
usr/src/cmd/awk_xpg4/awk4.c
506
str[len] = '\0';
usr/src/cmd/awk_xpg4/awk4.c
507
np = stringnode(str, FALLOC, len);
usr/src/cmd/awk_xpg4/awk4.c
508
str[len] = n;
usr/src/cmd/awk_xpg4/awk4.c
677
register wchar_t *str;
usr/src/cmd/awk_xpg4/awk4.c
682
str = strsave(na==0 ? linebuf : exprstring(getlist(&np)));
usr/src/cmd/awk_xpg4/awk4.c
683
cp = str;
usr/src/cmd/awk_xpg4/awk4.c
691
return (stringnode((STRING)str, FNOALLOC, (size_t)(cp-str-1)));
usr/src/cmd/backup/dump/partial.c
85
char *str;
usr/src/cmd/backup/dump/partial.c
87
str = hasmntopt(mnt, MNTINFO_DEV);
usr/src/cmd/backup/dump/partial.c
88
if (str != NULL && (str = strchr(str, '=')))
usr/src/cmd/backup/dump/partial.c
89
return ((dev_t)strtol(str + 1, (char **)NULL, 16));
usr/src/cmd/backup/dump/unctime.c
46
unctime(str)
usr/src/cmd/backup/dump/unctime.c
47
char *str;
usr/src/cmd/backup/dump/unctime.c
53
(void) strncpy(dbuf, str, 24);
usr/src/cmd/backup/dump/unctime.c
72
lookup(str)
usr/src/cmd/backup/dump/unctime.c
73
char *str;
usr/src/cmd/backup/dump/unctime.c
77
for (cp = months, cp2 = str; *cp != 0; cp += 3)
usr/src/cmd/bc/bc.y
55
char *str = { string };
usr/src/cmd/bc/bc.y
829
yylval.cptr = str;
usr/src/cmd/bc/bc.y
831
*str++ = c;
usr/src/cmd/bc/bc.y
832
if (str >= &string[STRING_SIZE-1]) {
usr/src/cmd/bc/bc.y
837
*str++ = '\0';
usr/src/cmd/bhyve/amd64/fwctl.c
157
ctl_locate(const char *str, int maxlen)
usr/src/cmd/bhyve/amd64/fwctl.c
163
if (!strncmp(str, cp->c_oid, maxlen))
usr/src/cmd/bhyve/amd64/pci_lpc.c
103
str = cpy = strdup(opts);
usr/src/cmd/bhyve/amd64/pci_lpc.c
104
lpcdev = strsep(&str, ",");
usr/src/cmd/bhyve/amd64/pci_lpc.c
107
romfile = strsep(&str, ",");
usr/src/cmd/bhyve/amd64/pci_lpc.c
113
varfile = strsep(&str, ",");
usr/src/cmd/bhyve/amd64/pci_lpc.c
127
pci_parse_legacy_config(find_config_node("lpc"), str);
usr/src/cmd/bhyve/amd64/pci_lpc.c
134
tpm_type = strsep(&str, ",");
usr/src/cmd/bhyve/amd64/pci_lpc.c
140
tpm_path = strsep(&str, ",");
usr/src/cmd/bhyve/amd64/pci_lpc.c
146
pci_parse_legacy_config(find_config_node("tpm"), str);
usr/src/cmd/bhyve/amd64/pci_lpc.c
156
set_config_value(node_name, str);
usr/src/cmd/bhyve/amd64/pci_lpc.c
99
char *str, *cpy, *lpcdev, *node_name;
usr/src/cmd/bhyve/common/bhyverun.c
144
char *cp, *str, *tofree;
usr/src/cmd/bhyve/common/bhyverun.c
154
tofree = str = strdup(opt);
usr/src/cmd/bhyve/common/bhyverun.c
155
if (str == NULL)
usr/src/cmd/bhyve/common/bhyverun.c
158
while ((cp = strsep(&str, ",")) != NULL) {
usr/src/cmd/bhyve/common/gdb.c
1427
char *feature, *next_feature, *str, *value;
usr/src/cmd/bhyve/common/gdb.c
1430
str = malloc(len + 1);
usr/src/cmd/bhyve/common/gdb.c
1431
memcpy(str, data, len);
usr/src/cmd/bhyve/common/gdb.c
1432
str[len] = '\0';
usr/src/cmd/bhyve/common/gdb.c
1433
next_feature = str;
usr/src/cmd/bhyve/common/gdb.c
1486
free(str);
usr/src/cmd/bhyve/common/gdb.c
560
append_string(const char *str)
usr/src/cmd/bhyve/common/gdb.c
564
append_packet_data(str, strlen(str));
usr/src/cmd/bhyve/common/gdb.c
566
append_packet_data((const uint8_t *)str, strlen(str));
usr/src/cmd/bhyve/common/gdb.c
622
append_asciihex(const char *str)
usr/src/cmd/bhyve/common/gdb.c
625
while (*str != '\0') {
usr/src/cmd/bhyve/common/gdb.c
626
append_byte(*str);
usr/src/cmd/bhyve/common/gdb.c
627
str++;
usr/src/cmd/bhyve/common/pci_ahci.c
2404
char *next, *next2, *str, *tofree;
usr/src/cmd/bhyve/common/pci_ahci.c
2412
tofree = str = strdup(opts);
usr/src/cmd/bhyve/common/pci_ahci.c
2413
for (p = 0; p < MAX_PORTS && str != NULL; p++, str = next) {
usr/src/cmd/bhyve/common/pci_ahci.c
2415
if (strncmp(str, "hd:", 3) == 0) {
usr/src/cmd/bhyve/common/pci_ahci.c
2417
str += 3;
usr/src/cmd/bhyve/common/pci_ahci.c
2418
} else if (strncmp(str, "cd:", 3) == 0) {
usr/src/cmd/bhyve/common/pci_ahci.c
2420
str += 3;
usr/src/cmd/bhyve/common/pci_ahci.c
2425
next = strstr(str, ",hd:");
usr/src/cmd/bhyve/common/pci_ahci.c
2426
next2 = strstr(str, ",cd:");
usr/src/cmd/bhyve/common/pci_ahci.c
2434
if (str[0] == 0)
usr/src/cmd/bhyve/common/pci_ahci.c
2439
p, str);
usr/src/cmd/bhyve/common/pci_ahci.c
2443
if (pci_ahci_legacy_config_port(ports_nvl, p, type, str) != 0)
usr/src/cmd/bhyve/common/pci_emul.c
275
char *emul, *config, *str, *cp;
usr/src/cmd/bhyve/common/pci_emul.c
280
str = strdup(opt);
usr/src/cmd/bhyve/common/pci_emul.c
283
if ((cp = strchr(str, ',')) != NULL) {
usr/src/cmd/bhyve/common/pci_emul.c
296
if (sscanf(str, "%d:%d:%d", &bnum, &snum, &fnum) != 3) {
usr/src/cmd/bhyve/common/pci_emul.c
299
if (sscanf(str, "%d:%d", &snum, &fnum) != 2) {
usr/src/cmd/bhyve/common/pci_emul.c
302
if (sscanf(str, "%d", &snum) != 1) {
usr/src/cmd/bhyve/common/pci_emul.c
340
free(str);
usr/src/cmd/bhyve/common/pci_virtio_console.c
729
char *opt, *str, *tofree;
usr/src/cmd/bhyve/common/pci_virtio_console.c
734
tofree = str = strdup(opts);
usr/src/cmd/bhyve/common/pci_virtio_console.c
737
while ((opt = strsep(&str, ",")) != NULL) {
usr/src/cmd/bhyve/common/pci_xhci.c
2746
char *cp, *opt, *str, *tofree;
usr/src/cmd/bhyve/common/pci_xhci.c
2754
tofree = str = strdup(opts);
usr/src/cmd/bhyve/common/pci_xhci.c
2755
while ((opt = strsep(&str, ",")) != NULL) {
usr/src/cmd/bhyve/common/usb_mouse.c
319
const char *str;
usr/src/cmd/bhyve/common/usb_mouse.c
416
str = NULL;
usr/src/cmd/bhyve/common/usb_mouse.c
418
str = umouse_desc_strings[value & 0xFF];
usr/src/cmd/bhyve/common/usb_mouse.c
430
udata[2] = str[0];
usr/src/cmd/bhyve/common/usb_mouse.c
431
udata[3] = str[1];
usr/src/cmd/bhyve/common/usb_mouse.c
440
slen = 2 + strlen(str) * 2;
usr/src/cmd/bhyve/common/usb_mouse.c
450
udata[i] = *str++;
usr/src/cmd/bnu/anlwrk.c
123
if (fgets(str, MAXRQST, fp) == NULL)
usr/src/cmd/bnu/anlwrk.c
130
if (fgets(str, MAXRQST, fp) == NULL) {
usr/src/cmd/bnu/anlwrk.c
139
nargs = getargs(str, wvec, wcount);
usr/src/cmd/bnu/anlwrk.c
142
if ((str[0] != 'R' && str[0] != 'S') /* legal wrktypes are R and S */
usr/src/cmd/bnu/anlwrk.c
143
|| (str[0] == 'R' && nargs < 6) /* R lines need >= 6 entries */
usr/src/cmd/bnu/anlwrk.c
144
|| (str[0] == 'S' && nargs < 7)) { /* S lines need >= 7 entries */
usr/src/cmd/bnu/anlwrk.c
81
static char str[MAXRQST]; /* the string which wvec points to */
usr/src/cmd/bnu/callers.c
434
translate(ttab, str)
usr/src/cmd/bnu/callers.c
435
char *ttab, *str;
usr/src/cmd/bnu/callers.c
440
for(s=str;*s;s++)
usr/src/cmd/bnu/cntrl.c
1341
char str[50];
usr/src/cmd/bnu/cntrl.c
1346
(void) sprintf(str, "expected '%c' got FAIL", c);
usr/src/cmd/bnu/cntrl.c
1347
logent(str, "BAD READ");
usr/src/cmd/bnu/cntrl.c
1352
(void) sprintf(str, "expected '%c' got %s", c, msg);
usr/src/cmd/bnu/cntrl.c
1353
logent(str, "BAD READ");
usr/src/cmd/bnu/cntrl.c
1386
char str[BUFSIZ];
usr/src/cmd/bnu/cntrl.c
1405
(void) sprintf(str, "REQUEST: %s\n(SYSTEM: %s) %s\n",
usr/src/cmd/bnu/cntrl.c
1407
mailst(user, msg, str, "", "");
usr/src/cmd/bnu/cntrl.c
1484
char msg[BUFSIZ], str[BUFSIZ];
usr/src/cmd/bnu/cntrl.c
1489
blptcl(str);
usr/src/cmd/bnu/cntrl.c
1492
if ( fptcl(&msg[1], str) == FAIL) {
usr/src/cmd/bnu/cntrl.c
1502
WMESG(SLTPTCL, str);
usr/src/cmd/bnu/cntrl.c
1504
if ( fptcl(&msg[1], str) == FAIL ) {
usr/src/cmd/bnu/cntrl.c
1521
fptcl(str, valid)
usr/src/cmd/bnu/cntrl.c
1522
char *str, *valid;
usr/src/cmd/bnu/cntrl.c
1526
DEBUG(9, "Slave protocol list(%s)\n", str);
usr/src/cmd/bnu/cntrl.c
1530
if ( strchr(str, *l) != NULL) {
usr/src/cmd/bnu/cntrl.c
1531
*str = *l;
usr/src/cmd/bnu/cntrl.c
1532
*(str+1) = '\0';
usr/src/cmd/bnu/cntrl.c
1534
strcpy(_Protocol, findProto(_Protocol, *str));
usr/src/cmd/bnu/cntrl.c
1555
blptcl(str)
usr/src/cmd/bnu/cntrl.c
1556
char *str;
usr/src/cmd/bnu/cntrl.c
1562
for (validPtr = str, p = Ptbl; (*validPtr = p->P_id) != NULLCHAR;
usr/src/cmd/bnu/cntrl.c
1566
(void) protoString(str); /* Get desired protocols. */
usr/src/cmd/bnu/conn.c
367
getProto(save, str)
usr/src/cmd/bnu/conn.c
369
char *str;
usr/src/cmd/bnu/conn.c
374
if ( (p=strchr(str, ',')) != NULL) {
usr/src/cmd/bnu/conn.c
614
expect(str, fn)
usr/src/cmd/bnu/conn.c
615
char *str;
usr/src/cmd/bnu/conn.c
623
for (sptr = str; *sptr; sptr++) {
usr/src/cmd/bnu/conn.c
664
expect_str(str, fn)
usr/src/cmd/bnu/conn.c
665
char *str;
usr/src/cmd/bnu/conn.c
676
for (c=0; (kr=str[c]) != 0 ; c++)
usr/src/cmd/bnu/conn.c
683
if (EQUALS(str, "\"\"")) {
usr/src/cmd/bnu/conn.c
687
if (*str== '\0') {
usr/src/cmd/bnu/conn.c
695
while (notin(str, rdvec)) {
usr/src/cmd/bnu/conn.c
772
sendthem(str, fn, phstr1, phstr2)
usr/src/cmd/bnu/conn.c
773
char *str, *phstr1, *phstr2;
usr/src/cmd/bnu/conn.c
788
if (PREFIX("BREAK", str)) {
usr/src/cmd/bnu/conn.c
795
if (PREFIX("STTY=", str)) {
usr/src/cmd/bnu/conn.c
796
CDEBUG(5, "STTY %s\n", str+5);
usr/src/cmd/bnu/conn.c
797
setmode(str+5, fn);
usr/src/cmd/bnu/conn.c
801
if (EQUALS(str, "EOT")) {
usr/src/cmd/bnu/conn.c
811
if (EQUALS(str, "P_ZERO")) {
usr/src/cmd/bnu/conn.c
815
if (EQUALS(str, "P_ONE")) {
usr/src/cmd/bnu/conn.c
819
if (EQUALS(str, "P_EVEN")) {
usr/src/cmd/bnu/conn.c
823
if (EQUALS(str, "P_ODD")) {
usr/src/cmd/bnu/conn.c
828
if (EQUALS(str, "\"\"")) {
usr/src/cmd/bnu/conn.c
830
str += 2;
usr/src/cmd/bnu/conn.c
835
for (sptr = str; *sptr; sptr++) {
usr/src/cmd/bnu/cu.c
892
_shell(char *str)
usr/src/cmd/bnu/cu.c
897
CDEBUG(4,"call _shell(%s)\r\n", str);
usr/src/cmd/bnu/cu.c
925
(void)fcntl((*str == '!')? TTYERR:Cn,F_DUPFD,TTYOUT);
usr/src/cmd/bnu/cu.c
931
if (*str == '+') {
usr/src/cmd/bnu/cu.c
947
if(*++str == '\0')
usr/src/cmd/bnu/cu.c
950
(void)execl(shell,"sh","-c",str,(char *) 0);
usr/src/cmd/bnu/dio.c
104
dwrmsg(type, str, fn)
usr/src/cmd/bnu/dio.c
105
register char *str;
usr/src/cmd/bnu/dio.c
114
while (*str)
usr/src/cmd/bnu/dio.c
115
*s++ = *str++;
usr/src/cmd/bnu/dio.c
131
drdmsg(str, fn)
usr/src/cmd/bnu/dio.c
132
register char *str;
usr/src/cmd/bnu/dio.c
142
if( (len = (*Read)(fn, str, XBUFSIZ)) <= 0) {
usr/src/cmd/bnu/dio.c
146
str += len;
usr/src/cmd/bnu/dio.c
147
if (*(str - 1) == '\0')
usr/src/cmd/bnu/eio.c
108
erdmsg(char *str, int fn)
usr/src/cmd/bnu/eio.c
110
return(etrdmsg(str, fn, 0));
usr/src/cmd/bnu/eio.c
326
trdmsg(char *str, int fn)
usr/src/cmd/bnu/eio.c
328
return(etrdmsg(str, fn, TPACKSIZE));
usr/src/cmd/bnu/eio.c
341
twrmsg(char type, char *str, int fn)
usr/src/cmd/bnu/eio.c
343
return(etwrmsg(type, str, fn, TPACKSIZE));
usr/src/cmd/bnu/eio.c
447
etrdmsg(char *str, int fn, int i)
usr/src/cmd/bnu/eio.c
458
argstr = str;
usr/src/cmd/bnu/eio.c
469
len = (*Read)(fn, str, i);
usr/src/cmd/bnu/eio.c
477
str += len;
usr/src/cmd/bnu/eio.c
481
*str = 0;
usr/src/cmd/bnu/eio.c
483
if (null != str) {
usr/src/cmd/bnu/eio.c
485
memcpy(Erdstash + Erdlen, null, str - null);
usr/src/cmd/bnu/eio.c
486
Erdlen += str - null;
usr/src/cmd/bnu/eio.c
489
argstr = str;
usr/src/cmd/bnu/eio.c
511
etwrmsg(type, str, fn, len)
usr/src/cmd/bnu/eio.c
513
char *str;
usr/src/cmd/bnu/eio.c
522
if ((endstr = strchr(str, '\n')) != 0)
usr/src/cmd/bnu/eio.c
525
endstr = str + strlen(str);
usr/src/cmd/bnu/eio.c
527
memcpy(bufr+1, str, (endstr - str) + 1); /* include '\0' */
usr/src/cmd/bnu/eio.c
529
len = (endstr - str) + 2; /* include bufr[0] and '\0' */
usr/src/cmd/bnu/eio.c
94
ewrmsg(char type, char *str, int fn)
usr/src/cmd/bnu/eio.c
96
return(etwrmsg(type, str, fn, 0));
usr/src/cmd/bnu/fio.c
168
fwrmsg(type, str, fn)
usr/src/cmd/bnu/fio.c
169
char *str;
usr/src/cmd/bnu/fio.c
178
while (*str)
usr/src/cmd/bnu/fio.c
179
*s++ = *str++;
usr/src/cmd/bnu/fio.c
189
frdmsg(str, fn)
usr/src/cmd/bnu/fio.c
190
char *str;
usr/src/cmd/bnu/fio.c
197
smax = str + MAXMSGLEN - 1;
usr/src/cmd/bnu/fio.c
200
if (read(fn, str, 1) <= 0)
usr/src/cmd/bnu/fio.c
202
*str &= 0177;
usr/src/cmd/bnu/fio.c
203
if (*str == '\r')
usr/src/cmd/bnu/fio.c
205
if (*str < ' ') {
usr/src/cmd/bnu/fio.c
208
if (str++ >= smax)
usr/src/cmd/bnu/fio.c
211
*str = '\0';
usr/src/cmd/bnu/getargs.c
100
switch (*++str) {
usr/src/cmd/bnu/getargs.c
109
for ( num = 0, cp = str
usr/src/cmd/bnu/getargs.c
110
; cp - str < 3
usr/src/cmd/bnu/getargs.c
125
str = cp-1;
usr/src/cmd/bnu/getargs.c
150
*to++ = *str;
usr/src/cmd/bnu/getargs.c
155
*to++ = *str;
usr/src/cmd/bnu/getargs.c
89
register char *str, *to, *cp;
usr/src/cmd/bnu/getargs.c
95
str = *args;
usr/src/cmd/bnu/getargs.c
96
for (to = str; *str; str++) {
usr/src/cmd/bnu/getargs.c
97
if (*str == '\\') {
usr/src/cmd/bnu/getargs.c
98
if (str[1] == '\0')
usr/src/cmd/bnu/gio.c
100
*s++ = *str++;
usr/src/cmd/bnu/gio.c
116
grdmsg(char *str, int fn)
usr/src/cmd/bnu/gio.c
123
len = pkread(str, packsize);
usr/src/cmd/bnu/gio.c
126
str += len;
usr/src/cmd/bnu/gio.c
127
if (*(str - 1) == '\0')
usr/src/cmd/bnu/gio.c
90
gwrmsg(char type, char *str, int fn)
usr/src/cmd/bnu/gio.c
99
while (*str)
usr/src/cmd/bnu/mailst.c
48
mailst(user, subj, str, infile, errfile)
usr/src/cmd/bnu/mailst.c
49
char *user, *subj, *str, *infile, *errfile;
usr/src/cmd/bnu/mailst.c
71
(void) fprintf(fp, "To: %s\nSubject: %s\n\n%s\n", user, subj, str);
usr/src/cmd/bnu/perfstat.c
970
pfPtcl(str)
usr/src/cmd/bnu/perfstat.c
971
char *str;
usr/src/cmd/bnu/perfstat.c
973
strcpy(Protocol,str);
usr/src/cmd/bnu/permission.c
692
nextarg(str, name)
usr/src/cmd/bnu/permission.c
693
char *str, **name;
usr/src/cmd/bnu/permission.c
698
for(b=buf,p=str; *p != ':' && *p && b < buf+SMAX;)
usr/src/cmd/bnu/stoa.c
100
switch (*str) {
usr/src/cmd/bnu/stoa.c
104
addr->len = dobase(++str, sbuf, HEX);
usr/src/cmd/bnu/stoa.c
109
addr->len = dobase(++str, sbuf, OCT);
usr/src/cmd/bnu/stoa.c
73
stoa(str, addr) /* Return netbuf ptr if success */
usr/src/cmd/bnu/stoa.c
74
char *str; /* Return NULL if error */
usr/src/cmd/bnu/stoa.c
81
if (!str)
usr/src/cmd/bnu/stoa.c
83
while (*str && isspace(*str)) /* leading whites are OK */
usr/src/cmd/bnu/stoa.c
84
++str;
usr/src/cmd/bnu/stoa.c
86
if (!str || !*str) return NULL; /* Nothing to convert */
usr/src/cmd/bnu/stoa.c
98
if (*str == '\\') {
usr/src/cmd/bnu/stoa.c
99
++str;
usr/src/cmd/bnu/strsave.c
39
strsave(str)
usr/src/cmd/bnu/strsave.c
40
register char *str;
usr/src/cmd/bnu/strsave.c
44
rval = (char *)malloc(strlen(str) + 1);
usr/src/cmd/bnu/strsave.c
46
strcpy(rval, str);
usr/src/cmd/bnu/utility.c
106
static char str[20];
usr/src/cmd/bnu/utility.c
110
(void) sprintf(str, "%d/%d-%d:%2.2d:%2.2d", tp->tm_mon + 1,
usr/src/cmd/bnu/utility.c
112
return(str);
usr/src/cmd/bnu/uucico.c
830
char str[30];
usr/src/cmd/bnu/uucico.c
838
(void) sprintf(str, "SIGNAL %d", inter);
usr/src/cmd/bnu/uucico.c
839
logent(str, "CAUGHT");
usr/src/cmd/bnu/uucp.h
304
#define PREFIX(pre, str) (strncmp((pre), (str), strlen(pre)) == SAME)
usr/src/cmd/bnu/uucp.h
305
#define BASENAME(str, c) ((Bnptr = strrchr((str), c)) ? (Bnptr + 1) : (str))
usr/src/cmd/bnu/uustat.c
128
char *str, *rindex();
usr/src/cmd/bnu/uustat.c
329
str = rindex(m->stst, ' ');
usr/src/cmd/bnu/uustat.c
330
(void) machine(++str); /* longer name? */
usr/src/cmd/bnu/uustat.c
331
*str = '\0';
usr/src/cmd/bnu/uux.c
981
char str[30];
usr/src/cmd/bnu/uux.c
983
(void) sprintf(str, "XSIGNAL %d", inter);
usr/src/cmd/bnu/uux.c
984
logent(str, "XCAUGHT");
usr/src/cmd/bnu/uuxqt.c
240
char str[30];
usr/src/cmd/bnu/uuxqt.c
242
(void) sprintf(str, "QSIGNAL %d", inter);
usr/src/cmd/bnu/uuxqt.c
243
logent(str, "QCAUGHT");
usr/src/cmd/bnu/xio.c
106
xrdmsg(char *str, int fn)
usr/src/cmd/bnu/xio.c
115
if( (len = (*Read)(fn, str, XBUFSIZ)) == 0)
usr/src/cmd/bnu/xio.c
121
str += len;
usr/src/cmd/bnu/xio.c
122
if (*(str - 1) == '\0')
usr/src/cmd/bnu/xio.c
78
xwrmsg(type, str, fn)
usr/src/cmd/bnu/xio.c
79
char *str;
usr/src/cmd/bnu/xio.c
88
while (*str)
usr/src/cmd/bnu/xio.c
89
*s++ = *str++;
usr/src/cmd/boot/bootadm/bootadm.c
10078
s_strtol(char *str)
usr/src/cmd/boot/bootadm/bootadm.c
10083
if (str == NULL) {
usr/src/cmd/boot/bootadm/bootadm.c
10088
l = strtol(str, &res, 10);
usr/src/cmd/boot/bootadm/bootadm.c
10100
s_fputs(char *str, FILE *fp)
usr/src/cmd/boot/bootadm/bootadm.c
10104
(void) snprintf(linebuf, sizeof (linebuf), "%s\n", str);
usr/src/cmd/boot/bootadm/bootadm.c
10154
s_strdup(char *str)
usr/src/cmd/boot/bootadm/bootadm.c
10158
if (str == NULL)
usr/src/cmd/boot/bootadm/bootadm.c
10161
ptr = strdup(str);
usr/src/cmd/boot/bootadm/bootadm.c
10164
strlen(str) + 1);
usr/src/cmd/boot/bootadm/bootadm.c
4730
check_cmd(const char *cmd, const int which, const char *arg, const char *str)
usr/src/cmd/boot/bootadm/bootadm.c
4735
BAM_DPRINTF(("%s: entered. args: %s %s\n", fcn, arg, str));
usr/src/cmd/boot/bootadm/bootadm.c
4744
ret = (strstr(arg, str) != NULL);
usr/src/cmd/boot/bootadm/bootadm.c
4876
line_parser(menu_t *mp, char *str, int *lineNum, int *entryNum)
usr/src/cmd/boot/bootadm/bootadm.c
4895
if (str == NULL) {
usr/src/cmd/boot/bootadm/bootadm.c
4903
line = s_strdup(str);
usr/src/cmd/boot/bootadm/bootadm.c
4906
while (*str == ' ' || *str == '\t')
usr/src/cmd/boot/bootadm/bootadm.c
4907
str++;
usr/src/cmd/boot/bootadm/bootadm.c
4909
if (*str == '#') { /* comment */
usr/src/cmd/boot/bootadm/bootadm.c
4912
arg = s_strdup(str + 1);
usr/src/cmd/boot/bootadm/bootadm.c
4921
} else if (*str == '\0') { /* blank line */
usr/src/cmd/boot/bootadm/bootadm.c
4931
cp = str;
usr/src/cmd/boot/bootadm/bootadm.c
4932
while (*str != ' ' && *str != '\t' && *str != '=') {
usr/src/cmd/boot/bootadm/bootadm.c
4933
if (*str == '\0') {
usr/src/cmd/boot/bootadm/bootadm.c
4938
str++;
usr/src/cmd/boot/bootadm/bootadm.c
4941
if (*str != '\0') {
usr/src/cmd/boot/bootadm/bootadm.c
4942
save = *str;
usr/src/cmd/boot/bootadm/bootadm.c
4943
*str = '\0';
usr/src/cmd/boot/bootadm/bootadm.c
4945
*str = save;
usr/src/cmd/boot/bootadm/bootadm.c
4947
str++;
usr/src/cmd/boot/bootadm/bootadm.c
4948
save = *str;
usr/src/cmd/boot/bootadm/bootadm.c
4949
*str = '\0';
usr/src/cmd/boot/bootadm/bootadm.c
4950
sep = s_strdup(str - 1);
usr/src/cmd/boot/bootadm/bootadm.c
4951
*str = save;
usr/src/cmd/boot/bootadm/bootadm.c
4953
while (*str == ' ' || *str == '\t')
usr/src/cmd/boot/bootadm/bootadm.c
4954
str++;
usr/src/cmd/boot/bootadm/bootadm.c
4955
if (*str == '\0')
usr/src/cmd/boot/bootadm/bootadm.c
4958
arg = s_strdup(str);
usr/src/cmd/boot/bootadm/bootadm.c
8880
char *str;
usr/src/cmd/boot/bootadm/bootadm.c
8890
str = lp->arg + strlen(which);
usr/src/cmd/boot/bootadm/bootadm.c
8891
entry = s_strtol(str);
usr/src/cmd/boot/bootadm/bootadm.c
9181
char *str;
usr/src/cmd/boot/bootadm/bootadm.c
9254
str = found->line;
usr/src/cmd/boot/bootadm/bootadm.c
9256
while (*str == ' ' || *str == '\t')
usr/src/cmd/boot/bootadm/bootadm.c
9257
*(cp++) = *(str++);
usr/src/cmd/boot/bootadm/bootadm_hyper.c
142
get_token(char **token, char *str, char *delim)
usr/src/cmd/boot/bootadm/bootadm_hyper.c
145
char *start = str;
usr/src/cmd/boot/bootadm/bootadm_hyper.c
150
if ((str == NULL) || (*str == '\0'))
usr/src/cmd/boot/bootadm/bootadm_hyper.c
154
if ((*str == '\'') || (*str == '"')) {
usr/src/cmd/boot/bootadm/bootadm_hyper.c
155
char quote = *str++;
usr/src/cmd/boot/bootadm/bootadm_hyper.c
157
while ((*str != '\0') && (*str != quote))
usr/src/cmd/boot/bootadm/bootadm_hyper.c
158
str++;
usr/src/cmd/boot/bootadm/bootadm_hyper.c
161
if (*str++ == '\0')
usr/src/cmd/boot/bootadm/bootadm_hyper.c
166
for (dp = delim; ((*dp != '\0') && (*dp != *str)); dp++)
usr/src/cmd/boot/bootadm/bootadm_hyper.c
170
len = str - start + 1;
usr/src/cmd/boot/bootadm/bootadm_hyper.c
181
while (isspace((int)*++str))
usr/src/cmd/boot/bootadm/bootadm_hyper.c
184
return (str);
usr/src/cmd/boot/bootadm/bootadm_hyper.c
186
} while (*str++ != '\0');
usr/src/cmd/boot/bootadm/bootadm_hyper.c
67
append_str(char *orig, char *str, char *delim)
usr/src/cmd/boot/bootadm/bootadm_hyper.c
72
if ((str == NULL) || (delim == NULL))
usr/src/cmd/boot/bootadm/bootadm_hyper.c
80
return (s_strdup(str));
usr/src/cmd/boot/bootadm/bootadm_hyper.c
83
len = strlen(orig) + strlen(str) + strlen(delim) + 1;
usr/src/cmd/boot/bootadm/bootadm_hyper.c
89
(void) snprintf(newstr, len, "%s%s%s", orig, delim, str);
usr/src/cmd/busstat/busstat.c
342
print_dev(int argc, char *str)
usr/src/cmd/busstat/busstat.c
347
if ((argc > 2) || (strcmp(str, "-l") != 0)) {
usr/src/cmd/cal/cal.c
187
number(char *str)
usr/src/cmd/cal/cal.c
193
s = str;
usr/src/cmd/cal/cal.c
204
pstr(char *str, const int n)
usr/src/cmd/cal/cal.c
209
s = str;
usr/src/cmd/cal/cal.c
219
(void) printf("%s\n", str);
usr/src/cmd/captoinfo/captoinfo.c
972
caddstr(char *to, char *str)
usr/src/cmd/captoinfo/captoinfo.c
974
while (*str)
usr/src/cmd/captoinfo/captoinfo.c
975
*to++ = *str++;
usr/src/cmd/captoinfo/otermcap.c
387
tdecode(char *str, char **area)
usr/src/cmd/captoinfo/otermcap.c
395
while ((c = *str++) != '\0' && c != ':') {
usr/src/cmd/captoinfo/otermcap.c
399
c = *str++ & 037;
usr/src/cmd/captoinfo/otermcap.c
404
c = *str++;
usr/src/cmd/captoinfo/otermcap.c
416
c <<= 3, c |= *str++ - '0';
usr/src/cmd/captoinfo/otermcap.c
417
while (--i && isdigit(*str))
usr/src/cmd/captoinfo/otermcap.c
425
str = *area;
usr/src/cmd/captoinfo/otermcap.c
427
return (str);
usr/src/cmd/cdrw/misc_scsi.c
944
uchar_t *str;
usr/src/cmd/cdrw/misc_scsi.c
947
str = (uchar_t *)my_zalloc(SET_STREAM_DATA_LEN);
usr/src/cmd/cdrw/misc_scsi.c
950
load_scsi32(&str[16], 1000);
usr/src/cmd/cdrw/misc_scsi.c
952
load_scsi32(&str[24], 1000);
usr/src/cmd/cdrw/misc_scsi.c
955
load_scsi32(&str[12], (uint32_t)read_speed);
usr/src/cmd/cdrw/misc_scsi.c
957
load_scsi32(&str[20], (uint32_t)write_speed);
usr/src/cmd/cdrw/misc_scsi.c
960
ret = set_streaming(dev->d_fd, str);
usr/src/cmd/cdrw/misc_scsi.c
961
free(str);
usr/src/cmd/cdrw/options.c
37
set_options_mask(options *msk, char *str)
usr/src/cmd/cdrw/options.c
41
for (i = 0; str[i] != 0; i++) {
usr/src/cmd/cdrw/options.c
42
add_option(msk, str[i]);
usr/src/cmd/cdrw/options.h
40
void set_options_mask(options *msk, char *str);
usr/src/cmd/cdrw/util.c
82
str_print(char *str, int pos)
usr/src/cmd/cdrw/util.c
96
(void) printf("%s", str);
usr/src/cmd/cdrw/util.c
98
return (strlen(str));
usr/src/cmd/cdrw/util.h
65
int str_print(char *str, int pos);
usr/src/cmd/cfgadm/cfgadm.c
1078
if (strcmp(matchp, match_type_array[i].str) == 0) {
usr/src/cmd/cfgadm/cfgadm.c
117
static char *s_strdup(char *str);
usr/src/cmd/cfgadm/cfgadm.c
2407
s_strdup(char *str)
usr/src/cmd/cfgadm/cfgadm.c
2415
if (str == NULL) {
usr/src/cmd/cfgadm/cfgadm.c
2419
dup = strdup(str);
usr/src/cmd/cfgadm/cfgadm.c
2422
"%s \"%s\"\n", gettext("Cannot copy string"), str);
usr/src/cmd/cfgadm/cfgadm.h
203
char *str;
usr/src/cmd/cmd-crypto/cryptoadm/adm_kef.c
706
char *str;
usr/src/cmd/cmd-crypto/cryptoadm/adm_kef.c
736
if ((str = ent2str(pent)) == NULL) {
usr/src/cmd/cmd-crypto/cryptoadm/adm_kef.c
813
if (fputs(str, pfile_tmp) == EOF) {
usr/src/cmd/cmd-crypto/cryptoadm/adm_kef.c
853
if (fputs(str, pfile_tmp) == EOF) {
usr/src/cmd/cmd-crypto/cryptoadm/adm_uef.c
1131
char *str;
usr/src/cmd/cmd-crypto/cryptoadm/adm_uef.c
1226
if ((str = uent2str(puent)) == NULL) {
usr/src/cmd/cmd-crypto/cryptoadm/adm_uef.c
1230
(void) strlcpy(buffer, str, BUFSIZ);
usr/src/cmd/cmd-crypto/cryptoadm/adm_uef.c
1231
free(str);
usr/src/cmd/cmd-crypto/kmfcfg/util.c
299
get_string(char *str, int *err_flag)
usr/src/cmd/cmd-crypto/kmfcfg/util.c
305
if (str == NULL) {
usr/src/cmd/cmd-crypto/kmfcfg/util.c
312
p = str;
usr/src/cmd/cmd-crypto/tpmadm/admin_cmds.c
214
char *str;
usr/src/cmd/cmd-crypto/tpmadm/admin_cmds.c
264
for (i = 0; table[i].str != NULL; i++) {
usr/src/cmd/cmd-crypto/tpmadm/admin_cmds.c
266
return (table[i].str);
usr/src/cmd/cmd-crypto/tpmadm/tpmadm.h
54
#define UUID_PARSE(str, uuid) uuid_parse(str, *(uuid_t *)&uuid)
usr/src/cmd/cmd-crypto/tpmadm/tpmadm.h
55
#define UUID_UNPARSE(uuid, str) uuid_unparse(*(uuid_t *)&uuid, str)
usr/src/cmd/cmd-inet/lib/netcfgd/netcfgd.c
62
log_out(int severity, const char *str)
usr/src/cmd/cmd-inet/lib/netcfgd/netcfgd.c
65
(void) fprintf(stderr, "%s: %s\n", progname, str);
usr/src/cmd/cmd-inet/lib/netcfgd/netcfgd.c
67
syslog(severity, str);
usr/src/cmd/cmd-inet/lib/nwamd/logging.c
48
log_out(int severity, const char *str)
usr/src/cmd/cmd-inet/lib/nwamd/logging.c
53
syslog(severity, str);
usr/src/cmd/cmd-inet/lib/nwamd/ncu_ip.c
226
char str[INET6_ADDRSTRLEN];
usr/src/cmd/cmd-inet/lib/nwamd/ncu_ip.c
239
&nif->nwamd_if_ipv4_default_route, str,
usr/src/cmd/cmd-inet/lib/nwamd/ncu_ip.c
240
sizeof (str)));
usr/src/cmd/cmd-inet/lib/nwamd/ncu_ip.c
258
&nif->nwamd_if_ipv6_default_route, str,
usr/src/cmd/cmd-inet/lib/nwamd/ncu_ip.c
259
sizeof (str)));
usr/src/cmd/cmd-inet/lib/nwamd/ncu_ip.c
276
char str[INET6_ADDRSTRLEN];
usr/src/cmd/cmd-inet/lib/nwamd/ncu_ip.c
279
nwamd_sockaddr2str((struct sockaddr *)addr, str, sizeof (str)));
usr/src/cmd/cmd-inet/lib/nwamd/ncu_ip.c
333
char str[INET6_ADDRSTRLEN];
usr/src/cmd/cmd-inet/lib/nwamd/ncu_ip.c
336
nwamd_sockaddr2str((struct sockaddr *)addr, str, sizeof (str)));
usr/src/cmd/cmd-inet/lib/nwamd/ncu_ip.c
67
nwamd_sockaddr2str(const struct sockaddr *addr, char *str, size_t len)
usr/src/cmd/cmd-inet/lib/nwamd/ncu_ip.c
79
straddr = inet_ntop(AF_INET, (void *)&sin->sin_addr, str, len);
usr/src/cmd/cmd-inet/lib/nwamd/ncu_ip.c
83
straddr = inet_ntop(AF_INET6, (void *)&sin6->sin6_addr, str,
usr/src/cmd/cmd-inet/lib/nwamd/ncu_ip.c
89
return (straddr != NULL ? str : NULL);
usr/src/cmd/cmd-inet/lib/nwamd/util.c
631
const char *str)
usr/src/cmd/cmd-inet/lib/nwamd/util.c
647
if (scf_value_set_astring(res.sr_val, str) != 0)
usr/src/cmd/cmd-inet/sbin/dhcpagent/packet.c
961
struct strioctl str;
usr/src/cmd/cmd-inet/sbin/dhcpagent/packet.c
966
str.ic_cmd = SIOCGDSTINFO;
usr/src/cmd/cmd-inet/sbin/dhcpagent/packet.c
967
str.ic_timout = 0;
usr/src/cmd/cmd-inet/sbin/dhcpagent/packet.c
968
str.ic_len = sizeof (dinfo);
usr/src/cmd/cmd-inet/sbin/dhcpagent/packet.c
969
str.ic_dp = (char *)&dinfo;
usr/src/cmd/cmd-inet/sbin/dhcpagent/packet.c
970
if (ioctl(v6_sock_fd, I_STR, &str) == -1) {
usr/src/cmd/cmd-inet/usr.bin/chat/chat.c
1576
char *str, *buf0;
usr/src/cmd/cmd-inet/usr.bin/chat/chat.c
1626
str = 0;
usr/src/cmd/cmd-inet/usr.bin/chat/chat.c
1654
str = va_arg(args, char *);
usr/src/cmd/cmd-inet/usr.bin/chat/chat.c
1659
str = num;
usr/src/cmd/cmd-inet/usr.bin/chat/chat.c
1662
str = strerror(errno);
usr/src/cmd/cmd-inet/usr.bin/chat/chat.c
1718
str = num + sizeof(num);
usr/src/cmd/cmd-inet/usr.bin/chat/chat.c
1719
*--str = 0;
usr/src/cmd/cmd-inet/usr.bin/chat/chat.c
1720
while (str > num + neg) {
usr/src/cmd/cmd-inet/usr.bin/chat/chat.c
1721
*--str = hexchars[val % base];
usr/src/cmd/cmd-inet/usr.bin/chat/chat.c
1728
*--str = '-';
usr/src/cmd/cmd-inet/usr.bin/chat/chat.c
1731
*--str = 'x';
usr/src/cmd/cmd-inet/usr.bin/chat/chat.c
1732
*--str = '0';
usr/src/cmd/cmd-inet/usr.bin/chat/chat.c
1735
len = num + sizeof(num) - 1 - str;
usr/src/cmd/cmd-inet/usr.bin/chat/chat.c
1737
len = strlen(str);
usr/src/cmd/cmd-inet/usr.bin/chat/chat.c
1752
memcpy(buf, str, len);
usr/src/cmd/cmd-inet/usr.bin/chat/chat.c
844
static char *str = "";
usr/src/cmd/cmd-inet/usr.bin/chat/chat.c
852
str = s;
usr/src/cmd/cmd-inet/usr.bin/chat/chat.c
857
if (*str)
usr/src/cmd/cmd-inet/usr.bin/chat/chat.c
858
result = str;
usr/src/cmd/cmd-inet/usr.bin/chat/chat.c
862
while (*str) {
usr/src/cmd/cmd-inet/usr.bin/chat/chat.c
865
++str;
usr/src/cmd/cmd-inet/usr.bin/chat/chat.c
869
if (*str == '\\') {
usr/src/cmd/cmd-inet/usr.bin/chat/chat.c
870
++str;
usr/src/cmd/cmd-inet/usr.bin/chat/chat.c
878
if (strchr (term, *str) == (char *) 0) {
usr/src/cmd/cmd-inet/usr.bin/chat/chat.c
879
++str;
usr/src/cmd/cmd-inet/usr.bin/chat/chat.c
886
*str++ = '\0';
usr/src/cmd/cmd-inet/usr.bin/netstat/netstat.c
2107
prval(char *str, Counter val)
usr/src/cmd/cmd-inet/usr.bin/netstat/netstat.c
2109
(void) printf("\t%-20s=%6u", str, val);
usr/src/cmd/cmd-inet/usr.bin/netstat/netstat.c
2115
prval64(char *str, Counter64 val)
usr/src/cmd/cmd-inet/usr.bin/netstat/netstat.c
2117
(void) printf("\t%-20s=%6llu", str, val);
usr/src/cmd/cmd-inet/usr.bin/netstat/netstat.c
2123
pr_int_val(char *str, int val)
usr/src/cmd/cmd-inet/usr.bin/netstat/netstat.c
2125
(void) printf("\t%-20s=%6d", str, val);
usr/src/cmd/cmd-inet/usr.bin/netstat/netstat.c
2131
pr_sctp_rtoalgo(char *str, int val)
usr/src/cmd/cmd-inet/usr.bin/netstat/netstat.c
2133
(void) printf("\t%-20s=", str);
usr/src/cmd/cmd-inet/usr.bin/netstat/netstat.c
4098
char *str = flbuf;
usr/src/cmd/cmd-inet/usr.bin/netstat/netstat.c
4101
*str++ = 'D';
usr/src/cmd/cmd-inet/usr.bin/netstat/netstat.c
4103
*str++ = 'P';
usr/src/cmd/cmd-inet/usr.bin/netstat/netstat.c
4105
*str++ = 'U';
usr/src/cmd/cmd-inet/usr.bin/netstat/netstat.c
4107
*str++ = 'S';
usr/src/cmd/cmd-inet/usr.bin/netstat/netstat.c
4108
*str++ = '\0';
usr/src/cmd/cmd-inet/usr.bin/pppd/ccp.c
201
char *str, *endp;
usr/src/cmd/cmd-inet/usr.bin/pppd/ccp.c
203
str = *argv;
usr/src/cmd/cmd-inet/usr.bin/pppd/ccp.c
204
abits = rbits = strtol(str, &endp, 0);
usr/src/cmd/cmd-inet/usr.bin/pppd/ccp.c
205
if (endp != str && *endp == ',') {
usr/src/cmd/cmd-inet/usr.bin/pppd/ccp.c
206
str = endp + 1;
usr/src/cmd/cmd-inet/usr.bin/pppd/ccp.c
207
abits = strtol(str, &endp, 0);
usr/src/cmd/cmd-inet/usr.bin/pppd/ccp.c
209
if (*endp != '\0' || endp == str) {
usr/src/cmd/cmd-inet/usr.bin/pppd/ccp.c
239
char *str, *endp;
usr/src/cmd/cmd-inet/usr.bin/pppd/ccp.c
241
str = endp = *argv;
usr/src/cmd/cmd-inet/usr.bin/pppd/ccp.c
242
if (*str == ',')
usr/src/cmd/cmd-inet/usr.bin/pppd/ccp.c
245
abits = rbits = strtol(str, &endp, 0);
usr/src/cmd/cmd-inet/usr.bin/pppd/ccp.c
247
str = ++endp;
usr/src/cmd/cmd-inet/usr.bin/pppd/ccp.c
248
if (*str == ',')
usr/src/cmd/cmd-inet/usr.bin/pppd/ccp.c
251
abits = strtol(str, &endp, 0);
usr/src/cmd/cmd-inet/usr.bin/pppd/ccp.c
255
str = ++endp;
usr/src/cmd/cmd-inet/usr.bin/pppd/ccp.c
256
deflate_tune = strtol(str, &endp, 0);
usr/src/cmd/cmd-inet/usr.bin/pppd/ccp.c
259
if (*endp != '\0' || endp == str) {
usr/src/cmd/cmd-inet/usr.bin/pppd/main.c
2434
add_db_key(str)
usr/src/cmd/cmd-inet/usr.bin/pppd/main.c
2435
const char *str;
usr/src/cmd/cmd-inet/usr.bin/pppd/main.c
2439
key.dptr = (char *) str;
usr/src/cmd/cmd-inet/usr.bin/pppd/main.c
2440
key.dsize = strlen(str);
usr/src/cmd/cmd-inet/usr.bin/pppd/main.c
2451
delete_db_key(str)
usr/src/cmd/cmd-inet/usr.bin/pppd/main.c
2452
const char *str;
usr/src/cmd/cmd-inet/usr.bin/pppd/main.c
2456
key.dptr = (char *) str;
usr/src/cmd/cmd-inet/usr.bin/pppd/main.c
2457
key.dsize = strlen(str);
usr/src/cmd/cmd-inet/usr.bin/pppd/mschap_test.c
21
show_response(chap_state *cstate, const char *str)
usr/src/cmd/cmd-inet/usr.bin/pppd/mschap_test.c
25
printf("%s -- %d bytes:", str, cstate->resp_length);
usr/src/cmd/cmd-inet/usr.bin/pppd/multilink.c
191
parse_num(str, key, valp)
usr/src/cmd/cmd-inet/usr.bin/pppd/multilink.c
192
char *str;
usr/src/cmd/cmd-inet/usr.bin/pppd/multilink.c
199
p = strstr(str, key);
usr/src/cmd/cmd-inet/usr.bin/pppd/multilink.c
278
static char str[MAX_ENDP_LEN*3+8];
usr/src/cmd/cmd-inet/usr.bin/pppd/multilink.c
289
(void) slprintf(str, sizeof(str), "IP:%I", htonl(addr));
usr/src/cmd/cmd-inet/usr.bin/pppd/multilink.c
290
return str;
usr/src/cmd/cmd-inet/usr.bin/pppd/multilink.c
299
q = str;
usr/src/cmd/cmd-inet/usr.bin/pppd/multilink.c
301
q += slprintf(q, sizeof(str)-1, "%s",
usr/src/cmd/cmd-inet/usr.bin/pppd/multilink.c
304
q += slprintf(q, sizeof(str)-1, "%d", ep->class);
usr/src/cmd/cmd-inet/usr.bin/pppd/multilink.c
311
q += slprintf(q, str + sizeof(str) - q, "%.2x", ep->value[i]);
usr/src/cmd/cmd-inet/usr.bin/pppd/multilink.c
313
return str;
usr/src/cmd/cmd-inet/usr.bin/pppd/multilink.c
326
str_to_epdisc(ep, str)
usr/src/cmd/cmd-inet/usr.bin/pppd/multilink.c
328
char *str;
usr/src/cmd/cmd-inet/usr.bin/pppd/multilink.c
335
if (strncasecmp(str, endp_class_names[i], sl) == 0) {
usr/src/cmd/cmd-inet/usr.bin/pppd/multilink.c
336
str += sl;
usr/src/cmd/cmd-inet/usr.bin/pppd/multilink.c
342
i = strtol(str, &endp, 10);
usr/src/cmd/cmd-inet/usr.bin/pppd/multilink.c
343
if (endp == str) {
usr/src/cmd/cmd-inet/usr.bin/pppd/multilink.c
345
str);
usr/src/cmd/cmd-inet/usr.bin/pppd/multilink.c
348
str = endp;
usr/src/cmd/cmd-inet/usr.bin/pppd/multilink.c
351
if (*str == 0) {
usr/src/cmd/cmd-inet/usr.bin/pppd/multilink.c
355
if (*str != ':' && *str != '.') {
usr/src/cmd/cmd-inet/usr.bin/pppd/multilink.c
356
option_error("invalid class/value separator '%c'", *str);
usr/src/cmd/cmd-inet/usr.bin/pppd/multilink.c
359
++str;
usr/src/cmd/cmd-inet/usr.bin/pppd/multilink.c
363
i = parse_dotted_ip(str, &addr);
usr/src/cmd/cmd-inet/usr.bin/pppd/multilink.c
364
if (i == 0 || str[i] != 0)
usr/src/cmd/cmd-inet/usr.bin/pppd/multilink.c
371
get_if_hwaddr(ep->value, sizeof(ep->value), str) >= 0) {
usr/src/cmd/cmd-inet/usr.bin/pppd/multilink.c
377
p = str;
usr/src/cmd/cmd-inet/usr.bin/pppd/multilink.c
379
if (*str == 0)
usr/src/cmd/cmd-inet/usr.bin/pppd/multilink.c
381
if (p <= str)
usr/src/cmd/cmd-inet/usr.bin/pppd/multilink.c
382
for (p = str; isxdigit(*p); ++p)
usr/src/cmd/cmd-inet/usr.bin/pppd/multilink.c
384
i = p - str;
usr/src/cmd/cmd-inet/usr.bin/pppd/multilink.c
386
option_error("no valid hex digits in \"%s\"", str);
usr/src/cmd/cmd-inet/usr.bin/pppd/multilink.c
389
ep->value[l] = hexc_val(*str++);
usr/src/cmd/cmd-inet/usr.bin/pppd/multilink.c
391
ep->value[l] = (ep->value[l] << 4) + hexc_val(*str++);
usr/src/cmd/cmd-inet/usr.bin/pppd/multilink.c
392
if (*str == ':' || *str == '.')
usr/src/cmd/cmd-inet/usr.bin/pppd/multilink.c
393
++str;
usr/src/cmd/cmd-inet/usr.bin/pppd/multilink.c
395
if (*str != 0) {
usr/src/cmd/cmd-inet/usr.bin/pppd/multilink.c
49
static int parse_num __P((char *str, const char *key, int *valp));
usr/src/cmd/cmd-inet/usr.bin/pppd/options.c
1394
number_option(str, valp, base)
usr/src/cmd/cmd-inet/usr.bin/pppd/options.c
1395
char *str;
usr/src/cmd/cmd-inet/usr.bin/pppd/options.c
1401
*valp = strtoul(str, &ptr, base);
usr/src/cmd/cmd-inet/usr.bin/pppd/options.c
1402
if (ptr == str || *ptr != '\0') {
usr/src/cmd/cmd-inet/usr.bin/pppd/options.c
1404
str, current_option);
usr/src/cmd/cmd-inet/usr.bin/pppd/options.c
1460
int_option(str, valp)
usr/src/cmd/cmd-inet/usr.bin/pppd/options.c
1461
char *str;
usr/src/cmd/cmd-inet/usr.bin/pppd/options.c
1466
if (!number_option(str, &v, 0))
usr/src/cmd/cmd-inet/usr.bin/pppd/options.c
168
static int number_option __P((char *str, u_int32_t *valp, int base));
usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/pppoe.c
170
char *str;
usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/pppoe.c
177
if ((str = malloc(totlen + 1)) == NULL) {
usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/pppoe.c
181
cp = str;
usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/pppoe.c
189
script_setenv(envname, str, 0);
usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/pppoe.c
202
char *str;
usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/pppoe.c
207
str = NULL;
usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/pppoe.c
216
if ((str = malloc(tlen + 1)) == NULL) {
usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/pppoe.c
220
(void) memcpy(str, POET_DATA(tagp), tlen);
usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/pppoe.c
221
str[tlen] = '\0';
usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/pppoe.c
225
if (str != NULL)
usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/pppoe.c
228
if (str == NULL)
usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/pppoe.c
231
*argv++ = str;
usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/pppoe.c
248
char *str;
usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/pppoe.c
257
str = NULL;
usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/pppoe.c
266
(str = malloc(RTE_MSG_LEN)) == NULL) {
usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/pppoe.c
272
if (str != NULL)
usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/pppoe.c
275
if (str == NULL)
usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/pppoe.c
279
(void) slprintf(str, RTE_MSG_LEN, "%I %I %I %d",
usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/pppoe.c
284
script_setenv(envname, str, 0);
usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/pppoe.c
285
*argv++ = str; /* Destination */
usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/pppoe.c
286
str = strchr(str, ' ');
usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/pppoe.c
287
*str++ = '\0';
usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/pppoe.c
288
*argv++ = str; /* Subnet mask */
usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/pppoe.c
289
str = strchr(str, ' ');
usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/pppoe.c
290
*str++ = '\0';
usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/pppoe.c
291
*argv++ = str; /* Gateway */
usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/pppoe.c
292
str = strchr(str, ' ');
usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/pppoe.c
293
*str++ = '\0';
usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/pppoe.c
294
*argv++ = str; /* Metric */
usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/pppoe.c
313
char *str;
usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/pppoe.c
357
str = NULL;
usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/pppoe.c
359
(str = strdup(cstr)) == NULL) {
usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/pppoe.c
362
if ((cp = strrchr(str, ':')) == NULL)
usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/pppoe.c
363
cp = str + strlen(str);
usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/pppoe.c
366
argv[2] = str;
usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/pppoe.c
375
if (str != NULL)
usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/pppoe.c
376
free(str);
usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/pppoe.c
67
struct strioctl str;
usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/pppoe.c
69
str.ic_cmd = cmd;
usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/pppoe.c
70
str.ic_timout = 0; /* Use default timer; 15 seconds */
usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/pppoe.c
71
str.ic_len = ilen;
usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/pppoe.c
72
str.ic_dp = ptr;
usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/pppoe.c
74
if (ioctl(fd, I_STR, &str) == -1) {
usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/pppoe.c
77
if (str.ic_len != olen) {
usr/src/cmd/cmd-inet/usr.bin/pppd/sys-solaris.c
2522
sifroute(int u, u_int32_t l, u_int32_t g, int add, const char *str)
usr/src/cmd/cmd-inet/usr.bin/pppd/sys-solaris.c
2528
error("Can't %s route: IP is not enabled", str);
usr/src/cmd/cmd-inet/usr.bin/pppd/sys-solaris.c
2548
error("Can't %s route: %m", str);
usr/src/cmd/cmd-inet/usr.bin/pppd/sys-solaris.c
2607
char *str = NULL;
usr/src/cmd/cmd-inet/usr.bin/pppd/sys-solaris.c
2633
str = _link_ntoa(cp, str, arpreq.xarp_ha.sdl_alen, IFT_OTHER);
usr/src/cmd/cmd-inet/usr.bin/pppd/sys-solaris.c
2634
if (str != NULL) {
usr/src/cmd/cmd-inet/usr.bin/pppd/sys-solaris.c
2636
str);
usr/src/cmd/cmd-inet/usr.bin/pppd/sys-solaris.c
2637
free(str);
usr/src/cmd/cmd-inet/usr.bin/pppd/sys-solaris.c
2859
struct strioctl str;
usr/src/cmd/cmd-inet/usr.bin/pppd/sys-solaris.c
2861
str.ic_cmd = cmd;
usr/src/cmd/cmd-inet/usr.bin/pppd/sys-solaris.c
2862
str.ic_timout = PPPSTRTIMOUT;
usr/src/cmd/cmd-inet/usr.bin/pppd/sys-solaris.c
2863
str.ic_len = ilen;
usr/src/cmd/cmd-inet/usr.bin/pppd/sys-solaris.c
2864
str.ic_dp = ptr;
usr/src/cmd/cmd-inet/usr.bin/pppd/sys-solaris.c
2866
if (myioctl(fd, I_STR, &str) == -1) {
usr/src/cmd/cmd-inet/usr.bin/pppd/sys-solaris.c
2869
if (str.ic_len != olen) {
usr/src/cmd/cmd-inet/usr.bin/pppd/sys-solaris.c
2871
olen, str.ic_len, cmd);
usr/src/cmd/cmd-inet/usr.bin/pppd/sys-solaris.c
3504
char *str;
usr/src/cmd/cmd-inet/usr.bin/pppd/sys-solaris.c
3528
str = (be->val & mstate) ? be->on : be->off;
usr/src/cmd/cmd-inet/usr.bin/pppd/sys-solaris.c
3529
if (str != NULL) {
usr/src/cmd/cmd-inet/usr.bin/pppd/sys-solaris.c
3532
(void) strcat(sbuf, str);
usr/src/cmd/cmd-inet/usr.bin/pppd/utils.c
189
const char *f, *str;
usr/src/cmd/cmd-inet/usr.bin/pppd/utils.c
252
str = 0;
usr/src/cmd/cmd-inet/usr.bin/pppd/utils.c
318
str = va_arg(args, const char *);
usr/src/cmd/cmd-inet/usr.bin/pppd/utils.c
323
str = num;
usr/src/cmd/cmd-inet/usr.bin/pppd/utils.c
326
str = strerror(errno);
usr/src/cmd/cmd-inet/usr.bin/pppd/utils.c
333
str = num;
usr/src/cmd/cmd-inet/usr.bin/pppd/utils.c
340
str = (const char *)mstr;
usr/src/cmd/cmd-inet/usr.bin/pppd/utils.c
443
str = (const char *)mstr;
usr/src/cmd/cmd-inet/usr.bin/pppd/utils.c
445
len = strlen(str);
usr/src/cmd/cmd-inet/usr.bin/pppd/utils.c
460
(void) memcpy(buf, str, len);
usr/src/cmd/cmd-inet/usr.bin/pppd/utils.c
85
strllen(str, len)
usr/src/cmd/cmd-inet/usr.bin/pppd/utils.c
86
const char *str;
usr/src/cmd/cmd-inet/usr.bin/pppd/utils.c
92
if (*str++ == '\0')
usr/src/cmd/cmd-inet/usr.bin/pppdump/zlib.c
565
#define INSERT_STRING(s, str, match_head) \
usr/src/cmd/cmd-inet/usr.bin/pppdump/zlib.c
566
(UPDATE_HASH(s, s->ins_h, s->window[(str) + (MIN_MATCH-1)]), \
usr/src/cmd/cmd-inet/usr.bin/pppdump/zlib.c
567
s->prev[(str) & s->w_mask] = match_head = s->head[s->ins_h], \
usr/src/cmd/cmd-inet/usr.bin/pppdump/zlib.c
568
s->head[s->ins_h] = (str))
usr/src/cmd/cmd-inet/usr.bin/pppstats/pppstats.c
233
struct strioctl str;
usr/src/cmd/cmd-inet/usr.bin/pppstats/pppstats.c
235
str.ic_cmd = cmd;
usr/src/cmd/cmd-inet/usr.bin/pppstats/pppstats.c
236
str.ic_timout = 0;
usr/src/cmd/cmd-inet/usr.bin/pppstats/pppstats.c
237
str.ic_len = ilen;
usr/src/cmd/cmd-inet/usr.bin/pppstats/pppstats.c
238
str.ic_dp = ptr;
usr/src/cmd/cmd-inet/usr.bin/pppstats/pppstats.c
239
if (ioctl(fd, I_STR, &str) == -1)
usr/src/cmd/cmd-inet/usr.bin/pppstats/pppstats.c
241
if (str.ic_len != olen)
usr/src/cmd/cmd-inet/usr.bin/pppstats/pppstats.c
244
olen, str.ic_len, cmd);
usr/src/cmd/cmd-inet/usr.bin/rcp.c
1049
removebrackets(char *str)
usr/src/cmd/cmd-inet/usr.bin/rcp.c
1051
char *newstr = str;
usr/src/cmd/cmd-inet/usr.bin/rcp.c
1053
if ((str[0] == '[') && (str[strlen(str) - 1] == ']')) {
usr/src/cmd/cmd-inet/usr.bin/rcp.c
1054
newstr = str + 1;
usr/src/cmd/cmd-inet/usr.bin/rcp.c
1055
str[strlen(str) - 1] = '\0';
usr/src/cmd/cmd-inet/usr.bin/rcp.c
1428
#define SCREWUP(str) { why = str; goto screwup; }
usr/src/cmd/cmd-inet/usr.bin/rdist/gram.y
343
any(c, str)
usr/src/cmd/cmd-inet/usr.bin/rdist/gram.y
345
register char *str;
usr/src/cmd/cmd-inet/usr.bin/rdist/gram.y
347
while (*str)
usr/src/cmd/cmd-inet/usr.bin/rdist/gram.y
348
if (c == *str++)
usr/src/cmd/cmd-inet/usr.bin/rdist/gram.y
461
makestr(str)
usr/src/cmd/cmd-inet/usr.bin/rdist/gram.y
462
char *str;
usr/src/cmd/cmd-inet/usr.bin/rdist/gram.y
466
str = cp = malloc(strlen(s = str) + 1);
usr/src/cmd/cmd-inet/usr.bin/rdist/gram.y
471
return(str);
usr/src/cmd/cmd-inet/usr.bin/telnet/authenc.c
100
printsub('>', &str[2], len - 2);
usr/src/cmd/cmd-inet/usr.bin/telnet/authenc.c
95
net_write(unsigned char *str, int len)
usr/src/cmd/cmd-inet/usr.bin/telnet/authenc.c
98
ring_supply_data(&netoring, str, len);
usr/src/cmd/cmd-inet/usr.bin/telnet/authenc.c
99
if (str[0] == IAC && str[1] == SE)
usr/src/cmd/cmd-inet/usr.bin/telnet/commands.c
175
set_argv(str)
usr/src/cmd/cmd-inet/usr.bin/telnet/commands.c
176
char *str;
usr/src/cmd/cmd-inet/usr.bin/telnet/commands.c
191
margv[margc] = str;
usr/src/cmd/cmd-inet/usr.bin/telnet/commands.c
192
if (str != NULL)
usr/src/cmd/cmd-inet/usr.bin/telnet/utilities.c
1243
GetAndAppendString(bufp, bufsiz, str, st)
usr/src/cmd/cmd-inet/usr.bin/telnet/utilities.c
1246
char *str;
usr/src/cmd/cmd-inet/usr.bin/telnet/utilities.c
1249
unsigned int off = strlen(str);
usr/src/cmd/cmd-inet/usr.bin/telnet/utilities.c
1254
return (memcpy(*bufp, str, off));
usr/src/cmd/cmd-inet/usr.bin/tftp/main.c
815
finddelimiter(char *str)
usr/src/cmd/cmd-inet/usr.bin/tftp/main.c
820
for (cp = str; *cp != '\0'; cp++) {
usr/src/cmd/cmd-inet/usr.bin/tftp/main.c
837
removebrackets(char *str)
usr/src/cmd/cmd-inet/usr.bin/tftp/main.c
839
char *newstr = str;
usr/src/cmd/cmd-inet/usr.bin/tftp/main.c
841
if ((str[0] == '[') && (str[strlen(str) - 1] == ']')) {
usr/src/cmd/cmd-inet/usr.bin/tftp/main.c
842
newstr = str + 1;
usr/src/cmd/cmd-inet/usr.bin/tftp/main.c
843
str[strlen(str) - 1] = '\0';
usr/src/cmd/cmd-inet/usr.lib/ilbd/ilbd_support.c
106
logperror(const char *str)
usr/src/cmd/cmd-inet/usr.lib/ilbd/ilbd_support.c
109
(void) fprintf(stderr, "%s: %s\n", str, strerror(errno));
usr/src/cmd/cmd-inet/usr.lib/ilbd/ilbd_support.c
111
syslog(LOG_ERR, "%s: %m", str);
usr/src/cmd/cmd-inet/usr.lib/in.mpathd/mpd_defs.h
211
extern void logperror(const char *str);
usr/src/cmd/cmd-inet/usr.lib/in.mpathd/mpd_main.c
2827
logperror(const char *str)
usr/src/cmd/cmd-inet/usr.lib/in.mpathd/mpd_main.c
2830
syslog(LOG_ERR, "%s: %m\n", str);
usr/src/cmd/cmd-inet/usr.lib/in.mpathd/mpd_main.c
2832
(void) fprintf(stderr, "%s: %s\n", str, strerror(errno));
usr/src/cmd/cmd-inet/usr.lib/in.mpathd/mpd_main.c
2836
logperror_pii(struct phyint_instance *pii, const char *str)
usr/src/cmd/cmd-inet/usr.lib/in.mpathd/mpd_main.c
2840
str, AF_STR(pii->pii_af), pii->pii_phyint->pi_name);
usr/src/cmd/cmd-inet/usr.lib/in.mpathd/mpd_main.c
2843
str, AF_STR(pii->pii_af), pii->pii_phyint->pi_name,
usr/src/cmd/cmd-inet/usr.lib/in.mpathd/mpd_main.c
2849
logperror_li(struct logint *li, const char *str)
usr/src/cmd/cmd-inet/usr.lib/in.mpathd/mpd_main.c
2855
str, AF_STR(pii->pii_af), li->li_name);
usr/src/cmd/cmd-inet/usr.lib/in.mpathd/mpd_main.c
2858
str, AF_STR(pii->pii_af), li->li_name,
usr/src/cmd/cmd-inet/usr.lib/in.mpathd/mpd_tables.h
452
extern void logperror_pii(struct phyint_instance *pii, const char *str);
usr/src/cmd/cmd-inet/usr.lib/in.mpathd/mpd_tables.h
453
extern void logperror_li(struct logint *li, const char *str);
usr/src/cmd/cmd-inet/usr.lib/in.ndpd/config.c
719
parse_onoff(char *str, uint_t *resp)
usr/src/cmd/cmd-inet/usr.lib/in.ndpd/config.c
721
if (strcasecmp(str, "on") == 0) {
usr/src/cmd/cmd-inet/usr.lib/in.ndpd/config.c
725
if (strcasecmp(str, "off") == 0) {
usr/src/cmd/cmd-inet/usr.lib/in.ndpd/config.c
729
if (strcasecmp(str, "true") == 0) {
usr/src/cmd/cmd-inet/usr.lib/in.ndpd/config.c
733
if (strcasecmp(str, "false") == 0) {
usr/src/cmd/cmd-inet/usr.lib/in.ndpd/config.c
737
if (parse_int(str, resp)) {
usr/src/cmd/cmd-inet/usr.lib/in.ndpd/config.c
748
parse_int(char *str, uint_t *resp)
usr/src/cmd/cmd-inet/usr.lib/in.ndpd/config.c
753
res = strtoul(str, &end, 0);
usr/src/cmd/cmd-inet/usr.lib/in.ndpd/config.c
754
if (end == str)
usr/src/cmd/cmd-inet/usr.lib/in.ndpd/config.c
767
parse_ms(char *str, uint_t *resp)
usr/src/cmd/cmd-inet/usr.lib/in.ndpd/config.c
774
(void) strncpy(str2, str, sizeof (str2));
usr/src/cmd/cmd-inet/usr.lib/in.ndpd/config.c
826
parse_s(char *str, uint_t *resp)
usr/src/cmd/cmd-inet/usr.lib/in.ndpd/config.c
833
(void) strncpy(str2, str, sizeof (str2));
usr/src/cmd/cmd-inet/usr.lib/in.ndpd/config.c
871
char str[BUFSIZ]; /* Local copy for modification */
usr/src/cmd/cmd-inet/usr.lib/in.ndpd/config.c
876
(void) strncpy(str, strin, sizeof (str));
usr/src/cmd/cmd-inet/usr.lib/in.ndpd/config.c
877
str[sizeof (str) - 1] = '\0';
usr/src/cmd/cmd-inet/usr.lib/in.ndpd/config.c
879
cp = strchr(str, '/');
usr/src/cmd/cmd-inet/usr.lib/in.ndpd/config.c
892
if (inet_pton(AF_INET6, str, in6) != 1)
usr/src/cmd/cmd-inet/usr.lib/in.ndpd/config.c
908
parse_date(char *str, uint_t *resp)
usr/src/cmd/cmd-inet/usr.lib/in.ndpd/config.c
923
tm = getdate(str);
usr/src/cmd/cmd-inet/usr.lib/in.ndpd/config.c
926
str, getdate_err);
usr/src/cmd/cmd-inet/usr.lib/in.ndpd/config.c
940
conferr("Date in the past <%s>\n", str);
usr/src/cmd/cmd-inet/usr.lib/in.ndpd/defs.h
135
extern void logperror(const char *str);
usr/src/cmd/cmd-inet/usr.lib/in.ndpd/defs.h
136
extern void logperror_pi(const struct phyint *pi, const char *str);
usr/src/cmd/cmd-inet/usr.lib/in.ndpd/defs.h
137
extern void logperror_pr(const struct prefix *pr, const char *str);
usr/src/cmd/cmd-inet/usr.lib/in.ndpd/main.c
2142
logperror(const char *str)
usr/src/cmd/cmd-inet/usr.lib/in.ndpd/main.c
2145
syslog(LOG_ERR, "%s: %m\n", str);
usr/src/cmd/cmd-inet/usr.lib/in.ndpd/main.c
2148
(void) fprintf(stderr, "%s: %s\n", str, strerror(errno));
usr/src/cmd/cmd-inet/usr.lib/in.ndpd/main.c
2153
logperror_pi(const struct phyint *pi, const char *str)
usr/src/cmd/cmd-inet/usr.lib/in.ndpd/main.c
2157
str, pi->pi_name);
usr/src/cmd/cmd-inet/usr.lib/in.ndpd/main.c
2161
str, pi->pi_name, strerror(errno));
usr/src/cmd/cmd-inet/usr.lib/in.ndpd/main.c
2166
logperror_pr(const struct prefix *pr, const char *str)
usr/src/cmd/cmd-inet/usr.lib/in.ndpd/main.c
2170
str, pr->pr_name, pr->pr_physical->pi_name);
usr/src/cmd/cmd-inet/usr.lib/in.ndpd/main.c
2174
str, pr->pr_name, pr->pr_physical->pi_name,
usr/src/cmd/cmd-inet/usr.lib/in.ndpd/tables.h
308
extern void print_route_sol(char *str, struct phyint *pi,
usr/src/cmd/cmd-inet/usr.lib/in.ndpd/tables.h
311
extern void print_route_adv(char *str, struct phyint *pi,
usr/src/cmd/cmd-inet/usr.lib/in.ndpd/trace.c
33
print_route_sol(char *str, struct phyint *pi,
usr/src/cmd/cmd-inet/usr.lib/in.ndpd/trace.c
39
logmsg(LOG_DEBUG, "%s %s (%d bytes) on %s\n", str,
usr/src/cmd/cmd-inet/usr.lib/in.ndpd/trace.c
50
print_route_adv(char *str, struct phyint *pi,
usr/src/cmd/cmd-inet/usr.lib/in.ndpd/trace.c
56
logmsg(LOG_DEBUG, "%s %s (%d bytes) on %s\n", str,
usr/src/cmd/cmd-inet/usr.lib/pppoe/common.c
123
struct strioctl str;
usr/src/cmd/cmd-inet/usr.lib/pppoe/common.c
125
str.ic_cmd = cmd;
usr/src/cmd/cmd-inet/usr.lib/pppoe/common.c
126
str.ic_timout = 0; /* Default timeout; 15 seconds */
usr/src/cmd/cmd-inet/usr.lib/pppoe/common.c
127
str.ic_len = ilen;
usr/src/cmd/cmd-inet/usr.lib/pppoe/common.c
128
str.ic_dp = ptr;
usr/src/cmd/cmd-inet/usr.lib/pppoe/common.c
130
if (ioctl(fd, I_STR, &str) == -1) {
usr/src/cmd/cmd-inet/usr.lib/pppoe/common.c
133
if (str.ic_len != olen) {
usr/src/cmd/cmd-inet/usr.lib/pppoe/common.c
223
poe_add_str(poep_t *poep, uint16_t ttype, const char *str)
usr/src/cmd/cmd-inet/usr.lib/pppoe/common.c
225
return (poe_tag_insert(poep, ttype, str, strlen(str)));
usr/src/cmd/cmd-inet/usr.lib/pppoe/common.h
77
extern int poe_add_str(poep_t *poep, uint16_t ttype, const char *str);
usr/src/cmd/cmd-inet/usr.lib/pppoe/options.c
1896
char *str;
usr/src/cmd/cmd-inet/usr.lib/pppoe/options.c
2025
str = "Solaris PPPoE";
usr/src/cmd/cmd-inet/usr.lib/pppoe/options.c
2027
str = sep->se_server;
usr/src/cmd/cmd-inet/usr.lib/pppoe/options.c
2028
(void) poe_add_str(opoe, POETT_ACCESS, str);
usr/src/cmd/cmd-inet/usr.lib/pppoe/options.c
208
strsave(const char *str)
usr/src/cmd/cmd-inet/usr.lib/pppoe/options.c
212
if (str == NULL)
usr/src/cmd/cmd-inet/usr.lib/pppoe/options.c
214
newstr = (char *)malloc(strlen(str) + 1);
usr/src/cmd/cmd-inet/usr.lib/pppoe/options.c
216
(void) strcpy(newstr, str);
usr/src/cmd/cmd-inet/usr.lib/pppoe/options.c
364
set_service(struct service_list *slp, const char *str)
usr/src/cmd/cmd-inet/usr.lib/pppoe/options.c
374
slp = (struct service_list *)calloc(sizeof (*slp) + strlen(str) + 1,
usr/src/cmd/cmd-inet/usr.lib/pppoe/options.c
377
logerr("no memory for service \"%s\"", str);
usr/src/cmd/cmd-inet/usr.lib/pppoe/options.c
392
(void) strcpy((char *)(slp+1), str);
usr/src/cmd/cmd-inet/usr.lib/pppoe/options.c
406
set_wildcard(struct service_list *slp, const char *str)
usr/src/cmd/cmd-inet/usr.lib/pppoe/options.c
412
slp->sl_parse->ps_cfile->pf_name, str);
usr/src/cmd/cmd-inet/usr.lib/pppoe/options.c
417
(*str == 'n' ? SEF_NOWILD : SEF_WILD);
usr/src/cmd/cmd-inet/usr.lib/pppoe/options.c
426
set_debug(struct service_list *slp, const char *str)
usr/src/cmd/cmd-inet/usr.lib/pppoe/options.c
440
set_nodebug(struct service_list *slp, const char *str)
usr/src/cmd/cmd-inet/usr.lib/pppoe/options.c
455
set_string(struct service_list *slp, const char *str)
usr/src/cmd/cmd-inet/usr.lib/pppoe/options.c
483
*cpp = strsave(str);
usr/src/cmd/cmd-inet/usr.lib/pppoe/options.c
492
set_file(struct service_list *slp, const char *str)
usr/src/cmd/cmd-inet/usr.lib/pppoe/options.c
500
if ((fp = fopen(str, "r")) == NULL) {
usr/src/cmd/cmd-inet/usr.lib/pppoe/options.c
501
logwarn("%s: %s: %s", slp->sl_parse->ps_cfile->pf_name, str,
usr/src/cmd/cmd-inet/usr.lib/pppoe/options.c
505
pfp = (struct per_file *)calloc(sizeof (*pfp) + strlen(str) + 1, 1);
usr/src/cmd/cmd-inet/usr.lib/pppoe/options.c
507
logerr("no memory for parsing file %s", str);
usr/src/cmd/cmd-inet/usr.lib/pppoe/options.c
511
logdbg("config file %s open", str);
usr/src/cmd/cmd-inet/usr.lib/pppoe/options.c
515
(void) strcpy((char *)(pfp+1), str);
usr/src/cmd/cmd-inet/usr.lib/pppoe/options.c
532
set_device(struct service_list *slp, const char *str)
usr/src/cmd/cmd-inet/usr.lib/pppoe/options.c
543
logerr("\"device %s\" ignored in %s", str,
usr/src/cmd/cmd-inet/usr.lib/pppoe/options.c
548
if (strcmp(str, "*") == 0 || strcmp(str, "all") == 0) {
usr/src/cmd/cmd-inet/usr.lib/pppoe/options.c
556
while (isspace(*str) || *str == ',')
usr/src/cmd/cmd-inet/usr.lib/pppoe/options.c
557
str++;
usr/src/cmd/cmd-inet/usr.lib/pppoe/options.c
558
if (*str == '\0')
usr/src/cmd/cmd-inet/usr.lib/pppoe/options.c
560
cp = str;
usr/src/cmd/cmd-inet/usr.lib/pppoe/options.c
561
while (*str != '\0' && !isspace(*str) && *str != ',')
usr/src/cmd/cmd-inet/usr.lib/pppoe/options.c
562
str++;
usr/src/cmd/cmd-inet/usr.lib/pppoe/options.c
563
len = str - cp;
usr/src/cmd/cmd-inet/usr.lib/pppoe/options.c
603
set_client(struct service_list *slp, const char *str)
usr/src/cmd/cmd-inet/usr.lib/pppoe/options.c
619
while (isspace(*str) || *str == ',')
usr/src/cmd/cmd-inet/usr.lib/pppoe/options.c
620
str++;
usr/src/cmd/cmd-inet/usr.lib/pppoe/options.c
621
if (*str == '\0')
usr/src/cmd/cmd-inet/usr.lib/pppoe/options.c
623
cp = str;
usr/src/cmd/cmd-inet/usr.lib/pppoe/options.c
624
while (*str != '\0' && !isspace(*str) && *str != ',')
usr/src/cmd/cmd-inet/usr.lib/pppoe/options.c
625
str++;
usr/src/cmd/cmd-inet/usr.lib/pppoe/options.c
626
len = str - cp;
usr/src/cmd/cmd-inet/usr.lib/pppoe/options.c
633
while (cp < str) {
usr/src/cmd/cmd-inet/usr.lib/pppoe/options.c
643
if (cp < str && isxdigit(*cp)) {
usr/src/cmd/cmd-inet/usr.lib/pppoe/options.c
650
if (cp < str) {
usr/src/cmd/cmd-inet/usr.lib/pppoe/options.c
651
if (*cp != ':' || cp + 1 == str)
usr/src/cmd/cmd-inet/usr.lib/pppoe/options.c
656
if (cp < str) {
usr/src/cmd/cmd-inet/usr.lib/pppoe/options.c
682
set_user(struct service_list *slp, const char *str)
usr/src/cmd/cmd-inet/usr.lib/pppoe/options.c
688
if ((pw = getpwnam(str)) == NULL) {
usr/src/cmd/cmd-inet/usr.lib/pppoe/options.c
689
uid = (uid_t)strtol(str, &cp, 0);
usr/src/cmd/cmd-inet/usr.lib/pppoe/options.c
690
if (str == cp || *cp != '\0') {
usr/src/cmd/cmd-inet/usr.lib/pppoe/options.c
692
slp->sl_parse->ps_cfile->pf_name, str);
usr/src/cmd/cmd-inet/usr.lib/pppoe/options.c
704
slp->sl_parse->ps_cfile->pf_name, uid, str);
usr/src/cmd/cmd-inet/usr.lib/pppoe/options.c
715
set_group(struct service_list *slp, const char *str)
usr/src/cmd/cmd-inet/usr.lib/pppoe/options.c
721
if ((gr = getgrnam(str)) == NULL) {
usr/src/cmd/cmd-inet/usr.lib/pppoe/options.c
722
gid = (gid_t)strtol(str, &cp, 0);
usr/src/cmd/cmd-inet/usr.lib/pppoe/options.c
723
if (str == cp || *cp != '\0') {
usr/src/cmd/cmd-inet/usr.lib/pppoe/options.c
725
slp->sl_parse->ps_cfile->pf_name, str);
usr/src/cmd/cmd-inet/usr.lib/pppoe/options.c
734
slp->sl_parse->ps_cfile->pf_name, gid, str);
usr/src/cmd/cmd-inet/usr.lib/pppoe/options.c
750
int (*kwe_func)(struct service_list *slp, const char *str);
usr/src/cmd/cmd-inet/usr.lib/pppoe/pppoec.c
1056
remove_eol(char *str, size_t len)
usr/src/cmd/cmd-inet/usr.lib/pppoe/pppoec.c
1059
if (*str == '\n')
usr/src/cmd/cmd-inet/usr.lib/pppoe/pppoec.c
1060
*str = '$';
usr/src/cmd/cmd-inet/usr.lib/pppoe/pppoec.c
1061
str++;
usr/src/cmd/cmd-inet/usr.lib/pppoe/pppoec.c
451
const char *str;
usr/src/cmd/cmd-inet/usr.lib/pppoe/pppoec.c
468
str = NULL;
usr/src/cmd/cmd-inet/usr.lib/pppoe/pppoec.c
471
str = "Svc";
usr/src/cmd/cmd-inet/usr.lib/pppoe/pppoec.c
474
str = "Name";
usr/src/cmd/cmd-inet/usr.lib/pppoe/pppoec.c
477
str = "Uniq";
usr/src/cmd/cmd-inet/usr.lib/pppoe/pppoec.c
480
str = "Cookie";
usr/src/cmd/cmd-inet/usr.lib/pppoe/pppoec.c
485
str = "Relay";
usr/src/cmd/cmd-inet/usr.lib/pppoe/pppoec.c
488
str = "SvcNameErr";
usr/src/cmd/cmd-inet/usr.lib/pppoe/pppoec.c
491
str = "SysErr";
usr/src/cmd/cmd-inet/usr.lib/pppoe/pppoec.c
494
str = "GenErr";
usr/src/cmd/cmd-inet/usr.lib/pppoe/pppoec.c
499
str = "URL";
usr/src/cmd/cmd-inet/usr.lib/pppoe/pppoec.c
502
str = "Mesg";
usr/src/cmd/cmd-inet/usr.lib/pppoe/pppoec.c
518
(void) fprintf(out, "%s:\"%.*s\" ", str, tlen, dp);
usr/src/cmd/cmd-inet/usr.lib/pppoe/pppoec.c
523
(void) fprintf(out, "%s:", str);
usr/src/cmd/cmd-inet/usr.lib/pppoe/pppoec.c
706
parse_filter(const char *str, int exceptflag)
usr/src/cmd/cmd-inet/usr.lib/pppoe/pppoec.c
725
sfnew->sf_name = str;
usr/src/cmd/cmd-inet/usr.lib/pppoe/pppoec.c
730
cp = str;
usr/src/cmd/cmd-inet/usr.lib/pppoe/pppoed.c
68
early_error(const char *str)
usr/src/cmd/cmd-inet/usr.lib/pppoe/pppoed.c
74
(void) fprintf(stderr, "%s: %s: %s\n", myname, str, cp);
usr/src/cmd/cmd-inet/usr.lib/pppoe/pppoed.c
77
logerr("%s: %s", str, cp);
usr/src/cmd/cmd-inet/usr.lib/vrrpd/vrrpd.c
2161
char *str, *token;
usr/src/cmd/cmd-inet/usr.lib/vrrpd/vrrpd.c
2166
str = tmpbuf;
usr/src/cmd/cmd-inet/usr.lib/vrrpd/vrrpd.c
2172
skip_whitespace(str);
usr/src/cmd/cmd-inet/usr.lib/vrrpd/vrrpd.c
2173
if ((str - tmpbuf == strlen(tmpbuf)) || (*str == '#')) {
usr/src/cmd/cmd-inet/usr.lib/vrrpd/vrrpd.c
2181
for (token = strtok_r(str, " \n\t", &next); token != NULL;
usr/src/cmd/cmd-inet/usr.lib/vrrpd/vrrpd.c
2195
vrrpd_readprop(const char *str, vrrp_vr_conf_t *conf)
usr/src/cmd/cmd-inet/usr.lib/vrrpd/vrrpd.c
2201
if ((pstr = strchr(str, '=')) == NULL) {
usr/src/cmd/cmd-inet/usr.lib/vrrpd/vrrpd.c
2202
vrrp_log(VRRP_ERR, "vrrpd_readprop(%s): invalid property", str);
usr/src/cmd/cmd-inet/usr.lib/vrrpd/vrrpd.c
2209
if (strcasecmp(str, prop->vs_propname) == 0) {
usr/src/cmd/cmd-inet/usr.lib/vrrpd/vrrpd.c
2216
vrrp_log(VRRP_ERR, "vrrpd_readprop(%s): invalid property", str);
usr/src/cmd/cmd-inet/usr.lib/vrrpd/vrrpd.c
2224
vrrp_rd_prop_name(vrrp_vr_conf_t *conf, const char *str)
usr/src/cmd/cmd-inet/usr.lib/vrrpd/vrrpd.c
2227
return (strlcpy(conf->vvc_name, str, size) < size);
usr/src/cmd/cmd-inet/usr.lib/vrrpd/vrrpd.c
2231
vrrp_rd_prop_vrid(vrrp_vr_conf_t *conf, const char *str)
usr/src/cmd/cmd-inet/usr.lib/vrrpd/vrrpd.c
2233
conf->vvc_vrid = strtol(str, NULL, 0);
usr/src/cmd/cmd-inet/usr.lib/vrrpd/vrrpd.c
2240
vrrp_rd_prop_af(vrrp_vr_conf_t *conf, const char *str)
usr/src/cmd/cmd-inet/usr.lib/vrrpd/vrrpd.c
2242
if (strcasecmp(str, "AF_INET") == 0)
usr/src/cmd/cmd-inet/usr.lib/vrrpd/vrrpd.c
2244
else if (strcasecmp(str, "AF_INET6") == 0)
usr/src/cmd/cmd-inet/usr.lib/vrrpd/vrrpd.c
2252
vrrp_rd_prop_pri(vrrp_vr_conf_t *conf, const char *str)
usr/src/cmd/cmd-inet/usr.lib/vrrpd/vrrpd.c
2254
conf->vvc_pri = strtol(str, NULL, 0);
usr/src/cmd/cmd-inet/usr.lib/vrrpd/vrrpd.c
2261
vrrp_rd_prop_adver_int(vrrp_vr_conf_t *conf, const char *str)
usr/src/cmd/cmd-inet/usr.lib/vrrpd/vrrpd.c
2263
conf->vvc_adver_int = strtol(str, NULL, 0);
usr/src/cmd/cmd-inet/usr.lib/vrrpd/vrrpd.c
2270
vrrp_rd_prop_preempt(vrrp_vr_conf_t *conf, const char *str)
usr/src/cmd/cmd-inet/usr.lib/vrrpd/vrrpd.c
2272
if (strcasecmp(str, "true") == 0)
usr/src/cmd/cmd-inet/usr.lib/vrrpd/vrrpd.c
2274
else if (strcasecmp(str, "false") == 0)
usr/src/cmd/cmd-inet/usr.lib/vrrpd/vrrpd.c
2282
vrrp_rd_prop_accept(vrrp_vr_conf_t *conf, const char *str)
usr/src/cmd/cmd-inet/usr.lib/vrrpd/vrrpd.c
2284
if (strcasecmp(str, "true") == 0)
usr/src/cmd/cmd-inet/usr.lib/vrrpd/vrrpd.c
2286
else if (strcasecmp(str, "false") == 0)
usr/src/cmd/cmd-inet/usr.lib/vrrpd/vrrpd.c
2294
vrrp_rd_prop_enabled(vrrp_vr_conf_t *conf, const char *str)
usr/src/cmd/cmd-inet/usr.lib/vrrpd/vrrpd.c
2296
if (strcasecmp(str, "enabled") == 0)
usr/src/cmd/cmd-inet/usr.lib/vrrpd/vrrpd.c
2298
else if (strcasecmp(str, "disabled") == 0)
usr/src/cmd/cmd-inet/usr.lib/vrrpd/vrrpd.c
2306
vrrp_rd_prop_ifname(vrrp_vr_conf_t *conf, const char *str)
usr/src/cmd/cmd-inet/usr.lib/vrrpd/vrrpd.c
2309
return (strlcpy(conf->vvc_link, str, size) < size);
usr/src/cmd/cmd-inet/usr.lib/vrrpd/vrrpd.c
2313
vrrp_wt_prop_name(vrrp_vr_conf_t *conf, char *str, size_t size)
usr/src/cmd/cmd-inet/usr.lib/vrrpd/vrrpd.c
2315
return (snprintf(str, size, "%s", conf->vvc_name));
usr/src/cmd/cmd-inet/usr.lib/vrrpd/vrrpd.c
2319
vrrp_wt_prop_pri(vrrp_vr_conf_t *conf, char *str, size_t size)
usr/src/cmd/cmd-inet/usr.lib/vrrpd/vrrpd.c
2321
return (snprintf(str, size, "%d", conf->vvc_pri));
usr/src/cmd/cmd-inet/usr.lib/vrrpd/vrrpd.c
2325
vrrp_wt_prop_adver_int(vrrp_vr_conf_t *conf, char *str, size_t size)
usr/src/cmd/cmd-inet/usr.lib/vrrpd/vrrpd.c
2327
return (snprintf(str, size, "%d", conf->vvc_adver_int));
usr/src/cmd/cmd-inet/usr.lib/vrrpd/vrrpd.c
2331
vrrp_wt_prop_preempt(vrrp_vr_conf_t *conf, char *str, size_t size)
usr/src/cmd/cmd-inet/usr.lib/vrrpd/vrrpd.c
2333
return (snprintf(str, size, "%s",
usr/src/cmd/cmd-inet/usr.lib/vrrpd/vrrpd.c
2338
vrrp_wt_prop_accept(vrrp_vr_conf_t *conf, char *str, size_t size)
usr/src/cmd/cmd-inet/usr.lib/vrrpd/vrrpd.c
2340
return (snprintf(str, size, "%s",
usr/src/cmd/cmd-inet/usr.lib/vrrpd/vrrpd.c
2345
vrrp_wt_prop_enabled(vrrp_vr_conf_t *conf, char *str, size_t size)
usr/src/cmd/cmd-inet/usr.lib/vrrpd/vrrpd.c
2347
return (snprintf(str, size, "%s",
usr/src/cmd/cmd-inet/usr.lib/vrrpd/vrrpd.c
2352
vrrp_wt_prop_vrid(vrrp_vr_conf_t *conf, char *str, size_t size)
usr/src/cmd/cmd-inet/usr.lib/vrrpd/vrrpd.c
2354
return (snprintf(str, size, "%d", conf->vvc_vrid));
usr/src/cmd/cmd-inet/usr.lib/vrrpd/vrrpd.c
2358
vrrp_wt_prop_af(vrrp_vr_conf_t *conf, char *str, size_t size)
usr/src/cmd/cmd-inet/usr.lib/vrrpd/vrrpd.c
2360
return (snprintf(str, size, "%s",
usr/src/cmd/cmd-inet/usr.lib/vrrpd/vrrpd.c
2365
vrrp_wt_prop_ifname(vrrp_vr_conf_t *conf, char *str, size_t size)
usr/src/cmd/cmd-inet/usr.lib/vrrpd/vrrpd.c
2367
return (snprintf(str, size, "%s", conf->vvc_link));
usr/src/cmd/cmd-inet/usr.sbin/arp.c
305
char *str = NULL;
usr/src/cmd/cmd-inet/usr.sbin/arp.c
338
str = _link_ntoa(ea, str, ar.xarp_ha.sdl_alen, IFT_OTHER);
usr/src/cmd/cmd-inet/usr.sbin/arp.c
339
if (str != NULL) {
usr/src/cmd/cmd-inet/usr.sbin/arp.c
341
inet_ntoa(sin->sin_addr), str);
usr/src/cmd/cmd-inet/usr.sbin/arp.c
342
free(str);
usr/src/cmd/cmd-inet/usr.sbin/ifconfig/ifconfig.c
1812
addif(char *str, int64_t param)
usr/src/cmd/cmd-inet/usr.sbin/ifconfig/ifconfig.c
1837
(*afp->af_getaddr)(str, (struct sockaddr *)&laddr, &prefixlen);
usr/src/cmd/cmd-inet/usr.sbin/ifconfig/ifconfig.c
1848
"ifconfig: Bad prefix length in %s\n", str);
usr/src/cmd/cmd-inet/usr.sbin/ifconfig/ifconfig.c
1982
removeif(char *str, int64_t param)
usr/src/cmd/cmd-inet/usr.sbin/ifconfig/ifconfig.c
1995
(*afp->af_getaddr)(str, &laddr, NULL);
usr/src/cmd/cmd-inet/usr.sbin/ifconfig/ifconfig.c
213
static void dladmerr_exit(dladm_status_t status, const char *str);
usr/src/cmd/cmd-inet/usr.sbin/ifconfig/ifconfig.c
214
static void ipadmerr_exit(ipadm_status_t status, const char *str);
usr/src/cmd/cmd-inet/usr.sbin/ifconfig/ifconfig.c
3903
ipadmerr_exit(ipadm_status_t status, const char *str)
usr/src/cmd/cmd-inet/usr.sbin/ifconfig/ifconfig.c
3905
(void) fprintf(stderr, "ifconfig: %s: %s\n", str,
usr/src/cmd/cmd-inet/usr.sbin/ifconfig/ifconfig.c
3911
dladmerr_exit(dladm_status_t status, const char *str)
usr/src/cmd/cmd-inet/usr.sbin/ifconfig/ifconfig.c
3915
(void) fprintf(stderr, "%s: %s\n", str,
usr/src/cmd/cmd-inet/usr.sbin/ifconfig/ifconfig.c
3934
Perror2(const char *cmd, const char *str)
usr/src/cmd/cmd-inet/usr.sbin/ifconfig/ifconfig.c
3942
(void) fprintf(stderr, "%s: no such interface\n", str);
usr/src/cmd/cmd-inet/usr.sbin/ifconfig/ifconfig.c
3945
(void) fprintf(stderr, "%s: permission denied\n", str);
usr/src/cmd/cmd-inet/usr.sbin/ifconfig/ifconfig.c
3948
(void) fprintf(stderr, "%s: already exists\n", str);
usr/src/cmd/cmd-inet/usr.sbin/ifconfig/ifconfig.c
3951
(void) fprintf(stderr, "%s: interface name too long\n", str);
usr/src/cmd/cmd-inet/usr.sbin/ifconfig/ifconfig.c
3955
"allowed range\n", str);
usr/src/cmd/cmd-inet/usr.sbin/ifconfig/ifconfig.c
3959
perror(str);
usr/src/cmd/cmd-inet/usr.sbin/ifconfig/ifconfig.c
3967
Perror2_exit(const char *cmd, const char *str)
usr/src/cmd/cmd-inet/usr.sbin/ifconfig/ifconfig.c
3969
Perror2(cmd, str);
usr/src/cmd/cmd-inet/usr.sbin/ifconfig/ifconfig.c
4004
char str[BUFSIZ];
usr/src/cmd/cmd-inet/usr.sbin/ifconfig/ifconfig.c
4007
(void) strncpy(str, s, sizeof (str));
usr/src/cmd/cmd-inet/usr.sbin/ifconfig/ifconfig.c
4015
*plenp = in_getprefixlen(str, _B_TRUE, IP_ABITS);
usr/src/cmd/cmd-inet/usr.sbin/ifconfig/ifconfig.c
4018
cp = strchr(str, '/');
usr/src/cmd/cmd-inet/usr.sbin/ifconfig/ifconfig.c
4021
} else if (strchr(str, '/') != NULL) {
usr/src/cmd/cmd-inet/usr.sbin/ifconfig/ifconfig.c
4022
(void) fprintf(stderr, "ifconfig: %s: unexpected '/'\n", str);
usr/src/cmd/cmd-inet/usr.sbin/ifconfig/ifconfig.c
4031
if (strcmp(str, "255.255.255.255") == 0 ||
usr/src/cmd/cmd-inet/usr.sbin/ifconfig/ifconfig.c
4032
(strtoul(str, (char **)NULL, 0) == 0xffffffffUL)) {
usr/src/cmd/cmd-inet/usr.sbin/ifconfig/ifconfig.c
4038
hp = getipnodebyname(str, AF_INET, 0, &error_num);
usr/src/cmd/cmd-inet/usr.sbin/ifconfig/ifconfig.c
4045
np = getnetbyname(str);
usr/src/cmd/cmd-inet/usr.sbin/ifconfig/ifconfig.c
4072
char str[BUFSIZ];
usr/src/cmd/cmd-inet/usr.sbin/ifconfig/ifconfig.c
4075
(void) strncpy(str, s, sizeof (str));
usr/src/cmd/cmd-inet/usr.sbin/ifconfig/ifconfig.c
4083
*plenp = in_getprefixlen(str, _B_TRUE, IPV6_ABITS);
usr/src/cmd/cmd-inet/usr.sbin/ifconfig/ifconfig.c
4086
cp = strchr(str, '/');
usr/src/cmd/cmd-inet/usr.sbin/ifconfig/ifconfig.c
4089
} else if (strchr(str, '/') != NULL) {
usr/src/cmd/cmd-inet/usr.sbin/ifconfig/ifconfig.c
4090
(void) fprintf(stderr, "ifconfig: %s: unexpected '/'\n", str);
usr/src/cmd/cmd-inet/usr.sbin/ifconfig/ifconfig.c
4096
hp = getipnodebyname(str, AF_INET6, 0, &error_num);
usr/src/cmd/cmd-inet/usr.sbin/ifconfig/ifconfig.c
4123
char *str, *end;
usr/src/cmd/cmd-inet/usr.sbin/ifconfig/ifconfig.c
4126
str = strchr(addr, '/');
usr/src/cmd/cmd-inet/usr.sbin/ifconfig/ifconfig.c
4127
if (str == NULL)
usr/src/cmd/cmd-inet/usr.sbin/ifconfig/ifconfig.c
4129
str++;
usr/src/cmd/cmd-inet/usr.sbin/ifconfig/ifconfig.c
4131
str = addr;
usr/src/cmd/cmd-inet/usr.sbin/ifconfig/ifconfig.c
4133
prefixlen = strtol(str, &end, 10);
usr/src/cmd/cmd-inet/usr.sbin/ifconfig/ifconfig.c
4136
if (str == end)
usr/src/cmd/cmd-inet/usr.sbin/ifconfig/revarp.c
331
char *str;
usr/src/cmd/cmd-inet/usr.sbin/ifconfig/revarp.c
356
str = _link_ntoa(physaddr, NULL, physaddrlen, IFT_OTHER);
usr/src/cmd/cmd-inet/usr.sbin/ifconfig/revarp.c
358
if (str != NULL && physaddrlen != 0) {
usr/src/cmd/cmd-inet/usr.sbin/ifconfig/revarp.c
361
(void) printf("\tipib %s \n", str);
usr/src/cmd/cmd-inet/usr.sbin/ifconfig/revarp.c
364
(void) printf("\tether %s \n", str);
usr/src/cmd/cmd-inet/usr.sbin/ifconfig/revarp.c
367
free(str);
usr/src/cmd/cmd-inet/usr.sbin/in.rarpd.c
405
char *str = NULL;
usr/src/cmd/cmd-inet/usr.sbin/in.rarpd.c
439
str = _link_ntoa(rdev->physaddr, str,
usr/src/cmd/cmd-inet/usr.sbin/in.rarpd.c
441
if (str != NULL) {
usr/src/cmd/cmd-inet/usr.sbin/in.rarpd.c
442
debug("device %s physical address %s", linkname, str);
usr/src/cmd/cmd-inet/usr.sbin/in.rarpd.c
443
free(str);
usr/src/cmd/cmd-inet/usr.sbin/in.rarpd.c
486
char *str = NULL;
usr/src/cmd/cmd-inet/usr.sbin/in.rarpd.c
494
str = _link_ntoa(rdev->physaddr, str, rdev->physaddrlen,
usr/src/cmd/cmd-inet/usr.sbin/in.rarpd.c
496
if (str != NULL) {
usr/src/cmd/cmd-inet/usr.sbin/in.rarpd.c
498
" address %s", rdev->device, rdev->unit, str);
usr/src/cmd/cmd-inet/usr.sbin/in.rarpd.c
499
free(str);
usr/src/cmd/cmd-inet/usr.sbin/in.rarpd.c
575
char *str = NULL;
usr/src/cmd/cmd-inet/usr.sbin/in.rarpd.c
584
str = _link_ntoa(thap, str, rdev->physaddrlen, IFT_OTHER);
usr/src/cmd/cmd-inet/usr.sbin/in.rarpd.c
585
if (str != NULL) {
usr/src/cmd/cmd-inet/usr.sbin/in.rarpd.c
586
debug("RARP_REQUEST for %s", str);
usr/src/cmd/cmd-inet/usr.sbin/in.rarpd.c
587
free(str);
usr/src/cmd/cmd-inet/usr.sbin/in.rdisc/in.rdisc.c
2283
logperror(char *str)
usr/src/cmd/cmd-inet/usr.sbin/in.rdisc/in.rdisc.c
2286
syslog(LOG_ERR, "%s: %s\n", str, strerror(errno));
usr/src/cmd/cmd-inet/usr.sbin/in.rdisc/in.rdisc.c
2288
(void) fprintf(stderr, "%s: %s\n", str, strerror(errno));
usr/src/cmd/cmd-inet/usr.sbin/in.routed/parms.c
596
#define PARS(str) (strcasecmp(tgt, str) == 0)
usr/src/cmd/cmd-inet/usr.sbin/in.routed/parms.c
597
#define PARSEQ(str) (strncasecmp(tgt, str"=", sizeof (str)) == 0)
usr/src/cmd/cmd-inet/usr.sbin/in.routed/table.c
1580
char str[100], *strp;
usr/src/cmd/cmd-inet/usr.sbin/in.routed/table.c
1613
strp = str;
usr/src/cmd/cmd-inet/usr.sbin/in.routed/table.c
1614
(void) sprintf(str, "%#x", m.ifm.ifm_flags);
usr/src/cmd/cmd-inet/usr.sbin/in.routed/table.c
1639
if (strp != str)
usr/src/cmd/cmd-inet/usr.sbin/in.routed/table.c
1663
(void) strlcpy(str, rtm_type_name(m.r.rtm.rtm_type),
usr/src/cmd/cmd-inet/usr.sbin/in.routed/table.c
1664
sizeof (str));
usr/src/cmd/cmd-inet/usr.sbin/in.routed/table.c
1665
strp = &str[strlen(str)];
usr/src/cmd/cmd-inet/usr.sbin/in.routed/table.c
1667
strp += snprintf(strp, sizeof (str) - (strp - str),
usr/src/cmd/cmd-inet/usr.sbin/in.routed/table.c
1675
trace_act("ignore %s without dst", str);
usr/src/cmd/cmd-inet/usr.sbin/in.routed/table.c
1680
trace_act("ignore %s for AF %d", str,
usr/src/cmd/cmd-inet/usr.sbin/in.routed/table.c
1690
strp += snprintf(strp, sizeof (str) - (strp - str), ": %s",
usr/src/cmd/cmd-inet/usr.sbin/in.routed/table.c
1695
trace_act("ignore multicast/link local %s", str);
usr/src/cmd/cmd-inet/usr.sbin/in.routed/table.c
1700
trace_act("ignore ARP %s", str);
usr/src/cmd/cmd-inet/usr.sbin/in.routed/table.c
1706
strp += snprintf(strp, sizeof (str) - (strp - str),
usr/src/cmd/cmd-inet/usr.sbin/in.routed/table.c
1713
strp += snprintf(strp, sizeof (str) - (strp - str),
usr/src/cmd/cmd-inet/usr.sbin/in.routed/table.c
1723
str, rip_strerror(m.r.rtm.rtm_errno));
usr/src/cmd/cmd-inet/usr.sbin/in.routed/table.c
1725
trace_act("%s", str);
usr/src/cmd/cmd-inet/usr.sbin/in.routed/table.c
1737
str, rip_strerror(m.r.rtm.rtm_errno));
usr/src/cmd/cmd-inet/usr.sbin/in.routed/table.c
1739
trace_act("%s", str);
usr/src/cmd/cmd-inet/usr.sbin/in.routed/table.c
1746
trace_act("%s", str);
usr/src/cmd/cmd-inet/usr.sbin/in.routed/table.c
1751
trace_act("ignore %s", str);
usr/src/cmd/cmd-inet/usr.sbin/in.routed/trace.c
469
char str[2*INET_ADDRSTRLEN + sizeof (" (mask )")];
usr/src/cmd/cmd-inet/usr.sbin/in.routed/trace.c
477
len = strlcpy(bufs[bufno].str, inet_ntoa(tmp_addr),
usr/src/cmd/cmd-inet/usr.sbin/in.routed/trace.c
478
sizeof (bufs[bufno].str));
usr/src/cmd/cmd-inet/usr.sbin/in.routed/trace.c
479
s = bufs[bufno].str;
usr/src/cmd/cmd-inet/usr.sbin/in.routed/trace.c
489
(sizeof (bufs[bufno].str) - len), "/%d",
usr/src/cmd/cmd-inet/usr.sbin/in.routed/trace.c
494
(sizeof (bufs[bufno].str) - len), " (mask %s)",
usr/src/cmd/cmd-inet/usr.sbin/in.routed/trace.c
87
char str[INET_ADDRSTRLEN]; /* xxx.xxx.xxx.xxx\0 */
usr/src/cmd/cmd-inet/usr.sbin/in.routed/trace.c
93
s = strcpy(bufs[bufno].str, inet_ntoa(addr));
usr/src/cmd/cmd-inet/usr.sbin/ipaddrsel.c
487
struct strioctl str;
usr/src/cmd/cmd-inet/usr.sbin/ipaddrsel.c
490
str.ic_cmd = cmd;
usr/src/cmd/cmd-inet/usr.sbin/ipaddrsel.c
491
str.ic_timout = 0;
usr/src/cmd/cmd-inet/usr.sbin/ipaddrsel.c
492
str.ic_len = ilen;
usr/src/cmd/cmd-inet/usr.sbin/ipaddrsel.c
493
str.ic_dp = ptr;
usr/src/cmd/cmd-inet/usr.sbin/ipaddrsel.c
495
while ((retv = ioctl(fd, I_STR, &str)) == -1) {
usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/ipqosconf.c
1860
char *str;
usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/ipqosconf.c
1863
(void) nvpair_value_string(nvp, &str);
usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/ipqosconf.c
1866
diff = strcmp(str, ostr);
usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/ipqosconf.c
1868
diff = strcmp(str, dfltst);
usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/ipqosconf.c
246
static int readuser(char *str, uid_t *uid);
usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/ipqosconf.c
3709
quote_ws_string(const char *str)
usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/ipqosconf.c
3719
for (cp = str; (*cp != '\0') && !isspace(*cp); cp++)
usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/ipqosconf.c
3722
return ((char *)str);
usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/ipqosconf.c
3729
buf = malloc(strlen(str) + 3);
usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/ipqosconf.c
3730
} else if ((strlen(str) + 2) > strlen(buf)) {
usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/ipqosconf.c
3735
buf = realloc(buf, strlen(str) + 3);
usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/ipqosconf.c
3744
(void) strcat(buf, str);
usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/ipqosconf.c
4203
char *str,
usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/ipqosconf.c
4209
IPQOSCDBG1(L0, "In readuser, str: %s\n", str);
usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/ipqosconf.c
4211
if (str == NULL)
usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/ipqosconf.c
4217
if (isdigit((int)str[0])) {
usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/ipqosconf.c
4222
if (readint32(str, (int *)uid, &lo) != IPQOS_CONF_SUCCESS ||
usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/ipqosconf.c
4229
pwd = getpwnam(str);
usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/ipqosconf.c
4474
readllong(char *str, long long *llp, char **lo)
usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/ipqosconf.c
4477
*llp = strtoll(str, lo, 0);
usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/ipqosconf.c
4478
if (*lo == str) {
usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/ipqosconf.c
4485
readuint8(char *str, uint8_t *ui8, char **lo)
usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/ipqosconf.c
4490
if (readllong(str, &tmp, lo) != 0) {
usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/ipqosconf.c
4501
readuint16(char *str, uint16_t *ui16, char **lo)
usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/ipqosconf.c
4505
if (readllong(str, &tmp, lo) != IPQOS_CONF_SUCCESS) {
usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/ipqosconf.c
4516
readint16(char *str, int16_t *i16, char **lo)
usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/ipqosconf.c
4520
if (readllong(str, &tmp, lo) != 0) {
usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/ipqosconf.c
4531
readint32(char *str, int *i32, char **lo)
usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/ipqosconf.c
4535
if (readllong(str, &tmp, lo) != IPQOS_CONF_SUCCESS) {
usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/ipqosconf.c
4546
readuint32(char *str, uint32_t *ui32, char **lo)
usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/ipqosconf.c
4550
if (readllong(str, &tmp, lo) != IPQOS_CONF_SUCCESS) {
usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/ipqosconf.c
4609
readbool(char *str, boolean_t *bool)
usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/ipqosconf.c
4612
if (strcasecmp(str, IPQOS_CONF_TRUE_STR) == 0) {
usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/ipqosconf.c
4614
} else if (strcasecmp(str, IPQOS_CONF_FALSE_STR) == 0) {
usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/ipqosconf.c
8855
char *str;
usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/ipqosconf.c
8870
(void) nvlist_lookup_string(nvl, CLASSIFIER_CLASS_NAME, &str);
usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/ipqosconf.c
8871
(void) strlcpy(class->name, str, IPQOS_CONF_NAME_LEN);
usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/ipqosconf.c
8876
(void) nvlist_lookup_string(nvl, CLASSIFIER_NEXT_ACTION, &str);
usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/ipqosconf.c
8877
ret = add_aref(&class->alist, NULL, str);
usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/ipqosconf.c
8903
char *str;
usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/ipqosconf.c
8929
(void) nvlist_lookup_string(nvlcp, CLASSIFIER_FILTER_NAME, &str);
usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/ipqosconf.c
8930
(void) strlcpy(filter->name, str, IPQOS_CONF_NAME_LEN);
usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/ipqosconf.c
8935
(void) nvlist_lookup_string(nvlcp, CLASSIFIER_CLASS_NAME, &str);
usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/ipqosconf.c
8936
(void) strlcpy(filter->class_name, str, IPQOS_CONF_NAME_LEN);
usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/ipqosconf.c
8941
if (nvlist_lookup_string(nvlcp, IPGPC_SADDR_HOSTNAME, &str) == 0) {
usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/ipqosconf.c
8942
filter->src_nd_name = malloc(strlen(str) + 1);
usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/ipqosconf.c
8944
(void) strcpy(filter->src_nd_name, str);
usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/ipqosconf.c
8952
if (nvlist_lookup_string(nvlcp, IPGPC_DADDR_HOSTNAME, &str) == 0) {
usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/ipqosconf.c
8953
filter->dst_nd_name = malloc(strlen(str) + 1);
usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/ipqosconf.c
8955
(void) strcpy(filter->dst_nd_name, str);
usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/ipqosconf.c
8966
if (nvlist_lookup_string(nvlcp, IPGPC_FILTER_PRIVATE, &str) == 0) {
usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/ipqosconf.c
8967
filter->ip_versions = (uint32_t)strtol(str, &end, 0);
usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/ipqosconf.c
8968
if (end != str) {
usr/src/cmd/cmd-inet/usr.sbin/ipsecutils/ipsecconf.c
2866
parse_type_code(const char *str, const str_val_t *table)
usr/src/cmd/cmd-inet/usr.sbin/ipsecutils/ipsecconf.c
2872
if (isdigit(str[0])) {
usr/src/cmd/cmd-inet/usr.sbin/ipsecutils/ipsecconf.c
2873
res1 = strtol(str, &end1, 0);
usr/src/cmd/cmd-inet/usr.sbin/ipsecutils/ipsecconf.c
2875
if (end1 == str) {
usr/src/cmd/cmd-inet/usr.sbin/ipsecutils/ipsecconf.c
2904
if (strcmp(str, table[i].string) == 0) {
usr/src/cmd/cmd-inet/usr.sbin/ipsecutils/ipsecconf.c
2913
parse_int(const char *str)
usr/src/cmd/cmd-inet/usr.sbin/ipsecutils/ipsecconf.c
2918
res = strtol(str, &end, 0);
usr/src/cmd/cmd-inet/usr.sbin/ipsecutils/ipsecconf.c
2919
if (end == str)
usr/src/cmd/cmd-inet/usr.sbin/ipsecutils/ipsecconf.c
2934
parse_index(const char *str, char *iname)
usr/src/cmd/cmd-inet/usr.sbin/ipsecutils/ipsecconf.c
2939
copy = strdup(str);
usr/src/cmd/cmd-inet/usr.sbin/ipsecutils/ipsecconf.c
2950
return (parse_int(str));
usr/src/cmd/cmd-inet/usr.sbin/ipsecutils/ipsecconf.c
3452
valid_algorithm(int proto_num, const char *str)
usr/src/cmd/cmd-inet/usr.sbin/ipsecutils/ipsecconf.c
3459
if (strncasecmp("none", str, 5) == 0)
usr/src/cmd/cmd-inet/usr.sbin/ipsecutils/ipsecconf.c
3462
alg = getipsecalgbyname(str, proto_num, NULL);
usr/src/cmd/cmd-inet/usr.sbin/ipsecutils/ipsecconf.c
3480
tmp = str;
usr/src/cmd/cmd-inet/usr.sbin/ipsecutils/ipsecconf.c
3487
ret = parse_int(str);
usr/src/cmd/cmd-inet/usr.sbin/ipsecutils/ipsecconf.c
3495
parse_ipsec_alg(char *str, ips_act_props_t *iap, int alg_type)
usr/src/cmd/cmd-inet/usr.sbin/ipsecutils/ipsecconf.c
3514
remainder = strlen(str);
usr/src/cmd/cmd-inet/usr.sbin/ipsecutils/ipsecconf.c
3515
(void) strlcpy(tstr, str, VALID_ALG_LEN);
usr/src/cmd/cmd-inet/usr.sbin/nwamcfg/nwamcfg.c
1280
char *str;
usr/src/cmd/cmd-inet/usr.sbin/nwamcfg/nwamcfg.c
1289
str = strdup(quoted_str + 1);
usr/src/cmd/cmd-inet/usr.sbin/nwamcfg/nwamcfg.c
1291
str = strdup(quoted_str);
usr/src/cmd/cmd-inet/usr.sbin/nwamcfg/nwamcfg.c
1292
if (str == NULL)
usr/src/cmd/cmd-inet/usr.sbin/nwamcfg/nwamcfg.c
1296
end = strlen(str) - 1;
usr/src/cmd/cmd-inet/usr.sbin/nwamcfg/nwamcfg.c
1297
while (end >= 0 && (str[end] == '"' || str[end] == '\n'))
usr/src/cmd/cmd-inet/usr.sbin/nwamcfg/nwamcfg.c
1299
str[end+1] = 0;
usr/src/cmd/cmd-inet/usr.sbin/nwamcfg/nwamcfg.c
1301
return (str);
usr/src/cmd/cmd-inet/usr.sbin/nwamcfg/nwamcfg.c
2694
str2str(void *s, const char *prop, char *str)
usr/src/cmd/cmd-inet/usr.sbin/nwamcfg/nwamcfg.c
2696
(void) snprintf(str, NWAM_MAX_VALUE_LEN, "%s", s);
usr/src/cmd/cmd-inet/usr.sbin/nwamcfg/nwamcfg.c
2697
return (str);
usr/src/cmd/cmd-inet/usr.sbin/nwamcfg/nwamcfg.c
2757
char str[NWAM_MAX_VALUE_LEN]; /* to store the string */
usr/src/cmd/cmd-inet/usr.sbin/nwamcfg/nwamcfg.c
2812
(void) fprintf(wf, "%s%s", tostr(val, prop_name, str),
usr/src/cmd/cmd-inet/usr.sbin/nwamcfg/nwamcfg.c
3909
const char *str;
usr/src/cmd/cmd-inet/usr.sbin/nwamcfg/nwamcfg.c
3946
while ((ret = nwam_uint64_get_value_string(prop, i++, &str))
usr/src/cmd/cmd-inet/usr.sbin/nwamcfg/nwamcfg.c
3954
(void) printf("%s%s", choices ? "|" : "", str);
usr/src/cmd/cmd-inet/usr.sbin/nwamcfg/nwamcfg.c
658
const char *str;
usr/src/cmd/cmd-inet/usr.sbin/nwamcfg/nwamcfg.c
660
if (nwam_uint64_get_value_string(propname, value, &str) == NWAM_SUCCESS)
usr/src/cmd/cmd-inet/usr.sbin/nwamcfg/nwamcfg.c
661
return (str);
usr/src/cmd/cmd-inet/usr.sbin/nwamcfg/nwamcfg.c
678
str_to_boolean(const char *str)
usr/src/cmd/cmd-inet/usr.sbin/nwamcfg/nwamcfg.c
680
if (strncasecmp(str, "t", 1) == 0 || strncasecmp(str, "on", 2) == 0 ||
usr/src/cmd/cmd-inet/usr.sbin/nwamcfg/nwamcfg.c
681
atoi(str) == 1)
usr/src/cmd/cmd-inet/usr.sbin/ping/ping.c
122
char *str; /* unresolved, string input */
usr/src/cmd/cmd-inet/usr.sbin/ping/ping.c
1564
progname, out_if.str,
usr/src/cmd/cmd-inet/usr.sbin/ping/ping.c
348
out_if.str = optarg;
usr/src/cmd/cmd-inet/usr.sbin/route.c
2199
char str[BUFSIZ];
usr/src/cmd/cmd-inet/usr.sbin/route.c
2201
(void) strlcpy(str, s, sizeof (str));
usr/src/cmd/cmd-inet/usr.sbin/route.c
2209
*plenp = in_getprefixlen(str, IP_ABITS);
usr/src/cmd/cmd-inet/usr.sbin/route.c
2212
cp = strchr(str, '/');
usr/src/cmd/cmd-inet/usr.sbin/route.c
2215
} else if (strchr(str, '/') != NULL) {
usr/src/cmd/cmd-inet/usr.sbin/route.c
2216
syntax_error(gettext("route: %s: unexpected '/'\n"), str);
usr/src/cmd/cmd-inet/usr.sbin/route.c
2226
if (strcmp(str, "255.255.255.255") == 0) {
usr/src/cmd/cmd-inet/usr.sbin/route.c
2231
val = inet_addr(str);
usr/src/cmd/cmd-inet/usr.sbin/route.c
2249
if ((hp = gethostbyname(str)) != NULL) {
usr/src/cmd/cmd-inet/usr.sbin/route.c
2258
if ((np = getnetbyname(str)) != NULL &&
usr/src/cmd/cmd-inet/usr.sbin/route.c
2285
char str[BUFSIZ];
usr/src/cmd/cmd-inet/usr.sbin/route.c
2288
(void) strlcpy(str, s, sizeof (str));
usr/src/cmd/cmd-inet/usr.sbin/route.c
2296
*plenp = in_getprefixlen(str, IPV6_ABITS);
usr/src/cmd/cmd-inet/usr.sbin/route.c
2299
cp = strchr(str, '/');
usr/src/cmd/cmd-inet/usr.sbin/route.c
2302
} else if (strchr(str, '/') != NULL) {
usr/src/cmd/cmd-inet/usr.sbin/route.c
2303
syntax_error(gettext("route: %s: unexpected '/'\n"), str);
usr/src/cmd/cmd-inet/usr.sbin/route.c
2310
hp = getipnodebyname(str, AF_INET6, 0, &error_num);
usr/src/cmd/cmd-inet/usr.sbin/route.c
2345
char *str, *end;
usr/src/cmd/cmd-inet/usr.sbin/route.c
2347
str = strchr(addr, '/');
usr/src/cmd/cmd-inet/usr.sbin/route.c
2348
if (str == addr) {
usr/src/cmd/cmd-inet/usr.sbin/route.c
2352
if (str == NULL)
usr/src/cmd/cmd-inet/usr.sbin/route.c
2354
str++;
usr/src/cmd/cmd-inet/usr.sbin/route.c
2357
prefixlen = strtoul(str, &end, 10);
usr/src/cmd/cmd-inet/usr.sbin/route.c
2358
if (errno != 0 || str == end) {
usr/src/cmd/cmd-inet/usr.sbin/route.c
2359
syntax_error(gettext("route: bad prefix length %s\n"), str);
usr/src/cmd/cmd-inet/usr.sbin/route.c
2364
str);
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_dhcpv6.c
1033
str = inittab_decode(symp, data, olen, B_TRUE);
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_dhcpv6.c
1034
if (str != NULL) {
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_dhcpv6.c
1037
" FQDN = %s", str);
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_dhcpv6.c
1038
free(str);
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_dhcpv6.c
564
char *str, *oldnest, *oldprefix;
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_dhcpv6.c
570
str = malloc(strlen(prot_nest_prefix) + strlen(prot_prefix) + 1);
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_dhcpv6.c
571
if (str == NULL) {
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_dhcpv6.c
574
(void) sprintf(str, "%s%s", prot_nest_prefix, prot_prefix);
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_dhcpv6.c
575
prot_nest_prefix = str;
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_dhcpv6.c
579
free(str);
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_dhcpv6.c
593
char *str, *sp;
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_dhcpv6.c
666
if ((str = malloc(olen * 3)) == NULL)
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_dhcpv6.c
668
sp = str + snprintf(str, 3, "%02x", *data++);
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_dhcpv6.c
678
" Identifier = %s", str);
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_dhcpv6.c
679
free(str);
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_dhcpv6.c
917
str = inittab_decode(symp, data, olen, B_TRUE);
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_dhcpv6.c
918
if (str != NULL) {
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_dhcpv6.c
919
sp = str;
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_dhcpv6.c
928
free(str);
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_display.c
178
show_header(char *pref, char *str, int len)
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_display.c
181
prot_title = str;
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_display.c
183
prot_nest_prefix, pref, str);
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_display.c
212
show_line(char *str)
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_display.c
214
(void) strlcpy(get_line(0, 0), str, get_line_remain());
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_display.c
786
show_string(const char *str, int dlen, int maxlen)
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_display.c
806
for (p = str, pp = tbuff; len; p++, len--) {
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_filter.c
2760
char *str, *p;
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_filter.c
2768
str = (char *)malloc(len);
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_filter.c
2769
if (str == NULL)
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_filter.c
2772
p = str;
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_filter.c
2785
return (str);
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_mount.c
288
char *str;
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_mount.c
292
str = "OK";
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_mount.c
293
else if ((str = strerror(status)) == (char *)NULL)
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_mount.c
294
str = "";
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_mount.c
295
(void) strcpy(line, str);
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_mount.c
305
char *str;
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_mount.c
309
str = "OK";
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_mount.c
310
else if ((str = strerror(status)) == (char *)NULL)
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_mount.c
311
str = "";
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_mount.c
313
(void) sprintf(get_line(0, 0), "Status = %d (%s)", status, str);
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_nfs.c
526
char *str;
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_nfs.c
529
case S_IFDIR: str = "Directory"; break;
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_nfs.c
530
case S_IFCHR: str = "Character"; break;
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_nfs.c
531
case S_IFBLK: str = "Block"; break;
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_nfs.c
532
case S_IFREG: str = "Regular file"; break;
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_nfs.c
533
case S_IFLNK: str = "Link"; break;
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_nfs.c
534
case S_IFSOCK: str = "Socket"; break;
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_nfs.c
535
case S_IFIFO: str = "Fifo"; break;
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_nfs.c
536
default: str = "?"; break;
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_nfs.c
540
(void) sprintf(get_line(0, 0), " Type = %s", str);
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_nfs3.c
1015
detail_pre_op_attr(str)
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_nfs3.c
1016
char *str;
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_nfs3.c
1021
"Pre-operation attributes: %s", str);
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_nfs3.c
1025
"Pre-operation attributes: %s (not available)", str);
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_nfs3.c
1029
detail_post_op_attr(str)
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_nfs3.c
1030
char *str;
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_nfs3.c
1035
"Post-operation attributes: %s", str);
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_nfs3.c
1039
"Post-operation attributes: %s (not available)", str);
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_nfs3.c
1043
detail_wcc_data(str)
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_nfs3.c
1044
char *str;
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_nfs3.c
1047
detail_pre_op_attr(str);
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_nfs3.c
1048
detail_post_op_attr(str);
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_nfs4.c
3339
char *str = "";
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_nfs4.c
3343
str = "N";
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_nfs4.c
3346
str = "R";
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_nfs4.c
3349
str = "W";
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_nfs4.c
3352
str = "?";
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_nfs4.c
3355
return (str);
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_nfs4.c
3684
char *bp = buf, *str;
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_nfs4.c
3699
str = (shortname ? fn->short_name : fn->long_name);
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_nfs4.c
3701
snprintf(bp, blen, "%s,", str);
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_nis.c
551
char *str;
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_nis.c
556
case YP_TRUE: str = "OK"; break;
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_nis.c
557
case YP_NOMORE: str = "No more entries"; break;
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_nis.c
558
case YP_FALSE: str = "Fail"; break;
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_nis.c
559
case YP_NOMAP: str = "No such map"; break;
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_nis.c
560
case YP_NODOM: str = "No such domain"; break;
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_nis.c
561
case YP_NOKEY: str = "No such key"; break;
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_nis.c
562
case YP_BADOP: str = "Invalid operation"; break;
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_nis.c
563
case YP_BADDB: str = "Bad database"; break;
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_nis.c
564
case YP_YPERR: str = "Server error"; break;
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_nis.c
565
case YP_BADARGS:str = "Bad args"; break;
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_nis.c
566
case YP_VERS: str = "Version mismatch"; break;
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_nis.c
568
str = buff;
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_nis.c
571
(void) strcpy(line, str);
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_ospf.c
99
strcat(bitstring, bp->str);
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_ospf.h
49
const char *str;
usr/src/cmd/cmd-inet/usr.sbin/soconfig.c
402
parse_int(char *str)
usr/src/cmd/cmd-inet/usr.sbin/soconfig.c
407
res = strtol(str, &end, 0);
usr/src/cmd/cmd-inet/usr.sbin/soconfig.c
408
if (end == str)
usr/src/cmd/cmd-inet/usr.sbin/soconfig.c
80
static int parse_int(char *str);
usr/src/cmd/cmd-inet/usr.sbin/sppptun/sppptun.c
152
struct strioctl str;
usr/src/cmd/cmd-inet/usr.sbin/sppptun/sppptun.c
154
str.ic_cmd = cmd;
usr/src/cmd/cmd-inet/usr.sbin/sppptun/sppptun.c
155
str.ic_timout = 0;
usr/src/cmd/cmd-inet/usr.sbin/sppptun/sppptun.c
156
str.ic_len = ilen;
usr/src/cmd/cmd-inet/usr.sbin/sppptun/sppptun.c
157
str.ic_dp = ptr;
usr/src/cmd/cmd-inet/usr.sbin/sppptun/sppptun.c
159
if (ioctl(fd, I_STR, &str) == -1) {
usr/src/cmd/cmd-inet/usr.sbin/sppptun/sppptun.c
165
if (str.ic_len > olen && verbose > 1) {
usr/src/cmd/cmd-inet/usr.sbin/sppptun/sppptun.c
167
"%d > %d\n"), myname, iocname, str.ic_len, olen);
usr/src/cmd/cmd-inet/usr.sbin/sppptun/sppptun.c
168
} else if (str.ic_len < olen) {
usr/src/cmd/cmd-inet/usr.sbin/sppptun/sppptun.c
171
str.ic_len);
usr/src/cmd/cmd-inet/usr.sbin/sppptun/sppptun.c
176
return (str.ic_len);
usr/src/cmd/cmd-inet/usr.sbin/traceroute/traceroute.c
2157
str2dbl(const char *str, const char *what, double mi, double ma)
usr/src/cmd/cmd-inet/usr.sbin/traceroute/traceroute.c
2164
val = strtod(str, &ep);
usr/src/cmd/cmd-inet/usr.sbin/traceroute/traceroute.c
2167
prog, str, what);
usr/src/cmd/cmd-inet/usr.sbin/traceroute/traceroute.c
2185
str2int(const char *str, const char *what, int mi, int ma)
usr/src/cmd/cmd-inet/usr.sbin/traceroute/traceroute.c
2193
if (str[0] == '0' && (str[1] == 'x' || str[1] == 'X')) {
usr/src/cmd/cmd-inet/usr.sbin/traceroute/traceroute.c
2194
cp = str + 2;
usr/src/cmd/cmd-inet/usr.sbin/traceroute/traceroute.c
2197
val = (int)strtol(str, &ep, 10);
usr/src/cmd/cmd-inet/usr.sbin/traceroute/traceroute.c
2201
prog, str, what);
usr/src/cmd/cpio/cpio.c
1045
char str[APATH];
usr/src/cmd/cpio/cpio.c
1072
if (!Rtty_p || fgets(str, sizeof (str),
usr/src/cmd/cpio/cpio.c
1076
switch (*str) {
usr/src/cmd/cpio/cpio.c
1078
(void) strcpy(str, IOfil_p);
usr/src/cmd/cpio/cpio.c
1094
if (!Rtty_p || fgets(str, sizeof (str),
usr/src/cmd/cpio/cpio.c
1097
lastchar = strlen(str) - 1;
usr/src/cmd/cpio/cpio.c
1098
if (*(str + lastchar) == '\n') /* remove '\n' */
usr/src/cmd/cpio/cpio.c
1099
*(str + lastchar) = '\0';
usr/src/cmd/cpio/cpio.c
1100
if (!*str)
usr/src/cmd/cpio/cpio.c
1104
if ((Archive = open(str, dir)) < 0) {
usr/src/cmd/cpio/cpio.c
1105
msg(ERRN, "Cannot open \"%s\"", str);
usr/src/cmd/cpio/utils.c
230
put_value(off_t val, char *str)
usr/src/cmd/cpio/utils.c
238
(void) memcpy(str, digp, len);
usr/src/cmd/cpio/utils.c
240
return (str + len);
usr/src/cmd/cpio/utils.c
249
store_sparse_string(holes_list_t *hlh, char *str, size_t *szp)
usr/src/cmd/cpio/utils.c
254
p = str;
usr/src/cmd/cpio/utils.c
263
*szp = p - str;
usr/src/cmd/cpio/utils.c
271
get_ull_tok(const char *str, uint64_t *ulp)
usr/src/cmd/cpio/utils.c
276
while (isspace(*str))
usr/src/cmd/cpio/utils.c
277
str++;
usr/src/cmd/cpio/utils.c
278
if (!isdigit(*str))
usr/src/cmd/cpio/utils.c
282
ul = strtoull(str, &np, 10);
usr/src/cmd/cpio/utils.c
325
char *str, hstr[MIN_HOLES_HDRSIZE + 1];
usr/src/cmd/cpio/utils.c
335
str = e_zalloc(E_EXIT,
usr/src/cmd/cpio/utils.c
341
store_sparse_string(hl, str + MIN_HOLES_HDRSIZE, &len);
usr/src/cmd/cpio/utils.c
349
(void) memcpy(str, hstr, MIN_HOLES_HDRSIZE);
usr/src/cmd/cpio/utils.c
353
hi->holesdata = str;
usr/src/cmd/cpio/utils.c
368
read_holes_header(const char *str, off_t filesz)
usr/src/cmd/cpio/utils.c
376
if ((str = get_ull_tok(str, &ull)) == NULL || *str != ' ') {
usr/src/cmd/cpio/utils.c
384
if (get_ull_tok(str, &ull) == NULL)
usr/src/cmd/cpio/utils.c
397
parse_holesdata(holes_info_t *hi, const char *str)
usr/src/cmd/cpio/utils.c
405
while (*str != '\0') {
usr/src/cmd/cpio/utils.c
413
if ((str = get_ull_tok(str, &ull)) == NULL)
usr/src/cmd/cpio/utils.c
418
if (*str != ' ')
usr/src/cmd/cpio/utils.c
422
if ((str = get_ull_tok(str, &ull)) == NULL)
usr/src/cmd/cron/at.c
552
escapestr(const char *str)
usr/src/cmd/cron/at.c
556
while ((c = *str++) != '\0') {
usr/src/cmd/cron/cron.c
345
static struct shared *create_shared_str(char *str);
usr/src/cmd/cron/cron.c
3601
create_shared_str(char *str)
usr/src/cmd/cron/cron.c
3603
return (create_shared(str, (void *(*)(void *))strdup, free));
usr/src/cmd/cron/funcs.c
139
xstrdup(const char *str)
usr/src/cmd/cron/funcs.c
144
len = strlen(str);
usr/src/cmd/cron/funcs.c
146
(void) memcpy(p, str, len);
usr/src/cmd/csh/sh.exp.c
685
etraci(tchar *str, int i, tchar ***vp)
usr/src/cmd/csh/sh.exp.c
688
printf("%s=%d\t", str, i);
usr/src/cmd/csh/sh.exp.c
694
etracc(tchar *str, tchar *cp, tchar ***vp)
usr/src/cmd/csh/sh.exp.c
697
printf("%s=%s\t", str, cp);
usr/src/cmd/csh/sh.func.c
1480
tchar *str = str0;
usr/src/cmd/csh/sh.func.c
1485
while (*cp && *cp == *str) {
usr/src/cmd/csh/sh.func.c
1486
cp++, str++;
usr/src/cmd/csh/sh.glob.c
650
globone(tchar *str)
usr/src/cmd/csh/sh.glob.c
659
gv[0] = str;
usr/src/cmd/csh/sh.glob.c
666
setname(str);
usr/src/cmd/csh/sh.glob.c
673
setname(str);
usr/src/cmd/csh/sh.glob.c
679
setname(str);
usr/src/cmd/csh/sh.lex.c
876
matchs(tchar *str, tchar *pat)
usr/src/cmd/csh/sh.lex.c
882
while (*str && *pat && *str == *pat)
usr/src/cmd/csh/sh.lex.c
883
str++, pat++;
usr/src/cmd/csh/sh.misc.c
367
prefix(tchar *sub, tchar *str)
usr/src/cmd/csh/sh.misc.c
373
if (*str == 0)
usr/src/cmd/csh/sh.misc.c
375
if (*sub++ != *str++)
usr/src/cmd/csh/sh.tchar.c
850
chkalldigit_(tchar *str)
usr/src/cmd/csh/sh.tchar.c
855
(void) tstostr(chbuf, str);
usr/src/cmd/csh/sh.tchar.c
865
atoi_(tchar *str)
usr/src/cmd/csh/sh.tchar.c
869
tstostr(chbuf, str);
usr/src/cmd/csplit/csplit.c
210
asc_to_ll(char *str, long long *plc)
usr/src/cmd/csplit/csplit.c
215
for (; ; str++) {
usr/src/cmd/csplit/csplit.c
216
switch (*str) {
usr/src/cmd/csplit/csplit.c
224
str++;
usr/src/cmd/csplit/csplit.c
228
for (; *str != '\0'; str++)
usr/src/cmd/csplit/csplit.c
229
if (*str >= '0' && *str <= '9')
usr/src/cmd/csplit/csplit.c
230
*plc = *plc * 10 + *str - '0';
usr/src/cmd/ctrun/ctrun.c
127
str2bit(optvect_t *options, int match, const char *str, int len)
usr/src/cmd/ctrun/ctrun.c
132
if (strncmp(str, options->opt_name, len) == 0)
usr/src/cmd/ctrun/ctrun.c
147
opt2bits(optvect_t *options, int match, const char *str, uint_t *bits, char c)
usr/src/cmd/ctrun/ctrun.c
149
const char *ptr, *next = str;
usr/src/cmd/ctrun/ctrun.c
154
while (*str) {
usr/src/cmd/ctrun/ctrun.c
157
ptr = strpbrk(str, ", ");
usr/src/cmd/ctrun/ctrun.c
159
len = ptr - str;
usr/src/cmd/ctrun/ctrun.c
162
len = strlen(str);
usr/src/cmd/ctrun/ctrun.c
163
next = str + len;
usr/src/cmd/ctrun/ctrun.c
169
bit = str2bit(options, match, str, len);
usr/src/cmd/ctrun/ctrun.c
170
if (bit == 0 && strncmp(str, "none", len) == 0) {
usr/src/cmd/ctrun/ctrun.c
176
len, str);
usr/src/cmd/ctrun/ctrun.c
185
"specified twice\n"), len, str);
usr/src/cmd/ctrun/ctrun.c
188
str = next;
usr/src/cmd/ctstat/ctstat.c
703
walk_args(const char *str, int (*fp)(const char *), int *results)
usr/src/cmd/ctstat/ctstat.c
708
if ((copy = strdup(str)) == NULL)
usr/src/cmd/ctstat/ctstat.c
735
parse(const char *str, int **idsp, int nids, int (*fp)(const char *fp))
usr/src/cmd/ctstat/ctstat.c
740
count = walk_args(str, NULL, NULL);
usr/src/cmd/ctstat/ctstat.c
752
(void) walk_args(str, fp, array + nids);
usr/src/cmd/cxgbetool/cudbg_view.c
4004
char str[8];
usr/src/cmd/cxgbetool/cudbg_view.c
4008
strcpy(str, "egress");
usr/src/cmd/cxgbetool/cudbg_view.c
4010
strcpy(str, "ingress");
usr/src/cmd/cxgbetool/cudbg_view.c
4012
strcpy(str, "fl");
usr/src/cmd/cxgbetool/cudbg_view.c
4014
strcpy(str, "cong");
usr/src/cmd/cxgbetool/cudbg_view.c
4016
"%-10d\n", str, context->cntxt_id);
usr/src/cmd/datadm/datadm.c
336
datadm_parse_generic_str(char *str, char **strptr)
usr/src/cmd/datadm/datadm.c
340
len = strlen(str);
usr/src/cmd/datadm/datadm.c
345
(void) strcpy(*strptr, str);
usr/src/cmd/datadm/datadm.c
355
datadm_parse_nonnull_str(char *str, char **strptr)
usr/src/cmd/datadm/datadm.c
360
if (str[0] == '\0') {
usr/src/cmd/datadm/datadm.c
363
start = str;
usr/src/cmd/datadm/datadm.c
364
for (i = 0; str[i] != '\0'; i++) {
usr/src/cmd/datadm/datadm.c
365
if (!isspace(str[i])) {
usr/src/cmd/datadm/datadm.c
366
start = &str[i];
usr/src/cmd/datadm/datadm.c
370
for (; str[i] != '\0'; i++) {
usr/src/cmd/datadm/datadm.c
371
if (isspace(str[i])) {
usr/src/cmd/datadm/datadm.c
372
str[i] = '\0';
usr/src/cmd/datadm/datadm.c
389
datadm_parse_version(char *str, datadm_version_t *version)
usr/src/cmd/datadm/datadm.c
394
len = strlen(str);
usr/src/cmd/datadm/datadm.c
397
if (isdigit(str[i])) break;
usr/src/cmd/datadm/datadm.c
404
bcopy(str, version->dv_name, i);
usr/src/cmd/datadm/datadm.c
412
if (!isdigit(str[i])) break;
usr/src/cmd/datadm/datadm.c
417
if (str[i] != '.') {
usr/src/cmd/datadm/datadm.c
425
if (!isdigit(str[i])) break;
usr/src/cmd/datadm/datadm.c
430
version->dv_major = atoi(str + major_idx);
usr/src/cmd/datadm/datadm.c
431
version->dv_minor = atoi(str + minor_idx);
usr/src/cmd/datadm/datadm.c
439
datadm_parse_ia_name(char *str, char *ia_name)
usr/src/cmd/datadm/datadm.c
441
if (strlen(str) >= MAXLINKNAMELEN)
usr/src/cmd/datadm/datadm.c
443
(void) strlcpy(ia_name, str, MAXLINKNAMELEN);
usr/src/cmd/datadm/datadm.c
452
datadm_parse_devname(char *str, datadm_sp_entry_t *sp_entry)
usr/src/cmd/datadm/datadm.c
457
len = strlen(str);
usr/src/cmd/datadm/datadm.c
465
if (isspace(str[i]) && j == 0) {
usr/src/cmd/datadm/datadm.c
468
if (str[i] == drv_name[j]) {
usr/src/cmd/datadm/datadm.c
497
if (!isspace(str[i])) {
usr/src/cmd/datadm/datadm.c
506
if (i >= len || str[i] != '=') {
usr/src/cmd/datadm/datadm.c
516
return (datadm_parse_nonnull_str(str + i, &sp_entry->spe_devname));
usr/src/cmd/datadm/datadm.c
520
datadm_parse_api_version(char *str, datadm_sp_entry_t *sp_entry)
usr/src/cmd/datadm/datadm.c
522
return (datadm_parse_version(str, &sp_entry->spe_api_version));
usr/src/cmd/datadm/datadm.c
526
datadm_parse_threadsafe(char *str, datadm_sp_entry_t *sp_entry)
usr/src/cmd/datadm/datadm.c
530
if (strcmp(str, "threadsafe") == 0) {
usr/src/cmd/datadm/datadm.c
532
} else if (strcmp(str, "nonthreadsafe") == 0) {
usr/src/cmd/datadm/datadm.c
541
datadm_parse_default(char *str, datadm_sp_entry_t *sp_entry)
usr/src/cmd/datadm/datadm.c
545
if (strcmp(str, "default") == 0) {
usr/src/cmd/datadm/datadm.c
547
} else if (strcmp(str, "nondefault") == 0) {
usr/src/cmd/datadm/datadm.c
556
datadm_parse_libpath(char *str, datadm_sp_entry_t *sp_entry)
usr/src/cmd/datadm/datadm.c
558
return (datadm_parse_nonnull_str(str, &sp_entry->spe_libpath));
usr/src/cmd/datadm/datadm.c
562
datadm_parse_sp_version(char *str, datadm_sp_entry_t *sp_entry)
usr/src/cmd/datadm/datadm.c
564
return (datadm_parse_version(str, &sp_entry->spe_sp_version));
usr/src/cmd/datadm/datadm.c
568
datadm_parse_sp_data(char *str, datadm_sp_entry_t *sp_entry)
usr/src/cmd/datadm/datadm.c
570
return (datadm_parse_generic_str(str, &sp_entry->spe_sp_data));
usr/src/cmd/devctl/devctl.c
596
s_strdup(char *str)
usr/src/cmd/devctl/devctl.c
598
char *buf = strdup(str);
usr/src/cmd/devfsadm/cfg_link.c
549
char *str, *devtype;
usr/src/cmd/devfsadm/cfg_link.c
562
str = pci_cfg_slotname(node, ph, pci_dev);
usr/src/cmd/devfsadm/cfg_link.c
563
if (str != NULL) {
usr/src/cmd/devfsadm/cfg_link.c
564
(void) strlcpy(buf, str, bufsz);
usr/src/cmd/devfsadm/cfg_link.c
565
free(str);
usr/src/cmd/devfsadm/devfsadm.c
4781
get_component(char *str, const char *comp_str)
usr/src/cmd/devfsadm/devfsadm.c
4786
if (str == NULL) {
usr/src/cmd/devfsadm/devfsadm.c
4791
return (str);
usr/src/cmd/devfsadm/devfsadm.c
4801
return (str);
usr/src/cmd/devfsadm/devfsadm.c
4803
for (cp = str; ; cp++) {
usr/src/cmd/devfsadm/devfsadm.c
4814
str = NULL;
usr/src/cmd/devfsadm/devfsadm.c
4817
return (str);
usr/src/cmd/devfsadm/devfsadm.c
7867
char *str;
usr/src/cmd/devfsadm/devfsadm.c
7927
if ((n = di_prop_strings(prop, &str)) < 1)
usr/src/cmd/devfsadm/devfsadm.c
7935
strarray[i] = str + len;
usr/src/cmd/devfsadm/devfsadm_impl.h
463
static char *get_component(char *str, const char *comp_num);
usr/src/cmd/devfsadm/disk_link.c
272
uchar_t *str;
usr/src/cmd/devfsadm/disk_link.c
294
for (count = 0, str = ascii_wwn; count < 8; count++, str += 2) {
usr/src/cmd/devfsadm/disk_link.c
295
(void) sprintf((caddr_t)str, "%02x", wwn[count]);
usr/src/cmd/devfsadm/disk_link.c
297
*str = '\0';
usr/src/cmd/devfsadm/disk_link.c
302
for (str = ascii_wwn; *str != '\0'; str++) {
usr/src/cmd/devfsadm/disk_link.c
303
*str = DISK_LINK_TO_UPPER(*str);
usr/src/cmd/devmgmt/cmds/getvol.c
59
char *str;
usr/src/cmd/devmgmt/cmds/getvol.c
62
str = arg0 + strlen(arg0);
usr/src/cmd/devmgmt/cmds/getvol.c
63
while (str > arg0 && *--str == '/')
usr/src/cmd/devmgmt/cmds/getvol.c
64
*str = '\0';
usr/src/cmd/devmgmt/cmds/getvol.c
65
if ((str = strrchr(arg0, '/')) != NULL)
usr/src/cmd/devmgmt/cmds/getvol.c
66
return (str + 1);
usr/src/cmd/dfs.cmds/sharemgr/commands.c
1648
strndupr(char *buff, char *str, int *buffsize)
usr/src/cmd/dfs.cmds/sharemgr/commands.c
1660
limit = strlen(buff) + strlen(str) + 1;
usr/src/cmd/dfs.cmds/sharemgr/commands.c
1666
(void) strcat(buff, str);
usr/src/cmd/diff/diff.c
1011
readhash(FILE *f, int filen, char *str)
usr/src/cmd/diff/diff.c
1032
gettext("Warning: missing newline at end of file %s\n"), str);
usr/src/cmd/diff/diff.c
1049
gettext("Warning: missing newline at end of file %s\n"), str);
usr/src/cmd/diff/diff.c
1065
gettext("Warning: missing newline at end of file %s\n"), str);
usr/src/cmd/diff/diff.c
1086
gettext("Warning: missing newline at end of file %s\n"), str);
usr/src/cmd/diff/diff.c
2165
char str[2] = {0, 0};
usr/src/cmd/diff/diff.c
2167
str[0] = (char)ch;
usr/src/cmd/diff/diff.c
2168
if (mbtowc(&wc, str, 1) > 0) {
usr/src/cmd/dladm/dladm.c
6069
parse_wifi_fields(char *str, ofmt_handle_t *ofmt, uint_t cmdtype,
usr/src/cmd/dladm/dladm.c
6078
if (str == NULL)
usr/src/cmd/dladm/dladm.c
6079
str = def_scan_wifi_fields;
usr/src/cmd/dladm/dladm.c
6080
if (strcasecmp(str, "all") == 0)
usr/src/cmd/dladm/dladm.c
6081
str = all_scan_wifi_fields;
usr/src/cmd/dladm/dladm.c
6087
if (str == NULL)
usr/src/cmd/dladm/dladm.c
6088
str = def_show_wifi_fields;
usr/src/cmd/dladm/dladm.c
6089
if (strcasecmp(str, "all") == 0)
usr/src/cmd/dladm/dladm.c
6090
str = all_show_wifi_fields;
usr/src/cmd/dladm/dladm.c
6101
oferr = ofmt_open(str, template, (parsable ? OFMT_PARSABLE : 0),
usr/src/cmd/dladm/dladm.c
6349
parse_wlan_keys(char *str, dladm_wlan_key_t **keys, uint_t *key_countp)
usr/src/cmd/dladm/dladm.c
6356
token = str;
usr/src/cmd/dladm/dladm.c
6361
token = strdup(str);
usr/src/cmd/dladm/dladm.c
6369
token = str;
usr/src/cmd/dladm/dladm.c
9050
str2int(const char *str, int *valp)
usr/src/cmd/dladm/dladm.c
9056
val = strtol(str, &endp, 10);
usr/src/cmd/dlmgmtd/dlmgmt_db.c
881
char *str, *lasts;
usr/src/cmd/dlmgmtd/dlmgmt_db.c
904
str = tmpbuf + i;
usr/src/cmd/dlmgmtd/dlmgmt_db.c
908
if (strtok_r(str, " \n\t", &lasts) == NULL)
usr/src/cmd/dlmgmtd/dlmgmt_db.c
911
llen = strlen(str);
usr/src/cmd/dlmgmtd/dlmgmt_db.c
920
if (isdigit(str[0])) {
usr/src/cmd/dlmgmtd/dlmgmt_db.c
921
linkp->ll_linkid = atoi(str);
usr/src/cmd/dlmgmtd/dlmgmt_db.c
924
if (strlcpy(linkp->ll_link, str, sizeof (linkp->ll_link)) >=
usr/src/cmd/dlmgmtd/dlmgmt_db.c
929
str += llen + 1;
usr/src/cmd/dlmgmtd/dlmgmt_db.c
930
if (str >= tmpbuf + len)
usr/src/cmd/dlmgmtd/dlmgmt_db.c
936
if ((str = strtok_r(str, " \n\t", &lasts)) == NULL)
usr/src/cmd/dlmgmtd/dlmgmt_db.c
939
if (parse_linkprops(str, linkp) < 0)
usr/src/cmd/drd/drd.c
267
char *str;
usr/src/cmd/drd/drd.c
297
str = (char *)(uintptr_t)rsrcs[idx].offset;
usr/src/cmd/drd/drd.c
300
if (str == NULL)
usr/src/cmd/drd/drd.c
303
len = strlen(str) + 1;
usr/src/cmd/drd/drd.c
313
str = (char *)(uintptr_t)rsrcs[idx++].offset;
usr/src/cmd/drd/drd.c
314
s_free(str);
usr/src/cmd/drd/drd.c
323
bcopy(str, off, len);
usr/src/cmd/drd/drd.c
331
s_free(str);
usr/src/cmd/dtrace/dtrace.c
840
#define BUFDUMPASSTR(ptr, field, str) \
usr/src/cmd/dtrace/dtrace.c
841
(void) printf("%s: %20s => %s\n", g_pname, #field, str);
usr/src/cmd/ed/ed.c
289
static int strequal(char **scan1, char *str);
usr/src/cmd/ed/ed.c
3116
strequal(char **scan1, char *str)
usr/src/cmd/ed/ed.c
3120
while ((c = *scan++) == *str && c)
usr/src/cmd/ed/ed.c
3121
str++;
usr/src/cmd/ed/ed.c
3123
if (c == 0 && *str == 0)
usr/src/cmd/eqn/lex.c
75
pbstr(char *str)
usr/src/cmd/eqn/lex.c
79
p = str;
usr/src/cmd/eqn/lex.c
85
while (p > str)
usr/src/cmd/expr/compile.c
259
dhl_step(const char *str, /* characters to be checked for a match */
usr/src/cmd/expr/compile.c
272
return (dhl_doit(str, &(((struct regex_comp *)ep)->r_stp),
usr/src/cmd/expr/compile.c
280
dhl_advance(const char *str, /* characters to be checked for a match */
usr/src/cmd/expr/compile.c
294
rv = dhl_doit(str, &(((struct regex_comp *)ep)->r_adv), 0);
usr/src/cmd/expr/compile.c
303
dhl_doit(const char *str, /* characters to be checked for a match */
usr/src/cmd/expr/compile.c
322
if ((rv = regexec(rep, str, SEPSIZE, prm, flags)) != REG_OK) {
usr/src/cmd/expr/compile.c
329
loc1 = (char *)str + prm->rm_so;
usr/src/cmd/expr/compile.c
330
loc2 = (char *)str + prm->rm_eo;
usr/src/cmd/expr/compile.c
338
braslist[i] = (char *)str + prm->rm_so;
usr/src/cmd/expr/compile.c
339
braelist[i] = (char *)str + prm->rm_eo;
usr/src/cmd/expr/compile.c
70
static int dhl_step(const char *str, const char *ep);
usr/src/cmd/expr/compile.c
71
static int dhl_advance(const char *str, const char *ep);
usr/src/cmd/expr/expr.c
477
static char str[20];
usr/src/cmd/expr/expr.c
478
char *sp = &str[18]; /* u370 */
usr/src/cmd/expr/expr.c
486
str[19] = '\0';
usr/src/cmd/expr/expr.c
500
static char str[25];
usr/src/cmd/expr/expr.c
501
char *sp = &str[23];
usr/src/cmd/expr/expr.c
509
str[24] = '\0';
usr/src/cmd/fdformat/fdformat.c
1156
usage(char *str)
usr/src/cmd/fdformat/fdformat.c
1165
if (str[0] != ' ')
usr/src/cmd/fdformat/fdformat.c
1166
(void) printf("%s: %s\n", myname, str);
usr/src/cmd/file/elf_read.h
64
extern int is_in_list(char *str);
usr/src/cmd/file/file.c
1198
const char *str;
usr/src/cmd/file/file.c
1203
str = mach_str[machine];
usr/src/cmd/file/file.c
1204
if (str)
usr/src/cmd/file/file.c
1205
(void) printf(" %s", str);
usr/src/cmd/file/file.c
1805
is_in_list(char *str)
usr/src/cmd/file/file.c
1815
if (strncmp(debug_sections[i], str,
usr/src/cmd/file/magicutils.c
1083
showstr(ep->e_value.str, 10);
usr/src/cmd/file/magicutils.c
1115
cur += strlen(ep->e_value.str);
usr/src/cmd/file/magicutils.c
488
} else if ((ep->e_value.str =
usr/src/cmd/file/magicutils.c
571
if (strncmp(p, ep->e_value.str,
usr/src/cmd/file/magicutils.c
572
strlen(ep->e_value.str)))
usr/src/cmd/file/magicutils.c
579
ep->e_value.str);
usr/src/cmd/file/magicutils.c
89
char *str;
usr/src/cmd/filesync/files.c
547
suffix(const char *str, const char *suf)
usr/src/cmd/filesync/files.c
551
for (s = str; *s; s++);
usr/src/cmd/filesync/files.c
553
if (s < str)
usr/src/cmd/filesync/files.c
579
contains(const char *str, const char *pat)
usr/src/cmd/filesync/files.c
582
while (*str) {
usr/src/cmd/filesync/files.c
583
if (*str++ == *pat) {
usr/src/cmd/filesync/files.c
584
for (s = str, p = &pat[1]; *s == *p; s++, p++)
usr/src/cmd/fm/fmd/common/fmd_api.c
1042
char *str = fmd_strdup(s, FMD_SLEEP);
usr/src/cmd/fm/fmd/common/fmd_api.c
1046
fmd_strfree(str);
usr/src/cmd/fm/fmd/common/fmd_api.c
1051
fmd_strfree(sp->fmds_value.str);
usr/src/cmd/fm/fmd/common/fmd_api.c
1052
sp->fmds_value.str = str;
usr/src/cmd/fm/fmd/common/fmd_api.h
99
char *str; /* FMD_TYPE_STRING */
usr/src/cmd/fm/fmd/common/fmd_mdb.c
577
(uintptr_t)s.fmds_value.str) < 0) {
usr/src/cmd/fm/fmd/common/fmd_mdb.c
579
s.fmds_value.str);
usr/src/cmd/fm/fmd/common/fmd_protocol.c
48
const char *str;
usr/src/cmd/fm/fmd/common/fmd_protocol.c
57
if ((str = fmd_conf_getnzstr(fmd.d_conf, "product")) == NULL)
usr/src/cmd/fm/fmd/common/fmd_protocol.c
58
str = fmd_conf_getnzstr(fmd.d_conf, "platform");
usr/src/cmd/fm/fmd/common/fmd_protocol.c
60
if (str != NULL)
usr/src/cmd/fm/fmd/common/fmd_protocol.c
61
err |= nvlist_add_string(nvl, FM_FMRI_AUTH_PRODUCT, str);
usr/src/cmd/fm/fmd/common/fmd_protocol.c
63
if ((str = fmd_conf_getnzstr(fmd.d_conf, "product_sn")) != NULL)
usr/src/cmd/fm/fmd/common/fmd_protocol.c
64
err |= nvlist_add_string(nvl, FM_FMRI_AUTH_PRODUCT_SN, str);
usr/src/cmd/fm/fmd/common/fmd_protocol.c
66
if ((str = fmd_conf_getnzstr(fmd.d_conf, "chassis")) != NULL)
usr/src/cmd/fm/fmd/common/fmd_protocol.c
67
err |= nvlist_add_string(nvl, FM_FMRI_AUTH_CHASSIS, str);
usr/src/cmd/fm/fmd/common/fmd_protocol.c
69
if ((str = fmd_conf_getnzstr(fmd.d_conf, "domain")) != NULL)
usr/src/cmd/fm/fmd/common/fmd_protocol.c
70
err |= nvlist_add_string(nvl, FM_FMRI_AUTH_DOMAIN, str);
usr/src/cmd/fm/fmd/common/fmd_protocol.c
72
if ((str = fmd_conf_getnzstr(fmd.d_conf, "server")) != NULL)
usr/src/cmd/fm/fmd/common/fmd_protocol.c
73
err |= nvlist_add_string(nvl, FM_FMRI_AUTH_SERVER, str);
usr/src/cmd/fm/fmd/common/fmd_rpc_adm.c
1032
sp->fmds_value.str != NULL)
usr/src/cmd/fm/fmd/common/fmd_rpc_adm.c
1033
cp->fmds_value.str = strdup(sp->fmds_value.str);
usr/src/cmd/fm/fmd/common/fmd_rpc_adm.c
1083
rv &= xdr_string(xp, &sp->fmds_value.str, ~0);
usr/src/cmd/fm/fmd/common/fmd_ustat.c
100
fmd_strfree(ep->use_stat->fmds_value.str);
usr/src/cmd/fm/fmd/common/fmd_ustat.c
138
sp->fmds_value.str != NULL)
usr/src/cmd/fm/fmd/common/fmd_ustat.c
139
sp->fmds_value.str = strdup(sp->fmds_value.str);
usr/src/cmd/fm/fmd/common/fmd_ustat.c
169
fmd_strfree(ep->use_stat->fmds_value.str);
usr/src/cmd/fm/fmd/common/fmd_ustat.c
288
sp->fmds_value.str != NULL) {
usr/src/cmd/fm/fmd/common/fmd_ustat.c
289
sp->fmds_value.str = fmd_strdup(
usr/src/cmd/fm/fmd/common/fmd_ustat.c
290
sp->fmds_value.str, FMD_SLEEP);
usr/src/cmd/fm/fmd/common/fmd_ustat.c
330
fmd_strfree(ep->use_stat->fmds_value.str);
usr/src/cmd/fm/fmd/common/fmd_xprt.c
382
fmd_strfree(xip->xi_stats->xs_state.fmds_value.str);
usr/src/cmd/fm/fmd/common/fmd_xprt.c
383
xip->xi_stats->xs_state.fmds_value.str = s;
usr/src/cmd/fm/fmd/common/fmd_xprt.c
422
fmd_strfree(xip->xi_stats->xs_authority.fmds_value.str);
usr/src/cmd/fm/fmd/common/fmd_xprt.c
423
xip->xi_stats->xs_authority.fmds_value.str = s;
usr/src/cmd/fm/fmd/common/fmd_xprt.c
821
xip->xi_stats->xs_module.fmds_value.str =
usr/src/cmd/fm/fmdump/common/fault.c
157
char buf[32], str[32];
usr/src/cmd/fm/fmdump/common/fault.c
165
(void) snprintf(str, sizeof (str), "%s %s", code, "Repaired");
usr/src/cmd/fm/fmdump/common/fault.c
166
code = str;
usr/src/cmd/fm/fmdump/common/fault.c
169
(void) snprintf(str, sizeof (str), "%s %s", code, "Resolved");
usr/src/cmd/fm/fmdump/common/fault.c
170
code = str;
usr/src/cmd/fm/fmdump/common/fault.c
173
(void) snprintf(str, sizeof (str), "%s %s", code, "Updated");
usr/src/cmd/fm/fmdump/common/fault.c
174
code = str;
usr/src/cmd/fm/fmdump/common/fault.c
34
char buf[32], str[32];
usr/src/cmd/fm/fmdump/common/fault.c
57
(void) snprintf(str, sizeof (str), "%s %s",
usr/src/cmd/fm/fmdump/common/fault.c
59
code = str;
usr/src/cmd/fm/fmdump/common/fmdump.c
600
char *str;
usr/src/cmd/fm/fmdump/common/fmdump.c
604
str = malloc(len);
usr/src/cmd/fm/fmdump/common/fmdump.c
605
if (newp == NULL || str == NULL)
usr/src/cmd/fm/fmdump/common/fmdump.c
608
(void) snprintf(str, len, "%s/%s", dirname, logname);
usr/src/cmd/fm/fmdump/common/fmdump.c
609
newp->path = str;
usr/src/cmd/fm/fminject/common/inj_defn.c
122
inj_defn_mem_create(const char *str, inj_defnmemtype_t type)
usr/src/cmd/fm/fminject/common/inj_defn.c
126
dfm->dfm_str = str;
usr/src/cmd/fm/fminject/common/inj_defn.c
406
bool2val(const char *str, boolean_t *valp)
usr/src/cmd/fm/fminject/common/inj_defn.c
408
if (strcasecmp(str, "true") == 0)
usr/src/cmd/fm/fminject/common/inj_defn.c
410
else if (strcasecmp(str, "false") == 0)
usr/src/cmd/fm/fminject/common/inj_string.c
105
val = strtoll(str, &c, 0);
usr/src/cmd/fm/fminject/common/inj_string.c
120
inj_strtoull(const char *str, int width, u_longlong_t *valp)
usr/src/cmd/fm/fminject/common/inj_string.c
134
val = strtoull(str, &c, 0);
usr/src/cmd/fm/fminject/common/inj_string.c
235
inj_strhash_insert(inj_hash_t *h, const char *str, uintmax_t value)
usr/src/cmd/fm/fminject/common/inj_string.c
237
return (inj_hash_insert(h, (void *)inj_strdup(str), value));
usr/src/cmd/fm/fminject/common/inj_string.c
241
inj_strhash_lookup(inj_hash_t *h, const char *str)
usr/src/cmd/fm/fminject/common/inj_string.c
243
return (inj_hash_lookup(h, (void *)str));
usr/src/cmd/fm/fminject/common/inj_string.c
91
inj_strtoll(const char *str, int width, longlong_t *valp)
usr/src/cmd/fm/fmstat/common/fmstat.c
406
mp->m_new->state.fmds_value.str,
usr/src/cmd/fm/fmstat/common/fmstat.c
416
mp->m_new->module.fmds_value.str);
usr/src/cmd/fm/fmstat/common/fmstat.c
458
strcmp(module, mp->m_new->module.fmds_value.str) == 0) {
usr/src/cmd/fm/fmstat/common/fmstat.c
460
mp->m_new->state.fmds_value.str,
usr/src/cmd/fm/fmstat/common/fmstat.c
461
mp->m_new->module.fmds_value.str,
usr/src/cmd/fm/fmstat/common/fmstat.c
462
mp->m_new->authority.fmds_value.str ?
usr/src/cmd/fm/fmstat/common/fmstat.c
463
mp->m_new->authority.fmds_value.str : "-");
usr/src/cmd/fm/fmstat/common/fmstat.c
567
if (sp->fmds_value.str == NULL ||
usr/src/cmd/fm/fmstat/common/fmstat.c
568
sp->fmds_value.str[0] == '\0')
usr/src/cmd/fm/fmstat/common/fmstat.c
594
(void) printf("%-16s", sp->fmds_value.str ?
usr/src/cmd/fm/fmstat/common/fmstat.c
595
sp->fmds_value.str : "<<null>>");
usr/src/cmd/fm/modules/common/disk-monitor/diskmon_conf.c
144
char *str;
usr/src/cmd/fm/modules/common/disk-monitor/diskmon_conf.c
146
if (nvlist_lookup_string(props, prop_name, &str) == 0)
usr/src/cmd/fm/modules/common/disk-monitor/diskmon_conf.c
147
return ((const char *)str);
usr/src/cmd/fm/modules/common/disk-monitor/diskmon_conf.c
714
char *name, *str;
usr/src/cmd/fm/modules/common/disk-monitor/diskmon_conf.c
719
(void) nvlist_lookup_string(nvlp, name, &str);
usr/src/cmd/fm/modules/common/disk-monitor/diskmon_conf.c
720
(void) fprintf(fp, "%s%s = \"%s\"\n", prefix, name, str);
usr/src/cmd/fm/modules/common/disk-monitor/diskmon_conf.c
795
char *str = NULL;
usr/src/cmd/fm/modules/common/disk-monitor/diskmon_conf.c
825
str = fmd_prop_get_string(hdl, fmd_props[i].fmdp_name);
usr/src/cmd/fm/modules/common/disk-monitor/diskmon_conf.c
835
nvp.value = str;
usr/src/cmd/fm/modules/common/disk-monitor/diskmon_conf.c
845
fmd_prop_free_string(hdl, str);
usr/src/cmd/fm/modules/common/disk-monitor/dm_platform.c
105
tolowerString(char *str)
usr/src/cmd/fm/modules/common/disk-monitor/dm_platform.c
107
while (*str != 0) {
usr/src/cmd/fm/modules/common/disk-monitor/dm_platform.c
108
*str = tolower(*str);
usr/src/cmd/fm/modules/common/disk-monitor/dm_platform.c
109
str++;
usr/src/cmd/fm/modules/common/disk-monitor/dm_platform.c
79
isnumber(const char *str)
usr/src/cmd/fm/modules/common/disk-monitor/dm_platform.c
84
if (strncasecmp(str, "0x", 2) == 0) {
usr/src/cmd/fm/modules/common/disk-monitor/dm_platform.c
86
str += 2;
usr/src/cmd/fm/modules/common/disk-monitor/dm_platform.c
87
} else if (*str == '-' || *str == '+') {
usr/src/cmd/fm/modules/common/disk-monitor/dm_platform.c
88
str++;
usr/src/cmd/fm/modules/common/disk-monitor/dm_platform.c
91
while (*str != 0) {
usr/src/cmd/fm/modules/common/disk-monitor/dm_platform.c
92
if ((hex && !isxdigit(*str)) ||
usr/src/cmd/fm/modules/common/disk-monitor/dm_platform.c
93
(!hex && !isdigit(*str))) {
usr/src/cmd/fm/modules/common/disk-monitor/dm_platform.c
97
str++;
usr/src/cmd/fm/modules/common/disk-monitor/schg_mgr.c
103
return (str);
usr/src/cmd/fm/modules/common/disk-monitor/schg_mgr.c
89
const char *str = NULL;
usr/src/cmd/fm/modules/common/disk-monitor/schg_mgr.c
96
str = ind_listp->ind_instr_spec;
usr/src/cmd/fm/modules/common/disk-monitor/topo_gather.c
194
fmri2ptr(topo_hdl_t *thp, tnode_t *node, char **str, int *err)
usr/src/cmd/fm/modules/common/disk-monitor/topo_gather.c
215
if (str != NULL)
usr/src/cmd/fm/modules/common/disk-monitor/topo_gather.c
216
*str = dstrdup(cstr);
usr/src/cmd/fm/modules/common/disk-monitor/topo_gather.c
377
str2dmstate(char *str)
usr/src/cmd/fm/modules/common/disk-monitor/topo_gather.c
379
if (strcasecmp("configured", str) == 0) {
usr/src/cmd/fm/modules/common/disk-monitor/topo_gather.c
381
} else if (strcasecmp("unconfigured", str) == 0) {
usr/src/cmd/fm/modules/common/disk-monitor/topo_gather.c
383
} else if (strcasecmp("absent", str) == 0) {
usr/src/cmd/fm/modules/common/disk-monitor/topo_gather.c
385
} else if (strcasecmp("present", str) == 0) {
usr/src/cmd/fm/modules/common/disk-monitor/topo_gather.c
79
dm_fmristring_to_diskmon(char *str)
usr/src/cmd/fm/modules/common/disk-monitor/topo_gather.c
84
char *lastsl = strrchr(str, '/');
usr/src/cmd/fm/modules/common/disk-monitor/topo_gather.c
89
if (nvlist_lookup_uint64(g_topo2diskmon, str, &u64val) == 0) {
usr/src/cmd/fm/modules/common/eversholt/eft.c
162
#define xstr(s) str(s)
usr/src/cmd/fm/modules/common/eversholt/eval.c
713
char *str;
usr/src/cmd/fm/modules/common/eversholt/eval.c
720
str = "n";
usr/src/cmd/fm/modules/common/eversholt/eval.c
722
str = "t";
usr/src/cmd/fm/modules/common/eversholt/eval.c
724
str = "suffix";
usr/src/cmd/fm/modules/common/eversholt/eval.c
726
str = "increment";
usr/src/cmd/fm/modules/common/eversholt/eval.c
735
(void *)str, (lut_cmp)strcmp)) == NULL) {
usr/src/cmd/fm/modules/common/eversholt/eval.c
743
"setserd%s: %s: ", str,
usr/src/cmd/fm/modules/common/eversholt/eval.c
752
"setserd%s: %s: ", str,
usr/src/cmd/fm/modules/common/eversholt/eval.c
758
"setserd%s: %s: ", str,
usr/src/cmd/fm/modules/common/eversholt/eval.c
796
flt->serdprops = lut_add(flt->serdprops, (void *)str,
usr/src/cmd/fm/modules/common/eversholt/fme.c
2352
char *str;
usr/src/cmd/fm/modules/common/eversholt/fme.c
2363
str = ipath2str(lhs->ename, lhs->ipath);
usr/src/cmd/fm/modules/common/eversholt/fme.c
2364
len = strlen(str);
usr/src/cmd/fm/modules/common/eversholt/fme.c
2367
(void) strlcpy(Istatbufptr, str, &Istatbuf[Istatsz] - Istatbufptr);
usr/src/cmd/fm/modules/common/eversholt/fme.c
2369
FREE(str);
usr/src/cmd/fm/modules/common/eversholt/fme.c
2615
char *str;
usr/src/cmd/fm/modules/common/eversholt/fme.c
2621
str = ipath2str(lhs->ename, lhs->ipath);
usr/src/cmd/fm/modules/common/eversholt/fme.c
2622
len = strlen(str);
usr/src/cmd/fm/modules/common/eversholt/fme.c
2625
(void) strlcpy(Serdbufptr, str, &Serdbuf[Serdsz] - Serdbufptr);
usr/src/cmd/fm/modules/common/eversholt/fme.c
2627
FREE(str);
usr/src/cmd/fm/modules/common/eversholt/stats.c
219
if (sp->fmd_stats.fmds_value.str)
usr/src/cmd/fm/modules/common/eversholt/stats.c
220
fmd_hdl_strfree(Hdl, sp->fmd_stats.fmds_value.str);
usr/src/cmd/fm/modules/common/eversholt/stats.c
221
sp->fmd_stats.fmds_value.str = fmd_hdl_strdup(Hdl, s, FMD_SLEEP);
usr/src/cmd/fm/modules/common/ext-event-transport/fmevt_inbound.c
218
char *str;
usr/src/cmd/fm/modules/common/ext-event-transport/fmevt_inbound.c
244
if (nvlist_lookup_string(attr, "__fmev_file", &str) == 0) {
usr/src/cmd/fm/modules/common/ext-event-transport/fmevt_inbound.c
245
err += nvlist_add_string(site, FM_FMRI_SW_SITE_FILE, str);
usr/src/cmd/fm/modules/common/ext-event-transport/fmevt_inbound.c
249
if (nvlist_lookup_string(attr, "__fmev_func", &str) == 0) {
usr/src/cmd/fm/modules/common/ext-event-transport/fmevt_inbound.c
250
err += nvlist_add_string(site, FM_FMRI_SW_SITE_FUNC, str);
usr/src/cmd/fm/modules/common/fabric-xlate/fx_fabric.c
856
char *rppath = fab_get_rpdev(hdl), *str = NULL;
usr/src/cmd/fm/modules/common/fabric-xlate/fx_fabric.c
868
str = rppath;
usr/src/cmd/fm/modules/common/fabric-xlate/fx_fabric.c
869
while (*str) {
usr/src/cmd/fm/modules/common/fabric-xlate/fx_fabric.c
870
if (*str == '/')
usr/src/cmd/fm/modules/common/fabric-xlate/fx_fabric.c
872
str++;
usr/src/cmd/fm/modules/common/fabric-xlate/fx_subr.c
363
char str[10];
usr/src/cmd/fm/modules/common/fabric-xlate/fx_subr.c
367
(void) snprintf(str, sizeof (str), "%0hhx", df);
usr/src/cmd/fm/modules/common/fabric-xlate/fx_subr.c
392
"/propval[@name='dev']/@value", str, PCIEX_ROOT, hcpath);
usr/src/cmd/fm/modules/common/fabric-xlate/fx_subr.c
754
char *str;
usr/src/cmd/fm/modules/common/fabric-xlate/fx_subr.c
832
(void) nvpair_value_string(nvp, &str);
usr/src/cmd/fm/modules/common/fabric-xlate/fx_subr.c
834
str ? str : "<NULL>");
usr/src/cmd/fm/schemes/cpu/cpu.c
47
char *str;
usr/src/cmd/fm/schemes/cpu/cpu.c
51
if (topo_fmri_nvl2str(thp, nvl, &str, &err) != 0) {
usr/src/cmd/fm/schemes/cpu/cpu.c
56
len = snprintf(buf, buflen, "%s", str);
usr/src/cmd/fm/schemes/cpu/cpu.c
58
len = strlen(str);
usr/src/cmd/fm/schemes/cpu/cpu.c
59
topo_hdl_strfree(thp, str);
usr/src/cmd/fm/schemes/dev/scheme.c
51
char *str;
usr/src/cmd/fm/schemes/dev/scheme.c
56
if (topo_fmri_nvl2str(thp, nvl, &str, &err) != 0) {
usr/src/cmd/fm/schemes/dev/scheme.c
62
len = snprintf(buf, buflen, "%s", str);
usr/src/cmd/fm/schemes/dev/scheme.c
64
len = strlen(str);
usr/src/cmd/fm/schemes/dev/scheme.c
66
topo_hdl_strfree(thp, str);
usr/src/cmd/fm/schemes/hc/scheme.c
48
char *str;
usr/src/cmd/fm/schemes/hc/scheme.c
56
if (topo_fmri_nvl2str(thp, nvl, &str, &err) != 0) {
usr/src/cmd/fm/schemes/hc/scheme.c
62
len = snprintf(buf, buflen, "%s", str);
usr/src/cmd/fm/schemes/hc/scheme.c
64
len = strlen(str);
usr/src/cmd/fm/schemes/hc/scheme.c
66
topo_hdl_strfree(thp, str);
usr/src/cmd/fm/schemes/mod/scheme.c
36
char *str;
usr/src/cmd/fm/schemes/mod/scheme.c
41
if (topo_fmri_nvl2str(thp, nvl, &str, &err) != 0) {
usr/src/cmd/fm/schemes/mod/scheme.c
47
len = snprintf(buf, buflen, "%s", str);
usr/src/cmd/fm/schemes/mod/scheme.c
49
len = strlen(str);
usr/src/cmd/fm/schemes/mod/scheme.c
51
topo_hdl_strfree(thp, str);
usr/src/cmd/fm/schemes/pkg/scheme.c
36
char *str;
usr/src/cmd/fm/schemes/pkg/scheme.c
41
if (topo_fmri_nvl2str(thp, nvl, &str, &err) != 0) {
usr/src/cmd/fm/schemes/pkg/scheme.c
47
len = snprintf(buf, buflen, "%s", str);
usr/src/cmd/fm/schemes/pkg/scheme.c
49
len = strlen(str);
usr/src/cmd/fm/schemes/pkg/scheme.c
51
topo_hdl_strfree(thp, str);
usr/src/cmd/fm/schemes/svc/scheme.c
50
char *str;
usr/src/cmd/fm/schemes/svc/scheme.c
55
if (topo_fmri_nvl2str(thp, nvl, &str, &err) != 0) {
usr/src/cmd/fm/schemes/svc/scheme.c
61
len = snprintf(buf, buflen, "%s", str);
usr/src/cmd/fm/schemes/svc/scheme.c
63
len = strlen(str);
usr/src/cmd/fm/schemes/svc/scheme.c
65
topo_hdl_strfree(thp, str);
usr/src/cmd/fm/schemes/sw/scheme.c
49
char *str;
usr/src/cmd/fm/schemes/sw/scheme.c
54
if (topo_fmri_nvl2str(thp, nvl, &str, &err) != 0) {
usr/src/cmd/fm/schemes/sw/scheme.c
60
len = snprintf(buf, buflen, "%s", str);
usr/src/cmd/fm/schemes/sw/scheme.c
62
len = strlen(str);
usr/src/cmd/fm/schemes/sw/scheme.c
64
topo_hdl_strfree(thp, str);
usr/src/cmd/fmtmsg/main.c
303
noesc(str)
usr/src/cmd/fmtmsg/main.c
304
char *str; /* String to remove escaped characters from */
usr/src/cmd/fmtmsg/main.c
310
p = str;
usr/src/cmd/fmtmsg/main.c
325
return(str);
usr/src/cmd/format/io.c
1737
for (; lp->str != NULL; lp++) {
usr/src/cmd/format/io.c
1740
ljust_print(lp->str,
usr/src/cmd/format/io.c
1754
for (; lp->str != NULL; lp++) {
usr/src/cmd/format/io.c
1756
ljust_print(lp->str, width);
usr/src/cmd/format/io.c
1791
for (; slist->str != NULL; slist++) {
usr/src/cmd/format/io.c
1795
i = strcnt(match_str, slist->str);
usr/src/cmd/format/io.c
1826
for (; slist->str != NULL; slist++) {
usr/src/cmd/format/io.c
1828
return (slist->str);
usr/src/cmd/format/io.c
1845
for (; slist->str != NULL; slist++) {
usr/src/cmd/format/io.c
1846
if ((i = strlen(slist->str)) > width)
usr/src/cmd/format/io.c
1857
ljust_print(char *str, int width)
usr/src/cmd/format/io.c
1861
fmt_print("%s", str);
usr/src/cmd/format/io.c
1862
for (i = width - strlen(str); i > 0; i--) {
usr/src/cmd/format/io.c
244
geti(char *str, int *iptr, int *wild)
usr/src/cmd/format/io.c
252
if (wild != NULL && strcmp(str, WILD_STRING) == 0)
usr/src/cmd/format/io.c
258
*iptr = (int)strtol(str, &str2, 0);
usr/src/cmd/format/io.c
263
err_print("`%s' is not an integer.\n", str);
usr/src/cmd/format/io.c
277
geti64(char *str, uint64_t *iptr, uint64_t *wild)
usr/src/cmd/format/io.c
285
if ((wild != NULL) && (strcmp(str, WILD_STRING)) == 0) {
usr/src/cmd/format/io.c
291
*iptr = (uint64_t)strtoll(str, &str2, 0);
usr/src/cmd/format/io.c
296
err_print("`%s' is not an integer.\n", str);
usr/src/cmd/format/io.c
314
getbn(char *str, diskaddr_t *iptr)
usr/src/cmd/format/io.c
325
cptr = str;
usr/src/cmd/format/io.c
329
while ((*str != '\0') && (*str != '/'))
usr/src/cmd/format/io.c
330
str++;
usr/src/cmd/format/io.c
334
if (*str == '\0') {
usr/src/cmd/format/io.c
343
*str++ = '\0';
usr/src/cmd/format/io.c
344
hptr = str;
usr/src/cmd/format/io.c
348
while ((*str != '\0') && (*str != '/'))
usr/src/cmd/format/io.c
349
str++;
usr/src/cmd/format/io.c
353
if (*str == '\0')
usr/src/cmd/format/io.c
354
sptr = str;
usr/src/cmd/format/io.c
359
*str++ = '\0';
usr/src/cmd/format/io.c
360
sptr = str;
usr/src/cmd/format/io.c
417
char **str, **strings;
usr/src/cmd/format/io.c
486
for (i = 0, str = strings; i < *deflt; i++, str++)
usr/src/cmd/format/io.c
488
fmt_print("[%s]", *str);
usr/src/cmd/format/io.c
503
s = (param->io_slist)->str;
usr/src/cmd/format/io.c
69
static int getbn(char *str, diskaddr_t *iptr);
usr/src/cmd/format/io.c
72
static void ljust_print(char *str, int width);
usr/src/cmd/format/io.c
75
static int geti64(char *str, uint64_t *iptr, uint64_t *wild);
usr/src/cmd/format/io.c
916
for (str = strings; *str != NULL; str++)
usr/src/cmd/format/io.c
917
if (strcmp(cleantoken, *str) == 0)
usr/src/cmd/format/io.c
918
return (str - strings);
usr/src/cmd/format/io.c
943
for (str = strings; *str != NULL; str++) {
usr/src/cmd/format/io.c
948
i = strcnt(cleantoken, *str);
usr/src/cmd/format/io.c
963
index = str - strings;
usr/src/cmd/format/io.h
105
int geti(char *str, int *iptr, int *wild);
usr/src/cmd/format/io.h
46
char *str;
usr/src/cmd/format/menu.c
88
char **str;
usr/src/cmd/format/menu.c
90
for (str = list; *str != NULL; str++)
usr/src/cmd/format/menu.c
91
fmt_print(" %s\n", *str);
usr/src/cmd/format/menu_defect.c
533
char *str;
usr/src/cmd/format/menu_defect.c
553
str = (char *)(uintptr_t)input(FIO_OSTR, "Enter name of defect file",
usr/src/cmd/format/menu_defect.c
562
if ((fptr = fopen(str, "w+")) == NULL) {
usr/src/cmd/format/menu_defect.c
592
destroy_data(str);
usr/src/cmd/format/menu_defect.c
607
char *str;
usr/src/cmd/format/menu_defect.c
618
str = (char *)(uintptr_t)input(FIO_OSTR, "Enter name of defect file",
usr/src/cmd/format/menu_defect.c
626
(void) strcpy(filename, str);
usr/src/cmd/format/menu_defect.c
627
destroy_data(str);
usr/src/cmd/format/misc.c
592
build_argvlist(char **argvlist, int *size, int *alloc, char *str)
usr/src/cmd/format/misc.c
605
argvlist[*size] = alloc_string(str);
usr/src/cmd/format/startup.c
104
static uint_t str2blks(char *str);
usr/src/cmd/format/startup.c
105
static int str2cyls(char *str);
usr/src/cmd/format/startup.c
2627
str2blks(char *str)
usr/src/cmd/format/startup.c
2632
blks = (int)strtol(str, &p, 0);
usr/src/cmd/format/startup.c
2666
str2cyls(char *str)
usr/src/cmd/format/startup.c
2671
cyls = (int)strtol(str, &p, 0);
usr/src/cmd/fs.d/autofs/auto_subr.c
472
char *str, *comma;
usr/src/cmd/fs.d/autofs/auto_subr.c
477
if (str = hasmntopt(mnt, opt)) {
usr/src/cmd/fs.d/autofs/auto_subr.c
478
str += strlen(opt);
usr/src/cmd/fs.d/autofs/auto_subr.c
479
if (*str++ != '=' ||
usr/src/cmd/fs.d/autofs/auto_subr.c
480
(*str == ',' || *str == '\0')) {
usr/src/cmd/fs.d/autofs/auto_subr.c
484
comma = strchr(str, ',');
usr/src/cmd/fs.d/autofs/auto_subr.c
487
*sval = strdup(str);
usr/src/cmd/fs.d/autofs/auto_subr.c
669
unquote(str, qbuf)
usr/src/cmd/fs.d/autofs/auto_subr.c
670
char *str, *qbuf;
usr/src/cmd/fs.d/autofs/auto_subr.c
678
for (ip = str, bp = buf, qp = qbuf; *ip; ip++) {
usr/src/cmd/fs.d/autofs/auto_subr.c
709
(void) strcpy(str, buf);
usr/src/cmd/fs.d/autofs/autod_nfs.c
3530
char *str;
usr/src/cmd/fs.d/autofs/autod_nfs.c
3542
if (str = hasmntopt(mnt, opt)) {
usr/src/cmd/fs.d/autofs/autod_nfs.c
3543
if (equal = strchr(str, '=')) {
usr/src/cmd/fs.d/autofs/autod_nfs.c
3547
syslog(LOG_ERR, "Bad numeric option '%s'", str);
usr/src/cmd/fs.d/autofs/ns_fnmount.c
135
str_from_addr(const char *cname, const FN_ref_addr_t *addr, char str[],
usr/src/cmd/fs.d/autofs/ns_fnmount.c
628
str_from_addr(const char *cname, const FN_ref_addr_t *addr, char str[],
usr/src/cmd/fs.d/autofs/ns_fnmount.c
636
if (!xdr_string(&xdr, &str, strsz)) {
usr/src/cmd/fs.d/autofs/ns_fnreaddir.c
475
char *str;
usr/src/cmd/fs.d/autofs/ns_fnreaddir.c
484
str = (char *)fn_string_str(string, &stat);
usr/src/cmd/fs.d/autofs/ns_fnreaddir.c
485
if (str != NULL) {
usr/src/cmd/fs.d/autofs/ns_fnreaddir.c
486
str = auto_rddir_strdup(str);
usr/src/cmd/fs.d/autofs/ns_fnreaddir.c
489
if (str == NULL) {
usr/src/cmd/fs.d/autofs/ns_fnreaddir.c
499
free(str);
usr/src/cmd/fs.d/autofs/ns_fnreaddir.c
503
entry->name = str;
usr/src/cmd/fs.d/autofs/ns_fnutils.c
153
ident_str_equal(const FN_identifier_t *id, const char *str)
usr/src/cmd/fs.d/autofs/ns_fnutils.c
156
(id->length == strlen(str)) &&
usr/src/cmd/fs.d/autofs/ns_fnutils.c
157
(strncmp(str, id->contents, id->length) == 0));
usr/src/cmd/fs.d/autofs/ns_fnutils.c
93
new_cname(const char *str)
usr/src/cmd/fs.d/autofs/ns_fnutils.c
98
string = fn_string_from_str((unsigned char *)str);
usr/src/cmd/fs.d/autofs/ns_ldap.c
1002
if (isupper(str[i+1])) {
usr/src/cmd/fs.d/autofs/ns_ldap.c
1022
buf[j] = str[i];
usr/src/cmd/fs.d/autofs/ns_ldap.c
1052
tounix_str(char *str)
usr/src/cmd/fs.d/autofs/ns_ldap.c
1061
for (i = 0; i < strlen(str); i++) {
usr/src/cmd/fs.d/autofs/ns_ldap.c
1062
if (str[i] == '%') {
usr/src/cmd/fs.d/autofs/ns_ldap.c
1063
if (isupper(str[i+1])) {
usr/src/cmd/fs.d/autofs/ns_ldap.c
1065
} else if ((str[i+1] == '[') && (isupper(str[i+2]))) {
usr/src/cmd/fs.d/autofs/ns_ldap.c
1069
} else if (str[i] == ']') {
usr/src/cmd/fs.d/autofs/ns_ldap.c
1070
if ((isupper(str[i-1])) && (openBracket == TRUE))
usr/src/cmd/fs.d/autofs/ns_ldap.c
1074
buf[j] = str[i];
usr/src/cmd/fs.d/autofs/ns_ldap.c
986
tosunds_str(char *str)
usr/src/cmd/fs.d/autofs/ns_ldap.c
997
for (i = 0; i < strlen(str); i++) {
usr/src/cmd/fs.d/autofs/ns_ldap.c
999
if (isupper(str[i])) {
usr/src/cmd/fs.d/dev/mount.c
159
char *str;
usr/src/cmd/fs.d/dev/mount.c
161
str = strdup(s1);
usr/src/cmd/fs.d/dev/mount.c
162
if (str == NULL) {
usr/src/cmd/fs.d/dev/mount.c
166
return (str);
usr/src/cmd/fs.d/nfs/lib/nfs_sec.c
77
extern int atoi(const char *str);
usr/src/cmd/fs.d/nfs/lib/nfs_subr.c
101
p = q = str;
usr/src/cmd/fs.d/nfs/lib/nfs_subr.c
97
URLparse(char *str)
usr/src/cmd/fs.d/nfs/lib/ref_subr.c
54
str_to_utf8(char *nm, utf8string *str)
usr/src/cmd/fs.d/nfs/lib/ref_subr.c
58
if (str == NULL)
usr/src/cmd/fs.d/nfs/lib/ref_subr.c
62
str->utf8string_len = 0;
usr/src/cmd/fs.d/nfs/lib/ref_subr.c
63
str->utf8string_val = NULL;
usr/src/cmd/fs.d/nfs/lib/ref_subr.c
69
str->utf8string_val = malloc(len);
usr/src/cmd/fs.d/nfs/lib/ref_subr.c
70
if (str->utf8string_val == NULL) {
usr/src/cmd/fs.d/nfs/lib/ref_subr.c
71
str->utf8string_len = 0;
usr/src/cmd/fs.d/nfs/lib/ref_subr.c
74
str->utf8string_len = len;
usr/src/cmd/fs.d/nfs/lib/ref_subr.c
75
bcopy(nm, str->utf8string_val, len);
usr/src/cmd/fs.d/nfs/lib/ref_subr.c
77
return (str);
usr/src/cmd/fs.d/nfs/lib/ref_subr.c
85
utf8_to_str(utf8string *str, uint_t *lenp, char *s)
usr/src/cmd/fs.d/nfs/lib/ref_subr.c
92
if (str == NULL)
usr/src/cmd/fs.d/nfs/lib/ref_subr.c
95
u8p = str->utf8string_val;
usr/src/cmd/fs.d/nfs/lib/ref_subr.c
96
len = str->utf8string_len;
usr/src/cmd/fs.d/nfs/lib/smfcfg.c
41
const char *str;
usr/src/cmd/fs.d/nfs/lib/smfcfg.c
454
string_to_boolean(const char *str)
usr/src/cmd/fs.d/nfs/lib/smfcfg.c
456
if (strcasecmp(str, "true") == 0 || atoi(str) == 1 ||
usr/src/cmd/fs.d/nfs/lib/smfcfg.c
457
strcasecmp(str, "on") == 0 || strcasecmp(str, "yes") == 0) {
usr/src/cmd/fs.d/nfs/lib/smfcfg.c
62
if (strcmp(version, nfs_versions[i].str) == 0) {
usr/src/cmd/fs.d/nfs/mount/mount.c
955
convert_int(int *val, char *str)
usr/src/cmd/fs.d/nfs/mount/mount.c
959
if (str == NULL || !isdigit(*str))
usr/src/cmd/fs.d/nfs/mount/mount.c
962
lval = strtol(str, &str, 10);
usr/src/cmd/fs.d/nfs/mount/mount.c
963
if (*str != '\0' || lval > INT_MAX)
usr/src/cmd/fs.d/nfs/mountd/mountd.c
2099
map_flavor(char *str)
usr/src/cmd/fs.d/nfs/mountd/mountd.c
2103
if (nfs_getseconfig_byname(str, &sec))
usr/src/cmd/fs.d/nfs/nfslog/dbtab.c
100
fhlist_ent *fhrecp, char *str);
usr/src/cmd/fs.d/nfs/nfslog/dbtab.c
102
linkinfo_ent *linkp, char *str);
usr/src/cmd/fs.d/nfs/nfslog/dbtab.c
460
int datasize, char *str)
usr/src/cmd/fs.d/nfs/nfslog/dbtab.c
474
debug_print_key_and_data(stdout, str, "dbm_store:\n ",
usr/src/cmd/fs.d/nfs/nfslog/dbtab.c
494
debug_print_key(stderr, str, "store_record:"
usr/src/cmd/fs.d/nfs/nfslog/dbtab.c
513
int *errorp, char *str)
usr/src/cmd/fs.d/nfs/nfslog/dbtab.c
539
debug_print_key(stderr, str, "fetch_record:"
usr/src/cmd/fs.d/nfs/nfslog/dbtab.c
552
str, data.dsize, strerror(*errorp));
usr/src/cmd/fs.d/nfs/nfslog/dbtab.c
557
debug_print_key_and_data(stdout, str, "fetch_record:"
usr/src/cmd/fs.d/nfs/nfslog/dbtab.c
570
delete_record(struct db_list *dbp, void *keyaddr, int keysize, char *str)
usr/src/cmd/fs.d/nfs/nfslog/dbtab.c
582
debug_print_key(stdout, str, "delete_record:"
usr/src/cmd/fs.d/nfs/nfslog/dbtab.c
601
debug_print_key(stderr, str, "delete_record:"
usr/src/cmd/fs.d/nfs/nfslog/dbtab.c
616
fhlist_ent *fhrecp, char *str)
usr/src/cmd/fs.d/nfs/nfslog/dbtab.c
623
fhrecp, fhrecp->reclen, str));
usr/src/cmd/fs.d/nfs/nfslog/dbtab.c
634
linkinfo_ent *linkp, char *str)
usr/src/cmd/fs.d/nfs/nfslog/dbtab.c
641
linkp, linkp->reclen, str));
usr/src/cmd/fs.d/nfs/nfslog/dbtab.c
94
void *dataaddr, int datasize, char *str);
usr/src/cmd/fs.d/nfs/nfslog/dbtab.c
96
void *dataaddr, int *errorp, char *str);
usr/src/cmd/fs.d/nfs/nfslog/dbtab.c
98
char *str);
usr/src/cmd/fs.d/nfs/nfslog/fhtab.c
1015
char *fhpath, char **pathp1, char **pathp2, char *str)
usr/src/cmd/fs.d/nfs/nfslog/fhtab.c
1026
str, name,
usr/src/cmd/fs.d/nfs/nfslog/fhtab.c
1030
*pathp1 = nfslog_get_path(dfh, NULL, fhpath, str);
usr/src/cmd/fs.d/nfs/nfslog/fhtab.c
1036
*pathp1 = nfslog_get_path(dfh, name, fhpath, str);
usr/src/cmd/fs.d/nfs/nfslog/fhtab.c
1045
name = nfslog_get_path(dfh, name, fhpath, str);
usr/src/cmd/fs.d/nfs/nfslog/fhtab.c
1058
"%s: Add fh for '%s' failed: %s\n"), str,
usr/src/cmd/fs.d/nfs/nfslog/fhtab.c
106
char *fhpath, char **pathp1, char **pathp2, char *str);
usr/src/cmd/fs.d/nfs/nfslog/fhtab.c
51
#define PRINT_LINK_DATA(fp, func, dfh, name, str) \
usr/src/cmd/fs.d/nfs/nfslog/fhtab.c
55
(void) fprintf(fp, "%s\n", str);
usr/src/cmd/fs.d/nfs/nfslog/fhtab.c
563
char *str, *str1;
usr/src/cmd/fs.d/nfs/nfslog/fhtab.c
567
str = nfslog_get_path(dfh, name, fhpath, "remove_mc_link");
usr/src/cmd/fs.d/nfs/nfslog/fhtab.c
568
str1 = str;
usr/src/cmd/fs.d/nfs/nfslog/fhtab.c
570
str = *pathp;
usr/src/cmd/fs.d/nfs/nfslog/fhtab.c
573
error = db_delete_link(fhpath, &public_fh, str);
usr/src/cmd/fs.d/nfs/nfslog/fhtab.c
58
#define PRINT_FULL_DATA(fp, func, dfh, fh, name, str) \
usr/src/cmd/fs.d/nfs/nfslog/fhtab.c
66
(void) fprintf(fp, "%s\n", str);
usr/src/cmd/fs.d/nfs/nfslog/fhtab.c
876
char *str, *rootname, parent[MAXPATHLEN];
usr/src/cmd/fs.d/nfs/nfslog/fhtab.c
887
if ((str = strdup(name)) == NULL) {
usr/src/cmd/fs.d/nfs/nfslog/fhtab.c
892
return (str);
usr/src/cmd/fs.d/nfs/nfslog/fhtab.c
943
if ((str = malloc(len)) == NULL) {
usr/src/cmd/fs.d/nfs/nfslog/fhtab.c
951
(void) strcpy(str, rootname);
usr/src/cmd/fs.d/nfs/nfslog/fhtab.c
953
sprint_fid(str, len, fh);
usr/src/cmd/fs.d/nfs/nfslog/fhtab.c
955
for (k = strlen(str), i = strlen(parent); (k < len) && (i >= 0); i--) {
usr/src/cmd/fs.d/nfs/nfslog/fhtab.c
959
(void) strcpy(&str[k], &parent[j]);
usr/src/cmd/fs.d/nfs/nfslog/fhtab.c
960
k += strlen(&str[k]);
usr/src/cmd/fs.d/nfs/nfslog/fhtab.c
964
str[k] = '/';
usr/src/cmd/fs.d/nfs/nfslog/fhtab.c
965
(void) strcpy(&str[k + 1], name);
usr/src/cmd/fs.d/nfs/nfslog/fhtab.c
968
(void) printf("fh_print_absolute: path '%s'\n", str);
usr/src/cmd/fs.d/nfs/nfslog/fhtab.c
969
return (str);
usr/src/cmd/fs.d/nfs/nfsmapid/nfsmapid_server.c
107
if (!extract_domain(argp->str, &user, &domain)) {
usr/src/cmd/fs.d/nfs/nfsmapid/nfsmapid_server.c
316
(void) sprintf(resp->str, "%s%s%s", pw_str, at_str, dom_str);
usr/src/cmd/fs.d/nfs/nfsmapid/nfsmapid_server.c
357
if (!extract_domain(argp->str, &group, &domain)) {
usr/src/cmd/fs.d/nfs/nfsmapid/nfsmapid_server.c
568
(void) sprintf(resp->str, "%s%s%s", gr_str, at_str, dom_str);
usr/src/cmd/fs.d/nfs/nfsmapid/nfsmapid_test.c
170
utf8string str;
usr/src/cmd/fs.d/nfs/nfsmapid/nfsmapid_test.c
202
str.utf8string_val = argv[1];
usr/src/cmd/fs.d/nfs/nfsmapid/nfsmapid_test.c
203
str.utf8string_len = strlen(argv[1]);
usr/src/cmd/fs.d/nfs/nfsmapid/nfsmapid_test.c
204
stat = nfs_idmap_str_uid(&str, &uid);
usr/src/cmd/fs.d/nfs/nfsmapid/nfsmapid_test.c
213
str.utf8string_val = argv[1];
usr/src/cmd/fs.d/nfs/nfsmapid/nfsmapid_test.c
214
str.utf8string_len = strlen(argv[1]);
usr/src/cmd/fs.d/nfs/nfsmapid/nfsmapid_test.c
215
stat = nfs_idmap_str_gid(&str, &gid);
usr/src/cmd/fs.d/nfs/nfsmapid/nfsmapid_test.c
226
str.utf8string_val = str_buf;
usr/src/cmd/fs.d/nfs/nfsmapid/nfsmapid_test.c
227
stat = nfs_idmap_uid_str(uid, &str);
usr/src/cmd/fs.d/nfs/nfsmapid/nfsmapid_test.c
228
printf(gettext("%s stat=%s\n"), str.utf8string_val,
usr/src/cmd/fs.d/nfs/nfsmapid/nfsmapid_test.c
239
str.utf8string_val = str_buf;
usr/src/cmd/fs.d/nfs/nfsmapid/nfsmapid_test.c
240
stat = nfs_idmap_gid_str(gid, &str);
usr/src/cmd/fs.d/nfs/nfsmapid/nfsmapid_test.c
241
printf(gettext("%s stat=%s\n"), str.utf8string_val,
usr/src/cmd/fs.d/nfs/nfsmapid/nfsmapid_test.c
351
(void) bcopy(u8s->utf8string_val, mapargp->str, mapargp->u_arg.len);
usr/src/cmd/fs.d/nfs/nfsmapid/nfsmapid_test.c
352
mapargp->str[mapargp->u_arg.len] = '\0';
usr/src/cmd/fs.d/nfs/nfsmapid/nfsmapid_test.c
472
if (resp->u_res.len != strlen(resp->str)) {
usr/src/cmd/fs.d/nfs/nfsmapid/nfsmapid_test.c
474
resp->u_res.len, strlen(resp->str));
usr/src/cmd/fs.d/nfs/nfsmapid/nfsmapid_test.c
479
bcopy(resp->str, u8s->utf8string_val, u8s->utf8string_len);
usr/src/cmd/fs.d/nfs/nfsmapid/nfsmapid_test.c
525
(void) bcopy(u8s->utf8string_val, mapargp->str, mapargp->u_arg.len);
usr/src/cmd/fs.d/nfs/nfsmapid/nfsmapid_test.c
526
mapargp->str[mapargp->u_arg.len] = '\0';
usr/src/cmd/fs.d/nfs/nfsmapid/nfsmapid_test.c
647
if (resp->u_res.len != strlen(resp->str)) {
usr/src/cmd/fs.d/nfs/nfsmapid/nfsmapid_test.c
649
resp->u_res.len, strlen(resp->str));
usr/src/cmd/fs.d/nfs/nfsmapid/nfsmapid_test.c
654
bcopy(resp->str, g8s->utf8string_val, g8s->utf8string_len);
usr/src/cmd/fs.d/pcfs/mount/mount.c
64
append_opt(char *str, int strsz, char *opt)
usr/src/cmd/fs.d/pcfs/mount/mount.c
66
if (str[0] != '\0' && strlcat(str, ",", strsz) >= strsz)
usr/src/cmd/fs.d/pcfs/mount/mount.c
69
return (strlcat(str, opt, strsz) < strsz);
usr/src/cmd/fs.d/udfs/fsdb/fsdb_yacc.y
699
check_and_get_int(uint8_t *str, uint64_t *value)
usr/src/cmd/fs.d/udfs/fsdb/fsdb_yacc.y
704
length = strlen((caddr_t)str);
usr/src/cmd/fs.d/udfs/fsdb/fsdb_yacc.y
709
if ((str[0] == '0') && (str[1] == 'x')) {
usr/src/cmd/fs.d/udfs/fsdb/fsdb_yacc.y
712
} else if ((str[0] == '0') && (str[1] == 't')) {
usr/src/cmd/fs.d/udfs/fsdb/fsdb_yacc.y
715
} else if (str[0] == '0') {
usr/src/cmd/fs.d/udfs/fsdb/fsdb_yacc.y
729
if ((str[index] < '0') ||
usr/src/cmd/fs.d/udfs/fsdb/fsdb_yacc.y
730
(str[index] > '7')) {
usr/src/cmd/fs.d/udfs/fsdb/fsdb_yacc.y
733
str);
usr/src/cmd/fs.d/udfs/fsdb/fsdb_yacc.y
736
cvalue = str[index] - '0';
usr/src/cmd/fs.d/udfs/fsdb/fsdb_yacc.y
738
if ((str[index] < '0') ||
usr/src/cmd/fs.d/udfs/fsdb/fsdb_yacc.y
739
(str[index] > '9' )) {
usr/src/cmd/fs.d/udfs/fsdb/fsdb_yacc.y
742
str);
usr/src/cmd/fs.d/udfs/fsdb/fsdb_yacc.y
745
cvalue = str[index] - '0';
usr/src/cmd/fs.d/udfs/fsdb/fsdb_yacc.y
747
if ((str[index] >= '0') &&
usr/src/cmd/fs.d/udfs/fsdb/fsdb_yacc.y
748
(str[index] <= '9')) {
usr/src/cmd/fs.d/udfs/fsdb/fsdb_yacc.y
749
cvalue = str[index] - '0';
usr/src/cmd/fs.d/udfs/fsdb/fsdb_yacc.y
750
} else if ((str[index] >= 'a') &&
usr/src/cmd/fs.d/udfs/fsdb/fsdb_yacc.y
751
(str[index] <= 'f')) {
usr/src/cmd/fs.d/udfs/fsdb/fsdb_yacc.y
752
cvalue = str[index] - 'a' + 10;
usr/src/cmd/fs.d/udfs/fsdb/fsdb_yacc.y
753
} else if ((str[index] >= 'A') &&
usr/src/cmd/fs.d/udfs/fsdb/fsdb_yacc.y
754
(str[index] <= 'F')) {
usr/src/cmd/fs.d/udfs/fsdb/fsdb_yacc.y
755
cvalue = str[index] - 'A' + 10;
usr/src/cmd/fs.d/udfs/fsdb/fsdb_yacc.y
759
str);
usr/src/cmd/fs.d/udfs/fstyp/fstyp.c
183
int8_t str[64];
usr/src/cmd/fs.d/udfs/fstyp/fstyp.c
209
ud_convert2local(pvd->pvd_vol_id, str, 32);
usr/src/cmd/fs.d/udfs/fstyp/fstyp.c
210
str[32] = '\0';
usr/src/cmd/fs.d/udfs/fstyp/fstyp.c
211
(void) nvlist_add_string(h->attr, "gen_volume_label", str);
usr/src/cmd/fs.d/ufs/fsck/main.c
365
argtol(int flag, char *req, char *str, int base)
usr/src/cmd/fs.d/ufs/fsck/main.c
367
char *cp = str;
usr/src/cmd/fs.d/ufs/fsck/main.c
371
if (str != NULL)
usr/src/cmd/fs.d/ufs/fsck/main.c
372
ret = strtol(str, &cp, base);
usr/src/cmd/fs.d/ufs/fsck/main.c
373
if (cp == str || *cp) {
usr/src/cmd/fs.d/ufs/mount/mount.c
111
char *str;
usr/src/cmd/fs.d/ufs/mount/mount.c
474
s->str && !found;
usr/src/cmd/fs.d/ufs/mount/mount.c
476
if (strcmp(argval, s->str) == 0) {
usr/src/cmd/fs.d/ufs/mount/mount.c
631
char *str;
usr/src/cmd/fs.d/ufs/mount/mount.c
635
for (str = optstart;
usr/src/cmd/fs.d/ufs/mount/mount.c
636
*str != ',' && *str != '\0' && *str != ' ';
usr/src/cmd/fs.d/ufs/mount/mount.c
637
str++)
usr/src/cmd/fs.d/ufs/mount/mount.c
639
if (*str == ',') {
usr/src/cmd/fs.d/ufs/mount/mount.c
640
str++;
usr/src/cmd/fs.d/ufs/mount/mount.c
644
while (*optstart++ = *str++)
usr/src/cmd/fs.d/zfs/fstyp/fstyp.c
121
if (nvlist_lookup_string(h->config, "name", &str) == 0) {
usr/src/cmd/fs.d/zfs/fstyp/fstyp.c
122
(void) nvlist_add_string(h->config, "gen_volume_label", str);
usr/src/cmd/fs.d/zfs/fstyp/fstyp.c
90
char *str;
usr/src/cmd/fwflash/plugins/transport/common/hermon.c
1693
const char *str;
usr/src/cmd/fwflash/plugins/transport/common/hermon.c
1805
str = (const char *)p;
usr/src/cmd/fwflash/plugins/transport/common/hermon.c
1806
str += 4;
usr/src/cmd/fwflash/plugins/transport/common/hermon.c
1809
img_info->psid[i] = str[i];
usr/src/cmd/fwflash/plugins/transport/common/hermon.c
1814
img_info->psid[i+3] = str[i];
usr/src/cmd/fwflash/plugins/transport/common/hermon.c
1815
img_info->psid[i+2] = str[i+1];
usr/src/cmd/fwflash/plugins/transport/common/hermon.c
1816
img_info->psid[i+1] = str[i+2];
usr/src/cmd/fwflash/plugins/transport/common/hermon.c
1817
img_info->psid[i] = str[i+3];
usr/src/cmd/fwflash/plugins/transport/common/hermon.c
1831
str = (const char *)p;
usr/src/cmd/fwflash/plugins/transport/common/hermon.c
1832
str += 4;
usr/src/cmd/fwflash/plugins/transport/common/hermon.c
1835
img_info->vsd[i] = str[i];
usr/src/cmd/fwflash/plugins/transport/common/hermon.c
1840
img_info->vsd[i+3] = str[i];
usr/src/cmd/fwflash/plugins/transport/common/hermon.c
1841
img_info->vsd[i+2] = str[i+1];
usr/src/cmd/fwflash/plugins/transport/common/hermon.c
1842
img_info->vsd[i+1] = str[i+2];
usr/src/cmd/fwflash/plugins/transport/common/hermon.c
1843
img_info->vsd[i] = str[i+3];
usr/src/cmd/geniconvtbl/itmcomp.c
762
strdup_vital(const char *str)
usr/src/cmd/geniconvtbl/itmcomp.c
767
if (NULL == str) {
usr/src/cmd/geniconvtbl/itmcomp.c
771
len = strlen(str) + 1;
usr/src/cmd/geniconvtbl/itmcomp.c
773
(void) memcpy(p, str, len);
usr/src/cmd/genmsg/genmsg.y
103
| str
usr/src/cmd/genmsg/genmsg.y
107
| str '(' ')'
usr/src/cmd/genmsg/genmsg.y
108
| str '(' str ')'
usr/src/cmd/genmsg/genmsg.y
109
| str '(' cast_digit ')'
usr/src/cmd/genmsg/genmsg.y
110
| str '(' cast_qstr ')' { free($3); }
usr/src/cmd/genmsg/genmsg.y
114
| str INC
usr/src/cmd/genmsg/genmsg.y
115
| INC str { $$ = $2; }
usr/src/cmd/genmsg/genmsg.y
118
str: '(' str ')' { $$ = $2; }
usr/src/cmd/genmsg/genmsg.y
119
| '*' str { $$ = $2; }
usr/src/cmd/genmsg/genmsg.y
202
do_catgets(int setid, int msgid, char *str)
usr/src/cmd/genmsg/genmsg.y
215
add_msg(setid, id, str, srcfile, lineno, TRUE);
usr/src/cmd/genmsg/genmsg.y
220
id = get_msgid(srcfile, msg_line, setid, str);
usr/src/cmd/genmsg/genmsg.y
225
add_msg(setid, id, str, srcfile, lineno, FALSE);
usr/src/cmd/genmsg/genmsg.y
230
add_msg(setid, id, str, srcfile, lineno, FALSE);
usr/src/cmd/genmsg/genmsg.y
235
add_qstring(char *str, char *add)
usr/src/cmd/genmsg/genmsg.y
237
int len = strlen(str) + strlen(add) + 3;
usr/src/cmd/genmsg/genmsg.y
244
(void) snprintf(tmp, len, "%s\\\n%s", str, add);
usr/src/cmd/genmsg/genmsg.y
245
free(str);
usr/src/cmd/genmsg/genmsg.y
48
char *str;
usr/src/cmd/genmsg/genmsg.y
56
%token <str> STR
usr/src/cmd/genmsg/genmsg.y
58
%token <str> QSTR
usr/src/cmd/genmsg/genmsg.y
61
%type <str> catd arg_list arg_def arg_func arg_exp str
usr/src/cmd/genmsg/genmsg.y
62
%type <str> cast_qstr paren_qstr qstr_list
usr/src/cmd/genmsg/util.c
387
print_prefix(FILE *fp, char *prefix, int rm_blank, char *str)
usr/src/cmd/genmsg/util.c
390
while (*str) {
usr/src/cmd/genmsg/util.c
391
(void) fputc(*str, fp);
usr/src/cmd/genmsg/util.c
392
if (*str == '\n' && *(str+1) != '\0') {
usr/src/cmd/genmsg/util.c
395
str++;
usr/src/cmd/genmsg/util.c
396
SkipSpace(str);
usr/src/cmd/genmsg/util.c
400
str++;
usr/src/cmd/genmsg/util.c
402
if (*(str-1) != '\n') {
usr/src/cmd/genmsg/util.c
494
get_msgid(char *file, int line, int setid, char *str)
usr/src/cmd/genmsg/util.c
503
if (strcmp(mi->msg, str) == 0) {
usr/src/cmd/genmsg/util.c
533
add_comment(Mode mode, char *str)
usr/src/cmd/genmsg/util.c
539
if (strstr(str, tag) == NULL) {
usr/src/cmd/genmsg/util.c
547
*comment = ustrdup(str);
usr/src/cmd/genmsg/util.c
694
ustrdup(char *str)
usr/src/cmd/genmsg/util.c
696
char *tmp = strdup(str);
usr/src/cmd/gpioadm/gpioadm_gpio.c
101
if (!xpio_gpio_attr_value_string(attr, &str)) {
usr/src/cmd/gpioadm/gpioadm_gpio.c
105
if (strlcpy(buf, str, buflen) >= buflen) {
usr/src/cmd/gpioadm/gpioadm_gpio.c
120
if (!xpio_gpio_attr_value_string(attr, &str)) {
usr/src/cmd/gpioadm/gpioadm_gpio.c
124
if (strlcpy(buf, str, buflen) >= buflen) {
usr/src/cmd/gpioadm/gpioadm_gpio.c
80
const char *str;
usr/src/cmd/grep/grep.c
1609
bmgexec(char *str, char *end)
usr/src/cmd/grep/grep.c
1614
k = str + bmglen - 1;
usr/src/cmd/grep/grep.c
1616
return (memchr(str, bmgpat[0], end - str));
usr/src/cmd/grep/grep.c
773
simple_pattern(const char *str)
usr/src/cmd/grep/grep.c
775
for (; *str != '\0'; str++) {
usr/src/cmd/grep/grep.c
776
if (!isascii(*str)) {
usr/src/cmd/grep/grep.c
780
if (isalnum(*str)) {
usr/src/cmd/grep/grep.c
784
switch (*str) {
usr/src/cmd/hal/hald-runner/utils.c
60
GString *str;
usr/src/cmd/hal/hald-runner/utils.c
66
str = g_string_new("");
usr/src/cmd/hal/hald-runner/utils.c
68
while (g_io_channel_read_line_string(io, str, &pos, NULL) == G_IO_STATUS_NORMAL && (i++ < 128)) {
usr/src/cmd/hal/hald-runner/utils.c
72
g_string_erase(str, pos, 1);
usr/src/cmd/hal/hald-runner/utils.c
73
t = g_strdup(str->str);
usr/src/cmd/hal/hald-runner/utils.c
76
g_string_free(str, TRUE);
usr/src/cmd/hal/hald/device.c
600
const char *str;
usr/src/cmd/hal/hald/device.c
602
str = (const char *) iter->data;
usr/src/cmd/hal/hald/device.c
603
len = strlen (str);
usr/src/cmd/hal/hald/device.c
604
strncpy (buf + i, str, bufsize - i);
usr/src/cmd/hal/hald/device_info.c
504
const char *str;
usr/src/cmd/hal/hald/device_info.c
514
str = hal_device_property_get_string (d, prop_to_check);
usr/src/cmd/hal/hald/device_info.c
515
for (i = 0; str[i] != '\0'; i++) {
usr/src/cmd/hal/hald/device_info.c
516
if (((unsigned char) str[i]) > 0x7f)
usr/src/cmd/hal/hald/device_info.c
586
const char *str = i->data;
usr/src/cmd/hal/hald/device_info.c
587
if (strcmp (str, needle) == 0) {
usr/src/cmd/hal/hald/device_info.c
624
const char *str = i->data;
usr/src/cmd/hal/hald/device_info.c
625
if (g_ascii_strcasecmp (str, needle) == 0) {
usr/src/cmd/hal/hald/hald_dbus.c
3489
mi->mstdin = g_strdup (stdin_str->str);
usr/src/cmd/hal/hald/property.c
237
const char *str;
usr/src/cmd/hal/hald/property.c
239
str = (const char *) iter->data;
usr/src/cmd/hal/hald/property.c
240
len = strlen (str);
usr/src/cmd/hal/hald/property.c
241
strncpy (buf + i, str, sizeof(buf) - i);
usr/src/cmd/hal/hald/solaris/devinfo_cpu.c
225
if (strstr (ksdata->value.str.addr.ptr, ":") == NULL) {
usr/src/cmd/hal/hald/util.c
933
hal_util_strdup_valid_utf8 (const char *str)
usr/src/cmd/hal/hald/util.c
939
if (str == NULL)
usr/src/cmd/hal/hald/util.c
942
newstr = g_strdup (str);
usr/src/cmd/hal/hald/util.h
103
gchar *hal_util_strdup_valid_utf8 (const char *str);
usr/src/cmd/hal/tools/hal_get_property.c
202
str = libhal_device_get_property_string (hal_ctx, udi, key, &error);
usr/src/cmd/hal/tools/hal_get_property.c
205
printf ("%s\n", str);
usr/src/cmd/hal/tools/hal_get_property.c
206
libhal_free_string (str);
usr/src/cmd/hal/tools/hal_get_property.c
92
char *str;
usr/src/cmd/hal/tools/lshal.c
400
char *str;
usr/src/cmd/hal/tools/lshal.c
409
str = libhal_device_get_property_string (hal_ctx, udi, key, &error);
usr/src/cmd/hal/tools/lshal.c
410
printf (long_list?"*** new value: '%s' (string)\n":"'%s'", str);
usr/src/cmd/hal/tools/lshal.c
411
libhal_free_string (str);
usr/src/cmd/i2cadm/i2cadm_controller.c
116
char str[32];
usr/src/cmd/i2cadm/i2cadm_controller.c
117
(void) snprintf(str, sizeof (str), ",0x%x", val);
usr/src/cmd/i2cadm/i2cadm_controller.c
122
ilstr_append_str(&ilstr, str);
usr/src/cmd/i2cadm/i2cadm_controller.c
162
char str[64];
usr/src/cmd/i2cadm/i2cadm_controller.c
166
(void) snprintf(str, sizeof (str), "u", r->ipur_min);
usr/src/cmd/i2cadm/i2cadm_controller.c
168
(void) snprintf(str, sizeof (str), "%u-%u", r->ipur_min,
usr/src/cmd/i2cadm/i2cadm_controller.c
174
ilstr_append_str(&ilstr, str);
usr/src/cmd/i2cadm/i2cadm_io.c
290
i2cadm_io_parse_mode(const char *str)
usr/src/cmd/i2cadm/i2cadm_io.c
293
if (strcasecmp(str, i2cadm_io_modes[i].mode_str) == 0) {
usr/src/cmd/i2cadm/i2cadm_io.c
298
warnx("unknown I/O mode: %s", str);
usr/src/cmd/i2cadm/i2cadm_port.c
142
const char *str;
usr/src/cmd/i2cadm/i2cadm_port.c
154
str = "none";
usr/src/cmd/i2cadm/i2cadm_port.c
157
str = "local";
usr/src/cmd/i2cadm/i2cadm_port.c
160
str = "downstream";
usr/src/cmd/i2cadm/i2cadm_port.c
163
str = "shared";
usr/src/cmd/i2cadm/i2cadm_port.c
166
str = "error";
usr/src/cmd/i2cadm/i2cadm_port.c
171
len = strlcpy(buf, str, buflen);
usr/src/cmd/i2cadm/i2cadm_port.c
183
str = arg->ipm_map->map_shared;
usr/src/cmd/i2cadm/i2cadm_port.c
184
if (str == NULL)
usr/src/cmd/i2cadm/i2cadm_port.c
185
str = "unknown";
usr/src/cmd/i2cadm/i2cadm_port.c
187
str = "-";
usr/src/cmd/i2cadm/i2cadm_port.c
189
len = strlcpy(buf, str, buflen);
usr/src/cmd/i2cadm/i2cadm_scan.c
160
const char *str;
usr/src/cmd/i2cadm/i2cadm_scan.c
170
str = "found";
usr/src/cmd/i2cadm/i2cadm_scan.c
173
str = "missing";
usr/src/cmd/i2cadm/i2cadm_scan.c
176
str = "reserved";
usr/src/cmd/i2cadm/i2cadm_scan.c
179
str = "timeout";
usr/src/cmd/i2cadm/i2cadm_scan.c
182
str = "error";
usr/src/cmd/i2cadm/i2cadm_scan.c
185
str = "skipped";
usr/src/cmd/i2cadm/i2cadm_scan.c
188
str = "unknown";
usr/src/cmd/i2cadm/i2cadm_scan.c
191
len = strlcpy(buf, str, buflen);
usr/src/cmd/idmap/idmap/idmap.c
2341
string2type(char *str, cmd_pos_t *pos)
usr/src/cmd/idmap/idmap/idmap.c
2347
if (strcasecmp(identity2code[i].identity, str) == 0) {
usr/src/cmd/idmap/idmap/idmap.c
2355
gettext("Error: invalid identity type \"%s\"\n"), str);
usr/src/cmd/idmap/idmap/idmap.c
88
#define INHIBITED(str) (str == NULL || *str == 0 || strcmp(str, "\"\"") == 0)
usr/src/cmd/idmap/idmapd/adutils.c
342
#define BVAL_CASEEQ(bv, str) \
usr/src/cmd/idmap/idmapd/adutils.c
343
(((*(bv))->bv_len == (sizeof (str) - 1)) && \
usr/src/cmd/idmap/idmapd/adutils.c
344
strncasecmp((*(bv))->bv_val, str, (*(bv))->bv_len) == 0)
usr/src/cmd/idmap/idmapd/dbutils.c
3339
gethash(const char *str, uint32_t num, uint_t htsize)
usr/src/cmd/idmap/idmapd/dbutils.c
3343
if (str == NULL)
usr/src/cmd/idmap/idmapd/dbutils.c
3345
for (len = strlen(str), hval = 0, i = 0; i < len; i++) {
usr/src/cmd/idmap/idmapd/dbutils.c
3346
hval += str[i];
usr/src/cmd/idmap/idmapd/dbutils.c
3350
for (str = (const char *)&num, i = 0; i < sizeof (num); i++) {
usr/src/cmd/idmap/idmapd/dbutils.c
3351
hval += str[i];
usr/src/cmd/idmap/idmapd/idmapd.c
570
trace_str(nvlist_t *entry, char *n1, char *n2, char *str)
usr/src/cmd/idmap/idmapd/idmapd.c
578
(void) nvlist_add_string(entry, name, str);
usr/src/cmd/idmap/idmapd/idmapd.c
596
char *str;
usr/src/cmd/idmap/idmapd/idmapd.c
598
(void) asprintf(&str, "%s-%u", sid->prefix, sid->rid);
usr/src/cmd/idmap/idmapd/idmapd.c
599
if (str == NULL)
usr/src/cmd/idmap/idmapd/idmapd.c
602
trace_str(entry, n1, n2, str);
usr/src/cmd/idmap/idmapd/idmapd.c
603
free(str);
usr/src/cmd/idmap/idmapd/idmapd.c
612
char *str;
usr/src/cmd/idmap/idmapd/idmapd.c
614
(void) asprintf(&str, "%s%s%s", name,
usr/src/cmd/idmap/idmapd/idmapd.c
617
if (str != NULL) {
usr/src/cmd/idmap/idmapd/idmapd.c
618
trace_str(entry, fromto, IDMAP_TRACE_NAME, str);
usr/src/cmd/idmap/idmapd/idmapd.c
619
free(str);
usr/src/cmd/idmap/idmapd/nldaputils.c
211
sanitize_for_ldap_filter(const char *str)
usr/src/cmd/idmap/idmapd/nldaputils.c
218
for (p = str, n = 0; *p; p++)
usr/src/cmd/idmap/idmapd/nldaputils.c
224
return ((char *)str);
usr/src/cmd/idmap/idmapd/nldaputils.c
226
s_str = calloc(1, n * 2 + strlen(str) + 1);
usr/src/cmd/idmap/idmapd/nldaputils.c
229
for (p = str, q = s_str; *p; p++) {
usr/src/cmd/idmap/idmapd/nldaputils.c
618
char **val, *end, *str, *name, *dom;
usr/src/cmd/idmap/idmapd/nldaputils.c
700
} else if ((str = strchr(*val, '\\')) != NULL) {
usr/src/cmd/idmap/idmapd/nldaputils.c
701
*str = '\0';
usr/src/cmd/idmap/idmapd/nldaputils.c
702
name = str + 1;
usr/src/cmd/idmap/idmapd/nldaputils.c
704
} else if ((str = strrchr(*val, '@')) != NULL) {
usr/src/cmd/idmap/idmapd/nldaputils.c
705
*str = '\0';
usr/src/cmd/idmap/idmapd/nldaputils.c
707
dom = str + 1;
usr/src/cmd/idmap/idmapd/server.c
515
char *str;
usr/src/cmd/idmap/idmapd/server.c
555
if ((str = strdup(argv[1])) == NULL)
usr/src/cmd/idmap/idmapd/server.c
558
str;
usr/src/cmd/infocmp/infocmp.c
112
static struct strstruct *str; /* array of string information */
usr/src/cmd/infocmp/infocmp.c
184
str = (struct strstruct *) malloc((unsigned) numstrs *
usr/src/cmd/infocmp/infocmp.c
193
if ((ibool == NULL) || (num == NULL) || (str == NULL) ||
usr/src/cmd/infocmp/infocmp.c
228
str[i].infoname = strnames[i];
usr/src/cmd/infocmp/infocmp.c
229
str[i].capname = strcodes[i];
usr/src/cmd/infocmp/infocmp.c
231
str[i].fullname = "unknown_string";
usr/src/cmd/infocmp/infocmp.c
234
str[i].fullname = strfnames[i];
usr/src/cmd/infocmp/infocmp.c
236
str[i].changed = FALSE;
usr/src/cmd/infocmp/infocmp.c
237
str[i].seenagain = FALSE;
usr/src/cmd/infocmp/infocmp.c
317
qsort((char *) str, (unsigned) numstrs,
usr/src/cmd/infocmp/infocmp.c
602
str[i].val = tgetstr(str[i].capname, (char **)0);
usr/src/cmd/infocmp/infocmp.c
603
if ((str[i].val != NULL) && printing != pr_none) {
usr/src/cmd/infocmp/infocmp.c
604
pr_string(str[i].infoname, str[i].capname,
usr/src/cmd/infocmp/infocmp.c
605
str[i].fullname, str[i].val);
usr/src/cmd/infocmp/infocmp.c
609
(void) fprintf(trace, "%s='", str[i].infoname);
usr/src/cmd/infocmp/infocmp.c
610
PR(trace, str[i].val);
usr/src/cmd/infocmp/infocmp.c
793
strval = tgetstr(str[i].capname, (char **)0);
usr/src/cmd/infocmp/infocmp.c
795
if (str[i].seenagain && (strval != NULL)) {
usr/src/cmd/infocmp/infocmp.c
796
if (!EQUAL(strval, str[i].secondval)) {
usr/src/cmd/infocmp/infocmp.c
802
str[i].capname, str[i].secondname);
usr/src/cmd/infocmp/infocmp.c
803
PR(stderr, str[i].secondval);
usr/src/cmd/infocmp/infocmp.c
811
str[i].seenagain = TRUE;
usr/src/cmd/infocmp/infocmp.c
812
str[i].secondval = strval;
usr/src/cmd/infocmp/infocmp.c
813
str[i].secondname = nterm;
usr/src/cmd/infocmp/infocmp.c
814
if (!EQUAL(str[i].val, strval))
usr/src/cmd/infocmp/infocmp.c
815
str[i].changed = TRUE;
usr/src/cmd/infocmp/infocmp.c
823
pr_string(str[i].infoname, str[i].capname,
usr/src/cmd/infocmp/infocmp.c
824
str[i].fullname, strval);
usr/src/cmd/infocmp/infocmp.c
827
if (common && EQUAL(str[i].val, strval)) {
usr/src/cmd/infocmp/infocmp.c
828
(void) printf("\t%s= '", str[i].infoname);
usr/src/cmd/infocmp/infocmp.c
832
} else if (neither && (str[i].val == NULL))
usr/src/cmd/infocmp/infocmp.c
833
(void) printf("\t!%s.\n", str[i].infoname);
usr/src/cmd/infocmp/infocmp.c
834
if (diff && !EQUAL(str[i].val, strval)) {
usr/src/cmd/infocmp/infocmp.c
835
(void) printf("\t%s: '", str[i].infoname);
usr/src/cmd/infocmp/infocmp.c
836
PR(stdout, str[i].val);
usr/src/cmd/infocmp/infocmp.c
842
(void) fprintf(trace, "%s: '", str[i].infoname);
usr/src/cmd/infocmp/infocmp.c
843
PR(trace, str[i].val);
usr/src/cmd/infocmp/infocmp.c
847
str[i].changed, str[i].seenagain);
usr/src/cmd/infocmp/infocmp.c
910
if (str[i].val == NULL && str[i].changed) {
usr/src/cmd/infocmp/infocmp.c
911
pr_string(str[i].infoname, (char *)0, (char *)0,
usr/src/cmd/infocmp/infocmp.c
913
} else if ((str[i].val != NULL) &&
usr/src/cmd/infocmp/infocmp.c
914
(str[i].changed || !str[i].seenagain)) {
usr/src/cmd/infocmp/infocmp.c
915
pr_string(str[i].infoname,
usr/src/cmd/infocmp/infocmp.c
916
(char *)0, (char *)0, str[i].val);
usr/src/cmd/ipdadm/ipdadm.c
193
ipdadm_parse_long(const char *str, const char *name, long min, long max)
usr/src/cmd/ipdadm/ipdadm.c
199
val = strtol(str, &end, 10);
usr/src/cmd/ipdadm/ipdadm.c
202
g_pname, name, str);
usr/src/cmd/ipdadm/ipdadm.c
334
ipdadm_remove_valid(const char *str)
usr/src/cmd/ipdadm/ipdadm.c
336
if (strcmp(str, "corrupt") == 0) {
usr/src/cmd/ipdadm/ipdadm.c
338
} else if (strcmp(str, "drop") == 0) {
usr/src/cmd/ipdadm/ipdadm.c
340
} else if (strcmp(str, "delay") == 0) {
usr/src/cmd/ipf/lib/getline.c
22
getaline(char *str, size_t size, FILE *file, int *linenum)
usr/src/cmd/ipf/lib/getline.c
28
for (p = str, s = size; ; p += (len - 1), s -= (len - 1)) {
usr/src/cmd/ipf/lib/getline.c
51
} while (*str == '\0');
usr/src/cmd/ipf/lib/getline.c
52
return (str);
usr/src/cmd/ipf/lib/icmpcode.c
27
int icmpcode(str)
usr/src/cmd/ipf/lib/icmpcode.c
28
char *str;
usr/src/cmd/ipf/lib/icmpcode.c
33
if ((s = strrchr(str, ')')))
usr/src/cmd/ipf/lib/icmpcode.c
35
if (ISDIGIT(*str)) {
usr/src/cmd/ipf/lib/icmpcode.c
36
if (!ratoi(str, &i, 0, 255))
usr/src/cmd/ipf/lib/icmpcode.c
41
len = strlen(str);
usr/src/cmd/ipf/lib/icmpcode.c
43
if (!strncasecmp(str, icmpcodes[i], MIN(len,
usr/src/cmd/ipf/lib/ipft_td.c
81
static int count_dots(str)
usr/src/cmd/ipf/lib/ipft_td.c
82
char *str;
usr/src/cmd/ipf/lib/ipft_td.c
86
while (*str)
usr/src/cmd/ipf/lib/ipft_td.c
87
if (*str++ == '.')
usr/src/cmd/ipf/tools/ipf_y.y
110
%type <str> servicename name interfacename
usr/src/cmd/ipf/tools/ipf_y.y
115
%token <str> YY_STR
usr/src/cmd/ipf/tools/ipf_y.y
84
char *str;
usr/src/cmd/ipf/tools/ipmon_y.y
40
char *str;
usr/src/cmd/ipf/tools/ipmon_y.y
48
%token <str> YY_STR
usr/src/cmd/ipf/tools/ipnat_y.y
70
char *str;
usr/src/cmd/ipf/tools/ipnat_y.y
93
%token <str> YY_STR
usr/src/cmd/ipf/tools/ippool_y.y
59
char *str;
usr/src/cmd/ipf/tools/ippool_y.y
70
%token <str> YY_STR
usr/src/cmd/ipf/tools/ippool_y.y
86
%type <str> number setgroup
usr/src/cmd/ipf/tools/lexer.c
135
static void yystrtotext(char *str)
usr/src/cmd/ipf/tools/lexer.c
140
len = strlen(str);
usr/src/cmd/ipf/tools/lexer.c
144
for (s = str; *s != '\0' && len > 0; s++, len--)
usr/src/cmd/ipf/tools/lexer.c
152
char *str;
usr/src/cmd/ipf/tools/lexer.c
163
str = malloc(max + 1);
usr/src/cmd/ipf/tools/lexer.c
164
if (str != NULL) {
usr/src/cmd/ipf/tools/lexer.c
166
str[i - offset] = (char)(yytext[i] & 0xff);
usr/src/cmd/ipf/tools/lexer.c
167
str[i - offset] = '\0';
usr/src/cmd/ipf/tools/lexer.c
169
return (str);
usr/src/cmd/ipf/tools/lexer.c
21
char *str;
usr/src/cmd/ipf/tools/lexer.c
533
yylval.str = strdup(yystr);
usr/src/cmd/krb5/kadmin/kclient/kconf.c
83
add_to_list(struct profile_string_list *list, const char *str)
usr/src/cmd/krb5/kadmin/kclient/kconf.c
96
newstr = strdup(str);
usr/src/cmd/krb5/kadmin/server/server_stubs.c
434
gss_name_to_string(gss_name_t gss_name, gss_buffer_desc *str)
usr/src/cmd/krb5/kadmin/server/server_stubs.c
439
status = gss_display_name(&minor_stat, gss_name, str, &gss_type);
usr/src/cmd/krb5/kadmin/server/server_stubs.c
66
static int gss_name_to_string(gss_name_t gss_name, gss_buffer_desc *str);
usr/src/cmd/krb5/kinit/kinit.c
239
#define GETOPT(argc, argv, str) getopt_long(argc, argv, str, long_options, 0)
usr/src/cmd/krb5/kinit/kinit.c
241
#define GETOPT(argc, argv, str) getopt(argc, argv, str)
usr/src/cmd/krb5/ldap_util/kdb5_ldap_list.c
102
char *str = NULL;
usr/src/cmd/krb5/ldap_util/kdb5_ldap_list.c
113
str = strdup(buffer);
usr/src/cmd/krb5/ldap_util/kdb5_ldap_list.c
114
if (str == NULL)
usr/src/cmd/krb5/ldap_util/kdb5_ldap_list.c
117
token = strtok_r(str, delimiter, &ptrptr);
usr/src/cmd/krb5/ldap_util/kdb5_ldap_list.c
130
if (str) {
usr/src/cmd/krb5/ldap_util/kdb5_ldap_list.c
131
free(str);
usr/src/cmd/krb5/ldap_util/kdb5_ldap_list.c
132
str = NULL;
usr/src/cmd/krb5/ldap_util/kdb5_ldap_services.c
1557
char *str = NULL;
usr/src/cmd/krb5/ldap_util/kdb5_ldap_services.c
1794
if ((str = strstr(line, service_object)) != NULL) {
usr/src/cmd/krb5/ldap_util/kdb5_ldap_services.c
1798
str = NULL;
usr/src/cmd/krb5/ldap_util/kdb5_ldap_services.c
1801
if (str == NULL) {
usr/src/cmd/krb5/ldap_util/kdb5_ldap_services.c
1839
if (((str = strstr(line, service_object)) != NULL) && (line[strlen(service_object)] == '#')) {
usr/src/cmd/krb5/ldap_util/kdb5_ldap_services.c
1930
char *str = NULL;
usr/src/cmd/krb5/ldap_util/kdb5_ldap_services.c
2094
if ((str = strstr (line, service_object)) != NULL) {
usr/src/cmd/krb5/ldap_util/kdb5_ldap_services.c
2101
str = NULL;
usr/src/cmd/krb5/ldap_util/kdb5_ldap_services.c
2105
if (str == NULL) {
usr/src/cmd/krb5/ldap_util/kdb5_ldap_services.c
2148
if (((str = strstr(line, service_object)) != NULL) &&
usr/src/cmd/lastcomm/lastcomm.h
56
#define fldsiz(str, fld) (sizeof (((struct str *)0)->fld))
usr/src/cmd/latencytop/display.c
367
char str[ITEM_WIDTH+1];
usr/src/cmd/latencytop/display.c
372
(void) snprintf(str, sizeof (str) - 1, "%s", pname);
usr/src/cmd/latencytop/display.c
374
(void) snprintf(str, sizeof (str) - 1,
usr/src/cmd/latencytop/display.c
378
slen = strlen(str);
usr/src/cmd/latencytop/display.c
381
(void) memset(&str[slen], ' ', ITEM_WIDTH - slen);
usr/src/cmd/latencytop/display.c
384
str[sizeof (str) - 1] = '\0';
usr/src/cmd/latencytop/display.c
390
(void) mvwprintw(taskbar, 0, xpos, "%s", str);
usr/src/cmd/latencytop/display.c
440
char str[ITEM_WIDTH+1];
usr/src/cmd/latencytop/display.c
455
(void) snprintf(str, sizeof (str) - tlen - 1,
usr/src/cmd/latencytop/display.c
458
(void) snprintf(str, sizeof (str) - tlen - 1,
usr/src/cmd/latencytop/display.c
462
slen = strlen(str);
usr/src/cmd/latencytop/display.c
464
(void) snprintf(&str[slen], sizeof (str) - slen,
usr/src/cmd/latencytop/display.c
470
(void) memset(&str[slen], ' ', ITEM_WIDTH - slen);
usr/src/cmd/latencytop/display.c
473
str[sizeof (str) - 1] = '\0';
usr/src/cmd/latencytop/display.c
479
(void) mvwprintw(taskbar, 0, xpos, "%s", str);
usr/src/cmd/latencytop/klog.c
187
char *str;
usr/src/cmd/latencytop/klog.c
214
str = lt_malloc(str_len);
usr/src/cmd/latencytop/klog.c
215
(void) snprintf(str, str_len, "%ld, \"%s\"", pid, stack);
usr/src/cmd/latencytop/klog.c
216
entry = (lt_stat_data_t *)g_hash_table_lookup(klog_table, str);
usr/src/cmd/latencytop/klog.c
220
g_hash_table_insert(klog_table, str, entry);
usr/src/cmd/latencytop/klog.c
222
free(str);
usr/src/cmd/latencytop/latencytop.c
168
to_int(const char *str, int *result)
usr/src/cmd/latencytop/latencytop.c
173
if (str == NULL || result == NULL) {
usr/src/cmd/latencytop/latencytop.c
177
ret = strtol(str, &tail, 10);
usr/src/cmd/latencytop/table.c
469
genscript(void *key, lt_dmacro_t *dmacro, GString *str)
usr/src/cmd/latencytop/table.c
471
g_string_append(str, dmacro->lt_dm_macro);
usr/src/cmd/latencytop/util.c
100
char *ret = strdup(str);
usr/src/cmd/latencytop/util.c
98
lt_strdup(const char *str)
usr/src/cmd/ldap/common/dtest.c
42
char *str, *s1, *s2;
usr/src/cmd/ldap/common/ldaptool-sasl.c
141
char *newvalue, str[1024];
usr/src/cmd/ldap/common/ldaptool-sasl.c
155
snprintf(str, sizeof(str), "%s:", tmpstr?tmpstr:SASL_PROMPT);
usr/src/cmd/ldap/common/ldaptool-sasl.c
160
snprintf(str, sizeof(str), "%s:", interact->prompt?interact->prompt:SASL_PROMPT);
usr/src/cmd/ldap/common/ldaptool-sasl.c
162
sprintf(str, "%s:", interact->prompt?interact->prompt:SASL_PROMPT);
usr/src/cmd/ldap/common/ldaptool-sasl.c
170
fputs(str,stdout);
usr/src/cmd/ldap/common/ldaptool-sasl.c
186
if ((newvalue = (char *)getpassphrase(str)) == NULL) {
usr/src/cmd/ldap/common/ldaptool-sasl.c
188
if ((newvalue = (char *)getpass(str)) == NULL) {
usr/src/cmd/ldap/common/ldaptool-sasl.c
195
fputs(str, stderr);
usr/src/cmd/ldap/common/ldaptool-sasl.c
196
if ((newvalue = fgets(str, sizeof(str), stdin)) == NULL)
usr/src/cmd/ldap/common/ldaptool-sasl.c
198
len = strlen(str);
usr/src/cmd/ldap/common/ldaptool-sasl.c
199
if (len > 0 && str[len - 1] == '\n')
usr/src/cmd/ldap/common/ldaptool-sasl.c
200
str[len - 1] = 0;
usr/src/cmd/ldap/ns_ldap/ldapaddent.c
104
ascii_to_int(char *str)
usr/src/cmd/ldap/ns_ldap/ldapaddent.c
107
char *c = str;
usr/src/cmd/ldap/ns_ldap/ldapaddent.c
184
replace_tab2space(char *str)
usr/src/cmd/ldap/ns_ldap/ldapaddent.c
188
while ((str) && (str[i])) {
usr/src/cmd/ldap/ns_ldap/ldapaddent.c
189
if (str[i] == '\t')
usr/src/cmd/ldap/ns_ldap/ldapaddent.c
190
str[i] = ' ';
usr/src/cmd/ldap/ns_ldap/ldapaddent.c
228
line->str = (char *)realloc(line->str, line->alloc);
usr/src/cmd/ldap/ns_ldap/ldapaddent.c
230
if (line->str == NULL) {
usr/src/cmd/ldap/ns_ldap/ldapaddent.c
3920
line->str[line->len++] = c;
usr/src/cmd/ldap/ns_ldap/ldapaddent.c
3929
line->str[line->len++] = 0;
usr/src/cmd/ldap/ns_ldap/ldapaddent.c
3932
if (line->str[0] == '\0')
usr/src/cmd/ldap/ns_ldap/ldapaddent.c
3935
return (line->str);
usr/src/cmd/ldap/ns_ldap/ldapaddent.c
3955
len = strlen(line->str);
usr/src/cmd/ldap/ns_ldap/ldapaddent.c
3957
line->str[0] != '#' &&
usr/src/cmd/ldap/ns_ldap/ldapaddent.c
3958
line->str[len-2] == '\\' && line->str[len-1] == '\n') {
usr/src/cmd/ldap/ns_ldap/ldapaddent.c
3959
line->str[len-2] = 0;
usr/src/cmd/ldap/ns_ldap/ldapaddent.c
3964
if (line->str[len-1] == '\n') {
usr/src/cmd/ldap/ns_ldap/ldapaddent.c
3965
line->str[len-1] = 0;
usr/src/cmd/ldap/ns_ldap/ldapaddent.c
3973
if (line->str[i] == '#') {
usr/src/cmd/ldap/ns_ldap/ldapaddent.c
3974
line->str[i] = '\0';
usr/src/cmd/ldap/ns_ldap/ldapaddent.c
3978
if (line->str[i] != ' ' && line->str[i] != '\t')
usr/src/cmd/ldap/ns_ldap/ldapaddent.c
3987
if (len > 0 && !blankline(line->str))
usr/src/cmd/ldap/ns_ldap/ldapaddent.c
4015
len = strlen(line->str);
usr/src/cmd/ldap/ns_ldap/ldapaddent.c
4016
if (line->str[len-1] == '\n') {
usr/src/cmd/ldap/ns_ldap/ldapaddent.c
4017
line->str[len-1] = 0;
usr/src/cmd/ldap/ns_ldap/ldapaddent.c
4021
if (!blankline(line->str) &&
usr/src/cmd/ldap/ns_ldap/ldapaddent.c
4022
line->str[0] != '+' && line->str[0] != '-' &&
usr/src/cmd/ldap/ns_ldap/ldapaddent.c
4023
line->str[0] != '#')
usr/src/cmd/ldap/ns_ldap/ldapaddent.c
4103
switch ((*(tt->genent))(line.str, addentry)) {
usr/src/cmd/ldap/ns_ldap/ldapaddent.c
4115
line.str);
usr/src/cmd/ldap/ns_ldap/ldapaddent.c
4117
free(line.str);
usr/src/cmd/ldap/ns_ldap/ldapaddent.c
4122
line.str);
usr/src/cmd/ldap/ns_ldap/ldapaddent.c
4124
free(line.str);
usr/src/cmd/ldap/ns_ldap/ldapaddent.c
4128
free(line.str);
usr/src/cmd/ldap/ns_ldap/ldapaddent.h
60
char *str;
usr/src/cmd/ldap/ns_ldap/ldapclient.c
3273
#define CLIENT_PRINT(opt, str) if (str) \
usr/src/cmd/ldap/ns_ldap/ldapclient.c
3274
(void) printf("%s%s\n", (opt), (str))
usr/src/cmd/ldapcachemgr/cachemgr.c
1796
config_info->str = malloc(config_info->len);
usr/src/cmd/ldapcachemgr/cachemgr.c
1797
if (config_info->str == NULL) {
usr/src/cmd/ldapcachemgr/cachemgr.c
1801
result = (ldap_admin_mod_result_t *)config_info->str;
usr/src/cmd/ldapcachemgr/cachemgr.c
1806
(void) strcpy(config_info->str + rlen, buffer);
usr/src/cmd/ldapcachemgr/cachemgr.c
653
if (config_info->str != NULL &&
usr/src/cmd/ldapcachemgr/cachemgr.c
673
free(config_info->str);
usr/src/cmd/ldapcachemgr/cachemgr.c
674
config_info->str = NULL;
usr/src/cmd/ldapcachemgr/cachemgr.c
910
if (configInfo.str == NULL) {
usr/src/cmd/ldapcachemgr/cachemgr.c
917
dataSource.begin = configInfo.str;
usr/src/cmd/ldapcachemgr/cachemgr.h
123
extern int chg_notify_statusChange(char *str);
usr/src/cmd/ldapcachemgr/cachemgr_change.c
268
info->str = NULL;
usr/src/cmd/ldapcachemgr/cachemgr_change.c
338
info->str = (char *)cout;
usr/src/cmd/ldapcachemgr/cachemgr_change.c
362
if ((info->str = malloc(
usr/src/cmd/ldapcachemgr/cachemgr_change.c
366
(void) memcpy(info->str,
usr/src/cmd/ldapcachemgr/cachemgr_change.c
409
chg_notify_statusChange(char *str)
usr/src/cmd/ldapcachemgr/cachemgr_change.c
411
ldap_get_change_out_t *cout = (ldap_get_change_out_t *)str;
usr/src/cmd/ldapcachemgr/cachemgr_change.c
423
chg.chg_data = str;
usr/src/cmd/ldapcachemgr/cachemgr_change.c
471
new_out = (ldap_config_out_t *)new_cfg.str;
usr/src/cmd/ldapcachemgr/cachemgr_change.c
472
cur_out = (ldap_config_out_t *)cur_cfg.str;
usr/src/cmd/ldapcachemgr/cachemgr_change.c
480
if (cur_cfg.str)
usr/src/cmd/ldapcachemgr/cachemgr_change.c
481
free(cur_cfg.str);
usr/src/cmd/ldapcachemgr/cachemgr_change.c
482
if (new_cfg.str)
usr/src/cmd/ldapcachemgr/cachemgr_change.c
483
free(new_cfg.str);
usr/src/cmd/ldapcachemgr/cachemgr_getldap.c
2044
in->ldap_u.domainname, &config_info->str);
usr/src/cmd/ldapcachemgr/cachemgr_getldap.c
2046
if (config_info->str == NULL)
usr/src/cmd/ldapcachemgr/cachemgr_getldap.c
2049
config_info->len = strlen(config_info->str) + 1;
usr/src/cmd/ldapcachemgr/cachemgr_getldap.c
2055
ptr = strstr(config_info->str, DOORLINESEP);
usr/src/cmd/ldapcachemgr/cachemgr_getldap.c
2060
config_info->str);
usr/src/cmd/ldapcachemgr/cachemgr_getldap.c
2079
config_info->str = NULL;
usr/src/cmd/ldapcachemgr/cachemgr_getldap.c
2097
instr, &config_info->str);
usr/src/cmd/ldapcachemgr/cachemgr_getldap.c
2099
if (config_info->str != NULL) {
usr/src/cmd/ldapcachemgr/cachemgr_getldap.c
2100
config_info->len = strlen(config_info->str) + 1;
usr/src/cmd/ldapcachemgr/cachemgr_getldap.c
211
getldap_hash(const char *str)
usr/src/cmd/ldapcachemgr/cachemgr_getldap.c
215
while (*str) {
usr/src/cmd/ldapcachemgr/cachemgr_getldap.c
2159
stat_info->str = NULL;
usr/src/cmd/ldapcachemgr/cachemgr_getldap.c
218
hval = (hval << 4) + tolower(*str++);
usr/src/cmd/ldapcachemgr/cachemgr_getldap.c
2182
stat_info->str = calloc(infoSize, sizeof (char));
usr/src/cmd/ldapcachemgr/cachemgr_getldap.c
2183
if (stat_info->str != NULL) {
usr/src/cmd/ldapcachemgr/cachemgr_getldap.c
2184
(void) strncpy(stat_info->str,
usr/src/cmd/ldapcachemgr/cachemgr_getldap.c
2187
(void) strncat(stat_info->str,
usr/src/cmd/ldapcachemgr/cachemgr_getldap.c
2190
(void) strncat(stat_info->str,
usr/src/cmd/ldapcachemgr/cachemgr_getldap.c
2694
config_info->str = NULL;
usr/src/cmd/ldapcachemgr/cachemgr_getldap.c
2705
config_info->str = NULL;
usr/src/cmd/ldapcachemgr/cachemgr_getldap.c
2709
cout = (ldap_config_out_t *)config_info->str;
usr/src/cmd/ldapcachemgr/cachemgr_getldap.c
2732
config_info->str = NULL;
usr/src/cmd/ldapcachemgr/cachemgr_getldap.c
2736
cout = (ldap_config_out_t *)config_info->str;
usr/src/cmd/ldmad/ldma_dio.c
152
char *str;
usr/src/cmd/ldmad/ldma_dio.c
163
for (str = pp_data; count > 0; str += strlen(str) + 1)
usr/src/cmd/ldmad/ldma_dio.c
166
np, name, str - pp_data, (uint8_t *)pp_data);
usr/src/cmd/ldmad/ldma_system.c
257
char *str;
usr/src/cmd/ldmad/ldma_system.c
269
if (ldma_get_chassis_serialno(&str) == 0) {
usr/src/cmd/ldmad/ldma_system.c
276
rlen = strlen(str) + 1;
usr/src/cmd/ldmad/ldma_system.c
289
(void) strcpy(data, str);
usr/src/cmd/ldmad/ldma_system.c
291
LDMA_DBG("GET_CHASSISNO: return info=%u, {%s}", rlen, str);
usr/src/cmd/listen/listen.c
1690
char str[NAMEBUFSZ];
usr/src/cmd/listen/listen.c
1691
char *lstr = str;
usr/src/cmd/listen/listen.c
1949
char str[NAMEBUFSZ];
usr/src/cmd/listen/listen.c
1951
char *lstr = str;
usr/src/cmd/listen/nstoa.c
100
if (!str || !*str) return NULL; /* Nothing to convert */
usr/src/cmd/listen/nstoa.c
114
if (*str == '\\') {
usr/src/cmd/listen/nstoa.c
115
++str;
usr/src/cmd/listen/nstoa.c
116
switch (*str) {
usr/src/cmd/listen/nstoa.c
120
addr->len = dobase(++str, sbuf, HEX);
usr/src/cmd/listen/nstoa.c
125
addr->len = dobase(++str, sbuf, OCT);
usr/src/cmd/listen/nstoa.c
129
addr->len = dostring(str, sbuf, 0);
usr/src/cmd/listen/nstoa.c
133
addr->len = dostring(--str, sbuf, quote);
usr/src/cmd/listen/nstoa.c
138
if (*str == '"') { /* quoted string */
usr/src/cmd/listen/nstoa.c
140
++str;
usr/src/cmd/listen/nstoa.c
142
addr->len = dostring(str, sbuf, quote);
usr/src/cmd/listen/nstoa.c
315
atos(str, addr, type)
usr/src/cmd/listen/nstoa.c
316
char *str;
usr/src/cmd/listen/nstoa.c
330
if (str == NULL)
usr/src/cmd/listen/nstoa.c
331
if ((str = malloc(SBUFSIZE)) == NULL)
usr/src/cmd/listen/nstoa.c
343
return xfer(str, sbuf, o_atos(sbuf+2, addr->buf, addr->len) + 2,
usr/src/cmd/listen/nstoa.c
351
return xfer(str, sbuf, x_atos(sbuf+2, addr->buf, addr->len) + 2,
usr/src/cmd/listen/nstoa.c
355
base = xfer(str, addr->buf,
usr/src/cmd/listen/nstoa.c
82
stoa(str, addr) /* Return 0 for success, -1 for error */
usr/src/cmd/listen/nstoa.c
83
char *str;
usr/src/cmd/listen/nstoa.c
93
if (!str)
usr/src/cmd/listen/nstoa.c
95
while (*str && isspace(*str)) /* leading whites are OK */
usr/src/cmd/listen/nstoa.c
96
++str;
usr/src/cmd/listen/nstoa.c
98
str = prescan(str); /* Do all \$ ... \$ */
usr/src/cmd/localedef/collate.c
1198
(void) wsncpy(chain[n].str, ce->expand, COLLATE_STR_LEN);
usr/src/cmd/localedef/messages.c
43
char *str;
usr/src/cmd/localedef/messages.c
45
if ((str = to_mb_string(wcs)) == NULL) {
usr/src/cmd/localedef/messages.c
53
msgs.yesstr = str;
usr/src/cmd/localedef/messages.c
56
msgs.nostr = str;
usr/src/cmd/localedef/messages.c
59
msgs.yesexpr = str;
usr/src/cmd/localedef/messages.c
62
msgs.noexpr = str;
usr/src/cmd/localedef/messages.c
65
free(str);
usr/src/cmd/localedef/monetary.c
100
mon.n_cs_precedes = str;
usr/src/cmd/localedef/monetary.c
103
mon.n_sep_by_space = str;
usr/src/cmd/localedef/monetary.c
106
mon.p_sign_posn = str;
usr/src/cmd/localedef/monetary.c
109
mon.n_sign_posn = str;
usr/src/cmd/localedef/monetary.c
112
mon.int_p_cs_precedes = str;
usr/src/cmd/localedef/monetary.c
115
mon.int_n_cs_precedes = str;
usr/src/cmd/localedef/monetary.c
118
mon.int_p_sep_by_space = str;
usr/src/cmd/localedef/monetary.c
121
mon.int_n_sep_by_space = str;
usr/src/cmd/localedef/monetary.c
124
mon.int_p_sign_posn = str;
usr/src/cmd/localedef/monetary.c
127
mon.int_n_sign_posn = str;
usr/src/cmd/localedef/monetary.c
130
mon.mon_grouping = str;
usr/src/cmd/localedef/monetary.c
42
char *str;
usr/src/cmd/localedef/monetary.c
44
if ((str = to_mb_string(wcs)) == NULL) {
usr/src/cmd/localedef/monetary.c
51
mon.int_curr_symbol = str;
usr/src/cmd/localedef/monetary.c
54
mon.currency_symbol = str;
usr/src/cmd/localedef/monetary.c
57
mon.mon_decimal_point = str;
usr/src/cmd/localedef/monetary.c
60
mon.mon_thousands_sep = str;
usr/src/cmd/localedef/monetary.c
63
mon.positive_sign = str;
usr/src/cmd/localedef/monetary.c
66
mon.negative_sign = str;
usr/src/cmd/localedef/monetary.c
69
free(str);
usr/src/cmd/localedef/monetary.c
78
char *str = NULL;
usr/src/cmd/localedef/monetary.c
80
(void) asprintf(&str, "%d", n);
usr/src/cmd/localedef/monetary.c
81
if (str == NULL) {
usr/src/cmd/localedef/monetary.c
88
mon.int_frac_digits = str;
usr/src/cmd/localedef/monetary.c
91
mon.frac_digits = str;
usr/src/cmd/localedef/monetary.c
94
mon.p_cs_precedes = str;
usr/src/cmd/localedef/monetary.c
97
mon.p_sep_by_space = str;
usr/src/cmd/localedef/numeric.c
42
char *str;
usr/src/cmd/localedef/numeric.c
44
if ((str = to_mb_string(wcs)) == NULL) {
usr/src/cmd/localedef/numeric.c
52
numeric.decimal_point = str;
usr/src/cmd/localedef/numeric.c
55
numeric.thousands_sep = str;
usr/src/cmd/localedef/numeric.c
58
free(str);
usr/src/cmd/localedef/time.c
101
if ((str = to_mb_string(wcs)) == NULL) {
usr/src/cmd/localedef/time.c
109
add_list(tm.mon, str, 12);
usr/src/cmd/localedef/time.c
112
add_list(tm.month, str, 12);
usr/src/cmd/localedef/time.c
115
add_list(tm.wday, str, 7);
usr/src/cmd/localedef/time.c
118
add_list(tm.weekday, str, 7);
usr/src/cmd/localedef/time.c
122
tm.am = str;
usr/src/cmd/localedef/time.c
124
tm.pm = str;
usr/src/cmd/localedef/time.c
127
free(str);
usr/src/cmd/localedef/time.c
132
free(str);
usr/src/cmd/localedef/time.c
135
free(str);
usr/src/cmd/localedef/time.c
42
char *str;
usr/src/cmd/localedef/time.c
44
if ((str = to_mb_string(wcs)) == NULL) {
usr/src/cmd/localedef/time.c
52
tm.c_fmt = str;
usr/src/cmd/localedef/time.c
55
tm.x_fmt = str;
usr/src/cmd/localedef/time.c
58
tm.X_fmt = str;
usr/src/cmd/localedef/time.c
61
tm.ampm_fmt = str;
usr/src/cmd/localedef/time.c
68
tm.date_fmt = str;
usr/src/cmd/localedef/time.c
74
free(str);
usr/src/cmd/localedef/time.c
77
free(str);
usr/src/cmd/localedef/time.c
84
add_list(const char *ptr[], char *str, int limit)
usr/src/cmd/localedef/time.c
89
ptr[i] = str;
usr/src/cmd/localedef/time.c
99
char *str;
usr/src/cmd/lofiadm/main.c
1880
convert_to_num(const char *str)
usr/src/cmd/lofiadm/main.c
1885
len = strlen(str);
usr/src/cmd/lofiadm/main.c
1886
if (len && isalpha(str[len - 1])) {
usr/src/cmd/lofiadm/main.c
1887
switch (str[len - 1]) {
usr/src/cmd/lofiadm/main.c
1905
die(gettext("invalid segment size %s\n"), str);
usr/src/cmd/lofiadm/main.c
1909
segsize = atol(str);
usr/src/cmd/lp/cmd/lpadmin/chkopts.c
647
*str = strtok((char *)0, ":"),
usr/src/cmd/lp/cmd/lpadmin/chkopts.c
653
if (STREQU(type, NAME_ALLOW) && str) {
usr/src/cmd/lp/cmd/lpadmin/chkopts.c
654
if ((pf = f_allow = getlist(str, LP_WS, LP_SEP)) != NULL) {
usr/src/cmd/lp/cmd/lpadmin/chkopts.c
671
} else if (STREQU(type, NAME_DENY) && str) {
usr/src/cmd/lp/cmd/lpadmin/chkopts.c
672
if ((pf = f_deny = getlist(str, LP_WS, LP_SEP)) != NULL) {
usr/src/cmd/lp/cmd/lpadmin/chkopts.c
706
*str = strtok((char *)0, ":");
usr/src/cmd/lp/cmd/lpadmin/chkopts.c
708
if (STREQU(type, NAME_ALLOW) && str) {
usr/src/cmd/lp/cmd/lpadmin/chkopts.c
709
if (!(u_allow = getlist(str, LP_WS, LP_SEP)))
usr/src/cmd/lp/cmd/lpadmin/chkopts.c
712
} else if (STREQU(type, NAME_DENY) && str) {
usr/src/cmd/lp/cmd/lpadmin/chkopts.c
713
if (!(u_deny = getlist(str, LP_WS, LP_SEP)))
usr/src/cmd/lp/cmd/lpadmin/do_printer.c
622
fullpath(char *str)
usr/src/cmd/lp/cmd/lpadmin/do_printer.c
627
while (*str && *str == ' ')
usr/src/cmd/lp/cmd/lpadmin/do_printer.c
628
str++;
usr/src/cmd/lp/cmd/lpadmin/do_printer.c
629
if (*str == '/')
usr/src/cmd/lp/cmd/lpadmin/do_printer.c
630
return (str);
usr/src/cmd/lp/cmd/lpadmin/do_printer.c
633
return (str);
usr/src/cmd/lp/cmd/lpadmin/do_printer.c
636
path = makepath(cur_dir, str, (char *)0);
usr/src/cmd/lp/filter/postscript/common/misc.c
114
while ( *str && nolist < sizeof(olist) - 2 ) {
usr/src/cmd/lp/filter/postscript/common/misc.c
115
start = stop = str_convert(&str, 0);
usr/src/cmd/lp/filter/postscript/common/misc.c
117
if ( *str == '-' && *str++ )
usr/src/cmd/lp/filter/postscript/common/misc.c
118
stop = str_convert(&str, 9999);
usr/src/cmd/lp/filter/postscript/common/misc.c
126
if ( *str != '\0' ) str++;
usr/src/cmd/lp/filter/postscript/common/misc.c
218
str_convert(str, err)
usr/src/cmd/lp/filter/postscript/common/misc.c
221
char **str; /* get next number from this string */
usr/src/cmd/lp/filter/postscript/common/misc.c
239
if ( ! isdigit(**str) ) /* something's wrong */
usr/src/cmd/lp/filter/postscript/common/misc.c
242
for ( i = 0; isdigit(**str); *str += 1 )
usr/src/cmd/lp/filter/postscript/common/misc.c
243
i = 10 * i + **str - '0';
usr/src/cmd/lp/filter/postscript/common/misc.c
94
out_list(str)
usr/src/cmd/lp/filter/postscript/common/misc.c
97
char *str; /* process ranges in this string */
usr/src/cmd/lp/filter/postscript/dpost/dpost.c
1050
char str[50]; /* for special chars and font numbers */
usr/src/cmd/lp/filter/postscript/dpost/dpost.c
1089
fscanf(fp, "%s", str);
usr/src/cmd/lp/filter/postscript/dpost/dpost.c
1090
put1s(str);
usr/src/cmd/lp/filter/postscript/dpost/dpost.c
1154
fscanf(fp, "%s", str);
usr/src/cmd/lp/filter/postscript/dpost/dpost.c
1155
setfont(t_font(str));
usr/src/cmd/lp/filter/postscript/dpost/dpost.c
1225
char str[50], buf[256], str1[50];
usr/src/cmd/lp/filter/postscript/dpost/dpost.c
1240
fscanf(fp, "%s", str); /* get the control function name */
usr/src/cmd/lp/filter/postscript/dpost/dpost.c
1242
switch ( str[0] ) { /* only the first character counts */
usr/src/cmd/lp/filter/postscript/dpost/dpost.c
1271
fscanf(fp, "%d %s", &n, str);
usr/src/cmd/lp/filter/postscript/dpost/dpost.c
1276
loadfont(n, mapdevfont(str), str1);
usr/src/cmd/lp/filter/postscript/dpost/dpost.c
1291
fscanf(fp, " %[^: \n]:", str);
usr/src/cmd/lp/filter/postscript/dpost/dpost.c
1294
if ( strcmp(str, "PI") == 0 || strcmp(str, "PictureInclusion") == 0 )
usr/src/cmd/lp/filter/postscript/dpost/dpost.c
1296
else if ( strcmp(str, "InlinePicture") == 0 )
usr/src/cmd/lp/filter/postscript/dpost/dpost.c
1298
else if ( strcmp(str, "BeginPath") == 0 )
usr/src/cmd/lp/filter/postscript/dpost/dpost.c
1300
else if ( strcmp(str, "DrawPath") == 0 )
usr/src/cmd/lp/filter/postscript/dpost/dpost.c
1302
else if ( strcmp(str, "BeginObject") == 0 )
usr/src/cmd/lp/filter/postscript/dpost/dpost.c
1304
else if ( strcmp(str, "EndObject") == 0 )
usr/src/cmd/lp/filter/postscript/dpost/dpost.c
1306
else if ( strcmp(str, "NewBaseline") == 0 )
usr/src/cmd/lp/filter/postscript/dpost/dpost.c
1308
else if ( strcmp(str, "DrawText") == 0 )
usr/src/cmd/lp/filter/postscript/dpost/dpost.c
1310
else if ( strcmp(str, "SetText") == 0 )
usr/src/cmd/lp/filter/postscript/dpost/dpost.c
1312
else if ( strcmp(str, "SetColor") == 0 ) {
usr/src/cmd/lp/filter/postscript/dpost/dpost.c
1315
} else if ( strcmp(str, "PS") == 0 || strcmp(str, "PostScript") == 0 ) {
usr/src/cmd/lp/filter/postscript/dpost/dpost.c
1645
mapdevfont(char *str)
usr/src/cmd/lp/filter/postscript/dpost/dpost.c
1662
if ( strcmp((devfontmap + i)->name, str) == 0 )
usr/src/cmd/lp/filter/postscript/dpost/dpost.c
1665
return(str);
usr/src/cmd/lp/filter/postscript/dpost/dpost.c
2417
line[1].str = strptr;
usr/src/cmd/lp/filter/postscript/dpost/dpost.c
2473
fprintf(tf, "(%s)%d %d", line[i].str, line[i].spaces, line[i].width);
usr/src/cmd/lp/filter/postscript/dpost/dpost.c
2475
} else fprintf(tf, "(%s)%d %d w\n", line[1].str, stringstart, lasty);
usr/src/cmd/lp/filter/postscript/dpost/dpost.c
2482
fprintf(tf, "(%s)%d", line[i].str, line[i].dx);
usr/src/cmd/lp/filter/postscript/dpost/dpost.c
2484
} else fprintf(tf, "(%s)%d %d w\n", line[1].str, stringstart, lasty);
usr/src/cmd/lp/filter/postscript/dpost/dpost.c
2538
line[++textcount].str = strptr;
usr/src/cmd/lp/filter/postscript/dpost/dpost.h
126
char *str; /* where the string is stored */
usr/src/cmd/lp/lib/filters/conv.c
104
if ((ret.name = Strdup(str)))
usr/src/cmd/lp/lib/filters/conv.c
105
ret.info = isterminfo(str);
usr/src/cmd/lp/lib/filters/conv.c
116
char * str
usr/src/cmd/lp/lib/filters/conv.c
119
s_to_template (str)
usr/src/cmd/lp/lib/filters/conv.c
120
register char *str;
usr/src/cmd/lp/lib/filters/conv.c
129
if (!*(str += strspn(str, " "))) {
usr/src/cmd/lp/lib/filters/conv.c
135
if (!(p = strchr(str, ' '))) {
usr/src/cmd/lp/lib/filters/conv.c
143
ret.keyword = Strdup(str);
usr/src/cmd/lp/lib/filters/conv.c
156
str = p + strspn(p, " ");
usr/src/cmd/lp/lib/filters/conv.c
157
if (!(p = q_strchr(str, '='))) {
usr/src/cmd/lp/lib/filters/conv.c
162
while (p[-1] == ' ' && p > str)
usr/src/cmd/lp/lib/filters/conv.c
167
ret.pattern = q_strdup(str);
usr/src/cmd/lp/lib/filters/conv.c
189
if (!*(str = p + strspn(p, " ="))) {
usr/src/cmd/lp/lib/filters/conv.c
194
ret.result = q_strdup(str);
usr/src/cmd/lp/lib/filters/conv.c
460
char * str
usr/src/cmd/lp/lib/filters/conv.c
463
q_strdup (str)
usr/src/cmd/lp/lib/filters/conv.c
464
char *str;
usr/src/cmd/lp/lib/filters/conv.c
475
for (p = str; *p; p++) {
usr/src/cmd/lp/lib/filters/conv.c
484
for (p = str; *p; p++) {
usr/src/cmd/lp/lib/filters/conv.c
72
char * str
usr/src/cmd/lp/lib/filters/conv.c
75
s_to_filtertype (str)
usr/src/cmd/lp/lib/filters/conv.c
76
char *str;
usr/src/cmd/lp/lib/filters/conv.c
82
if (STREQU(str, FL_FAST))
usr/src/cmd/lp/lib/filters/conv.c
95
char * str
usr/src/cmd/lp/lib/filters/conv.c
98
s_to_type (str)
usr/src/cmd/lp/lib/filters/conv.c
99
register char *str;
usr/src/cmd/lp/lib/filters/dumpfilters.c
138
q_print(int fd, char *str)
usr/src/cmd/lp/lib/filters/dumpfilters.c
147
if (!str)
usr/src/cmd/lp/lib/filters/dumpfilters.c
149
while (*str) {
usr/src/cmd/lp/lib/filters/dumpfilters.c
151
*str == '\\' /* quote reason #1 */
usr/src/cmd/lp/lib/filters/dumpfilters.c
152
|| strchr(FL_SEP, *str) /* quote reason #2 */
usr/src/cmd/lp/lib/filters/dumpfilters.c
153
|| strchr(LP_SEP, *str) /* quote reason #3 */
usr/src/cmd/lp/lib/filters/dumpfilters.c
154
|| strchr("=", *str) /* quote reason #4 */
usr/src/cmd/lp/lib/filters/dumpfilters.c
157
fdputc (*str, fd);
usr/src/cmd/lp/lib/filters/dumpfilters.c
158
str++;
usr/src/cmd/lp/lib/forms/wrform.c
199
print_str(int fd, char *head, char *str)
usr/src/cmd/lp/lib/forms/wrform.c
201
if (!str || !*str)
usr/src/cmd/lp/lib/forms/wrform.c
204
(void)fdprintf(fd, "%s %s\n", head, str);
usr/src/cmd/lp/lib/lp/files.c
319
dumpstring(char *path, char *str)
usr/src/cmd/lp/lib/lp/files.c
323
if (!str)
usr/src/cmd/lp/lib/lp/files.c
328
fdprintf(fd, "%s\n", str);
usr/src/cmd/lp/lib/lp/getlist.c
104
if (!(begin = Strdup(str))) {
usr/src/cmd/lp/lib/lp/getlist.c
202
char * str,
usr/src/cmd/lp/lib/lp/getlist.c
206
unq_strdup (str, sep)
usr/src/cmd/lp/lib/lp/getlist.c
207
char *str,
usr/src/cmd/lp/lib/lp/getlist.c
218
for (p = str; *p; p++)
usr/src/cmd/lp/lib/lp/getlist.c
223
for (p = str; *p; p++)
usr/src/cmd/lp/lib/lp/getlist.c
57
char * str,
usr/src/cmd/lp/lib/lp/getlist.c
62
getlist (str, ws, hardsep)
usr/src/cmd/lp/lib/lp/getlist.c
63
register char *str,
usr/src/cmd/lp/lib/lp/getlist.c
82
if (!str || !*str)
usr/src/cmd/lp/lib/lp/printlist.c
116
q_print(int fd, char *str, char *sep)
usr/src/cmd/lp/lib/lp/printlist.c
118
while (*str) {
usr/src/cmd/lp/lib/lp/printlist.c
119
if (strchr(sep, *str))
usr/src/cmd/lp/lib/lp/printlist.c
121
fdputc(*str, fd);
usr/src/cmd/lp/lib/lp/printlist.c
122
str++;
usr/src/cmd/lp/lib/lp/sdn.c
138
_getsdn(char *str, char **p_after, int is_cpi)
usr/src/cmd/lp/lib/lp/sdn.c
150
if (is_cpi && STREQU(str, NAME_PICA)) {
usr/src/cmd/lp/lib/lp/sdn.c
154
*p_after = str + strlen(NAME_PICA);
usr/src/cmd/lp/lib/lp/sdn.c
156
} else if (is_cpi && STREQU(str, NAME_ELITE)) {
usr/src/cmd/lp/lib/lp/sdn.c
160
*p_after = str + strlen(NAME_ELITE);
usr/src/cmd/lp/lib/lp/sdn.c
162
} else if (is_cpi && STREQU(str, NAME_COMPRESSED)) {
usr/src/cmd/lp/lib/lp/sdn.c
166
*p_after = str + strlen(NAME_COMPRESSED);
usr/src/cmd/lp/lib/lp/sdn.c
169
sdn.val = strtod(str, &rest);
usr/src/cmd/lp/lib/lp/set_pitch.c
107
xpi = strtod(str, &rest);
usr/src/cmd/lp/lib/lp/set_pitch.c
108
if (which == 'H' && STREQU(str, NAME_PICA))
usr/src/cmd/lp/lib/lp/set_pitch.c
111
else if (which == 'H' && STREQU(str, NAME_ELITE))
usr/src/cmd/lp/lib/lp/set_pitch.c
117
STREQU(str, NAME_COMPRESSED)
usr/src/cmd/lp/lib/lp/set_pitch.c
49
char * str,
usr/src/cmd/lp/lib/lp/set_pitch.c
54
set_pitch (str, which, putout)
usr/src/cmd/lp/lib/lp/set_pitch.c
55
char *str;
usr/src/cmd/lp/lib/lp/set_size.c
136
size = strtod(str, &rest);
usr/src/cmd/lp/lib/lp/set_size.c
61
char * str,
usr/src/cmd/lp/lib/lp/set_size.c
66
set_size (str, which, putout)
usr/src/cmd/lp/lib/lp/set_size.c
67
char *str;
usr/src/cmd/lp/lib/lp/sop.c
49
register char *str;
usr/src/cmd/lp/lib/lp/sop.c
54
str = 0;
usr/src/cmd/lp/lib/lp/sop.c
64
if (str)
usr/src/cmd/lp/lib/lp/sop.c
65
str = Realloc(str, size + add_size + 1);
usr/src/cmd/lp/lib/lp/sop.c
67
str = Malloc(size + add_size + 1);
usr/src/cmd/lp/lib/lp/sop.c
68
if (!str) {
usr/src/cmd/lp/lib/lp/sop.c
72
strcpy (str + size, buf);
usr/src/cmd/lp/lib/lp/sop.c
76
Free (str);
usr/src/cmd/lp/lib/lp/sop.c
79
return (str);
usr/src/cmd/lp/lib/lp/strip.c
38
char * str
usr/src/cmd/lp/lib/lp/strip.c
41
strip (str)
usr/src/cmd/lp/lib/lp/strip.c
42
register char *str;
usr/src/cmd/lp/lib/lp/strip.c
47
if (!str || !*str)
usr/src/cmd/lp/lib/lp/strip.c
50
str += strspn(str, " ");
usr/src/cmd/lp/lib/lp/strip.c
51
for (p = str; *p; p++)
usr/src/cmd/lp/lib/lp/strip.c
54
for (; p >= str && *p == ' '; p--)
usr/src/cmd/lp/lib/lp/strip.c
57
return (str);
usr/src/cmd/lp/lib/lp/syntax.c
102
for (p = str; *p; p++)
usr/src/cmd/lp/lib/lp/syntax.c
112
char * str
usr/src/cmd/lp/lib/lp/syntax.c
115
syn_comment (str)
usr/src/cmd/lp/lib/lp/syntax.c
116
char *str;
usr/src/cmd/lp/lib/lp/syntax.c
121
if (!str)
usr/src/cmd/lp/lib/lp/syntax.c
124
for (p = str; *p; p++)
usr/src/cmd/lp/lib/lp/syntax.c
134
char * str
usr/src/cmd/lp/lib/lp/syntax.c
137
syn_machine_name (str)
usr/src/cmd/lp/lib/lp/syntax.c
138
char *str;
usr/src/cmd/lp/lib/lp/syntax.c
141
if (!str)
usr/src/cmd/lp/lib/lp/syntax.c
144
if (strlen(str) > (size_t) 8)
usr/src/cmd/lp/lib/lp/syntax.c
153
char * str
usr/src/cmd/lp/lib/lp/syntax.c
156
syn_option (str)
usr/src/cmd/lp/lib/lp/syntax.c
157
char *str;
usr/src/cmd/lp/lib/lp/syntax.c
162
if (!str)
usr/src/cmd/lp/lib/lp/syntax.c
165
for (p = str; *p; p++)
usr/src/cmd/lp/lib/lp/syntax.c
40
char * str
usr/src/cmd/lp/lib/lp/syntax.c
43
syn_name (str)
usr/src/cmd/lp/lib/lp/syntax.c
44
char *str;
usr/src/cmd/lp/lib/lp/syntax.c
49
if (!str || !*str)
usr/src/cmd/lp/lib/lp/syntax.c
52
if (strlen(str) > (size_t) MAXPATHLEN)
usr/src/cmd/lp/lib/lp/syntax.c
55
for (p = str; *p; p++)
usr/src/cmd/lp/lib/lp/syntax.c
65
char * str
usr/src/cmd/lp/lib/lp/syntax.c
68
syn_type (str)
usr/src/cmd/lp/lib/lp/syntax.c
69
char *str;
usr/src/cmd/lp/lib/lp/syntax.c
74
if (!str)
usr/src/cmd/lp/lib/lp/syntax.c
77
if (strlen(str) > (size_t) MAXPATHLEN)
usr/src/cmd/lp/lib/lp/syntax.c
80
for (p = str; *p; p++)
usr/src/cmd/lp/lib/lp/syntax.c
90
char * str
usr/src/cmd/lp/lib/lp/syntax.c
93
syn_text (str)
usr/src/cmd/lp/lib/lp/syntax.c
94
char *str;
usr/src/cmd/lp/lib/lp/syntax.c
99
if (!str)
usr/src/cmd/lp/lib/lp/which.c
104
char * str
usr/src/cmd/lp/lib/lp/which.c
107
isrequest (str)
usr/src/cmd/lp/lib/lp/which.c
108
char *str;
usr/src/cmd/lp/lib/lp/which.c
126
if (!str || !*str)
usr/src/cmd/lp/lib/lp/which.c
129
if (!(dashp = strrchr(str, '-')))
usr/src/cmd/lp/lib/lp/which.c
132
if (dashp == str)
usr/src/cmd/lp/lib/lp/which.c
136
if (!syn_name(str)) {
usr/src/cmd/lp/lib/lp/which.c
46
char * str
usr/src/cmd/lp/lib/lp/which.c
49
isprinter (str)
usr/src/cmd/lp/lib/lp/which.c
50
char *str;
usr/src/cmd/lp/lib/lp/which.c
58
str
usr/src/cmd/lp/lib/lp/which.c
59
&& *str
usr/src/cmd/lp/lib/lp/which.c
60
&& (path = getprinterfile(str, CONFIGFILE))
usr/src/cmd/lp/lib/lp/which.c
75
char * str
usr/src/cmd/lp/lib/lp/which.c
78
isclass (str)
usr/src/cmd/lp/lib/lp/which.c
79
char *str;
usr/src/cmd/lp/lib/lp/which.c
87
str
usr/src/cmd/lp/lib/lp/which.c
88
&& *str
usr/src/cmd/lp/lib/lp/which.c
89
&& (path = getclassfile(str))
usr/src/cmd/lp/lib/oam/fmtmsg.c
107
wrap(wchar_t *prefix, wchar_t *suffix, int indent_len, wchar_t *str)
usr/src/cmd/lp/lib/oam/fmtmsg.c
135
for (p = str; *p; ) {
usr/src/cmd/lp/lib/printers/putprinter.c
525
print_str(int fd, char *head, char *str)
usr/src/cmd/lp/lib/printers/putprinter.c
527
if (!str || !*str)
usr/src/cmd/lp/lib/printers/putprinter.c
530
(void)fdprintf (fd, "%s %s\n", head, str);
usr/src/cmd/lp/model/netpr/netdebug.h
35
#define ASSERT(expr, str) \
usr/src/cmd/lp/model/netpr/netdebug.h
39
"%s: line %d %s\n", __FILE__, __LINE__, str); \
usr/src/cmd/ls/ls.c
1254
char *str;
usr/src/cmd/ls/ls.c
1377
str = p->ln.namep;
usr/src/cmd/ls/ls.c
1379
str = p->ln.lname;
usr/src/cmd/ls/ls.c
1382
csi_pprintf((unsigned char *)str);
usr/src/cmd/ls/ls.c
1395
(void) printf("%s", str);
usr/src/cmd/ls/ls.c
1396
curcol += strcol((unsigned char *)str);
usr/src/cmd/ls/ls.c
1401
str = " -> ";
usr/src/cmd/ls/ls.c
1402
(void) printf("%s", str);
usr/src/cmd/ls/ls.c
1403
curcol += strcol((unsigned char *)str);
usr/src/cmd/ls/ls.c
2914
ls_tprint(char *str, long int p1, long int p2, long int p3, long int p4,
usr/src/cmd/ls/ls.c
2919
if (str == NULL)
usr/src/cmd/ls/ls.c
2922
s = tparm(str, p1, p2, p3, p4, p5, p6, p7, p8, p9);
usr/src/cmd/mail/gethead.c
214
wtmpf(char *str, int length)
usr/src/cmd/mail/gethead.c
216
if (fwrite(str, 1, length, tmpf) != length) {
usr/src/cmd/mail/mail.h
350
extern int wtmpf(char *str, int length);
usr/src/cmd/mailwrapper/fparseln.c
70
fparseln(FILE *fp, size_t *size, size_t *lineno, const char str[3], int flags)
usr/src/cmd/mailwrapper/fparseln.c
84
if (str == NULL)
usr/src/cmd/mailwrapper/fparseln.c
85
str = dstr;
usr/src/cmd/mailwrapper/fparseln.c
87
esc = str[0];
usr/src/cmd/mailwrapper/fparseln.c
88
con = str[1];
usr/src/cmd/mailwrapper/fparseln.c
89
com = str[2];
usr/src/cmd/mailx/cmd2.c
125
save(char str[])
usr/src/cmd/mailx/cmd2.c
127
return (save1(str, S_MARK));
usr/src/cmd/mailx/cmd2.c
134
copycmd(char str[])
usr/src/cmd/mailx/cmd2.c
136
return (save1(str, 0));
usr/src/cmd/mailx/cmd2.c
144
save1(char str[], int mark)
usr/src/cmd/mailx/cmd2.c
151
if ((file = snarf(str, &f, 0)) == NOSTR)
usr/src/cmd/mailx/cmd2.c
163
if (f && getmsglist(str, msgvec, 0) < 0)
usr/src/cmd/mailx/cmd2.c
205
sput(char str[])
usr/src/cmd/mailx/cmd2.c
207
return (put1(str, 0));
usr/src/cmd/mailx/cmd2.c
211
Sput(char str[])
usr/src/cmd/mailx/cmd2.c
213
return (put1(str, S_NOIGNORE));
usr/src/cmd/mailx/cmd2.c
220
put1(char str[], int doign)
usr/src/cmd/mailx/cmd2.c
226
if ((file = snarf(str, &f, 0)) == NOSTR)
usr/src/cmd/mailx/cmd2.c
238
if (f && getmsglist(str, msgvec, 0) < 0)
usr/src/cmd/mailx/cmd2.c
363
swrite(char str[])
usr/src/cmd/mailx/cmd2.c
369
if ((file = snarf(str, &f, 1)) == NOSTR)
usr/src/cmd/mailx/cmd2.c
383
if (f && getmsglist(str, msgvec, 0) < 0)
usr/src/cmd/mailx/cmd2.c
52
static int save1(char str[], int mark);
usr/src/cmd/mailx/cmd2.c
55
static int put1(char str[], int doign);
usr/src/cmd/mailx/cmd3.c
162
bangexp(char *str)
usr/src/cmd/mailx/cmd3.c
170
cp = str;
usr/src/cmd/mailx/cmd3.c
203
nstrcpy(str, BUFSIZ, bangbuf);
usr/src/cmd/mailx/cmd3.c
233
schdir(char *str)
usr/src/cmd/mailx/cmd3.c
239
for (cp = str; *cp == ' '; cp++)
usr/src/cmd/mailx/cmd3.c
51
static int bangexp(char *str);
usr/src/cmd/mailx/cmd3.c
57
static int shell1(char *str);
usr/src/cmd/mailx/cmd3.c
72
shell(char *str)
usr/src/cmd/mailx/cmd3.c
74
shell1(str);
usr/src/cmd/mailx/cmd3.c
80
shell1(char *str)
usr/src/cmd/mailx/cmd3.c
88
nstrcpy(cmd, sizeof (cmd), str);
usr/src/cmd/mailx/cmd4.c
187
loadmsg(char str[])
usr/src/cmd/mailx/cmd4.c
200
if ((file = snarf(str, &f, 1)) == NOSTR)
usr/src/cmd/mailx/cmd4.c
212
if (f && getmsglist(str, msgvec, 0) < 0)
usr/src/cmd/mailx/cmd4.c
265
field(char str[])
usr/src/cmd/mailx/cmd4.c
273
if ((fld = stripquotes(snarf(str, &f, 0))) == NOSTR) {
usr/src/cmd/mailx/cmd4.c
288
if (f && getmsglist(str, msgvec, 0) < 0)
usr/src/cmd/mailx/cmd4.c
306
stripquotes(char *str)
usr/src/cmd/mailx/cmd4.c
309
if (str == NOSTR) {
usr/src/cmd/mailx/cmd4.c
312
lastch = strlen(str)-1;
usr/src/cmd/mailx/cmd4.c
313
if (any(*str, "\"'") && str[lastch] == *str) {
usr/src/cmd/mailx/cmd4.c
314
str[lastch] = '\0';
usr/src/cmd/mailx/cmd4.c
315
++str;
usr/src/cmd/mailx/cmd4.c
317
return(str);
usr/src/cmd/mailx/cmd4.c
51
static char *stripquotes(char *str);
usr/src/cmd/mailx/cmd4.c
58
dopipe(char str[])
usr/src/cmd/mailx/cmd4.c
74
if ((cmd = stripquotes(snarf(str, &f, 0))) == NOSTR) {
usr/src/cmd/mailx/cmd4.c
92
if (f && getmsglist(str, msgvec, 0) < 0)
usr/src/cmd/mailx/collect.c
1329
cpout(char *str, FILE *ofd)
usr/src/cmd/mailx/collect.c
1331
char *cp = str;
usr/src/cmd/mailx/collect.c
54
static void cpout(char *str, FILE *ofd);
usr/src/cmd/mailx/hdr/def.h
431
extern int Sendm(char *str);
usr/src/cmd/mailx/hdr/def.h
432
extern int Sput(char str[]);
usr/src/cmd/mailx/hdr/def.h
440
extern int any(int ch, char *str);
usr/src/cmd/mailx/hdr/def.h
449
extern int copycmd(char str[]);
usr/src/cmd/mailx/hdr/def.h
456
extern int dopipe(char str[]);
usr/src/cmd/mailx/hdr/def.h
457
extern int dosh(char *str);
usr/src/cmd/mailx/hdr/def.h
468
extern int field(char str[]);
usr/src/cmd/mailx/hdr/def.h
516
extern int loadmsg(char str[]);
usr/src/cmd/mailx/hdr/def.h
544
extern void panic(char *str);
usr/src/cmd/mailx/hdr/def.h
568
extern int save(char str[]);
usr/src/cmd/mailx/hdr/def.h
570
extern char *savestr(char *str);
usr/src/cmd/mailx/hdr/def.h
571
extern int schdir(char *str);
usr/src/cmd/mailx/hdr/def.h
574
extern int sendm(char *str);
usr/src/cmd/mailx/hdr/def.h
580
extern int shell(char *str);
usr/src/cmd/mailx/hdr/def.h
591
extern int sput(char str[]);
usr/src/cmd/mailx/hdr/def.h
596
extern int swrite(char str[]);
usr/src/cmd/mailx/hdr/def.h
616
extern char *vcopy(char str[]);
usr/src/cmd/mailx/head.c
263
any(int ch, char *str)
usr/src/cmd/mailx/head.c
268
f = str;
usr/src/cmd/mailx/list.c
57
static int matchsubj(char *str, int mesg);
usr/src/cmd/mailx/list.c
62
static int sender(char *str, int mesg);
usr/src/cmd/mailx/list.c
676
sender(char *str, int mesg)
usr/src/cmd/mailx/list.c
678
return (samebody(str, skin(nameof(&message[mesg-1])), TRUE));
usr/src/cmd/mailx/list.c
692
matchsubj(char *str, int mesg)
usr/src/cmd/mailx/list.c
697
str++;
usr/src/cmd/mailx/list.c
698
if (strlen(str) == 0)
usr/src/cmd/mailx/list.c
699
str = lastscan;
usr/src/cmd/mailx/list.c
701
nstrcpy(lastscan, sizeof (lastscan), str);
usr/src/cmd/mailx/list.c
708
cp = str;
usr/src/cmd/mailx/list.c
718
cp = str;
usr/src/cmd/mailx/names.c
52
static struct name *nalloc(char str[]);
usr/src/cmd/mailx/names.c
68
nalloc(char str[])
usr/src/cmd/mailx/names.c
76
np->n_full = savestr(str);
usr/src/cmd/mailx/optim.c
49
static void stradd(register char *str, int n, register int c);
usr/src/cmd/mailx/optim.c
62
static char *rpair(char str[], int mach);
usr/src/cmd/mailx/optim.c
789
rpair(char str[], int mach)
usr/src/cmd/mailx/optim.c
793
cp = str;
usr/src/cmd/mailx/optim.c
866
revarpa(char str[])
usr/src/cmd/mailx/optim.c
869
if (yyinit(str) < 0)
usr/src/cmd/mailx/optim.c
873
if (strcmp(str, netbuf) == 0)
usr/src/cmd/mailx/optim.c
874
return(str);
usr/src/cmd/mailx/optim.c
937
yyinit(char str[])
usr/src/cmd/mailx/optim.c
942
if (strlen(str) >= sizeof lexbuf - 1)
usr/src/cmd/mailx/optim.c
945
nstrcpy(lexbuf, sizeof (lexbuf), str);
usr/src/cmd/mailx/send.c
314
sendm(char *str)
usr/src/cmd/mailx/send.c
317
return(Sendmail(str));
usr/src/cmd/mailx/send.c
318
else return(sendmail(str));
usr/src/cmd/mailx/send.c
322
Sendm(char *str)
usr/src/cmd/mailx/send.c
325
return(sendmail(str));
usr/src/cmd/mailx/send.c
326
else return(Sendmail(str));
usr/src/cmd/mailx/send.c
351
sendmail(char *str)
usr/src/cmd/mailx/send.c
355
if (blankline(str))
usr/src/cmd/mailx/send.c
358
head.h_to = addto(NOSTR, str);
usr/src/cmd/mailx/send.c
372
Sendmail(char *str)
usr/src/cmd/mailx/send.c
376
if (blankline(str))
usr/src/cmd/mailx/send.c
379
head.h_to = addto(NOSTR, str);
usr/src/cmd/mailx/send.c
50
static void fmt(register char *str, register FILE *fo);
usr/src/cmd/mailx/send.c
54
static int sendmail(char *str);
usr/src/cmd/mailx/send.c
55
static int Sendmail(char *str);
usr/src/cmd/mailx/send.c
701
fmt(register char *str, register FILE *fo)
usr/src/cmd/mailx/send.c
707
str = strcpy((char *)salloc(strlen(str)+1), str);
usr/src/cmd/mailx/send.c
708
while (str = yankword(str, name, sizeof (name), 1)) {
usr/src/cmd/mailx/util.c
59
savestr(char *str)
usr/src/cmd/mailx/util.c
63
for (cp = str; *cp; cp++)
usr/src/cmd/mailx/util.c
65
top = (char *)salloc((unsigned)(cp-str + 1));
usr/src/cmd/mailx/util.c
68
for (cp = str, cp2 = top; *cp; cp++)
usr/src/cmd/mailx/util.c
79
panic(char *str)
usr/src/cmd/mailx/util.c
81
fprintf(stderr, gettext("mailx: Panic - %s\n"), str);
usr/src/cmd/mailx/vars.c
143
vcopy(char str[])
usr/src/cmd/mailx/vars.c
147
if (equal(str, ""))
usr/src/cmd/mailx/vars.c
149
if ((top = (char *)calloc(strlen(str)+1, 1)) == NULL)
usr/src/cmd/mailx/vars.c
152
cp2 = str;
usr/src/cmd/make/bin/main.cc
1110
quote_str(char *str, char *qstr)
usr/src/cmd/make/bin/main.cc
1116
for (from = str; *from; from++) {
usr/src/cmd/make/bin/main.cc
1151
unquote_str(char *str, char *qstr)
usr/src/cmd/make/bin/main.cc
1157
for (from = str; *from; from++) {
usr/src/cmd/make/bin/misc.cc
502
Wstring str;
usr/src/cmd/make/bin/misc.cc
505
str.init(p);
usr/src/cmd/make/bin/misc.cc
506
wchar_t * wcb = str.get_string();
usr/src/cmd/make/bin/read2.cc
1497
Wstring str;
usr/src/cmd/make/bin/read2.cc
1522
str.init(np);
usr/src/cmd/make/bin/read2.cc
1523
wchar_t * wcb = str.get_string();
usr/src/cmd/make/include/mksh/defs.h
221
#define INIT_STRING_FROM_STACK(str, buf) { \
usr/src/cmd/make/include/mksh/defs.h
222
str.buffer.start = (buf); \
usr/src/cmd/make/include/mksh/defs.h
223
str.text.p = (buf); \
usr/src/cmd/make/include/mksh/defs.h
224
str.text.end = NULL; \
usr/src/cmd/make/include/mksh/defs.h
225
str.buffer.end = (buf) \
usr/src/cmd/make/include/mksh/defs.h
227
str.free_after_use = false; \
usr/src/cmd/make/include/mksh/defs.h
247
void append_to_str(struct _String * str, unsigned off, unsigned length);
usr/src/cmd/make/include/mksh/defs.h
257
Boolean equaln(wchar_t * str, unsigned length);
usr/src/cmd/make/include/mksh/defs.h
258
Boolean equal(wchar_t * str);
usr/src/cmd/make/include/mksh/defs.h
259
Boolean equal(wchar_t * str, unsigned off);
usr/src/cmd/make/include/mksh/defs.h
260
Boolean equal(wchar_t * str, unsigned off, unsigned length);
usr/src/cmd/make/include/mksh/defs.h
262
Boolean equaln(Wstring * str, unsigned length);
usr/src/cmd/make/include/mksh/defs.h
263
Boolean equal(Wstring * str);
usr/src/cmd/make/include/mksh/defs.h
264
Boolean equal(Wstring * str, unsigned off);
usr/src/cmd/make/include/mksh/defs.h
265
Boolean equal(Wstring * str, unsigned off, unsigned length);
usr/src/cmd/make/lib/makestate/ld_file.c
124
(void) fprintf(ofp, " %s", cur->str);
usr/src/cmd/make/lib/makestate/ld_file.c
44
char *str;
usr/src/cmd/make/lib/makestate/ld_file.c
60
prepend_str(Stritem **list, const char *str)
usr/src/cmd/make/lib/makestate/ld_file.c
70
if (!(newstr = malloc(strlen(str) + 1))) {
usr/src/cmd/make/lib/makestate/ld_file.c
75
new->str = strcpy(newstr, str);
usr/src/cmd/make/lib/makestate/lock.c
151
file_lock_error(char * msg, char * file, const char * str, char * arg1,
usr/src/cmd/make/lib/makestate/lock.c
158
(void) sprintf(&msg[len], str, arg1, arg2);
usr/src/cmd/make/lib/mksh/misc.cc
889
Wstring::equaln(wchar_t * str, unsigned length)
usr/src/cmd/make/lib/mksh/misc.cc
891
return (Boolean)IS_WEQUALN(string.buffer.start, str, length);
usr/src/cmd/make/lib/mksh/misc.cc
895
Wstring::equaln(Wstring * str, unsigned length)
usr/src/cmd/make/lib/mksh/misc.cc
897
return (Boolean)IS_WEQUALN(string.buffer.start, str->string.buffer.start, length);
usr/src/cmd/make/lib/mksh/misc.cc
901
Wstring::equal(wchar_t * str, unsigned off, unsigned length)
usr/src/cmd/make/lib/mksh/misc.cc
903
return (Boolean)IS_WEQUALN(string.buffer.start + off, str, length);
usr/src/cmd/make/lib/mksh/misc.cc
907
Wstring::equal(wchar_t * str, unsigned off)
usr/src/cmd/make/lib/mksh/misc.cc
909
return (Boolean)IS_WEQUAL(string.buffer.start + off, str);
usr/src/cmd/make/lib/mksh/misc.cc
913
Wstring::equal(wchar_t * str)
usr/src/cmd/make/lib/mksh/misc.cc
915
return equal(str, 0);
usr/src/cmd/make/lib/mksh/misc.cc
919
Wstring::equal(Wstring * str, unsigned off, unsigned length)
usr/src/cmd/make/lib/mksh/misc.cc
921
return (Boolean)IS_WEQUALN(string.buffer.start + off, str->string.buffer.start, length);
usr/src/cmd/make/lib/mksh/misc.cc
925
Wstring::equal(Wstring * str)
usr/src/cmd/make/lib/mksh/misc.cc
927
return equal(str, 0);
usr/src/cmd/make/lib/mksh/misc.cc
931
Wstring::equal(Wstring * str, unsigned off)
usr/src/cmd/make/lib/mksh/misc.cc
933
return (Boolean)IS_WEQUAL(string.buffer.start + off, str->string.buffer.start);
usr/src/cmd/make/lib/mksh/misc.cc
937
Wstring::append_to_str(struct _String * str, unsigned off, unsigned length)
usr/src/cmd/make/lib/mksh/misc.cc
939
append_string(string.buffer.start + off, str, length);
usr/src/cmd/make/lib/vroot/lock.cc
158
file_lock_error(char *msg, char *file, const char *str, char *arg1, char *arg2)
usr/src/cmd/make/lib/vroot/lock.cc
165
sprintf(&msg[len], str, arg1, arg2);
usr/src/cmd/make/lib/vroot/lock.cc
39
static void file_lock_error(char *msg, char *file, const char *str,
usr/src/cmd/man/makewhatis.c
373
trim_rhs(char *str)
usr/src/cmd/man/makewhatis.c
377
rhs = &str[strlen(str)];
usr/src/cmd/man/makewhatis.c
378
while (--rhs > str && isspace(*rhs))
usr/src/cmd/mandoc/dba.c
188
dba_page_add(struct dba_array *page, int32_t ie, const char *str)
usr/src/cmd/mandoc/dba.c
197
if (str == NULL || *str == '\0') {
usr/src/cmd/mandoc/dba.c
203
if (*str == '\0')
usr/src/cmd/mandoc/dba.c
208
if (strcmp(entry, str) == 0)
usr/src/cmd/mandoc/dba.c
211
dba_array_add(entries, (void *)str);
usr/src/cmd/mandoc/dba_array.c
185
const char *str;
usr/src/cmd/mandoc/dba_array.c
187
dba_array_FOREACH(array, str)
usr/src/cmd/mandoc/dba_array.c
188
dba_str_write(str);
usr/src/cmd/mandoc/dba_write.c
114
dba_str_write(const char *str)
usr/src/cmd/mandoc/dba_write.c
116
if (fputs(str, ofp) == EOF)
usr/src/cmd/mandoc/dbm.h
30
const char *str;
usr/src/cmd/mandoc/dbm_map.c
182
dbm_match(const struct dbm_match *match, const char *str)
usr/src/cmd/mandoc/dbm_map.c
186
return strcmp(str, match->str) == 0;
usr/src/cmd/mandoc/dbm_map.c
188
return strcasestr(str, match->str) != NULL;
usr/src/cmd/mandoc/dbm_map.c
190
return regexec(match->re, str, 0, NULL, 0) == 0;
usr/src/cmd/mandoc/eqn.c
214
const char *str;
usr/src/cmd/mandoc/eqn.c
469
eqnsyms[i].str, strlen(eqnsyms[i].str))) {
usr/src/cmd/mandoc/mandocdb.c
1111
struct str *str;
usr/src/cmd/mandoc/mandocdb.c
1159
str = ohash_find(&names, slot);
usr/src/cmd/mandoc/mandocdb.c
1160
assert(NULL != str);
usr/src/cmd/mandoc/mandocdb.c
1161
if ( ! (NAME_TITLE & str->mask))
usr/src/cmd/mandoc/mandocdb.c
1187
mandoc_ohash_init(&names, 4, offsetof(struct str, key));
usr/src/cmd/mandoc/mandocdb.c
1188
mandoc_ohash_init(&strings, 6, offsetof(struct str, key));
usr/src/cmd/mandoc/mandocdb.c
1855
struct str *s;
usr/src/cmd/mandoc/mandocdb.c
1892
s = mandoc_calloc(1, sizeof(struct str) + sz + 1);
usr/src/cmd/mandoc/mandocdb.c
2098
struct str *key;
usr/src/cmd/mandoc/mansearch.c
753
e->match.str = argv[(*argi)++];
usr/src/cmd/mandoc/mansearch.c
784
e->match.str = val + 1;
usr/src/cmd/mandoc/out.c
439
const char *str; /* Beginning of the first line. */
usr/src/cmd/mandoc/out.c
448
str = mw ? mandoc_strdup(dp->string) : dp->string;
usr/src/cmd/mandoc/out.c
450
for (beg = str; beg != NULL && *beg != '\0'; beg = end) {
usr/src/cmd/mandoc/out.c
466
free((void *)str);
usr/src/cmd/mandoc/roff.c
172
const char *str; /* replacement symbol */
usr/src/cmd/mandoc/roff.c
4187
return predefs[i].str;
usr/src/cmd/mdb/common/kmdb/kmdb_dl.c
90
char *str = dl_errstr;
usr/src/cmd/mdb/common/kmdb/kmdb_dl.c
94
return (str);
usr/src/cmd/mdb/common/mdb/mdb_cmds.c
1952
const char *str = argv->a_un.a_str;
usr/src/cmd/mdb/common/mdb/mdb_cmds.c
1957
if (strchr("+-", str[0]) != NULL)
usr/src/cmd/mdb/common/mdb/mdb_cmds.c
1959
else if (str[0] >= '0' && str[0] <= '9')
usr/src/cmd/mdb/common/mdb/mdb_cmds.c
1960
value = mdb_strtoull(str);
usr/src/cmd/mdb/common/mdb/mdb_cmds.c
1961
else if (mdb_lookup_by_name(str, &sym) != 0) {
usr/src/cmd/mdb/common/mdb/mdb_cmds.c
1962
mdb_warn("symbol '%s' not found", str);
usr/src/cmd/mdb/common/mdb/mdb_err.c
134
const char *str;
usr/src/cmd/mdb/common/mdb/mdb_err.c
137
str = _mdb_errlist[err - EMDB_BASE];
usr/src/cmd/mdb/common/mdb/mdb_err.c
139
str = strerror(err);
usr/src/cmd/mdb/common/mdb/mdb_err.c
143
(void) mdb_iob_snprintf(buf, sizeof (buf), str,
usr/src/cmd/mdb/common/mdb/mdb_err.c
145
str = buf;
usr/src/cmd/mdb/common/mdb/mdb_err.c
151
str = rd_errstr(errno_rtld_db);
usr/src/cmd/mdb/common/mdb/mdb_err.c
157
str = ctf_errmsg(errno_libctf);
usr/src/cmd/mdb/common/mdb/mdb_err.c
161
return (str ? str : "unknown error");
usr/src/cmd/mdb/common/mdb/mdb_io.c
1154
const char *str;
usr/src/cmd/mdb/common/mdb/mdb_io.c
1179
str = numtostr(value, 16, NTOS_UNSIGNED | NTOS_SHOWBASE);
usr/src/cmd/mdb/common/mdb/mdb_io.c
1180
width = strlen(str) + delim;
usr/src/cmd/mdb/common/mdb/mdb_io.c
1186
mdb_iob_puts(iob, str);
usr/src/cmd/mdb/common/mdb/mdb_io.c
1266
const char *str;
usr/src/cmd/mdb/common/mdb/mdb_io.c
1327
u.str = iob_int2str(ap, size, 16,
usr/src/cmd/mdb/common/mdb/mdb_io.c
1331
u.str = symstr;
usr/src/cmd/mdb/common/mdb/mdb_io.c
1347
u.str = iob_addr2str(val);
usr/src/cmd/mdb/common/mdb/mdb_io.c
1349
if (f_alt == TRUE && u.str == NULL)
usr/src/cmd/mdb/common/mdb/mdb_io.c
1350
u.str = "?";
usr/src/cmd/mdb/common/mdb/mdb_io.c
1354
u.str = iob_int2str(ap, size, 16,
usr/src/cmd/mdb/common/mdb/mdb_io.c
1364
u.str = c;
usr/src/cmd/mdb/common/mdb/mdb_io.c
1371
u.str = iob_int2str(ap, size, 10, flags, &zero, &val);
usr/src/cmd/mdb/common/mdb/mdb_io.c
1379
u.str = doubletos(u.d, 7, *p);
usr/src/cmd/mdb/common/mdb/mdb_io.c
1386
u.str = longdoubletos(&u.ld, 16,
usr/src/cmd/mdb/common/mdb/mdb_io.c
1390
u.str = doubletos(u.d, 16,
usr/src/cmd/mdb/common/mdb/mdb_io.c
1401
u.str = iob_bytes2str(ap, size);
usr/src/cmd/mdb/common/mdb/mdb_io.c
1406
u.str = iob_inaddr2str(u.ui32);
usr/src/cmd/mdb/common/mdb/mdb_io.c
1430
u.str = iob_ipv6addr2str(u.ptr);
usr/src/cmd/mdb/common/mdb/mdb_io.c
1434
u.str = iob_int2str(ap, size, 8, NTOS_UNSIGNED,
usr/src/cmd/mdb/common/mdb/mdb_io.c
1445
u.str = numtostr((uintptr_t)u.ptr, 16, NTOS_UNSIGNED);
usr/src/cmd/mdb/common/mdb/mdb_io.c
1449
u.str = iob_int2str(ap, size, 8, flags, &zero, &val);
usr/src/cmd/mdb/common/mdb/mdb_io.c
1460
u.str = iob_int2str(ap, size, mdb.m_radix,
usr/src/cmd/mdb/common/mdb/mdb_io.c
1467
u.str = iob_int2str(ap, size, mdb.m_radix, flags,
usr/src/cmd/mdb/common/mdb/mdb_io.c
1472
u.str = VA_PTRARG(ap);
usr/src/cmd/mdb/common/mdb/mdb_io.c
1473
if (u.str == NULL)
usr/src/cmd/mdb/common/mdb/mdb_io.c
1474
u.str = "<NULL>"; /* Be forgiving of NULL */
usr/src/cmd/mdb/common/mdb/mdb_io.c
1500
u.str = iob_int2str(ap, size, 10,
usr/src/cmd/mdb/common/mdb/mdb_io.c
1505
u.str = iob_int2str(ap, size, 16, NTOS_UNSIGNED,
usr/src/cmd/mdb/common/mdb/mdb_io.c
1515
u.str = iob_int2str(ap, size, 16,
usr/src/cmd/mdb/common/mdb/mdb_io.c
1526
u.str = iob_time2str(&u.tm);
usr/src/cmd/mdb/common/mdb/mdb_io.c
1538
for (u.str = ++p; *p != '\0' && *p != '>'; p++)
usr/src/cmd/mdb/common/mdb/mdb_io.c
1542
size_t paramlen = p - u.str;
usr/src/cmd/mdb/common/mdb/mdb_io.c
1545
if (*u.str == '_') {
usr/src/cmd/mdb/common/mdb/mdb_io.c
1546
u.str = iob_getvar(u.str + 1,
usr/src/cmd/mdb/common/mdb/mdb_io.c
1550
(void) iob_setattr(iob, u.str,
usr/src/cmd/mdb/common/mdb/mdb_io.c
1566
u.str = "%";
usr/src/cmd/mdb/common/mdb/mdb_io.c
1587
u.str = c;
usr/src/cmd/mdb/common/mdb/mdb_io.c
1590
len = u.str != NULL ? strlen(u.str) : 0;
usr/src/cmd/mdb/common/mdb/mdb_io.c
1601
if (u.str != NULL) {
usr/src/cmd/mdb/common/mdb/mdb_io.c
1602
char *np = strchr(u.str, '\n');
usr/src/cmd/mdb/common/mdb/mdb_io.c
1604
int lf_len = (np - u.str) + altlen;
usr/src/cmd/mdb/common/mdb/mdb_io.c
1628
mdb_iob_nputs(iob, u.str, len);
usr/src/cmd/mdb/common/mdb/mdb_nm.c
250
char *str = NULL;
usr/src/cmd/mdb/common/mdb/mdb_nm.c
256
str = nm_func_signature(fp, index, buf, sizeof (buf));
usr/src/cmd/mdb/common/mdb/mdb_nm.c
258
str = ctf_type_name(fp, id, buf, sizeof (buf));
usr/src/cmd/mdb/common/mdb/mdb_nm.c
261
if (str == NULL)
usr/src/cmd/mdb/common/mdb/mdb_nm.c
262
str = "<unknown type>";
usr/src/cmd/mdb/common/mdb/mdb_nm.c
264
mdb_printf("%-50s", str);
usr/src/cmd/mdb/common/mdb/mdb_print.c
1237
char *str;
usr/src/cmd/mdb/common/mdb/mdb_print.c
1269
str = mdb_alloc(r.mta_nelems + 1, UM_SLEEP | UM_GC);
usr/src/cmd/mdb/common/mdb/mdb_print.c
1270
str[r.mta_nelems] = '\0';
usr/src/cmd/mdb/common/mdb/mdb_print.c
1272
if (mdb_tgt_aread(pap->pa_tgt, pap->pa_as, str,
usr/src/cmd/mdb/common/mdb/mdb_print.c
1278
if (strisprint(str)) {
usr/src/cmd/mdb/common/mdb/mdb_print.c
1279
mdb_printf("[ \"%s\" ]", str);
usr/src/cmd/mdb/common/mdb/mdb_print.c
1963
parse_member(printarg_t *pap, const char *str, mdb_ctf_id_t id,
usr/src/cmd/mdb/common/mdb/mdb_print.c
1970
char *start = (char *)str;
usr/src/cmd/mdb/common/mdb/mdb_print.c
303
char *str = arg;
usr/src/cmd/mdb/common/mdb/mdb_print.c
309
if (str[0] == 0) {
usr/src/cmd/mdb/common/mdb/mdb_print.c
315
while (*name == *str) {
usr/src/cmd/mdb/common/mdb/mdb_print.c
316
if (*str == 0) {
usr/src/cmd/mdb/common/mdb/mdb_print.c
317
if (str != arg) {
usr/src/cmd/mdb/common/mdb/mdb_print.c
318
str--; /* don't smother a name completely */
usr/src/cmd/mdb/common/mdb/mdb_print.c
323
str++;
usr/src/cmd/mdb/common/mdb/mdb_print.c
325
*str = 0;
usr/src/cmd/mdb/common/mdb/mdb_print.c
327
return (str == arg); /* only continue if prefix is non-empty */
usr/src/cmd/mdb/common/mdb/mdb_termio.c
1087
const char *str;
usr/src/cmd/mdb/common/mdb/mdb_termio.c
1092
str = td->tio_info.ti_cud1.at_str;
usr/src/cmd/mdb/common/mdb/mdb_termio.c
1096
str = td->tio_info.ti_cuu1.at_str;
usr/src/cmd/mdb/common/mdb/mdb_termio.c
1101
termio_tput(td, str, 1);
usr/src/cmd/mdb/common/mdb/mdb_termio.c
1109
str = td->tio_info.ti_cuf1.at_str;
usr/src/cmd/mdb/common/mdb/mdb_termio.c
1112
str = td->tio_info.ti_cub1.at_str;
usr/src/cmd/mdb/common/mdb/mdb_termio.c
1117
termio_tput(td, str, 1);
usr/src/cmd/mdb/common/mdb/mdb_termio.c
1280
char *str;
usr/src/cmd/mdb/common/mdb/mdb_termio.c
1287
str = strchr2esc(ta->ta_valp->at_str,
usr/src/cmd/mdb/common/mdb/mdb_termio.c
1290
ta->ta_name, str);
usr/src/cmd/mdb/common/mdb/mdb_termio.c
1291
strfree(str);
usr/src/cmd/mdb/common/mdb/mdb_termio.c
1316
const char *str;
usr/src/cmd/mdb/common/mdb/mdb_termio.c
1330
str = tigetstr(ta->ta_name);
usr/src/cmd/mdb/common/mdb/mdb_termio.c
1332
if (str == (const char *)-1) {
usr/src/cmd/mdb/common/mdb/mdb_termio.c
1339
if (str != NULL)
usr/src/cmd/mdb/common/mdb/mdb_termio.c
1340
nbytes += strlen(str) + 1;
usr/src/cmd/mdb/common/mdb/mdb_termio.c
1385
if ((str = tigetstr(ta->ta_name)) != NULL) {
usr/src/cmd/mdb/common/mdb/mdb_termio.c
1390
(void) strcpy(bufp, str);
usr/src/cmd/mdb/common/mdb/mdb_termio.c
1392
bufp += strlen(str) + 1;
usr/src/cmd/mdb/common/mdb/mdb_termio.c
1397
if ((str = strstr(ta->ta_valp->at_str,
usr/src/cmd/mdb/common/mdb/mdb_termio.c
1398
"$<")) != NULL && strchr(str, '>') != NULL)
usr/src/cmd/mdb/common/mdb/mdb_termio.c
1430
if ((str = getenv("LINES")) != NULL && strisnum(str) != 0 &&
usr/src/cmd/mdb/common/mdb/mdb_termio.c
1431
(i = strtoi(str)) > 0)
usr/src/cmd/mdb/common/mdb/mdb_termio.c
1438
if ((str = getenv("COLUMNS")) != NULL && strisnum(str) != 0 &&
usr/src/cmd/mdb/common/mdb/mdb_termio.c
1439
(i = strtoi(str)) > 0)
usr/src/cmd/mdb/common/mdb/mdb_typedef.c
100
(*str < 'A' || *str > 'Z') &&
usr/src/cmd/mdb/common/mdb/mdb_typedef.c
101
(*str < 'a' || *str > 'z'))
usr/src/cmd/mdb/common/mdb/mdb_typedef.c
103
str++;
usr/src/cmd/mdb/common/mdb/mdb_typedef.c
77
typedef_valid_identifier(const char *str)
usr/src/cmd/mdb/common/mdb/mdb_typedef.c
88
if (*str == '\0')
usr/src/cmd/mdb/common/mdb/mdb_typedef.c
91
if (*str != '_' &&
usr/src/cmd/mdb/common/mdb/mdb_typedef.c
92
(*str < 'A' || *str > 'Z') &&
usr/src/cmd/mdb/common/mdb/mdb_typedef.c
93
(*str < 'a' || *str > 'z'))
usr/src/cmd/mdb/common/mdb/mdb_typedef.c
95
str++;
usr/src/cmd/mdb/common/mdb/mdb_typedef.c
97
while (*str != '\0') {
usr/src/cmd/mdb/common/mdb/mdb_typedef.c
98
if (*str != '_' &&
usr/src/cmd/mdb/common/mdb/mdb_typedef.c
99
(*str < '0' || *str > '9') &&
usr/src/cmd/mdb/common/modules/dtrace/dof.c
102
caddr_t addr = NULL, str;
usr/src/cmd/mdb/common/modules/dtrace/dof.c
129
str = mdb_zalloc(dp->dtdo_strlen + 1, UM_SLEEP | UM_GC);
usr/src/cmd/mdb/common/modules/dtrace/dof.c
131
for (i = 0; i == 0 || str[i - 1] != '\0'; i++, addr++) {
usr/src/cmd/mdb/common/modules/dtrace/dof.c
132
if (mdb_vread(&str[i], sizeof (char), (uintptr_t)addr) == -1)
usr/src/cmd/mdb/common/modules/dtrace/dof.c
136
return (str);
usr/src/cmd/mdb/common/modules/dtrace/dof.c
216
char *str = mdb_alloc(dp->dtdo_strlen, UM_SLEEP | UM_GC);
usr/src/cmd/mdb/common/modules/dtrace/dof.c
218
if (mdb_vread(str, dp->dtdo_strlen,
usr/src/cmd/mdb/common/modules/dtrace/dof.c
222
mdb_printf("\t\t! \"%s\"", str + strptr);
usr/src/cmd/mdb/common/modules/dtrace/dof.c
415
char *str;
usr/src/cmd/mdb/common/modules/dtrace/dof.c
448
str = mdb_alloc(dp->dtdo_strlen, UM_SLEEP | UM_GC);
usr/src/cmd/mdb/common/modules/dtrace/dof.c
450
if (mdb_vread(str, dp->dtdo_strlen, (uintptr_t)dp->dtdo_strtab) == -1) {
usr/src/cmd/mdb/common/modules/dtrace/dof.c
497
&str[v->dtdv_name],
usr/src/cmd/mdb/common/modules/genunix/contract.c
116
if (mdb_readstr(str, sizeof (str), (uintptr_t)ctt.ct_type_name) == -1) {
usr/src/cmd/mdb/common/modules/genunix/contract.c
122
mdb_printf("%0?p %8d %8s %8s %?p %?p\n", addr, ct.ct_id, str,
usr/src/cmd/mdb/common/modules/genunix/contract.c
93
char str[32];
usr/src/cmd/mdb/common/modules/genunix/cred.c
249
char str[80];
usr/src/cmd/mdb/common/modules/genunix/cred.c
254
strcpy(str, "(domain?)");
usr/src/cmd/mdb/common/modules/genunix/cred.c
261
(void) mdb_readstr(str, sizeof (str), sa);
usr/src/cmd/mdb/common/modules/genunix/cred.c
263
mdb_printf("%s-%u,\n", str, ks->ks_rid);
usr/src/cmd/mdb/common/modules/genunix/leaky.c
103
leaky_verbose(char *str, uint64_t stat)
usr/src/cmd/mdb/common/modules/genunix/leaky.c
110
if (str == NULL) {
usr/src/cmd/mdb/common/modules/genunix/leaky.c
115
mdb_printf("%*s => %lld\n", 30, str, stat);
usr/src/cmd/mdb/common/modules/genunix/leaky.c
119
leaky_verbose_perc(char *str, uint64_t stat, uint64_t total)
usr/src/cmd/mdb/common/modules/genunix/leaky.c
128
30, str, stat, perc, tenths);
usr/src/cmd/mdb/common/modules/genunix/typegraph.c
1543
typegraph_stat_str(char *name, char *str)
usr/src/cmd/mdb/common/modules/genunix/typegraph.c
1545
mdb_printf("typegraph: %30s => %s\n", name, str);
usr/src/cmd/mdb/common/modules/ipc/ipc.c
56
printtime_nice(const char *str, time_t time)
usr/src/cmd/mdb/common/modules/ipc/ipc.c
59
mdb_printf("%s%Y\n", str, time);
usr/src/cmd/mdb/common/modules/ipc/ipc.c
61
mdb_printf("%sn/a\n", str);
usr/src/cmd/mdb/common/modules/libc/libc.c
1608
char *str;
usr/src/cmd/mdb/common/modules/libc/libc.c
1630
d_mutex_output_push(&toutput, tvals[i].str);
usr/src/cmd/mdb/common/modules/libc/libc.c
1636
char *str;
usr/src/cmd/mdb/common/modules/libc/libc.c
1648
d_mutex_output_push(&foutput, fvals[i].str);
usr/src/cmd/mdb/common/modules/libc/libc.c
443
#define HD(str) mdb_printf(" " str "\n")
usr/src/cmd/mdb/common/modules/mdb_ks/mdb_ks.c
1672
mdb_read_refstr(uintptr_t refstr_addr, char *str, size_t nbytes)
usr/src/cmd/mdb/common/modules/mdb_ks/mdb_ks.c
1676
return (mdb_readstr(str, nbytes, (uintptr_t)r->rs_string));
usr/src/cmd/mdb/common/modules/mdb_ks/mdb_ks.c
1887
char *str = mdb_zalloc(4096, UM_SLEEP | UM_GC);
usr/src/cmd/mdb/common/modules/mdb_ks/mdb_ks.c
1889
if (mdb_readstr(str, 4096, sym.st_value) < 1)
usr/src/cmd/mdb/common/modules/mdb_ks/mdb_ks.c
1892
mdb_printf("build version: %s\n", str);
usr/src/cmd/mdb/common/modules/neti/neti.c
49
char str[PROT_LENGTH];
usr/src/cmd/mdb/common/modules/neti/neti.c
78
if (mdb_readstr((char *)str, sizeof (str),
usr/src/cmd/mdb/common/modules/neti/neti.c
87
nd.netd_hooks, str);
usr/src/cmd/mdb/common/modules/nfs/nfs.c
241
static char str[64];
usr/src/cmd/mdb/common/modules/nfs/nfs.c
377
mdb_snprintf(str, sizeof (str), "Unknown %d", err);
usr/src/cmd/mdb/common/modules/nfs/nfs.c
378
return (str);
usr/src/cmd/mdb/common/modules/nfs/nfs.c
829
char str[INET6_ADDRSTRLEN] = "";
usr/src/cmd/mdb/common/modules/nfs/nfs.c
862
nfs_addr_by_servinfo4((uintptr_t)mi->mi_curr_serv, str, sizeof (str));
usr/src/cmd/mdb/common/modules/nfs/nfs.c
863
mdb_printf("Curr Server: %p %s\n", mi->mi_curr_serv, str);
usr/src/cmd/mdb/common/modules/nfs/nfs.c
883
char str[INET6_ADDRSTRLEN] = "";
usr/src/cmd/mdb/common/modules/nfs/nfs.c
892
nfs_addr_by_servinfo((uintptr_t)mi->mi_curr_serv, str, sizeof (str));
usr/src/cmd/mdb/common/modules/nfs/nfs.c
893
mdb_printf("Curr Server: %p %s\n", mi->mi_curr_serv, str);
usr/src/cmd/mdb/common/modules/nfs/nfs_clnt.c
1039
const char *str;
usr/src/cmd/mdb/common/modules/nfs/nfs_clnt.c
1067
const char *str;
usr/src/cmd/mdb/common/modules/nfs/nfs_clnt.c
125
for (i = 0; nfs4_op_tbl[i].str != NULL; i++)
usr/src/cmd/mdb/common/modules/nfs/nfs_clnt.c
127
return (nfs4_op_tbl[i].str);
usr/src/cmd/mdb/common/modules/nfs/nfs_clnt.c
133
const char *str;
usr/src/cmd/mdb/common/modules/nfs/nfs_clnt.c
1332
for (i = 0; nfs4_event_type_tbl[i].str != NULL; i++)
usr/src/cmd/mdb/common/modules/nfs/nfs_clnt.c
1335
ef_type = nfs4_event_type_tbl[i].str;
usr/src/cmd/mdb/common/modules/nfs/nfs_clnt.c
1341
for (i = 0; nfs4_fact_type_tbl[i].str != NULL; i++)
usr/src/cmd/mdb/common/modules/nfs/nfs_clnt.c
1344
ef_type = nfs4_fact_type_tbl[i].str;
usr/src/cmd/mdb/common/modules/nfs/nfs_clnt.c
161
for (i = 0; nfs4_recov_tbl[i].str != NULL; i++)
usr/src/cmd/mdb/common/modules/nfs/nfs_clnt.c
163
return (nfs4_recov_tbl[i].str);
usr/src/cmd/mdb/common/modules/nfs/nfs_clnt.c
169
const char *str;
usr/src/cmd/mdb/common/modules/nfs/nfs_clnt.c
246
for (i = 0; nfs4_stat_tbl[i].str != NULL; i++)
usr/src/cmd/mdb/common/modules/nfs/nfs_clnt.c
248
return (nfs4_stat_tbl[i].str);
usr/src/cmd/mdb/common/modules/nfs/nfs_clnt.c
254
const char *str;
usr/src/cmd/mdb/common/modules/nfs/nfs_clnt.c
325
for (i = 0; nfs4_tag_tbl[i].str != NULL; i++)
usr/src/cmd/mdb/common/modules/nfs/nfs_clnt.c
327
return (nfs4_tag_tbl[i].str);
usr/src/cmd/mdb/common/modules/nfs/nfs_clnt.c
68
const char *str;
usr/src/cmd/mdb/common/modules/s1394/s1394.c
138
char str[512], tmp[512];
usr/src/cmd/mdb/common/modules/s1394/s1394.c
153
(void) strcpy(str, " |");
usr/src/cmd/mdb/common/modules/s1394/s1394.c
156
(void) strcat(str, tmp);
usr/src/cmd/mdb/common/modules/s1394/s1394.c
158
(void) strcat(str, " | GUID\n");
usr/src/cmd/mdb/common/modules/s1394/s1394.c
159
mdb_printf("%s", str);
usr/src/cmd/mdb/common/modules/s1394/s1394.c
161
(void) strcpy(str, "----|");
usr/src/cmd/mdb/common/modules/s1394/s1394.c
164
(void) strcat(str, tmp);
usr/src/cmd/mdb/common/modules/s1394/s1394.c
166
(void) strcat(str, "--|------------------\n");
usr/src/cmd/mdb/common/modules/s1394/s1394.c
167
mdb_printf("%s", str);
usr/src/cmd/mdb/common/modules/s1394/s1394.c
178
(void) mdb_snprintf(str, sizeof (str), " %2d |", i);
usr/src/cmd/mdb/common/modules/s1394/s1394.c
183
(void) strcat(str, tmp);
usr/src/cmd/mdb/common/modules/s1394/s1394.c
187
(void) strcat(str, " | Local OHCI Card\n");
usr/src/cmd/mdb/common/modules/s1394/s1394.c
190
(void) strcat(str, " | Link off\n");
usr/src/cmd/mdb/common/modules/s1394/s1394.c
195
(void) strcat(str, tmp);
usr/src/cmd/mdb/common/modules/s1394/s1394.c
198
(void) strcat(str, " | ????????????????\n");
usr/src/cmd/mdb/common/modules/s1394/s1394.c
200
mdb_printf("%s", str);
usr/src/cmd/mdb/common/modules/smartpqi/smartpqi.c
356
char str[40];
usr/src/cmd/mdb/common/modules/smartpqi/smartpqi.c
378
(void) strncpy(str, (char *)(dev->pd_vendor), sizeof (dev->pd_vendor));
usr/src/cmd/mdb/common/modules/smartpqi/smartpqi.c
379
str[sizeof (dev->pd_vendor)] = '\0';
usr/src/cmd/mdb/common/modules/smartpqi/smartpqi.c
380
mdb_printf("pd_vendor\t\t\t\t%s\n", str);
usr/src/cmd/mdb/common/modules/smartpqi/smartpqi.c
381
(void) strncpy(str, (char *)(dev->pd_model), sizeof (dev->pd_model));
usr/src/cmd/mdb/common/modules/smartpqi/smartpqi.c
382
str[sizeof (dev->pd_model)] = '\0';
usr/src/cmd/mdb/common/modules/smartpqi/smartpqi.c
383
mdb_printf("pd_model\t\t\t\t%s\n", str);
usr/src/cmd/mdb/common/modules/stmf_sbd/stmf_sbd.c
287
stmf_sbd_getstr(uintptr_t addr, char *str) {
usr/src/cmd/mdb/common/modules/stmf_sbd/stmf_sbd.c
288
if ((addr == 0) || (mdb_readstr(str, STMF_SBD_STR_MAX, addr) == -1))
usr/src/cmd/mdb/common/modules/stmf_sbd/stmf_sbd.c
289
str = NULL;
usr/src/cmd/mdb/common/modules/stmf_sbd/stmf_sbd.c
290
return (str);
usr/src/cmd/mdb/common/modules/stmf_sbd/stmf_sbd.c
297
char str[STMF_SBD_STR_MAX];
usr/src/cmd/mdb/common/modules/stmf_sbd/stmf_sbd.c
306
stmf_sbd_getstr((uintptr_t)slu->sl_name, str));
usr/src/cmd/mdb/common/modules/stmf_sbd/stmf_sbd.c
308
stmf_sbd_getstr((uintptr_t)slu->sl_alias, str));
usr/src/cmd/mdb/common/modules/stmf_sbd/stmf_sbd.c
311
stmf_sbd_getstr((uintptr_t)slu->sl_meta_filename, str));
usr/src/cmd/mdb/common/modules/stmf_sbd/stmf_sbd.c
314
stmf_sbd_getstr((uintptr_t)slu->sl_data_filename, str));
usr/src/cmd/mdb/common/modules/stmf_sbd/stmf_sbd.c
316
stmf_sbd_getstr((uintptr_t)slu->sl_mgmt_url, str));
usr/src/cmd/mdb/intel/modules/mdb_kb/mdb_kb.c
650
char *str = mdb_alloc(1024, UM_SLEEP);
usr/src/cmd/mdb/intel/modules/mdb_kb/mdb_kb.c
654
if (xkb_read(xkb, addr + i, &str[i], 1) != 1) {
usr/src/cmd/mdb/intel/modules/mdb_kb/mdb_kb.c
655
mdb_free(str, 1024);
usr/src/cmd/mdb/intel/modules/mdb_kb/mdb_kb.c
659
if (str[i] == '\0')
usr/src/cmd/mdb/intel/modules/mdb_kb/mdb_kb.c
664
mdb_free(str, 1024);
usr/src/cmd/mdb/intel/modules/mdb_kb/mdb_kb.c
668
return (str);
usr/src/cmd/modload/drvsubr.c
2156
check_space_within_quote(char *str)
usr/src/cmd/modload/drvsubr.c
2162
len = strlen(str);
usr/src/cmd/modload/drvsubr.c
2163
for (i = 0; i < len; i++, str++) {
usr/src/cmd/modload/drvsubr.c
2164
if (*str == '"') {
usr/src/cmd/modload/drvsubr.c
2169
} else if (*str == ' ' && quoted)
usr/src/cmd/modload/plcysubr.c
513
add2str(char **dstp, const char *str, size_t *sz)
usr/src/cmd/modload/plcysubr.c
516
size_t len = strlen(p) + strlen(str) + 1;
usr/src/cmd/modload/plcysubr.c
528
(void) strcat(p, str);
usr/src/cmd/mpathadm/mpathadm.h
78
MP_LOAD_BALANCE_TYPE getLbValueFromString(char *str);
usr/src/cmd/msgfmt/gnu_check.c
277
check_format(struct entry *id, struct entry *str, int is_c_format)
usr/src/cmd/msgfmt/gnu_check.c
302
msgid = id->str;
usr/src/cmd/msgfmt/gnu_check.c
304
msgstr = str->str;
usr/src/cmd/msgfmt/gnu_check.c
315
str_len = str->len;
usr/src/cmd/msgfmt/gnu_check.c
316
str_num = str->num;
usr/src/cmd/msgfmt/gnu_check.c
377
for (i = 0; i < str->no; i++) {
usr/src/cmd/msgfmt/gnu_check.c
378
p = str->pos + i;
usr/src/cmd/msgfmt/gnu_check.c
467
pstr_norm = (char **)Xcalloc(str->no, sizeof (char *));
usr/src/cmd/msgfmt/gnu_check.c
468
pstr_fmt = (int *)Xcalloc(str->no, sizeof (int));
usr/src/cmd/msgfmt/gnu_check.c
469
for (i = 0; i < str->no; i++) {
usr/src/cmd/msgfmt/gnu_check.c
470
p = str->pos + i;
usr/src/cmd/msgfmt/gnu_check.c
506
for (i = 0; i < str->no; i++) {
usr/src/cmd/msgfmt/gnu_check.c
507
p = str->pos + i;
usr/src/cmd/msgfmt/gnu_handle.c
324
handle_message(struct entry *id, struct entry *str)
usr/src/cmd/msgfmt/gnu_handle.c
348
hash_val = hashpjw(id->str);
usr/src/cmd/msgfmt/gnu_handle.c
349
dupmsg = search_msg(cur_catalog, id->str, hash_val);
usr/src/cmd/msgfmt/gnu_handle.c
352
if ((dupmsg->str_len == str->len) &&
usr/src/cmd/msgfmt/gnu_handle.c
353
(memcmp(dupmsg->str, str->str, str->len) == 0)) {
usr/src/cmd/msgfmt/gnu_handle.c
360
free(id->str);
usr/src/cmd/msgfmt/gnu_handle.c
363
free(str->str);
usr/src/cmd/msgfmt/gnu_handle.c
364
if (str->pos)
usr/src/cmd/msgfmt/gnu_handle.c
365
free(str->pos);
usr/src/cmd/msgfmt/gnu_handle.c
376
free(id->str);
usr/src/cmd/msgfmt/gnu_handle.c
379
free(str->str);
usr/src/cmd/msgfmt/gnu_handle.c
380
if (str->pos)
usr/src/cmd/msgfmt/gnu_handle.c
381
free(str->pos);
usr/src/cmd/msgfmt/gnu_handle.c
390
free(id->str);
usr/src/cmd/msgfmt/gnu_handle.c
393
free(str->str);
usr/src/cmd/msgfmt/gnu_handle.c
394
if (str->pos)
usr/src/cmd/msgfmt/gnu_handle.c
395
free(str->pos);
usr/src/cmd/msgfmt/gnu_handle.c
400
if (str->len == str->no) {
usr/src/cmd/msgfmt/gnu_handle.c
403
free(id->str);
usr/src/cmd/msgfmt/gnu_handle.c
406
free(str->str);
usr/src/cmd/msgfmt/gnu_handle.c
407
if (str->pos)
usr/src/cmd/msgfmt/gnu_handle.c
408
free(str->pos);
usr/src/cmd/msgfmt/gnu_handle.c
422
charset = strstr(str->str, CHARSET_STR);
usr/src/cmd/msgfmt/gnu_handle.c
426
id->num, cur_po, str->num);
usr/src/cmd/msgfmt/gnu_handle.c
445
nplurals = strstr(str->str, NPLURALS_STR);
usr/src/cmd/msgfmt/gnu_handle.c
461
check_format(id, str, next_entry_is_c_format);
usr/src/cmd/msgfmt/gnu_handle.c
465
if (str->pos)
usr/src/cmd/msgfmt/gnu_handle.c
466
free(str->pos);
usr/src/cmd/msgfmt/gnu_handle.c
473
msg[nmsg].id = id->str;
usr/src/cmd/msgfmt/gnu_handle.c
475
msg[nmsg].str = str->str;
usr/src/cmd/msgfmt/gnu_handle.c
476
msg[nmsg].str_len = str->len;
usr/src/cmd/msgfmt/gnu_hash.c
41
hashpjw(const char *str)
usr/src/cmd/msgfmt/gnu_hash.c
46
for (p = str; *p; p++) {
usr/src/cmd/msgfmt/gnu_lex.c
394
yylval.str = buf;
usr/src/cmd/msgfmt/gnu_lex.c
439
yylval.str = buf;
usr/src/cmd/msgfmt/gnu_lex.c
465
yylval.str = buf;
usr/src/cmd/msgfmt/gnu_msgfmt.h
76
char *str; /* string */
usr/src/cmd/msgfmt/gnu_msgfmt.h
83
char *str; /* msgstr + (msgstr[n]) */
usr/src/cmd/msgfmt/gnu_msgs.c
153
(void) memcpy(strs + str_off, m[i].str, m[i].str_len);
usr/src/cmd/msgfmt/gnu_msgs.c
157
free(m[i].str);
usr/src/cmd/msgfmt/gnu_msgs_rev.c
158
(void) memcpy(strs + str_off, m[i].str, m[i].str_len);
usr/src/cmd/msgfmt/gnu_msgs_rev.c
162
free(m[i].str);
usr/src/cmd/msgfmt/gnu_po.y
116
och1.str = id_str;
usr/src/cmd/msgfmt/gnu_po.y
143
$$.str = $1;
usr/src/cmd/msgfmt/gnu_po.y
149
char *str;
usr/src/cmd/msgfmt/gnu_po.y
158
str = (char *)Xmalloc(len + 1);
usr/src/cmd/msgfmt/gnu_po.y
159
(void) memcpy(str, $1.str, len1);
usr/src/cmd/msgfmt/gnu_po.y
160
(void) memcpy(str + len1, $2, len2 + 1);
usr/src/cmd/msgfmt/gnu_po.y
163
$$.str = str;
usr/src/cmd/msgfmt/gnu_po.y
194
$$.str = plural_str;
usr/src/cmd/msgfmt/gnu_po.y
216
$$.str = $5.str;
usr/src/cmd/msgfmt/gnu_po.y
35
char *str;
usr/src/cmd/msgfmt/gnu_po.y
46
%token <str> STR
usr/src/cmd/msgfmt/gnu_po.y
47
%token <str> COMMENT
usr/src/cmd/msgfmt/gnu_po.y
48
%token <str> SYMBOL
usr/src/cmd/msgfmt/gnu_po.y
79
och1.str = $2.str;
usr/src/cmd/msgfmt/gnu_po.y
85
och2.str = $4.str;
usr/src/cmd/msgfmt/util.c
106
Xstrdup(const char *str)
usr/src/cmd/msgfmt/util.c
110
t = strdup(str);
usr/src/cmd/msgfmt/xgettext.c
1079
tmp_excl->exstr->str = strdup(line);
usr/src/cmd/msgfmt/xgettext.c
1094
tail->next->str = strdup(line);
usr/src/cmd/msgfmt/xgettext.c
1106
printf("%s###\n", tail->str);
usr/src/cmd/msgfmt/xgettext.c
1142
} else if (p->str == NULL) {
usr/src/cmd/msgfmt/xgettext.c
1144
} else if (p->str[*m] == '\0') {
usr/src/cmd/msgfmt/xgettext.c
1164
if (p->str[*m] != '\\') {
usr/src/cmd/msgfmt/xgettext.c
1165
*c = p->str[*m];
usr/src/cmd/msgfmt/xgettext.c
1173
ch = p->str[*m];
usr/src/cmd/msgfmt/xgettext.c
1210
oct = p->str[*m];
usr/src/cmd/msgfmt/xgettext.c
1230
while (p->str[*m] == '0') {
usr/src/cmd/msgfmt/xgettext.c
1235
hex = p->str[*m];
usr/src/cmd/msgfmt/xgettext.c
1258
*c = p->str[*m];
usr/src/cmd/msgfmt/xgettext.c
1310
isduplicate(struct element_st *list, struct strlist_st *str)
usr/src/cmd/msgfmt/xgettext.c
1321
if (msgidcmp(p->msgid, str) == 0) {
usr/src/cmd/msgfmt/xgettext.c
1342
tmp_str->str = strdup(curr_line);
usr/src/cmd/msgfmt/xgettext.c
1367
tmp_str->str = strdup(qstring_buf);
usr/src/cmd/msgfmt/xgettext.c
1450
free(p->str);
usr/src/cmd/msgfmt/xgettext.c
1492
first = strdup(p->str);
usr/src/cmd/msgfmt/xgettext.c
1759
comment_tail->str = strdup(line+2);
usr/src/cmd/msgfmt/xgettext.c
1769
comment_tail->str = strdup(line+2);
usr/src/cmd/msgfmt/xgettext.c
1786
msgid_tail->str = strdup(line);
usr/src/cmd/msgfmt/xgettext.c
1792
msgstr_tail->str = strdup(line);
usr/src/cmd/msgfmt/xgettext.c
1802
msgid_tail->str = strdup(line);
usr/src/cmd/msgfmt/xgettext.c
1807
msgstr_tail->str = strdup(line);
usr/src/cmd/msgfmt/xgettext.c
2048
p->fname, p->linenum, p->msgid->str);
usr/src/cmd/msgfmt/xgettext.c
2064
(void) fprintf(fp, "# %s\n", p->str);
usr/src/cmd/msgfmt/xgettext.c
2088
(void) fprintf(fp, "msgid \"%s\"\n", p->str);
usr/src/cmd/msgfmt/xgettext.c
2094
(void) fprintf(fp, " \"%s\"\n", q->str);
usr/src/cmd/msgfmt/xgettext.c
2114
prefix, p->str, suffix);
usr/src/cmd/msgfmt/xgettext.c
2118
prefix, p->str);
usr/src/cmd/msgfmt/xgettext.c
2124
p->str, suffix);
usr/src/cmd/msgfmt/xgettext.c
2127
(void) fprintf(fp, "msgstr \"%s\"\n", p->str);
usr/src/cmd/msgfmt/xgettext.c
2135
(void) fprintf(fp, " \"%s\"\n", q->str);
usr/src/cmd/msgfmt/xgettext.c
2199
tmp->str = NULL;
usr/src/cmd/msgfmt/xgettext.c
2267
if ((q->msgid != NULL) && (q->msgid->str != NULL)) {
usr/src/cmd/msgfmt/xgettext.c
2268
printf(" msgid = <%s>\n", q->msgid->str);
usr/src/cmd/msgfmt/xgettext.c
2271
printf(" <%s>\n", r->str);
usr/src/cmd/msgfmt/xgettext.c
2277
if ((q->msgstr != NULL) && (q->msgstr->str != NULL)) {
usr/src/cmd/msgfmt/xgettext.c
2278
printf(" msgstr= <%s>\n", q->msgstr->str);
usr/src/cmd/msgfmt/xgettext.c
2281
printf(" <%s>\n", r->str);
usr/src/cmd/msgfmt/xgettext.c
2291
printf(" comment = <%s>\n", q->comment->str);
usr/src/cmd/msgfmt/xgettext.c
2294
printf(" <%s>\n", r->str);
usr/src/cmd/msgfmt/xgettext.c
54
char *str;
usr/src/cmd/msgfmt/xgettext.c
843
copy_strlist_to_str(char *str, struct strlist_st *strlist)
usr/src/cmd/msgfmt/xgettext.c
847
str[0] = '\0';
usr/src/cmd/msgfmt/xgettext.c
852
if (p->str != NULL) {
usr/src/cmd/msgfmt/xgettext.c
853
lstrcat(str, p->str);
usr/src/cmd/ndmpd/ndmp/ndmpd_data.c
1618
char str[8];
usr/src/cmd/ndmpd/ndmp/ndmpd_data.c
1644
(void) strlcpy(str, "backup", 8);
usr/src/cmd/ndmpd/ndmp/ndmpd_data.c
1665
(void) strlcpy(str, "recover", 8);
usr/src/cmd/ndmpd/ndmp/ndmpd_data.c
1687
NDMP_LOG(LOG_DEBUG, "Sending data_start_%s_v3 reply", str);
usr/src/cmd/ndmpd/ndmp/ndmpd_data.c
1700
str, err);
usr/src/cmd/ndmpd/ndmp/ndmpd_data.c
1714
"'zfs' %s starting\n", str);
usr/src/cmd/ndmpd/ndmp/ndmpd_dtime.c
119
lookup(char *str)
usr/src/cmd/ndmpd/ndmp/ndmpd_dtime.c
123
if (!str)
usr/src/cmd/ndmpd/ndmp/ndmpd_dtime.c
126
for (cp = months, cp2 = str; *cp != '\0'; cp += 3)
usr/src/cmd/ndmpd/ndmp/ndmpd_dtime.c
142
unctime(char *str, time_t *t)
usr/src/cmd/ndmpd/ndmp/ndmpd_dtime.c
147
if (!str || !t)
usr/src/cmd/ndmpd/ndmp/ndmpd_dtime.c
151
(void) strlcpy(dbuf, str, sizeof (dbuf) - 1);
usr/src/cmd/ndmpd/ndmp/ndmpd_zfs.c
1005
char str[8];
usr/src/cmd/ndmpd/ndmp/ndmpd_zfs.c
1008
(void) strlcpy(str, "backup", 8);
usr/src/cmd/ndmpd/ndmp/ndmpd_zfs.c
1010
(void) strlcpy(str, "recover", 8);
usr/src/cmd/ndmpd/ndmp/ndmpd_zfs.c
1013
str);
usr/src/cmd/ndmpd/tlm/tlm_util.c
214
match(char *patn, char *str)
usr/src/cmd/ndmpd/tlm/tlm_util.c
219
return (*str == 0);
usr/src/cmd/ndmpd/tlm/tlm_util.c
222
if (*str != 0) {
usr/src/cmd/ndmpd/tlm/tlm_util.c
223
str++;
usr/src/cmd/ndmpd/tlm/tlm_util.c
234
while (*str) {
usr/src/cmd/ndmpd/tlm/tlm_util.c
235
if (match(patn, str))
usr/src/cmd/ndmpd/tlm/tlm_util.c
237
str++;
usr/src/cmd/ndmpd/tlm/tlm_util.c
242
if (*str != *patn)
usr/src/cmd/ndmpd/tlm/tlm_util.c
244
str++;
usr/src/cmd/ndmpd/tlm/tlm_util.c
255
match_ci(char *patn, char *str)
usr/src/cmd/ndmpd/tlm/tlm_util.c
262
if ((strcmp(str, ".") == 0) || (strcmp(str, "..") == 0))
usr/src/cmd/ndmpd/tlm/tlm_util.c
264
if (strchr(str, '.') == 0)
usr/src/cmd/ndmpd/tlm/tlm_util.c
271
return (*str == 0);
usr/src/cmd/ndmpd/tlm/tlm_util.c
274
if (*str != 0) {
usr/src/cmd/ndmpd/tlm/tlm_util.c
275
str++;
usr/src/cmd/ndmpd/tlm/tlm_util.c
286
while (*str) {
usr/src/cmd/ndmpd/tlm/tlm_util.c
287
if (match_ci(patn, str))
usr/src/cmd/ndmpd/tlm/tlm_util.c
289
str++;
usr/src/cmd/ndmpd/tlm/tlm_util.c
294
if (*str != *patn) {
usr/src/cmd/ndmpd/tlm/tlm_util.c
295
int c1 = *str;
usr/src/cmd/ndmpd/tlm/tlm_util.c
303
str++;
usr/src/cmd/nlsadmin/nlsadmin.c
1322
nexttok(char *str, char *delim)
usr/src/cmd/nlsadmin/nlsadmin.c
1328
p = (str == NULL) ? savep : str ;
usr/src/cmd/nscd/cache.c
1129
nsc_lookup_no_cache(nsc_lookup_args_t *largs, const char *str)
usr/src/cmd/nscd/cache.c
1135
(me, "%s: name service lookup (bypassing cache)\n", str);
usr/src/cmd/nscd/cache.c
1139
(me, "%s: name service lookup status = %d\n", str, status);
usr/src/cmd/nscd/cache.c
344
#define _NSC_ELF_STR_GETHASH(func, str, htsize, hval) \
usr/src/cmd/nscd/cache.c
346
while (*str) { \
usr/src/cmd/nscd/cache.c
348
hval = (hval << 4) + func(*str++); \
usr/src/cmd/nscd/cache.c
391
const char *str = key;
usr/src/cmd/nscd/cache.c
393
if (str == NULL)
usr/src/cmd/nscd/cache.c
397
hval += str[i];
usr/src/cmd/nscd/cache.h
91
#define check_null(str) (str)?str:"<null>"
usr/src/cmd/nscd/nscd_cfgfile.c
136
str = fields[1];
usr/src/cmd/nscd/nscd_cfgfile.c
141
str = fields[2];
usr/src/cmd/nscd/nscd_cfgfile.c
178
rc = _nscd_cfg_str_to_data(pdesc, str, &u.data,
usr/src/cmd/nscd/nscd_cfgfile.c
96
char *dbname, *str;
usr/src/cmd/nscd/nscd_config.c
2273
char *str,
usr/src/cmd/nscd/nscd_config.c
2285
if (desc == NULL || str == NULL || data == NULL) {
usr/src/cmd/nscd/nscd_config.c
2289
desc, str, data, data_p);
usr/src/cmd/nscd/nscd_config.c
2313
if (strcmp(str, NSCD_NULL) == 0)
usr/src/cmd/nscd/nscd_config.c
2317
if (str[0] == '"') {
usr/src/cmd/nscd/nscd_config.c
2318
c = str + strlen(str) - 1;
usr/src/cmd/nscd/nscd_config.c
2321
*(char **)data_p = str + 1;
usr/src/cmd/nscd/nscd_config.c
2323
*(char **)data_p = str;
usr/src/cmd/nscd/nscd_config.c
2329
if (str == NULL) {
usr/src/cmd/nscd/nscd_config.c
2349
if (strcasecmp(str, "yes") == 0)
usr/src/cmd/nscd/nscd_config.c
2351
else if (strcasecmp(str, "no") == 0)
usr/src/cmd/nscd/nscd_config.c
2356
str, desc->id.name);
usr/src/cmd/nscd/nscd_config.c
2373
*(int *)data = (int)strtol(str, NULL, 10);
usr/src/cmd/nscd/nscd_config.c
2378
str, desc->id.name);
usr/src/cmd/nscd/nscd_config.c
2394
bitmap = (nscd_cfg_bitmap_t)strtol(str, NULL, 10);
usr/src/cmd/nscd/nscd_config.c
2399
str, desc->id.name);
usr/src/cmd/nscd/nscd_config.h
614
char *str,
usr/src/cmd/nscd/nscd_db.h
221
const char *str,
usr/src/cmd/nscd/nscd_db.h
228
const char *str,
usr/src/cmd/nscd/nscd_db.h
236
const char *str,
usr/src/cmd/nscd/nscd_dbimpl.c
118
const char *str,
usr/src/cmd/nscd/nscd_dbimpl.c
129
if (strcasecmp(str, db_entry->name) == 0) {
usr/src/cmd/nscd/nscd_dbimpl.c
162
const char *str,
usr/src/cmd/nscd/nscd_dbimpl.c
169
if (db == NULL || str == NULL)
usr/src/cmd/nscd/nscd_dbimpl.c
172
hash = calc_hash(str);
usr/src/cmd/nscd/nscd_dbimpl.c
175
hash_p = scan_hash(type, str, idx_p, option, id_num);
usr/src/cmd/nscd/nscd_dbimpl.c
190
const char *str,
usr/src/cmd/nscd/nscd_dbimpl.c
201
hash = calc_hash(str);
usr/src/cmd/nscd/nscd_dbimpl.c
221
if (strcasecmp(db_entry->name, str) != 0)
usr/src/cmd/nscd/nscd_dbimpl.c
235
if (strcasecmp(db_entry->name, str) != 0)
usr/src/cmd/nscd/nscd_dbimpl.c
287
const char *str,
usr/src/cmd/nscd/nscd_dbimpl.c
298
hash = calc_hash(str);
usr/src/cmd/nscd/nscd_dbimpl.c
310
if (strcasecmp(db_entry->name, str) != 0)
usr/src/cmd/nscd/nscd_dbimpl.c
88
const char *str)
usr/src/cmd/nscd/nscd_dbimpl.c
93
while (*str != '\0') {
usr/src/cmd/nscd/nscd_dbimpl.c
96
ch = (char)*str++;
usr/src/cmd/nvmeadm/nvmeadm.c
1820
const char *str;
usr/src/cmd/nvmeadm/nvmeadm.c
1822
while ((str = strsep(&scope, ",")) != NULL) {
usr/src/cmd/nvmeadm/nvmeadm.c
1823
if (strcasecmp(str, "nvm") == 0) {
usr/src/cmd/nvmeadm/nvmeadm.c
1825
} else if (strcasecmp(str, "ns") == 0 ||
usr/src/cmd/nvmeadm/nvmeadm.c
1826
strcasecmp(str, "namespace") == 0) {
usr/src/cmd/nvmeadm/nvmeadm.c
1828
} else if (strcasecmp(str, "ctrl") == 0 ||
usr/src/cmd/nvmeadm/nvmeadm.c
1829
strcasecmp(str, "controller") == 0) {
usr/src/cmd/nvmeadm/nvmeadm.c
1834
"'controller'", str);
usr/src/cmd/nvmeadm/nvmeadm.c
3606
get_fw_offsetb(char *str)
usr/src/cmd/nvmeadm/nvmeadm.c
3612
offsetb = strtoll(str, &valend, 0);
usr/src/cmd/nvmeadm/nvmeadm.c
3737
get_slot_number(char *str)
usr/src/cmd/nvmeadm/nvmeadm.c
3743
slot = strtoll(str, &valend, 0);
usr/src/cmd/nvmeadm/nvmeadm_nsmgmt.c
36
nvmeadm_parse_units(const char *str, const char *desc)
usr/src/cmd/nvmeadm/nvmeadm_nsmgmt.c
43
l = strtoull(str, &eptr, 0);
usr/src/cmd/nvmeadm/nvmeadm_nsmgmt.c
45
err(-1, "failed to parse %s: %s", desc, str);
usr/src/cmd/nvmeadm/nvmeadm_nsmgmt.c
66
"uint64_t", desc, str);
usr/src/cmd/nvmeadm/nvmeadm_print.c
2137
char str[NVME_FWVER_SZ + sizeof (" (read-only)")];
usr/src/cmd/nvmeadm/nvmeadm_print.c
2146
(void) snprintf(str, sizeof (str), "%.*s%s",
usr/src/cmd/nvmeadm/nvmeadm_print.c
2149
nvme_print_str(2, "Firmware Revision for Slot", 1, str, sizeof (str));
usr/src/cmd/nvmeadm/nvmeadm_print.c
263
nvme_strlen(const char *str, int len)
usr/src/cmd/nvmeadm/nvmeadm_print.c
268
while (str[--len] == ' ')
usr/src/cmd/oamuser/lib/vgroup.c
101
while (*str != '\0') {
usr/src/cmd/oamuser/lib/vgroup.c
102
if (!isdigit((unsigned char)*str))
usr/src/cmd/oamuser/lib/vgroup.c
104
str++;
usr/src/cmd/oamuser/lib/vgroup.c
99
isalldigit(char *str)
usr/src/cmd/oamuser/user/usermod.c
111
strcpmalloc(str)
usr/src/cmd/oamuser/user/usermod.c
112
char *str;
usr/src/cmd/oamuser/user/usermod.c
114
if (str == NULL)
usr/src/cmd/oamuser/user/usermod.c
117
return (strdup(str));
usr/src/cmd/oawk/lib.c
432
toeuccode(str)
usr/src/cmd/oawk/lib.c
433
wchar_t *str;
usr/src/cmd/oawk/lib.c
437
(void) wcstombs(euccode, str, RECSIZE);
usr/src/cmd/oawk/run.c
437
wchar_t *buf, *ep, *str;
usr/src/cmd/oawk/run.c
529
str = getsval(x);
usr/src/cmd/oawk/run.c
539
str = tbuf;
usr/src/cmd/oawk/run.c
545
if (p + wslen(str) + wslen(s) + 1 >= ep) {
usr/src/cmd/oawk/run.c
550
newlen = oldlen + wslen(str) + RECSIZE;
usr/src/cmd/oawk/run.c
559
wsprintf(p, fmt, str);
usr/src/cmd/oawk/run.c
561
wscpy(p, str);
usr/src/cmd/pbind/pbind.c
369
parse_cpu(char *str)
usr/src/cmd/pbind/pbind.c
374
cpu = strtol(str, &endstr, 10);
usr/src/cmd/pcidb/pcidb.c
740
char *str = strdup(argv[i]);
usr/src/cmd/pcidb/pcidb.c
742
if (str == NULL) {
usr/src/cmd/pcidb/pcidb.c
747
if (strncmp(str, "pciexclass,", 11) == 0) {
usr/src/cmd/pcidb/pcidb.c
749
str + 11, argv[i]);
usr/src/cmd/pcidb/pcidb.c
750
} else if (strncmp(str, "pciclass,", 9) == 0) {
usr/src/cmd/pcidb/pcidb.c
751
pcidb_parse_class_filter(&walkp->pw_filters[i], str + 9,
usr/src/cmd/pcidb/pcidb.c
753
} else if (strncmp(str, "pciex", 5) == 0) {
usr/src/cmd/pcidb/pcidb.c
755
str + 5, argv[i]);
usr/src/cmd/pcidb/pcidb.c
756
} else if (strncmp(str, "pci", 3) == 0) {
usr/src/cmd/pcidb/pcidb.c
758
str + 3, argv[i]);
usr/src/cmd/pcidb/pcidb.c
760
errx(EXIT_FAILURE, "invalid filter string: %s", str);
usr/src/cmd/pcidb/pcidb.c
763
free(str);
usr/src/cmd/pcidr/pcidr.c
297
parse_macros(char *const str, int *lenp)
usr/src/cmd/pcidr/pcidr.c
308
for (beg = str, i = 0; beg != NULL; i++) {
usr/src/cmd/pcidr/pcidr.c
323
for (beg = str, i = 0; i < *lenp; i++) {
usr/src/cmd/pcidr/plugins/default/pcidr_cfga.c
158
char *str;
usr/src/cmd/pcidr/plugins/default/pcidr_cfga.c
167
str = pcidr_cfga_stat_name(datap->ap_r_state);
usr/src/cmd/pcidr/plugins/default/pcidr_cfga.c
168
if (str == NULL)
usr/src/cmd/pcidr/plugins/default/pcidr_cfga.c
169
str = "(unrecognized cfga_stat_t value!)";
usr/src/cmd/pcidr/plugins/default/pcidr_cfga.c
170
dprint(lvl, "%sAP receptacle state = %s\n", prestr, str);
usr/src/cmd/pcidr/plugins/default/pcidr_cfga.c
172
str = pcidr_cfga_stat_name(datap->ap_o_state);
usr/src/cmd/pcidr/plugins/default/pcidr_cfga.c
173
if (str == NULL)
usr/src/cmd/pcidr/plugins/default/pcidr_cfga.c
174
str = "(unrecognized cfga_stat_t value!)";
usr/src/cmd/pcidr/plugins/default/pcidr_cfga.c
175
dprint(lvl, "%sAP occupant state = %s\n", prestr, str);
usr/src/cmd/pcidr/plugins/default/pcidr_cfga.c
177
str = pcidr_cfga_cond_name(datap->ap_cond);
usr/src/cmd/pcidr/plugins/default/pcidr_cfga.c
178
if (str == NULL)
usr/src/cmd/pcidr/plugins/default/pcidr_cfga.c
179
str = "(unrecognized cfga_cond_t value!)";
usr/src/cmd/pcidr/plugins/default/pcidr_cfga.c
180
dprint(lvl, "%sAP condition = %s\n", prestr, str);
usr/src/cmd/pcidr/plugins/default/pcidr_cfga.c
184
str = ctime(&datap->ap_status_time);
usr/src/cmd/pcidr/plugins/default/pcidr_cfga.c
185
str[strlen(str) - 1] = '\0'; /* get rid of newline */
usr/src/cmd/pcidr/plugins/default/pcidr_cfga.c
187
datap->ap_status_time, str);
usr/src/cmd/pcidr/plugins/default/pcidr_cfga.c
233
char *cmdnm, *cfga_errstr, *apid, *str;
usr/src/cmd/pcidr/plugins/default/pcidr_cfga.c
307
str = pcidr_cfga_err_name(rv);
usr/src/cmd/pcidr/plugins/default/pcidr_cfga.c
308
if (str == NULL)
usr/src/cmd/pcidr/plugins/default/pcidr_cfga.c
309
str = "unrecognized rv!";
usr/src/cmd/pcidr/plugins/default/pcidr_cfga.c
310
dprint(DDEBUG, ": rv = %d (%s)", rv, str);
usr/src/cmd/pcidr/plugins/default/pcidr_plugin.c
51
char *str, *apid;
usr/src/cmd/pcidr/plugins/default/pcidr_plugin.c
72
str = pcidr_cfga_err_name(rv);
usr/src/cmd/pcidr/plugins/default/pcidr_plugin.c
73
if (str == NULL)
usr/src/cmd/pcidr/plugins/default/pcidr_plugin.c
74
str = "unrecognized rv!";
usr/src/cmd/pcidr/plugins/default/pcidr_plugin.c
76
"failed: rv = %d (%s)", fn, dr.dr_ap_id, rv, str);
usr/src/cmd/pcieadm/pcieadm_cfgspace.c
196
pcieadm_strfilt_push(pcieadm_cfgspace_walk_t *walkp, const char *str)
usr/src/cmd/pcieadm/pcieadm_cfgspace.c
207
filt->pstr_str = str;
usr/src/cmd/pcieadm/pcieadm_cfgspace.c
209
len = strlcat(filt->pstr_curgen, str,
usr/src/cmd/pcieadm/pcieadm_cfgspace.c
213
"%s.%s", walkp->pcw_filt->pstr_curgen, str);
usr/src/cmd/pcieadm/pcieadm_cfgspace.c
219
"appending %s", str);
usr/src/cmd/pcieadm/pcieadm_cfgspace.c
226
pcieadm_cfgspace_filter(pcieadm_cfgspace_walk_t *walkp, const char *str)
usr/src/cmd/pcieadm/pcieadm_cfgspace.c
235
if (str == NULL) {
usr/src/cmd/pcieadm/pcieadm_cfgspace.c
241
walkp->pcw_filt->pstr_curgen, str);
usr/src/cmd/pcieadm/pcieadm_cfgspace.c
243
len = snprintf(buf, sizeof (buf), "%s", str);
usr/src/cmd/pcieadm/pcieadm_cfgspace.c
488
const pcieadm_cfgspace_print_t *print, const char *str)
usr/src/cmd/pcieadm/pcieadm_cfgspace.c
500
pco.pco_strval = str;
usr/src/cmd/pcieadm/pcieadm_cfgspace.c
515
walkp->pcw_filt->pstr_curgen, print->pcp_short, str);
usr/src/cmd/pcieadm/pcieadm_cfgspace.c
517
(void) printf("%s: %s\n", print->pcp_human, str);
usr/src/cmd/pcieadm/pcieadm_cfgspace.c
638
const char *str = "reserved";
usr/src/cmd/pcieadm/pcieadm_cfgspace.c
642
str = strmap[i].psr_str;
usr/src/cmd/pcieadm/pcieadm_cfgspace.c
648
val, str);
usr/src/cmd/pcieadm/pcieadm_devs.c
124
const char *str;
usr/src/cmd/pcieadm/pcieadm_devs.c
255
str = pcieadm_speed2str(psdo->psdo_mspeed);
usr/src/cmd/pcieadm/pcieadm_devs.c
256
if (str == NULL) {
usr/src/cmd/pcieadm/pcieadm_devs.c
258
} else if (snprintf(buf, buflen, "%s GT/s", str) >= buflen) {
usr/src/cmd/pcieadm/pcieadm_devs.c
263
str = pcieadm_speed2str(psdo->psdo_cspeed);
usr/src/cmd/pcieadm/pcieadm_devs.c
264
if (str == NULL) {
usr/src/cmd/pcieadm/pcieadm_devs.c
266
} else if (snprintf(buf, buflen, "%s GT/s", str) >= buflen) {
usr/src/cmd/pcieadm/pcieadm_devs.c
273
const char *str;
usr/src/cmd/pcieadm/pcieadm_devs.c
275
str = pcieadm_speed2str(psdo->psdo_sspeeds[i]);
usr/src/cmd/pcieadm/pcieadm_devs.c
276
if (str == NULL) {
usr/src/cmd/pcieadm/pcieadm_devs.c
287
if (strlcat(buf, str, buflen) >= buflen) {
usr/src/cmd/pg/pg.c
1812
pg_strchr(char *str, wchar_t c)
usr/src/cmd/pg/pg.c
1814
while (*str) {
usr/src/cmd/pg/pg.c
1815
if (c == *str)
usr/src/cmd/pg/pg.c
1816
return (str);
usr/src/cmd/pg/pg.c
1817
str++;
usr/src/cmd/picl/plugins/sun4u/cherrystone/frutree/piclfrutree.c
674
add_ref_prop(picl_nodehdl_t nodeh, picl_nodehdl_t tmph, char *str)
usr/src/cmd/picl/plugins/sun4u/cherrystone/frutree/piclfrutree.c
680
if (str == NULL)
usr/src/cmd/picl/plugins/sun4u/cherrystone/frutree/piclfrutree.c
685
str, NULL, NULL);
usr/src/cmd/picl/plugins/sun4u/daktari/frutree/piclfrutree.c
768
add_ref_prop(picl_nodehdl_t nodeh, picl_nodehdl_t tmph, char *str)
usr/src/cmd/picl/plugins/sun4u/daktari/frutree/piclfrutree.c
774
if (str == NULL)
usr/src/cmd/picl/plugins/sun4u/daktari/frutree/piclfrutree.c
779
str, NULL, NULL);
usr/src/cmd/picl/plugins/sun4u/littleneck/frutree/piclfrutree.c
546
add_ref_prop(picl_nodehdl_t nodeh, picl_nodehdl_t tmph, char *str)
usr/src/cmd/picl/plugins/sun4u/littleneck/frutree/piclfrutree.c
552
if (str == NULL)
usr/src/cmd/picl/plugins/sun4u/littleneck/frutree/piclfrutree.c
557
str, NULL, NULL);
usr/src/cmd/picl/plugins/sun4u/lw2plus/fcal_leds/fc_led_parse.c
166
act_version(str *p_str, led_dtls_t *dtls)
usr/src/cmd/picl/plugins/sun4u/lw2plus/fcal_leds/fc_led_parse.c
191
get_cstr(str *p_str, cstr *p_cstr_res)
usr/src/cmd/picl/plugins/sun4u/lw2plus/fcal_leds/fc_led_parse.c
220
act_leds_board(str *p_str, led_dtls_t *dtls)
usr/src/cmd/picl/plugins/sun4u/lw2plus/fcal_leds/fc_led_parse.c
235
act_status_board(str *p_str, led_dtls_t *dtls)
usr/src/cmd/picl/plugins/sun4u/lw2plus/fcal_leds/fc_led_parse.c
250
act_disk_driver(str *p_str, led_dtls_t *dtls)
usr/src/cmd/picl/plugins/sun4u/lw2plus/fcal_leds/fc_led_parse.c
256
act_disk_parent(str *p_str, led_dtls_t *dtls)
usr/src/cmd/picl/plugins/sun4u/lw2plus/fcal_leds/fc_led_parse.c
262
act_unit_parent(str *p_str, led_dtls_t *dtls)
usr/src/cmd/picl/plugins/sun4u/lw2plus/fcal_leds/fc_led_parse.c
268
act_led_nodes(str *p_str, led_dtls_t *dtls)
usr/src/cmd/picl/plugins/sun4u/lw2plus/fcal_leds/fc_led_parse.c
282
act_n_disks(str *p_str, led_dtls_t *dtls)
usr/src/cmd/picl/plugins/sun4u/lw2plus/fcal_leds/fc_led_parse.c
337
get_assert(str *p_str, int *assert)
usr/src/cmd/picl/plugins/sun4u/lw2plus/fcal_leds/fc_led_parse.c
353
get_pnz(str *p_str, int *pnz)
usr/src/cmd/picl/plugins/sun4u/lw2plus/fcal_leds/fc_led_parse.c
369
act_asrt_pres(str *p_str, led_dtls_t *dtls)
usr/src/cmd/picl/plugins/sun4u/lw2plus/fcal_leds/fc_led_parse.c
375
act_asrt_fault(str *p_str, led_dtls_t *dtls)
usr/src/cmd/picl/plugins/sun4u/lw2plus/fcal_leds/fc_led_parse.c
381
act_led_on(str *p_str, led_dtls_t *dtls)
usr/src/cmd/picl/plugins/sun4u/lw2plus/fcal_leds/fc_led_parse.c
387
get_mask(str *p_str, int n_disks, int *p_intarray)
usr/src/cmd/picl/plugins/sun4u/lw2plus/fcal_leds/fc_led_parse.c
409
act_disk_present(str *p_str, led_dtls_t *dtls)
usr/src/cmd/picl/plugins/sun4u/lw2plus/fcal_leds/fc_led_parse.c
41
static int get_cstr(str *p_str, cstr *p_cstr_res);
usr/src/cmd/picl/plugins/sun4u/lw2plus/fcal_leds/fc_led_parse.c
415
act_disk_fault(str *p_str, led_dtls_t *dtls)
usr/src/cmd/picl/plugins/sun4u/lw2plus/fcal_leds/fc_led_parse.c
42
static int get_assert(str *p_str, int *assert);
usr/src/cmd/picl/plugins/sun4u/lw2plus/fcal_leds/fc_led_parse.c
421
act_led_id(str *p_str, led_dtls_t *dtls)
usr/src/cmd/picl/plugins/sun4u/lw2plus/fcal_leds/fc_led_parse.c
43
static int get_pnz(str *p_str, int *pnz);
usr/src/cmd/picl/plugins/sun4u/lw2plus/fcal_leds/fc_led_parse.c
44
static int get_mask(str *p_str, int n_disks, int *p_intarray);
usr/src/cmd/picl/plugins/sun4u/lw2plus/fcal_leds/fc_led_parse.c
455
act_slow_poll(str *p_str, led_dtls_t *dtls)
usr/src/cmd/picl/plugins/sun4u/lw2plus/fcal_leds/fc_led_parse.c
461
act_fast_poll(str *p_str, led_dtls_t *dtls)
usr/src/cmd/picl/plugins/sun4u/lw2plus/fcal_leds/fc_led_parse.c
467
act_relax_interval(str *p_str, led_dtls_t *dtls)
usr/src/cmd/picl/plugins/sun4u/lw2plus/fcal_leds/fc_led_parse.c
473
act_test_interval(str *p_str, led_dtls_t *dtls)
usr/src/cmd/picl/plugins/sun4u/lw2plus/fcal_leds/fc_led_parse.c
51
static int act_version(str *p_str, led_dtls_t *dtls);
usr/src/cmd/picl/plugins/sun4u/lw2plus/fcal_leds/fc_led_parse.c
52
static int act_leds_board(str *p_str, led_dtls_t *dtls);
usr/src/cmd/picl/plugins/sun4u/lw2plus/fcal_leds/fc_led_parse.c
53
static int act_status_board(str *p_str, led_dtls_t *dtls);
usr/src/cmd/picl/plugins/sun4u/lw2plus/fcal_leds/fc_led_parse.c
54
static int act_disk_driver(str *p_str, led_dtls_t *dtls);
usr/src/cmd/picl/plugins/sun4u/lw2plus/fcal_leds/fc_led_parse.c
55
static int act_n_disks(str *p_str, led_dtls_t *dtls);
usr/src/cmd/picl/plugins/sun4u/lw2plus/fcal_leds/fc_led_parse.c
56
static int act_asrt_pres(str *p_str, led_dtls_t *dtls);
usr/src/cmd/picl/plugins/sun4u/lw2plus/fcal_leds/fc_led_parse.c
57
static int act_asrt_fault(str *p_str, led_dtls_t *dtls);
usr/src/cmd/picl/plugins/sun4u/lw2plus/fcal_leds/fc_led_parse.c
58
static int act_led_on(str *p_str, led_dtls_t *dtls);
usr/src/cmd/picl/plugins/sun4u/lw2plus/fcal_leds/fc_led_parse.c
59
static int act_disk_present(str *p_str, led_dtls_t *dtls);
usr/src/cmd/picl/plugins/sun4u/lw2plus/fcal_leds/fc_led_parse.c
60
static int act_disk_fault(str *p_str, led_dtls_t *dtls);
usr/src/cmd/picl/plugins/sun4u/lw2plus/fcal_leds/fc_led_parse.c
61
static int act_led_id(str *p_str, led_dtls_t *dtls);
usr/src/cmd/picl/plugins/sun4u/lw2plus/fcal_leds/fc_led_parse.c
62
static int act_slow_poll(str *p_str, led_dtls_t *dtls);
usr/src/cmd/picl/plugins/sun4u/lw2plus/fcal_leds/fc_led_parse.c
63
static int act_fast_poll(str *p_str, led_dtls_t *dtls);
usr/src/cmd/picl/plugins/sun4u/lw2plus/fcal_leds/fc_led_parse.c
64
static int act_relax_interval(str *p_str, led_dtls_t *dtls);
usr/src/cmd/picl/plugins/sun4u/lw2plus/fcal_leds/fc_led_parse.c
65
static int act_test_interval(str *p_str, led_dtls_t *dtls);
usr/src/cmd/picl/plugins/sun4u/lw2plus/fcal_leds/fc_led_parse.c
66
static int act_disk_parent(str *p_str, led_dtls_t *dtls);
usr/src/cmd/picl/plugins/sun4u/lw2plus/fcal_leds/fc_led_parse.c
67
static int act_unit_parent(str *p_str, led_dtls_t *dtls);
usr/src/cmd/picl/plugins/sun4u/lw2plus/fcal_leds/fc_led_parse.c
68
static int act_led_nodes(str *p_str, led_dtls_t *dtls);
usr/src/cmd/picl/plugins/sun4u/lw2plus/fcal_leds/fcal_leds.h
272
typedef int (*actfun_t)(str *p_str, led_dtls_t *dtls);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
250
find_label(char *str, char *label)
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
254
start = strchr(str, ' ');
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
62
#define ENV_DEBUG(str, id) printf("%s id %s\n", (str), (id))
usr/src/cmd/picl/plugins/sun4v/lib/snmp/asn1.c
172
asn_build_string(uchar_t *buf, size_t *bufsz_p, uchar_t id, uchar_t *str,
usr/src/cmd/picl/plugins/sun4v/lib/snmp/asn1.c
183
if (str) {
usr/src/cmd/picl/plugins/sun4v/lib/snmp/asn1.c
184
(void) memcpy(p, str, slen);
usr/src/cmd/picl/plugins/sun4v/lib/snmp/asn1.c
708
p = asn_parse_string(msg, varsz_p, &vp->val.str, &vp->val_len);
usr/src/cmd/picl/plugins/sun4v/lib/snmp/pdu.c
272
vp->val.str = NULL;
usr/src/cmd/picl/plugins/sun4v/lib/snmp/pdu.c
445
vp->type, vp->val.str, vp->val_len);
usr/src/cmd/picl/plugins/sun4v/lib/snmp/pdu.c
651
if (vp->val.str)
usr/src/cmd/picl/plugins/sun4v/lib/snmp/pdu.c
652
free((void *) vp->val.str);
usr/src/cmd/picl/plugins/sun4v/lib/snmp/pdu.h
46
uchar_t *str;
usr/src/cmd/picl/plugins/sun4v/lib/snmp/snmplib.c
1167
if (vp->name == NULL || vp->val.str == NULL)
usr/src/cmd/picl/plugins/sun4v/lib/snmp/snmplib.c
1213
sval_arr[0] = (char *)vp->val.str;
usr/src/cmd/picl/plugins/sun4v/lib/snmp/snmplib.c
1218
oidstr, (const char *)(vp->val.str));
usr/src/cmd/picl/plugins/sun4v/lib/snmp/snmplib.c
1227
oidstr, (uchar_t *)(vp->val.str),
usr/src/cmd/picl/plugins/sun4v/lib/snmp/snmplib.c
824
if (vp == NULL || vp->val.str == NULL) {
usr/src/cmd/picl/plugins/sun4v/lib/snmp/snmplib.c
829
*valp = strdup((const char *)(vp->val.str));
usr/src/cmd/picl/plugins/sun4v/lib/snmp/snmplib.c
847
if (vp == NULL || vp->val.str == NULL) {
usr/src/cmd/picl/plugins/sun4v/lib/snmp/snmplib.c
858
(void) memcpy(*valp, (const void *)(vp->val.str),
usr/src/cmd/picl/plugins/sun4v/mdesc/cpu_prop_update.c
133
char str[MAXSTRLEN];
usr/src/cmd/picl/plugins/sun4v/mdesc/cpu_prop_update.c
152
(void) strncpy(str, (char *)type + total_size,
usr/src/cmd/picl/plugins/sun4v/mdesc/cpu_prop_update.c
153
sizeof (str));
usr/src/cmd/picl/plugins/sun4v/mdesc/cpu_prop_update.c
154
if (strncmp(str, "instn", sizeof (str)) == 0)
usr/src/cmd/picl/plugins/sun4v/mdesc/cpu_prop_update.c
156
if (strncmp(str, "data", sizeof (str)) == 0)
usr/src/cmd/picl/plugins/sun4v/mdesc/cpu_prop_update.c
79
char str[MAXSTRLEN];
usr/src/cmd/picl/plugins/sun4v/mdesc/cpu_prop_update.c
94
(void) strncpy(str, (char *)type + total_size,
usr/src/cmd/picl/plugins/sun4v/mdesc/cpu_prop_update.c
95
sizeof (str));
usr/src/cmd/picl/plugins/sun4v/mdesc/cpu_prop_update.c
96
if (strncmp(str, "instn", sizeof (str)) == 0)
usr/src/cmd/picl/plugins/sun4v/mdesc/cpu_prop_update.c
98
if (strncmp(str, "data", sizeof (str)) == 0)
usr/src/cmd/picl/prtpicl/prtpicl.c
186
char *str;
usr/src/cmd/picl/prtpicl/prtpicl.c
287
str = ctime(&tmp);
usr/src/cmd/picl/prtpicl/prtpicl.c
288
if (str == NULL) {
usr/src/cmd/picl/prtpicl/prtpicl.c
292
str[strlen(str) - 1] = '\0';
usr/src/cmd/picl/prtpicl/prtpicl.c
293
(void) printf(" %s ", str);
usr/src/cmd/pools/poolbind/poolbind.c
133
for (i = 0; idtypes[i].str != NULL; i++) {
usr/src/cmd/pools/poolbind/poolbind.c
134
if (strcmp(optarg, idtypes[i].str) == 0) {
usr/src/cmd/pools/poolbind/poolbind.c
136
idstr = idtypes[i].str;
usr/src/cmd/pools/poolbind/poolbind.c
141
idtypes[i].str == NULL)
usr/src/cmd/pools/poolbind/poolbind.c
63
char *str;
usr/src/cmd/pools/poold/libjpool/jpool.c
1449
const char *str;
usr/src/cmd/pools/poold/libjpool/jpool.c
1452
str = (jstr) ? (*jenv)->GetStringUTFChars(jenv, jstr, 0) : NULL;
usr/src/cmd/pools/poold/libjpool/jpool.c
1453
result = pool_value_set_string((pool_value_t *)(uintptr_t)jvalue, str);
usr/src/cmd/pools/poold/libjpool/jpool.c
1455
if (str)
usr/src/cmd/pools/poold/libjpool/jpool.c
1456
(*jenv)->ReleaseStringUTFChars(jenv, jstr, str);
usr/src/cmd/pools/poolstat/poolstat.c
439
default_f(char *str, int pos, int left, poolstat_field_format_t *ff, char *data)
usr/src/cmd/pools/poolstat/poolstat.c
447
used = snprintf(str + pos, left, "%*.*lld",
usr/src/cmd/pools/poolstat/poolstat.c
454
used = snprintf(str + pos, left, "%*.*llu",
usr/src/cmd/pools/poolstat/poolstat.c
470
used = snprintf(str + pos, left, "%*.*f",
usr/src/cmd/pools/poolstat/poolstat.c
490
used = snprintf(str + pos, left, "%-*s", ff->pff_width,
usr/src/cmd/pools/poolstat/poolstat.c
501
bigno_f(char *str, int pos, int left, poolstat_field_format_t *ff, char *data)
usr/src/cmd/pools/poolstat/poolstat.c
577
used = snprintf(str + pos, left, "%*.*f",
usr/src/cmd/pools/poolstat/poolstat.c
580
used = snprintf(str + pos, left, "%*.*f%c",
usr/src/cmd/pools/poolstat/poolstat.c
588
used_stat_f(char *str, int pos, int left, poolstat_field_format_t *ff,
usr/src/cmd/pools/poolstat/poolstat.c
596
used = snprintf(str + pos, left, "%*c", ff->pff_width, '-');
usr/src/cmd/pools/poolstat/poolstat.c
607
used = snprintf(str + pos, left, "%*.*f",
usr/src/cmd/pools/poolstat/poolstat.c
618
header_f(char *str, int pos, int left, poolstat_field_format_t *ff, char *data)
usr/src/cmd/pools/poolstat/poolstat.c
624
used = snprintf(str + pos, left, "%-*s",
usr/src/cmd/pools/poolstat/poolstat.c
627
used = snprintf(str + pos, left, "%*s",
usr/src/cmd/power/handlers.c
42
#define STRCPYLIM(dst, src, str) strcpy_limit(dst, src, sizeof (dst), str)
usr/src/cmd/power/handlers.c
43
#define LASTBYTE(str) (str + strlen(str) - 1)
usr/src/cmd/power/handlers.c
678
get_scaled_value(char *str, int *nerrp)
usr/src/cmd/power/handlers.c
684
svalue = strtol(str, &sp, 0);
usr/src/cmd/power/handlers.c
685
if (errno || (*str != '-' && (*str < '0' || *str > '9')))
usr/src/cmd/power/handlers.c
703
mesg(MERR, nerr_fmt, str);
usr/src/cmd/powertop/common/cpufreq.c
200
s = knp->value.str.addr.ptr;
usr/src/cmd/praudit/format.c
1873
pa_putstr_xml(pr_context_t *context, int printable, char *str, size_t len)
usr/src/cmd/praudit/format.c
1886
(unsigned char)*str++);
usr/src/cmd/praudit/format.c
1899
switch (*str) {
usr/src/cmd/praudit/format.c
1921
err = pr_putchar(context, *str);
usr/src/cmd/praudit/format.c
1927
err = pr_putchar(context, *str++);
usr/src/cmd/praudit/format.c
1933
pa_putstr(pr_context_t *context, int printable, char *str, size_t len)
usr/src/cmd/praudit/format.c
1938
return (pa_putstr_xml(context, printable, str, len));
usr/src/cmd/praudit/format.c
1943
(unsigned char)*str++);
usr/src/cmd/praudit/format.c
1948
err = pr_putchar(context, *str++);
usr/src/cmd/praudit/format.c
2837
pa_printstr(pr_context_t *context, char *str)
usr/src/cmd/praudit/format.c
2847
while (err == 0 && *str != '\0') {
usr/src/cmd/praudit/format.c
2848
c = *str++;
usr/src/cmd/praudit/format.c
2854
while (err == 0 && *str != '\0') {
usr/src/cmd/praudit/format.c
2855
len = mbtowc(&wc, str, mbmax);
usr/src/cmd/praudit/format.c
2862
err = pa_putstr(context, printable, str, len);
usr/src/cmd/praudit/format.c
2863
str += len;
usr/src/cmd/praudit/format.c
3215
strappend(char **str, char *what, size_t *alloc)
usr/src/cmd/praudit/format.c
3220
s = *str;
usr/src/cmd/praudit/format.c
3230
*str = s;
usr/src/cmd/praudit/format.c
3240
*str = s;
usr/src/cmd/print/bsd-sysv-commands/lpstat.c
162
char *str = "";
usr/src/cmd/print/bsd-sysv-commands/lpstat.c
165
"printer-info", &str);
usr/src/cmd/print/bsd-sysv-commands/lpstat.c
171
if (str[0] == '\0') {
usr/src/cmd/print/bsd-sysv-commands/lpstat.c
193
printf(gettext("\tDescription: %s\n"), str);
usr/src/cmd/print/bsd-sysv-commands/lpstat.c
508
char *str;
usr/src/cmd/print/bsd-sysv-commands/lpstat.c
518
str = "";
usr/src/cmd/print/bsd-sysv-commands/lpstat.c
520
"form-ready", &str);
usr/src/cmd/print/bsd-sysv-commands/lpstat.c
521
printf(gettext("\tForm mounted: %s\n"), str);
usr/src/cmd/print/bsd-sysv-commands/lpstat.c
523
str = "";
usr/src/cmd/print/bsd-sysv-commands/lpstat.c
526
"document-format-supported", &str);
usr/src/cmd/print/bsd-sysv-commands/lpstat.c
527
printf(gettext("\tContent types: %s"), str);
usr/src/cmd/print/bsd-sysv-commands/lpstat.c
528
while (papiAttributeListGetString(attrs, &iter, NULL, &str)
usr/src/cmd/print/bsd-sysv-commands/lpstat.c
530
printf(", %s", str);
usr/src/cmd/print/bsd-sysv-commands/lpstat.c
536
str = "";
usr/src/cmd/print/bsd-sysv-commands/lpstat.c
539
"lpsched-printer-type", &str);
usr/src/cmd/print/bsd-sysv-commands/lpstat.c
540
printf(gettext("\tPrinter types: %s"), str);
usr/src/cmd/print/bsd-sysv-commands/lpstat.c
541
while (papiAttributeListGetString(attrs, &iter, NULL, &str)
usr/src/cmd/print/bsd-sysv-commands/lpstat.c
543
printf(", %s", str);
usr/src/cmd/print/bsd-sysv-commands/lpstat.c
546
str = "";
usr/src/cmd/print/bsd-sysv-commands/lpstat.c
548
"lpsched-dial-info", &str);
usr/src/cmd/print/bsd-sysv-commands/lpstat.c
550
((str[0] == '\0') ? gettext("direct") : str));
usr/src/cmd/print/bsd-sysv-commands/lpstat.c
552
str = "";
usr/src/cmd/print/bsd-sysv-commands/lpstat.c
554
"lpsched-interface-script", &str);
usr/src/cmd/print/bsd-sysv-commands/lpstat.c
555
printf(gettext("\tInterface: %s\n"), str);
usr/src/cmd/print/bsd-sysv-commands/lpstat.c
557
str = NULL;
usr/src/cmd/print/bsd-sysv-commands/lpstat.c
559
"ppd-file-uri", &str);
usr/src/cmd/print/bsd-sysv-commands/lpstat.c
561
"lpsched-ppd-source-path", &str);
usr/src/cmd/print/bsd-sysv-commands/lpstat.c
562
if (str != NULL)
usr/src/cmd/print/bsd-sysv-commands/lpstat.c
563
printf(gettext("\tPPD: %s\n"), str);
usr/src/cmd/print/bsd-sysv-commands/lpstat.c
565
str = NULL;
usr/src/cmd/print/bsd-sysv-commands/lpstat.c
567
"lpsched-fault-alert-command", &str);
usr/src/cmd/print/bsd-sysv-commands/lpstat.c
568
if (str != NULL)
usr/src/cmd/print/bsd-sysv-commands/lpstat.c
569
printf(gettext("\tOn fault: %s\n"), str);
usr/src/cmd/print/bsd-sysv-commands/lpstat.c
571
str = "";
usr/src/cmd/print/bsd-sysv-commands/lpstat.c
573
"lpsched-fault-recovery", &str);
usr/src/cmd/print/bsd-sysv-commands/lpstat.c
575
((str[0] == '\0') ? gettext("continue") : str));
usr/src/cmd/print/bsd-sysv-commands/lpstat.c
577
str = "(all)";
usr/src/cmd/print/bsd-sysv-commands/lpstat.c
580
"requesting-user-name-allowed", &str);
usr/src/cmd/print/bsd-sysv-commands/lpstat.c
582
((str[0] == '\0') ? gettext("(none)") : str));
usr/src/cmd/print/bsd-sysv-commands/lpstat.c
583
if ((str != NULL) && (str[0] != '\0'))
usr/src/cmd/print/bsd-sysv-commands/lpstat.c
585
&str) == PAPI_OK)
usr/src/cmd/print/bsd-sysv-commands/lpstat.c
586
printf("\t\t%s\n", str);
usr/src/cmd/print/bsd-sysv-commands/lpstat.c
588
str = NULL;
usr/src/cmd/print/bsd-sysv-commands/lpstat.c
591
"requesting-user-name-denied", &str);
usr/src/cmd/print/bsd-sysv-commands/lpstat.c
592
if (str != NULL) {
usr/src/cmd/print/bsd-sysv-commands/lpstat.c
594
((str[0] == '\0') ? gettext("(none)") : str));
usr/src/cmd/print/bsd-sysv-commands/lpstat.c
595
if ((str != NULL) && (str[0] != '\0'))
usr/src/cmd/print/bsd-sysv-commands/lpstat.c
597
NULL, &str) == PAPI_OK)
usr/src/cmd/print/bsd-sysv-commands/lpstat.c
598
printf("\t\t%s\n", str);
usr/src/cmd/print/bsd-sysv-commands/lpstat.c
601
str = "none";
usr/src/cmd/print/bsd-sysv-commands/lpstat.c
604
"form-supported", &str);
usr/src/cmd/print/bsd-sysv-commands/lpstat.c
606
((str[0] == '\0') ? gettext("none") : str));
usr/src/cmd/print/bsd-sysv-commands/lpstat.c
607
if ((str != NULL) && (str[0] != '\0'))
usr/src/cmd/print/bsd-sysv-commands/lpstat.c
609
&str) == PAPI_OK)
usr/src/cmd/print/bsd-sysv-commands/lpstat.c
610
printf("\t\t(%s)\n", str);
usr/src/cmd/print/bsd-sysv-commands/lpstat.c
612
str = "";
usr/src/cmd/print/bsd-sysv-commands/lpstat.c
615
"media-supported", &str);
usr/src/cmd/print/bsd-sysv-commands/lpstat.c
617
((str[0] == '\0') ? gettext("(none)") : str));
usr/src/cmd/print/bsd-sysv-commands/lpstat.c
618
if ((str != NULL) && (str[0] != '\0'))
usr/src/cmd/print/bsd-sysv-commands/lpstat.c
620
&str) == PAPI_OK)
usr/src/cmd/print/bsd-sysv-commands/lpstat.c
621
printf("\t\t%s\n", str);
usr/src/cmd/print/bsd-sysv-commands/lpstat.c
623
str = "";
usr/src/cmd/print/bsd-sysv-commands/lpstat.c
625
"job-sheets-supported", &str);
usr/src/cmd/print/bsd-sysv-commands/lpstat.c
626
if ((strcasecmp(str, "none")) == 0)
usr/src/cmd/print/bsd-sysv-commands/lpstat.c
627
str = gettext("page never printed");
usr/src/cmd/print/bsd-sysv-commands/lpstat.c
628
else if (strcasecmp(str, "optional") == 0)
usr/src/cmd/print/bsd-sysv-commands/lpstat.c
629
str = gettext("not required");
usr/src/cmd/print/bsd-sysv-commands/lpstat.c
631
str = gettext("required");
usr/src/cmd/print/bsd-sysv-commands/lpstat.c
633
printf(gettext("\tBanner %s\n"), str);
usr/src/cmd/print/bsd-sysv-commands/lpstat.c
636
str = "";
usr/src/cmd/print/bsd-sysv-commands/lpstat.c
639
"lpsched-print-wheels", &str);
usr/src/cmd/print/bsd-sysv-commands/lpstat.c
641
((str[0] == '\0') ? gettext("(none)") : str));
usr/src/cmd/print/bsd-sysv-commands/lpstat.c
642
if ((str != NULL) && (str[0] != '\0'))
usr/src/cmd/print/bsd-sysv-commands/lpstat.c
644
&str) == PAPI_OK)
usr/src/cmd/print/bsd-sysv-commands/lpstat.c
645
printf("\t\t%s\n", str);
usr/src/cmd/print/bsd-sysv-commands/lpstat.c
651
str = "";
usr/src/cmd/print/bsd-sysv-commands/lpstat.c
654
"lpsched-options", &str);
usr/src/cmd/print/bsd-sysv-commands/lpstat.c
655
if (str != NULL) {
usr/src/cmd/print/bsd-sysv-commands/lpstat.c
656
printf(gettext("\tOptions: %s"), str);
usr/src/cmd/print/bsd-sysv-commands/lpstat.c
658
&str) == PAPI_OK)
usr/src/cmd/print/bsd-sysv-commands/lpstat.c
659
printf(", %s", str);
usr/src/cmd/printf/printf.c
419
mknum(char *str, char ch)
usr/src/cmd/printf/printf.c
426
len = strlen(str) + 2;
usr/src/cmd/printf/printf.c
437
(void) memmove(copy, str, len - 3);
usr/src/cmd/prstat/prtable.c
169
add_zone(zonetbl_t *tbl, char *str)
usr/src/cmd/prstat/prtable.c
180
if (zone_get_id(str, &id) != 0) {
usr/src/cmd/prstat/prtable.c
181
Die(gettext("unknown zone -- %s\n"), str);
usr/src/cmd/prstat/prtable.c
187
if (id == (zoneid_t)strtol(str, &cp, 0) && errno == 0 && cp != str &&
usr/src/cmd/prstat/prtable.c
190
str = NULL;
usr/src/cmd/prstat/prtable.c
201
if (str)
usr/src/cmd/prstat/prtable.c
202
(void) strlcpy(entp->z_name, str, ZONENAME_MAX);
usr/src/cmd/prstat/prutil.c
136
Format_size(char *str, size_t size, int length)
usr/src/cmd/prstat/prutil.c
147
(void) snprintf(str, length, "%4d%c", (int)size, tag);
usr/src/cmd/prstat/prutil.c
151
Format_time(char *str, ulong_t time, int length)
usr/src/cmd/prstat/prutil.c
153
(void) snprintf(str, length, gettext("%3d:%2.2d:%2.2d"), /* hr:mm:ss */
usr/src/cmd/prstat/prutil.c
158
Format_pct(char *str, float val, int length)
usr/src/cmd/prstat/prutil.c
166
(void) snprintf(str, length, "%1.1f", val);
usr/src/cmd/prstat/prutil.c
168
(void) snprintf(str, length, "%.0f", val);
usr/src/cmd/prstat/prutil.c
172
Format_num(char *str, int num, int length)
usr/src/cmd/prstat/prutil.c
175
(void) snprintf(str, length, ".%1dM", num/100000);
usr/src/cmd/prstat/prutil.c
178
(void) snprintf(str, length, "%2dK", num/1000);
usr/src/cmd/prstat/prutil.c
180
(void) snprintf(str, length, "%3d", num);
usr/src/cmd/prstat/prutil.c
185
Format_state(char *str, char state, processorid_t pr_id, int length)
usr/src/cmd/prstat/prutil.c
189
(void) strncpy(str, "sleep", length);
usr/src/cmd/prstat/prutil.c
192
(void) strncpy(str, "run", length);
usr/src/cmd/prstat/prutil.c
195
(void) strncpy(str, "zombie", length);
usr/src/cmd/prstat/prutil.c
198
(void) strncpy(str, "stop", length);
usr/src/cmd/prstat/prutil.c
201
(void) strncpy(str, "idle", length);
usr/src/cmd/prstat/prutil.c
204
(void) strncpy(str, "wait", length);
usr/src/cmd/prstat/prutil.c
207
(void) snprintf(str, length, "cpu%-3d", (int)pr_id);
usr/src/cmd/prstat/prutil.c
210
(void) strncpy(str, "?", length);
usr/src/cmd/prstat/prutil.c
284
getprojname(projid_t projid, char *str, size_t len, int noresolve,
usr/src/cmd/prstat/prutil.c
292
(void) snprintf(str, len, "%-6d", (int)projid);
usr/src/cmd/prstat/prutil.c
296
(void) snprintf(str, len, "%-28s", "ERROR");
usr/src/cmd/prstat/prutil.c
298
(void) snprintf(str, len, "%.*s%c", width - 1,
usr/src/cmd/prstat/prutil.c
301
(void) snprintf(str, len, "%-28s", proj.pj_name);
usr/src/cmd/prstat/prutil.c
306
getzonename(zoneid_t zoneid, char *str, size_t len, int trunc, size_t width)
usr/src/cmd/prstat/prutil.c
312
(void) snprintf(str, len, "%-6d", (int)zoneid);
usr/src/cmd/prstat/prutil.c
316
(void) snprintf(str, len, "%-28s", "ERROR");
usr/src/cmd/prstat/prutil.c
318
(void) snprintf(str, len, "%.*s%c", width - 1,
usr/src/cmd/prstat/prutil.c
321
(void) snprintf(str, len, "%-28s", zone_name);
usr/src/cmd/prtconf/pdevinfo.c
1003
char *str;
usr/src/cmd/prtconf/pdevinfo.c
1007
if (nvlist_lookup_string(nvl, "name", &str) == 0) {
usr/src/cmd/prtconf/pdevinfo.c
1008
return (str);
usr/src/cmd/prtconf/pdevinfo.c
1046
const char *str;
usr/src/cmd/prtconf/pdevinfo.c
1053
for (str = (char *)value; str < ((char *)value + len);
usr/src/cmd/prtconf/pdevinfo.c
1054
str += strlen(str) + 1) {
usr/src/cmd/prtconf/pdevinfo.c
1055
if (strncmp("pciclass,", str,
usr/src/cmd/prtconf/pdevinfo.c
1057
strncmp("pciexclass,", str,
usr/src/cmd/prtvtoc/prtvtoc.c
756
safe_strdup(const char *fname, const char *str)
usr/src/cmd/prtvtoc/prtvtoc.c
758
size_t l = strlen(str);
usr/src/cmd/prtvtoc/prtvtoc.c
761
if ((r = strndup(str, l)) == NULL) {
usr/src/cmd/ps/ps.c
2434
char *str = strerror(err);
usr/src/cmd/ps/ps.c
2436
if (str == NULL)
usr/src/cmd/ps/ps.c
2437
(void) snprintf(str = buf, sizeof (buf), "Errno #%d", err);
usr/src/cmd/ps/ps.c
2439
return (str);
usr/src/cmd/ps/ucbps.c
1188
char *str = strerror(err);
usr/src/cmd/ps/ucbps.c
1190
if (str == NULL)
usr/src/cmd/ps/ucbps.c
1191
(void) sprintf(str = buf, "Errno #%d", err);
usr/src/cmd/ps/ucbps.c
1193
return (str);
usr/src/cmd/psrinfo/psrinfo.c
620
vc->v_brand = mystrdup(knp->value.str.addr.ptr);
usr/src/cmd/psrinfo/psrinfo.c
626
vc->v_socket = mystrdup(knp->value.str.addr.ptr);
usr/src/cmd/psrinfo/psrinfo.c
632
vc->v_impl = mystrdup(knp->value.str.addr.ptr);
usr/src/cmd/ptools/pargs/pargs.c
1018
convert_run_iconv(pargs_data_t *datap, const char *str)
usr/src/cmd/ptools/pargs/pargs.c
1036
inleft = strlen(str);
usr/src/cmd/ptools/pargs/pargs.c
1037
instrptr = str;
usr/src/cmd/ptools/pargs/pargs.c
1072
convert_str(pargs_data_t *datap, const char *str, int *unprintable)
usr/src/cmd/ptools/pargs/pargs.c
1077
retstr = unctrl_str_strict_ascii(str, 1, unprintable);
usr/src/cmd/ptools/pargs/pargs.c
1087
retstr = unctrl_str(str, 1, unprintable);
usr/src/cmd/ptools/pargs/pargs.c
1115
retstr = unctrl_str(str, 1, unprintable);
usr/src/cmd/ptools/pargs/pargs.c
1126
return (unctrl_str_strict_ascii(str, 0, unprintable));
usr/src/cmd/ptools/pargs/pargs.c
642
build_env(void *data, struct ps_prochandle *pr, uintptr_t addr, const char *str)
usr/src/cmd/ptools/pargs/pargs.c
668
if (str == NULL)
usr/src/cmd/ptools/pargs/pargs.c
671
datap->pd_envp_strs[datap->pd_envc] = strdup(str);
usr/src/cmd/ptools/pargs/pargs.c
703
at_null(long val, char *instr, size_t n, char *str)
usr/src/cmd/ptools/pargs/pargs.c
705
str[0] = '\0';
usr/src/cmd/ptools/pargs/pargs.c
710
at_str(long val, char *instr, size_t n, char *str)
usr/src/cmd/ptools/pargs/pargs.c
712
str[0] = '\0';
usr/src/cmd/ptools/pargs/pargs.c
714
(void) strlcpy(str, instr, n);
usr/src/cmd/ptools/pargs/pargs.c
728
at_hwcap(long val, char *instr, size_t n, char *str)
usr/src/cmd/ptools/pargs/pargs.c
731
(void) elfcap_hw1_to_str(ELFCAP_STYLE_UC, val, str, n,
usr/src/cmd/ptools/pargs/pargs.c
735
(void) elfcap_hw1_to_str(ELFCAP_STYLE_UC, val, str, n,
usr/src/cmd/ptools/pargs/pargs.c
744
at_hwcap2(long val, char *instr, size_t n, char *str)
usr/src/cmd/ptools/pargs/pargs.c
747
(void) elfcap_hw2_to_str(ELFCAP_STYLE_UC, val, str, n,
usr/src/cmd/ptools/pargs/pargs.c
751
(void) elfcap_hw2_to_str(ELFCAP_STYLE_UC, val, str, n,
usr/src/cmd/ptools/pargs/pargs.c
760
at_hwcap3(long val, char *instr, size_t n, char *str)
usr/src/cmd/ptools/pargs/pargs.c
763
(void) elfcap_hw3_to_str(ELFCAP_STYLE_UC, val, str, n,
usr/src/cmd/ptools/pargs/pargs.c
772
at_uid(long val, char *instr, size_t n, char *str)
usr/src/cmd/ptools/pargs/pargs.c
777
str[0] = '\0';
usr/src/cmd/ptools/pargs/pargs.c
779
(void) snprintf(str, n, "%lu(%s)", val, pw->pw_name);
usr/src/cmd/ptools/pargs/pargs.c
785
at_gid(long val, char *instr, size_t n, char *str)
usr/src/cmd/ptools/pargs/pargs.c
790
str[0] = '\0';
usr/src/cmd/ptools/pargs/pargs.c
792
(void) snprintf(str, n, "%lu(%s)", val, gr->gr_name);
usr/src/cmd/ptools/pargs/pargs.c
804
at_flags(long val, char *instr, size_t n, char *str)
usr/src/cmd/ptools/pargs/pargs.c
808
*str = '\0';
usr/src/cmd/ptools/pargs/pargs.c
812
if (*str != '\0')
usr/src/cmd/ptools/pargs/pargs.c
813
(void) strlcat(str, ",", n);
usr/src/cmd/ptools/pargs/pargs.c
814
(void) strlcat(str, auxfl[i].af_name, n);
usr/src/cmd/ptools/pcred/pcred.c
256
str2id(const char *str)
usr/src/cmd/ptools/pcred/pcred.c
262
res = strtoul(str, &p, 0);
usr/src/cmd/ptools/pcred/pcred.c
263
if (p == str || *p != '\0' || errno != 0)
usr/src/cmd/ptools/pfiles/pfiles.c
394
char *str = buffer;
usr/src/cmd/ptools/pfiles/pfiles.c
398
(void) strcpy(str, "O_RDONLY");
usr/src/cmd/ptools/pfiles/pfiles.c
401
(void) strcpy(str, "O_WRONLY");
usr/src/cmd/ptools/pfiles/pfiles.c
404
(void) strcpy(str, "O_RDWR");
usr/src/cmd/ptools/pfiles/pfiles.c
407
(void) strcpy(str, "O_SEARCH");
usr/src/cmd/ptools/pfiles/pfiles.c
410
(void) strcpy(str, "O_EXEC");
usr/src/cmd/ptools/pfiles/pfiles.c
413
(void) sprintf(str, "0x%x", flags & O_ACCMODE);
usr/src/cmd/ptools/pfiles/pfiles.c
418
(void) strcat(str, "|O_NDELAY");
usr/src/cmd/ptools/pfiles/pfiles.c
420
(void) strcat(str, "|O_NONBLOCK");
usr/src/cmd/ptools/pfiles/pfiles.c
422
(void) strcat(str, "|O_APPEND");
usr/src/cmd/ptools/pfiles/pfiles.c
424
(void) strcat(str, "|O_SYNC");
usr/src/cmd/ptools/pfiles/pfiles.c
426
(void) strcat(str, "|O_DSYNC");
usr/src/cmd/ptools/pfiles/pfiles.c
428
(void) strcat(str, "|O_RSYNC");
usr/src/cmd/ptools/pfiles/pfiles.c
430
(void) strcat(str, "|O_CREAT");
usr/src/cmd/ptools/pfiles/pfiles.c
432
(void) strcat(str, "|O_TRUNC");
usr/src/cmd/ptools/pfiles/pfiles.c
434
(void) strcat(str, "|O_EXCL");
usr/src/cmd/ptools/pfiles/pfiles.c
436
(void) strcat(str, "|O_NOCTTY");
usr/src/cmd/ptools/pfiles/pfiles.c
438
(void) strcat(str, "|O_LARGEFILE");
usr/src/cmd/ptools/pfiles/pfiles.c
440
(void) strcat(str, "|O_XATTR");
usr/src/cmd/ptools/pfiles/pfiles.c
442
(void) sprintf(str + strlen(str), "|0x%x",
usr/src/cmd/ptools/pfiles/pfiles.c
445
(void) printf("%s", str);
usr/src/cmd/ptools/pfiles/pfiles.c
478
show_sockaddr(const char *str, const struct sockaddr *sa, socklen_t len)
usr/src/cmd/ptools/pfiles/pfiles.c
493
(void) printf("\t%s: AF_INET %s port: %u\n", str,
usr/src/cmd/ptools/pfiles/pfiles.c
498
(void) printf("\t%s: AF_INET6 %s port: %u\n", str,
usr/src/cmd/ptools/pfiles/pfiles.c
506
str, len - sizeof (so_un->sun_family),
usr/src/cmd/ptools/pfiles/pfiles.c
537
(void) printf("\t%s: %s\n", str, p);
usr/src/cmd/ptools/pfiles/pfiles.c
545
show_ucred(const char *str, ucred_t *cred)
usr/src/cmd/ptools/pfiles/pfiles.c
552
(void) printf("\t%s:", str);
usr/src/cmd/ptools/pflags/pflags.c
362
char *str = code_buf;
usr/src/cmd/ptools/pflags/pflags.c
368
(void) sprintf(str, "0x%x", arg & ~ALLFLAGS);
usr/src/cmd/ptools/pflags/pflags.c
370
*str = '\0';
usr/src/cmd/ptools/pflags/pflags.c
376
(void) strcat(str, "|DAEMON");
usr/src/cmd/ptools/pflags/pflags.c
378
(void) strcat(str, "|DETACH");
usr/src/cmd/ptools/pflags/pflags.c
381
(void) strcat(str, "|STOPPED");
usr/src/cmd/ptools/pflags/pflags.c
383
(void) strcat(str, "|ISTOP");
usr/src/cmd/ptools/pflags/pflags.c
385
(void) strcat(str, "|DSTOP");
usr/src/cmd/ptools/pflags/pflags.c
388
(void) strcat(str, "|ASLEEP");
usr/src/cmd/ptools/pflags/pflags.c
391
(void) strcat(str, "|PCINVAL");
usr/src/cmd/ptools/pflags/pflags.c
393
(void) strcat(str, "|STEP");
usr/src/cmd/ptools/pflags/pflags.c
395
(void) strcat(str, "|AGENT");
usr/src/cmd/ptools/pflags/pflags.c
397
(void) strcat(str, "|ISSYS");
usr/src/cmd/ptools/pflags/pflags.c
399
(void) strcat(str, "|VFORKP");
usr/src/cmd/ptools/pflags/pflags.c
401
(void) strcat(str, "|ORPHAN");
usr/src/cmd/ptools/pflags/pflags.c
403
(void) strcat(str, "|NOSIGCHLD");
usr/src/cmd/ptools/pflags/pflags.c
405
(void) strcat(str, "|WAITPID");
usr/src/cmd/ptools/pflags/pflags.c
407
(void) strcat(str, "|FORK");
usr/src/cmd/ptools/pflags/pflags.c
409
(void) strcat(str, "|RLC");
usr/src/cmd/ptools/pflags/pflags.c
411
(void) strcat(str, "|KLC");
usr/src/cmd/ptools/pflags/pflags.c
413
(void) strcat(str, "|ASYNC");
usr/src/cmd/ptools/pflags/pflags.c
415
(void) strcat(str, "|BPTADJ");
usr/src/cmd/ptools/pflags/pflags.c
417
(void) strcat(str, "|MSACCT");
usr/src/cmd/ptools/pflags/pflags.c
419
(void) strcat(str, "|MSFORK");
usr/src/cmd/ptools/pflags/pflags.c
421
(void) strcat(str, "|PTRACE");
usr/src/cmd/ptools/pflags/pflags.c
423
if (*str == '|')
usr/src/cmd/ptools/pflags/pflags.c
424
str++;
usr/src/cmd/ptools/pflags/pflags.c
426
return (str);
usr/src/cmd/ptools/pflags/pflags.c
433
char *str;
usr/src/cmd/ptools/pflags/pflags.c
437
str = "PR_REQUESTED";
usr/src/cmd/ptools/pflags/pflags.c
440
str = "PR_SIGNALLED";
usr/src/cmd/ptools/pflags/pflags.c
443
str = "PR_SYSENTRY";
usr/src/cmd/ptools/pflags/pflags.c
446
str = "PR_SYSEXIT";
usr/src/cmd/ptools/pflags/pflags.c
449
str = "PR_JOBCONTROL";
usr/src/cmd/ptools/pflags/pflags.c
452
str = "PR_FAULTED";
usr/src/cmd/ptools/pflags/pflags.c
455
str = "PR_SUSPENDED";
usr/src/cmd/ptools/pflags/pflags.c
458
str = buf;
usr/src/cmd/ptools/pflags/pflags.c
459
(void) sprintf(str, "%d", why);
usr/src/cmd/ptools/pflags/pflags.c
463
return (str);
usr/src/cmd/ptools/pflags/pflags.c
470
char *str;
usr/src/cmd/ptools/pflags/pflags.c
475
str = proc_signame(what, buf, sizeof (buf));
usr/src/cmd/ptools/pflags/pflags.c
479
str = proc_sysname(what, buf, sizeof (buf));
usr/src/cmd/ptools/pflags/pflags.c
482
str = proc_fltname(what, buf, sizeof (buf));
usr/src/cmd/ptools/pflags/pflags.c
485
(void) sprintf(str = buf, "%d", what);
usr/src/cmd/ptools/pflags/pflags.c
489
return (str);
usr/src/cmd/ptools/pmap/pmap.c
1166
char *str = code_buf;
usr/src/cmd/ptools/pmap/pmap.c
1178
(void) sprintf(str, "%c%c%c%c%c%c",
usr/src/cmd/ptools/pmap/pmap.c
1186
return (str);
usr/src/cmd/ptools/pmap/pmap.c
1299
char *str = lgrp_buf;
usr/src/cmd/ptools/pmap/pmap.c
1301
(void) sprintf(str, lgrp == LGRP_NONE ? " -" : "%4d", lgrp);
usr/src/cmd/ptools/pmap/pmap.c
1302
return (str);
usr/src/cmd/ptools/ppriv/ppriv.c
338
strindex(char c, const char *str)
usr/src/cmd/ptools/ppriv/ppriv.c
345
s = strchr(str, c);
usr/src/cmd/ptools/ppriv/ppriv.c
350
return (s - str);
usr/src/cmd/ptools/psig/psig.c
370
char *str = code_buf;
usr/src/cmd/ptools/psig/psig.c
377
*str = '\0';
usr/src/cmd/ptools/psig/psig.c
379
(void) sprintf(str, ",0x%x,", flags & ~flagmask);
usr/src/cmd/ptools/psig/psig.c
381
return (str);
usr/src/cmd/ptools/psig/psig.c
384
(void) strcat(str, ",RESTART");
usr/src/cmd/ptools/psig/psig.c
386
(void) strcat(str, ",RESETHAND");
usr/src/cmd/ptools/psig/psig.c
388
(void) strcat(str, ",ONSTACK");
usr/src/cmd/ptools/psig/psig.c
390
(void) strcat(str, ",SIGINFO");
usr/src/cmd/ptools/psig/psig.c
392
(void) strcat(str, ",NODEFER");
usr/src/cmd/ptools/psig/psig.c
396
(void) strcat(str, ",NOCLDWAIT");
usr/src/cmd/ptools/psig/psig.c
398
(void) strcat(str, ",NOCLDSTOP");
usr/src/cmd/ptools/psig/psig.c
401
*str = '\t';
usr/src/cmd/ptools/psig/psig.c
403
return (str);
usr/src/cmd/ptools/pwdx/pwdx.c
110
pwdx(const char *str, pwdx_output_t output)
usr/src/cmd/ptools/pwdx/pwdx.c
118
P = proc_arg_grab(str, PR_ARG_ANY, PGRAB_RDONLY, &err);
usr/src/cmd/ptools/pwdx/pwdx.c
120
warnx("failed to open %s: %s", str, Pgrab_error(err));
usr/src/cmd/ptools/pwdx/pwdx.c
126
warn("failed to get psinfo from %s", str);
usr/src/cmd/ptools/pwdx/pwdx.c
131
warn("failed to read cwd of %s", str);
usr/src/cmd/ptools/pwdx/pwdx.c
137
(void) printf("core '%s' of ", str);
usr/src/cmd/ptools/pwdx/pwdx.c
77
pwdx_puts(const char *str, bool newline)
usr/src/cmd/ptools/pwdx/pwdx.c
79
size_t slen = strlen(str), off = 0;
usr/src/cmd/ptools/pwdx/pwdx.c
83
int ret = mbtowc(&wc, str + off, slen - off);
usr/src/cmd/ptools/pwdx/pwdx.c
86
pwdx_escape(str[off]);
usr/src/cmd/ptools/pwdx/pwdx.c
97
pwdx_escape(str[off + i]);
usr/src/cmd/pwck/pwck.c
173
str = &buf[delim[1] + 1];
usr/src/cmd/pwck/pwck.c
174
uid = strtol(str, &lastc, 10);
usr/src/cmd/pwck/pwck.c
175
if (lastc != str + (delim[2] - delim[1]) - 1 ||
usr/src/cmd/pwck/pwck.c
182
str = &buf[delim[2] + 1];
usr/src/cmd/pwck/pwck.c
183
gid = strtol(str, &lastc, 10);
usr/src/cmd/pwck/pwck.c
184
if (lastc != str + (delim[3] - delim[2]) - 1 ||
usr/src/cmd/pwck/pwck.c
76
char *str, *lastc;
usr/src/cmd/rcap/rcapstat/rcapstat.c
129
format_size(char *str, uint64_t size, int length)
usr/src/cmd/rcap/rcapstat/rcapstat.c
140
(void) snprintf(str, length, "%4lld%c", size, tag);
usr/src/cmd/rcm_daemon/common/rcm_script.c
2585
rcmscript_strdup(char *str)
usr/src/cmd/rcm_daemon/common/rcm_script.c
2589
if ((dupstr = strdup(str)) == NULL) {
usr/src/cmd/rcm_daemon/common/rcm_subr.c
1865
s_strdup(const char *str)
usr/src/cmd/rcm_daemon/common/rcm_subr.c
1867
char *buf = strdup(str);
usr/src/cmd/refer/addbib.c
250
char str[BUFSIZ];
usr/src/cmd/refer/addbib.c
258
for (entry = 0; fgets(str, BUFSIZ, pfp); entry++) {
usr/src/cmd/refer/addbib.c
259
for (i = 0; str[i] != '\t' && str[i] != '\n'; i++)
usr/src/cmd/refer/addbib.c
260
bibskel[entry].prompt[i] = str[i];
usr/src/cmd/refer/addbib.c
262
if (str[i] == '\n') {
usr/src/cmd/refer/addbib.c
269
for (i++, j = 0; str[i] != '\n'; i++, j++)
usr/src/cmd/refer/addbib.c
270
bibskel[entry].keylet[j] = str[i];
usr/src/cmd/refer/sortbib.c
167
char str[BUF], buff[BUF*8]; /* for tempfile & databases */
usr/src/cmd/refer/sortbib.c
179
while (fgets(str, sizeof (str), tfp)) {
usr/src/cmd/refer/sortbib.c
181
if (sscanf(str, "%d %d %d :", &i, &offset, &length) != 3)
usr/src/cmd/refer/sortbib.c
255
article(char *str)
usr/src/cmd/refer/sortbib.c
257
if (strcmp("The", str) == 0) /* English */
usr/src/cmd/refer/sortbib.c
259
if (strcmp("A", str) == 0)
usr/src/cmd/refer/sortbib.c
261
if (strcmp("An", str) == 0)
usr/src/cmd/refer/sortbib.c
263
if (strcmp("Le", str) == 0) /* French */
usr/src/cmd/refer/sortbib.c
265
if (strcmp("La", str) == 0)
usr/src/cmd/refer/sortbib.c
267
if (strcmp("Der", str) == 0) /* German */
usr/src/cmd/refer/sortbib.c
269
if (strcmp("Die", str) == 0)
usr/src/cmd/refer/sortbib.c
271
if (strcmp("Das", str) == 0)
usr/src/cmd/refer/sortbib.c
273
if (strcmp("El", str) == 0) /* Spanish */
usr/src/cmd/refer/sortbib.c
275
if (strcmp("Den", str) == 0) /* Scandinavian */
usr/src/cmd/refer/sortbib.c
316
endcomma(char *str)
usr/src/cmd/refer/sortbib.c
320
n = strlen(str) - 1;
usr/src/cmd/refer/sortbib.c
321
if (str[n] == ',') {
usr/src/cmd/refer/sortbib.c
322
str[n] = '\0';
usr/src/cmd/regcmp/regcmp.c
103
str = a1;
usr/src/cmd/regcmp/regcmp.c
144
*str++ = '\011';
usr/src/cmd/regcmp/regcmp.c
147
*str++ = '\012';
usr/src/cmd/regcmp/regcmp.c
150
*str++ = '\015';
usr/src/cmd/regcmp/regcmp.c
153
*str++ = '\010';
usr/src/cmd/regcmp/regcmp.c
156
*str++ = '\\';
usr/src/cmd/regcmp/regcmp.c
160
*str++ = getnm((char)c);
usr/src/cmd/regcmp/regcmp.c
161
else *str++ = c;
usr/src/cmd/regcmp/regcmp.c
165
*str++ = c;
usr/src/cmd/regcmp/regcmp.c
180
*str = '\0';
usr/src/cmd/regcmp/regcmp.c
52
char *name, *str, *v;
usr/src/cmd/rmformat/rmf_main.c
265
usage(char *str)
usr/src/cmd/rmformat/rmf_main.c
268
if (strlen(str)) {
usr/src/cmd/rmformat/rmf_main.c
270
(void) fprintf(stderr, gettext(str));
usr/src/cmd/rmformat/rmf_slice.c
138
static int32_t find_value(slist_t *slist, char *str, int32_t *value);
usr/src/cmd/rmformat/rmf_slice.c
141
static uint64_t str2sector(char *str);
usr/src/cmd/rmformat/rmf_slice.c
690
for (; slist->str != NULL; slist++) {
usr/src/cmd/rmformat/rmf_slice.c
694
i = strcnt(match_str, slist->str);
usr/src/cmd/rmformat/rmf_slice.c
730
str2sector(char *str)
usr/src/cmd/rmformat/rmf_slice.c
737
base = s2 = (char *)malloc(strlen(str) + 1);
usr/src/cmd/rmformat/rmf_slice.c
746
s1 = str;
usr/src/cmd/rmformat/rmf_slice.c
82
char *str;
usr/src/cmd/rmformat/rmformat.h
57
#define DPRINTF(str) (void) printf(str)
usr/src/cmd/rmformat/rmformat.h
58
#define DPRINTF1(str, a) (void) printf(str, a)
usr/src/cmd/rmformat/rmformat.h
59
#define DPRINTF2(str, a, b) (void) printf(str, a, b)
usr/src/cmd/rmformat/rmformat.h
60
#define DPRINTF3(str, a, b, c) (void) printf(str, a, b, c)
usr/src/cmd/rmformat/rmformat.h
61
#define DPRINTF4(str, a, b, c, d) (void) printf(str, a, b, c, d)
usr/src/cmd/rmformat/rmformat.h
63
#define DPRINTF(str)
usr/src/cmd/rmformat/rmformat.h
64
#define DPRINTF1(str, a)
usr/src/cmd/rmformat/rmformat.h
65
#define DPRINTF2(str, a, b)
usr/src/cmd/rmformat/rmformat.h
66
#define DPRINTF3(str, a, b, c)
usr/src/cmd/rmformat/rmformat.h
67
#define DPRINTF4(str, a, b, c, d)
usr/src/cmd/rmvolmgr/rmm_common.c
1265
const char *str;
usr/src/cmd/rmvolmgr/rmm_common.c
1268
str = dbus_error->message;
usr/src/cmd/rmvolmgr/rmm_common.c
1272
str = gettext("success");
usr/src/cmd/rmvolmgr/rmm_common.c
1275
str = gettext("cannot connect to D-Bus");
usr/src/cmd/rmvolmgr/rmm_common.c
1278
str = gettext("cannot connect to HAL");
usr/src/cmd/rmvolmgr/rmm_common.c
1281
str = gettext("undefined error");
usr/src/cmd/rmvolmgr/rmm_common.c
1286
return (str);
usr/src/cmd/rpcbind/rpcbind.c
832
convert_int(int *val, char *str)
usr/src/cmd/rpcbind/rpcbind.c
836
if (str == NULL || !isdigit(*str))
usr/src/cmd/rpcbind/rpcbind.c
839
lval = strtol(str, &str, 10);
usr/src/cmd/rpcbind/rpcbind.c
840
if (*str != '\0' || lval > INT_MAX)
usr/src/cmd/rpcgen/rpc_cout.c
894
upcase(char *str)
usr/src/cmd/rpcgen/rpc_cout.c
898
ptr = malloc(strlen(str)+1);
usr/src/cmd/rpcgen/rpc_cout.c
905
while (*str != '\0')
usr/src/cmd/rpcgen/rpc_cout.c
906
*ptr++ = toupper(*str++);
usr/src/cmd/rpcgen/rpc_parse.c
255
defp->def_name = tok.str;
usr/src/cmd/rpcgen/rpc_parse.c
298
defp->def_name = tok.str;
usr/src/cmd/rpcgen/rpc_parse.c
306
vlist->vers_name = tok.str;
usr/src/cmd/rpcgen/rpc_parse.c
318
plist->proc_name = tok.str;
usr/src/cmd/rpcgen/rpc_parse.c
360
plist->proc_num = tok.str;
usr/src/cmd/rpcgen/rpc_parse.c
372
vlist->vers_num = tok.str;
usr/src/cmd/rpcgen/rpc_parse.c
384
defp->def.pr.prog_num = tok.str;
usr/src/cmd/rpcgen/rpc_parse.c
397
defp->def_name = tok.str;
usr/src/cmd/rpcgen/rpc_parse.c
403
elist->name = tok.str;
usr/src/cmd/rpcgen/rpc_parse.c
408
elist->assignment = tok.str;
usr/src/cmd/rpcgen/rpc_parse.c
424
defp->def_name = tok.str;
usr/src/cmd/rpcgen/rpc_parse.c
427
defp->def.co = tok.str;
usr/src/cmd/rpcgen/rpc_parse.c
441
defp->def_name = tok.str;
usr/src/cmd/rpcgen/rpc_parse.c
453
cases->case_name = tok.str;
usr/src/cmd/rpcgen/rpc_parse.c
465
cases->case_name = tok.str;
usr/src/cmd/rpcgen/rpc_parse.c
581
dec->name = tok.str;
usr/src/cmd/rpcgen/rpc_parse.c
588
dec->array_max = tok.str;
usr/src/cmd/rpcgen/rpc_parse.c
599
dec->array_max = tok.str;
usr/src/cmd/rpcgen/rpc_parse.c
633
dec->name = strdup(tok.str);
usr/src/cmd/rpcgen/rpc_parse.c
655
dec->name = strdup(tok.str);
usr/src/cmd/rpcgen/rpc_parse.c
668
dec->array_max = tok.str;
usr/src/cmd/rpcgen/rpc_parse.c
694
*typep = tok.str;
usr/src/cmd/rpcgen/rpc_parse.c
699
*prefixp = tok.str;
usr/src/cmd/rpcgen/rpc_parse.c
701
*typep = tok.str;
usr/src/cmd/rpcgen/rpc_parse.c
725
*typep = tok.str;
usr/src/cmd/rpcgen/rpc_parse.c
731
*typep = tok.str;
usr/src/cmd/rpcgen/rpc_parse.c
741
*typep = tok.str;
usr/src/cmd/rpcgen/rpc_scan.c
265
findstrconst(&where, &tokp->str);
usr/src/cmd/rpcgen/rpc_scan.c
269
findchrconst(&where, &tokp->str);
usr/src/cmd/rpcgen/rpc_scan.c
284
findconst(&where, &tokp->str);
usr/src/cmd/rpcgen/rpc_scan.c
319
findstrconst(char **str, char **val)
usr/src/cmd/rpcgen/rpc_scan.c
324
p = *str;
usr/src/cmd/rpcgen/rpc_scan.c
332
size = p - *str;
usr/src/cmd/rpcgen/rpc_scan.c
334
(void) strncpy(*val, *str, size);
usr/src/cmd/rpcgen/rpc_scan.c
336
*str = p;
usr/src/cmd/rpcgen/rpc_scan.c
340
findchrconst(char **str, char **val)
usr/src/cmd/rpcgen/rpc_scan.c
345
p = *str;
usr/src/cmd/rpcgen/rpc_scan.c
352
size = p - *str;
usr/src/cmd/rpcgen/rpc_scan.c
356
(void) strncpy(*val, *str, size);
usr/src/cmd/rpcgen/rpc_scan.c
358
*str = p;
usr/src/cmd/rpcgen/rpc_scan.c
362
findconst(char **str, char **val)
usr/src/cmd/rpcgen/rpc_scan.c
367
p = *str;
usr/src/cmd/rpcgen/rpc_scan.c
378
size = p - *str;
usr/src/cmd/rpcgen/rpc_scan.c
380
(void) strncpy(*val, *str, size);
usr/src/cmd/rpcgen/rpc_scan.c
382
*str = p;
usr/src/cmd/rpcgen/rpc_scan.c
418
char *str;
usr/src/cmd/rpcgen/rpc_scan.c
420
str = *mark;
usr/src/cmd/rpcgen/rpc_scan.c
422
len = strlen(s->str);
usr/src/cmd/rpcgen/rpc_scan.c
423
if (strncmp(str, s->str, len) == 0) {
usr/src/cmd/rpcgen/rpc_scan.c
424
if (!isalnum(str[len]) && str[len] != '_') {
usr/src/cmd/rpcgen/rpc_scan.c
426
tokp->str = s->str;
usr/src/cmd/rpcgen/rpc_scan.c
427
*mark = str + len;
usr/src/cmd/rpcgen/rpc_scan.c
433
for (len = 0; isalnum(str[len]) || str[len] == '_'; len++)
usr/src/cmd/rpcgen/rpc_scan.c
435
tokp->str = malloc(len + 1);
usr/src/cmd/rpcgen/rpc_scan.c
436
(void) strncpy(tokp->str, str, len);
usr/src/cmd/rpcgen/rpc_scan.c
437
tokp->str[len] = 0;
usr/src/cmd/rpcgen/rpc_scan.c
438
*mark = str + len;
usr/src/cmd/rpcgen/rpc_scan.h
102
char *str;
usr/src/cmd/rpcgen/rpc_util.c
216
locase(char *str)
usr/src/cmd/rpcgen/rpc_util.c
222
while (c = *str++)
usr/src/cmd/rpcgen/rpc_util.c
366
return (sp->str);
usr/src/cmd/saf/util.c
60
nexttok(str, delim, ros)
usr/src/cmd/saf/util.c
61
char *str;
usr/src/cmd/saf/util.c
69
p = (str == NULL) ? savep : str ;
usr/src/cmd/scsi/smp/common/smp.c
80
smp_print_ascii(const char *header, const char *str, size_t len)
usr/src/cmd/scsi/smp/common/smp.c
84
while (last > 0 && str[last - 1] == ' ')
usr/src/cmd/scsi/smp/common/smp.c
89
if (isascii(str[i]) != 0 && isalnum(str[i]) != 0) {
usr/src/cmd/scsi/smp/common/smp.c
90
(void) putchar(str[i]);
usr/src/cmd/scsi/smp/common/smp.c
92
(void) printf("\\x%x", str[i]);
usr/src/cmd/sendmail/db/db/db_appinit.c
301
#define DB_ADDSTR(str) { \
usr/src/cmd/sendmail/db/db/db_appinit.c
302
if ((str) != NULL) { \
usr/src/cmd/sendmail/db/db/db_appinit.c
304
if (__os_abspath(str)) { \
usr/src/cmd/sendmail/db/db/db_appinit.c
309
len = strlen(str); \
usr/src/cmd/sendmail/db/db/db_appinit.c
312
memcpy(p, str, len); \
usr/src/cmd/sendmail/db/os/os_alloc.c
49
__os_strdup(str, storep)
usr/src/cmd/sendmail/db/os/os_alloc.c
50
const char *str;
usr/src/cmd/sendmail/db/os/os_alloc.c
59
size = strlen(str) + 1;
usr/src/cmd/sendmail/db/os/os_alloc.c
63
memcpy(p, str, size);
usr/src/cmd/sendmail/include/sm/gen.h
30
# define SM_RCSID(str)
usr/src/cmd/sendmail/include/sm/gen.h
31
# define SM_IDSTR(id,str)
usr/src/cmd/sendmail/include/sm/gen.h
33
# define SM_RCSID(str) SM_UNUSED(static const char RcsId[]) = str;
usr/src/cmd/sendmail/include/sm/gen.h
34
# define SM_IDSTR(id,str) SM_UNUSED(static const char id[]) = str;
usr/src/cmd/sendmail/include/sm/rpool.h
171
# define sm_rpool_strdup_x(rpool, str) \
usr/src/cmd/sendmail/include/sm/rpool.h
172
strcpy(sm_rpool_malloc_x(rpool, strlen(str) + 1), str)
usr/src/cmd/sendmail/include/sm/string.h
48
sm_strdup_tagged_x __P((const char *str, char *file, int line, int group));
usr/src/cmd/sendmail/include/sm/string.h
53
# define sm_strdup_x(str) strcpy(sm_malloc_x(strlen(str) + 1), str)
usr/src/cmd/sendmail/include/sm/string.h
56
# define sm_pstrdup_x(str) strcpy(sm_pmalloc_x(strlen(str) + 1), str)
usr/src/cmd/sendmail/include/sm/string.h
58
# define sm_strdup_tagged_x(str, file, line, group) \
usr/src/cmd/sendmail/include/sm/string.h
59
strcpy(sm_malloc_tagged_x(strlen(str) + 1, file, line, group), str)
usr/src/cmd/sendmail/libsm/config.c
100
environ[envlen] = (char *) str;
usr/src/cmd/sendmail/libsm/config.c
38
putenv(str)
usr/src/cmd/sendmail/libsm/config.c
39
char *str;
usr/src/cmd/sendmail/libsm/config.c
53
if ((tmp = strchr(str, '=')) == NULL || tmp == str)
usr/src/cmd/sendmail/libsm/config.c
54
matchlen = strlen(str);
usr/src/cmd/sendmail/libsm/config.c
56
matchlen = (int) (tmp - str);
usr/src/cmd/sendmail/libsm/config.c
68
if (strncmp(str, *current, matchlen) == 0)
usr/src/cmd/sendmail/libsm/config.c
71
*current = (char *) str;
usr/src/cmd/sendmail/libsm/debug.c
141
static char str[32] = "[1900-00-00/00:00:00] ";
usr/src/cmd/sendmail/libsm/debug.c
147
snprintf(str, sizeof(str), "[%d-%02d-%02d/%02d:%02d:%02d] ",
usr/src/cmd/sendmail/libsm/debug.c
153
"%ld: %s ", (long) getpid(), str);
usr/src/cmd/sendmail/libsm/exc.c
315
char *str = argv[si].v_str;
usr/src/cmd/sendmail/libsm/exc.c
316
if (str != NULL)
usr/src/cmd/sendmail/libsm/exc.c
317
argv[si].v_str = sm_strdup_x(str);
usr/src/cmd/sendmail/libsm/match.c
111
if (*str >= c && *str <= c2)
usr/src/cmd/sendmail/libsm/match.c
116
if (*str == c)
usr/src/cmd/sendmail/libsm/match.c
123
++str;
usr/src/cmd/sendmail/libsm/match.c
130
if (*pat != *str)
usr/src/cmd/sendmail/libsm/match.c
133
++str;
usr/src/cmd/sendmail/libsm/match.c
45
sm_match(str, pat)
usr/src/cmd/sendmail/libsm/match.c
46
const char *str;
usr/src/cmd/sendmail/libsm/match.c
58
return *str == '\0';
usr/src/cmd/sendmail/libsm/match.c
60
if (*str == '\0')
usr/src/cmd/sendmail/libsm/match.c
63
++str;
usr/src/cmd/sendmail/libsm/match.c
74
if (sm_match(pat, str))
usr/src/cmd/sendmail/libsm/match.c
76
if (*str == '\0')
usr/src/cmd/sendmail/libsm/match.c
78
++str;
usr/src/cmd/sendmail/libsm/snprintf.c
48
sm_snprintf(char *str, size_t n, char const *fmt, ...)
usr/src/cmd/sendmail/libsm/snprintf.c
50
sm_snprintf(str, n, fmt, va_alist)
usr/src/cmd/sendmail/libsm/snprintf.c
51
char *str;
usr/src/cmd/sendmail/libsm/snprintf.c
71
fake.f_bf.smb_base = fake.f_p = (unsigned char *)str;
usr/src/cmd/sendmail/libsm/sscanf.c
70
sm_io_sscanf(const char *str, char const *fmt, ...)
usr/src/cmd/sendmail/libsm/sscanf.c
72
sm_io_sscanf(str, fmt, va_alist)
usr/src/cmd/sendmail/libsm/sscanf.c
73
const char *str;
usr/src/cmd/sendmail/libsm/sscanf.c
84
fake.f_bf.smb_base = fake.f_p = (unsigned char *) str;
usr/src/cmd/sendmail/libsm/sscanf.c
85
fake.f_bf.smb_size = fake.f_r = strlen(str);
usr/src/cmd/sendmail/libsm/strl.c
222
char *str;
usr/src/cmd/sendmail/libsm/strl.c
241
str = SM_VA_ARG(ap, char *);
usr/src/cmd/sendmail/libsm/strl.c
244
for (i = 0; j < len && (dst[j] = str[i]) != 0; i++, j++)
usr/src/cmd/sendmail/libsm/strl.c
248
if (str[i] != '\0')
usr/src/cmd/sendmail/libsm/strl.c
252
j += strlen(str + i);
usr/src/cmd/sendmail/libsm/t-match.c
17
#define try(str, pat, want) \
usr/src/cmd/sendmail/libsm/t-match.c
18
got = sm_match(str, pat); \
usr/src/cmd/sendmail/libsm/t-match.c
22
str, pat, got ? "true" : "false");
usr/src/cmd/sendmail/libsm/vasprintf.c
101
*str = NULL;
usr/src/cmd/sendmail/libsm/vasprintf.c
56
sm_vasprintf(str, fmt, ap)
usr/src/cmd/sendmail/libsm/vasprintf.c
57
char **str;
usr/src/cmd/sendmail/libsm/vasprintf.c
91
*str = (char *)base;
usr/src/cmd/sendmail/libsm/vsnprintf.c
41
sm_vsnprintf(str, n, fmt, ap)
usr/src/cmd/sendmail/libsm/vsnprintf.c
42
char *str;
usr/src/cmd/sendmail/libsm/vsnprintf.c
58
str = &dummy;
usr/src/cmd/sendmail/libsm/vsnprintf.c
66
fake.f_bf.smb_base = fake.f_p = (unsigned char *)str;
usr/src/cmd/sendmail/src/macro.c
722
wordinclass(str, cl)
usr/src/cmd/sendmail/src/macro.c
723
char *str;
usr/src/cmd/sendmail/src/macro.c
728
s = stab(str, ST_CLASS, ST_FIND);
usr/src/cmd/sendmail/src/main.c
3984
to8bit(str)
usr/src/cmd/sendmail/src/main.c
3985
char *str;
usr/src/cmd/sendmail/src/main.c
3991
if (str == NULL)
usr/src/cmd/sendmail/src/main.c
3993
in = out = str;
usr/src/cmd/sendmail/src/main.c
3996
while ((c = (*str++ & 0377)) != '\0')
usr/src/cmd/sendmail/src/main.c
4002
(nxtc = (*str & 0377)) == '0')
usr/src/cmd/sendmail/src/main.c
4005
while ((nxtc = (*str & 0377)) != '\0' &&
usr/src/cmd/sendmail/src/main.c
4010
++str;
usr/src/cmd/sendmail/src/map.c
3125
char *str;
usr/src/cmd/sendmail/src/map.c
3149
str = map_rewrite(map, name, strlen(name), NULL);
usr/src/cmd/sendmail/src/map.c
3151
str = map_rewrite(map, p, vsize, av);
usr/src/cmd/sendmail/src/map.c
3154
return str;
usr/src/cmd/sendmail/src/map.c
3327
ldapmap_dequote(str)
usr/src/cmd/sendmail/src/map.c
3328
char *str;
usr/src/cmd/sendmail/src/map.c
3333
if (str == NULL)
usr/src/cmd/sendmail/src/map.c
3336
p = str;
usr/src/cmd/sendmail/src/map.c
3343
return str;
usr/src/cmd/sendmail/src/map.c
3525
sunet_id_hash(str)
usr/src/cmd/sendmail/src/map.c
3526
char *str;
usr/src/cmd/sendmail/src/map.c
3530
p = str;
usr/src/cmd/sendmail/src/map.c
3548
return str;
usr/src/cmd/sendmail/src/map.c
3550
# define SM_CONVERT_ID(str) sunet_id_hash(str)
usr/src/cmd/sendmail/src/map.c
3552
# define SM_CONVERT_ID(str) makelower(str)
usr/src/cmd/sendmail/src/milter.c
2931
addleadingspace(str, rp)
usr/src/cmd/sendmail/src/milter.c
2932
char *str;
usr/src/cmd/sendmail/src/milter.c
2938
SM_ASSERT(str != NULL);
usr/src/cmd/sendmail/src/milter.c
2939
l = strlen(str);
usr/src/cmd/sendmail/src/milter.c
2944
sm_strlcpy(new + 1, str, l + 1);
usr/src/cmd/sendmail/src/readcf.c
2361
#define SET_STRING_EXP(str) \
usr/src/cmd/sendmail/src/readcf.c
2364
if (str != NULL) \
usr/src/cmd/sendmail/src/readcf.c
2365
sm_free(str); \
usr/src/cmd/sendmail/src/readcf.c
2367
str = newval; \
usr/src/cmd/sendmail/src/readcf.c
4025
setclass(class, str)
usr/src/cmd/sendmail/src/readcf.c
4027
char *str;
usr/src/cmd/sendmail/src/readcf.c
4031
if ((str[0] & 0377) == MATCHCLASS)
usr/src/cmd/sendmail/src/readcf.c
4035
str++;
usr/src/cmd/sendmail/src/readcf.c
4036
mid = macid(str);
usr/src/cmd/sendmail/src/readcf.c
4048
sm_dprintf("setclass(%s, %s)\n", macname(class), str);
usr/src/cmd/sendmail/src/readcf.c
4050
s = stab(str, ST_CLASS, ST_ENTER);
usr/src/cmd/sendmail/src/srvrsmtp.c
373
# define MILTER_REPLY(str) \
usr/src/cmd/sendmail/src/srvrsmtp.c
385
str, addr); \
usr/src/cmd/sendmail/src/srvrsmtp.c
403
str, addr, response); \
usr/src/cmd/sendmail/src/srvrsmtp.c
426
str, addr); \
usr/src/cmd/sendmail/src/srvrsmtp.c
436
str, addr); \
usr/src/cmd/sendmail/src/srvrsmtp.c
446
str, addr, MSG_TEMPFAIL); \
usr/src/cmd/sendmail/src/tls.c
1469
char *str;
usr/src/cmd/sendmail/src/tls.c
1482
str = "SSL_connect";
usr/src/cmd/sendmail/src/tls.c
1484
str = "SSL_accept";
usr/src/cmd/sendmail/src/tls.c
1486
str = "undefined";
usr/src/cmd/sendmail/src/tls.c
1493
str, SSL_state_string_long(s));
usr/src/cmd/sendmail/src/tls.c
1497
str = bitset(SSL_CB_READ, where) ? "read" : "write";
usr/src/cmd/sendmail/src/tls.c
1501
str, SSL_alert_type_string_long(ret),
usr/src/cmd/sendmail/src/tls.c
1511
str, SSL_state_string_long(s));
usr/src/cmd/sendmail/src/tls.c
1518
str, SSL_state_string_long(s));
usr/src/cmd/sendmail/src/util.c
402
truncate_at_delim(str, len, delim)
usr/src/cmd/sendmail/src/util.c
403
char *str;
usr/src/cmd/sendmail/src/util.c
409
if (str == NULL || len == 0 || strlen(str) < len)
usr/src/cmd/sendmail/src/util.c
412
*(str + len - 1) = '\0';
usr/src/cmd/sendmail/src/util.c
413
while ((p = strrchr(str, delim)) != NULL)
usr/src/cmd/sendmail/src/util.c
416
if (p - str + 4 < len)
usr/src/cmd/sendmail/src/util.c
420
(void) sm_strlcat(str, "...", len);
usr/src/cmd/sendmail/src/util.c
427
(void) sm_strlcpy(str, "...", len);
usr/src/cmd/sendmail/src/util.c
429
str[0] = '\0';
usr/src/cmd/sendmail/util/rfc2047.c
101
decode_rfc2047(char *str, char *dst, char *charset)
usr/src/cmd/sendmail/util/rfc2047.c
111
if (str == NULL)
usr/src/cmd/sendmail/util/rfc2047.c
118
if (!strchr(str, '='))
usr/src/cmd/sendmail/util/rfc2047.c
121
for (p = str, q = dst; *p; p++) {
usr/src/cmd/sgs/common/strhash.c
37
sgs_str_hash(const char *str)
usr/src/cmd/sgs/common/strhash.c
42
while ((c = *str++) != 0)
usr/src/cmd/sgs/common/string_table.c
196
st_insert(Str_tbl *stp, const char *str)
usr/src/cmd/sgs/common/string_table.c
212
if ((len = strlen(str)) == 0)
usr/src/cmd/sgs/common/string_table.c
249
sn.sn_str = str;
usr/src/cmd/sgs/common/string_table.c
253
snp->sn_str = str;
usr/src/cmd/sgs/common/string_table.c
265
st_delstring(Str_tbl *stp, const char *str)
usr/src/cmd/sgs/common/string_table.c
276
len = strlen(str);
usr/src/cmd/sgs/common/string_table.c
287
sn.sn_str = str;
usr/src/cmd/sgs/common/string_table.c
365
st_string_hash(const char *str)
usr/src/cmd/sgs/common/string_table.c
368
size_t stlen = strlen(str);
usr/src/cmd/sgs/common/string_table.c
375
hashval = st_string_hashround(hashval, str[i]);
usr/src/cmd/sgs/common/string_table.c
389
st_setstring(Str_tbl *stp, const char *str, size_t *stoff)
usr/src/cmd/sgs/common/string_table.c
402
stlen = strlen(str);
usr/src/cmd/sgs/common/string_table.c
422
memcpy(stp->st_strbuf + _stoff, str, stlen);
usr/src/cmd/sgs/common/string_table.c
432
hashval = st_string_hash(str);
usr/src/cmd/sgs/common/string_table.c
443
if (strcmp(str, hstr) == 0)
usr/src/cmd/sgs/common/string_table.c
483
st_hash_insert(Str_tbl *stp, const char *str, size_t len)
usr/src/cmd/sgs/common/string_table.c
497
hashval = st_string_hashround(hashval, str[i]);
usr/src/cmd/sgs/common/string_table.c
511
if (strcmp(&str[i], hstr))
usr/src/cmd/sgs/common/string_table.c
565
mstr->sm_str = str;
usr/src/cmd/sgs/common/string_table.c
728
for (Str_master *str = stp->st_mstrlist; str != NULL;
usr/src/cmd/sgs/common/string_table.c
729
str = str->sm_next) {
usr/src/cmd/sgs/common/string_table.c
732
res = st_setstring(stp, str->sm_str, NULL);
usr/src/cmd/sgs/common/string_table.c
757
const char *str, *end;
usr/src/cmd/sgs/common/string_table.c
761
for (str = stp->st_strbuf; str < end;
usr/src/cmd/sgs/common/string_table.c
762
str += strlen(str) + 1) {
usr/src/cmd/sgs/common/string_table.c
763
if (strcmp(str, needle) == 0)
usr/src/cmd/sgs/common/string_table.c
764
return (str - stp->st_strbuf);
usr/src/cmd/sgs/crle/common/crle.c
398
char *str;
usr/src/cmd/sgs/crle/common/crle.c
403
if ((str = strrchr(crle.c_confil, '/')) == NULL)
usr/src/cmd/sgs/crle/common/crle.c
407
int len = str - crle.c_confil;
usr/src/cmd/sgs/crle/common/crle.c
492
const char *str;
usr/src/cmd/sgs/crle/common/crle.c
552
str = MSG_ORIG(MSG_STR_ELF);
usr/src/cmd/sgs/crle/common/crle.c
558
str, (const char *)optarg);
usr/src/cmd/sgs/crle/common/crle.c
566
str = MSG_ORIG(MSG_STR_ELF);
usr/src/cmd/sgs/crle/common/crle.c
572
str, (const char *)optarg);
usr/src/cmd/sgs/crle/common/depend.c
103
((flt->f_strsz = strlen(str) + 1) == 0) ||
usr/src/cmd/sgs/crle/common/depend.c
116
(void) memcpy((void *)flt->f_str, (void *)str, flt->f_strsz);
usr/src/cmd/sgs/crle/common/depend.c
181
char *str;
usr/src/cmd/sgs/crle/common/depend.c
193
str = strrchr(buffer, '\n');
usr/src/cmd/sgs/crle/common/depend.c
194
*str = '\0';
usr/src/cmd/sgs/crle/common/depend.c
195
str = buffer + MSG_AUD_PRF_SIZE;
usr/src/cmd/sgs/crle/common/depend.c
198
str, MSG_AUD_DEPEND_SIZE) == 0) {
usr/src/cmd/sgs/crle/common/depend.c
202
str += MSG_AUD_DEPEND_SIZE;
usr/src/cmd/sgs/crle/common/depend.c
204
if ((error = inspect(crle, str,
usr/src/cmd/sgs/crle/common/depend.c
209
str, MSG_AUD_FILTER_SIZE) == 0) {
usr/src/cmd/sgs/crle/common/depend.c
215
_flt = str += MSG_AUD_FILTER_SIZE;
usr/src/cmd/sgs/crle/common/depend.c
216
_str = strchr(str, ':');
usr/src/cmd/sgs/crle/common/depend.c
217
*_str++ = '\0'; str = _str++;
usr/src/cmd/sgs/crle/common/depend.c
218
str = strrchr(str, ')');
usr/src/cmd/sgs/crle/common/depend.c
219
*str++ = '\0'; str++;
usr/src/cmd/sgs/crle/common/depend.c
221
str)) != 0)
usr/src/cmd/sgs/crle/common/depend.c
46
filter(Crle_desc *crle, const char *filter, const char *str, const char *filtee)
usr/src/cmd/sgs/crle/common/depend.c
85
(strcmp(flt->f_str, str) != 0))
usr/src/cmd/sgs/crle/common/dump.c
106
str = strrchr(buffer, '\n');
usr/src/cmd/sgs/crle/common/dump.c
107
*str = '\0';
usr/src/cmd/sgs/crle/common/dump.c
108
str = buffer + MSG_AUD_PRF_SIZE;
usr/src/cmd/sgs/crle/common/dump.c
111
str, MSG_AUD_RESBGN_SIZE) == 0) {
usr/src/cmd/sgs/crle/common/dump.c
113
strtoull(str + MSG_AUD_RESBGN_SIZE,
usr/src/cmd/sgs/crle/common/dump.c
116
str, MSG_AUD_RESEND_SIZE) == 0) {
usr/src/cmd/sgs/crle/common/dump.c
118
strtoull(str + MSG_AUD_RESEND_SIZE,
usr/src/cmd/sgs/crle/common/dump.c
93
char *str;
usr/src/cmd/sgs/crle/common/print.c
433
const char *str;
usr/src/cmd/sgs/crle/common/print.c
435
str = (const char *)(head->ch_edlibpath + addr);
usr/src/cmd/sgs/crle/common/print.c
441
str = conv_config_upm(str,
usr/src/cmd/sgs/crle/common/print.c
446
str = conv_config_upm(str,
usr/src/cmd/sgs/crle/common/print.c
451
if (addlib(crle, &crle->c_edlibpath, str) != 0)
usr/src/cmd/sgs/crle/common/print.c
455
MSG_ORIG(MSG_STR_ELF), str);
usr/src/cmd/sgs/crle/common/print.c
458
MSG_ORIG(MSG_CMD_EDLIB), str);
usr/src/cmd/sgs/crle/common/print.c
490
const char *str;
usr/src/cmd/sgs/crle/common/print.c
492
str = (const char *)(head->ch_eslibpath + addr);
usr/src/cmd/sgs/crle/common/print.c
498
str = conv_config_upm(str,
usr/src/cmd/sgs/crle/common/print.c
503
str = conv_config_upm(str,
usr/src/cmd/sgs/crle/common/print.c
508
if (addlib(crle, &crle->c_eslibpath, str) != 0)
usr/src/cmd/sgs/crle/common/print.c
512
MSG_ORIG(MSG_STR_ELF), str);
usr/src/cmd/sgs/crle/common/print.c
515
MSG_ORIG(MSG_CMD_ESLIB), str);
usr/src/cmd/sgs/crle/common/print.c
557
const char *str;
usr/src/cmd/sgs/crle/common/print.c
559
str = (const char *)(envtbl->env_str + addr);
usr/src/cmd/sgs/crle/common/print.c
562
if (addenv(crle, str,
usr/src/cmd/sgs/crle/common/print.c
575
(void) printf(pfmt, str);
usr/src/cmd/sgs/crle/common/print.c
576
(void) snprintf(_cmd, PATH_MAX, sfmt, str);
usr/src/cmd/sgs/crle/common/print.c
654
const char *str;
usr/src/cmd/sgs/crle/common/print.c
658
str = strtbl + dobj->co_name;
usr/src/cmd/sgs/crle/common/print.c
668
if (inspect(crle, str,
usr/src/cmd/sgs/crle/common/print.c
678
getformat(dobj->co_flags), str);
usr/src/cmd/sgs/crle/common/print.c
698
(void) printf(MSG_INTL(MSG_DMP_DIR_2), str);
usr/src/cmd/sgs/crle/common/print.c
702
(void) printf(MSG_INTL(MSG_DMP_DIR_1), str);
usr/src/cmd/sgs/crle/common/print.c
712
if (stat(str, &status) != 0) {
usr/src/cmd/sgs/crle/common/print.c
714
(void) printf(MSG_INTL(MSG_DMP_STAT), str,
usr/src/cmd/sgs/crle/common/print.c
717
(void) printf(MSG_INTL(MSG_DMP_DCMP), str);
usr/src/cmd/sgs/crle/common/print.c
726
str = strtbl + fobj->co_name;
usr/src/cmd/sgs/crle/common/print.c
763
if (inspect(crle, str,
usr/src/cmd/sgs/crle/common/print.c
782
getformat(flags), str);
usr/src/cmd/sgs/crle/common/print.c
798
if ((strchr(str, '/') == 0) ||
usr/src/cmd/sgs/crle/common/print.c
802
str, (strtbl + fobj->co_alter));
usr/src/cmd/sgs/crle/common/print.c
805
str);
usr/src/cmd/sgs/crle/common/print.c
814
if (stat(str, &status) != 0) {
usr/src/cmd/sgs/crle/common/print.c
817
str, strerror(err));
usr/src/cmd/sgs/crle/common/print.c
820
str);
usr/src/cmd/sgs/crle/common/print.c
849
const char *str;
usr/src/cmd/sgs/crle/common/print.c
856
str = strtbl + obj->co_name;
usr/src/cmd/sgs/crle/common/print.c
859
str, conv_config_obj(obj->co_flags, &config_obj_buf));
usr/src/cmd/sgs/crle/common/print.c
867
str = strtbl + obj->co_name;
usr/src/cmd/sgs/crle/common/print.c
870
str, conv_config_obj(obj->co_flags,
usr/src/cmd/sgs/crle/common/util.c
168
char *str, *arg;
usr/src/cmd/sgs/crle/common/util.c
176
str = alloca(tlen);
usr/src/cmd/sgs/crle/common/util.c
177
(void) strcpy(str, args);
usr/src/cmd/sgs/crle/common/util.c
178
arg = str;
usr/src/cmd/sgs/crle/common/util.c
189
if (((str = strstr(*lib, arg)) != NULL) &&
usr/src/cmd/sgs/crle/common/util.c
190
(((str == *lib) ||
usr/src/cmd/sgs/crle/common/util.c
191
(*(str - 1) == *colon)) &&
usr/src/cmd/sgs/crle/common/util.c
192
(str += alen) &&
usr/src/cmd/sgs/crle/common/util.c
193
((*str == '\0') || (*str == *colon))))
usr/src/cmd/sgs/crle/common/util.c
215
if ((str = realloc((void *)*lib, tlen)) == 0) {
usr/src/cmd/sgs/crle/common/util.c
222
(void) strcpy(str, arg);
usr/src/cmd/sgs/crle/common/util.c
225
(void) sprintf(&str[llen],
usr/src/cmd/sgs/crle/common/util.c
228
*lib = str;
usr/src/cmd/sgs/crle/common/util.c
48
char *str;
usr/src/cmd/sgs/crle/common/util.c
55
if ((str = strchr(arg, '=')) != NULL) {
usr/src/cmd/sgs/crle/common/util.c
58
varsz = (size_t)(str - arg);
usr/src/cmd/sgs/demo_rdb/common/dis.c
131
"%s+0x%lx", str, address - val);
usr/src/cmd/sgs/demo_rdb/common/dis.c
133
(void) strlcat(buf, str, 256);
usr/src/cmd/sgs/demo_rdb/common/dis.c
71
char *str;
usr/src/cmd/sgs/demo_rdb/common/dis.c
75
if (addr_to_sym(ph, address, &sym, &str) == RET_OK) {
usr/src/cmd/sgs/demo_rdb/common/gram.y
41
char *str;
usr/src/cmd/sgs/demo_rdb/common/gram.y
47
%type <str> SYMBOL QSTRING VARSTRING
usr/src/cmd/sgs/demo_rdb/common/syms.c
124
addr_map_sym(map_info_t *mp, ulong_t addr, GElf_Sym *symptr, char **str)
usr/src/cmd/sgs/demo_rdb/common/syms.c
202
*str = (char *)(symp->st_strs + symptr->st_name);
usr/src/cmd/sgs/demo_rdb/common/syms.c
209
GElf_Sym *symp, char **str)
usr/src/cmd/sgs/demo_rdb/common/syms.c
216
return (addr_map_sym(mip, addr, symp, str));
usr/src/cmd/sgs/demo_rdb/common/syms.c
53
str_map_sym(const char *symname, map_info_t *mp, GElf_Sym *symptr, char **str)
usr/src/cmd/sgs/demo_rdb/common/syms.c
82
if (str != NULL)
usr/src/cmd/sgs/demo_rdb/common/syms.c
83
*str = (char *)strs + symptr->st_name;
usr/src/cmd/sgs/demo_rdb/common/utils.c
44
hexstr_to_num(const char *str)
usr/src/cmd/sgs/demo_rdb/common/utils.c
47
size_t i, len = strlen(str);
usr/src/cmd/sgs/demo_rdb/common/utils.c
50
if (str[i] >= '0' && str[i] <= '9')
usr/src/cmd/sgs/demo_rdb/common/utils.c
51
num = num * 16 +((int)str[i] - (int)'0');
usr/src/cmd/sgs/demo_rdb/common/utils.c
52
else if (str[i] >= 'a' && str[i] <= 'f')
usr/src/cmd/sgs/demo_rdb/common/utils.c
53
num = num * 16 +((int)str[i] - (int)'a' + 10);
usr/src/cmd/sgs/demo_rdb/common/utils.c
54
else if (str[i] >= 'A' && str[i] <= 'F')
usr/src/cmd/sgs/demo_rdb/common/utils.c
55
num = num * 16 + ((int)str[i] - (int)'A' + 10);
usr/src/cmd/sgs/dump/common/dump.c
1082
const char *str;
usr/src/cmd/sgs/dump/common/dump.c
1189
str = (char *)elf_strptr(elf_file, link,
usr/src/cmd/sgs/dump/common/dump.c
1191
if (!(str && *str))
usr/src/cmd/sgs/dump/common/dump.c
1192
str = (char *)UNKNOWN;
usr/src/cmd/sgs/dump/common/dump.c
1193
(void) printf("%s", str);
usr/src/cmd/sgs/dump/common/dump.c
1242
str = NULL;
usr/src/cmd/sgs/dump/common/dump.c
1246
str = conv_dyn_flag(
usr/src/cmd/sgs/dump/common/dump.c
1252
str = conv_dyn_feature1(
usr/src/cmd/sgs/dump/common/dump.c
1258
str = conv_dyn_posflag1(
usr/src/cmd/sgs/dump/common/dump.c
1264
str = conv_dyn_flag1(
usr/src/cmd/sgs/dump/common/dump.c
1269
str = conv_ehdr_mach(
usr/src/cmd/sgs/dump/common/dump.c
1275
if (str) { /* Show as string */
usr/src/cmd/sgs/dump/common/dump.c
1276
(void) printf("%s", str);
usr/src/cmd/sgs/elfdump/common/corenote.c
139
safe_str(const char *str, size_t n)
usr/src/cmd/sgs/elfdump/common/corenote.c
152
if (str[i] == '\0')
usr/src/cmd/sgs/elfdump/common/corenote.c
153
return (str);
usr/src/cmd/sgs/elfdump/common/corenote.c
155
if (!isascii(str[i]) || !isprint(str[i])) {
usr/src/cmd/sgs/elfdump/common/corenote.c
161
if (str[i] == '\0') {
usr/src/cmd/sgs/elfdump/common/corenote.c
164
buf[used++] = str[i];
usr/src/cmd/sgs/elfdump/common/corenote.c
166
} else if (isascii(str[i]) && isprint(str[i])) {
usr/src/cmd/sgs/elfdump/common/corenote.c
169
buf[used++] = str[i];
usr/src/cmd/sgs/elfdump/common/corenote.c
171
size_t len = snprintf(NULL, 0, "\\x%02x", str[i]);
usr/src/cmd/sgs/elfdump/common/corenote.c
175
"\\x%02x", str[i]);
usr/src/cmd/sgs/elfdump/common/corenote.c
360
print_str(note_state_t *state, const char *title, const char *str)
usr/src/cmd/sgs/elfdump/common/corenote.c
363
state->ns_vcol - state->ns_indent, title, str);
usr/src/cmd/sgs/elfdump/common/elfdump.c
4018
const char *symname, *str;
usr/src/cmd/sgs/elfdump/common/elfdump.c
4034
str = (const char *)_bucket;
usr/src/cmd/sgs/elfdump/common/elfdump.c
4036
str = MSG_ORIG(MSG_STR_EMPTY);
usr/src/cmd/sgs/elfdump/common/elfdump.c
4040
dbg_print(0, MSG_ORIG(MSG_FMT_HASH_INFO), str, _symndx,
usr/src/cmd/sgs/elfdump/common/elfdump.c
876
#define CHECK(str, pfield, sfield) \
usr/src/cmd/sgs/elfdump/common/elfdump.c
882
str, \
usr/src/cmd/sgs/elfdump/common/main.c
178
dump_hex_bytes_cb(void *arg, uint64_t addr, const char *str,
usr/src/cmd/sgs/elfdump/common/main.c
191
index_width, index, str);
usr/src/cmd/sgs/elfdump/common/main.c
225
process_index_opt(const char *str, match_rec_t *rec)
usr/src/cmd/sgs/elfdump/common/main.c
227
#define SKIP_BLANK for (; *str && isspace(*str); str++)
usr/src/cmd/sgs/elfdump/common/main.c
231
rec->value.ndx.start = strtol(str, &endptr, 10);
usr/src/cmd/sgs/elfdump/common/main.c
233
if ((str == endptr) || (rec->value.ndx.start < 0))
usr/src/cmd/sgs/elfdump/common/main.c
235
str = endptr;
usr/src/cmd/sgs/elfdump/common/main.c
238
if (*str != ':') {
usr/src/cmd/sgs/elfdump/common/main.c
241
str++; /* Skip the ':' */
usr/src/cmd/sgs/elfdump/common/main.c
244
if (*str == '\0') {
usr/src/cmd/sgs/elfdump/common/main.c
247
rec->value.ndx.end = strtol(str, &endptr, 10);
usr/src/cmd/sgs/elfdump/common/main.c
248
if ((str == endptr) || (rec->value.ndx.end < 0))
usr/src/cmd/sgs/elfdump/common/main.c
250
str = endptr;
usr/src/cmd/sgs/elfdump/common/main.c
256
if (*str != '\0')
usr/src/cmd/sgs/elfdump/common/main.c
286
atoui(const char *str, atoui_type_t type, uint32_t *v)
usr/src/cmd/sgs/elfdump/common/main.c
291
if (conv_iter_strtol_init(str, &uvalue) != 0) {
usr/src/cmd/sgs/elfdump/common/main.c
322
*v = strtoull(str, &endptr, 0);
usr/src/cmd/sgs/elfdump/common/main.c
343
const char *str;
usr/src/cmd/sgs/elfdump/common/main.c
385
str = list->value.name;
usr/src/cmd/sgs/elfdump/common/main.c
386
if (atoui(str, atoui_type, &list->value.type) == 0) {
usr/src/cmd/sgs/elfdump/common/main.c
391
(void) fprintf(stderr, fmt, basename(argv0), str);
usr/src/cmd/sgs/elfedit/common/_elfedit.h
227
extern int elfedit_atooutstyle(const char *str, elfedit_outstyle_t *outstyle);
usr/src/cmd/sgs/elfedit/common/_elfedit.h
232
extern void elfedit_set_cmd_outstyle(const char *str);
usr/src/cmd/sgs/elfedit/common/elfconst.c
234
libconv_count_cb(const char *str, Conv_elfvalue_t value, void *uvalue)
usr/src/cmd/sgs/elfedit/common/elfconst.c
252
libconv_fill_cb(const char *str, Conv_elfvalue_t value, void *uvalue)
usr/src/cmd/sgs/elfedit/common/elfconst.c
257
sym->sym_name = str;
usr/src/cmd/sgs/elfedit/common/elfedit.c
1072
static STRBUF str;
usr/src/cmd/sgs/elfedit/common/elfedit.c
1109
strbuf_ensure_size(&str, n);
usr/src/cmd/sgs/elfedit/common/elfedit.c
1112
cur = str.buf;
usr/src/cmd/sgs/elfedit/common/elfedit.c
1113
n = str.n;
usr/src/cmd/sgs/elfedit/common/elfedit.c
1125
usage_optarg(str.n, &cur, &n, &cur_col, cmd->cmd_opt,
usr/src/cmd/sgs/elfedit/common/elfedit.c
1128
usage_optarg(str.n, &cur, &n, &cur_col, cmd->cmd_args,
usr/src/cmd/sgs/elfedit/common/elfedit.c
1131
return (str.buf);
usr/src/cmd/sgs/elfedit/common/elfedit.c
1168
elfedit_set_cmd_outstyle(const char *str)
usr/src/cmd/sgs/elfedit/common/elfedit.c
1170
if ((state.cur_cmd != NULL) && (str != NULL)) {
usr/src/cmd/sgs/elfedit/common/elfedit.c
1171
if (elfedit_atooutstyle(str, &state.cur_cmd->ucmd_ostyle) == 0)
usr/src/cmd/sgs/elfedit/common/elfedit.c
1173
MSG_INTL(MSG_ERR_BADOSTYLE), str);
usr/src/cmd/sgs/elfedit/common/elfedit.c
2274
char *str = gettok_state->gtok_cur_buf;
usr/src/cmd/sgs/elfedit/common/elfedit.c
2279
while (isspace(*str))
usr/src/cmd/sgs/elfedit/common/elfedit.c
2280
str++;
usr/src/cmd/sgs/elfedit/common/elfedit.c
2282
if (*str == '\0') {
usr/src/cmd/sgs/elfedit/common/elfedit.c
2291
gettok_state->gtok_last_token.tok_str = str;
usr/src/cmd/sgs/elfedit/common/elfedit.c
2294
str - gettok_state->gtok_buf;
usr/src/cmd/sgs/elfedit/common/elfedit.c
2306
gettok_state->gtok_last_token.tok_str = look = str;
usr/src/cmd/sgs/elfedit/common/elfedit.c
2340
*str++ = *look;
usr/src/cmd/sgs/elfedit/common/elfedit.c
2357
*str++ = ch;
usr/src/cmd/sgs/elfedit/common/elfedit.c
2363
if (look != str)
usr/src/cmd/sgs/elfedit/common/elfedit.c
2364
*str = *look;
usr/src/cmd/sgs/elfedit/common/elfedit.c
2365
str++;
usr/src/cmd/sgs/elfedit/common/elfedit.c
2373
gettok_state->gtok_last_token.tok_len = str -
usr/src/cmd/sgs/elfedit/common/elfedit.c
2378
*str = '\0';
usr/src/cmd/sgs/elfedit/common/elfedit.c
2428
static STRBUF str;
usr/src/cmd/sgs/elfedit/common/elfedit.c
2442
strbuf_ensure_size(&str, tokst.tokst_cmd_len);
usr/src/cmd/sgs/elfedit/common/elfedit.c
2443
(void) strlcpy(str.buf, user_cmd_str, tokst.tokst_cmd_len);
usr/src/cmd/sgs/elfedit/common/elfedit.c
2447
(str.buf[tokst.tokst_cmd_len - 2] == '\n')) {
usr/src/cmd/sgs/elfedit/common/elfedit.c
2449
str.buf[tokst.tokst_cmd_len - 1] = '\0';
usr/src/cmd/sgs/elfedit/common/elfedit.c
2453
gettok_init(&gettok_state, str.buf, inc_null_final);
usr/src/cmd/sgs/elfedit/common/elfedit.c
2921
elfedit_cpl_match(void *cpldata, const char *str, int casefold)
usr/src/cmd/sgs/elfedit/common/elfedit.c
2932
if ((str == NULL) || (*str == '\0') ||
usr/src/cmd/sgs/elfedit/common/elfedit.c
2934
((strlen(str) < cstate->ecpl_token_len))))
usr/src/cmd/sgs/elfedit/common/elfedit.c
2939
if (strncasecmp(cstate->ecpl_token_str, str,
usr/src/cmd/sgs/elfedit/common/elfedit.c
2943
if (strncmp(cstate->ecpl_token_str, str,
usr/src/cmd/sgs/elfedit/common/elfedit.c
2956
str + cstate->ecpl_token_len, type_suffix, cont_suffix);
usr/src/cmd/sgs/elfedit/common/elfedit.c
626
elfedit_str_to_c_literal(const char *str, elfedit_write_func_t *outfunc)
usr/src/cmd/sgs/elfedit/common/elfedit.c
628
conv_str_to_c_literal(str, strlen(str),
usr/src/cmd/sgs/elfedit/common/elfedit.c
674
strbuf_ensure_size(STRBUF *str, size_t size)
usr/src/cmd/sgs/elfedit/common/elfedit.c
680
n = (str->n == 0) ? INITIAL_STR_ALLOC : str->n;
usr/src/cmd/sgs/elfedit/common/elfedit.c
683
if (n != str->n) { /* Alloc new string buffer if needed */
usr/src/cmd/sgs/elfedit/common/elfedit.c
684
str->buf = elfedit_realloc(MSG_INTL(MSG_ALLOC_UCMDSTR),
usr/src/cmd/sgs/elfedit/common/elfedit.c
685
str->buf, n);
usr/src/cmd/sgs/elfedit/common/elfedit.c
686
str->n = n;
usr/src/cmd/sgs/elfedit/common/sys.c
180
write_help_str(const char *str, const char *prefix)
usr/src/cmd/sgs/elfedit/common/sys.c
184
if (str == NULL)
usr/src/cmd/sgs/elfedit/common/sys.c
186
while (*str) {
usr/src/cmd/sgs/elfedit/common/sys.c
187
i = strcspn(str, MSG_ORIG(MSG_STR_NL));
usr/src/cmd/sgs/elfedit/common/sys.c
188
if (*(str + i) != '\0')
usr/src/cmd/sgs/elfedit/common/sys.c
191
elfedit_write(str, i);
usr/src/cmd/sgs/elfedit/common/sys.c
192
str += i;
usr/src/cmd/sgs/elfedit/common/sys.c
374
const char *str = argv[i];
usr/src/cmd/sgs/elfedit/common/sys.c
375
int len = colon - str;
usr/src/cmd/sgs/elfedit/common/sys.c
380
(void) strncpy(buf, str, len);
usr/src/cmd/sgs/elfedit/common/sys.c
382
str = buf;
usr/src/cmd/sgs/elfedit/common/sys.c
384
item[i].mod = elfedit_load_module(str, 1, 0);
usr/src/cmd/sgs/elfedit/common/util.c
133
atoi_sym_process(const char *str, const elfedit_atoi_sym_t *sym,
usr/src/cmd/sgs/elfedit/common/util.c
139
while (isspace(*str))
usr/src/cmd/sgs/elfedit/common/util.c
140
str++;
usr/src/cmd/sgs/elfedit/common/util.c
142
tail = str + strlen(str);
usr/src/cmd/sgs/elfedit/common/util.c
143
while ((tail > str) && isspace(*(tail - 1)))
usr/src/cmd/sgs/elfedit/common/util.c
146
cmp_len = tail - str;
usr/src/cmd/sgs/elfedit/common/util.c
150
(strncasecmp(sym->sym_name, str, cmp_len) == 0)) {
usr/src/cmd/sgs/elfedit/common/util.c
160
atoui_sym_process(const char *str, const elfedit_atoui_sym_t *sym,
usr/src/cmd/sgs/elfedit/common/util.c
166
while (isspace(*str))
usr/src/cmd/sgs/elfedit/common/util.c
167
str++;
usr/src/cmd/sgs/elfedit/common/util.c
169
tail = str + strlen(str);
usr/src/cmd/sgs/elfedit/common/util.c
170
while ((tail > str) && isspace(*(tail - 1)))
usr/src/cmd/sgs/elfedit/common/util.c
173
cmp_len = tail - str;
usr/src/cmd/sgs/elfedit/common/util.c
177
(strncasecmp(sym->sym_name, str, cmp_len) == 0)) {
usr/src/cmd/sgs/elfedit/common/util.c
237
elfedit_atoi2(const char *str, const elfedit_atoi_sym_t *sym, elfedit_atoi_t *v)
usr/src/cmd/sgs/elfedit/common/util.c
241
if (sym && atoi_sym_process(str, sym, v))
usr/src/cmd/sgs/elfedit/common/util.c
244
*v = strtoll(str, &endptr, 0);
usr/src/cmd/sgs/elfedit/common/util.c
253
elfedit_atoi(const char *str, const elfedit_atoi_sym_t *sym)
usr/src/cmd/sgs/elfedit/common/util.c
256
if (elfedit_atoi2(str, sym, &v) == 0)
usr/src/cmd/sgs/elfedit/common/util.c
258
MSG_INTL(MSG_ERR_BADATOISTR), str);
usr/src/cmd/sgs/elfedit/common/util.c
262
elfedit_atoui2(const char *str, const elfedit_atoui_sym_t *sym,
usr/src/cmd/sgs/elfedit/common/util.c
267
if (sym && atoui_sym_process(str, sym, v))
usr/src/cmd/sgs/elfedit/common/util.c
270
*v = strtoull(str, &endptr, 0);
usr/src/cmd/sgs/elfedit/common/util.c
279
elfedit_atoui(const char *str, const elfedit_atoui_sym_t *sym)
usr/src/cmd/sgs/elfedit/common/util.c
282
if (elfedit_atoui2(str, sym, &v) == 0)
usr/src/cmd/sgs/elfedit/common/util.c
284
MSG_INTL(MSG_ERR_BADATOISTR), str);
usr/src/cmd/sgs/elfedit/common/util.c
288
elfedit_atoconst2(const char *str, elfedit_const_t const_type,
usr/src/cmd/sgs/elfedit/common/util.c
291
return (elfedit_atoui2(str, elfedit_const_to_atoui(const_type), v));
usr/src/cmd/sgs/elfedit/common/util.c
294
elfedit_atoconst(const char *str, elfedit_const_t const_type)
usr/src/cmd/sgs/elfedit/common/util.c
296
return (elfedit_atoui(str, elfedit_const_to_atoui(const_type)));
usr/src/cmd/sgs/elfedit/common/util.c
328
elfedit_atoi_range2(const char *str, elfedit_atoi_t min, elfedit_atoi_t max,
usr/src/cmd/sgs/elfedit/common/util.c
331
return ((elfedit_atoi2(str, sym, v) != 0) &&
usr/src/cmd/sgs/elfedit/common/util.c
335
elfedit_atoi_range(const char *str, const char *item_name,
usr/src/cmd/sgs/elfedit/common/util.c
338
elfedit_atoi_t v = elfedit_atoi(str, sym);
usr/src/cmd/sgs/elfedit/common/util.c
347
elfedit_atoui_range2(const char *str, elfedit_atoui_t min, elfedit_atoui_t max,
usr/src/cmd/sgs/elfedit/common/util.c
350
return ((elfedit_atoui2(str, sym, v) != 0) &&
usr/src/cmd/sgs/elfedit/common/util.c
354
elfedit_atoui_range(const char *str, const char *item_name,
usr/src/cmd/sgs/elfedit/common/util.c
357
elfedit_atoui_t v = elfedit_atoui(str, sym);
usr/src/cmd/sgs/elfedit/common/util.c
366
elfedit_atoconst_range2(const char *str, elfedit_atoui_t min,
usr/src/cmd/sgs/elfedit/common/util.c
369
return (elfedit_atoui_range2(str, min, max,
usr/src/cmd/sgs/elfedit/common/util.c
373
elfedit_atoconst_range(const char *str, const char *item_name,
usr/src/cmd/sgs/elfedit/common/util.c
376
return (elfedit_atoui_range(str, item_name, min, max,
usr/src/cmd/sgs/elfedit/common/util.c
386
elfedit_atobool(const char *str, const char *item_name)
usr/src/cmd/sgs/elfedit/common/util.c
389
return (elfedit_atoconst_range(str, item_name, 0, 1,
usr/src/cmd/sgs/elfedit/common/util.c
411
elfedit_atoshndx(const char *str, size_t shnum)
usr/src/cmd/sgs/elfedit/common/util.c
415
ndx = elfedit_atoconst(str, ELFEDIT_CONST_SHN);
usr/src/cmd/sgs/elfedit/common/util.c
433
elfedit_atooutstyle(const char *str, elfedit_outstyle_t *outstyle)
usr/src/cmd/sgs/elfedit/common/util.c
438
ret = atoui_sym_process(str,
usr/src/cmd/sgs/elfedit/common/util_machelf.c
1038
if (elfedit_sec_findstr(strsec, tail_ign, str, &len) != 0)
usr/src/cmd/sgs/elfedit/common/util_machelf.c
1045
if (is_dynstr && (tail_ign > strlen(str)))
usr/src/cmd/sgs/elfedit/common/util_machelf.c
1079
elfedit_section_t *dynsec, const char *str)
usr/src/cmd/sgs/elfedit/common/util_machelf.c
1114
&dyn_strpad, str));
usr/src/cmd/sgs/elfedit/common/util_machelf.c
1121
if (elfedit_sec_findstr(strsec, 0, str, &len))
usr/src/cmd/sgs/elfedit/common/util_machelf.c
1154
const char *str;
usr/src/cmd/sgs/elfedit/common/util_machelf.c
1170
str = MSG_INTL(MSG_BADSYMOFFSETNAM);
usr/src/cmd/sgs/elfedit/common/util_machelf.c
1173
str = ((const char *)strsec->sec_data->d_buf) + offset;
usr/src/cmd/sgs/elfedit/common/util_machelf.c
1179
EC_WORD(offset), str);
usr/src/cmd/sgs/elfedit/common/util_machelf.c
1180
return (str);
usr/src/cmd/sgs/elfedit/common/util_machelf.c
809
const char *str, Word *ret_offset)
usr/src/cmd/sgs/elfedit/common/util_machelf.c
811
int str_fch = *str; /* First character in str */
usr/src/cmd/sgs/elfedit/common/util_machelf.c
831
if ((*s == str_fch) && (strcmp(s, str) == 0)) {
usr/src/cmd/sgs/elfedit/common/util_machelf.c
915
elfedit_dyn_elt_t *dyn_strpad, const char *str)
usr/src/cmd/sgs/elfedit/common/util_machelf.c
926
if (elfedit_sec_findstr(strsec, tail_ign, str, &len))
usr/src/cmd/sgs/elfedit/common/util_machelf.c
933
len = strlen(str) + 1;
usr/src/cmd/sgs/elfedit/common/util_machelf.c
952
EC_WORD(dyn_strpad->dn_dyn.d_un.d_val), str);
usr/src/cmd/sgs/elfedit/common/util_machelf.c
959
(void) strncpy(s, str, dyn_strpad->dn_dyn.d_un.d_val);
usr/src/cmd/sgs/elfedit/common/util_machelf.c
993
elfedit_section_t *strsec, elfedit_section_t *dynsec, const char *str)
usr/src/cmd/sgs/elfedit/modules/common/cap.c
135
} str;
usr/src/cmd/sgs/elfedit/modules/common/cap.c
162
if (argstate->str.sec != NULL)
usr/src/cmd/sgs/elfedit/modules/common/cap.c
178
argstate->str.sec = elfedit_sec_getstr(argstate->obj_state,
usr/src/cmd/sgs/elfedit/modules/common/cap.c
231
return (elfedit_offset_to_str(argstate->str.sec,
usr/src/cmd/sgs/elfedit/modules/common/cap.c
347
argstate->str.sec, cap->c_un.c_val,
usr/src/cmd/sgs/elfedit/modules/common/cap.c
392
const char *str;
usr/src/cmd/sgs/elfedit/modules/common/cap.c
418
if (argstate->str.sec == NULL) {
usr/src/cmd/sgs/elfedit/modules/common/cap.c
419
str = NULL;
usr/src/cmd/sgs/elfedit/modules/common/cap.c
422
str = (const char *)argstate->str.sec->sec_data->d_buf;
usr/src/cmd/sgs/elfedit/modules/common/cap.c
423
str_size = argstate->str.sec->sec_data->d_size;
usr/src/cmd/sgs/elfedit/modules/common/cap.c
446
if (argstate->str.sec == NULL)
usr/src/cmd/sgs/elfedit/modules/common/cap.c
466
Elf_cap_entry(NULL, cap, ndx, str, str_size,
usr/src/cmd/sgs/elfedit/modules/common/cap.c
533
argstate->str.sec, cap->c_un.c_val,
usr/src/cmd/sgs/elfedit/modules/common/cap.c
913
argstate.str.sec, NULL, argstate.argv[1]);
usr/src/cmd/sgs/elfedit/modules/common/phdr.c
319
interp->str = ((char *)strsec->sec_data->d_buf) +
usr/src/cmd/sgs/elfedit/modules/common/phdr.c
321
return (interp->str);
usr/src/cmd/sgs/elfedit/modules/common/phdr.c
423
interp.sec->sec_name, interp.str);
usr/src/cmd/sgs/elfedit/modules/common/phdr.c
426
elfedit_printf(MSG_ORIG(MSG_FMT_STRNL), interp.str);
usr/src/cmd/sgs/elfedit/modules/common/phdr.c
533
if (strcmp(interp.str, argstate->argv[0]) == 0) {
usr/src/cmd/sgs/elfedit/modules/common/phdr.c
536
EC_WORD(str_offset), interp.str);
usr/src/cmd/sgs/elfedit/modules/common/phdr.c
76
const char *str; /* Interpreter string */
usr/src/cmd/sgs/elfedit/modules/common/str.c
121
} str;
usr/src/cmd/sgs/elfedit/modules/common/str.c
330
argstate->str.sec = elfedit_sec_get(obj_state, ndx);
usr/src/cmd/sgs/elfedit/modules/common/str.c
345
argstate->str.sec = elfedit_sec_getstr(obj_state, ndx, 1);
usr/src/cmd/sgs/elfedit/modules/common/str.c
362
(argstate->str.sec->sec_shndx ==
usr/src/cmd/sgs/elfedit/modules/common/str.c
375
argstate->str.sec->sec_data->d_size)) {
usr/src/cmd/sgs/elfedit/modules/common/str.c
379
EC_WORD(argstate->str.sec->sec_shndx),
usr/src/cmd/sgs/elfedit/modules/common/str.c
380
argstate->str.sec->sec_name,
usr/src/cmd/sgs/elfedit/modules/common/str.c
383
EC_XWORD(argstate->str.sec->
usr/src/cmd/sgs/elfedit/modules/common/str.c
398
argstate->str.ndx = (elfedit_atoui_range(argv[0],
usr/src/cmd/sgs/elfedit/modules/common/str.c
400
argstate->str.sec->sec_data->d_size - 1, NULL));
usr/src/cmd/sgs/elfedit/modules/common/str.c
402
if (elfedit_sec_findstr(argstate->str.sec, 0, argv[0],
usr/src/cmd/sgs/elfedit/modules/common/str.c
403
&argstate->str.ndx) == 0)
usr/src/cmd/sgs/elfedit/modules/common/str.c
406
EC_WORD(argstate->str.sec->sec_shndx),
usr/src/cmd/sgs/elfedit/modules/common/str.c
407
argstate->str.sec->sec_name, argv[0]);
usr/src/cmd/sgs/elfedit/modules/common/str.c
410
argstate->str.ndx = 0;
usr/src/cmd/sgs/elfedit/modules/common/str.c
429
const char *str, *limit, *tbl_limit;
usr/src/cmd/sgs/elfedit/modules/common/str.c
439
argstate->str.sec->sec_name);
usr/src/cmd/sgs/elfedit/modules/common/str.c
442
EC_WORD(argstate->str.sec->sec_data->d_size -
usr/src/cmd/sgs/elfedit/modules/common/str.c
444
EC_WORD(argstate->str.sec->sec_data->d_size - 1),
usr/src/cmd/sgs/elfedit/modules/common/str.c
449
str = argstate->str.sec->sec_data->d_buf;
usr/src/cmd/sgs/elfedit/modules/common/str.c
450
tbl_limit = str + argstate->str.sec->sec_data->d_size;
usr/src/cmd/sgs/elfedit/modules/common/str.c
451
ndx = argstate->str.ndx;
usr/src/cmd/sgs/elfedit/modules/common/str.c
453
str += ndx;
usr/src/cmd/sgs/elfedit/modules/common/str.c
460
if ((*str == '\0') && (outstyle == ELFEDIT_OUTSTYLE_DEFAULT)) {
usr/src/cmd/sgs/elfedit/modules/common/str.c
461
limit = str;
usr/src/cmd/sgs/elfedit/modules/common/str.c
466
limit = str + strlen(str) + 1;
usr/src/cmd/sgs/elfedit/modules/common/str.c
474
while (str < limit) {
usr/src/cmd/sgs/elfedit/modules/common/str.c
475
Word skip = strlen(str) + 1;
usr/src/cmd/sgs/elfedit/modules/common/str.c
479
elfedit_printf(MSG_ORIG(MSG_FMT_STRNL), str);
usr/src/cmd/sgs/elfedit/modules/common/str.c
480
str += skip;
usr/src/cmd/sgs/elfedit/modules/common/str.c
486
if (*str == '\0')
usr/src/cmd/sgs/elfedit/modules/common/str.c
487
while (((str + 1) < limit) && (*(str + 1) == '\0')) {
usr/src/cmd/sgs/elfedit/modules/common/str.c
489
str++;
usr/src/cmd/sgs/elfedit/modules/common/str.c
503
elfedit_str_to_c_literal(str, elfedit_write);
usr/src/cmd/sgs/elfedit/modules/common/str.c
506
str += skip;
usr/src/cmd/sgs/elfedit/modules/common/str.c
519
elfedit_section_t *strsec = argstate->str.sec;
usr/src/cmd/sgs/elfedit/modules/common/str.c
521
Word ndx = argstate->str.ndx;
usr/src/cmd/sgs/elfedit/modules/common/str.c
587
Word pad_ndx = argstate->str.sec->sec_data->d_size -
usr/src/cmd/sgs/elfedit/modules/common/str.c
600
(argstate->str.sec->sec_data->d_size - new_pad_ndx);
usr/src/cmd/sgs/elfedit/modules/common/str.c
621
elfedit_section_t *strsec = argstate->str.sec;
usr/src/cmd/sgs/elfedit/modules/common/str.c
623
Word ndx = argstate->str.ndx;
usr/src/cmd/sgs/elfedit/modules/common/str.c
629
count = strsec->sec_data->d_size - argstate->str.ndx;
usr/src/cmd/sgs/elfedit/modules/common/str.c
633
argstate->str.sec->sec_data->d_size - argstate->str.ndx,
usr/src/cmd/sgs/elfedit/modules/common/str.c
691
argstate.str.ndx = elfedit_strtab_insert(obj_state,
usr/src/cmd/sgs/elfedit/modules/common/str.c
692
argstate.str.sec, argstate.dyn.sec, argstate.argv[0]);
usr/src/cmd/sgs/elfedit/modules/common/str.c
704
elfedit_modified_data(argstate.str.sec);
usr/src/cmd/sgs/elfedit/modules/common/str.c
821
const char *str, *limit;
usr/src/cmd/sgs/elfedit/modules/common/str.c
896
str = sec->sec_data->d_buf;
usr/src/cmd/sgs/elfedit/modules/common/str.c
897
limit = str + sec->sec_data->d_size;
usr/src/cmd/sgs/elfedit/modules/common/str.c
898
while (str < limit) {
usr/src/cmd/sgs/elfedit/modules/common/str.c
899
if (*str != '\0')
usr/src/cmd/sgs/elfedit/modules/common/str.c
900
elfedit_cpl_match(cpldata, str, 0);
usr/src/cmd/sgs/elfedit/modules/common/str.c
901
str += strlen(str) + 1;
usr/src/cmd/sgs/elfedit/modules/common/sym.c
1194
symstate->str.sec, argstate->argv[0],
usr/src/cmd/sgs/elfedit/modules/common/sym.c
1439
elfedit_strtab_insert_test(obj_state, symstate->str.sec,
usr/src/cmd/sgs/elfedit/modules/common/sym.c
158
} str;
usr/src/cmd/sgs/elfedit/modules/common/sym.c
206
if (symstate->str.sec != NULL)
usr/src/cmd/sgs/elfedit/modules/common/sym.c
209
symstate->str.sec = elfedit_sec_getstr(argstate->obj_state,
usr/src/cmd/sgs/elfedit/modules/common/sym.c
261
strsec = symstate->str.sec;
usr/src/cmd/sgs/elfedit/modules/common/sym.c
340
n1 = elfedit_offset_to_str(symstate1->str.sec,
usr/src/cmd/sgs/elfedit/modules/common/sym.c
342
n2 = elfedit_offset_to_str(symstate2->str.sec,
usr/src/cmd/sgs/elfedit/modules/common/sym.c
477
elfedit_offset_to_str(symstate->str.sec,
usr/src/cmd/sgs/elfedit/modules/common/sym.c
755
(void) elfedit_offset_to_str(symstate->str.sec,
usr/src/cmd/sgs/elfedit/modules/common/sym.c
759
symstate->str.sec, NULL, argstate->argv[1]);
usr/src/cmd/sgs/elfedit/modules/common/syminfo.c
127
} str;
usr/src/cmd/sgs/elfedit/modules/common/syminfo.c
229
if (argstate->str.sec != NULL)
usr/src/cmd/sgs/elfedit/modules/common/syminfo.c
233
argstate->str.sec = elfedit_sec_getstr(argstate->obj_state,
usr/src/cmd/sgs/elfedit/modules/common/syminfo.c
281
name = elfedit_offset_to_str(argstate->str.sec,
usr/src/cmd/sgs/elfedit/modules/common/syminfo.c
288
needed = elfedit_offset_to_str(argstate->str.sec,
usr/src/cmd/sgs/elfedit/modules/common/syminfo.c
354
const char *str = NULL;
usr/src/cmd/sgs/elfedit/modules/common/syminfo.c
358
str = elfedit_atoconst_value_to_str(
usr/src/cmd/sgs/elfedit/modules/common/syminfo.c
363
str = elfedit_atoconst_value_to_str(
usr/src/cmd/sgs/elfedit/modules/common/syminfo.c
368
str = elfedit_atoconst_value_to_str(
usr/src/cmd/sgs/elfedit/modules/common/syminfo.c
373
if ((str == NULL) &&
usr/src/cmd/sgs/elfedit/modules/common/syminfo.c
379
str = elfedit_offset_to_str(
usr/src/cmd/sgs/elfedit/modules/common/syminfo.c
380
argstate->str.sec,
usr/src/cmd/sgs/elfedit/modules/common/syminfo.c
384
if (str != NULL) {
usr/src/cmd/sgs/elfedit/modules/common/syminfo.c
386
str);
usr/src/cmd/sgs/elfedit/modules/common/syminfo.c
451
argstate->str.sec, arg, ELFEDIT_MSG_ERR, &symndx);
usr/src/cmd/sgs/elfedit/modules/common/syminfo.c
506
have_string = elfedit_sec_findstr(argstate->str.sec,
usr/src/cmd/sgs/elfedit/modules/common/syminfo.c
535
argstate->str.sec, &strpad_elt, arg);
usr/src/cmd/sgs/include/conv.h
721
typedef conv_iter_ret_t (* conv_iter_cb_t)(const char *str,
usr/src/cmd/sgs/include/elfedit.h
611
extern void elfedit_cpl_match(void *cpldata, const char *str, int casefold);
usr/src/cmd/sgs/include/elfedit.h
621
extern void elfedit_str_to_c_literal(const char *str,
usr/src/cmd/sgs/include/elfedit.h
759
extern elfedit_atoi_t elfedit_atoi(const char *str,
usr/src/cmd/sgs/include/elfedit.h
761
extern elfedit_atoui_t elfedit_atoui(const char *str,
usr/src/cmd/sgs/include/elfedit.h
763
extern elfedit_atoui_t elfedit_atoconst(const char *str,
usr/src/cmd/sgs/include/elfedit.h
766
extern int elfedit_atoi2(const char *str, const elfedit_atoi_sym_t *sym,
usr/src/cmd/sgs/include/elfedit.h
768
extern int elfedit_atoui2(const char *str, const elfedit_atoui_sym_t *sym,
usr/src/cmd/sgs/include/elfedit.h
770
extern int elfedit_atoconst2(const char *str, elfedit_const_t const_type,
usr/src/cmd/sgs/include/elfedit.h
773
extern elfedit_atoi_t elfedit_atoi_range(const char *str,
usr/src/cmd/sgs/include/elfedit.h
776
extern elfedit_atoui_t elfedit_atoui_range(const char *str,
usr/src/cmd/sgs/include/elfedit.h
779
extern elfedit_atoui_t elfedit_atoconst_range(const char *str,
usr/src/cmd/sgs/include/elfedit.h
783
extern int elfedit_atoi_range2(const char *str, elfedit_atoi_t min,
usr/src/cmd/sgs/include/elfedit.h
785
extern int elfedit_atoui_range2(const char *str, elfedit_atoui_t min,
usr/src/cmd/sgs/include/elfedit.h
787
extern int elfedit_atoconst_range2(const char *str, elfedit_atoui_t min,
usr/src/cmd/sgs/include/elfedit.h
805
extern int elfedit_atobool(const char *str, const char *item_name);
usr/src/cmd/sgs/include/elfedit.h
806
extern elfedit_atoui_t elfedit_atoshndx(const char *str, size_t shnum);
usr/src/cmd/sgs/include/elfedit.h
891
const char *str);
usr/src/cmd/sgs/include/elfedit.h
894
const char *str);
usr/src/cmd/sgs/include/elfedit.h
926
const char *str, Elf32_Word *ret_offset);
usr/src/cmd/sgs/include/elfedit.h
928
const char *str, Elf64_Word *ret_offset);
usr/src/cmd/sgs/include/elfedit.h
992
elfedit32_section_t *strsec, elfedit32_section_t *dynsec, const char *str);
usr/src/cmd/sgs/include/elfedit.h
994
elfedit64_section_t *strsec, elfedit64_section_t *dynsec, const char *str);
usr/src/cmd/sgs/include/elfedit.h
997
elfedit32_section_t *strsec, elfedit32_section_t *dynsec, const char *str);
usr/src/cmd/sgs/include/elfedit.h
999
elfedit64_section_t *strsec, elfedit64_section_t *dynsec, const char *str);
usr/src/cmd/sgs/ld/common/ld.c
102
char *str, *s;
usr/src/cmd/sgs/ld/common/ld.c
104
str = *strp;
usr/src/cmd/sgs/ld/common/ld.c
105
if (*str == '\0')
usr/src/cmd/sgs/ld/common/ld.c
107
s = str;
usr/src/cmd/sgs/ld/common/ld.c
114
return (str);
usr/src/cmd/sgs/ld/common/ld.c
521
split_options(char *str)
usr/src/cmd/sgs/ld/common/ld.c
528
while ((arg = strsep_ws(&str)) != NULL) {
usr/src/cmd/sgs/ldd/common/ldd.c
155
char *str, *cname = argv[0];
usr/src/cmd/sgs/ldd/common/ldd.c
268
for (APLIST_TRAVERSE(eopts, idx, str)) {
usr/src/cmd/sgs/ldd/common/ldd.c
269
if ((strncmp(str, MSG_ORIG(MSG_LD_PRELOAD_32),
usr/src/cmd/sgs/ldd/common/ldd.c
271
str += MSG_LD_PRELOAD_32_SIZE;
usr/src/cmd/sgs/ldd/common/ldd.c
272
if ((*str++ == '=') && (*str != '\0'))
usr/src/cmd/sgs/ldd/common/ldd.c
273
prefile_32 = str;
usr/src/cmd/sgs/ldd/common/ldd.c
276
if ((strncmp(str, MSG_ORIG(MSG_LD_PRELOAD_64),
usr/src/cmd/sgs/ldd/common/ldd.c
278
str += MSG_LD_PRELOAD_64_SIZE;
usr/src/cmd/sgs/ldd/common/ldd.c
279
if ((*str++ == '=') && (*str != '\0'))
usr/src/cmd/sgs/ldd/common/ldd.c
280
prefile_64 = str;
usr/src/cmd/sgs/ldd/common/ldd.c
283
if ((strncmp(str, MSG_ORIG(MSG_LD_PRELOAD),
usr/src/cmd/sgs/ldd/common/ldd.c
285
str += MSG_LD_PRELOAD_SIZE;
usr/src/cmd/sgs/ldd/common/ldd.c
286
if ((*str++ == '=') && (*str != '\0'))
usr/src/cmd/sgs/ldd/common/ldd.c
287
prefile = str;
usr/src/cmd/sgs/ldd/common/ldd.c
589
char *str;
usr/src/cmd/sgs/ldd/common/ldd.c
600
char *str;
usr/src/cmd/sgs/ldd/common/ldd.c
604
for (str = fname; *str; str++)
usr/src/cmd/sgs/ldd/common/ldd.c
605
if (*str == '/') {
usr/src/cmd/sgs/ldd/common/ldd.c
628
if ((str = (char *)malloc(strlen(preload) +
usr/src/cmd/sgs/ldd/common/ldd.c
635
(void) sprintf(str, format, preload, fname, files);
usr/src/cmd/sgs/ldd/common/ldd.c
636
if (putenv(str) != 0) {
usr/src/cmd/sgs/ldd/common/ldd.c
671
for (APLIST_TRAVERSE(eopts, idx, str)) {
usr/src/cmd/sgs/ldd/common/ldd.c
675
if ((strncmp(preload, str, size) == 0) &&
usr/src/cmd/sgs/ldd/common/ldd.c
676
(str[size] == '=')) {
usr/src/cmd/sgs/ldd/common/ldd.c
680
if (putenv(str) != 0) {
usr/src/cmd/sgs/libconv/common/arch.c
82
const char *str;
usr/src/cmd/sgs/libconv/common/arch.c
88
if (((str = getenv(MSG_ORIG(MSG_LD_NOEXEC64))) != NULL) && *str)
usr/src/cmd/sgs/libconv/common/arch.c
91
if ((str = getexecname()) != NULL)
usr/src/cmd/sgs/libconv/common/arch.c
92
(void) isaexec(str, argv, envp);
usr/src/cmd/sgs/libconv/common/c_literal.c
157
conv_translate_c_esc(char **str)
usr/src/cmd/sgs/libconv/common/c_literal.c
159
char *s = *str;
usr/src/cmd/sgs/libconv/common/c_literal.c
219
*str = s;
usr/src/cmd/sgs/libconv/common/cap.c
105
const char *str;
usr/src/cmd/sgs/libconv/common/cap.c
119
str = cdp->c_full.s_str;
usr/src/cmd/sgs/libconv/common/cap.c
122
str = cdp->c_uc.s_str;
usr/src/cmd/sgs/libconv/common/cap.c
125
str = cdp->c_lc.s_str;
usr/src/cmd/sgs/libconv/common/cap.c
129
if ((* func)(str, cdp->c_val, uvalue) == CONV_ITER_DONE)
usr/src/cmd/sgs/libconv/common/cap_machelf.c
40
conv_cap(Xword val, char *str, size_t len, Half mach,
usr/src/cmd/sgs/libconv/common/cap_machelf.c
53
_len = sprintf(str, MSG_ORIG(MSG_GBL_OSQBRKT), EC_XWORD(val));
usr/src/cmd/sgs/libconv/common/cap_machelf.c
56
str += _len;
usr/src/cmd/sgs/libconv/common/cap_machelf.c
59
if ((*fptr)(ELFCAP_STYLE_UC, val, str, len, ELFCAP_FMT_SNGSPACE,
usr/src/cmd/sgs/libconv/common/cap_machelf.c
64
_len = strlen(str);
usr/src/cmd/sgs/libconv/common/cap_machelf.c
66
str += _len;
usr/src/cmd/sgs/libconv/common/cap_machelf.c
67
(void) strcpy(str, MSG_ORIG(MSG_GBL_CSQBRKT));
usr/src/cmd/sgs/libconv/common/config.c
182
conv_config_upm(const char *str, const char *old, const char *new,
usr/src/cmd/sgs/libconv/common/config.c
190
for (curstr = ptr = str; *ptr; ptr++) {
usr/src/cmd/sgs/libconv/common/config.c
248
return (str);
usr/src/cmd/sgs/libconv/common/config.c
258
(uintptr_t)ptr - (uintptr_t)str)) == 0)
usr/src/cmd/sgs/libconv/common/config.c
259
return (str);
usr/src/cmd/sgs/libconv/common/config.c
262
for (len = (uintptr_t)curold - (uintptr_t)str; len; len--)
usr/src/cmd/sgs/libconv/common/config.c
263
*(newstr++) = *(str++); /* copy up to */
usr/src/cmd/sgs/libconv/common/config.c
268
for (len = (uintptr_t)ptr - (uintptr_t)str; len; len--)
usr/src/cmd/sgs/libconv/common/config.c
269
*(newstr++) = *(str++); /* add remaining */
usr/src/cmd/sgs/libconv/common/globals.c
319
conv_iter_strtol_init(const char *str, conv_strtol_uvalue_t *uvalue)
usr/src/cmd/sgs/libconv/common/globals.c
323
while (conv_strproc_isspace(*str))
usr/src/cmd/sgs/libconv/common/globals.c
324
str++;
usr/src/cmd/sgs/libconv/common/globals.c
325
uvalue->csl_str = str;
usr/src/cmd/sgs/libconv/common/globals.c
328
tail = str + strlen(str);
usr/src/cmd/sgs/libconv/common/globals.c
329
while ((tail > str) && conv_strproc_isspace(*(tail - 1)))
usr/src/cmd/sgs/libconv/common/globals.c
331
uvalue->csl_strlen = tail - str;
usr/src/cmd/sgs/libconv/common/globals.c
347
conv_iter_strtol(const char *str, uint32_t value, void *uvalue)
usr/src/cmd/sgs/libconv/common/globals.c
351
if ((strlen(str) == state->csl_strlen) &&
usr/src/cmd/sgs/libconv/common/globals.c
352
(strncasecmp(str, state->csl_str, state->csl_strlen) == 0)) {
usr/src/cmd/sgs/libconv/common/globals_machelf.c
100
int list_item, const char *str)
usr/src/cmd/sgs/libconv/common/globals_machelf.c
124
n = strlen(str);
usr/src/cmd/sgs/libconv/common/globals_machelf.c
126
(void) memcpy(state->cur, str, n);
usr/src/cmd/sgs/libconv/common/strproc.c
107
conv_strproc_extract_value(char *str, size_t token_len, int flags,
usr/src/cmd/sgs/libconv/common/strproc.c
113
str += token_len;
usr/src/cmd/sgs/libconv/common/strproc.c
119
while (conv_strproc_isspace(*str))
usr/src/cmd/sgs/libconv/common/strproc.c
120
str++;
usr/src/cmd/sgs/libconv/common/strproc.c
123
if (*str != '=')
usr/src/cmd/sgs/libconv/common/strproc.c
126
str++; /* skip the '=' */
usr/src/cmd/sgs/libconv/common/strproc.c
130
while (conv_strproc_isspace(*str))
usr/src/cmd/sgs/libconv/common/strproc.c
131
str++;
usr/src/cmd/sgs/libconv/common/strproc.c
134
if (((flags & CONV_SPEXV_F_NULLOK) == 0) && (*str == '\0'))
usr/src/cmd/sgs/libconv/common/strproc.c
137
*value = str;
usr/src/cmd/sgs/libconv/common/strproc.c
141
for (; *str; str++)
usr/src/cmd/sgs/libconv/common/strproc.c
142
if ((*str >= 'a') && (*str <= 'z'))
usr/src/cmd/sgs/libconv/common/strproc.c
143
*str = *str - ('a' - 'A');
usr/src/cmd/sgs/libconv/common/strproc.c
67
conv_strproc_trim(char *str)
usr/src/cmd/sgs/libconv/common/strproc.c
72
while (conv_strproc_isspace(*str))
usr/src/cmd/sgs/libconv/common/strproc.c
73
str++;
usr/src/cmd/sgs/libconv/common/strproc.c
76
tail = str + strlen(str);
usr/src/cmd/sgs/libconv/common/strproc.c
77
while ((tail > str) && conv_strproc_isspace(*(tail - 1)))
usr/src/cmd/sgs/libconv/common/strproc.c
81
return (str);
usr/src/cmd/sgs/libcrle/common/audit.c
74
char *str;
usr/src/cmd/sgs/libcrle/common/audit.c
80
if ((str = getenv(MSG_ORIG(MSG_ENV_AUD_FD))) == NULL)
usr/src/cmd/sgs/libcrle/common/audit.c
82
pfd = atoi(str);
usr/src/cmd/sgs/libcrle/common/audit.c
88
if ((str = getenv(MSG_ORIG(MSG_ENV_AUD_FLAGS))) == NULL) {
usr/src/cmd/sgs/libcrle/common/audit.c
92
dlflag |= atoi(str);
usr/src/cmd/sgs/libcrle/common/dump.c
131
const char *str, *strtbl;
usr/src/cmd/sgs/libcrle/common/dump.c
143
str = strtbl + obj->co_name;
usr/src/cmd/sgs/libcrle/common/dump.c
152
str = strtbl + obj->co_name;
usr/src/cmd/sgs/libcrle/common/dump.c
157
if ((*fptr)(str, strtbl + obj->co_alter) != 0)
usr/src/cmd/sgs/libcrle/common/dump.c
186
str = strtbl + obj->co_alter;
usr/src/cmd/sgs/libcrle/common/dump.c
188
if (dump((const char *)0, str) != 0)
usr/src/cmd/sgs/libelf/common/getarsym.c
128
if ((n > 0) && (((str = (char *)endoff) >= endstr) ||
usr/src/cmd/sgs/libelf/common/getarsym.c
151
if (str >= endstr) {
usr/src/cmd/sgs/libelf/common/getarsym.c
160
as->as_name = str;
usr/src/cmd/sgs/libelf/common/getarsym.c
161
as->as_hash = elf_hash(str);
usr/src/cmd/sgs/libelf/common/getarsym.c
164
while (*str++ != '\0')
usr/src/cmd/sgs/libelf/common/getarsym.c
97
char *str = NULL;
usr/src/cmd/sgs/libld/common/files.c
1785
char *str;
usr/src/cmd/sgs/libld/common/files.c
1802
str = (char *)dp->d_buf;
usr/src/cmd/sgs/libld/common/files.c
1822
difl->ifl_soname = str + (size_t)dyn->d_un.d_val;
usr/src/cmd/sgs/libld/common/files.c
1828
(str + (size_t)dyn->d_un.d_val))) ==
usr/src/cmd/sgs/libld/common/files.c
2161
char *str, *rpath = NULL;
usr/src/cmd/sgs/libld/common/files.c
2166
str = (char *)ifl->ifl_isdesc[isc->is_shdr->sh_link]->is_indata->d_buf;
usr/src/cmd/sgs/libld/common/files.c
2180
if ((rpath = str + (size_t)dyn->d_un.d_val) == NULL)
usr/src/cmd/sgs/libld/common/files.c
2192
if ((soname = str + (size_t)dyn->d_un.d_val) == NULL)
usr/src/cmd/sgs/libld/common/files.c
2206
if ((needed = str + (size_t)dyn->d_un.d_val) == NULL)
usr/src/cmd/sgs/libld/common/files.c
2263
(str + (size_t)dyn->d_un.d_val))) ==
usr/src/cmd/sgs/libld/common/files.c
2578
char *str, *name;
usr/src/cmd/sgs/libld/common/files.c
2636
str = ifl->ifl_isdesc[sndx]->is_indata->d_buf;
usr/src/cmd/sgs/libld/common/files.c
2670
name = str + (size_t)(shdr->sh_name);
usr/src/cmd/sgs/libld/common/files.c
2680
name = str + (size_t)(shdr->sh_name);
usr/src/cmd/sgs/libld/common/groups.c
171
const char *str;
usr/src/cmd/sgs/libld/common/groups.c
216
str = (char *)isc->is_indata->d_buf;
usr/src/cmd/sgs/libld/common/groups.c
217
str += sym->st_name;
usr/src/cmd/sgs/libld/common/groups.c
230
gnu_stt_section = ((sym->st_name == 0) || (*str == '\0')) &&
usr/src/cmd/sgs/libld/common/groups.c
233
str = gisc->is_name;
usr/src/cmd/sgs/libld/common/groups.c
241
gd.gd_name = str;
usr/src/cmd/sgs/libld/common/groups.c
249
if (is_header_gensym(str)) {
usr/src/cmd/sgs/libld/common/map_core.c
1093
char *str = mf->mf_next;
usr/src/cmd/sgs/libld/common/map_core.c
1098
for (; *str; str++) {
usr/src/cmd/sgs/libld/common/map_core.c
1101
while (isspace(*str))
usr/src/cmd/sgs/libld/common/map_core.c
1102
str++;
usr/src/cmd/sgs/libld/common/map_core.c
1103
if (!*str)
usr/src/cmd/sgs/libld/common/map_core.c
1106
switch (*str) {
usr/src/cmd/sgs/libld/common/map_core.c
1109
if (*(str + 1) != *str)
usr/src/cmd/sgs/libld/common/map_core.c
1116
str++;
usr/src/cmd/sgs/libld/common/map_core.c
1135
new_op = (*str == '&') ? CEXP_OP_AND : CEXP_OP_OR;
usr/src/cmd/sgs/libld/common/map_core.c
1185
if ((*str == '0') || (*str == '1')) {
usr/src/cmd/sgs/libld/common/map_core.c
1187
(*str == '1');
usr/src/cmd/sgs/libld/common/map_core.c
1192
ident = mf->mf_next = str;
usr/src/cmd/sgs/libld/common/map_core.c
1195
str += len - 1; /* loop will advance past final ch */
usr/src/cmd/sgs/libld/common/map_core.c
1224
mf_fatal(mf, MSG_INTL(MSG_MAP_CEXP_TOKERR), str);
usr/src/cmd/sgs/libld/common/map_core.c
1615
ld_map_lowercase(char *str)
usr/src/cmd/sgs/libld/common/map_core.c
1617
while (*str = tolower(*str))
usr/src/cmd/sgs/libld/common/map_core.c
1618
str++;
usr/src/cmd/sgs/libld/common/map_core.c
1640
ld_map_strtoxword(const char *restrict str, char **restrict endptr,
usr/src/cmd/sgs/libld/common/map_core.c
1661
value = FUNC(str, endptr, 0);
usr/src/cmd/sgs/libld/common/map_core.c
1662
if ((errno != 0) || (str == *endptr)) {
usr/src/cmd/sgs/libld/common/map_core.c
1840
char *str, *end;
usr/src/cmd/sgs/libld/common/map_core.c
1843
str = mf->mf_next++;
usr/src/cmd/sgs/libld/common/map_core.c
1844
quote = *str;
usr/src/cmd/sgs/libld/common/map_core.c
1852
mf_fatal(mf, MSG_INTL(MSG_MAP_NOTERM), str);
usr/src/cmd/sgs/libld/common/map_core.c
1863
tkv->tkv_str = str + 1; /* Skip opening quote */
usr/src/cmd/sgs/libld/common/map_core.c
1888
char *str, *cur, *end;
usr/src/cmd/sgs/libld/common/map_core.c
1899
str = mf->mf_next++;
usr/src/cmd/sgs/libld/common/map_core.c
1900
quote = *str;
usr/src/cmd/sgs/libld/common/map_core.c
1918
mf_fatal(mf, MSG_INTL(MSG_MAP_NOTERM), str);
usr/src/cmd/sgs/libld/common/map_core.c
1925
tkv->tkv_str = str + 1; /* Skip opening quote */
usr/src/cmd/sgs/libld/common/map_core.c
663
advance_to_eol(char **str)
usr/src/cmd/sgs/libld/common/map_core.c
665
char *s = *str;
usr/src/cmd/sgs/libld/common/map_core.c
669
*str = s;
usr/src/cmd/sgs/libld/common/map_core.c
676
null_patch_set(char *str, ld_map_npatch_t *np)
usr/src/cmd/sgs/libld/common/map_core.c
678
np->np_ptr = str;
usr/src/cmd/sgs/libld/common/map_core.c
679
np->np_ch = *str;
usr/src/cmd/sgs/libld/common/map_core.c
680
*str = '\0';
usr/src/cmd/sgs/libld/common/map_core.c
696
null_patch_eol(char *str, ld_map_npatch_t *np)
usr/src/cmd/sgs/libld/common/map_core.c
698
advance_to_eol(&str);
usr/src/cmd/sgs/libld/common/map_core.c
699
null_patch_set(str, np);
usr/src/cmd/sgs/libld/common/map_core.c
717
char *str = mf->mf_next;
usr/src/cmd/sgs/libld/common/map_core.c
719
int c = *str++;
usr/src/cmd/sgs/libld/common/map_core.c
723
null_patch_set(str, &np);
usr/src/cmd/sgs/libld/common/map_core.c
724
mf_fatal(mf, MSG_INTL(MSG_MAP_BADCHAR), str);
usr/src/cmd/sgs/libld/common/map_core.c
730
for (c = *str; !(c & 0x80) && (tkid_attr[c] & mf->mf_tkid_cont);
usr/src/cmd/sgs/libld/common/map_core.c
731
c = *++str)
usr/src/cmd/sgs/libld/common/map_core.c
734
return (str);
usr/src/cmd/sgs/libld/common/map_support.c
117
char *str = buf;
usr/src/cmd/sgs/libld/common/map_support.c
130
*str++ = ',';
usr/src/cmd/sgs/libld/common/map_support.c
131
*str++ = ' ';
usr/src/cmd/sgs/libld/common/map_support.c
133
*(str + 1) = '\0';
usr/src/cmd/sgs/libld/common/map_support.c
136
len = strlcpy(str, arr_name, bufsize);
usr/src/cmd/sgs/libld/common/map_support.c
139
str += len;
usr/src/cmd/sgs/libld/common/map_support.c
762
ld_map_seg_ent_files(Mapfile *mf, Ent_desc *enp, Word ecf_type, const char *str)
usr/src/cmd/sgs/libld/common/map_support.c
770
if (str[0] == '\0') {
usr/src/cmd/sgs/libld/common/map_support.c
776
if ((ecf_type != TYP_ECF_PATH) && (strchr(str, '/') != NULL)) {
usr/src/cmd/sgs/libld/common/map_support.c
780
mf_fatal(mf, msg, str);
usr/src/cmd/sgs/libld/common/map_support.c
785
edf.edf_name = str;
usr/src/cmd/sgs/libld/common/map_v2.c
1016
const char *str;
usr/src/cmd/sgs/libld/common/map_v2.c
1028
for (APLIST_TRAVERSE(strs, idx, str)) {
usr/src/cmd/sgs/libld/common/map_v2.c
1029
if (strcmp(str, tkv.tkv_str) == 0) {
usr/src/cmd/sgs/libld/common/map_v2.c
310
char *str;
usr/src/cmd/sgs/libld/common/map_v2.c
335
for (APLIST_TRAVERSE(strs, idx1, str)) {
usr/src/cmd/sgs/libld/common/map_v2.c
340
capstr->cs_str = str;
usr/src/cmd/sgs/libld/common/map_v2.c
351
for (APLIST_TRAVERSE(strs, idx1, str)) {
usr/src/cmd/sgs/libld/common/map_v2.c
361
if (strcmp(str, capstr->cs_str) == 0) {
usr/src/cmd/sgs/libld/common/map_v2.c
370
capstr->cs_str = str;
usr/src/cmd/sgs/libld/common/map_v2.c
377
if (strcmp(str, ostr) == 0) {
usr/src/cmd/sgs/libld/common/map_v2.c
383
DBG_STATE_ADD, type, str));
usr/src/cmd/sgs/libld/common/map_v2.c
387
for (APLIST_TRAVERSE(strs, idx1, str)) {
usr/src/cmd/sgs/libld/common/map_v2.c
397
if (strcmp(str, capstr->cs_str) == 0) {
usr/src/cmd/sgs/libld/common/map_v2.c
408
if (strcmp(str, ostr) == 0) {
usr/src/cmd/sgs/libld/common/map_v2.c
414
str, AL_CNT_CAP_NAMES) == NULL))
usr/src/cmd/sgs/libld/common/map_v2.c
418
DBG_STATE_EXCLUDE, type, str));
usr/src/cmd/sgs/libld/common/relocate.c
145
const char *str;
usr/src/cmd/sgs/libld/common/relocate.c
158
if ((str = demangle(rsdp->sd_name)) !=
usr/src/cmd/sgs/libld/common/relocate.c
160
char *_str = alloca(strlen(str) + 1);
usr/src/cmd/sgs/libld/common/relocate.c
161
(void) strcpy(_str, str);
usr/src/cmd/sgs/libld/common/relocate.c
162
str = (const char *)_str;
usr/src/cmd/sgs/libld/common/relocate.c
169
0, &inv_buf), ifl->ifl_name, str,
usr/src/cmd/sgs/libld/common/relocate.c
189
if ((str = demangle(sdp->sd_name)) != sdp->sd_name) {
usr/src/cmd/sgs/libld/common/relocate.c
190
char *_str = alloca(strlen(str) + 1);
usr/src/cmd/sgs/libld/common/relocate.c
191
(void) strcpy(_str, str);
usr/src/cmd/sgs/libld/common/relocate.c
192
str = (const char *)_str;
usr/src/cmd/sgs/libld/common/relocate.c
198
ifl->ifl_name, demangle(rsdp->sd_name), str,
usr/src/cmd/sgs/libld/common/relocate.c
199
EC_XWORD(reloc->r_offset), str);
usr/src/cmd/sgs/libld/common/relocate.c
339
const char *str;
usr/src/cmd/sgs/libld/common/relocate.c
344
str = demangle(sdp->sd_name);
usr/src/cmd/sgs/libld/common/relocate.c
346
str = MSG_INTL(MSG_STR_UNKNOWN);
usr/src/cmd/sgs/libld/common/relocate.c
350
0, &inv_buf), ifl->ifl_name, ld_reloc_sym_name(rsp), str,
usr/src/cmd/sgs/libld/common/sections.c
2917
const char *str, *end;
usr/src/cmd/sgs/libld/common/sections.c
2936
for (str = isp->is_indata->d_buf; str < end;
usr/src/cmd/sgs/libld/common/sections.c
2937
str += strlen(str) + 1) {
usr/src/cmd/sgs/libld/common/sections.c
2938
if (st_insert(osp->os_mstrtab, str) != 0) {
usr/src/cmd/sgs/libld/common/syms.c
1223
ensure_sym_local(Ofl_desc *ofl, Sym_desc *sdp, const char *str)
usr/src/cmd/sgs/libld/common/syms.c
1226
if (str) {
usr/src/cmd/sgs/libld/common/syms.c
1228
str, demangle((char *)sdp->sd_name));
usr/src/cmd/sgs/libld/common/syms.c
1233
if (str) {
usr/src/cmd/sgs/libld/common/syms.c
1235
str, demangle((char *)sdp->sd_name),
usr/src/cmd/sgs/libld/common/syms.c
1254
ensure_array_local(Ofl_desc *ofl, APlist *apl, const char *str)
usr/src/cmd/sgs/libld/common/syms.c
1261
ret += ensure_sym_local(ofl, sdp, str);
usr/src/cmd/sgs/libld/common/syms.c
240
char *str;
usr/src/cmd/sgs/libld/common/syms.c
247
str = (char *)(strdata + sym->st_name);
usr/src/cmd/sgs/libld/common/syms.c
249
if ((sdp = ld_sym_find(str, SYM_NOHASH, NULL, ofl)) != NULL) {
usr/src/cmd/sgs/libld/common/syms.c
3298
char *str;
usr/src/cmd/sgs/libld/common/syms.c
3310
if ((str = libld_malloc(len)) == NULL)
usr/src/cmd/sgs/libld/common/syms.c
3312
(void) snprintf(str, len, fmt, isp->is_name);
usr/src/cmd/sgs/libld/common/syms.c
3313
isp->is_sym_name = str;
usr/src/cmd/sgs/libld/common/update.c
118
str + ldynsym[symsort[cmp_ndx]].st_name,
usr/src/cmd/sgs/libld/common/update.c
119
str + ldynsym[symsort[ndx]].st_name,
usr/src/cmd/sgs/libld/common/update.c
122
str + ldynsym[symsort[cmp_ndx]].st_name,
usr/src/cmd/sgs/libld/common/update.c
123
str + ldynsym[symsort[ndx]].st_name,
usr/src/cmd/sgs/libld/common/update.c
3173
const char *str;
usr/src/cmd/sgs/libld/common/update.c
3176
str = MSG_INTL(MSG_PSYM_EXPREASON1);
usr/src/cmd/sgs/libld/common/update.c
3178
str = MSG_INTL(MSG_PSYM_EXPREASON2);
usr/src/cmd/sgs/libld/common/update.c
3180
str = MSG_INTL(MSG_PSYM_EXPREASON3);
usr/src/cmd/sgs/libld/common/update.c
3183
sdp->sd_name, str));
usr/src/cmd/sgs/libld/common/update.c
99
dynsort_dupwarn(Ofl_desc *ofl, Sym *ldynsym, const char *str,
usr/src/cmd/sgs/libld/common/util.c
113
add_string(char *old, char *str)
usr/src/cmd/sgs/libld/common/util.c
125
if ((_str = strstr(old, str)) != NULL) {
usr/src/cmd/sgs/libld/common/util.c
128
(_str += strlen(str)) &&
usr/src/cmd/sgs/libld/common/util.c
134
len = strlen(old) + strlen(str) + 2;
usr/src/cmd/sgs/libld/common/util.c
137
(void) snprintf(new, len, MSG_ORIG(MSG_FMT_COLPATH), old, str);
usr/src/cmd/sgs/libld/common/util.c
139
if ((new = libld_malloc(strlen(str) + 1)) == NULL)
usr/src/cmd/sgs/libld/common/util.c
141
(void) strcpy(new, str);
usr/src/cmd/sgs/libld/common/util.c
159
char *str;
usr/src/cmd/sgs/libld/common/util.c
162
if ((str = libld_malloc(len)) == NULL)
usr/src/cmd/sgs/libld/common/util.c
164
(void) snprintf(str, len, MSG_ORIG(MSG_FMT_STRCAT),
usr/src/cmd/sgs/libld/common/util.c
166
optarg = str;
usr/src/cmd/sgs/libld/common/version.c
598
const char *str, *file = ifl->ifl_name;
usr/src/cmd/sgs/libld/common/version.c
633
str = (char *)ifl->ifl_isdesc[isp->is_shdr->sh_link]->is_indata->d_buf;
usr/src/cmd/sgs/libld/common/version.c
663
name = (char *)(str + vdap->vda_name);
usr/src/cmd/sgs/libld/common/version.c
735
name = (char *)(str + vdap->vda_name);
usr/src/cmd/sgs/libld/common/version.c
820
const char *str, *file = ifl->ifl_name;
usr/src/cmd/sgs/libld/common/version.c
837
str = (char *)ifl->ifl_isdesc[isp->is_shdr->sh_link]->is_indata->d_buf;
usr/src/cmd/sgs/libld/common/version.c
854
name = (char *)(str + vnd->vn_file);
usr/src/cmd/sgs/libld/common/version.c
873
sdv.sdv_name = str + vnap->vna_name;
usr/src/cmd/sgs/libld/common/version.c
964
const char *str = ofl->ofl_name;
usr/src/cmd/sgs/libld/common/version.c
966
while (*str != '\0') {
usr/src/cmd/sgs/libld/common/version.c
967
if (*str++ == '/')
usr/src/cmd/sgs/libld/common/version.c
968
name = str;
usr/src/cmd/sgs/liblddbg/common/audit.c
36
const char *str;
usr/src/cmd/sgs/liblddbg/common/audit.c
44
str = MSG_ORIG(MSG_AUD_PRELOAD);
usr/src/cmd/sgs/liblddbg/common/audit.c
47
str = MSG_ORIG(MSG_AUD_GLOBAL);
usr/src/cmd/sgs/liblddbg/common/audit.c
52
str = MSG_ORIG(MSG_STR_EMPTY);
usr/src/cmd/sgs/liblddbg/common/audit.c
55
dbg_print(clml, MSG_INTL(MSG_AUD_LIB), lib, NAME(clmp), str);
usr/src/cmd/sgs/liblddbg/common/cap.c
224
Elf_cap_entry(Lm_list *lml, Cap *cap, int ndx, const char *str, size_t str_size,
usr/src/cmd/sgs/liblddbg/common/cap.c
238
if (str && (cap->c_un.c_ptr < str_size)) {
usr/src/cmd/sgs/liblddbg/common/cap.c
239
str += cap->c_un.c_ptr;
usr/src/cmd/sgs/liblddbg/common/cap.c
245
str = conv_cap_val(cap->c_tag, cap->c_un.c_val, mach, 0,
usr/src/cmd/sgs/liblddbg/common/cap.c
250
conv_cap_tag(cap->c_tag, 0, &inv_buf), str);
usr/src/cmd/sgs/liblddbg/common/dlfcns.c
108
const char *str;
usr/src/cmd/sgs/liblddbg/common/dlfcns.c
115
str = MSG_INTL(MSG_STR_IGNORE);
usr/src/cmd/sgs/liblddbg/common/dlfcns.c
117
str = MSG_ORIG(MSG_STR_EMPTY);
usr/src/cmd/sgs/liblddbg/common/dlfcns.c
120
dbg_print(lml, MSG_INTL(MSG_DL_DLCLOSE), name, NAME(clmp), str);
usr/src/cmd/sgs/liblddbg/common/dlfcns.c
139
Dbg_dl_dlerror(Rt_map *clmp, const char *str)
usr/src/cmd/sgs/liblddbg/common/dlfcns.c
148
str ? str : MSG_INTL(MSG_STR_NULL));
usr/src/cmd/sgs/liblddbg/common/dlfcns.c
167
const char *str, *retry, *from = NAME(clmp);
usr/src/cmd/sgs/liblddbg/common/dlfcns.c
198
str = MSG_ORIG(dlsym_msg[type]);
usr/src/cmd/sgs/liblddbg/common/dlfcns.c
203
from, retry, str);
usr/src/cmd/sgs/liblddbg/common/dlfcns.c
206
from, next, retry, str);
usr/src/cmd/sgs/liblddbg/common/files.c
101
dbg_print(lml, MSG_INTL(MSG_FIL_ELF), name, str);
usr/src/cmd/sgs/liblddbg/common/files.c
186
const char *str;
usr/src/cmd/sgs/liblddbg/common/files.c
194
str = NAME(ghp->gh_ownlmp);
usr/src/cmd/sgs/liblddbg/common/files.c
196
str = MSG_INTL(MSG_STR_ORPHAN);
usr/src/cmd/sgs/liblddbg/common/files.c
203
dbg_print(lml, MSG_INTL(MSG_FIL_HDL_RETAIN), str, name);
usr/src/cmd/sgs/liblddbg/common/files.c
205
dbg_print(lml, MSG_INTL(MSG_FIL_HDL_COLLECT), str,
usr/src/cmd/sgs/liblddbg/common/files.c
215
Msg str;
usr/src/cmd/sgs/liblddbg/common/files.c
259
str = fmt[type];
usr/src/cmd/sgs/liblddbg/common/files.c
276
dbg_print(lml, MSG_INTL(str), NAME(lmp), mode, group);
usr/src/cmd/sgs/liblddbg/common/files.c
303
const char *str;
usr/src/cmd/sgs/liblddbg/common/files.c
314
str = MSG_ORIG(MSG_SCN_INIT);
usr/src/cmd/sgs/liblddbg/common/files.c
316
str = MSG_ORIG(MSG_SCN_FINI);
usr/src/cmd/sgs/liblddbg/common/files.c
319
dbg_print(lml, MSG_INTL(MSG_FIL_DEP_TITLE), str,
usr/src/cmd/sgs/liblddbg/common/files.c
497
const char *str;
usr/src/cmd/sgs/liblddbg/common/files.c
504
str = MSG_INTL(MSG_FIL_CONFIG_ERR_1);
usr/src/cmd/sgs/liblddbg/common/files.c
507
str = MSG_INTL(MSG_FIL_CONFIG_ERR_2);
usr/src/cmd/sgs/liblddbg/common/files.c
510
str = MSG_INTL(MSG_FIL_CONFIG_ERR_3);
usr/src/cmd/sgs/liblddbg/common/files.c
513
str = MSG_INTL(MSG_FIL_CONFIG_ERR_4);
usr/src/cmd/sgs/liblddbg/common/files.c
516
str = MSG_INTL(MSG_FIL_CONFIG_ERR_5);
usr/src/cmd/sgs/liblddbg/common/files.c
519
str = conv_config_feat(features, &config_feat_buf);
usr/src/cmd/sgs/liblddbg/common/files.c
524
dbg_print(lml, MSG_INTL(MSG_FIL_CONFIG_ERR), config, str);
usr/src/cmd/sgs/liblddbg/common/files.c
628
const char *str;
usr/src/cmd/sgs/liblddbg/common/files.c
634
str = MSG_INTL(MSG_STR_AGAIN);
usr/src/cmd/sgs/liblddbg/common/files.c
636
str = MSG_ORIG(MSG_STR_EMPTY);
usr/src/cmd/sgs/liblddbg/common/files.c
639
dbg_print(lml, MSG_INTL(MSG_FIL_ARCHIVE), name, str);
usr/src/cmd/sgs/liblddbg/common/files.c
69
const char *str;
usr/src/cmd/sgs/liblddbg/common/files.c
725
const char *str;
usr/src/cmd/sgs/liblddbg/common/files.c
73
str = MSG_ORIG(MSG_MR_PADDING);
usr/src/cmd/sgs/liblddbg/common/files.c
739
str = MSG_INTL(MSG_FIL_IGNORE);
usr/src/cmd/sgs/liblddbg/common/files.c
741
str = MSG_ORIG(MSG_STR_EMPTY);
usr/src/cmd/sgs/liblddbg/common/files.c
742
dbg_print(lml, MSG_INTL(MSG_FIL_FDCHANGE), ofd, nfd, str);
usr/src/cmd/sgs/liblddbg/common/files.c
746
str = MSG_INTL(MSG_FIL_IGNORE);
usr/src/cmd/sgs/liblddbg/common/files.c
748
str = MSG_ORIG(MSG_STR_EMPTY);
usr/src/cmd/sgs/liblddbg/common/files.c
75
str = MSG_ORIG(MSG_MR_HDR_ELF);
usr/src/cmd/sgs/liblddbg/common/files.c
750
EC_NATPTR(nelf), str);
usr/src/cmd/sgs/liblddbg/common/files.c
77
str = MSG_ORIG(MSG_STR_EMPTY);
usr/src/cmd/sgs/liblddbg/common/files.c
80
EC_NATPTR(mpp->mr_addr), EC_OFF(mpp->mr_fsize), str);
usr/src/cmd/sgs/liblddbg/common/files.c
91
const char *str;
usr/src/cmd/sgs/liblddbg/common/files.c
97
str = MSG_INTL(MSG_STR_TEMPORARY);
usr/src/cmd/sgs/liblddbg/common/files.c
99
str = MSG_ORIG(MSG_STR_EMPTY);
usr/src/cmd/sgs/liblddbg/common/got.c
133
const char *str;
usr/src/cmd/sgs/liblddbg/common/got.c
152
str = conv_reloc_type(mach,
usr/src/cmd/sgs/liblddbg/common/got.c
156
str = conv_reloc_type(mach,
usr/src/cmd/sgs/liblddbg/common/got.c
166
EC_XWORD(value), str, name);
usr/src/cmd/sgs/liblddbg/common/map.c
69
const char *str, *scp;
usr/src/cmd/sgs/liblddbg/common/map.c
74
str = MSG_INTL(MSG_MAP_SYM_SCOPE);
usr/src/cmd/sgs/liblddbg/common/map.c
81
dbg_print(lml, MSG_INTL(MSG_MAP_SYM_VER_1), str, version,
usr/src/cmd/sgs/liblddbg/common/map.c
84
dbg_print(lml, MSG_INTL(MSG_MAP_SYM_VER_2), str,
usr/src/cmd/sgs/liblddbg/common/move.c
126
const char *str;
usr/src/cmd/sgs/liblddbg/common/move.c
132
str = MSG_INTL(MSG_MOVE_ENTRYIN);
usr/src/cmd/sgs/liblddbg/common/move.c
134
str = MSG_INTL(MSG_MOVE_ENTRYOUT);
usr/src/cmd/sgs/liblddbg/common/move.c
136
dbg_print(lml, str, EC_XWORD(mv->m_poffset), ELF_M_SIZE(mv->m_info),
usr/src/cmd/sgs/liblddbg/common/relocate.c
101
dbg_print(lml, MSG_INTL(MSG_REL_START), name, str);
usr/src/cmd/sgs/liblddbg/common/relocate.c
111
dbg_print(lml, MSG_INTL(MSG_REL_NONE), name, str);
usr/src/cmd/sgs/liblddbg/common/relocate.c
114
str);
usr/src/cmd/sgs/liblddbg/common/relocate.c
123
const char *str;
usr/src/cmd/sgs/liblddbg/common/relocate.c
131
str = MSG_INTL(MSG_STR_COPYZERO);
usr/src/cmd/sgs/liblddbg/common/relocate.c
133
str = MSG_ORIG(MSG_STR_EMPTY);
usr/src/cmd/sgs/liblddbg/common/relocate.c
136
name, str);
usr/src/cmd/sgs/liblddbg/common/relocate.c
665
const char *str;
usr/src/cmd/sgs/liblddbg/common/relocate.c
670
str = conv_reloc_type(mach, ELF_R_TYPE(rela->r_info, mach),
usr/src/cmd/sgs/liblddbg/common/relocate.c
677
str = conv_reloc_type(mach, ELF_R_TYPE(rel->r_info, mach),
usr/src/cmd/sgs/liblddbg/common/relocate.c
682
Elf_reloc_entry_2(lml, caller, prestr, type, str, off, add, secname,
usr/src/cmd/sgs/liblddbg/common/relocate.c
82
const char *str, *name = NAME(lmp);
usr/src/cmd/sgs/liblddbg/common/relocate.c
89
str = MSG_ORIG(MSG_STR_EMPTY);
usr/src/cmd/sgs/liblddbg/common/relocate.c
91
str = MSG_INTL(MSG_REL_FAIL);
usr/src/cmd/sgs/liblddbg/common/relocate.c
94
str = MSG_INTL(MSG_REL_PLT);
usr/src/cmd/sgs/liblddbg/common/relocate.c
96
str = MSG_ORIG(MSG_STR_EMPTY);
usr/src/cmd/sgs/liblddbg/common/sections.c
165
const char *str;
usr/src/cmd/sgs/liblddbg/common/sections.c
178
str = (isp->is_file != NULL) ? isp->is_file->ifl_name :
usr/src/cmd/sgs/liblddbg/common/sections.c
181
dbg_fmt_isec_name(isp, buf, &alloc_mem), str,
usr/src/cmd/sgs/liblddbg/common/sections.c
330
const char *str;
usr/src/cmd/sgs/liblddbg/common/sections.c
343
str = MSG_INTL(MSG_ORD_SORT_BEFORE);
usr/src/cmd/sgs/liblddbg/common/sections.c
345
str = MSG_INTL(MSG_ORD_SORT_AFTER);
usr/src/cmd/sgs/liblddbg/common/sections.c
352
dbg_print(lml, str, osp->os_name);
usr/src/cmd/sgs/liblddbg/common/segments.c
173
const char *file, *str;
usr/src/cmd/sgs/liblddbg/common/segments.c
179
str = MSG_INTL(MSG_EDATA_IGNSCN);
usr/src/cmd/sgs/liblddbg/common/segments.c
182
str = empty;
usr/src/cmd/sgs/liblddbg/common/segments.c
195
dbg_fmt_isec_name(isp, buf, &alloc_mem), str);
usr/src/cmd/sgs/liblddbg/common/support.c
33
const char *str;
usr/src/cmd/sgs/liblddbg/common/support.c
40
str = MSG_INTL(MSG_SUP_REQ_ENV);
usr/src/cmd/sgs/liblddbg/common/support.c
43
str = MSG_INTL(MSG_SUP_REQ_CMD);
usr/src/cmd/sgs/liblddbg/common/support.c
46
str = MSG_ORIG(MSG_STR_EMPTY);
usr/src/cmd/sgs/liblddbg/common/support.c
51
dbg_print(lml, MSG_INTL(MSG_SUP_REQ), define, str);
usr/src/cmd/sgs/liblddbg/common/support.c
76
const char *str;
usr/src/cmd/sgs/liblddbg/common/support.c
84
str = MSG_INTL(MSG_SUP_OUTFILE);
usr/src/cmd/sgs/liblddbg/common/support.c
86
str = MSG_INTL(MSG_SUP_INFILE);
usr/src/cmd/sgs/liblddbg/common/support.c
88
str = MSG_INTL(MSG_SUP_INSEC);
usr/src/cmd/sgs/liblddbg/common/support.c
90
str = MSG_INTL(MSG_SUP_SEC);
usr/src/cmd/sgs/liblddbg/common/support.c
97
str, name);
usr/src/cmd/sgs/liblddbg/common/syminfo.c
121
str = dndxstr;
usr/src/cmd/sgs/liblddbg/common/syminfo.c
123
str = MSG_ORIG(MSG_STR_EMPTY);
usr/src/cmd/sgs/liblddbg/common/syminfo.c
127
dbg_print(lml, MSG_INTL(MSG_SYMINFO_ENTRY), sndxstr, flagstr, str,
usr/src/cmd/sgs/liblddbg/common/syminfo.c
43
const char *bndstr = NULL, *str;
usr/src/cmd/sgs/liblddbg/common/syms.c
62
const char *str = NULL;
usr/src/cmd/sgs/liblddbg/common/syms.c
70
str = conv_cap_val_hw1(scapset->sc_hw_1, mach, 0,
usr/src/cmd/sgs/liblddbg/common/syms.c
74
str = conv_cap_val_sf1(scapset->sc_sf_1, mach, 0,
usr/src/cmd/sgs/liblddbg/common/syms.c
78
str = conv_cap_val_hw2(scapset->sc_hw_2, mach, 0,
usr/src/cmd/sgs/liblddbg/common/syms.c
82
str = scapset->sc_mach;
usr/src/cmd/sgs/liblddbg/common/syms.c
85
str = scapset->sc_plat;
usr/src/cmd/sgs/liblddbg/common/syms.c
88
str = conv_cap_val_hw3(scapset->sc_hw_3, mach, 0,
usr/src/cmd/sgs/liblddbg/common/syms.c
94
ndx, str);
usr/src/cmd/sgs/liblddbg/common/tls.c
111
const char *str;
usr/src/cmd/sgs/liblddbg/common/tls.c
118
str = MSG_INTL(MSG_TLS_ADD);
usr/src/cmd/sgs/liblddbg/common/tls.c
120
str = MSG_INTL(MSG_TLS_REMOVE);
usr/src/cmd/sgs/liblddbg/common/tls.c
124
dbg_print(lml, MSG_INTL(MSG_TLS_MODACT), str, tlsmodent->tm_modname);
usr/src/cmd/sgs/liblddbg/common/unused.c
47
const char *str;
usr/src/cmd/sgs/liblddbg/common/unused.c
64
str = MSG_INTL(MSG_USD_SECDISCARD);
usr/src/cmd/sgs/liblddbg/common/unused.c
66
str = MSG_ORIG(MSG_STR_EMPTY);
usr/src/cmd/sgs/liblddbg/common/unused.c
70
EC_XWORD(isp->is_shdr->sh_size), isp->is_file->ifl_name, str);
usr/src/cmd/sgs/liblddbg/common/util.c
132
const char *str;
usr/src/cmd/sgs/liblddbg/common/util.c
138
str = MSG_ORIG(MSG_SCN_INITARRAY);
usr/src/cmd/sgs/liblddbg/common/util.c
140
str = MSG_ORIG(MSG_SCN_FINIARRAY);
usr/src/cmd/sgs/liblddbg/common/util.c
142
str = MSG_ORIG(MSG_SCN_PREINITARRAY);
usr/src/cmd/sgs/liblddbg/common/util.c
144
dbg_print(lml, MSG_INTL(MSG_UTL_ARRAY), str, ndx, EC_NATPTR(addr),
usr/src/cmd/sgs/liblddbg/common/util.c
162
Dbg_util_str(Lm_list *lml, const char *str)
usr/src/cmd/sgs/liblddbg/common/util.c
166
dbg_print(lml, MSG_ORIG(MSG_FMT_STR), str);
usr/src/cmd/sgs/liblddbg/common/util.c
208
const char *str;
usr/src/cmd/sgs/liblddbg/common/util.c
216
str = MSG_ORIG(MSG_SCN_INIT);
usr/src/cmd/sgs/liblddbg/common/util.c
218
str = MSG_ORIG(MSG_SCN_FINI);
usr/src/cmd/sgs/liblddbg/common/util.c
224
dbg_print(lml, MSG_INTL(MSG_UTL_EDGE_TITLE_I), str);
usr/src/cmd/sgs/liblddbg/common/util.c
226
dbg_print(lml, MSG_INTL(MSG_UTL_EDGE_TITLE_S), str);
usr/src/cmd/sgs/liblddbg/common/util.c
252
const char *str;
usr/src/cmd/sgs/liblddbg/common/util.c
260
str = MSG_ORIG(MSG_SCN_INIT);
usr/src/cmd/sgs/liblddbg/common/util.c
262
str = MSG_ORIG(MSG_SCN_FINI);
usr/src/cmd/sgs/liblddbg/common/util.c
268
dbg_print(lml, MSG_INTL(MSG_UTL_COLLECT), ndx, NAME(lmp), str);
usr/src/cmd/sgs/liblddbg/common/util.c
289
const char *str;
usr/src/cmd/sgs/liblddbg/common/util.c
296
str = MSG_ORIG(tags[tag]);
usr/src/cmd/sgs/liblddbg/common/util.c
298
str = conv_invalid_val(&inv_buf, tag, 0);
usr/src/cmd/sgs/liblddbg/common/util.c
300
dbg_print(LIST(lmp), MSG_INTL(MSG_UTL_LCINTERFACE), NAME(lmp), str,
usr/src/cmd/sgs/liblddbg/common/util.c
307
const char *str;
usr/src/cmd/sgs/liblddbg/common/util.c
314
str = MSG_ORIG(tags[tag]);
usr/src/cmd/sgs/liblddbg/common/util.c
316
str = conv_invalid_val(&inv_buf, tag, 0);
usr/src/cmd/sgs/liblddbg/common/util.c
318
dbg_print(LIST(nlmp), MSG_INTL(MSG_USD_LCINTERFACE), NAME(nlmp), str,
usr/src/cmd/sgs/liblddbg/common/util.c
51
const char *str;
usr/src/cmd/sgs/liblddbg/common/util.c
57
str = MSG_INTL(MSG_UTL_SORT);
usr/src/cmd/sgs/liblddbg/common/util.c
59
str = MSG_INTL(MSG_UTL_PEND);
usr/src/cmd/sgs/liblddbg/common/util.c
61
str = MSG_INTL(MSG_UTL_DYN);
usr/src/cmd/sgs/liblddbg/common/util.c
63
str = MSG_INTL(MSG_UTL_DONE);
usr/src/cmd/sgs/liblddbg/common/util.c
66
dbg_print(lml, MSG_INTL(MSG_UTL_INIT), str, NAME(lmp));
usr/src/cmd/sgs/libldmake/common/ld_file.c
132
(void) fprintf(ofp, " %s", cur->str);
usr/src/cmd/sgs/libldmake/common/ld_file.c
44
char *str;
usr/src/cmd/sgs/libldmake/common/ld_file.c
60
prepend_str(Stritem **list, const char *str)
usr/src/cmd/sgs/libldmake/common/ld_file.c
71
if (!(newstr = malloc(strlen(str) + 1))) {
usr/src/cmd/sgs/libldmake/common/ld_file.c
76
new->str = strcpy(newstr, str);
usr/src/cmd/sgs/libldmake/common/lock.c
43
file_lock_error(char *msg, char *file, int err, const char *str,
usr/src/cmd/sgs/libldmake/common/lock.c
51
(void) snprintf(&msg[len], (mlen - len), str, arg1, arg2);
usr/src/cmd/sgs/link_audit/common/bindings.c
172
save_str(const char *str)
usr/src/cmd/sgs/link_audit/common/bindings.c
180
slen = (unsigned int)strlen(str);
usr/src/cmd/sgs/link_audit/common/bindings.c
190
(void) strncpy(sptr, str, slen);
usr/src/cmd/sgs/link_audit/common/env.c
60
check_list(Elist *list, const char *str)
usr/src/cmd/sgs/link_audit/common/env.c
70
if ((basestr = strrchr(str, '/')) != NULL)
usr/src/cmd/sgs/link_audit/common/env.c
73
basestr = str;
usr/src/cmd/sgs/link_audit/common/env.c
81
if (strcmp(str, list->l_libname) == 0)
usr/src/cmd/sgs/link_audit/common/truss.c
104
char *str = "LD_AUDIT=";
usr/src/cmd/sgs/link_audit/common/truss.c
109
(void) putenv(str);
usr/src/cmd/sgs/link_audit/common/truss.c
123
str = checkenv((const char *)"TRUSS_OUTPUT");
usr/src/cmd/sgs/link_audit/common/truss.c
124
if (str != NULL) {
usr/src/cmd/sgs/link_audit/common/truss.c
129
(void) snprintf(fname, MAXPATHLEN, "%s.%d", str,
usr/src/cmd/sgs/link_audit/common/truss.c
132
(void) strncpy(fname, str, MAXPATHLEN);
usr/src/cmd/sgs/link_audit/common/truss.c
210
char *str;
usr/src/cmd/sgs/link_audit/common/truss.c
211
for (ndx = 0; (str = spec_sym[ndx]) != NULL; ndx++) {
usr/src/cmd/sgs/link_audit/common/truss.c
213
cmpval = strcmp(sym_name, str);
usr/src/cmd/sgs/link_audit/common/truss.c
91
char *str;
usr/src/cmd/sgs/m4/common/m4.c
507
lookup(wchar_t *str)
usr/src/cmd/sgs/m4/common/m4.c
513
s1 = str;
usr/src/cmd/sgs/m4/common/m4.c
521
if (*str == *np->name && wcscmp(str, np->name) == 0)
usr/src/cmd/sgs/m4/common/m4.c
690
pbstr(wchar_t *str)
usr/src/cmd/sgs/m4/common/m4.c
694
for (p = str + wcslen(str); --p >= str; )
usr/src/cmd/sgs/m4/common/m4.c
784
ctol(wchar_t *str)
usr/src/cmd/sgs/m4/common/m4.c
789
while (is_space(*str))
usr/src/cmd/sgs/m4/common/m4.c
790
++str;
usr/src/cmd/sgs/m4/common/m4.c
792
if (*str == '-') {
usr/src/cmd/sgs/m4/common/m4.c
794
++str;
usr/src/cmd/sgs/m4/common/m4.c
797
while (is_digit(*str))
usr/src/cmd/sgs/m4/common/m4.c
798
num = num*10 + *str++ - '0';
usr/src/cmd/sgs/m4/common/m4.c
880
errorf(char *str, char *serr)
usr/src/cmd/sgs/m4/common/m4.c
884
(void) snprintf(buf, sizeof (buf), str, serr);
usr/src/cmd/sgs/m4/common/m4.c
890
error2(char *str, int num)
usr/src/cmd/sgs/m4/common/m4.c
894
(void) snprintf(buf, sizeof (buf), str, num);
usr/src/cmd/sgs/m4/common/m4.c
899
error(char *str)
usr/src/cmd/sgs/m4/common/m4.c
903
(void) fprintf(stderr, ":%d %s\n", fline[ifx], str);
usr/src/cmd/sgs/m4/common/m4macs.c
334
leftmatch(wchar_t *str, wchar_t *substr)
usr/src/cmd/sgs/m4/common/m4macs.c
337
if (*str++ != *substr++)
usr/src/cmd/sgs/m4/common/m4macs.c
404
wchar_t *str;
usr/src/cmd/sgs/m4/common/m4macs.c
408
inlen = wcslen(str = arg(1));
usr/src/cmd/sgs/m4/common/m4macs.c
418
putbak(str[--ix]);
usr/src/cmd/sgs/mcs/common/main.c
57
char *str;
usr/src/cmd/sgs/mcs/common/main.c
72
if ((str = strrchr(prog, '/')) != NULL)
usr/src/cmd/sgs/mcs/common/main.c
73
str++;
usr/src/cmd/sgs/mcs/common/main.c
75
str = prog;
usr/src/cmd/sgs/mcs/common/main.c
77
if (strcmp(str, "mcs") == 0) {
usr/src/cmd/sgs/mcs/common/main.c
80
} else if (strcmp(str, "strip") == 0) {
usr/src/cmd/sgs/mcs/common/utils.c
411
compress(char *str, size_t *size)
usr/src/cmd/sgs/mcs/common/utils.c
417
char *temp_string = str;
usr/src/cmd/sgs/mcs/common/utils.c
519
free(str);
usr/src/cmd/sgs/mcs/common/utils.c
520
str = malloc(next_str);
usr/src/cmd/sgs/mcs/common/utils.c
521
(void) memcpy(str, strings, next_str);
usr/src/cmd/sgs/mcs/common/utils.c
524
return (str);
usr/src/cmd/sgs/mcs/common/utils.c
528
dohash(char *str)
usr/src/cmd/sgs/mcs/common/utils.c
534
for (shift = 0; (t = *str++) != 0; shift += 7) {
usr/src/cmd/sgs/moe/common/moe.c
70
trim_msg(char *str)
usr/src/cmd/sgs/moe/common/moe.c
72
char *ptr = str;
usr/src/cmd/sgs/moe/common/moe.c
86
return (str);
usr/src/cmd/sgs/nm/common/nm.c
1506
parse_fn_and_print(const char *str, char *s)
usr/src/cmd/sgs/nm/common/nm.c
1544
(void) sprintf(d_buf, str, s);
usr/src/cmd/sgs/pvs/common/pvs.c
202
add_match_record(int opt, const char *str)
usr/src/cmd/sgs/pvs/common/pvs.c
237
if ((lstr = strdup(str)) == NULL) {
usr/src/cmd/sgs/pvs/common/pvs.c
284
rec->value.ndx.start = strtol(str, &s2, 10);
usr/src/cmd/sgs/pvs/common/pvs.c
286
if ((str == s2) || (rec->value.ndx.start < 1))
usr/src/cmd/sgs/pvs/common/pvs.c
288
str = s2;
usr/src/cmd/sgs/pvs/common/pvs.c
290
WS_SKIP(str);
usr/src/cmd/sgs/pvs/common/pvs.c
291
if (*str != ':') {
usr/src/cmd/sgs/pvs/common/pvs.c
294
str++; /* Skip the ':' */
usr/src/cmd/sgs/pvs/common/pvs.c
296
WS_SKIP(str);
usr/src/cmd/sgs/pvs/common/pvs.c
297
if (*str == '\0') {
usr/src/cmd/sgs/pvs/common/pvs.c
300
rec->value.ndx.end = strtol(str, &s2, 10);
usr/src/cmd/sgs/pvs/common/pvs.c
301
if ((str == s2) || (rec->value.ndx.end < 0))
usr/src/cmd/sgs/pvs/common/pvs.c
303
str = s2;
usr/src/cmd/sgs/pvs/common/pvs.c
304
WS_SKIP(str);
usr/src/cmd/sgs/pvs/common/pvs.c
309
if (*str == '\0')
usr/src/cmd/sgs/pvs/common/pvs.c
346
const char *str;
usr/src/cmd/sgs/pvs/common/pvs.c
357
str = needobj;
usr/src/cmd/sgs/pvs/common/pvs.c
359
str = version;
usr/src/cmd/sgs/pvs/common/pvs.c
362
if (strcmp(rec->value.name.version, str) == 0)
usr/src/cmd/sgs/rtld/common/analyze.c
1004
if (strcmp(cp, str) == 0)
usr/src/cmd/sgs/rtld/common/analyze.c
1011
if (((cp = stravl_insert(str, 0, 0, 0)) == NULL) ||
usr/src/cmd/sgs/rtld/common/analyze.c
1944
const char *str;
usr/src/cmd/sgs/rtld/common/analyze.c
1946
for (str = oname; *str; str++) {
usr/src/cmd/sgs/rtld/common/analyze.c
1947
if (*str == '/') {
usr/src/cmd/sgs/rtld/common/analyze.c
684
_is_so_matched(const char *name, const char *str, int path)
usr/src/cmd/sgs/rtld/common/analyze.c
688
if ((path == 0) && ((_str = strrchr(str, '/')) != NULL))
usr/src/cmd/sgs/rtld/common/analyze.c
691
_str = str;
usr/src/cmd/sgs/rtld/common/analyze.c
845
const char *str = MSG_ORIG(MSG_STR_EMPTY);
usr/src/cmd/sgs/rtld/common/analyze.c
886
str = MSG_INTL(MSG_LDD_FIL_ALTER);
usr/src/cmd/sgs/rtld/common/analyze.c
889
str = MSG_INTL(MSG_LDD_FIL_ALTER);
usr/src/cmd/sgs/rtld/common/analyze.c
897
(void) printf(MSG_ORIG(MSG_LDD_FIL_PATH), path, str, reject);
usr/src/cmd/sgs/rtld/common/analyze.c
899
(void) printf(MSG_ORIG(MSG_LDD_FIL_EQUIV), name, path, str,
usr/src/cmd/sgs/rtld/common/analyze.c
995
append_alias(Rt_map *lmp, const char *str, int *added)
usr/src/cmd/sgs/rtld/common/cap.c
1062
cap_files(const char *str)
usr/src/cmd/sgs/rtld/common/cap.c
1066
if ((caps = strdup(str)) == NULL)
usr/src/cmd/sgs/rtld/common/cap.c
1206
char *str;
usr/src/cmd/sgs/rtld/common/cap.c
1248
str = STRTAB(lmp) + val;
usr/src/cmd/sgs/rtld/common/cap.c
1249
bestcapset->sc_plat = str;
usr/src/cmd/sgs/rtld/common/cap.c
1254
if (platcap_check(scapset, str, NULL) == 0)
usr/src/cmd/sgs/rtld/common/cap.c
1267
str = STRTAB(lmp) + val;
usr/src/cmd/sgs/rtld/common/cap.c
1268
bestcapset->sc_mach = str;
usr/src/cmd/sgs/rtld/common/cap.c
1273
if (machcap_check(scapset, str, NULL) == 0)
usr/src/cmd/sgs/rtld/common/cap.c
229
platcap_check(Syscapset *scapset, const char *str, Rej_desc *rej)
usr/src/cmd/sgs/rtld/common/cap.c
239
(str && strcmp(scapset->sc_plat, str))) {
usr/src/cmd/sgs/rtld/common/cap.c
249
rej->rej_str = stravl_insert(str, 0, 0, 0);
usr/src/cmd/sgs/rtld/common/cap.c
260
machcap_check(Syscapset *scapset, const char *str, Rej_desc *rej)
usr/src/cmd/sgs/rtld/common/cap.c
270
(str && strcmp(scapset->sc_mach, str))) {
usr/src/cmd/sgs/rtld/common/cap.c
280
rej->rej_str = stravl_insert(str, 0, 0, 0);
usr/src/cmd/sgs/rtld/common/cap.c
311
char *str;
usr/src/cmd/sgs/rtld/common/cap.c
348
str = strs + val;
usr/src/cmd/sgs/rtld/common/cap.c
350
if (platcap_check(scapset, str, rej) == 0)
usr/src/cmd/sgs/rtld/common/cap.c
353
fdp->fd_scapset.sc_plat = str;
usr/src/cmd/sgs/rtld/common/cap.c
366
str = strs + val;
usr/src/cmd/sgs/rtld/common/cap.c
368
if (machcap_check(scapset, str, rej) == 0)
usr/src/cmd/sgs/rtld/common/cap.c
371
fdp->fd_scapset.sc_mach = str;
usr/src/cmd/sgs/rtld/common/cap.c
906
cap_modify(Xword tag, const char *str)
usr/src/cmd/sgs/rtld/common/cap.c
912
if ((caps = strdup(str)) == NULL)
usr/src/cmd/sgs/rtld/common/config_elf.c
130
str = strtbl + obj->co_name;
usr/src/cmd/sgs/rtld/common/config_elf.c
132
if (rtld_stat(str, &status) != 0) {
usr/src/cmd/sgs/rtld/common/config_elf.c
135
config->c_name, str, strerror(err));
usr/src/cmd/sgs/rtld/common/config_elf.c
148
str = strtbl + obj->co_name;
usr/src/cmd/sgs/rtld/common/config_elf.c
158
if (rtld_stat(str, &status) != 0) {
usr/src/cmd/sgs/rtld/common/config_elf.c
162
str, strerror(err));
usr/src/cmd/sgs/rtld/common/config_elf.c
173
str);
usr/src/cmd/sgs/rtld/common/config_elf.c
204
const char *str;
usr/src/cmd/sgs/rtld/common/config_elf.c
212
if ((str = strrchr(PATHNAME(lmp), '/')) != NULL)
usr/src/cmd/sgs/rtld/common/config_elf.c
213
str++;
usr/src/cmd/sgs/rtld/common/config_elf.c
215
str = PATHNAME(lmp);
usr/src/cmd/sgs/rtld/common/config_elf.c
217
(void) snprintf(path, PATH_MAX, MSG_ORIG(MSG_ORG_CONFIG), str);
usr/src/cmd/sgs/rtld/common/config_elf.c
218
str = path;
usr/src/cmd/sgs/rtld/common/config_elf.c
220
str = config->c_name;
usr/src/cmd/sgs/rtld/common/config_elf.c
225
if (str) {
usr/src/cmd/sgs/rtld/common/config_elf.c
226
size_t size = strlen(str);
usr/src/cmd/sgs/rtld/common/config_elf.c
227
char *estr = (char *)str;
usr/src/cmd/sgs/rtld/common/config_elf.c
244
str = NULL;
usr/src/cmd/sgs/rtld/common/config_elf.c
246
str = (const char *)estr;
usr/src/cmd/sgs/rtld/common/config_elf.c
253
if (str == NULL) {
usr/src/cmd/sgs/rtld/common/config_elf.c
255
str = MSG_ORIG(MSG_PTH_CONFIG_64);
usr/src/cmd/sgs/rtld/common/config_elf.c
257
str = MSG_ORIG(MSG_PTH_CONFIG);
usr/src/cmd/sgs/rtld/common/config_elf.c
260
config->c_name = str;
usr/src/cmd/sgs/rtld/common/config_elf.c
265
if ((fd = open(str, O_RDONLY, 0)) == -1)
usr/src/cmd/sgs/rtld/common/config_elf.c
323
str = (const char *)(head->ch_edlibpath + addr);
usr/src/cmd/sgs/rtld/common/config_elf.c
326
str = conv_config_upm(str, MSG_ORIG(MSG_PTH_USRLIB_64),
usr/src/cmd/sgs/rtld/common/config_elf.c
329
str = conv_config_upm(str, MSG_ORIG(MSG_PTH_USRLIB),
usr/src/cmd/sgs/rtld/common/config_elf.c
333
if (expand_paths(lmp, str, &elf_def_dirs, AL_CNT_SEARCH,
usr/src/cmd/sgs/rtld/common/config_elf.c
338
str = (const char *)(head->ch_eslibpath + addr);
usr/src/cmd/sgs/rtld/common/config_elf.c
341
str = conv_config_upm(str,
usr/src/cmd/sgs/rtld/common/config_elf.c
345
str = conv_config_upm(str, MSG_ORIG(MSG_PTH_USRLIBSE),
usr/src/cmd/sgs/rtld/common/config_elf.c
349
if (expand_paths(lmp, str, &elf_sec_dirs, AL_CNT_SEARCH,
usr/src/cmd/sgs/rtld/common/config_elf.c
430
const char *str;
usr/src/cmd/sgs/rtld/common/config_elf.c
438
str = config->c_strtbl + obj->co_name;
usr/src/cmd/sgs/rtld/common/config_elf.c
440
if ((obj->co_hash != hash) || (strcmp(name, str) != 0) ||
usr/src/cmd/sgs/rtld/common/config_elf.c
468
const char *fltr, *str;
usr/src/cmd/sgs/rtld/common/config_elf.c
471
str = config->c_strtbl + fltrtbl->fr_string;
usr/src/cmd/sgs/rtld/common/config_elf.c
472
if (strcmp(filter, fltr) || strcmp(string, str))
usr/src/cmd/sgs/rtld/common/config_elf.c
50
const char *str, *strtbl = config->c_strtbl;
usr/src/cmd/sgs/rtld/common/debug.c
166
const char *str;
usr/src/cmd/sgs/rtld/common/debug.c
199
for (APLIST_TRAVERSE(dbg_desc->d_list, idx, str))
usr/src/cmd/sgs/rtld/common/debug.c
200
if (strcmp(lml->lm_lmidstr, str) == 0)
usr/src/cmd/sgs/rtld/common/dlfcns.c
2028
char *str = (char *)p;
usr/src/cmd/sgs/rtld/common/dlfcns.c
2030
(void) strncpy(str, ORIGNAME(lmp), DIRSZ(lmp));
usr/src/cmd/sgs/rtld/common/dlfcns.c
2031
str += DIRSZ(lmp);
usr/src/cmd/sgs/rtld/common/dlfcns.c
2032
*str = '\0';
usr/src/cmd/sgs/rtld/common/elf.c
149
char *str = NULL;
usr/src/cmd/sgs/rtld/common/elf.c
186
str = (char *)(dyn->d_un.d_ptr + base);
usr/src/cmd/sgs/rtld/common/elf.c
197
return (cap_check_fdesc(fdp, cap, str, rej));
usr/src/cmd/sgs/rtld/common/elf.c
2464
const char *str;
usr/src/cmd/sgs/rtld/common/elf.c
2489
str = STRTAB(lmp);
usr/src/cmd/sgs/rtld/common/elf.c
2611
dlip->dli_sname = str + _sym->st_name;
usr/src/cmd/sgs/rtld/common/paths.c
1033
char *str, *olist = 0, *nlist = (char *)list;
usr/src/cmd/sgs/rtld/common/paths.c
1037
for (str = nlist; *nlist || fnull; str = nlist) {
usr/src/cmd/sgs/rtld/common/paths.c
1044
++nlist, ++str;
usr/src/cmd/sgs/rtld/common/paths.c
1063
str = (char *)MSG_ORIG(MSG_FMT_CWD);
usr/src/cmd/sgs/rtld/common/paths.c
1088
ostr = str;
usr/src/cmd/sgs/rtld/common/paths.c
1090
if ((_tkns = expand(&str, &len, &elist, orig, omit,
usr/src/cmd/sgs/rtld/common/paths.c
1101
(is_path_secure(str, clmp, orig, tkns) == 0))
usr/src/cmd/sgs/rtld/common/paths.c
1117
tkns |= is_path_unique(*alpp, str);
usr/src/cmd/sgs/rtld/common/paths.c
1138
pdp->pd_pname = str;
usr/src/cmd/sgs/rtld/common/paths.c
703
char buf[PATH_MAX], *str;
usr/src/cmd/sgs/rtld/common/paths.c
711
str = strchr(oname, ':');
usr/src/cmd/sgs/rtld/common/paths.c
712
if (str != NULL) {
usr/src/cmd/sgs/rtld/common/paths.c
713
size_t slen = str - oname;
usr/src/cmd/sgs/rtld/common/paths.c
717
str = buf;
usr/src/cmd/sgs/rtld/common/paths.c
719
str = oname;
usr/src/cmd/sgs/rtld/common/paths.c
723
str, token);
usr/src/cmd/sgs/rtld/common/paths.c
847
char *str;
usr/src/cmd/sgs/rtld/common/paths.c
853
str = strrchr(opath, '/');
usr/src/cmd/sgs/rtld/common/paths.c
868
if ((((str == 0) && ((info & PD_FLG_FULLPATH) == 0)) ||
usr/src/cmd/sgs/rtld/common/paths.c
869
((*opath == '/') && (str != opath) &&
usr/src/cmd/sgs/rtld/common/paths.c
877
if (str) {
usr/src/cmd/sgs/rtld/common/paths.c
878
if (str == opath)
usr/src/cmd/sgs/rtld/common/paths.c
883
if ((size = str - opath) >= PATH_MAX)
usr/src/cmd/sgs/rtld/common/setup.c
203
char *str, *argvname;
usr/src/cmd/sgs/rtld/common/setup.c
266
if ((str = strrchr(argvname, '/')) != NULL)
usr/src/cmd/sgs/rtld/common/setup.c
267
procname = ++str;
usr/src/cmd/sgs/rtld/common/setup.c
280
if ((str = strrchr(_rtldname, '/')) != NULL)
usr/src/cmd/sgs/rtld/common/setup.c
281
rtldname = ++str;
usr/src/cmd/sgs/rtld/common/setup.c
495
if ((str = strrchr(argvname, '/')) != NULL)
usr/src/cmd/sgs/rtld/common/setup.c
496
procname = ++str;
usr/src/cmd/sgs/rtld/common/setup.c
665
if ((str = strrchr(PATHNAME(rlmp), '/')) != NULL)
usr/src/cmd/sgs/rtld/common/setup.c
666
rtldname = ++str;
usr/src/cmd/sgs/rtld/common/setup.c
682
if ((str = (char *)strdup(procname)) == NULL)
usr/src/cmd/sgs/rtld/common/setup.c
684
procname = str;
usr/src/cmd/sgs/rtld/common/setup.c
90
preload(const char *str, Rt_map *mlmp, Rt_map **clmp)
usr/src/cmd/sgs/rtld/common/setup.c
99
if ((objs = strdup(str)) == NULL)
usr/src/cmd/sgs/rtld/common/util.c
1457
const char **str;
usr/src/cmd/sgs/rtld/common/util.c
1485
str = (select & SEL_REPLACE) ? &rpl_audit : &prm_audit;
usr/src/cmd/sgs/rtld/common/util.c
1543
str = (select & SEL_REPLACE) ?
usr/src/cmd/sgs/rtld/common/util.c
1568
str = &config->c_name;
usr/src/cmd/sgs/rtld/common/util.c
1580
str = (select & SEL_REPLACE) ? &rpl_debug : &prm_debug;
usr/src/cmd/sgs/rtld/common/util.c
1586
str = &dbg_file;
usr/src/cmd/sgs/rtld/common/util.c
1609
str = (select & SEL_REPLACE) ? &rpl_ldflags :
usr/src/cmd/sgs/rtld/common/util.c
1621
str = (select & SEL_REPLACE) ?
usr/src/cmd/sgs/rtld/common/util.c
1644
str = (select & SEL_REPLACE) ? &rpl_libpath :
usr/src/cmd/sgs/rtld/common/util.c
1671
str = (select & SEL_REPLACE) ?
usr/src/cmd/sgs/rtld/common/util.c
1770
str = (select & SEL_REPLACE) ?
usr/src/cmd/sgs/rtld/common/util.c
1776
str = (select & SEL_REPLACE) ? &rpl_preload :
usr/src/cmd/sgs/rtld/common/util.c
1793
str = &profile_out;
usr/src/cmd/sgs/rtld/common/util.c
1804
str = (select & SEL_REPLACE) ?
usr/src/cmd/sgs/rtld/common/util.c
1965
*str = NULL;
usr/src/cmd/sgs/rtld/common/util.c
1967
*str = s2;
usr/src/cmd/sgs/rtld/common/util.c
1983
*str = NULL;
usr/src/cmd/sgs/rtld/common/util.c
1985
*str = s2;
usr/src/cmd/sgs/rtld/common/util.c
2125
ld_flags_env(const char *str, Word *lmflags, Word *lmtflags,
usr/src/cmd/sgs/rtld/common/util.c
2131
if (str == NULL)
usr/src/cmd/sgs/rtld/common/util.c
2138
len = strlen(str);
usr/src/cmd/sgs/rtld/common/util.c
2141
(void) strcpy(nstr, str);
usr/src/cmd/sgs/rtld/common/util.c
2225
char *str;
usr/src/cmd/sgs/rtld/common/util.c
2242
str = argv[ndx];
usr/src/cmd/sgs/rtld/common/util.c
2244
str = &argv[ndx][2];
usr/src/cmd/sgs/rtld/common/util.c
2253
if ((str[0] == 'L') && (str[1] == 'D') && (str[2] == '_') &&
usr/src/cmd/sgs/rtld/common/util.c
2254
(str[3] != '\0'))
usr/src/cmd/sgs/rtld/common/util.c
2255
str += 3;
usr/src/cmd/sgs/rtld/common/util.c
2256
if (ld_flags_env(str, lmflags, lmtflags,
usr/src/cmd/sgs/rtld/common/util.c
3023
char *str = (char *)MSG_INTL(MSG_EMG_BUFOVRFLW);
usr/src/cmd/sgs/rtld/common/util.c
3026
lasterr = str;
usr/src/cmd/sgs/rtld/common/util.c
3029
(void) write(2, str, strlen(str));
usr/src/cmd/sgs/rtld/common/util.c
3034
DBG_CALL(Dbg_util_str(lml, str));
usr/src/cmd/sgs/rtld/common/util.c
484
char buffer[PATH_MAX], *str;
usr/src/cmd/sgs/rtld/common/util.c
493
if ((str = strrchr(name, '/')) == name)
usr/src/cmd/sgs/rtld/common/util.c
496
size = str - name;
usr/src/cmd/sgs/rtld/common/util.c
537
char str[PATH_MAX];
usr/src/cmd/sgs/rtld/common/util.c
559
(void) strncpy(str, name, nsize);
usr/src/cmd/sgs/rtld/common/util.c
560
str[nsize - 1] = '\0';
usr/src/cmd/sgs/rtld/common/util.c
561
name = str;
usr/src/cmd/sgs/rtld/mdbmod/common/rtld.c
1015
char *str;
usr/src/cmd/sgs/rtld/mdbmod/common/rtld.c
1032
if ((str = Rtmap_Name((uintptr_t)gd.gd_depend)) == 0)
usr/src/cmd/sgs/rtld/mdbmod/common/rtld.c
1035
mdb_printf(MSG_ORIG(MSG_GRPDESC_LINE2), gd.gd_depend, str);
usr/src/cmd/sgs/rtld/mdbmod/common/rtld.c
1055
char *str;
usr/src/cmd/sgs/rtld/mdbmod/common/rtld.c
1083
if ((str = Rtmap_Name((uintptr_t)gh.gh_ownlmp)) == 0)
usr/src/cmd/sgs/rtld/mdbmod/common/rtld.c
1086
str = (char *)MSG_ORIG(MSG_STR_ORPHANED);
usr/src/cmd/sgs/rtld/mdbmod/common/rtld.c
1088
mdb_printf(MSG_ORIG(MSG_GRPHDL_LINE2), str);
usr/src/cmd/sgs/rtld/mdbmod/common/rtld.c
1145
char *str;
usr/src/cmd/sgs/rtld/mdbmod/common/rtld.c
1169
if ((str = String((uintptr_t)NAME(&rtmap),
usr/src/cmd/sgs/rtld/mdbmod/common/rtld.c
1173
mdb_printf(MSG_ORIG(MSG_HANDLES_LINE1), str);
usr/src/cmd/sgs/rtld/mdbmod/common/rtld.c
1242
char *str;
usr/src/cmd/sgs/rtld/mdbmod/common/rtld.c
1266
if ((str = String((uintptr_t)NAME(&rtmap),
usr/src/cmd/sgs/rtld/mdbmod/common/rtld.c
1270
mdb_printf(MSG_ORIG(MSG_GROUPS_LINE1), str);
usr/src/cmd/sgs/rtld/mdbmod/common/rtld.c
183
static char str[MAXPATHLEN];
usr/src/cmd/sgs/rtld/mdbmod/common/rtld.c
186
if (mdb_readstr(str, MAXPATHLEN, addr) == -1) {
usr/src/cmd/sgs/rtld/mdbmod/common/rtld.c
190
return (str);
usr/src/cmd/sgs/rtld/mdbmod/common/rtld.c
226
char *str;
usr/src/cmd/sgs/rtld/mdbmod/common/rtld.c
248
if ((str = Rtmap_Name((uintptr_t)bnd.b_caller)) == 0)
usr/src/cmd/sgs/rtld/mdbmod/common/rtld.c
250
mdb_printf(MSG_ORIG(MSG_BND_LINE1), bnd.b_caller, str);
usr/src/cmd/sgs/rtld/mdbmod/common/rtld.c
255
if ((str = Rtmap_Name((uintptr_t)bnd.b_depend)) == 0)
usr/src/cmd/sgs/rtld/mdbmod/common/rtld.c
257
mdb_printf(MSG_ORIG(MSG_BND_LINE2), bnd.b_depend, str);
usr/src/cmd/sgs/rtld/mdbmod/common/rtld.c
339
char *str;
usr/src/cmd/sgs/rtld/mdbmod/common/rtld.c
360
if ((str = String((uintptr_t)NAME(&rtmap),
usr/src/cmd/sgs/rtld/mdbmod/common/rtld.c
364
mdb_printf(MSG_ORIG(MSG_DEPENDS_LINE1), str);
usr/src/cmd/sgs/rtld/mdbmod/common/rtld.c
384
char *str;
usr/src/cmd/sgs/rtld/mdbmod/common/rtld.c
405
if ((str = String((uintptr_t)NAME(&rtmap),
usr/src/cmd/sgs/rtld/mdbmod/common/rtld.c
409
mdb_printf(MSG_ORIG(MSG_CALLERS_LINE1), str);
usr/src/cmd/sgs/rtld/mdbmod/common/rtld.c
430
char *str;
usr/src/cmd/sgs/rtld/mdbmod/common/rtld.c
451
if ((str = String((uintptr_t)NAME(&rtmap),
usr/src/cmd/sgs/rtld/mdbmod/common/rtld.c
454
mdb_printf(MSG_ORIG(MSG_RTMAP_LINE1), str);
usr/src/cmd/sgs/rtld/mdbmod/common/rtld.c
456
if ((str = String((uintptr_t)PATHNAME(&rtmap),
usr/src/cmd/sgs/rtld/mdbmod/common/rtld.c
459
mdb_printf(MSG_ORIG(MSG_RTMAP_LINE2), str);
usr/src/cmd/sgs/rtld/mdbmod/common/rtld.c
469
if ((str = String((uintptr_t)REFNAME(&rtmap),
usr/src/cmd/sgs/rtld/mdbmod/common/rtld.c
472
mdb_printf(MSG_ORIG(MSG_RTMAP_LINE9), DYNINFO(&rtmap), str);
usr/src/cmd/sgs/rtld/mdbmod/common/rtld.c
474
if ((str = String((uintptr_t)RPATH(&rtmap),
usr/src/cmd/sgs/rtld/mdbmod/common/rtld.c
477
mdb_printf(MSG_ORIG(MSG_RTMAP_LINE10), RLIST(&rtmap), str);
usr/src/cmd/sgs/rtld/mdbmod/common/rtld.c
500
char *str;
usr/src/cmd/sgs/rtld/mdbmod/common/rtld.c
509
if ((str = String((uintptr_t)NAME(lmp),
usr/src/cmd/sgs/rtld/mdbmod/common/rtld.c
513
mdb_printf(MSG_ORIG(MSG_FMT_RT), CNTL(lmp), addr, ADDR(lmp), str);
usr/src/cmd/sgs/rtld/mdbmod/common/rtld.c
530
const char *str;
usr/src/cmd/sgs/rtld/mdbmod/common/rtld.c
605
str = MSG_ORIG(MSG_LMLIST_BASE);
usr/src/cmd/sgs/rtld/mdbmod/common/rtld.c
607
str = MSG_ORIG(MSG_LMLIST_LDSO);
usr/src/cmd/sgs/rtld/mdbmod/common/rtld.c
609
str = MSG_ORIG(MSG_LMLIST_NEWLM);
usr/src/cmd/sgs/rtld/mdbmod/common/rtld.c
614
mdb_printf(MSG_ORIG(MSG_LMLIST_TITLE2), datap, str);
usr/src/cmd/sgs/rtld/mdbmod/common/rtld.c
657
char *str;
usr/src/cmd/sgs/rtld/mdbmod/common/rtld.c
667
str = mdb_alloc((strlen(argv->a_un.a_str) + 1), UM_NOSLEEP);
usr/src/cmd/sgs/rtld/mdbmod/common/rtld.c
668
if (str == NULL)
usr/src/cmd/sgs/rtld/mdbmod/common/rtld.c
671
(void) strcpy(str, argv->a_un.a_str);
usr/src/cmd/sgs/rtld/mdbmod/common/rtld.c
672
(void) putenv(str);
usr/src/cmd/sgs/rtld/mdbmod/common/rtld.c
789
const char *str;
usr/src/cmd/sgs/rtld/mdbmod/common/rtld.c
803
str = MSG_ORIG(MSG_LMLIST_BASE);
usr/src/cmd/sgs/rtld/mdbmod/common/rtld.c
805
str = MSG_ORIG(MSG_LMLIST_LDSO);
usr/src/cmd/sgs/rtld/mdbmod/common/rtld.c
807
str = MSG_ORIG(MSG_LMLIST_NEWLM);
usr/src/cmd/sgs/rtld/mdbmod/common/rtld.c
812
mdb_printf(MSG_ORIG(MSG_LMLIST_TITLE2), addr, str);
usr/src/cmd/sgs/rtld/sparc/common_sparc.c
121
const char *str, *sym1, *sym2;
usr/src/cmd/sgs/rtld/sparc/common_sparc.c
136
if ((str = demangle(sym1)) != sym1) {
usr/src/cmd/sgs/rtld/sparc/common_sparc.c
137
char *_str = alloca(strlen(str) + 1);
usr/src/cmd/sgs/rtld/sparc/common_sparc.c
138
(void) strcpy(_str, str);
usr/src/cmd/sgs/tsort/common/errmsg.h
48
void errprefix(char *str);
usr/src/cmd/sgs/tsort/common/errmsg.h
49
void errsource(char *str);
usr/src/cmd/sgs/tsort/common/errmsg.h
50
void errtag(char *str, int num);
usr/src/cmd/sgs/tsort/common/errmsg.h
52
void errtofix(char *str);
usr/src/cmd/sgs/tsort/common/errprefix.c
39
errprefix(char *str)
usr/src/cmd/sgs/tsort/common/errprefix.c
41
Err.prefix = str;
usr/src/cmd/sgs/tsort/common/errsource.c
39
errsource(char *str)
usr/src/cmd/sgs/tsort/common/errsource.c
41
Err.source = str;
usr/src/cmd/sgs/tsort/common/errtag.c
40
errtag(char *str, int num)
usr/src/cmd/sgs/tsort/common/errtag.c
42
Err.tagstr = str;
usr/src/cmd/sgs/tsort/common/errtofix.c
39
errtofix(char *str)
usr/src/cmd/sgs/tsort/common/errtofix.c
41
Err.tofix = str;
usr/src/cmd/sh/hash.c
108
hfind(str)
usr/src/cmd/sh/hash.c
109
unsigned char *str;
usr/src/cmd/sh/hash.c
116
i = hash(str);
usr/src/cmd/sh/hash.c
128
while (p != 0 && (res = STRCMP(str, p->item.key)))
usr/src/cmd/sh/hash.c
46
#define hash(str) (int)(((unsigned)(crunch(str) * FACTOR)) >> shift)
usr/src/cmd/smbios/smbios.c
237
str_print_label(FILE *fp, const char *header, const char *str, boolean_t label)
usr/src/cmd/smbios/smbios.c
246
for (c = str; *c != '\0'; c++) {
usr/src/cmd/smbios/smbios.c
258
str_print_nolabel(FILE *fp, const char *ws, const char *str)
usr/src/cmd/smbios/smbios.c
260
return (str_print_label(fp, ws, str, B_FALSE));
usr/src/cmd/smbios/smbios.c
264
str_print(FILE *fp, const char *header, const char *str)
usr/src/cmd/smbios/smbios.c
266
return (str_print_label(fp, header, str, B_TRUE));
usr/src/cmd/sort/initialize.c
205
stream_t *str;
usr/src/cmd/sort/initialize.c
208
str = stream_new(STREAM_SINGLE | STREAM_NOTFILE);
usr/src/cmd/sort/initialize.c
209
str->s_element_size = sizeof (char);
usr/src/cmd/sort/initialize.c
211
str = stream_new(STREAM_WIDE | STREAM_NOTFILE);
usr/src/cmd/sort/initialize.c
212
str->s_element_size = sizeof (wchar_t);
usr/src/cmd/sort/initialize.c
214
str->s_filename = (char *)filename_stdin;
usr/src/cmd/sort/initialize.c
215
stream_push_to_chain(&S->m_input_streams, str);
usr/src/cmd/sort/streams.c
101
str->s_ops.sop_put_line =
usr/src/cmd/sort/streams.c
108
if (str->s_status & STREAM_INSTANT)
usr/src/cmd/sort/streams.c
109
switch (str->s_status & STREAM_SOURCE_MASK) {
usr/src/cmd/sort/streams.c
111
str->s_ops.sop_fetch =
usr/src/cmd/sort/streams.c
115
str->s_ops.sop_fetch =
usr/src/cmd/sort/streams.c
138
stream_clear(stream_t *str)
usr/src/cmd/sort/streams.c
140
(void) memset(str, 0, sizeof (stream_t));
usr/src/cmd/sort/streams.c
174
stream_count_chain(stream_t *str)
usr/src/cmd/sort/streams.c
178
while (str != NULL) {
usr/src/cmd/sort/streams.c
180
str = str->s_next;
usr/src/cmd/sort/streams.c
187
stream_open_for_read(sort_t *S, stream_t *str)
usr/src/cmd/sort/streams.c
191
ASSERT(!(str->s_status & STREAM_OUTPUT));
usr/src/cmd/sort/streams.c
196
if ((str->s_status & STREAM_SOURCE_MASK) == STREAM_ARRAY) {
usr/src/cmd/sort/streams.c
197
stream_set(str, STREAM_ARRAY | STREAM_OPEN);
usr/src/cmd/sort/streams.c
204
if (str->s_status & STREAM_NOTFILE) {
usr/src/cmd/sort/streams.c
205
str->s_type.BF.s_fp = stdin;
usr/src/cmd/sort/streams.c
206
stream_set(str, STREAM_OPEN | (S->m_single_byte_locale ?
usr/src/cmd/sort/streams.c
211
ASSERT(str->s_filename);
usr/src/cmd/sort/streams.c
215
str->s_filesize > 0 &&
usr/src/cmd/sort/streams.c
216
str->s_filesize < SSIZE_MAX) {
usr/src/cmd/sort/streams.c
220
fd = open(str->s_filename, O_RDONLY);
usr/src/cmd/sort/streams.c
225
die(EMSG_OPEN, str->s_filename);
usr/src/cmd/sort/streams.c
227
str->s_buffer = mmap(0, str->s_filesize, PROT_READ,
usr/src/cmd/sort/streams.c
230
if (str->s_buffer != MAP_FAILED) {
usr/src/cmd/sort/streams.c
231
str->s_buffer_size = str->s_filesize;
usr/src/cmd/sort/streams.c
232
str->s_type.SF.s_fd = fd;
usr/src/cmd/sort/streams.c
234
stream_set(str, STREAM_MMAP | STREAM_OPEN);
usr/src/cmd/sort/streams.c
235
stream_unset(str, STREAM_PRIMED);
usr/src/cmd/sort/streams.c
245
str->s_buffer = NULL;
usr/src/cmd/sort/streams.c
249
if ((str->s_type.BF.s_fp = fopen(str->s_filename, "r")) == NULL) {
usr/src/cmd/sort/streams.c
253
die(EMSG_OPEN, str->s_filename);
usr/src/cmd/sort/streams.c
256
str->s_type.BF.s_vbuf = safe_realloc(NULL, STDIO_VBUF_SIZE);
usr/src/cmd/sort/streams.c
257
if (setvbuf(str->s_type.BF.s_fp, str->s_type.BF.s_vbuf, _IOFBF,
usr/src/cmd/sort/streams.c
259
safe_free(str->s_type.BF.s_vbuf);
usr/src/cmd/sort/streams.c
260
str->s_type.BF.s_vbuf = NULL;
usr/src/cmd/sort/streams.c
263
stream_set(str, STREAM_OPEN | (S->m_single_byte_locale ? STREAM_SINGLE :
usr/src/cmd/sort/streams.c
265
stream_unset(str, STREAM_PRIMED);
usr/src/cmd/sort/streams.c
271
stream_set_size(stream_t *str, size_t new_size)
usr/src/cmd/sort/streams.c
281
if (str->s_buffer_size == p_new_size)
usr/src/cmd/sort/streams.c
284
if (str->s_buffer != NULL)
usr/src/cmd/sort/streams.c
285
(void) munmap(str->s_buffer, str->s_buffer_size);
usr/src/cmd/sort/streams.c
288
str->s_buffer = NULL;
usr/src/cmd/sort/streams.c
289
str->s_buffer_size = 0;
usr/src/cmd/sort/streams.c
293
str->s_buffer = xzmap(0, p_new_size, PROT_READ | PROT_WRITE,
usr/src/cmd/sort/streams.c
296
if (str->s_buffer == MAP_FAILED)
usr/src/cmd/sort/streams.c
299
str->s_buffer_size = p_new_size;
usr/src/cmd/sort/streams.c
305
stream_t *str;
usr/src/cmd/sort/streams.c
307
str = stream_new(STREAM_NO_SOURCE);
usr/src/cmd/sort/streams.c
309
str->s_filename = filename;
usr/src/cmd/sort/streams.c
310
str->s_type.SF.s_fd = -1;
usr/src/cmd/sort/streams.c
312
stream_push_to_chain(str_chain, str);
usr/src/cmd/sort/streams.c
44
stream_t *str = safe_realloc(NULL, sizeof (stream_t));
usr/src/cmd/sort/streams.c
46
stream_clear(str);
usr/src/cmd/sort/streams.c
47
stream_set(str, src);
usr/src/cmd/sort/streams.c
49
return (str);
usr/src/cmd/sort/streams.c
53
stream_set(stream_t *str, flag_t flags)
usr/src/cmd/sort/streams.c
580
stream_swap_buffer(stream_t *str, char **buf, size_t *size)
usr/src/cmd/sort/streams.c
585
*buf = str->s_buffer;
usr/src/cmd/sort/streams.c
586
*size = str->s_buffer_size;
usr/src/cmd/sort/streams.c
588
str->s_buffer = tb;
usr/src/cmd/sort/streams.c
589
str->s_buffer_size = ts;
usr/src/cmd/sort/streams.c
61
str->s_status &= ~STREAM_SOURCE_MASK;
usr/src/cmd/sort/streams.c
62
str->s_status |= flags & STREAM_SOURCE_MASK;
usr/src/cmd/sort/streams.c
66
str->s_element_size = 0;
usr/src/cmd/sort/streams.c
67
str->s_ops = invalid_ops;
usr/src/cmd/sort/streams.c
73
str->s_ops = stream_array_ops;
usr/src/cmd/sort/streams.c
76
str->s_element_size = sizeof (char);
usr/src/cmd/sort/streams.c
77
str->s_ops = stream_mmap_ops;
usr/src/cmd/sort/streams.c
80
str->s_element_size = sizeof (char);
usr/src/cmd/sort/streams.c
81
str->s_ops = stream_stdio_ops;
usr/src/cmd/sort/streams.c
84
str->s_element_size = sizeof (wchar_t);
usr/src/cmd/sort/streams.c
85
str->s_ops = stream_wide_ops;
usr/src/cmd/sort/streams.c
88
die(EMSG_UNKN_STREAM, str->s_status);
usr/src/cmd/sort/streams.c
92
str->s_status |= (flags & ~STREAM_SOURCE_MASK);
usr/src/cmd/sort/streams.c
94
if (str->s_status & STREAM_UNIQUE)
usr/src/cmd/sort/streams.c
95
switch (str->s_status & STREAM_SOURCE_MASK) {
usr/src/cmd/sort/streams.c
97
str->s_ops.sop_put_line =
usr/src/cmd/sort/streams_array.c
102
stream_array_eos(stream_t *str)
usr/src/cmd/sort/streams_array.c
106
if (str == NULL || str->s_status & STREAM_EOS_REACHED)
usr/src/cmd/sort/streams_array.c
109
if (str->s_type.LA.s_cur_index + 1 >= str->s_type.LA.s_array_size) {
usr/src/cmd/sort/streams_array.c
111
stream_set(str, STREAM_EOS_REACHED);
usr/src/cmd/sort/streams_array.c
119
stream_array_release_line(stream_t *str)
usr/src/cmd/sort/streams_array.c
35
stream_array_prime(stream_t *str)
usr/src/cmd/sort/streams_array.c
37
ASSERT((str->s_status & STREAM_SOURCE_MASK) == STREAM_ARRAY);
usr/src/cmd/sort/streams_array.c
39
str->s_type.LA.s_cur_index = MIN(0, str->s_type.LA.s_array_size - 1);
usr/src/cmd/sort/streams_array.c
40
if (str->s_type.LA.s_cur_index >= 0)
usr/src/cmd/sort/streams_array.c
42
str->s_type.LA.s_array[str->s_type.LA.s_cur_index],
usr/src/cmd/sort/streams_array.c
43
&str->s_current);
usr/src/cmd/sort/streams_array.c
45
stream_set(str, STREAM_EOS_REACHED);
usr/src/cmd/sort/streams_array.c
46
stream_unset(str, STREAM_PRIMED);
usr/src/cmd/sort/streams_array.c
50
stream_set(str, STREAM_PRIMED);
usr/src/cmd/sort/streams_array.c
56
stream_array_fetch(stream_t *str)
usr/src/cmd/sort/streams_array.c
58
ASSERT(str->s_status & STREAM_OPEN);
usr/src/cmd/sort/streams_array.c
59
ASSERT(str->s_type.LA.s_cur_index < str->s_type.LA.s_array_size);
usr/src/cmd/sort/streams_array.c
61
if (++str->s_type.LA.s_cur_index == str->s_type.LA.s_array_size - 1)
usr/src/cmd/sort/streams_array.c
62
stream_set(str, STREAM_EOS_REACHED);
usr/src/cmd/sort/streams_array.c
64
copy_line_rec(str->s_type.LA.s_array[str->s_type.LA.s_cur_index],
usr/src/cmd/sort/streams_array.c
65
&str->s_current);
usr/src/cmd/sort/streams_array.c
72
stream_array_is_closable(stream_t *str)
usr/src/cmd/sort/streams_array.c
82
stream_array_close(stream_t *str)
usr/src/cmd/sort/streams_array.c
84
stream_unset(str, STREAM_OPEN | STREAM_PRIMED);
usr/src/cmd/sort/streams_array.c
90
stream_array_free(stream_t *str)
usr/src/cmd/sort/streams_array.c
96
stream_unset(str, STREAM_PRIMED | STREAM_NOT_FREEABLE);
usr/src/cmd/sort/streams_mmap.c
102
if (str->s_current.l_data.sp + str->s_current.l_data_length + 1 >=
usr/src/cmd/sort/streams_mmap.c
103
(char *)str->s_buffer + str->s_buffer_size)
usr/src/cmd/sort/streams_mmap.c
104
stream_set(str, STREAM_EOS_REACHED);
usr/src/cmd/sort/streams_mmap.c
106
str->s_current.l_collate_length = 0;
usr/src/cmd/sort/streams_mmap.c
113
stream_mmap_is_closable(stream_t *str)
usr/src/cmd/sort/streams_mmap.c
115
if (str->s_status & STREAM_OPEN)
usr/src/cmd/sort/streams_mmap.c
121
stream_mmap_close(stream_t *str)
usr/src/cmd/sort/streams_mmap.c
123
if (str->s_type.SF.s_fd > -1) {
usr/src/cmd/sort/streams_mmap.c
124
(void) close(str->s_type.SF.s_fd);
usr/src/cmd/sort/streams_mmap.c
125
stream_unset(str, STREAM_OPEN);
usr/src/cmd/sort/streams_mmap.c
133
stream_mmap_free(stream_t *str)
usr/src/cmd/sort/streams_mmap.c
135
if (!(str->s_status & STREAM_OPEN) ||
usr/src/cmd/sort/streams_mmap.c
136
(str->s_consumer != NULL &&
usr/src/cmd/sort/streams_mmap.c
137
str->s_consumer->s_status & STREAM_NOT_FREEABLE))
usr/src/cmd/sort/streams_mmap.c
140
if (str->s_buffer == NULL)
usr/src/cmd/sort/streams_mmap.c
143
if (munmap(str->s_buffer, str->s_buffer_size) < 0)
usr/src/cmd/sort/streams_mmap.c
144
die(EMSG_MUNMAP, str->s_filename);
usr/src/cmd/sort/streams_mmap.c
146
str->s_buffer = NULL;
usr/src/cmd/sort/streams_mmap.c
147
str->s_buffer_size = 0;
usr/src/cmd/sort/streams_mmap.c
149
stream_unset(str, STREAM_PRIMED);
usr/src/cmd/sort/streams_mmap.c
155
stream_mmap_eos(stream_t *str)
usr/src/cmd/sort/streams_mmap.c
159
if (str == NULL || str->s_status & STREAM_EOS_REACHED)
usr/src/cmd/sort/streams_mmap.c
167
if (str->s_filesize == 0 ||
usr/src/cmd/sort/streams_mmap.c
168
(stream_is_primed(str) && str->s_current.l_data.sp -
usr/src/cmd/sort/streams_mmap.c
169
(char *)str->s_buffer + str->s_current.l_data_length + 1 >=
usr/src/cmd/sort/streams_mmap.c
170
str->s_buffer_size)) {
usr/src/cmd/sort/streams_mmap.c
172
stream_set(str, STREAM_EOS_REACHED);
usr/src/cmd/sort/streams_mmap.c
189
stream_mmap_release_line(stream_t *str)
usr/src/cmd/sort/streams_mmap.c
191
caddr_t origin = str->s_type.SF.s_release_origin;
usr/src/cmd/sort/streams_mmap.c
194
while ((caddr_t)((ulong_t)str->s_current.l_data.sp & ALIGNED) -
usr/src/cmd/sort/streams_mmap.c
204
str->s_type.SF.s_release_origin += release;
usr/src/cmd/sort/streams_mmap.c
35
stream_mmap_prime(stream_t *str)
usr/src/cmd/sort/streams_mmap.c
39
if (stream_is_primed(str))
usr/src/cmd/sort/streams_mmap.c
42
stream_set(str, STREAM_PRIMED);
usr/src/cmd/sort/streams_mmap.c
44
if (str->s_buffer_size == 0) {
usr/src/cmd/sort/streams_mmap.c
45
stream_set(str, STREAM_EOS_REACHED);
usr/src/cmd/sort/streams_mmap.c
49
str->s_current.l_data.sp = str->s_buffer;
usr/src/cmd/sort/streams_mmap.c
50
str->s_type.SF.s_release_origin = str->s_buffer;
usr/src/cmd/sort/streams_mmap.c
51
if ((nl = (char *)memchr(str->s_buffer, '\n', str->s_buffer_size)) ==
usr/src/cmd/sort/streams_mmap.c
53
warn(WMSG_NEWLINE_ADDED, str->s_filename);
usr/src/cmd/sort/streams_mmap.c
54
str->s_current.l_data_length = str->s_buffer_size;
usr/src/cmd/sort/streams_mmap.c
56
str->s_current.l_data_length = nl - (char *)str->s_buffer;
usr/src/cmd/sort/streams_mmap.c
59
str->s_current.l_collate.sp = NULL;
usr/src/cmd/sort/streams_mmap.c
60
str->s_current.l_collate_length = 0;
usr/src/cmd/sort/streams_mmap.c
71
stream_mmap_fetch(stream_t *str)
usr/src/cmd/sort/streams_mmap.c
76
ASSERT(stream_is_primed(str));
usr/src/cmd/sort/streams_mmap.c
77
ASSERT((str->s_status & STREAM_EOS_REACHED) == 0);
usr/src/cmd/sort/streams_mmap.c
82
str->s_current.l_data.sp = str->s_current.l_data.sp +
usr/src/cmd/sort/streams_mmap.c
83
str->s_current.l_data_length + 1;
usr/src/cmd/sort/streams_mmap.c
85
dist_to_buf_end = str->s_buffer_size - (str->s_current.l_data.sp
usr/src/cmd/sort/streams_mmap.c
86
- (char *)str->s_buffer);
usr/src/cmd/sort/streams_mmap.c
87
ASSERT(dist_to_buf_end >= 0 && dist_to_buf_end <= str->s_buffer_size);
usr/src/cmd/sort/streams_mmap.c
89
next_nl = memchr(str->s_current.l_data.sp, '\n', dist_to_buf_end);
usr/src/cmd/sort/streams_mmap.c
92
str->s_current.l_data_length = next_nl
usr/src/cmd/sort/streams_mmap.c
93
- str->s_current.l_data.sp;
usr/src/cmd/sort/streams_mmap.c
95
warn(WMSG_NEWLINE_ADDED, str->s_filename);
usr/src/cmd/sort/streams_mmap.c
96
str->s_current.l_data_length = dist_to_buf_end;
usr/src/cmd/sort/streams_stdio.c
107
ASSERT(str->s_current.l_data_length >= -1);
usr/src/cmd/sort/streams_stdio.c
108
(void) memcpy(str->s_buffer, str->s_current.l_data.sp,
usr/src/cmd/sort/streams_stdio.c
109
str->s_current.l_data_length + 1);
usr/src/cmd/sort/streams_stdio.c
110
str->s_current.l_data.sp = str->s_buffer;
usr/src/cmd/sort/streams_stdio.c
116
if ((str->s_current.l_data_length == -1 ||
usr/src/cmd/sort/streams_stdio.c
118
*(str->s_current.l_data.sp +
usr/src/cmd/sort/streams_stdio.c
119
str->s_current.l_data_length) != '\n') &&
usr/src/cmd/sort/streams_stdio.c
120
SOP_FETCH(str) == NEXT_LINE_INCOMPLETE &&
usr/src/cmd/sort/streams_stdio.c
124
str->s_current.l_collate.sp = NULL;
usr/src/cmd/sort/streams_stdio.c
125
str->s_current.l_collate_length = 0;
usr/src/cmd/sort/streams_stdio.c
130
stream_set(str, STREAM_PRIMED);
usr/src/cmd/sort/streams_stdio.c
132
current_position = (char *)str->s_buffer;
usr/src/cmd/sort/streams_stdio.c
133
end_of_buffer = (char *)str->s_buffer + str->s_buffer_size;
usr/src/cmd/sort/streams_stdio.c
140
stream_set(str, STREAM_EOS_REACHED);
usr/src/cmd/sort/streams_stdio.c
141
stream_unset(str, STREAM_PRIMED);
usr/src/cmd/sort/streams_stdio.c
145
str->s_current.l_data.sp = current_position;
usr/src/cmd/sort/streams_stdio.c
152
warn(WMSG_NEWLINE_ADDED, str->s_filename);
usr/src/cmd/sort/streams_stdio.c
153
str->s_current.l_data_length = MIN(strlen(current_position),
usr/src/cmd/sort/streams_stdio.c
156
str->s_current.l_data_length = next_nl - current_position;
usr/src/cmd/sort/streams_stdio.c
159
str->s_current.l_collate.sp = NULL;
usr/src/cmd/sort/streams_stdio.c
160
str->s_current.l_collate_length = 0;
usr/src/cmd/sort/streams_stdio.c
171
stream_stdio_fetch(stream_t *str)
usr/src/cmd/sort/streams_stdio.c
177
ASSERT(str->s_status & STREAM_OPEN);
usr/src/cmd/sort/streams_stdio.c
178
ASSERT(str->s_status & (STREAM_SINGLE | STREAM_WIDE));
usr/src/cmd/sort/streams_stdio.c
179
ASSERT((str->s_status & STREAM_EOS_REACHED) == 0);
usr/src/cmd/sort/streams_stdio.c
181
graft_pt = str->s_current.l_data.sp + str->s_current.l_data_length + 1;
usr/src/cmd/sort/streams_stdio.c
187
str->s_current.l_data.sp = graft_pt;
usr/src/cmd/sort/streams_stdio.c
188
} else if (str->s_current.l_data_length > -1) {
usr/src/cmd/sort/streams_stdio.c
197
dist_to_buf_end = str->s_buffer_size - (graft_pt -
usr/src/cmd/sort/streams_stdio.c
198
(char *)str->s_buffer);
usr/src/cmd/sort/streams_stdio.c
209
str->s_current.l_data_length = -1;
usr/src/cmd/sort/streams_stdio.c
213
if (fgets(graft_pt, dist_to_buf_end, str->s_type.BF.s_fp) == NULL) {
usr/src/cmd/sort/streams_stdio.c
214
if (feof(str->s_type.BF.s_fp))
usr/src/cmd/sort/streams_stdio.c
215
stream_set(str, STREAM_EOS_REACHED);
usr/src/cmd/sort/streams_stdio.c
217
die(EMSG_READ, str->s_filename);
usr/src/cmd/sort/streams_stdio.c
220
trip_eof(str->s_type.BF.s_fp);
usr/src/cmd/sort/streams_stdio.c
225
if ((next_nl = memchr(str->s_current.l_data.sp, '\n',
usr/src/cmd/sort/streams_stdio.c
227
str->s_current.l_data_length = strlen(str->s_current.l_data.sp);
usr/src/cmd/sort/streams_stdio.c
229
str->s_current.l_data_length = next_nl -
usr/src/cmd/sort/streams_stdio.c
230
str->s_current.l_data.sp;
usr/src/cmd/sort/streams_stdio.c
233
str->s_current.l_collate_length = 0;
usr/src/cmd/sort/streams_stdio.c
235
if (*(str->s_current.l_data.sp + str->s_current.l_data_length) !=
usr/src/cmd/sort/streams_stdio.c
237
if (!feof(str->s_type.BF.s_fp)) {
usr/src/cmd/sort/streams_stdio.c
253
stream_set(str, STREAM_EOS_REACHED);
usr/src/cmd/sort/streams_stdio.c
254
warn(WMSG_NEWLINE_ADDED, str->s_filename);
usr/src/cmd/sort/streams_stdio.c
273
stream_stdio_fetch_overwrite(stream_t *str)
usr/src/cmd/sort/streams_stdio.c
277
ASSERT(str->s_status & STREAM_OPEN);
usr/src/cmd/sort/streams_stdio.c
278
ASSERT(str->s_status & (STREAM_SINGLE | STREAM_WIDE));
usr/src/cmd/sort/streams_stdio.c
279
ASSERT((str->s_status & STREAM_EOS_REACHED) == 0);
usr/src/cmd/sort/streams_stdio.c
281
str->s_current.l_data.sp = str->s_buffer;
usr/src/cmd/sort/streams_stdio.c
282
dist_to_buf_end = str->s_buffer_size;
usr/src/cmd/sort/streams_stdio.c
284
if (fgets(str->s_current.l_data.sp, dist_to_buf_end,
usr/src/cmd/sort/streams_stdio.c
285
str->s_type.BF.s_fp) == NULL) {
usr/src/cmd/sort/streams_stdio.c
286
if (feof(str->s_type.BF.s_fp))
usr/src/cmd/sort/streams_stdio.c
287
stream_set(str, STREAM_EOS_REACHED);
usr/src/cmd/sort/streams_stdio.c
289
die(EMSG_READ, str->s_filename);
usr/src/cmd/sort/streams_stdio.c
292
trip_eof(str->s_type.BF.s_fp);
usr/src/cmd/sort/streams_stdio.c
293
str->s_current.l_data_length = strlen(str->s_current.l_data.sp) - 1;
usr/src/cmd/sort/streams_stdio.c
294
str->s_current.l_collate_length = 0;
usr/src/cmd/sort/streams_stdio.c
296
if (str->s_current.l_data_length == -1 ||
usr/src/cmd/sort/streams_stdio.c
297
*(str->s_current.l_data.sp + str->s_current.l_data_length) !=
usr/src/cmd/sort/streams_stdio.c
299
if (!feof(str->s_type.BF.s_fp)) {
usr/src/cmd/sort/streams_stdio.c
308
stream_set(str, STREAM_EOS_REACHED);
usr/src/cmd/sort/streams_stdio.c
309
warn(WMSG_NEWLINE_ADDED, str->s_filename);
usr/src/cmd/sort/streams_stdio.c
318
stream_stdio_is_closable(stream_t *str)
usr/src/cmd/sort/streams_stdio.c
320
if (str->s_status & STREAM_OPEN && !(str->s_status & STREAM_NOTFILE))
usr/src/cmd/sort/streams_stdio.c
326
stream_stdio_close(stream_t *str)
usr/src/cmd/sort/streams_stdio.c
328
ASSERT(str->s_status & STREAM_OPEN);
usr/src/cmd/sort/streams_stdio.c
330
if (!(str->s_status & STREAM_OUTPUT)) {
usr/src/cmd/sort/streams_stdio.c
331
if (!(str->s_status & STREAM_NOTFILE))
usr/src/cmd/sort/streams_stdio.c
332
(void) fclose(str->s_type.BF.s_fp);
usr/src/cmd/sort/streams_stdio.c
334
if (str->s_type.BF.s_vbuf != NULL) {
usr/src/cmd/sort/streams_stdio.c
335
free(str->s_type.BF.s_vbuf);
usr/src/cmd/sort/streams_stdio.c
336
str->s_type.BF.s_vbuf = NULL;
usr/src/cmd/sort/streams_stdio.c
339
if (cxwrite(str->s_type.SF.s_fd, NULL, 0) == 0)
usr/src/cmd/sort/streams_stdio.c
340
(void) close(str->s_type.SF.s_fd);
usr/src/cmd/sort/streams_stdio.c
342
die(EMSG_WRITE, str->s_filename);
usr/src/cmd/sort/streams_stdio.c
345
stream_unset(str, STREAM_OPEN | STREAM_PRIMED | STREAM_OUTPUT);
usr/src/cmd/sort/streams_stdio.c
350
stream_stdio_send_eol(stream_t *str)
usr/src/cmd/sort/streams_stdio.c
352
ASSERT(str->s_status & STREAM_OPEN);
usr/src/cmd/sort/streams_stdio.c
353
ASSERT(str->s_status & STREAM_OUTPUT);
usr/src/cmd/sort/streams_stdio.c
355
if (cxwrite(str->s_type.SF.s_fd, "\n", 1) < 0)
usr/src/cmd/sort/streams_stdio.c
356
die(EMSG_WRITE, str->s_filename);
usr/src/cmd/sort/streams_stdio.c
360
stream_stdio_flush(stream_t *str)
usr/src/cmd/sort/streams_stdio.c
362
ASSERT(str->s_status & STREAM_OPEN);
usr/src/cmd/sort/streams_stdio.c
363
ASSERT(str->s_status & STREAM_OUTPUT);
usr/src/cmd/sort/streams_stdio.c
365
if (cxwrite(str->s_type.SF.s_fd, NULL, 0) < 0)
usr/src/cmd/sort/streams_stdio.c
366
die(EMSG_WRITE, str->s_filename);
usr/src/cmd/sort/streams_stdio.c
370
stream_stdio_put_line(stream_t *str, line_rec_t *line)
usr/src/cmd/sort/streams_stdio.c
372
ASSERT(str->s_status & STREAM_OPEN);
usr/src/cmd/sort/streams_stdio.c
373
ASSERT(str->s_status & STREAM_OUTPUT);
usr/src/cmd/sort/streams_stdio.c
376
if (cxwrite(str->s_type.SF.s_fd, line->l_data.sp,
usr/src/cmd/sort/streams_stdio.c
378
die(EMSG_WRITE, str->s_filename);
usr/src/cmd/sort/streams_stdio.c
380
stream_stdio_send_eol(str);
usr/src/cmd/sort/streams_stdio.c
388
stream_stdio_put_line_unique(stream_t *str, line_rec_t *line)
usr/src/cmd/sort/streams_stdio.c
393
ASSERT(str->s_status & STREAM_OPEN);
usr/src/cmd/sort/streams_stdio.c
394
ASSERT(str->s_status & STREAM_OUTPUT);
usr/src/cmd/sort/streams_stdio.c
403
stream_stdio_put_line(str, line);
usr/src/cmd/sort/streams_stdio.c
418
stream_stdio_unlink(stream_t *str)
usr/src/cmd/sort/streams_stdio.c
420
if (!(str->s_status & STREAM_NOTFILE))
usr/src/cmd/sort/streams_stdio.c
421
return (unlink(str->s_filename));
usr/src/cmd/sort/streams_stdio.c
427
stream_stdio_free(stream_t *str)
usr/src/cmd/sort/streams_stdio.c
432
if (!(str->s_status & STREAM_OPEN) ||
usr/src/cmd/sort/streams_stdio.c
433
(str->s_consumer != NULL &&
usr/src/cmd/sort/streams_stdio.c
434
str->s_consumer->s_status & STREAM_NOT_FREEABLE))
usr/src/cmd/sort/streams_stdio.c
437
if (str->s_buffer != NULL) {
usr/src/cmd/sort/streams_stdio.c
438
if (munmap(str->s_buffer, str->s_buffer_size) < 0)
usr/src/cmd/sort/streams_stdio.c
441
str->s_buffer = NULL;
usr/src/cmd/sort/streams_stdio.c
442
str->s_buffer_size = 0;
usr/src/cmd/sort/streams_stdio.c
446
stream_unset(str, STREAM_PRIMED | STREAM_INSTANT);
usr/src/cmd/sort/streams_stdio.c
452
stream_stdio_eos(stream_t *str)
usr/src/cmd/sort/streams_stdio.c
456
ASSERT(!(str->s_status & STREAM_OUTPUT));
usr/src/cmd/sort/streams_stdio.c
457
ASSERT(str->s_status & (STREAM_SINGLE | STREAM_WIDE));
usr/src/cmd/sort/streams_stdio.c
459
if (str == NULL || str->s_status & STREAM_EOS_REACHED)
usr/src/cmd/sort/streams_stdio.c
46
stream_stdio_open_for_write(stream_t *str)
usr/src/cmd/sort/streams_stdio.c
462
trip_eof(str->s_type.BF.s_fp);
usr/src/cmd/sort/streams_stdio.c
463
if (feof(str->s_type.BF.s_fp) &&
usr/src/cmd/sort/streams_stdio.c
465
str->s_current.l_collate_length != -1) {
usr/src/cmd/sort/streams_stdio.c
467
stream_set(str, STREAM_EOS_REACHED);
usr/src/cmd/sort/streams_stdio.c
475
stream_stdio_release_line(stream_t *str)
usr/src/cmd/sort/streams_stdio.c
48
stream_simple_file_t *SF = &(str->s_type.SF);
usr/src/cmd/sort/streams_stdio.c
50
ASSERT(!(str->s_status & STREAM_OPEN));
usr/src/cmd/sort/streams_stdio.c
51
ASSERT(!(str->s_status & STREAM_OUTPUT));
usr/src/cmd/sort/streams_stdio.c
53
if (str->s_status & STREAM_NOTFILE)
usr/src/cmd/sort/streams_stdio.c
56
if ((SF->s_fd = open(str->s_filename, O_CREAT | O_TRUNC |
usr/src/cmd/sort/streams_stdio.c
61
die(EMSG_OPEN, str->s_filename);
usr/src/cmd/sort/streams_stdio.c
64
stream_set(str, STREAM_OPEN | STREAM_OUTPUT);
usr/src/cmd/sort/streams_stdio.c
78
stream_stdio_prime(stream_t *str)
usr/src/cmd/sort/streams_stdio.c
80
stream_buffered_file_t *BF = &(str->s_type.BF);
usr/src/cmd/sort/streams_stdio.c
85
ASSERT(!(str->s_status & STREAM_OUTPUT));
usr/src/cmd/sort/streams_stdio.c
86
ASSERT(str->s_status & (STREAM_SINGLE | STREAM_WIDE));
usr/src/cmd/sort/streams_stdio.c
87
ASSERT(str->s_status & STREAM_OPEN);
usr/src/cmd/sort/streams_stdio.c
89
if (str->s_status & STREAM_INSTANT && (str->s_buffer == NULL)) {
usr/src/cmd/sort/streams_stdio.c
90
str->s_buffer = xzmap(0, STDIO_VBUF_SIZE, PROT_READ |
usr/src/cmd/sort/streams_stdio.c
92
if (str->s_buffer == MAP_FAILED)
usr/src/cmd/sort/streams_stdio.c
94
str->s_buffer_size = STDIO_VBUF_SIZE;
usr/src/cmd/sort/streams_stdio.c
97
ASSERT(str->s_buffer != NULL);
usr/src/cmd/sort/streams_stdio.c
99
if (stream_is_primed(str)) {
usr/src/cmd/sort/streams_stdio.h
49
extern int stream_stdio_open_for_write(stream_t *str);
usr/src/cmd/sort/streams_stdio.h
50
extern int stream_stdio_is_closable(stream_t *str);
usr/src/cmd/sort/streams_stdio.h
51
extern int stream_stdio_close(stream_t *str);
usr/src/cmd/sort/streams_stdio.h
52
extern int stream_stdio_unlink(stream_t *str);
usr/src/cmd/sort/streams_stdio.h
53
extern int stream_stdio_free(stream_t *str);
usr/src/cmd/sort/streams_wide.c
100
stream_unset(str, STREAM_PRIMED);
usr/src/cmd/sort/streams_wide.c
104
str->s_current.l_data.wp = current_position;
usr/src/cmd/sort/streams_wide.c
108
warn(WMSG_NEWLINE_ADDED, str->s_filename);
usr/src/cmd/sort/streams_wide.c
109
str->s_current.l_data_length = MIN(wslen(current_position),
usr/src/cmd/sort/streams_wide.c
112
str->s_current.l_data_length = next_nl - current_position;
usr/src/cmd/sort/streams_wide.c
114
*(str->s_current.l_data.wp + str->s_current.l_data_length) = L'\0';
usr/src/cmd/sort/streams_wide.c
116
str->s_current.l_collate.wp = NULL;
usr/src/cmd/sort/streams_wide.c
117
str->s_current.l_collate_length = 0;
usr/src/cmd/sort/streams_wide.c
124
stream_wide_fetch(stream_t *str)
usr/src/cmd/sort/streams_wide.c
131
ASSERT(str->s_status & STREAM_OPEN);
usr/src/cmd/sort/streams_wide.c
132
ASSERT((str->s_status & STREAM_EOS_REACHED) == 0);
usr/src/cmd/sort/streams_wide.c
134
graft_pt = str->s_current.l_data.wp + str->s_current.l_data_length + 1;
usr/src/cmd/sort/streams_wide.c
137
str->s_current.l_data.wp = graft_pt;
usr/src/cmd/sort/streams_wide.c
138
else if (str->s_current.l_data_length > -1)
usr/src/cmd/sort/streams_wide.c
141
dist_to_buf_end = str->s_buffer_size / sizeof (wchar_t) - (graft_pt -
usr/src/cmd/sort/streams_wide.c
142
(wchar_t *)str->s_buffer);
usr/src/cmd/sort/streams_wide.c
145
str->s_current.l_data_length = -1;
usr/src/cmd/sort/streams_wide.c
149
if (fgetws(graft_pt, dist_to_buf_end, str->s_type.BF.s_fp) == NULL) {
usr/src/cmd/sort/streams_wide.c
150
if (feof(str->s_type.BF.s_fp))
usr/src/cmd/sort/streams_wide.c
151
stream_set(str, STREAM_EOS_REACHED);
usr/src/cmd/sort/streams_wide.c
153
die(EMSG_READ, str->s_filename);
usr/src/cmd/sort/streams_wide.c
156
trip_eof(str->s_type.BF.s_fp);
usr/src/cmd/sort/streams_wide.c
157
if ((next_nl = xmemwchar(str->s_current.l_data.wp, L'\n',
usr/src/cmd/sort/streams_wide.c
159
str->s_current.l_data_length =
usr/src/cmd/sort/streams_wide.c
160
MIN(wslen(str->s_current.l_data.wp), dist_to_buf_end);
usr/src/cmd/sort/streams_wide.c
162
str->s_current.l_data_length = next_nl -
usr/src/cmd/sort/streams_wide.c
163
str->s_current.l_data.wp;
usr/src/cmd/sort/streams_wide.c
166
str->s_current.l_collate_length = 0;
usr/src/cmd/sort/streams_wide.c
168
if (*(str->s_current.l_data.wp + str->s_current.l_data_length) !=
usr/src/cmd/sort/streams_wide.c
170
if (!feof(str->s_type.BF.s_fp)) {
usr/src/cmd/sort/streams_wide.c
178
stream_set(str, STREAM_EOS_REACHED);
usr/src/cmd/sort/streams_wide.c
179
warn(WMSG_NEWLINE_ADDED, str->s_filename);
usr/src/cmd/sort/streams_wide.c
184
*(str->s_current.l_data.wp + str->s_current.l_data_length) =
usr/src/cmd/sort/streams_wide.c
193
stream_wide_fetch_overwrite(stream_t *str)
usr/src/cmd/sort/streams_wide.c
197
ASSERT(str->s_status & STREAM_OPEN);
usr/src/cmd/sort/streams_wide.c
198
ASSERT((str->s_status & STREAM_EOS_REACHED) == 0);
usr/src/cmd/sort/streams_wide.c
200
str->s_current.l_data.wp = str->s_buffer;
usr/src/cmd/sort/streams_wide.c
201
dist_to_buf_end = str->s_buffer_size / sizeof (wchar_t);
usr/src/cmd/sort/streams_wide.c
203
if (fgetws(str->s_current.l_data.wp, dist_to_buf_end,
usr/src/cmd/sort/streams_wide.c
204
str->s_type.BF.s_fp) == NULL) {
usr/src/cmd/sort/streams_wide.c
205
if (feof(str->s_type.BF.s_fp))
usr/src/cmd/sort/streams_wide.c
206
stream_set(str, STREAM_EOS_REACHED);
usr/src/cmd/sort/streams_wide.c
208
die(EMSG_READ, str->s_filename);
usr/src/cmd/sort/streams_wide.c
211
trip_eof(str->s_type.BF.s_fp);
usr/src/cmd/sort/streams_wide.c
212
str->s_current.l_data_length = wslen(str->s_current.l_data.wp) - 1;
usr/src/cmd/sort/streams_wide.c
213
str->s_current.l_collate_length = 0;
usr/src/cmd/sort/streams_wide.c
215
if (str->s_current.l_data_length == -1 ||
usr/src/cmd/sort/streams_wide.c
216
*(str->s_current.l_data.wp + str->s_current.l_data_length) !=
usr/src/cmd/sort/streams_wide.c
218
if (!feof(str->s_type.BF.s_fp)) {
usr/src/cmd/sort/streams_wide.c
221
stream_set(str, STREAM_EOS_REACHED);
usr/src/cmd/sort/streams_wide.c
222
warn(WMSG_NEWLINE_ADDED, str->s_filename);
usr/src/cmd/sort/streams_wide.c
223
str->s_current.l_data_length++;
usr/src/cmd/sort/streams_wide.c
227
*(str->s_current.l_data.wp + str->s_current.l_data_length) = L'\0';
usr/src/cmd/sort/streams_wide.c
234
stream_wide_send_eol(stream_t *str)
usr/src/cmd/sort/streams_wide.c
238
ASSERT(str->s_status & STREAM_OPEN);
usr/src/cmd/sort/streams_wide.c
239
ASSERT(str->s_status & STREAM_OUTPUT);
usr/src/cmd/sort/streams_wide.c
241
if (wxwrite(str->s_type.SF.s_fd, w_crlf) < 0)
usr/src/cmd/sort/streams_wide.c
242
die(EMSG_WRITE, str->s_filename);
usr/src/cmd/sort/streams_wide.c
246
stream_wide_put_line(stream_t *str, line_rec_t *line)
usr/src/cmd/sort/streams_wide.c
248
ASSERT(str->s_status & STREAM_OPEN);
usr/src/cmd/sort/streams_wide.c
249
ASSERT(str->s_status & STREAM_OUTPUT);
usr/src/cmd/sort/streams_wide.c
252
if (wxwrite(str->s_type.SF.s_fd, line->l_data.wp) >= 0) {
usr/src/cmd/sort/streams_wide.c
253
stream_wide_send_eol(str);
usr/src/cmd/sort/streams_wide.c
256
die(EMSG_WRITE, str->s_filename);
usr/src/cmd/sort/streams_wide.c
263
stream_wide_put_line_unique(stream_t *str, line_rec_t *line)
usr/src/cmd/sort/streams_wide.c
268
ASSERT(str->s_status & STREAM_OPEN);
usr/src/cmd/sort/streams_wide.c
269
ASSERT(str->s_status & STREAM_OUTPUT);
usr/src/cmd/sort/streams_wide.c
274
stream_wide_put_line(str, line);
usr/src/cmd/sort/streams_wide.c
293
stream_wide_eos(stream_t *str)
usr/src/cmd/sort/streams_wide.c
297
if (str == NULL || str->s_status & STREAM_EOS_REACHED)
usr/src/cmd/sort/streams_wide.c
300
trip_eof(str->s_type.BF.s_fp);
usr/src/cmd/sort/streams_wide.c
301
if (feof(str->s_type.BF.s_fp) &&
usr/src/cmd/sort/streams_wide.c
303
str->s_current.l_collate_length != -1) {
usr/src/cmd/sort/streams_wide.c
305
stream_set(str, STREAM_EOS_REACHED);
usr/src/cmd/sort/streams_wide.c
313
stream_wide_release_line(stream_t *str)
usr/src/cmd/sort/streams_wide.c
48
stream_wide_prime(stream_t *str)
usr/src/cmd/sort/streams_wide.c
50
stream_buffered_file_t *BF = &(str->s_type.BF);
usr/src/cmd/sort/streams_wide.c
55
ASSERT(!(str->s_status & STREAM_OUTPUT));
usr/src/cmd/sort/streams_wide.c
56
ASSERT(str->s_status & STREAM_OPEN);
usr/src/cmd/sort/streams_wide.c
58
if (str->s_status & STREAM_INSTANT && (str->s_buffer == NULL)) {
usr/src/cmd/sort/streams_wide.c
59
str->s_buffer = xzmap(0, WIDE_VBUF_SIZE, PROT_READ |
usr/src/cmd/sort/streams_wide.c
61
if (str->s_buffer == MAP_FAILED)
usr/src/cmd/sort/streams_wide.c
63
str->s_buffer_size = WIDE_VBUF_SIZE;
usr/src/cmd/sort/streams_wide.c
66
ASSERT(str->s_buffer != NULL);
usr/src/cmd/sort/streams_wide.c
68
if (stream_is_primed(str)) {
usr/src/cmd/sort/streams_wide.c
71
ASSERT(str->s_current.l_data_length >= -1);
usr/src/cmd/sort/streams_wide.c
72
(void) memcpy(str->s_buffer, str->s_current.l_data.wp,
usr/src/cmd/sort/streams_wide.c
73
(str->s_current.l_data_length + 1) * sizeof (wchar_t));
usr/src/cmd/sort/streams_wide.c
74
str->s_current.l_data.wp = str->s_buffer;
usr/src/cmd/sort/streams_wide.c
76
if ((str->s_current.l_data_length == -1 ||
usr/src/cmd/sort/streams_wide.c
78
*(str->s_current.l_data.wp +
usr/src/cmd/sort/streams_wide.c
79
str->s_current.l_data_length) != L'\0') &&
usr/src/cmd/sort/streams_wide.c
80
SOP_FETCH(str) == NEXT_LINE_INCOMPLETE &&
usr/src/cmd/sort/streams_wide.c
87
stream_set(str, STREAM_PRIMED);
usr/src/cmd/sort/streams_wide.c
89
current_position = (wchar_t *)str->s_buffer;
usr/src/cmd/sort/streams_wide.c
91
end_of_buffer = (wchar_t *)((char *)str->s_buffer +
usr/src/cmd/sort/streams_wide.c
92
str->s_buffer_size);
usr/src/cmd/sort/streams_wide.c
99
stream_set(str, STREAM_EOS_REACHED);
usr/src/cmd/stat/common/acquire.c
420
safe_strdup(char *str)
usr/src/cmd/stat/common/acquire.c
424
if (str == NULL)
usr/src/cmd/stat/common/acquire.c
427
while ((ret = strdup(str)) == NULL) {
usr/src/cmd/stat/common/statcommon.h
236
char *safe_strdup(char *str);
usr/src/cmd/stat/kstat/kstat.c
102
if (str[0] == '/') {
usr/src/cmd/stat/kstat/kstat.c
103
size_t s = strlen(str);
usr/src/cmd/stat/kstat/kstat.c
104
if (str[s - 1] == '/')
usr/src/cmd/stat/kstat/kstat.c
1070
free(ntmp->value.str.addr.ptr);
usr/src/cmd/stat/kstat/kstat.c
459
ks_safe_strdup(char *str)
usr/src/cmd/stat/kstat/kstat.c
463
if (str == NULL) {
usr/src/cmd/stat/kstat/kstat.c
467
while ((ret = strdup(str)) == NULL) {
usr/src/cmd/stat/kstat/kstat.c
615
ks_match(const char *str, ks_pattern_t *pattern)
usr/src/cmd/stat/kstat/kstat.c
648
return (regexec(&pattern->preg, str, 0, NULL, 0) == 0);
usr/src/cmd/stat/kstat/kstat.c
651
return ((gmatch(str, pattern->pstr) != 0));
usr/src/cmd/stat/kstat/kstat.c
855
ks_print_json_string(const char *str)
usr/src/cmd/stat/kstat/kstat.c
861
while ((c = *str++) != '\0') {
usr/src/cmd/stat/kstat/kstat.c
93
invalid_value(char *str)
usr/src/cmd/stat/kstat/kstat.c
96
if (str == NULL)
usr/src/cmd/stat/kstat/kstat.c
98
if (strchr(str, '*') != NULL)
usr/src/cmd/stat/kstat/kstat.h
107
v.str.addr.ptr = safe_strdup(S->N); \
usr/src/cmd/stat/kstat/kstat.h
108
v.str.len = strlen(S->N); \
usr/src/cmd/stat/kstat/kstat.h
143
v.str.addr.ptr = safe_strdup(V); \
usr/src/cmd/stat/kstat/kstat.h
144
v.str.len = (V) ? strlen(V) : 0; \
usr/src/cmd/stat/kstat/kstat.h
151
(void) asprintf(&v.str.addr.ptr, "%c", V); \
usr/src/cmd/stat/kstat/kstat.h
152
v.str.len = 1; \
usr/src/cmd/stat/kstat/kstat.h
59
} str;
usr/src/cmd/svc/common/notify_params.c
172
string_to_tset(const char *str)
usr/src/cmd/svc/common/notify_params.c
177
if (strcmp(str, smf_st_events[i].s) == 0)
usr/src/cmd/svc/configd/file_object.c
100
str, fieldname);
usr/src/cmd/svc/configd/file_object.c
96
string_to_id(const char *str, uint32_t *output, const char *fieldname)
usr/src/cmd/svc/configd/file_object.c
98
if (uu_strtouint(str, output, sizeof (*output), 0, 0, 0) == -1)
usr/src/cmd/svc/configd/object.c
284
const char *str;
usr/src/cmd/svc/configd/object.c
300
str = (const char *)&v[1];
usr/src/cmd/svc/configd/object.c
319
str, i);
usr/src/cmd/svc/configd/object.c
324
v = (uint32_t *)((caddr_t)str + TX_SIZE(*v));
usr/src/cmd/svc/startd/expand.c
166
char *str, *qstr;
usr/src/cmd/svc/startd/expand.c
263
str = val_to_str(val);
usr/src/cmd/svc/startd/expand.c
264
if (str == NULL)
usr/src/cmd/svc/startd/expand.c
267
qstr = quote_for_shell(str);
usr/src/cmd/svc/startd/expand.c
268
free(str);
usr/src/cmd/svc/startd/expand.c
269
str = qstr;
usr/src/cmd/svc/startd/expand.c
273
strl = strlen(str);
usr/src/cmd/svc/startd/expand.c
284
free(str);
usr/src/cmd/svc/startd/expand.c
290
free(str);
usr/src/cmd/svc/startd/expand.c
296
p = realloc(str, nl + 1);
usr/src/cmd/svc/startd/expand.c
298
free(str);
usr/src/cmd/svc/startd/expand.c
302
str = p;
usr/src/cmd/svc/startd/expand.c
304
str[strl] = sep;
usr/src/cmd/svc/startd/expand.c
305
(void) strcpy(&str[strl + 1], nv);
usr/src/cmd/svc/startd/expand.c
312
free(str);
usr/src/cmd/svc/startd/expand.c
316
*retstr = str;
usr/src/cmd/svc/startd/expand.c
355
expand_token(const char *str, scf_instance_t *inst, scf_snapshot_t *snap,
usr/src/cmd/svc/startd/expand.c
360
switch (str[0]) {
usr/src/cmd/svc/startd/expand.c
43
quote_for_shell(const char *str)
usr/src/cmd/svc/startd/expand.c
468
char *str = NULL;
usr/src/cmd/svc/startd/expand.c
471
str = "start";
usr/src/cmd/svc/startd/expand.c
474
str = "stop";
usr/src/cmd/svc/startd/expand.c
477
str = "refresh";
usr/src/cmd/svc/startd/expand.c
483
*retstr = safe_strdup(str);
usr/src/cmd/svc/startd/expand.c
501
close = strchr(str + 1, '}');
usr/src/cmd/svc/startd/expand.c
507
len = close - (str + 1); /* between the {}'s */
usr/src/cmd/svc/startd/expand.c
52
for (sp = str; *sp != '\0'; ++sp) {
usr/src/cmd/svc/startd/expand.c
526
(void) strlcpy(buf, str + 1, len + 1);
usr/src/cmd/svc/startd/expand.c
554
expand_method_tokens(const char *str, scf_instance_t *inst,
usr/src/cmd/svc/startd/expand.c
567
exp_sz = strlen(str) + 1;
usr/src/cmd/svc/startd/expand.c
578
sp = str;
usr/src/cmd/svc/startd/expand.c
59
if (sp - str == dst_len)
usr/src/cmd/svc/startd/expand.c
60
return (safe_strdup(str));
usr/src/cmd/svc/startd/expand.c
66
for (dp = dst, sp = str; *sp != '\0'; ++dp, ++sp) {
usr/src/cmd/svc/svcadm/svcadm.c
1704
uint32_t pgflags, const char *propname, const char *str)
usr/src/cmd/svc/svcadm/svcadm.c
1783
if (scf_value_set_astring(val, str) != SCF_SUCCESS)
usr/src/cmd/svc/svcadm/svcadm.c
201
hash_fmri(const char *str)
usr/src/cmd/svc/svcadm/svcadm.c
207
for (p = str; *p != '\0'; ++p) {
usr/src/cmd/svc/svcadm/svcadm.c
223
visited_find_or_add(const char *str, struct ht_elt **hep)
usr/src/cmd/svc/svcadm/svcadm.c
229
h = hash_fmri(str);
usr/src/cmd/svc/svcadm/svcadm.c
233
if (strcmp(he->str, str) == 0) {
usr/src/cmd/svc/svcadm/svcadm.c
240
he = malloc(offsetof(struct ht_elt, str) + strlen(str) + 1);
usr/src/cmd/svc/svcadm/svcadm.c
244
(void) strcpy(he->str, str);
usr/src/cmd/svc/svcadm/svcadm.c
83
char str[1];
usr/src/cmd/svc/svccfg/svccfg.h
356
char *str;
usr/src/cmd/svc/svccfg/svccfg.y
132
free(slp->str);
usr/src/cmd/svc/svccfg/svccfg.y
159
free(slp->str);
usr/src/cmd/svc/svccfg/svccfg.y
337
free(slp->str);
usr/src/cmd/svc/svccfg/svccfg.y
40
char *str;
usr/src/cmd/svc/svccfg/svccfg.y
446
free(slp->str);
usr/src/cmd/svc/svccfg/svccfg.y
473
free(slp->str);
usr/src/cmd/svc/svccfg/svccfg.y
516
free(slp->str);
usr/src/cmd/svc/svccfg/svccfg.y
535
free(slp->str);
usr/src/cmd/svc/svccfg/svccfg.y
60
%type <str> SCV_WORD SCV_STRING
usr/src/cmd/svc/svccfg/svccfg.y
61
%type <str> string opt_word
usr/src/cmd/svc/svccfg/svccfg.y
614
free(slp->str);
usr/src/cmd/svc/svccfg/svccfg.y
636
slp->str = $2;
usr/src/cmd/svc/svccfg/svccfg_engine.c
1044
if (slp->str[0] == '-') {
usr/src/cmd/svc/svccfg/svccfg_engine.c
1047
for (op = &slp->str[1]; *op != '\0'; ++op) {
usr/src/cmd/svc/svccfg/svccfg_engine.c
638
argv[i] = slp->str;
usr/src/cmd/svc/svccfg/svccfg_libscf.c
1067
string_to_value(const char *str, scf_type_t ty, boolean_t require_quotes)
usr/src/cmd/svc/svccfg/svccfg_libscf.c
1077
len = strlen(str);
usr/src/cmd/svc/svccfg/svccfg_libscf.c
1079
(len < 2 || str[0] != '\"' || str[len - 1] != '\"')) {
usr/src/cmd/svc/svccfg/svccfg_libscf.c
1086
nstr = dup = safe_strdup(str);
usr/src/cmd/svc/svccfg/svccfg_libscf.c
1111
quote_and_print(const char *str, FILE *strm, int commentnl)
usr/src/cmd/svc/svccfg/svccfg_libscf.c
1115
for (cp = str; *cp != '\0'; ++cp) {
usr/src/cmd/svc/svccfg/svccfg_libscf.c
11495
const char *str;
usr/src/cmd/svc/svccfg/svccfg_libscf.c
11499
str = arg + sizeof (SCF_FMRI_FILE_PREFIX) - 1;
usr/src/cmd/svc/svccfg/svccfg_libscf.c
11500
lscf_validate_file(str);
usr/src/cmd/svc/svccfg/svccfg_libscf.c
11503
str = arg + sizeof (SCF_FMRI_SVC_PREFIX) - 1;
usr/src/cmd/svc/svccfg/svccfg_libscf.c
11504
lscf_validate_fmri(str);
usr/src/cmd/svc/svccfg/svccfg_libscf.c
14005
v = string_to_value(sp->str, ty, req_quotes);
usr/src/cmd/svc/svccfg/svccfg_libscf.c
14467
add_string(uu_list_t *strlist, const char *str)
usr/src/cmd/svc/svccfg/svccfg_libscf.c
14472
elem->str = safe_strdup(str);
usr/src/cmd/svc/svccfg/svccfg_libscf.c
14479
remove_string(uu_list_t *strlist, const char *str)
usr/src/cmd/svc/svccfg/svccfg_libscf.c
14489
if (strcmp(sp->str, str) == 0)
usr/src/cmd/svc/svccfg/svccfg_libscf.c
14505
free(sp->str);
usr/src/cmd/svc/svccfg/svccfg_libscf.c
14723
v = string_to_value(sp->str, ty, 0);
usr/src/cmd/svc/svccfg/svccfg_libscf.c
14760
free(sp->str);
usr/src/cmd/svc/svccfg/svccfg_libscf.c
14905
argv[i] = slp->str;
usr/src/cmd/svc/svccfg/svccfg_libscf.c
15655
argv[i] = slp->str;
usr/src/cmd/svc/svccfg/svccfg_libscf.c
15741
tokenize(char *str, const char *sep)
usr/src/cmd/svc/svccfg/svccfg_libscf.c
15750
for (token = strtok_r(str, sep, &lasts); token != NULL;
usr/src/cmd/svc/svccfg/svccfg_libscf.c
15816
char *str = strdup(set);
usr/src/cmd/svc/svccfg/svccfg_libscf.c
15822
if (str == NULL)
usr/src/cmd/svc/svccfg/svccfg_libscf.c
15825
pgs = tokenize(str, ",");
usr/src/cmd/svc/svccfg/svccfg_libscf.c
15867
free(str);
usr/src/cmd/svc/svccfg/svccfg_libscf.c
15873
char *str = safe_strdup(set);
usr/src/cmd/svc/svccfg/svccfg_libscf.c
15883
pgs = tokenize(str, ",");
usr/src/cmd/svc/svccfg/svccfg_libscf.c
15941
free(str);
usr/src/cmd/svc/svccfg/svccfg_libscf.c
16129
char *str = safe_strdup(e);
usr/src/cmd/svc/svccfg/svccfg_libscf.c
16142
events = tokenize(str, ",");
usr/src/cmd/svc/svccfg/svccfg_libscf.c
16206
free(str);
usr/src/cmd/svc/svccfg/svccfg_libscf.c
16233
argv[i] = slp->str;
usr/src/cmd/svc/svccfg/svccfg_libscf.c
16921
mhash_filename_to_propname(mfile->str, 0));
usr/src/cmd/svc/svccfg/svccfg_libscf.c
16925
(void) lscf_addpropvalue(pname, "astring:", mfile->str);
usr/src/cmd/svc/svccfg/svccfg_libscf.c
17314
"service %s\n"), sp->str, wip->fmri);
usr/src/cmd/svc/svccfg/svccfg_libscf.c
17315
if (scf_service_get_instance(svc, sp->str,
usr/src/cmd/svc/svccfg/svccfg_libscf.c
8983
char *str;
usr/src/cmd/svc/svccfg/svccfg_libscf.c
8998
str = safe_malloc(len + 1);
usr/src/cmd/svc/svccfg/svccfg_libscf.c
9000
if (scf_value_get_as_string(val, str, len + 1) < 0)
usr/src/cmd/svc/svccfg/svccfg_libscf.c
9005
if (dval == NULL || strcmp(str, dval) != 0)
usr/src/cmd/svc/svccfg/svccfg_libscf.c
9006
safe_setprop(n, name, str);
usr/src/cmd/svc/svccfg/svccfg_libscf.c
9008
free(str);
usr/src/cmd/svc/svccfg/svccfg_libscf.c
9465
char *str;
usr/src/cmd/svc/svccfg/svccfg_libscf.c
9499
str = uu_msprintf("%llu", c);
usr/src/cmd/svc/svccfg/svccfg_libscf.c
9500
if (str == NULL)
usr/src/cmd/svc/svccfg/svccfg_libscf.c
9503
safe_setprop(n, "timeout_seconds", str);
usr/src/cmd/svc/svccfg/svccfg_libscf.c
9504
free(str);
usr/src/cmd/svc/svcprop/svcprop.c
161
quote_for_shell(const char *str)
usr/src/cmd/svc/svcprop/svcprop.c
169
if (str[0] == '\0')
usr/src/cmd/svc/svcprop/svcprop.c
173
for (sp = str; *sp != '\0'; ++sp) {
usr/src/cmd/svc/svcprop/svcprop.c
180
if (sp - str == dst_len)
usr/src/cmd/svc/svcprop/svcprop.c
181
return (strdup(str));
usr/src/cmd/svc/svcprop/svcprop.c
185
for (dp = dst, sp = str; *sp != '\0'; ++dp, ++sp) {
usr/src/cmd/svc/svcs/svcs.c
105
char *str;
usr/src/cmd/svc/svcs/svcs.c
1932
char *str = *optionp, *cp;
usr/src/cmd/svc/svcs/svcs.c
1943
if (strcasecmp(str, columns[i].name) == 0) {
usr/src/cmd/svc/svcs/svcs.c
202
safe_strdup(const char *str)
usr/src/cmd/svc/svcs/svcs.c
206
cp = strdup(str);
usr/src/cmd/svc/svcs/svcs.c
3047
lp->str = NULL;
usr/src/cmd/svc/svcs/svcs.c
3049
columns[opt_columns[i]].sprint(&lp->str, wip);
usr/src/cmd/svc/svcs/svcs.c
3051
cp = lp->str + strlen(lp->str);
usr/src/cmd/svc/svcs/svcs.c
3059
lp->str = add_processes(wip, lp->str, wip->pg);
usr/src/cmd/svc/svcs/svcs.c
3459
(void) puts(lp->str);
usr/src/cmd/svc/svcs/svcs.c
3466
errignore(const char *str, ...)
usr/src/cmd/svr4pkg/hdrs/libadm.h
152
extern int ckyorn_val __P((char *str));
usr/src/cmd/svr4pkg/hdrs/libadm.h
306
extern int puttext __P((FILE *fp, char *str, int lmarg, int rmarg));
usr/src/cmd/svr4pkg/hdrs/libinst.h
546
char *findParam, char *str);
usr/src/cmd/svr4pkg/hdrs/libinst.h
552
int smlConvertStringToTag(SML_TAG **r_tag, char *str);
usr/src/cmd/svr4pkg/libinst/sml.c
1120
char *str = (char *)NULL;
usr/src/cmd/svr4pkg/libinst/sml.c
1128
(void) _smlWriteSimpleTag(&str, tag);
usr/src/cmd/svr4pkg/libinst/sml.c
1130
assert(str != (char *)NULL);
usr/src/cmd/svr4pkg/libinst/sml.c
1131
assert(*str != '\0');
usr/src/cmd/svr4pkg/libinst/sml.c
1135
return (str);
usr/src/cmd/svr4pkg/libinst/sml.c
1602
smlParamEq(SML_TAG *tag, char *findTag, char *findParam, char *str)
usr/src/cmd/svr4pkg/libinst/sml.c
1610
assert(str != (char *)NULL);
usr/src/cmd/svr4pkg/libinst/sml.c
1631
answer = strcasecmp(str, rparm);
usr/src/cmd/svr4pkg/libinst/sml.c
956
smlConvertStringToTag(SML_TAG **r_tag, char *str)
usr/src/cmd/svr4pkg/libinst/sml.c
965
assert(str != (char *)NULL);
usr/src/cmd/svr4pkg/libinst/sml.c
966
assert(*str != '\0');
usr/src/cmd/svr4pkg/libinst/sml.c
971
r = _smlReadTag(&tmp_tag, &str, NULL);
usr/src/cmd/svr4pkg/libinst/sml.c
977
if (*str != '\0') {
usr/src/cmd/syseventadm/syseventadm.c
1008
str_t *str;
usr/src/cmd/syseventadm/syseventadm.c
1010
str = sc_malloc(sizeof (str_t));
usr/src/cmd/syseventadm/syseventadm.c
1011
str->s_str = NULL;
usr/src/cmd/syseventadm/syseventadm.c
1012
str->s_len = 0;
usr/src/cmd/syseventadm/syseventadm.c
1013
str->s_alloc = 0;
usr/src/cmd/syseventadm/syseventadm.c
1014
str->s_hint = hint;
usr/src/cmd/syseventadm/syseventadm.c
1015
return (str);
usr/src/cmd/syseventadm/syseventadm.c
1023
freestr(str_t *str)
usr/src/cmd/syseventadm/syseventadm.c
1025
if (str->s_str) {
usr/src/cmd/syseventadm/syseventadm.c
1026
sc_free(str->s_str, str->s_alloc);
usr/src/cmd/syseventadm/syseventadm.c
1028
sc_free(str, sizeof (str_t));
usr/src/cmd/syseventadm/syseventadm.c
1037
resetstr(str_t *str)
usr/src/cmd/syseventadm/syseventadm.c
1039
str->s_len = 0;
usr/src/cmd/syseventadm/syseventadm.c
1047
strcats(str_t *str, char *s)
usr/src/cmd/syseventadm/syseventadm.c
1050
int len = str->s_len + strlen(s) + 1;
usr/src/cmd/syseventadm/syseventadm.c
1052
if (str->s_alloc < len) {
usr/src/cmd/syseventadm/syseventadm.c
1053
new_str = (str->s_str == NULL) ? sc_malloc(len+str->s_hint) :
usr/src/cmd/syseventadm/syseventadm.c
1054
sc_realloc(str->s_str, str->s_alloc, len+str->s_hint);
usr/src/cmd/syseventadm/syseventadm.c
1055
str->s_str = new_str;
usr/src/cmd/syseventadm/syseventadm.c
1056
str->s_alloc = len + str->s_hint;
usr/src/cmd/syseventadm/syseventadm.c
1058
(void) strcpy(str->s_str + str->s_len, s);
usr/src/cmd/syseventadm/syseventadm.c
1059
str->s_len = len - 1;
usr/src/cmd/syseventadm/syseventadm.c
1067
strcatc(str_t *str, int c)
usr/src/cmd/syseventadm/syseventadm.c
1070
int len = str->s_len + 2;
usr/src/cmd/syseventadm/syseventadm.c
1072
if (str->s_alloc < len) {
usr/src/cmd/syseventadm/syseventadm.c
1073
new_str = (str->s_str == NULL) ? sc_malloc(len+str->s_hint) :
usr/src/cmd/syseventadm/syseventadm.c
1074
sc_realloc(str->s_str, str->s_alloc, len+str->s_hint);
usr/src/cmd/syseventadm/syseventadm.c
1075
str->s_str = new_str;
usr/src/cmd/syseventadm/syseventadm.c
1076
str->s_alloc = len + str->s_hint;
usr/src/cmd/syseventadm/syseventadm.c
1078
*(str->s_str + str->s_len) = (char)c;
usr/src/cmd/syseventadm/syseventadm.c
1079
*(str->s_str + str->s_len + 1) = 0;
usr/src/cmd/syseventadm/syseventadm.c
1080
str->s_len++;
usr/src/cmd/syseventadm/syseventadm.c
1112
char *str)
usr/src/cmd/syseventadm/syseventadm.c
1132
argvlist[*size] = strdup(str);
usr/src/cmd/syseventadm/syseventadm.h
122
static void freestr(str_t *str);
usr/src/cmd/syseventadm/syseventadm.h
123
static void resetstr(str_t *str);
usr/src/cmd/syseventadm/syseventadm.h
124
static void strcats(str_t *str, char *s);
usr/src/cmd/syseventadm/syseventadm.h
125
static void strcatc(str_t *str, int c);
usr/src/cmd/syseventadm/syseventadm.h
126
static char *fstrgets(str_t *str, FILE *fp);
usr/src/cmd/syseventd/modules/sysevent_conf_mod/sysevent_conf_mod.c
302
str_t *str;
usr/src/cmd/syseventd/modules/sysevent_conf_mod/sysevent_conf_mod.c
304
if ((str = sc_malloc(sizeof (str_t))) == NULL)
usr/src/cmd/syseventd/modules/sysevent_conf_mod/sysevent_conf_mod.c
306
str->s_str = NULL;
usr/src/cmd/syseventd/modules/sysevent_conf_mod/sysevent_conf_mod.c
307
str->s_len = 0;
usr/src/cmd/syseventd/modules/sysevent_conf_mod/sysevent_conf_mod.c
308
str->s_alloc = 0;
usr/src/cmd/syseventd/modules/sysevent_conf_mod/sysevent_conf_mod.c
309
str->s_hint = hint;
usr/src/cmd/syseventd/modules/sysevent_conf_mod/sysevent_conf_mod.c
310
return (str);
usr/src/cmd/syseventd/modules/sysevent_conf_mod/sysevent_conf_mod.c
318
freestr(str_t *str)
usr/src/cmd/syseventd/modules/sysevent_conf_mod/sysevent_conf_mod.c
320
if (str->s_str) {
usr/src/cmd/syseventd/modules/sysevent_conf_mod/sysevent_conf_mod.c
321
sc_free(str->s_str, str->s_alloc);
usr/src/cmd/syseventd/modules/sysevent_conf_mod/sysevent_conf_mod.c
323
sc_free(str, sizeof (str_t));
usr/src/cmd/syseventd/modules/sysevent_conf_mod/sysevent_conf_mod.c
332
resetstr(str_t *str)
usr/src/cmd/syseventd/modules/sysevent_conf_mod/sysevent_conf_mod.c
334
str->s_len = 0;
usr/src/cmd/syseventd/modules/sysevent_conf_mod/sysevent_conf_mod.c
342
strcopys(str_t *str, char *s)
usr/src/cmd/syseventd/modules/sysevent_conf_mod/sysevent_conf_mod.c
347
if (str->s_alloc < len) {
usr/src/cmd/syseventd/modules/sysevent_conf_mod/sysevent_conf_mod.c
348
new_str = (str->s_str == NULL) ?
usr/src/cmd/syseventd/modules/sysevent_conf_mod/sysevent_conf_mod.c
349
sc_malloc(len+str->s_hint) :
usr/src/cmd/syseventd/modules/sysevent_conf_mod/sysevent_conf_mod.c
350
sc_realloc(str->s_str, str->s_alloc, len+str->s_hint);
usr/src/cmd/syseventd/modules/sysevent_conf_mod/sysevent_conf_mod.c
354
str->s_str = new_str;
usr/src/cmd/syseventd/modules/sysevent_conf_mod/sysevent_conf_mod.c
355
str->s_alloc = len + str->s_hint;
usr/src/cmd/syseventd/modules/sysevent_conf_mod/sysevent_conf_mod.c
357
(void) strcpy(str->s_str, s);
usr/src/cmd/syseventd/modules/sysevent_conf_mod/sysevent_conf_mod.c
358
str->s_len = len - 1;
usr/src/cmd/syseventd/modules/sysevent_conf_mod/sysevent_conf_mod.c
367
strcats(str_t *str, char *s)
usr/src/cmd/syseventd/modules/sysevent_conf_mod/sysevent_conf_mod.c
370
int len = str->s_len + strlen(s) + 1;
usr/src/cmd/syseventd/modules/sysevent_conf_mod/sysevent_conf_mod.c
372
if (str->s_alloc < len) {
usr/src/cmd/syseventd/modules/sysevent_conf_mod/sysevent_conf_mod.c
373
new_str = (str->s_str == NULL) ? sc_malloc(len+str->s_hint) :
usr/src/cmd/syseventd/modules/sysevent_conf_mod/sysevent_conf_mod.c
374
sc_realloc(str->s_str, str->s_alloc, len+str->s_hint);
usr/src/cmd/syseventd/modules/sysevent_conf_mod/sysevent_conf_mod.c
378
str->s_str = new_str;
usr/src/cmd/syseventd/modules/sysevent_conf_mod/sysevent_conf_mod.c
379
str->s_alloc = len + str->s_hint;
usr/src/cmd/syseventd/modules/sysevent_conf_mod/sysevent_conf_mod.c
381
(void) strcpy(str->s_str + str->s_len, s);
usr/src/cmd/syseventd/modules/sysevent_conf_mod/sysevent_conf_mod.c
382
str->s_len = len - 1;
usr/src/cmd/syseventd/modules/sysevent_conf_mod/sysevent_conf_mod.c
391
strcatc(str_t *str, int c)
usr/src/cmd/syseventd/modules/sysevent_conf_mod/sysevent_conf_mod.c
394
int len = str->s_len + 2;
usr/src/cmd/syseventd/modules/sysevent_conf_mod/sysevent_conf_mod.c
396
if (str->s_alloc < len) {
usr/src/cmd/syseventd/modules/sysevent_conf_mod/sysevent_conf_mod.c
397
new_str = (str->s_str == NULL) ? sc_malloc(len+str->s_hint) :
usr/src/cmd/syseventd/modules/sysevent_conf_mod/sysevent_conf_mod.c
398
sc_realloc(str->s_str, str->s_alloc, len+str->s_hint);
usr/src/cmd/syseventd/modules/sysevent_conf_mod/sysevent_conf_mod.c
402
str->s_str = new_str;
usr/src/cmd/syseventd/modules/sysevent_conf_mod/sysevent_conf_mod.c
403
str->s_alloc = len + str->s_hint;
usr/src/cmd/syseventd/modules/sysevent_conf_mod/sysevent_conf_mod.c
405
*(str->s_str + str->s_len) = (char)c;
usr/src/cmd/syseventd/modules/sysevent_conf_mod/sysevent_conf_mod.c
406
*(str->s_str + str->s_len + 1) = 0;
usr/src/cmd/syseventd/modules/sysevent_conf_mod/sysevent_conf_mod.c
407
str->s_len++;
usr/src/cmd/syseventd/modules/sysevent_conf_mod/sysevent_conf_mod.c
435
strtrunc(str_t *str, int pos)
usr/src/cmd/syseventd/modules/sysevent_conf_mod/sysevent_conf_mod.c
437
if (str->s_len > pos) {
usr/src/cmd/syseventd/modules/sysevent_conf_mod/sysevent_conf_mod.c
438
str->s_len = pos;
usr/src/cmd/syseventd/modules/sysevent_conf_mod/sysevent_conf_mod.c
439
*(str->s_str + pos) = 0;
usr/src/cmd/syseventd/modules/sysevent_conf_mod/sysevent_conf_mod.c
746
char *str;
usr/src/cmd/syseventd/modules/sysevent_conf_mod/sysevent_conf_mod.c
761
if ((str = strrchr(result->d_name, ',')) != NULL) {
usr/src/cmd/syseventd/modules/sysevent_conf_mod/sysevent_conf_mod.c
762
str++;
usr/src/cmd/syseventd/modules/sysevent_conf_mod/sysevent_conf_mod.c
764
str = result->d_name;
usr/src/cmd/syseventd/modules/sysevent_conf_mod/sysevent_conf_mod.c
766
if (strcmp(str, "sysevent.conf") != 0) {
usr/src/cmd/syseventd/modules/sysevent_conf_mod/sysevent_conf_mod.c
768
"%s: ignoring %s\n", whoami, str);
usr/src/cmd/syseventd/modules/sysevent_conf_mod/sysevent_conf_mod.c
775
if ((str = sc_strdup(result->d_name)) == NULL)
usr/src/cmd/syseventd/modules/sysevent_conf_mod/sysevent_conf_mod.c
778
sc_strfree(str);
usr/src/cmd/syseventd/modules/sysevent_conf_mod/sysevent_conf_mod.c
789
cfp->cf_conf_file = str;
usr/src/cmd/syseventd/modules/sysevent_conf_mod/sysevent_conf_mod.h
135
static void freestr(str_t *str);
usr/src/cmd/syseventd/modules/sysevent_conf_mod/sysevent_conf_mod.h
136
static void resetstr(str_t *str);
usr/src/cmd/syseventd/modules/sysevent_conf_mod/sysevent_conf_mod.h
137
static int strcopys(str_t *str, char *s);
usr/src/cmd/syseventd/modules/sysevent_conf_mod/sysevent_conf_mod.h
138
static int strcats(str_t *str, char *s);
usr/src/cmd/syseventd/modules/sysevent_conf_mod/sysevent_conf_mod.h
139
static int strcatc(str_t *str, int c);
usr/src/cmd/syseventd/modules/sysevent_conf_mod/sysevent_conf_mod.h
140
static char *fstrgets(str_t *str, FILE *fp);
usr/src/cmd/syseventd/modules/sysevent_conf_mod/sysevent_conf_mod.h
141
static void strtrunc(str_t *str, int pos);
usr/src/cmd/syslogd/syslogd.c
543
struct strioctl str;
usr/src/cmd/syslogd/syslogd.c
556
str.ic_cmd = I_CONSLOG;
usr/src/cmd/syslogd/syslogd.c
557
str.ic_timout = 0;
usr/src/cmd/syslogd/syslogd.c
558
str.ic_len = 0;
usr/src/cmd/syslogd/syslogd.c
559
str.ic_dp = NULL;
usr/src/cmd/syslogd/syslogd.c
560
if (ioctl(fd, I_STR, &str) < 0) {
usr/src/cmd/tar/tar.c
425
static void add_file_to_table(file_list_t *table[], char *str);
usr/src/cmd/tar/tar.c
481
static int is_in_table(file_list_t *table[], char *str);
usr/src/cmd/tar/tar.c
487
static unsigned int hash(char *str);
usr/src/cmd/tar/tar.c
534
static void rebuild_comp_path(char *str, char **namep);
usr/src/cmd/tar/tar.c
535
static int rebuild_lk_comp_path(char *str, char **namep);
usr/src/cmd/tar/tar.c
5522
add_file_to_table(file_list_t *table[], char *str)
usr/src/cmd/tar/tar.c
5528
(void) strcpy(name, str);
usr/src/cmd/tar/tar.c
5559
is_in_table(file_list_t *table[], char *str)
usr/src/cmd/tar/tar.c
5566
(void) strcpy(name, str);
usr/src/cmd/tar/tar.c
5607
hash(char *str)
usr/src/cmd/tar/tar.c
5613
for (cp = str; *cp; cp++) {
usr/src/cmd/tar/tar.c
8929
rebuild_comp_path(char *str, char **namep)
usr/src/cmd/tar/tar.c
8933
while (*str != '\0') {
usr/src/cmd/tar/tar.c
8935
switch (*str) {
usr/src/cmd/tar/tar.c
8939
str++;
usr/src/cmd/tar/tar.c
8940
if ((cp = strstr(str, ";;")) != NULL) {
usr/src/cmd/tar/tar.c
8942
str = cp + 2;
usr/src/cmd/tar/tar.c
8950
str++;
usr/src/cmd/tar/tar.c
8951
if ((cp = strstr(str, ";;")) != NULL) {
usr/src/cmd/tar/tar.c
8953
str = cp + 2;
usr/src/cmd/tar/tar.c
8961
str++;
usr/src/cmd/tar/tar.c
8962
if ((cp = strstr(str, ";;")) != NULL) {
usr/src/cmd/tar/tar.c
8964
str = cp + 2;
usr/src/cmd/tar/tar.c
8988
rebuild_lk_comp_path(char *str, char **namep)
usr/src/cmd/tar/tar.c
9032
if (*(str + 1) != '/') { /* got relative linked to path */
usr/src/cmd/tar/tar.c
9042
if (strncmp(pbuf, str + 1, ptr2 - pbuf) != 0)
usr/src/cmd/tar/tar.c
9052
while (*str != '\0') {
usr/src/cmd/tar/tar.c
9054
switch (*str) {
usr/src/cmd/tar/tar.c
9058
str++;
usr/src/cmd/tar/tar.c
9059
if ((cp = strstr(str, ";;")) != NULL) {
usr/src/cmd/tar/tar.c
9065
if (strcmp(str, "../") != 0)
usr/src/cmd/tar/tar.c
9066
(void) strncat(buf, str, MAXPATHLEN);
usr/src/cmd/tar/tar.c
9067
str = cp + 2;
usr/src/cmd/tar/tar.c
9074
str++;
usr/src/cmd/tar/tar.c
9075
if ((cp = strstr(str, ";;")) != NULL) {
usr/src/cmd/tar/tar.c
9084
if (!stobsl(str, &bslabel,
usr/src/cmd/tar/tar.c
9093
str = cp + 2;
usr/src/cmd/tar/tar.c
9168
str++;
usr/src/cmd/tar/tar.c
9169
if ((cp = strstr(str, ";;")) != NULL) {
usr/src/cmd/tar/tar.c
9171
(void) strncat(buf, str, MAXPATHLEN);
usr/src/cmd/tar/tar.c
9172
str = cp + 2;
usr/src/cmd/tar/tar.c
9183
str++;
usr/src/cmd/tbl/tm.c
19
maknew(char *str)
usr/src/cmd/tbl/tm.c
24
p = str;
usr/src/cmd/tbl/tm.c
25
for (ba= 0; c = *str; str++)
usr/src/cmd/tbl/tm.c
26
if (c == '\\' && *(str+1)== '&')
usr/src/cmd/tbl/tm.c
27
ba=str;
usr/src/cmd/tbl/tm.c
28
str=p;
usr/src/cmd/tbl/tm.c
31
for (dpoint=0; *str; str++)
usr/src/cmd/tbl/tm.c
33
if (*str=='.' && !ineqn(str,p) &&
usr/src/cmd/tbl/tm.c
34
(str>p && digit(*(str-1)) ||
usr/src/cmd/tbl/tm.c
35
digit(*(str+1))))
usr/src/cmd/tbl/tm.c
36
dpoint=str;
usr/src/cmd/tbl/tm.c
39
for(; str>p; str--)
usr/src/cmd/tbl/tm.c
41
if (digit( * (str-1) ) && !ineqn(str, p))
usr/src/cmd/tbl/tm.c
44
if (!dpoint && p==str) /* not numerical, don't split */
usr/src/cmd/tbl/tm.c
46
if (dpoint) str=dpoint;
usr/src/cmd/tbl/tm.c
49
str = ba;
usr/src/cmd/tbl/tm.c
50
p =str;
usr/src/cmd/tbl/tm.c
61
} while (*exstore++ = *str++);
usr/src/cmd/tbl/ts.c
47
numb(char *str)
usr/src/cmd/tbl/ts.c
51
for (k=0; *str >= '0' && *str <= '9'; str++)
usr/src/cmd/tbl/ts.c
52
k = k*10 + *str - '0';
usr/src/cmd/tcpd/try-from.c
74
#define EXPAND(str) percent_x(buf, sizeof(buf), str, &request)
usr/src/cmd/th_tools/th_define.c
1090
for (i = 0; ptypes[i].str != 0; i++)
usr/src/cmd/th_tools/th_define.c
1092
(void) fprintf(fp, "%s ", ptypes[i].str);
usr/src/cmd/th_tools/th_define.c
2042
char *str; /* temporary variable */
usr/src/cmd/th_tools/th_define.c
2077
errdef.access_count = strtoul(optarg, &str, 0);
usr/src/cmd/th_tools/th_define.c
2078
if (str == optarg)
usr/src/cmd/th_tools/th_define.c
2092
dbglvl = strtoul(optarg, &str, 0);
usr/src/cmd/th_tools/th_define.c
2105
tmpl = strtol(optarg, &str, 0);
usr/src/cmd/th_tools/th_define.c
2107
if (str != optarg)
usr/src/cmd/th_tools/th_define.c
2121
if ((errdef.instance = strtol(optarg, &str, 0)) < 0)
usr/src/cmd/th_tools/th_define.c
2123
else if (str == optarg)
usr/src/cmd/th_tools/th_define.c
2127
errdef.offset = strtoull(optarg, &str, 0);
usr/src/cmd/th_tools/th_define.c
2128
if (str == optarg)
usr/src/cmd/th_tools/th_define.c
2144
for (i = 0; optypes[i].str != 0; i++)
usr/src/cmd/th_tools/th_define.c
2145
if (strcmp(optarg, optypes[i].str) == 0) {
usr/src/cmd/th_tools/th_define.c
2149
if (optypes[i].str == 0)
usr/src/cmd/th_tools/th_define.c
2178
if ((errdef.rnumber = strtol(optarg, &str, 0)) < 0)
usr/src/cmd/th_tools/th_define.c
2180
if (str == optarg) err = EINVAL;
usr/src/cmd/th_tools/th_define.c
2183
collecttime = strtoull(optarg, &str, 0);
usr/src/cmd/th_tools/th_define.c
2184
if (str == optarg)
usr/src/cmd/th_tools/th_define.c
2189
max_edef_wait = strtoul(optarg, &str, 0);
usr/src/cmd/th_tools/th_define.c
2191
if (str == optarg)
usr/src/cmd/th_tools/th_define.c
430
char *str;
usr/src/cmd/th_tools/th_define.c
435
if (optarg != NULL && (str = strtok(optarg, s))) {
usr/src/cmd/th_tools/th_define.c
436
msg(2, "str_to_bm: str %s\n", str);
usr/src/cmd/th_tools/th_define.c
438
for (; c->str != 0; c++)
usr/src/cmd/th_tools/th_define.c
439
if (strcmp(str, c->str) == 0) {
usr/src/cmd/th_tools/th_define.c
442
c->str);
usr/src/cmd/th_tools/th_define.c
446
} while ((str = strtok(NULL, s)));
usr/src/cmd/th_tools/th_define.c
538
for (; ct->str != 0; ct++) {
usr/src/cmd/th_tools/th_define.c
540
opname = ct->str;
usr/src/cmd/th_tools/th_define.c
700
for (i = 0, type = 0; atypes[i].str != 0; i++) {
usr/src/cmd/th_tools/th_define.c
702
type = atypes[i].str;
usr/src/cmd/th_tools/th_define.c
718
for (i = 0, opname = 0; optypes[i].str != 0; i++) {
usr/src/cmd/th_tools/th_define.c
720
opname = optypes[i].str;
usr/src/cmd/th_tools/th_define.c
732
opname = optypes[3].str; /* "XOR" */
usr/src/cmd/th_tools/th_define.c
792
opname = ioptypes[intrs++].str;
usr/src/cmd/th_tools/th_define.c
811
opname = doptypes[intrs++].str;
usr/src/cmd/th_tools/th_define.c
98
char *str;
usr/src/cmd/tic/tic_parse.c
251
dump_list(char *str)
usr/src/cmd/tic/tic_parse.c
256
fprintf(stderr, "dump_list %s\n", str);
usr/src/cmd/tip/remcap.c
401
tdecode(char *str, char **area)
usr/src/cmd/tip/remcap.c
409
while ((c = *str++) != 0 && c != ':') {
usr/src/cmd/tip/remcap.c
413
c = *str++ & 037;
usr/src/cmd/tip/remcap.c
418
c = *str++;
usr/src/cmd/tip/remcap.c
430
c <<= 3, c |= *str++ - '0';
usr/src/cmd/tip/remcap.c
431
while (--i && isdigit(*str))
usr/src/cmd/tip/remcap.c
439
str = *area;
usr/src/cmd/tip/remcap.c
441
return (str);
usr/src/cmd/tr/extern.h
48
char *str; /* user's string */
usr/src/cmd/tr/str.c
140
switch (s->str[1]) {
usr/src/cmd/tr/str.c
142
if ((p = strchr(s->str + 2, ']')) == NULL)
usr/src/cmd/tr/str.c
144
if (*(p - 1) != ':' || p - s->str < 4)
usr/src/cmd/tr/str.c
147
s->str += 2;
usr/src/cmd/tr/str.c
149
s->str = p + 1;
usr/src/cmd/tr/str.c
152
if ((p = strchr(s->str + 3, ']')) == NULL)
usr/src/cmd/tr/str.c
154
if (*(p - 1) != '=' || p - s->str < 4)
usr/src/cmd/tr/str.c
156
s->str += 2;
usr/src/cmd/tr/str.c
161
if ((p = strpbrk(s->str + 2, "*]")) == NULL)
usr/src/cmd/tr/str.c
165
s->str += 1;
usr/src/cmd/tr/str.c
177
if ((s->cclass = wctype(s->str)) == 0)
usr/src/cmd/tr/str.c
178
errx(1, "unknown class %s", s->str);
usr/src/cmd/tr/str.c
181
if (strcmp(s->str, "upper") == 0)
usr/src/cmd/tr/str.c
183
else if (strcmp(s->str, "lower") == 0)
usr/src/cmd/tr/str.c
198
if (*s->str == '\\') {
usr/src/cmd/tr/str.c
200
if (*s->str != '=')
usr/src/cmd/tr/str.c
202
s->str += 2;
usr/src/cmd/tr/str.c
204
clen = mbrtowc(&wc, s->str, MB_LEN_MAX, NULL);
usr/src/cmd/tr/str.c
210
if (s->str[clen] != '=')
usr/src/cmd/tr/str.c
212
s->str += clen + 2;
usr/src/cmd/tr/str.c
252
savestart = s->str;
usr/src/cmd/tr/str.c
253
if (*++s->str == '\\')
usr/src/cmd/tr/str.c
256
clen = mbrtowc(&wc, s->str, MB_LEN_MAX, NULL);
usr/src/cmd/tr/str.c
262
s->str += clen;
usr/src/cmd/tr/str.c
270
s->str = savestart;
usr/src/cmd/tr/str.c
279
s->str = savestart;
usr/src/cmd/tr/str.c
311
if (*s->str == '\\')
usr/src/cmd/tr/str.c
314
clen = mbrtowc(&wc, s->str, MB_LEN_MAX, NULL);
usr/src/cmd/tr/str.c
320
s->str += clen;
usr/src/cmd/tr/str.c
322
if (*s->str != '*')
usr/src/cmd/tr/str.c
325
switch (*++s->str) {
usr/src/cmd/tr/str.c
331
++s->str;
usr/src/cmd/tr/str.c
334
if (isdigit((uchar_t)*s->str)) {
usr/src/cmd/tr/str.c
335
s->cnt = strtol(s->str, &ep, 0);
usr/src/cmd/tr/str.c
337
s->str = ep + 1;
usr/src/cmd/tr/str.c
360
ch = (uchar_t)*++s->str;
usr/src/cmd/tr/str.c
365
++s->str;
usr/src/cmd/tr/str.c
375
++s->str;
usr/src/cmd/tr/str.c
71
switch (*s->str) {
usr/src/cmd/tr/str.c
83
clen = mbrtowc(&wch, s->str, MB_LEN_MAX, NULL);
usr/src/cmd/tr/str.c
89
s->str += clen;
usr/src/cmd/tr/str.c
94
if (s->str[0] == '-' && genrange(s, is_octal))
usr/src/cmd/tr/tr.c
208
s1.str = argv[0];
usr/src/cmd/tr/tr.c
212
if ((s2.str = strdup(argv[1])) == NULL)
usr/src/cmd/tr/tr.c
215
s2.str = argv[1];
usr/src/cmd/tr/tr.c
283
s2.str = argv[1];
usr/src/cmd/tr/tr.c
311
s2.str = argv[1];
usr/src/cmd/tr/tr.c
350
setup(char *arg, STR *str, int cflag, int Cflag)
usr/src/cmd/tr/tr.c
357
str->str = arg;
usr/src/cmd/tr/tr.c
358
while (next(str))
usr/src/cmd/tr/tr.c
359
(void) cset_add(cs, str->lastch);
usr/src/cmd/troff/n1.c
581
char *roff_sprintf(char *str, char *fmt, ...)
usr/src/cmd/troff/n1.c
592
*str = 0;
usr/src/cmd/troff/n1.c
594
return str;
usr/src/cmd/troff/n1.c
596
*str++ = c;
usr/src/cmd/troff/n1.c
602
*str++ = '-';
usr/src/cmd/troff/n1.c
605
str = sprintn(str, (long)i, 10);
usr/src/cmd/troff/n1.c
607
str = sprintn(str, va_arg(ap, long), c == 'o' ? 8 : (c == 'x' ? 16 : 10));
usr/src/cmd/troff/n1.c
610
*str++ = '\\';
usr/src/cmd/troff/n1.c
611
*str++ = va_arg(ap, int) & 0177;
usr/src/cmd/troff/n1.c
615
*str++ = c;
usr/src/cmd/troff/n1.c
617
str = sprintn(str, va_arg(ap, long), 10);
usr/src/cmd/troff/n1.c
619
str = sprintn(str, va_arg(ap, unsigned) , 8);
usr/src/cmd/troff/troff.d/ta.c
235
char str[100], buf[300];
usr/src/cmd/troff/troff.d/ta.c
259
fscanf(fp, "%s", str);
usr/src/cmd/troff/troff.d/ta.c
260
put1s(str);
usr/src/cmd/troff/troff.d/ta.c
298
fscanf(fp, "%s", str);
usr/src/cmd/troff/troff.d/ta.c
299
setfont(t_font(str));
usr/src/cmd/troff/troff.d/ta.c
362
char str[20];
usr/src/cmd/troff/troff.d/ta.c
365
fscanf(fp, "%s", str);
usr/src/cmd/troff/troff.d/ta.c
366
switch (str[0]) { /* crude for now */
usr/src/cmd/troff/troff.d/ta.c
387
fscanf(fp, "%d %s", &n, str);
usr/src/cmd/troff/troff.d/ta.c
388
loadfont(n, str);
usr/src/cmd/troff/troff.d/ta.c
663
char str[100];
usr/src/cmd/troff/troff.d/ta.c
675
str[0] = *s++;
usr/src/cmd/troff/troff.d/ta.c
676
str[1] = *s++;
usr/src/cmd/troff/troff.d/ta.c
677
str[2] = '\0';
usr/src/cmd/troff/troff.d/ta.c
678
put1s(str);
usr/src/cmd/truss/actions.c
968
dumpargs(private_t *pri, long ap, const char *str)
usr/src/cmd/truss/actions.c
993
(void) fputs(str, stdout);
usr/src/cmd/truss/actions.c
994
leng += 1 + strlen(str);
usr/src/cmd/truss/codes.c
1946
const char *str = NULL;
usr/src/cmd/truss/codes.c
1953
str = ip->name;
usr/src/cmd/truss/codes.c
1960
if (str == NULL) {
usr/src/cmd/truss/codes.c
1986
str = (const char *)pri->code_buf;
usr/src/cmd/truss/codes.c
1989
return (str);
usr/src/cmd/truss/codes.c
1997
const char *str = NULL;
usr/src/cmd/truss/codes.c
2004
str = ip->datastruct;
usr/src/cmd/truss/codes.c
2005
return (str);
usr/src/cmd/truss/codes.c
2012
const char *str = NULL;
usr/src/cmd/truss/codes.c
2015
str = FCNTLname[code-FCNTLMIN];
usr/src/cmd/truss/codes.c
2016
return (str);
usr/src/cmd/truss/codes.c
2022
const char *str = NULL;
usr/src/cmd/truss/codes.c
2025
str = SYSFSname[code-SYSFSMIN];
usr/src/cmd/truss/codes.c
2026
return (str);
usr/src/cmd/truss/codes.c
2033
const char *str = NULL;
usr/src/cmd/truss/codes.c
2037
case SI86SWPI: str = "SI86SWPI"; break;
usr/src/cmd/truss/codes.c
2038
case SI86SYM: str = "SI86SYM"; break;
usr/src/cmd/truss/codes.c
2039
case SI86CONF: str = "SI86CONF"; break;
usr/src/cmd/truss/codes.c
2040
case SI86BOOT: str = "SI86BOOT"; break;
usr/src/cmd/truss/codes.c
2041
case SI86AUTO: str = "SI86AUTO"; break;
usr/src/cmd/truss/codes.c
2042
case SI86EDT: str = "SI86EDT"; break;
usr/src/cmd/truss/codes.c
2043
case SI86SWAP: str = "SI86SWAP"; break;
usr/src/cmd/truss/codes.c
2044
case SI86FPHW: str = "SI86FPHW"; break;
usr/src/cmd/truss/codes.c
2045
case SI86FPSTART: str = "SI86FPSTART"; break;
usr/src/cmd/truss/codes.c
2046
case GRNON: str = "GRNON"; break;
usr/src/cmd/truss/codes.c
2047
case GRNFLASH: str = "GRNFLASH"; break;
usr/src/cmd/truss/codes.c
2048
case STIME: str = "STIME"; break;
usr/src/cmd/truss/codes.c
2049
case SETNAME: str = "SETNAME"; break;
usr/src/cmd/truss/codes.c
2050
case RNVR: str = "RNVR"; break;
usr/src/cmd/truss/codes.c
2051
case WNVR: str = "WNVR"; break;
usr/src/cmd/truss/codes.c
2052
case RTODC: str = "RTODC"; break;
usr/src/cmd/truss/codes.c
2053
case CHKSER: str = "CHKSER"; break;
usr/src/cmd/truss/codes.c
2054
case SI86NVPRT: str = "SI86NVPRT"; break;
usr/src/cmd/truss/codes.c
2055
case SANUPD: str = "SANUPD"; break;
usr/src/cmd/truss/codes.c
2056
case SI86KSTR: str = "SI86KSTR"; break;
usr/src/cmd/truss/codes.c
2057
case SI86MEM: str = "SI86MEM"; break;
usr/src/cmd/truss/codes.c
2058
case SI86TODEMON: str = "SI86TODEMON"; break;
usr/src/cmd/truss/codes.c
2059
case SI86CCDEMON: str = "SI86CCDEMON"; break;
usr/src/cmd/truss/codes.c
2060
case SI86CACHE: str = "SI86CACHE"; break;
usr/src/cmd/truss/codes.c
2061
case SI86DELMEM: str = "SI86DELMEM"; break;
usr/src/cmd/truss/codes.c
2062
case SI86ADDMEM: str = "SI86ADDMEM"; break;
usr/src/cmd/truss/codes.c
2064
case SI86V86: str = "SI86V86"; break;
usr/src/cmd/truss/codes.c
2065
case SI86SLTIME: str = "SI86SLTIME"; break;
usr/src/cmd/truss/codes.c
2066
case SI86DSCR: str = "SI86DSCR"; break;
usr/src/cmd/truss/codes.c
2067
case RDUBLK: str = "RDUBLK"; break;
usr/src/cmd/truss/codes.c
2069
case SI86NFA: str = "SI86NFA"; break;
usr/src/cmd/truss/codes.c
2070
case SI86VM86: str = "SI86VM86"; break;
usr/src/cmd/truss/codes.c
2071
case SI86VMENABLE: str = "SI86VMENABLE"; break;
usr/src/cmd/truss/codes.c
2072
case SI86LIMUSER: str = "SI86LIMUSER"; break;
usr/src/cmd/truss/codes.c
2073
case SI86RDID: str = "SI86RDID"; break;
usr/src/cmd/truss/codes.c
2074
case SI86RDBOOT: str = "SI86RDBOOT"; break;
usr/src/cmd/truss/codes.c
2076
case SI86SHFIL: str = "SI86SHFIL"; break;
usr/src/cmd/truss/codes.c
2077
case SI86PCHRGN: str = "SI86PCHRGN"; break;
usr/src/cmd/truss/codes.c
2078
case SI86BADVISE: str = "SI86BADVISE"; break;
usr/src/cmd/truss/codes.c
2079
case SI86SHRGN: str = "SI86SHRGN"; break;
usr/src/cmd/truss/codes.c
2080
case SI86CHIDT: str = "SI86CHIDT"; break;
usr/src/cmd/truss/codes.c
2081
case SI86EMULRDA: str = "SI86EMULRDA"; break;
usr/src/cmd/truss/codes.c
2083
case WTODC: str = "WTODC"; break;
usr/src/cmd/truss/codes.c
2084
case SGMTL: str = "SGMTL"; break;
usr/src/cmd/truss/codes.c
2085
case GGMTL: str = "GGMTL"; break;
usr/src/cmd/truss/codes.c
2086
case RTCSYNC: str = "RTCSYNC"; break;
usr/src/cmd/truss/codes.c
2090
return (str);
usr/src/cmd/truss/codes.c
2096
const char *str = NULL;
usr/src/cmd/truss/codes.c
2099
case UTS_UNAME: str = "UNAME"; break;
usr/src/cmd/truss/codes.c
2100
case UTS_USTAT: str = "USTAT"; break;
usr/src/cmd/truss/codes.c
2101
case UTS_FUSERS: str = "FUSERS"; break;
usr/src/cmd/truss/codes.c
2104
return (str);
usr/src/cmd/truss/codes.c
2110
const char *str = NULL;
usr/src/cmd/truss/codes.c
2112
case 0: str = "GETRCTL"; break;
usr/src/cmd/truss/codes.c
2113
case 1: str = "SETRCTL"; break;
usr/src/cmd/truss/codes.c
2114
case 2: str = "RCTLSYS_LST"; break;
usr/src/cmd/truss/codes.c
2115
case 3: str = "RCTLSYS_CTL"; break;
usr/src/cmd/truss/codes.c
2116
case 4: str = "RCTLSYS_SETPROJ"; break;
usr/src/cmd/truss/codes.c
2117
default: str = "UNKNOWN"; break;
usr/src/cmd/truss/codes.c
2119
return (str);
usr/src/cmd/truss/codes.c
2182
const char *str = NULL;
usr/src/cmd/truss/codes.c
2185
str = SCONFname[code-SCONFMIN];
usr/src/cmd/truss/codes.c
2186
return (str);
usr/src/cmd/truss/codes.c
2192
const char *str = NULL;
usr/src/cmd/truss/codes.c
2195
str = PATHCONFname[code-PATHCONFMIN];
usr/src/cmd/truss/codes.c
2196
return (str);
usr/src/cmd/truss/codes.c
2207
char *str = pri->code_buf;
usr/src/cmd/truss/codes.c
2216
(void) strcpy(str, "O_RDONLY");
usr/src/cmd/truss/codes.c
2219
(void) strcpy(str, "O_WRONLY");
usr/src/cmd/truss/codes.c
2222
(void) strcpy(str, "O_RDWR");
usr/src/cmd/truss/codes.c
2225
(void) strcpy(str, "O_SEARCH");
usr/src/cmd/truss/codes.c
2228
(void) strcpy(str, "O_EXEC");
usr/src/cmd/truss/codes.c
2233
(void) strlcat(str, "|O_NDELAY", sizeof (pri->code_buf));
usr/src/cmd/truss/codes.c
2235
(void) strlcat(str, "|O_APPEND", sizeof (pri->code_buf));
usr/src/cmd/truss/codes.c
2237
(void) strlcat(str, "|O_SYNC", sizeof (pri->code_buf));
usr/src/cmd/truss/codes.c
2239
(void) strlcat(str, "|O_DSYNC", sizeof (pri->code_buf));
usr/src/cmd/truss/codes.c
2241
(void) strlcat(str, "|O_NONBLOCK", sizeof (pri->code_buf));
usr/src/cmd/truss/codes.c
2243
(void) strlcat(str, "|O_CREAT", sizeof (pri->code_buf));
usr/src/cmd/truss/codes.c
2245
(void) strlcat(str, "|O_TRUNC", sizeof (pri->code_buf));
usr/src/cmd/truss/codes.c
2247
(void) strlcat(str, "|O_EXCL", sizeof (pri->code_buf));
usr/src/cmd/truss/codes.c
2249
(void) strlcat(str, "|O_NOCTTY", sizeof (pri->code_buf));
usr/src/cmd/truss/codes.c
2251
(void) strlcat(str, "|O_LARGEFILE", sizeof (pri->code_buf));
usr/src/cmd/truss/codes.c
2253
(void) strlcat(str, "|O_RSYNC", sizeof (pri->code_buf));
usr/src/cmd/truss/codes.c
2255
(void) strlcat(str, "|O_XATTR", sizeof (pri->code_buf));
usr/src/cmd/truss/codes.c
2257
(void) strlcat(str, "|O_NOFOLLOW", sizeof (pri->code_buf));
usr/src/cmd/truss/codes.c
2259
(void) strlcat(str, "|O_NOLINKS", sizeof (pri->code_buf));
usr/src/cmd/truss/codes.c
2261
(void) strlcat(str, "|O_CLOEXEC", sizeof (pri->code_buf));
usr/src/cmd/truss/codes.c
2263
(void) strlcat(str, "|O_DIRECTORY", sizeof (pri->code_buf));
usr/src/cmd/truss/codes.c
2265
(void) strlcat(str, "|O_DIRECT", sizeof (pri->code_buf));
usr/src/cmd/truss/codes.c
2267
(void) strlcat(str, "|O_CLOFORK", sizeof (pri->code_buf));
usr/src/cmd/truss/codes.c
2269
(void) strlcat(str, "|FXATTRDIROPEN", sizeof (pri->code_buf));
usr/src/cmd/truss/codes.c
2271
return ((const char *)str);
usr/src/cmd/truss/codes.c
2277
const char *str = NULL;
usr/src/cmd/truss/codes.c
2280
case SEEK_SET: str = "SEEK_SET"; break;
usr/src/cmd/truss/codes.c
2281
case SEEK_CUR: str = "SEEK_CUR"; break;
usr/src/cmd/truss/codes.c
2282
case SEEK_END: str = "SEEK_END"; break;
usr/src/cmd/truss/codes.c
2283
case SEEK_DATA: str = "SEEK_DATA"; break;
usr/src/cmd/truss/codes.c
2284
case SEEK_HOLE: str = "SEEK_HOLE"; break;
usr/src/cmd/truss/codes.c
2287
return (str);
usr/src/cmd/truss/codes.c
2295
char *str = pri->code_buf;
usr/src/cmd/truss/codes.c
2298
(void) sprintf(str, "0%.3o", arg&0777);
usr/src/cmd/truss/codes.c
2300
*str = '\0';
usr/src/cmd/truss/codes.c
2303
(void) strcat(str, "|IPC_ALLOC");
usr/src/cmd/truss/codes.c
2305
(void) strcat(str, "|IPC_CREAT");
usr/src/cmd/truss/codes.c
2307
(void) strcat(str, "|IPC_EXCL");
usr/src/cmd/truss/codes.c
2309
(void) strcat(str, "|IPC_NOWAIT");
usr/src/cmd/truss/codes.c
2311
return (str);
usr/src/cmd/truss/codes.c
2317
char *str;
usr/src/cmd/truss/codes.c
2322
str = ipcflags(pri, arg);
usr/src/cmd/truss/codes.c
2325
(void) strcat(str, "|MSG_NOERROR");
usr/src/cmd/truss/codes.c
2327
if (*str == '|')
usr/src/cmd/truss/codes.c
2328
str++;
usr/src/cmd/truss/codes.c
2329
return ((const char *)str);
usr/src/cmd/truss/codes.c
2335
char *str;
usr/src/cmd/truss/codes.c
2340
str = ipcflags(pri, arg);
usr/src/cmd/truss/codes.c
2343
(void) strcat(str, "|SEM_UNDO");
usr/src/cmd/truss/codes.c
2345
if (*str == '|')
usr/src/cmd/truss/codes.c
2346
str++;
usr/src/cmd/truss/codes.c
2347
return ((const char *)str);
usr/src/cmd/truss/codes.c
2353
char *str;
usr/src/cmd/truss/codes.c
2358
str = ipcflags(pri, arg);
usr/src/cmd/truss/codes.c
2361
(void) strcat(str, "|SHM_RDONLY");
usr/src/cmd/truss/codes.c
2363
(void) strcat(str, "|SHM_RND");
usr/src/cmd/truss/codes.c
2365
if (*str == '|')
usr/src/cmd/truss/codes.c
2366
str++;
usr/src/cmd/truss/codes.c
2367
return ((const char *)str);
usr/src/cmd/truss/codes.c
2421
const char *str = NULL;
usr/src/cmd/truss/codes.c
2424
str = MSGCMDname[arg-MSGCMDMIN];
usr/src/cmd/truss/codes.c
2425
return (str);
usr/src/cmd/truss/codes.c
2431
const char *str = NULL;
usr/src/cmd/truss/codes.c
2434
str = SEMCMDname[arg-SEMCMDMIN];
usr/src/cmd/truss/codes.c
2435
return (str);
usr/src/cmd/truss/codes.c
2441
const char *str = NULL;
usr/src/cmd/truss/codes.c
2444
str = SHMCMDname[arg-SHMCMDMIN];
usr/src/cmd/truss/codes.c
2445
return (str);
usr/src/cmd/truss/codes.c
2451
const char *str = NULL;
usr/src/cmd/truss/codes.c
2454
case RNORM: str = "RNORM"; break;
usr/src/cmd/truss/codes.c
2455
case RMSGD: str = "RMSGD"; break;
usr/src/cmd/truss/codes.c
2456
case RMSGN: str = "RMSGN"; break;
usr/src/cmd/truss/codes.c
2459
return (str);
usr/src/cmd/truss/codes.c
2466
char *str = pri->code_buf;
usr/src/cmd/truss/codes.c
2471
*str = '\0';
usr/src/cmd/truss/codes.c
2473
(void) strcat(str, "|S_INPUT");
usr/src/cmd/truss/codes.c
2475
(void) strcat(str, "|S_HIPRI");
usr/src/cmd/truss/codes.c
2477
(void) strcat(str, "|S_OUTPUT");
usr/src/cmd/truss/codes.c
2479
(void) strcat(str, "|S_MSG");
usr/src/cmd/truss/codes.c
2481
(void) strcat(str, "|S_ERROR");
usr/src/cmd/truss/codes.c
2483
(void) strcat(str, "|S_HANGUP");
usr/src/cmd/truss/codes.c
2485
return ((const char *)(str+1));
usr/src/cmd/truss/codes.c
2491
char *str = pri->code_buf;
usr/src/cmd/truss/codes.c
2496
*str = '\0';
usr/src/cmd/truss/codes.c
2498
(void) strcat(str, "|FREAD");
usr/src/cmd/truss/codes.c
2500
(void) strcat(str, "|FWRITE");
usr/src/cmd/truss/codes.c
2502
return ((const char *)(str+1));
usr/src/cmd/truss/codes.c
2508
const char *str = NULL;
usr/src/cmd/truss/codes.c
2511
case FLUSHR: str = "FLUSHR"; break;
usr/src/cmd/truss/codes.c
2512
case FLUSHW: str = "FLUSHW"; break;
usr/src/cmd/truss/codes.c
2513
case FLUSHRW: str = "FLUSHRW"; break;
usr/src/cmd/truss/codes.c
2516
return (str);
usr/src/cmd/truss/codes.c
2525
char *str = pri->code_buf;
usr/src/cmd/truss/codes.c
2531
*str = '\0';
usr/src/cmd/truss/codes.c
2533
used = strlcat(str, "|MS_RDONLY", sizeof (pri->code_buf));
usr/src/cmd/truss/codes.c
2535
used = strlcat(str, "|MS_FSS", sizeof (pri->code_buf));
usr/src/cmd/truss/codes.c
2537
used = strlcat(str, "|MS_DATA", sizeof (pri->code_buf));
usr/src/cmd/truss/codes.c
2539
used = strlcat(str, "|MS_NOSUID", sizeof (pri->code_buf));
usr/src/cmd/truss/codes.c
2541
used = strlcat(str, "|MS_REMOUNT", sizeof (pri->code_buf));
usr/src/cmd/truss/codes.c
2543
used = strlcat(str, "|MS_NOTRUNC", sizeof (pri->code_buf));
usr/src/cmd/truss/codes.c
2545
used = strlcat(str, "|MS_OVERLAY", sizeof (pri->code_buf));
usr/src/cmd/truss/codes.c
2547
used = strlcat(str, "|MS_OPTIONSTR", sizeof (pri->code_buf));
usr/src/cmd/truss/codes.c
2549
used = strlcat(str, "|MS_GLOBAL", sizeof (pri->code_buf));
usr/src/cmd/truss/codes.c
2551
used = strlcat(str, "|MS_FORCE", sizeof (pri->code_buf));
usr/src/cmd/truss/codes.c
2553
used = strlcat(str, "|MS_NOMNTTAB", sizeof (pri->code_buf));
usr/src/cmd/truss/codes.c
2558
return ((const char *)(str+1));
usr/src/cmd/truss/codes.c
2564
char *str = pri->code_buf;
usr/src/cmd/truss/codes.c
2567
(void) sprintf(str, "0x%lx", arg);
usr/src/cmd/truss/codes.c
2568
return (str);
usr/src/cmd/truss/codes.c
2570
*str = '\0';
usr/src/cmd/truss/codes.c
2572
(void) strcat(str, "|ST_RDONLY");
usr/src/cmd/truss/codes.c
2574
(void) strcat(str, "|ST_NOSUID");
usr/src/cmd/truss/codes.c
2576
(void) strcat(str, "|ST_NOTRUNC");
usr/src/cmd/truss/codes.c
2577
if (*str == '\0')
usr/src/cmd/truss/codes.c
2578
(void) strcat(str, "|0");
usr/src/cmd/truss/codes.c
2579
return ((const char *)(str+1));
usr/src/cmd/truss/codes.c
2585
const char *str = NULL;
usr/src/cmd/truss/codes.c
2588
case F_FILE_ONLY: str = "F_FILE_ONLY"; break;
usr/src/cmd/truss/codes.c
2589
case F_CONTAINED: str = "F_CONTAINED"; break;
usr/src/cmd/truss/codes.c
2592
return (str);
usr/src/cmd/truss/codes.c
2598
char *str = pri->code_buf;
usr/src/cmd/truss/codes.c
2601
(void) sprintf(str, "0x%x", arg);
usr/src/cmd/truss/codes.c
2602
return (str);
usr/src/cmd/truss/codes.c
2604
*str = '\0';
usr/src/cmd/truss/codes.c
2606
(void) strcat(str, "|F_CDIR");
usr/src/cmd/truss/codes.c
2608
(void) strcat(str, "|F_RDIR");
usr/src/cmd/truss/codes.c
2610
(void) strcat(str, "|F_TEXT");
usr/src/cmd/truss/codes.c
2612
(void) strcat(str, "|F_MAP");
usr/src/cmd/truss/codes.c
2614
(void) strcat(str, "|F_OPEN");
usr/src/cmd/truss/codes.c
2616
(void) strcat(str, "|F_TRACE");
usr/src/cmd/truss/codes.c
2618
(void) strcat(str, "|F_TTY");
usr/src/cmd/truss/codes.c
2619
if (*str == '\0')
usr/src/cmd/truss/codes.c
2620
(void) strcat(str, "|0");
usr/src/cmd/truss/codes.c
2621
return ((const char *)(str+1));
usr/src/cmd/truss/expound.c
108
mk_ctime(char *str, size_t maxsize, time_t value)
usr/src/cmd/truss/expound.c
110
(void) strftime(str, maxsize, "%b %e %H:%M:%S %Z %Y",
usr/src/cmd/truss/expound.c
1119
const char *str;
usr/src/cmd/truss/expound.c
117
char str[80];
usr/src/cmd/truss/expound.c
1171
(void) printf(audio_porttab->str);
usr/src/cmd/truss/expound.c
119
mk_ctime(str, sizeof (str), value);
usr/src/cmd/truss/expound.c
1199
(void) printf(audio_porttab->str);
usr/src/cmd/truss/expound.c
123
str,
usr/src/cmd/truss/expound.c
130
char str[80];
usr/src/cmd/truss/expound.c
132
mk_ctime(str, sizeof (str), value->tv_sec);
usr/src/cmd/truss/expound.c
136
str,
usr/src/cmd/truss/expound.c
144
char str[80];
usr/src/cmd/truss/expound.c
146
mk_ctime(str, sizeof (str), value->tv_sec);
usr/src/cmd/truss/expound.c
1462
const char *str = ioctldatastruct(code);
usr/src/cmd/truss/expound.c
1467
if (str != NULL) {
usr/src/cmd/truss/expound.c
1468
(void) printf(" (struct %s)\n", str);
usr/src/cmd/truss/expound.c
150
str,
usr/src/cmd/truss/expound.c
1668
const char *str = NULL;
usr/src/cmd/truss/expound.c
1674
str = "F_RDLCK";
usr/src/cmd/truss/expound.c
1677
str = "F_WRLCK";
usr/src/cmd/truss/expound.c
1680
str = "F_UNLCK";
usr/src/cmd/truss/expound.c
1683
if (str != NULL)
usr/src/cmd/truss/expound.c
1684
(void) printf("%s", str);
usr/src/cmd/truss/expound.c
1688
str = whencearg(flock.l_whence);
usr/src/cmd/truss/expound.c
1689
if (str != NULL)
usr/src/cmd/truss/expound.c
1690
(void) printf(" whence=%s", str);
usr/src/cmd/truss/expound.c
1709
const char *str = NULL;
usr/src/cmd/truss/expound.c
1715
str = "F_RDLCK";
usr/src/cmd/truss/expound.c
1718
str = "F_WRLCK";
usr/src/cmd/truss/expound.c
1721
str = "F_UNLCK";
usr/src/cmd/truss/expound.c
1724
if (str != NULL)
usr/src/cmd/truss/expound.c
1725
(void) printf("%s", str);
usr/src/cmd/truss/expound.c
1729
str = whencearg(flock.l_whence);
usr/src/cmd/truss/expound.c
1730
if (str != NULL)
usr/src/cmd/truss/expound.c
1731
(void) printf(" whence=%s", str);
usr/src/cmd/truss/expound.c
1750
const char *str = NULL;
usr/src/cmd/truss/expound.c
1757
str = "F_RDACC";
usr/src/cmd/truss/expound.c
1760
str = "F_WRACC";
usr/src/cmd/truss/expound.c
1763
str = "F_RWACC";
usr/src/cmd/truss/expound.c
1766
if (str != NULL)
usr/src/cmd/truss/expound.c
1767
(void) printf("%s", str);
usr/src/cmd/truss/expound.c
1771
str = NULL;
usr/src/cmd/truss/expound.c
1778
str = "F_NODNY";
usr/src/cmd/truss/expound.c
1781
str = "F_RDDNY";
usr/src/cmd/truss/expound.c
1784
str = "F_WRDNY";
usr/src/cmd/truss/expound.c
1787
str = "F_RWDNY";
usr/src/cmd/truss/expound.c
1790
str = "F_COMPAT";
usr/src/cmd/truss/expound.c
1793
if (str != NULL) {
usr/src/cmd/truss/expound.c
1795
(void) printf(" deny=F_MANDDNY|%s", str);
usr/src/cmd/truss/expound.c
1797
(void) printf(" deny=%s", str);
usr/src/cmd/truss/expound.c
1972
char *str = pri->code_buf;
usr/src/cmd/truss/expound.c
1977
(void) sprintf(str, "0x%-5X", arg);
usr/src/cmd/truss/expound.c
1978
return ((const char *)str);
usr/src/cmd/truss/expound.c
1981
*str = '\0';
usr/src/cmd/truss/expound.c
1983
(void) strcat(str, "|POLLIN");
usr/src/cmd/truss/expound.c
1985
(void) strcat(str, "|POLLPRI");
usr/src/cmd/truss/expound.c
1987
(void) strcat(str, "|POLLOUT");
usr/src/cmd/truss/expound.c
1989
(void) strcat(str, "|POLLRDNORM");
usr/src/cmd/truss/expound.c
1991
(void) strcat(str, "|POLLRDBAND");
usr/src/cmd/truss/expound.c
1993
(void) strcat(str, "|POLLWRBAND");
usr/src/cmd/truss/expound.c
1995
(void) strcat(str, "|POLLERR");
usr/src/cmd/truss/expound.c
1997
(void) strcat(str, "|POLLHUP");
usr/src/cmd/truss/expound.c
1999
(void) strcat(str, "|POLLNVAL");
usr/src/cmd/truss/expound.c
2001
return ((const char *)(str+1));
usr/src/cmd/truss/expound.c
2360
const char *str;
usr/src/cmd/truss/expound.c
2380
else if ((str = semflags(pri, sembuf.sem_flg)) != NULL)
usr/src/cmd/truss/expound.c
2381
(void) printf("%s\n", str);
usr/src/cmd/truss/expound.c
3361
const char *str, long addroff, long lenoff, long len)
usr/src/cmd/truss/expound.c
3390
pri->pname, str,
usr/src/cmd/truss/expound.c
3405
str, inet_ntop(AF_INET, &sin->sin_addr, addrbuf,
usr/src/cmd/truss/expound.c
3414
str, soun->sun_path);
usr/src/cmd/truss/expound.c
3515
char *str;
usr/src/cmd/truss/expound.c
3526
str = priv_set_to_str(s, ',', PRIV_STR_SHORT));
usr/src/cmd/truss/expound.c
3528
free(str);
usr/src/cmd/truss/expound.c
3577
char *str = priv_set_to_str(tmp, ',', PRIV_STR_SHORT);
usr/src/cmd/truss/expound.c
3578
if (str != NULL) {
usr/src/cmd/truss/expound.c
3579
(void) printf("%s\t%s%s\n", pri->pname, label, str);
usr/src/cmd/truss/expound.c
3580
free(str);
usr/src/cmd/truss/expound.c
4050
char *str = pri->code_buf;
usr/src/cmd/truss/expound.c
4053
*str = '\0';
usr/src/cmd/truss/expound.c
4055
used = strlcat(str, "|MOD_OFFSET", sizeof (pri->code_buf));
usr/src/cmd/truss/expound.c
4057
used = strlcat(str, "|MOD_FREQUENCY", sizeof (pri->code_buf));
usr/src/cmd/truss/expound.c
4059
used = strlcat(str, "|MOD_MAXERROR", sizeof (pri->code_buf));
usr/src/cmd/truss/expound.c
4061
used = strlcat(str, "|MOD_ESTERROR", sizeof (pri->code_buf));
usr/src/cmd/truss/expound.c
4063
used = strlcat(str, "|MOD_STATUS", sizeof (pri->code_buf));
usr/src/cmd/truss/expound.c
4065
used = strlcat(str, "|MOD_TIMECONST", sizeof (pri->code_buf));
usr/src/cmd/truss/expound.c
4067
used = strlcat(str, "|MOD_CLKB", sizeof (pri->code_buf));
usr/src/cmd/truss/expound.c
4069
used = strlcat(str, "|MOD_CLKA", sizeof (pri->code_buf));
usr/src/cmd/truss/expound.c
4072
(void) snprintf(str, sizeof (pri->code_buf), " 0x%.4x", val);
usr/src/cmd/truss/expound.c
4074
return (str + 1);
usr/src/cmd/truss/expound.c
4080
char *str = pri->code_buf;
usr/src/cmd/truss/expound.c
4083
*str = '\0';
usr/src/cmd/truss/expound.c
4085
used = strlcat(str, "|STA_PLL", sizeof (pri->code_buf));
usr/src/cmd/truss/expound.c
4087
used = strlcat(str, "|STA_PPSFREQ", sizeof (pri->code_buf));
usr/src/cmd/truss/expound.c
4089
used = strlcat(str, "|STA_PPSTIME", sizeof (pri->code_buf));
usr/src/cmd/truss/expound.c
4091
used = strlcat(str, "|STA_FLL", sizeof (pri->code_buf));
usr/src/cmd/truss/expound.c
4094
used = strlcat(str, "|STA_INS", sizeof (pri->code_buf));
usr/src/cmd/truss/expound.c
4096
used = strlcat(str, "|STA_DEL", sizeof (pri->code_buf));
usr/src/cmd/truss/expound.c
4098
used = strlcat(str, "|STA_UNSYNC", sizeof (pri->code_buf));
usr/src/cmd/truss/expound.c
4100
used = strlcat(str, "|STA_FREQHOLD", sizeof (pri->code_buf));
usr/src/cmd/truss/expound.c
4103
used = strlcat(str, "|STA_PPSSIGNAL", sizeof (pri->code_buf));
usr/src/cmd/truss/expound.c
4105
used = strlcat(str, "|STA_PPSJITTER", sizeof (pri->code_buf));
usr/src/cmd/truss/expound.c
4107
used = strlcat(str, "|STA_PPSWANDER", sizeof (pri->code_buf));
usr/src/cmd/truss/expound.c
4109
used = strlcat(str, "|STA_PPSERROR", sizeof (pri->code_buf));
usr/src/cmd/truss/expound.c
4112
used = strlcat(str, "|STA_CLOCKERR", sizeof (pri->code_buf));
usr/src/cmd/truss/expound.c
4115
(void) snprintf(str, sizeof (pri->code_buf), " 0x%.4x", val);
usr/src/cmd/truss/expound.c
4117
return (str + 1);
usr/src/cmd/truss/expound.c
538
char *str = pri->code_buf;
usr/src/cmd/truss/expound.c
541
(void) strcpy(str, "USYNC_PROCESS");
usr/src/cmd/truss/expound.c
543
(void) strcpy(str, "USYNC_THREAD");
usr/src/cmd/truss/expound.c
546
(void) strcat(str, "|LOCK_ERRORCHECK");
usr/src/cmd/truss/expound.c
548
(void) strcat(str, "|LOCK_RECURSIVE");
usr/src/cmd/truss/expound.c
550
(void) strcat(str, "|LOCK_PRIO_INHERIT");
usr/src/cmd/truss/expound.c
552
(void) strcat(str, "|LOCK_PRIO_PROTECT");
usr/src/cmd/truss/expound.c
554
(void) strcat(str, "|LOCK_ROBUST");
usr/src/cmd/truss/expound.c
556
(void) strcat(str, "|USYNC_PROCESS_ROBUST");
usr/src/cmd/truss/expound.c
559
(void) sprintf(str + strlen(str), "|0x%.4X", type);
usr/src/cmd/truss/expound.c
561
return ((const char *)str);
usr/src/cmd/truss/fcall.c
303
const char *str;
usr/src/cmd/truss/fcall.c
331
if ((str = strrchr(object_name, '/')) != NULL)
usr/src/cmd/truss/fcall.c
332
str++;
usr/src/cmd/truss/fcall.c
334
str = object_name;
usr/src/cmd/truss/fcall.c
335
(void) strncpy(name, str, sizeof (name) - 2);
usr/src/cmd/truss/htbl.c
103
assert(str != NULL);
usr/src/cmd/truss/htbl.c
104
for (p = str; *p != '\0'; p++) {
usr/src/cmd/truss/htbl.c
97
hash_str(char *str, unsigned int sz)
usr/src/cmd/truss/listopts.c
313
char *str, /* string of signal names */
usr/src/cmd/truss/listopts.c
322
upcase(str);
usr/src/cmd/truss/listopts.c
323
name = strtok_r(str, sepr, &lasts);
usr/src/cmd/truss/listopts.c
387
fltlist(char *str, /* string of fault names */
usr/src/cmd/truss/listopts.c
396
upcase(str);
usr/src/cmd/truss/listopts.c
397
name = strtok_r(str, sepr, &lasts);
usr/src/cmd/truss/listopts.c
464
fdlist(char *str, /* string of filedescriptors */
usr/src/cmd/truss/listopts.c
472
upcase(str);
usr/src/cmd/truss/listopts.c
473
name = strtok_r(str, sepr, &lasts);
usr/src/cmd/truss/listopts.c
519
upcase(char *str)
usr/src/cmd/truss/listopts.c
523
while ((c = *str) != '\0')
usr/src/cmd/truss/listopts.c
524
*str++ = toupper(c);
usr/src/cmd/truss/listopts.c
65
syslist(char *str, /* string of syscall names */
usr/src/cmd/truss/listopts.c
74
name = strtok_r(str, sepr, &lasts);
usr/src/cmd/truss/print.c
1614
char str[1024];
usr/src/cmd/truss/print.c
1621
*str = '\0';
usr/src/cmd/truss/print.c
1623
(void) strlcat(str, "|PROC_SEC_ASLR", sizeof (str));
usr/src/cmd/truss/print.c
1627
(void) strlcat(str, "|PROC_SEC_FORBIDNULLMAP",
usr/src/cmd/truss/print.c
1628
sizeof (str));
usr/src/cmd/truss/print.c
1632
(void) strlcat(str, "|PROC_SEC_NOEXECSTACK",
usr/src/cmd/truss/print.c
1633
sizeof (str));
usr/src/cmd/truss/print.c
1638
len = strlen(str);
usr/src/cmd/truss/print.c
1639
ptr = str + len;
usr/src/cmd/truss/print.c
1640
(void) snprintf(ptr, sizeof (str) - len, "|%#x", val);
usr/src/cmd/truss/print.c
1643
outstring(pri, str + 1);
usr/src/cmd/truss/print.c
2395
char *str = pri->code_buf;
usr/src/cmd/truss/print.c
2406
*str = '\0';
usr/src/cmd/truss/print.c
2408
(void) strlcat(str, "|R_OK", sizeof (pri->code_buf));
usr/src/cmd/truss/print.c
2410
(void) strlcat(str, "|W_OK", sizeof (pri->code_buf));
usr/src/cmd/truss/print.c
2412
(void) strlcat(str, "|X_OK", sizeof (pri->code_buf));
usr/src/cmd/truss/print.c
2414
(void) strlcat(str, "|E_OK", sizeof (pri->code_buf));
usr/src/cmd/truss/print.c
2415
return ((const char *)(str + 1));
usr/src/cmd/truss/print.c
2811
char *str = pri->code_buf;
usr/src/cmd/truss/print.c
2813
*str = '\0';
usr/src/cmd/truss/print.c
2816
(void) strlcat(str, "|" #flg, sizeof (pri->code_buf)); \
usr/src/cmd/truss/print.c
2830
if (attr != 0 || *str == '\0') {
usr/src/cmd/truss/print.c
2831
size_t len = strlen(str);
usr/src/cmd/truss/print.c
2832
(void) snprintf(str + len, sizeof (pri->code_buf) - len,
usr/src/cmd/truss/print.c
2836
return (str + 1);
usr/src/cmd/truss/print.c
2979
char *str;
usr/src/cmd/truss/print.c
2986
str = pri->code_buf;
usr/src/cmd/truss/print.c
2987
*str = '\0';
usr/src/cmd/truss/print.c
2989
(void) strlcat(str, "|FORK_NOSIGCHLD",
usr/src/cmd/truss/print.c
2992
(void) strlcat(str, "|FORK_WAITPID",
usr/src/cmd/truss/print.c
2994
outstring(pri, str + 1);
usr/src/cmd/truss/print.c
3067
char *str = pri->code_buf;
usr/src/cmd/truss/print.c
3079
*str = '\0';
usr/src/cmd/truss/print.c
3081
used = strlcat(str, "|EXEC_DESCRIPTOR", CBSIZE);
usr/src/cmd/truss/print.c
3086
used += snprintf(str + used, CBSIZE - used, "|0x%lx", val);
usr/src/cmd/truss/print.c
3089
(void) snprintf(str + 1, CBSIZE - 1, "0x%lx", val);
usr/src/cmd/truss/print.c
3091
outstring(pri, str + 1);
usr/src/cmd/truss/print.c
409
char str[32];
usr/src/cmd/truss/print.c
415
(void) snprintf(str, sizeof (str), "[%d,%d]", fds[0], fds[1]);
usr/src/cmd/truss/print.c
416
outstring(pri, str);
usr/src/cmd/truss/print.c
704
char *str = pri->code_buf;
usr/src/cmd/truss/print.c
712
*str = '\0';
usr/src/cmd/truss/print.c
714
(void) strlcat(str, "|PROT_READ", sizeof (pri->code_buf));
usr/src/cmd/truss/print.c
716
(void) strlcat(str, "|PROT_WRITE", sizeof (pri->code_buf));
usr/src/cmd/truss/print.c
718
(void) strlcat(str, "|PROT_EXEC", sizeof (pri->code_buf));
usr/src/cmd/truss/print.c
719
return ((const char *)(str + 1));
usr/src/cmd/truss/print.c
725
char *str = pri->code_buf;
usr/src/cmd/truss/print.c
731
used = strlcpy(str, "MAP_SHARED", CBSIZE);
usr/src/cmd/truss/print.c
734
used = strlcpy(str, "MAP_PRIVATE", CBSIZE);
usr/src/cmd/truss/print.c
737
used = snprintf(str, CBSIZE, "%ld", arg&MAP_TYPE);
usr/src/cmd/truss/print.c
745
(void) snprintf(str + used, sizeof (pri->code_buf) - used,
usr/src/cmd/truss/print.c
749
(void) strlcat(str, "|MAP_FIXED", CBSIZE);
usr/src/cmd/truss/print.c
751
(void) strlcat(str, "|MAP_RENAME", CBSIZE);
usr/src/cmd/truss/print.c
753
(void) strlcat(str, "|MAP_NORESERVE", CBSIZE);
usr/src/cmd/truss/print.c
755
(void) strlcat(str, "|MAP_ANON", CBSIZE);
usr/src/cmd/truss/print.c
757
(void) strlcat(str, "|MAP_ALIGN", CBSIZE);
usr/src/cmd/truss/print.c
759
(void) strlcat(str, "|MAP_TEXT", CBSIZE);
usr/src/cmd/truss/print.c
761
(void) strlcat(str, "|MAP_INITDATA", CBSIZE);
usr/src/cmd/truss/print.c
763
(void) strlcat(str, "|MAP_32BIT", CBSIZE);
usr/src/cmd/truss/print.c
766
return ((const char *)str);
usr/src/cmd/truss/procset.c
101
str = (const char *)pri->code_buf;
usr/src/cmd/truss/procset.c
105
return (str);
usr/src/cmd/truss/procset.c
111
char *str = pri->code_buf;
usr/src/cmd/truss/procset.c
119
*str = '\0';
usr/src/cmd/truss/procset.c
121
(void) strcat(str, "|WEXITED");
usr/src/cmd/truss/procset.c
123
(void) strcat(str, "|WTRAPPED");
usr/src/cmd/truss/procset.c
125
(void) strcat(str, "|WSTOPPED");
usr/src/cmd/truss/procset.c
127
(void) strcat(str, "|WCONTINUED");
usr/src/cmd/truss/procset.c
129
(void) strcat(str, "|WNOHANG");
usr/src/cmd/truss/procset.c
131
(void) strcat(str, "|WNOWAIT");
usr/src/cmd/truss/procset.c
133
return ((const char *)(str+1));
usr/src/cmd/truss/procset.c
64
const char *str;
usr/src/cmd/truss/procset.c
67
case POP_DIFF: str = "POP_DIFF"; break;
usr/src/cmd/truss/procset.c
68
case POP_AND: str = "POP_AND"; break;
usr/src/cmd/truss/procset.c
69
case POP_OR: str = "POP_OR"; break;
usr/src/cmd/truss/procset.c
70
case POP_XOR: str = "POP_XOR"; break;
usr/src/cmd/truss/procset.c
73
str = (const char *)pri->code_buf;
usr/src/cmd/truss/procset.c
77
return (str);
usr/src/cmd/truss/procset.c
83
const char *str;
usr/src/cmd/truss/procset.c
86
case P_PID: str = "P_PID"; break;
usr/src/cmd/truss/procset.c
87
case P_PPID: str = "P_PPID"; break;
usr/src/cmd/truss/procset.c
88
case P_PGID: str = "P_PGID"; break;
usr/src/cmd/truss/procset.c
89
case P_SID: str = "P_SID"; break;
usr/src/cmd/truss/procset.c
90
case P_CID: str = "P_CID"; break;
usr/src/cmd/truss/procset.c
91
case P_UID: str = "P_UID"; break;
usr/src/cmd/truss/procset.c
92
case P_GID: str = "P_GID"; break;
usr/src/cmd/truss/procset.c
93
case P_ALL: str = "P_ALL"; break;
usr/src/cmd/truss/procset.c
94
case P_LWPID: str = "P_LWPID"; break;
usr/src/cmd/truss/procset.c
95
case P_TASKID: str = "P_TASKID"; break;
usr/src/cmd/truss/procset.c
96
case P_PROJID: str = "P_PROJID"; break;
usr/src/cmd/truss/procset.c
97
case P_ZONEID: str = "P_ZONEID"; break;
usr/src/cmd/truss/procset.c
98
case P_CTID: str = "P_CTID"; break;
usr/src/cmd/tsol/plabel/plabel.c
130
char *str;
usr/src/cmd/tsol/plabel/plabel.c
194
if (label_to_str(plabel, &str, M_LABEL, wordlen) != 0) {
usr/src/cmd/tsol/plabel/plabel.c
198
(void) printf("%s\n", str);
usr/src/cmd/tsol/plabel/plabel.c
200
free(str);
usr/src/cmd/tsol/tnctl/tnctl.c
570
process_mlp(const char *str)
usr/src/cmd/tsol/tnctl/tnctl.c
580
if ((cp = strchr(str, ':')) == NULL) {
usr/src/cmd/tsol/tnctl/tnctl.c
586
(void) strlcpy(zonename, str, sizeof (zonename));
usr/src/cmd/tsol/tnctl/tnctl.c
587
} else if (cp - str >= ZONENAME_MAX) {
usr/src/cmd/tsol/tnctl/tnctl.c
591
(void) memcpy(zonename, str, cp - str);
usr/src/cmd/tsol/tnctl/tnctl.c
592
zonename[cp - str] = '\0';
usr/src/cmd/tsol/tnctl/tnctl.c
593
str = cp + 1;
usr/src/cmd/tsol/tnctl/tnctl.c
603
strlen(str));
usr/src/cmd/tsol/tnctl/tnctl.c
609
(void) sprintf(sbuf, "%s:ADMIN_LOW:0:%s", zonename, str);
usr/src/cmd/tsol/tninfo/tninfo.c
103
char *str, *str2;
usr/src/cmd/tsol/tninfo/tninfo.c
132
l_to_str(&tp.tp_def_label, &str, M_LABEL);
usr/src/cmd/tsol/tninfo/tninfo.c
135
str, str2);
usr/src/cmd/tsol/tninfo/tninfo.c
136
free(str);
usr/src/cmd/tsol/tninfo/tninfo.c
143
&str, M_LABEL);
usr/src/cmd/tsol/tninfo/tninfo.c
147
str, str2);
usr/src/cmd/tsol/tninfo/tninfo.c
148
free(str);
usr/src/cmd/tsol/tninfo/tninfo.c
152
&str, M_LABEL);
usr/src/cmd/tsol/tninfo/tninfo.c
156
str, str2);
usr/src/cmd/tsol/tninfo/tninfo.c
157
free(str);
usr/src/cmd/tsol/tninfo/tninfo.c
166
l_to_str(l1, &str, M_LABEL);
usr/src/cmd/tsol/tninfo/tninfo.c
168
"hex: %3$s\n"), i, str, str2);
usr/src/cmd/tsol/tninfo/tninfo.c
169
free(str);
usr/src/cmd/tsol/tninfo/tninfo.c
180
&str, M_LABEL);
usr/src/cmd/tsol/tninfo/tninfo.c
185
str, str2);
usr/src/cmd/tsol/tninfo/tninfo.c
186
free(str);
usr/src/cmd/tsol/tninfo/tninfo.c
190
&str, M_LABEL);
usr/src/cmd/tsol/tninfo/tninfo.c
195
str, str2);
usr/src/cmd/tsol/tninfo/tninfo.c
196
free(str);
usr/src/cmd/tsol/tninfo/tninfo.c
205
l_to_str(l1, &str, M_LABEL);
usr/src/cmd/tsol/tninfo/tninfo.c
208
"hex: %3$s\n"), i, str, str2);
usr/src/cmd/tsol/tninfo/tninfo.c
209
free(str);
usr/src/cmd/tsol/tninfo/tninfo.c
93
l_to_str(const m_label_t *l, char **str, int ltype)
usr/src/cmd/tsol/tninfo/tninfo.c
95
if (label_to_str(l, str, ltype, DEF_NAMES) != 0)
usr/src/cmd/tsol/tninfo/tninfo.c
96
*str = strdup(gettext("translation failed"));
usr/src/cmd/ttymon/tmttydefs.c
440
strsave(char *str)
usr/src/cmd/ttymon/tmttydefs.c
444
if (str == NULL) {
usr/src/cmd/ttymon/tmttydefs.c
451
if ((rval = malloc(strlen(str) + 1)) == NULL) {
usr/src/cmd/ttymon/tmttydefs.c
455
(void) strcpy(rval, str);
usr/src/cmd/ttymon/uucp.h
245
#define PREFIX(pre, str) (strncmp((pre), (str), strlen(pre)) == SAME)
usr/src/cmd/ttymon/uucp.h
246
#define BASENAME(str, c) ((Bnptr = strrchr((str), c)) ? (Bnptr + 1) : (str))
usr/src/cmd/ucodeadm/ucodeadm.c
173
ucode_perror(const char *str, ucode_errno_t rc)
usr/src/cmd/ucodeadm/ucodeadm.c
175
(void) fprintf(stderr, "%s: %s: %s\n", cmdname, str,
usr/src/cmd/ul/ul.c
581
ul_puts(char *str)
usr/src/cmd/ul/ul.c
583
if (str)
usr/src/cmd/ul/ul.c
584
(void) tputs(str, 1, outchar);
usr/src/cmd/ul/ul.c
83
void ul_puts(char *str);
usr/src/cmd/utmpd/utmpd.c
1008
nonfatal(char *str)
usr/src/cmd/utmpd/utmpd.c
1010
syslog(LOG_WARNING, "%s", str);
usr/src/cmd/utmpd/utmpd.c
1015
dprintf(("%c%s\n", 7, str));
usr/src/cmd/utmpd/utmpd.c
990
fatal(char *str)
usr/src/cmd/utmpd/utmpd.c
994
syslog(LOG_ALERT, "%s", str);
usr/src/cmd/utmpd/utmpd.c
998
dprintf(("%s\n", str));
usr/src/cmd/valtools/ckdate.c
104
char *str;
usr/src/cmd/valtools/ckdate.c
107
str = arg0 + strlen(arg0);
usr/src/cmd/valtools/ckdate.c
108
while (str > arg0 && *--str == '/')
usr/src/cmd/valtools/ckdate.c
109
*str = '\0';
usr/src/cmd/valtools/ckdate.c
110
if ((str = strrchr(arg0, '/')) != NULL)
usr/src/cmd/valtools/ckdate.c
111
return (str + 1);
usr/src/cmd/valtools/ckgid.c
100
while (str > arg0 && *--str == '/')
usr/src/cmd/valtools/ckgid.c
101
*str = '\0';
usr/src/cmd/valtools/ckgid.c
102
if ((str = strrchr(arg0, '/')) != NULL)
usr/src/cmd/valtools/ckgid.c
103
return (str + 1);
usr/src/cmd/valtools/ckgid.c
96
char *str;
usr/src/cmd/valtools/ckgid.c
99
str = arg0 + strlen(arg0);
usr/src/cmd/valtools/ckint.c
92
char *str;
usr/src/cmd/valtools/ckint.c
95
str = arg0 + strlen(arg0);
usr/src/cmd/valtools/ckint.c
96
while (str > arg0 && *--str == '/')
usr/src/cmd/valtools/ckint.c
97
*str = '\0';
usr/src/cmd/valtools/ckint.c
98
if ((str = strrchr(arg0, '/')) != NULL)
usr/src/cmd/valtools/ckint.c
99
return (str + 1);
usr/src/cmd/valtools/ckitem.c
114
char *str;
usr/src/cmd/valtools/ckitem.c
117
str = arg0 + strlen(arg0);
usr/src/cmd/valtools/ckitem.c
118
while (str > arg0 && *--str == '/')
usr/src/cmd/valtools/ckitem.c
119
*str = '\0';
usr/src/cmd/valtools/ckitem.c
120
if ((str = strrchr(arg0, '/')) != NULL)
usr/src/cmd/valtools/ckitem.c
121
return (str + 1);
usr/src/cmd/valtools/ckkeywd.c
66
char *str;
usr/src/cmd/valtools/ckkeywd.c
69
str = arg0 + strlen(arg0);
usr/src/cmd/valtools/ckkeywd.c
70
while (str > arg0 && *--str == '/')
usr/src/cmd/valtools/ckkeywd.c
71
*str = '\0';
usr/src/cmd/valtools/ckkeywd.c
72
if ((str = strrchr(arg0, '/')) != NULL)
usr/src/cmd/valtools/ckkeywd.c
73
return (str + 1);
usr/src/cmd/valtools/ckpath.c
118
char *str;
usr/src/cmd/valtools/ckpath.c
121
str = arg0 + strlen(arg0);
usr/src/cmd/valtools/ckpath.c
122
while (str > arg0 && *--str == '/')
usr/src/cmd/valtools/ckpath.c
123
*str = '\0';
usr/src/cmd/valtools/ckpath.c
124
if ((str = strrchr(arg0, '/')) != NULL)
usr/src/cmd/valtools/ckpath.c
125
return (str + 1);
usr/src/cmd/valtools/ckrange.c
100
char *str;
usr/src/cmd/valtools/ckrange.c
103
str = arg0 + strlen(arg0);
usr/src/cmd/valtools/ckrange.c
104
while (str > arg0 && *--str == '/')
usr/src/cmd/valtools/ckrange.c
105
*str = '\0';
usr/src/cmd/valtools/ckrange.c
106
if ((str = strrchr(arg0, '/')) != NULL)
usr/src/cmd/valtools/ckrange.c
107
return (str + 1);
usr/src/cmd/valtools/ckstr.c
101
str = arg0 + strlen(arg0);
usr/src/cmd/valtools/ckstr.c
102
while (str > arg0 && *--str == '/')
usr/src/cmd/valtools/ckstr.c
103
*str = '\0';
usr/src/cmd/valtools/ckstr.c
104
if ((str = strrchr(arg0, '/')) != NULL)
usr/src/cmd/valtools/ckstr.c
105
return (str + 1);
usr/src/cmd/valtools/ckstr.c
98
char *str;
usr/src/cmd/valtools/cktime.c
108
char *str;
usr/src/cmd/valtools/cktime.c
111
str = arg0 + strlen(arg0);
usr/src/cmd/valtools/cktime.c
112
while (str > arg0 && *--str == '/')
usr/src/cmd/valtools/cktime.c
113
*str = '\0';
usr/src/cmd/valtools/cktime.c
114
if ((str = strrchr(arg0, '/')) != NULL)
usr/src/cmd/valtools/cktime.c
115
return (str + 1);
usr/src/cmd/valtools/ckuid.c
102
str = arg0 + strlen(arg0);
usr/src/cmd/valtools/ckuid.c
103
while (str > arg0 && *--str == '/')
usr/src/cmd/valtools/ckuid.c
104
*str = '\0';
usr/src/cmd/valtools/ckuid.c
105
if ((str = strrchr(arg0, '/')) != NULL)
usr/src/cmd/valtools/ckuid.c
106
return (str + 1);
usr/src/cmd/valtools/ckuid.c
99
char *str;
usr/src/cmd/valtools/ckyorn.c
91
char *str;
usr/src/cmd/valtools/ckyorn.c
94
str = arg0 + strlen(arg0);
usr/src/cmd/valtools/ckyorn.c
95
while (str > arg0 && *--str == '/')
usr/src/cmd/valtools/ckyorn.c
96
*str = '\0';
usr/src/cmd/valtools/ckyorn.c
97
if ((str = strrchr(arg0, '/')) != NULL)
usr/src/cmd/valtools/ckyorn.c
98
return (str + 1);
usr/src/cmd/valtools/puttext.c
56
char *str;
usr/src/cmd/valtools/puttext.c
59
str = arg0 + strlen(arg0);
usr/src/cmd/valtools/puttext.c
60
while (str > arg0 && *--str == '/')
usr/src/cmd/valtools/puttext.c
61
*str = '\0';
usr/src/cmd/valtools/puttext.c
62
if ((str = strrchr(arg0, '/')) != NULL)
usr/src/cmd/valtools/puttext.c
63
return (str + 1);
usr/src/cmd/vgrind/retest.c
22
char str[132];
usr/src/cmd/vgrind/retest.c
55
match = str;
usr/src/cmd/vgrind/retest.c
59
if (str[0] == '#')
usr/src/cmd/vgrind/retest.c
62
Start = str;
usr/src/cmd/vgrind/retest.c
64
match = expmatch (str, ireg, matstr);
usr/src/cmd/vgrind/vgrindefs.c
287
tdecode(char *str, char **area)
usr/src/cmd/vgrind/vgrindefs.c
294
while (c = *str++) {
usr/src/cmd/vgrind/vgrindefs.c
300
str = *area;
usr/src/cmd/vgrind/vgrindefs.c
302
return (str);
usr/src/cmd/vgrind/vgrindefs.c
34
static char *tdecode(char *str, char **area);
usr/src/cmd/vi/misc/ctags.c
1279
striccmp(char *str, char *pat)
usr/src/cmd/vi/misc/ctags.c
1284
if (isupper(*str))
usr/src/cmd/vi/misc/ctags.c
1285
c1 = tolower(*str);
usr/src/cmd/vi/misc/ctags.c
1287
c1 = *str;
usr/src/cmd/vi/misc/ctags.c
1291
str++;
usr/src/cmd/vi/port/ex_cmds2.c
112
error(str, i)
usr/src/cmd/vi/port/ex_cmds2.c
113
unsigned char *str;
usr/src/cmd/vi/port/ex_cmds2.c
118
noerror(str, i);
usr/src/cmd/vi/port/ex_cmds2.c
130
noerror(str, i)
usr/src/cmd/vi/port/ex_cmds2.c
131
unsigned char *str;
usr/src/cmd/vi/port/ex_cmds2.c
136
merror(str, i);
usr/src/cmd/vi/port/ex_cmds2.c
142
error1(str);
usr/src/cmd/vi/port/ex_cmds2.c
152
error(str, i)
usr/src/cmd/vi/port/ex_cmds2.c
153
unsigned char *str;
usr/src/cmd/vi/port/ex_cmds2.c
159
merror(str, i);
usr/src/cmd/vi/port/ex_cmds2.c
165
error1(str);
usr/src/cmd/vi/port/ex_cmds2.c
251
error1(unsigned char *str)
usr/src/cmd/vi/port/ex_cmds2.c
267
if (str)
usr/src/cmd/vi/port/ex_cmds2.c
274
if (str && !vcatch)
usr/src/cmd/vi/port/ex_cmds2.c
502
serror(unsigned char *str, unsigned char *cp)
usr/src/cmd/vi/port/ex_cmds2.c
506
smerror(str, cp);
usr/src/cmd/vi/port/ex_cmds2.c
507
error1(str);
usr/src/cmd/vi/port/ex_io.c
361
unsigned char *str;
usr/src/cmd/vi/port/ex_io.c
371
str = G.argv[G.argc0 - 1];
usr/src/cmd/vi/port/ex_io.c
372
if (strlen(str) > FNSIZE - 4)
usr/src/cmd/vi/port/ex_io.c
374
CP(file, str);
usr/src/cmd/vi/port/ex_subr.c
371
mesg(str)
usr/src/cmd/vi/port/ex_subr.c
372
unsigned char *str;
usr/src/cmd/vi/port/ex_subr.c
376
str = (unsigned char *)strcpy(genbuf, str);
usr/src/cmd/vi/port/ex_subr.c
394
return (str);
usr/src/cmd/vi/port/ex_tty.c
354
cost(unsigned char *str)
usr/src/cmd/vi/port/ex_tty.c
357
if (str == NULL || *str=='O') /* OOPS */
usr/src/cmd/vi/port/ex_tty.c
360
tputs((char *)str, lines, countnum);
usr/src/cmd/vi/port/ex_vget.c
367
addto(unsigned char *buf, unsigned char *str)
usr/src/cmd/vi/port/ex_vget.c
372
if (strlen(buf) + strlen(str) + 1 >= VBSIZE) {
usr/src/cmd/vi/port/ex_vget.c
376
(void)strcat(buf, str);
usr/src/cmd/vi/port/ex_voper.c
950
warnf(char *str, char *cp)
usr/src/cmd/vi/port/ex_voper.c
965
lprintf(str, cp);
usr/src/cmd/vi/port/exrecover.c
269
error(str, inf)
usr/src/cmd/vi/port/exrecover.c
270
unsigned char *str;
usr/src/cmd/vi/port/exrecover.c
276
fprintf(stderr, (char *)str, inf);
usr/src/cmd/vi/port/exrecover.c
278
fprintf(stderr, (char *)str);
usr/src/cmd/vrrpadm/vrrpadm.c
730
timeval_since_str(int mill, char *str, size_t len)
usr/src/cmd/vrrpadm/vrrpadm.c
740
(void) snprintf(str, len, "%4dm%2ds", min, sec);
usr/src/cmd/vrrpadm/vrrpadm.c
742
(void) snprintf(str, len, "%4d.%03ds", sec, msec);
usr/src/cmd/vrrpadm/vrrpadm.c
744
return (str);
usr/src/cmd/vtfontcvt/fnv_hash.h
33
fnv_32_str(const char *str, Fnv32_t hval)
usr/src/cmd/vtfontcvt/fnv_hash.h
35
const uint8_t *s = (const uint8_t *)str;
usr/src/cmd/vtfontcvt/fnv_hash.h
58
fnv_64_str(const char *str, Fnv64_t hval)
usr/src/cmd/vtfontcvt/fnv_hash.h
60
const uint8_t *s = (const uint8_t *)str;
usr/src/cmd/xargs/xargs.c
564
store_str(char **buffer, char *str, size_t len)
usr/src/cmd/xargs/xargs.c
566
(void) memcpy(*buffer, str, len);
usr/src/cmd/xstr/xstr.c
310
hashit(char *str, int new)
usr/src/cmd/xstr/xstr.c
315
hp = hp0 = &bucket[lastchr(str) & 0177];
usr/src/cmd/xstr/xstr.c
318
i = istail(str, hp->hstr);
usr/src/cmd/xstr/xstr.c
328
hp->hstr = savestr(str);
usr/src/cmd/xstr/xstr.c
374
found(int new, off_t off, char *str)
usr/src/cmd/xstr/xstr.c
382
prstr(str);
usr/src/cmd/xstr/xstr.c
459
istail(char *str, char *of)
usr/src/cmd/xstr/xstr.c
461
int d = strlen(of) - strlen(str);
usr/src/cmd/xstr/xstr.c
463
if (d < 0 || strcmp(&of[d], str) != 0)
usr/src/cmd/ypcmd/getlist.c
46
newname(str)
usr/src/cmd/ypcmd/getlist.c
47
char *str;
usr/src/cmd/ypcmd/getlist.c
52
if (str == NULL)
usr/src/cmd/ypcmd/getlist.c
54
copy = strdup(str);
usr/src/cmd/ypcmd/mknetid/mknetid.c
338
Atoi(str)
usr/src/cmd/ypcmd/mknetid/mknetid.c
339
char *str;
usr/src/cmd/ypcmd/mknetid/mknetid.c
343
if (!sscanf(str, "%d", &res)) {
usr/src/cmd/ypcmd/mknetid/mknetid.c
381
hash(str, size)
usr/src/cmd/ypcmd/mknetid/mknetid.c
382
unsigned char *str;
usr/src/cmd/ypcmd/mknetid/mknetid.c
390
while (*str) {
usr/src/cmd/ypcmd/mknetid/mknetid.c
392
val ^= (*str++ << 6);
usr/src/cmd/ypcmd/mknetid/mknetid.c
394
val ^= *str++;
usr/src/cmd/ypcmd/mknetid/mknetid.c
414
for (s = printed[val]; s != NULL && strcmp(s->str, name); s = s->next)
usr/src/cmd/ypcmd/mknetid/mknetid.c
420
s->str = malloc((unsigned)strlen(name) + 1);
usr/src/cmd/ypcmd/mknetid/mknetid.c
421
(void) strcpy(s->str, name);
usr/src/cmd/ypcmd/mknetid/mknetid.c
76
char *str;
usr/src/cmd/ypcmd/revnetgroup/revnetgroup.c
161
fputs(groups->str, stdout);
usr/src/cmd/ypcmd/revnetgroup/revnetgroup.c
216
new->groups->str = group;
usr/src/cmd/ypcmd/revnetgroup/revnetgroup.c
230
if (strcmp(group, cur->str) == 0) {
usr/src/cmd/ypcmd/revnetgroup/revnetgroup.c
241
cur->str = group;
usr/src/cmd/ypcmd/revnetgroup/revnetgroup.c
66
char *str;
usr/src/cmd/ypcmd/revnetgroup/table.c
45
tablekey(str)
usr/src/cmd/ypcmd/revnetgroup/table.c
46
register char *str;
usr/src/cmd/ypcmd/revnetgroup/table.c
53
c1 = *str++;
usr/src/cmd/ypcmd/revnetgroup/table.c
54
c2 = *str;
usr/src/cmd/ypcmd/yppasswd/changepasswd.c
57
extern int validstr(char *str, size_t size);
usr/src/cmd/ypcmd/yppasswd/yppasswdd.c
552
validstr(char *str, size_t size)
usr/src/cmd/ypcmd/yppasswd/yppasswdd.c
556
if (str == NULL || strlen(str) > size || strchr(str, ':'))
usr/src/cmd/ypcmd/yppasswd/yppasswdd.c
558
while (c = *str++) {
usr/src/cmd/ypcmd/yppasswd/yppasswdd.c
71
int validstr(char *str, size_t size);
usr/src/cmd/ypcmd/ypwhich.c
377
const char *str;
usr/src/cmd/ypcmd/ypwhich.c
477
str = inet_ntop(af, addr, buf, sizeof (buf));
usr/src/cmd/ypcmd/ypwhich.c
478
if (str == NULL)
usr/src/cmd/ypcmd/ypwhich.c
481
fprintf(stdout, "%s\n", str);
usr/src/cmd/ypcmd/ypwhich.c
483
str = nhs->h_hostservs->h_host;
usr/src/cmd/ypcmd/ypwhich.c
484
if (str == NULL)
usr/src/cmd/ypcmd/ypwhich.c
485
str = "<unknown>";
usr/src/cmd/ypcmd/ypwhich.c
486
fprintf(stdout, "%s\n", str);
usr/src/cmd/zfs/zfs_main.c
2195
char *str;
usr/src/cmd/zfs/zfs_main.c
2197
str = gettext("The following filesystems are "
usr/src/cmd/zfs/zfs_main.c
2201
str = gettext("The following filesystems are "
usr/src/cmd/zfs/zfs_main.c
2210
(void) puts(str);
usr/src/cmd/zfs/zfs_main.c
427
safe_strdup(char *str)
usr/src/cmd/zfs/zfs_main.c
429
char *dupstr = strdup(str);
usr/src/cmd/zfs/zfs_main.c
4998
const char *str = "";
usr/src/cmd/zfs/zfs_main.c
5004
str = gettext("Must also have the permission that is being"
usr/src/cmd/zfs/zfs_main.c
5008
str = gettext("Must also have the 'create' ability and 'mount'"
usr/src/cmd/zfs/zfs_main.c
5012
str = gettext("Must also have the 'mount' ability");
usr/src/cmd/zfs/zfs_main.c
5015
str = gettext("Must also have the 'mount' ability");
usr/src/cmd/zfs/zfs_main.c
5018
str = gettext("Allows lookup of paths within a dataset;"
usr/src/cmd/zfs/zfs_main.c
5023
str = gettext("Allows adding a user hold to a snapshot");
usr/src/cmd/zfs/zfs_main.c
5026
str = gettext("Allows mount/umount of ZFS datasets");
usr/src/cmd/zfs/zfs_main.c
5029
str = gettext("Must also have the 'mount'\n\t\t\t\tand"
usr/src/cmd/zfs/zfs_main.c
5033
str = gettext("Must also have the 'mount' and 'create'"
usr/src/cmd/zfs/zfs_main.c
5037
str = gettext("Allows releasing a user hold which\n\t\t\t\t"
usr/src/cmd/zfs/zfs_main.c
5041
str = gettext("Must also have the 'mount' and 'create'"
usr/src/cmd/zfs/zfs_main.c
5045
str = gettext("");
usr/src/cmd/zfs/zfs_main.c
5048
str = gettext("");
usr/src/cmd/zfs/zfs_main.c
5051
str = gettext("Allows sharing file systems over NFS or SMB"
usr/src/cmd/zfs/zfs_main.c
5055
str = gettext("");
usr/src/cmd/zfs/zfs_main.c
5058
str = gettext("Allows loading or unloading an encryption key");
usr/src/cmd/zfs/zfs_main.c
5061
str = gettext("Allows changing or adding an encryption key");
usr/src/cmd/zfs/zfs_main.c
5070
str = gettext("Allows accessing any groupquota@... property");
usr/src/cmd/zfs/zfs_main.c
5073
str = gettext("Allows reading any groupused@... property");
usr/src/cmd/zfs/zfs_main.c
5076
str = gettext("Allows changing any user property");
usr/src/cmd/zfs/zfs_main.c
5079
str = gettext("Allows accessing any userquota@... property");
usr/src/cmd/zfs/zfs_main.c
5082
str = gettext("Allows reading any userused@... property");
usr/src/cmd/zfs/zfs_main.c
5085
str = gettext("Allows accessing any userobjquota@... property");
usr/src/cmd/zfs/zfs_main.c
5088
str = gettext("Allows accessing any \n\t\t\t\t"
usr/src/cmd/zfs/zfs_main.c
5092
str = gettext("Allows reading any groupobjused@... property");
usr/src/cmd/zfs/zfs_main.c
5095
str = gettext("Allows reading any userobjused@... property");
usr/src/cmd/zfs/zfs_main.c
5098
str = gettext("Allows accessing any projectquota@... property");
usr/src/cmd/zfs/zfs_main.c
5101
str = gettext("Allows accessing any \n\t\t\t\t"
usr/src/cmd/zfs/zfs_main.c
5105
str = gettext("Allows reading any projectused@... property");
usr/src/cmd/zfs/zfs_main.c
5108
str = gettext("Allows accessing any \n\t\t\t\t"
usr/src/cmd/zfs/zfs_main.c
5113
str = "";
usr/src/cmd/zfs/zfs_main.c
5116
return (str);
usr/src/cmd/zic/zic.c
524
strdup(char const *str)
usr/src/cmd/zic/zic.c
526
char *result = malloc(strlen(str) + 1);
usr/src/cmd/zic/zic.c
527
return result ? strcpy(result, str) : result;
usr/src/cmd/zic/zic.c
552
xstrdup(char const *str)
usr/src/cmd/zic/zic.c
554
return memcheck(strdup(str));
usr/src/cmd/zinject/translate.c
333
translate_raw(const char *str, zinject_record_t *record)
usr/src/cmd/zinject/translate.c
339
if (sscanf(str, "%llx:%llx:%x:%llx", (u_longlong_t *)&record->zi_objset,
usr/src/cmd/zinject/translate.c
343
"'objset:object:level:blkid'\n", str);
usr/src/cmd/zinject/zinject.c
635
parse_delay(char *str, uint64_t *delay, uint64_t *nlanes)
usr/src/cmd/zinject/zinject.c
640
if (sscanf(str, "%lu:%lu", &scan_delay, &scan_nlanes) != 2)
usr/src/cmd/zinject/zinject.c
664
parse_frequency(const char *str, uint32_t *percent)
usr/src/cmd/zinject/zinject.c
669
val = strtod(str, &post);
usr/src/cmd/zinject/zinject.c
693
parse_dvas(const char *str, uint32_t *dvas_out)
usr/src/cmd/zinject/zinject.c
695
const char *c = str;
usr/src/cmd/zinject/zinject.c
700
if (strlen(str) > 5 || strlen(str) == 0)
usr/src/cmd/zlogin/zlogin.c
1171
char *str;
usr/src/cmd/zlogin/zlogin.c
1173
if ((str = malloc(sz)) == NULL)
usr/src/cmd/zlogin/zlogin.c
1176
(void) snprintf(str, sz, "%s=%s", name, value);
usr/src/cmd/zlogin/zlogin.c
1177
return (str);
usr/src/cmd/zlogin/zlogin.c
190
zperror(const char *str)
usr/src/cmd/zlogin/zlogin.c
195
(void) fprintf(stderr, "%s: %s: %s\n", pname, str, estr);
usr/src/cmd/zlogin/zlogin.c
197
(void) fprintf(stderr, "%s: %s: errno %d\n", pname, str, errno);
usr/src/cmd/zoneadm/zoneadm.c
372
zperror(const char *str, boolean_t zonecfg_error)
usr/src/cmd/zoneadm/zoneadm.c
374
(void) fprintf(stderr, "%s: %s: %s\n", execname, str,
usr/src/cmd/zoneadm/zoneadm.c
388
zperror2(const char *zone, const char *str)
usr/src/cmd/zoneadm/zoneadm.c
390
(void) fprintf(stderr, "%s: %s: %s: %s\n", execname, zone, str,
usr/src/cmd/zoneadm/zoneadm.c
773
lookup_running_zone(const char *str)
usr/src/cmd/zoneadm/zoneadm.c
781
if (strcmp(str, zents[i].zname) == 0)
usr/src/cmd/zoneadm/zoneadm.c
794
char *str;
usr/src/cmd/zoneadm/zoneadm.c
809
str = gettext("owner readable");
usr/src/cmd/zoneadm/zoneadm.c
812
str = gettext("owner writable");
usr/src/cmd/zoneadm/zoneadm.c
815
str = gettext("owner executable");
usr/src/cmd/zoneadm/zoneadm.c
818
str = gettext("group readable");
usr/src/cmd/zoneadm/zoneadm.c
821
str = gettext("group writable");
usr/src/cmd/zoneadm/zoneadm.c
824
str = gettext("group executable");
usr/src/cmd/zoneadm/zoneadm.c
827
str = gettext("world readable");
usr/src/cmd/zoneadm/zoneadm.c
830
str = gettext("world writable");
usr/src/cmd/zoneadm/zoneadm.c
833
str = gettext("world executable");
usr/src/cmd/zoneadm/zoneadm.c
849
file, str);
usr/src/cmd/zoneadm/zoneadm.c
852
file, str);
usr/src/cmd/zoneadm/zoneadm.h
115
extern void zperror(const char *str, boolean_t zonecfg_error);
usr/src/cmd/zoneadm/zoneadm.h
116
extern void zperror2(const char *zone, const char *str);
usr/src/cmd/zoneadmd/vplat.c
2488
zdlerror(zlog_t *zlogp, dladm_status_t err, const char *dlname, const char *str)
usr/src/cmd/zoneadmd/vplat.c
2493
zerror(zlogp, B_FALSE, "%s '%s': %s", str, dlname, errmsg);
usr/src/cmd/zoneadmd/vplat.c
2559
const char *str = NULL;
usr/src/cmd/zoneadmd/vplat.c
2564
str = inet_ntop(AF_INET, (void *)&sin->sin_addr, straddr, len);
usr/src/cmd/zoneadmd/vplat.c
2568
str = inet_ntop(AF_INET6, (void *)&sin6->sin6_addr, straddr,
usr/src/cmd/zoneadmd/vplat.c
2572
return (str != NULL);
usr/src/cmd/zoneadmd/vplat.c
3627
char *str = NULL;
usr/src/cmd/zoneadmd/vplat.c
3669
if ((str = malloc(total)) == NULL) {
usr/src/cmd/zoneadmd/vplat.c
3681
(void) strlcpy(str + offset, dstab.zone_dataset_name,
usr/src/cmd/zoneadmd/vplat.c
3685
str[offset++] = ',';
usr/src/cmd/zoneadmd/vplat.c
3690
(void) strlcpy(str + offset, implicit_datasets, total - offset);
usr/src/cmd/zoneadmd/vplat.c
3693
*bufp = str;
usr/src/cmd/zoneadmd/vplat.c
3697
if (error != 0 && str != NULL)
usr/src/cmd/zoneadmd/vplat.c
3698
free(str);
usr/src/cmd/zoneadmd/zcons.c
628
char *str, *lstr = NULL;
usr/src/cmd/zoneadmd/zcons.c
638
str = "NOTICE: Zone booting up";
usr/src/cmd/zoneadmd/zcons.c
647
str = "NOTICE: Zone readied";
usr/src/cmd/zoneadmd/zcons.c
651
str = "NOTICE: Zone halted. Disconnecting...";
usr/src/cmd/zoneadmd/zcons.c
653
str = "NOTICE: Zone halted";
usr/src/cmd/zoneadmd/zcons.c
657
str = "NOTICE: Zone rebooting";
usr/src/cmd/zoneadmd/zcons.c
666
str = "NOTICE: Zone is being uninstalled. Disconnecting...";
usr/src/cmd/zoneadmd/zcons.c
670
str = "NOTICE: Zone boot failed. Disconnecting...";
usr/src/cmd/zoneadmd/zcons.c
672
str = "NOTICE: Zone boot failed";
usr/src/cmd/zoneadmd/zcons.c
687
lstr = localize_msg(clilocale, str);
usr/src/cmd/zonecfg/zonecfg.c
5502
bytes_to_units(char *str, char *buf, int bufsize)
usr/src/cmd/zonecfg/zonecfg.c
5509
num = strtoll(str, NULL, 10);
usr/src/cmd/zonecfg/zonecfg.c
609
static void bytes_to_units(char *str, char *buf, int bufsize);
usr/src/cmd/zonecfg/zonecfg_grammar.y
102
complex_piece_func(int cp_type, const char *str, complex_property_ptr_t cp_next)
usr/src/cmd/zonecfg/zonecfg_grammar.y
108
if ((retval->cp_value = strdup(str)) == NULL) {
usr/src/cmd/zonecfg/zonecfg_grammar.y
65
simple_prop_val_func(const char *str)
usr/src/cmd/zonecfg/zonecfg_grammar.y
71
if ((retstr = strdup(str)) == NULL) {
usr/src/cmd/zonestat/zonestat/zonestat.c
626
format_uint64(uint64_t val, char *str, size_t len)
usr/src/cmd/zonestat/zonestat/zonestat.c
632
(void) snprintf(str, len, "-");
usr/src/cmd/zonestat/zonestat/zonestat.c
636
(void) snprintf(str, len, "%llu", val);
usr/src/cmd/zonestat/zonestat/zonestat.c
642
(void) snprintf(str, len, "%llu%1.1lluK", high, low);
usr/src/cmd/zonestat/zonestat/zonestat.c
648
(void) snprintf(str, len, "%lluK", high);
usr/src/cmd/zonestat/zonestat/zonestat.c
654
(void) snprintf(str, len, "%llu.%1.1lluM", high, low);
usr/src/cmd/zonestat/zonestat/zonestat.c
660
(void) snprintf(str, len, "%lluM", high);
usr/src/cmd/zonestat/zonestat/zonestat.c
666
(void) snprintf(str, len, "%llu.%1.1lluG", high, low);
usr/src/cmd/zonestat/zonestat/zonestat.c
672
(void) snprintf(str, len, "%lluG", high);
usr/src/cmd/zonestat/zonestat/zonestat.c
678
(void) snprintf(str, len, "%llu.%1.1lluT", high, low);
usr/src/cmd/zonestat/zonestat/zonestat.c
684
(void) snprintf(str, len, "%lluT", high);
usr/src/cmd/zonestat/zonestat/zonestat.c
690
(void) snprintf(str, len, "%llu.%1.1lluP", high, low);
usr/src/cmd/zonestat/zonestat/zonestat.c
696
(void) snprintf(str, len, "%lluP", high);
usr/src/cmd/zonestat/zonestat/zonestat.c
701
(void) snprintf(str, len, "%llu.%1.1lluE", high, low);
usr/src/cmd/zonestat/zonestat/zonestat.c
706
format_pct(uint_t pct, char *str, size_t len)
usr/src/cmd/zonestat/zonestat/zonestat.c
712
(void) snprintf(str, len, "-");
usr/src/cmd/zonestat/zonestat/zonestat.c
729
(void) snprintf(str, len, "%u.%2.2u%%", high, low);
usr/src/cmd/zonestat/zonestat/zonestat.c
734
(void) snprintf(str, len, "%u.%1.1u%%", high, low);
usr/src/cmd/zonestat/zonestat/zonestat.c
737
(void) snprintf(str, len, "%u%%", pct);
usr/src/cmd/zonestat/zonestat/zonestat.c
756
format_cpu(uint64_t cpu, char *str, size_t len)
usr/src/cmd/zonestat/zonestat/zonestat.c
766
(void) snprintf(str, len, "%llu.%2.2llu", high, low);
usr/src/cmd/zonestat/zonestat/zonestat.c
773
(void) snprintf(str, len, "%llu.%1.1llu", high, low);
usr/src/cmd/zonestat/zonestat/zonestat.c
779
(void) snprintf(str, len, "%llu", cpu);
usr/src/cmd/zonestat/zonestat/zonestat.c
787
(void) snprintf(str, len, "%llu.%1.1lluK", high, low);
usr/src/cmd/zonestat/zonestat/zonestat.c
793
(void) snprintf(str, len, "%lluK", cpu);
usr/src/cmd/zonestat/zonestat/zonestat.c
801
(void) snprintf(str, len, "%llu.%1.1lluM", high, low);
usr/src/cmd/zonestat/zonestat/zonestat.c
804
(void) snprintf(str, len, "error", high, low);
usr/src/cmd/zonestat/zonestat/zonestat.c
814
format_ts(timestruc_t *ts, char *str, size_t len, boolean_t human_readable)
usr/src/cmd/zonestat/zonestat/zonestat.c
836
(void) snprintf(str, len, "%llu:%2.2llu:%2.2llu", hours,
usr/src/cmd/zonestat/zonestat/zonestat.c
839
(void) snprintf(str, len, "%llu-%2.2llu-%2.2llu.%2.2llu", hours,
usr/src/cmd/zpool/zpool_main.c
4563
char *str;
usr/src/cmd/zpool/zpool_main.c
4568
str = gettext("pool");
usr/src/cmd/zpool/zpool_main.c
4570
str = gettext("vdev in this pool");
usr/src/cmd/zpool/zpool_main.c
4572
str = gettext("vdev in another pool");
usr/src/cmd/zpool/zpool_main.c
4574
str = gettext("unknown");
usr/src/cmd/zpool/zpool_main.c
4576
fprintf(stderr, "\t%s (%s)\n", name, str);
usr/src/cmd/zpool/zpool_main.c
5151
print_one_column(zpool_prop_t prop, uint64_t value, const char *str,
usr/src/cmd/zpool/zpool_main.c
5191
(void) strlcpy(propval, str, sizeof (propval));
usr/src/cmd/zpool/zpool_util.c
107
isnumber(char *str)
usr/src/cmd/zpool/zpool_util.c
109
for (; *str; str++)
usr/src/cmd/zpool/zpool_util.c
110
if (!(isdigit(*str) || (*str == '.')))
usr/src/cmd/zpool/zpool_util.h
44
extern int isnumber(char *str);
usr/src/cmd/zstreamdump/zstreamdump.c
159
sprintf_bytes(char *str, uint8_t *buf, uint_t buf_len)
usr/src/cmd/zstreamdump/zstreamdump.c
164
n = sprintf(str, "%02x", buf[i] & 0xff);
usr/src/cmd/zstreamdump/zstreamdump.c
165
str += n;
usr/src/cmd/zstreamdump/zstreamdump.c
168
str[0] = '\0';
usr/src/common/crypto/ecc/ecdecode.c
68
hexString2SECItem(PRArenaPool *arena, SECItem *item, const char *str,
usr/src/common/crypto/ecc/ecdecode.c
73
int tmp = strlen(str);
usr/src/common/crypto/ecc/ecdecode.c
78
while ((tmp > 2) && (str[0] == '0') && (str[1] == '0')) {
usr/src/common/crypto/ecc/ecdecode.c
79
str += 2;
usr/src/common/crypto/ecc/ecdecode.c
87
while (str[i]) {
usr/src/common/crypto/ecc/ecdecode.c
88
if ((str[i] >= '0') && (str[i] <= '9'))
usr/src/common/crypto/ecc/ecdecode.c
89
tmp = str[i] - '0';
usr/src/common/crypto/ecc/ecdecode.c
90
else if ((str[i] >= 'a') && (str[i] <= 'f'))
usr/src/common/crypto/ecc/ecdecode.c
91
tmp = str[i] - 'a' + 10;
usr/src/common/crypto/ecc/ecdecode.c
92
else if ((str[i] >= 'A') && (str[i] <= 'F'))
usr/src/common/crypto/ecc/ecdecode.c
93
tmp = str[i] - 'A' + 10;
usr/src/common/ctf/ctf_error.c
101
return (str ? str : "Unknown error");
usr/src/common/ctf/ctf_error.c
94
const char *str;
usr/src/common/ctf/ctf_error.c
97
str = _ctf_errlist[error - ECTF_BASE];
usr/src/common/ctf/ctf_error.c
99
str = ctf_strerror(error);
usr/src/common/ctf/ctf_hash.c
115
if (str[0] == '\0')
usr/src/common/ctf/ctf_hash.c
120
h = ctf_hash_compute(str, strlen(str)) % hp->h_nbuckets;
usr/src/common/ctf/ctf_hash.c
135
const char *str = ctf_strptr(fp, name);
usr/src/common/ctf/ctf_hash.c
136
ctf_helem_t *hep = ctf_hash_lookup(hp, fp, str, strlen(str));
usr/src/common/ctf/ctf_hash.c
150
const char *str;
usr/src/common/ctf/ctf_hash.c
158
str = ctsp->cts_strs + CTF_NAME_OFFSET(hep->h_name);
usr/src/common/ctf/ctf_hash.c
160
if (strncmp(key, str, len) == 0 && str[len] == '\0')
usr/src/common/ctf/ctf_hash.c
191
const char *str;
usr/src/common/ctf/ctf_hash.c
195
str = ctsp->cts_strs + CTF_NAME_OFFSET(hep->h_name);
usr/src/common/ctf/ctf_hash.c
197
ctf_dprintf(" - %3u/%3u - '%s' type %u\n", h, i, str,
usr/src/common/ctf/ctf_hash.c
99
const char *str = ctsp->cts_strs + CTF_NAME_OFFSET(name);
usr/src/common/devid/devid.c
323
char *str, *msp, *dsp, *dp, ta;
usr/src/common/devid/devid.c
359
if ((str = strchr(devidstr, '@')) == NULL)
usr/src/common/devid/devid.c
361
str++; /* skip '@' */
usr/src/common/devid/devid.c
364
ta = *str++;
usr/src/common/devid/devid.c
372
id_len = strlen(str);
usr/src/common/devid/devid.c
374
id_len = msp - str - 1;
usr/src/common/devid/devid.c
423
for (i = 0, dsp = str, dp = &id->did_id[0];
usr/src/common/elfcap/elfcap.c
564
uint_t cnum, char *str, size_t slen, elfcap_fmt_t fmt)
usr/src/common/elfcap/elfcap.c
577
if (follow++ && ((err = token(&str, &slen,
usr/src/common/elfcap/elfcap.c
584
if ((err = token(&str, &slen, nstr)) != ELFCAP_ERR_NONE)
usr/src/common/elfcap/elfcap.c
595
if (follow && ((err = token(&str, &slen, &format[fmt])) !=
usr/src/common/elfcap/elfcap.c
599
(void) snprintf(str, slen, "0x%x", val);
usr/src/common/elfcap/elfcap.c
608
elfcap_hw1_to_str(elfcap_style_t style, elfcap_mask_t val, char *str,
usr/src/common/elfcap/elfcap.c
614
*str = '\0';
usr/src/common/elfcap/elfcap.c
620
str, len, fmt));
usr/src/common/elfcap/elfcap.c
625
str, len, fmt));
usr/src/common/elfcap/elfcap.c
634
elfcap_hw2_to_str(elfcap_style_t style, elfcap_mask_t val, char *str,
usr/src/common/elfcap/elfcap.c
640
*str = '\0';
usr/src/common/elfcap/elfcap.c
646
str, len, fmt));
usr/src/common/elfcap/elfcap.c
648
return (expand(style, val, NULL, 0, str, len, fmt));
usr/src/common/elfcap/elfcap.c
655
elfcap_hw3_to_str(elfcap_style_t style, elfcap_mask_t val, char *str,
usr/src/common/elfcap/elfcap.c
661
*str = '\0';
usr/src/common/elfcap/elfcap.c
667
str, len, fmt));
usr/src/common/elfcap/elfcap.c
669
return (expand(style, val, NULL, 0, str, len, fmt));
usr/src/common/elfcap/elfcap.c
680
elfcap_sf1_to_str(elfcap_style_t style, elfcap_mask_t val, char *str,
usr/src/common/elfcap/elfcap.c
686
*str = '\0';
usr/src/common/elfcap/elfcap.c
690
return (expand(style, val, &sf1[0], ELFCAP_NUM_SF1, str, len, fmt));
usr/src/common/elfcap/elfcap.c
698
char *str, size_t len, elfcap_fmt_t fmt, ushort_t mach)
usr/src/common/elfcap/elfcap.c
702
return (elfcap_hw1_to_str(style, val, str, len, fmt, mach));
usr/src/common/elfcap/elfcap.c
705
return (elfcap_sf1_to_str(style, val, str, len, fmt, mach));
usr/src/common/elfcap/elfcap.c
708
return (elfcap_hw2_to_str(style, val, str, len, fmt, mach));
usr/src/common/elfcap/elfcap.c
711
return (elfcap_hw3_to_str(style, val, str, len, fmt, mach));
usr/src/common/elfcap/elfcap.c
722
value(elfcap_style_t style, const char *str, const elfcap_desc_t *cdp,
usr/src/common/elfcap/elfcap.c
740
if (strcasecmp(str, nstr->s_str) == 0)
usr/src/common/elfcap/elfcap.c
743
if (strcmp(str, nstr->s_str) == 0)
usr/src/common/elfcap/elfcap.c
752
elfcap_sf1_from_str(elfcap_style_t style, const char *str, ushort_t mach)
usr/src/common/elfcap/elfcap.c
754
return (value(style, str, &sf1[0], ELFCAP_NUM_SF1));
usr/src/common/elfcap/elfcap.c
758
elfcap_hw1_from_str(elfcap_style_t style, const char *str, ushort_t mach)
usr/src/common/elfcap/elfcap.c
761
return (value(style, str, &hw1_386[0], ELFCAP_NUM_HW1_386));
usr/src/common/elfcap/elfcap.c
765
return (value(style, str, hw1_sparc, ELFCAP_NUM_HW1_SPARC));
usr/src/common/elfcap/elfcap.c
770
elfcap_hw2_from_str(elfcap_style_t style, const char *str, ushort_t mach)
usr/src/common/elfcap/elfcap.c
773
return (value(style, str, &hw2_386[0], ELFCAP_NUM_HW2_386));
usr/src/common/elfcap/elfcap.c
778
elfcap_hw3_from_str(elfcap_style_t style, const char *str, ushort_t mach)
usr/src/common/elfcap/elfcap.c
781
return (value(style, str, &hw3_386[0], ELFCAP_NUM_HW3_386));
usr/src/common/elfcap/elfcap.c
792
elfcap_tag_from_str(elfcap_style_t style, uint64_t tag, const char *str,
usr/src/common/elfcap/elfcap.c
797
return (elfcap_hw1_from_str(style, str, mach));
usr/src/common/elfcap/elfcap.c
800
return (elfcap_sf1_from_str(style, str, mach));
usr/src/common/elfcap/elfcap.c
803
return (elfcap_hw2_from_str(style, str, mach));
usr/src/common/elfcap/elfcap.c
806
return (elfcap_hw3_from_str(style, str, mach));
usr/src/common/ficl/emu/loader_emu.c
140
backslash(char *str)
usr/src/common/ficl/emu/loader_emu.c
153
if ((new_str = strdup(str)) == NULL)
usr/src/common/ficl/emu/loader_emu.c
156
while (*str) {
usr/src/common/ficl/emu/loader_emu.c
159
switch (*str) {
usr/src/common/ficl/emu/loader_emu.c
162
str++;
usr/src/common/ficl/emu/loader_emu.c
170
new_str[i++] = *str++;
usr/src/common/ficl/emu/loader_emu.c
175
str++;
usr/src/common/ficl/emu/loader_emu.c
180
str++;
usr/src/common/ficl/emu/loader_emu.c
185
str++;
usr/src/common/ficl/emu/loader_emu.c
190
str++;
usr/src/common/ficl/emu/loader_emu.c
195
str++;
usr/src/common/ficl/emu/loader_emu.c
200
str++;
usr/src/common/ficl/emu/loader_emu.c
205
str++;
usr/src/common/ficl/emu/loader_emu.c
209
str++;
usr/src/common/ficl/emu/loader_emu.c
217
if (*str >= '0' && *str <= '3' &&
usr/src/common/ficl/emu/loader_emu.c
218
*(str + 1) >= '0' && *(str + 1) <= '7' &&
usr/src/common/ficl/emu/loader_emu.c
219
*(str + 2) >= '0' && *(str + 2) <= '7') {
usr/src/common/ficl/emu/loader_emu.c
221
val = (DIGIT(*str) << 6) +
usr/src/common/ficl/emu/loader_emu.c
222
(DIGIT(*(str + 1)) << 3) +
usr/src/common/ficl/emu/loader_emu.c
223
DIGIT(*(str + 2));
usr/src/common/ficl/emu/loader_emu.c
230
str += 3;
usr/src/common/ficl/emu/loader_emu.c
240
if (*str == '0' &&
usr/src/common/ficl/emu/loader_emu.c
241
(*(str + 1) == 'x' || *(str + 1) == 'X') &&
usr/src/common/ficl/emu/loader_emu.c
242
isxdigit(*(str + 2))) {
usr/src/common/ficl/emu/loader_emu.c
243
val = DIGIT(*(str + 2));
usr/src/common/ficl/emu/loader_emu.c
244
if (isxdigit(*(str + 3))) {
usr/src/common/ficl/emu/loader_emu.c
246
DIGIT(*(str + 3));
usr/src/common/ficl/emu/loader_emu.c
247
str += 4;
usr/src/common/ficl/emu/loader_emu.c
249
str += 3;
usr/src/common/ficl/emu/loader_emu.c
258
new_str[i++] = *str++;
usr/src/common/ficl/emu/loader_emu.c
262
if (*str == '\\') {
usr/src/common/ficl/emu/loader_emu.c
264
str++;
usr/src/common/ficl/emu/loader_emu.c
266
new_str[i++] = *str++;
usr/src/common/ficl/emu/loader_emu.c
334
parse(int *argc, char ***argv, char *str)
usr/src/common/ficl/emu/loader_emu.c
344
if (!str || (p = copy = backslash(str)) == NULL)
usr/src/common/ficl/ficl.h
1164
#define ficlVmUpdateTib(vm, str) \
usr/src/common/ficl/ficl.h
1165
((vm)->tib.index = (str) - (vm)->tib.text)
usr/src/common/fs/bootfsops.c
120
bbootfs_mountroot(char *str __unused)
usr/src/common/fs/bootrd_cpio.c
103
get_uint64(const uint8_t *str, size_t len, uint64_t *out)
usr/src/common/fs/bootrd_cpio.c
105
*out = __get_uint64(str, len, NBBY * sizeof (*out));
usr/src/common/fs/bootrd_cpio.c
110
get_int64(const uint8_t *str, size_t len, int64_t *out)
usr/src/common/fs/bootrd_cpio.c
114
tmp = __get_uint64(str, len, NBBY * sizeof (*out) - 1);
usr/src/common/fs/bootrd_cpio.c
122
get_uint32(const uint8_t *str, size_t len, uint32_t *out)
usr/src/common/fs/bootrd_cpio.c
126
tmp = __get_uint64(str, len, NBBY * sizeof (*out));
usr/src/common/fs/bootrd_cpio.c
134
get_int32(const uint8_t *str, size_t len, int32_t *out)
usr/src/common/fs/bootrd_cpio.c
138
tmp = __get_uint64(str, len, NBBY * sizeof (*out) - 1);
usr/src/common/fs/bootrd_cpio.c
334
bcpio_mountroot(char *str __unused)
usr/src/common/fs/bootrd_cpio.c
82
__get_uint64(const uint8_t *str, size_t len, const size_t output_size)
usr/src/common/fs/bootrd_cpio.c
90
for (v = 0; len > 0; len--, str++) {
usr/src/common/fs/bootrd_cpio.c
91
const uint8_t c = *str;
usr/src/common/fs/hsfs.c
120
static int bhsfs_mountroot(char *str);
usr/src/common/fs/hsfs.c
122
static int bhsfs_open(char *str, int flags);
usr/src/common/fs/hsfs.c
397
bhsfs_mountroot(char *str __unused)
usr/src/common/fs/hsfs.c
470
bhsfs_open(char *str, int flags __unused)
usr/src/common/fs/hsfs.c
478
kobj_printf("open %s\n", str);
usr/src/common/fs/hsfs.c
486
filep->fi_path = (char *)bkmem_alloc(strlen(str) + 1);
usr/src/common/fs/hsfs.c
487
(void) strcpy(filep->fi_path, str);
usr/src/common/fs/hsfs.c
493
ino = find(str, filep);
usr/src/common/fs/pcfs.c
114
bpcfs_mountroot(char *str)
usr/src/common/fs/pcfs.c
205
bpcfs_open(char *str, int flags)
usr/src/common/fs/pcfs.c
212
dprintf("open %s\n", str);
usr/src/common/fs/pcfs.c
220
filep->fi_path = (char *)bkmem_alloc(strlen(str) + 1);
usr/src/common/fs/pcfs.c
221
(void) strcpy(filep->fi_path, str);
usr/src/common/fs/pcfs.c
223
if (lookuppn(str, &d)) {
usr/src/common/fs/pcfs.c
231
dprintf("file %s size = %ld\n", str, d.d_size);
usr/src/common/fs/pcfs.c
96
static int bpcfs_mountroot(char *str);
usr/src/common/fs/pcfs.c
98
static int bpcfs_open(char *str, int flags);
usr/src/common/fs/ufsops.c
551
bufs_mountroot(char *str)
usr/src/common/fs/ufsops.c
559
ufs_devp->di_desc = (char *)bkmem_alloc(strlen(str) + 1);
usr/src/common/fs/ufsops.c
560
(void) strcpy(ufs_devp->di_desc, str);
usr/src/common/fsreparse/fs_reparse.c
38
#define strfree(str) free((str))
usr/src/common/hexdump/hexdump.c
272
const char *str = ilstr_cstr(&hdp->hdp_buf);
usr/src/common/hexdump/hexdump.c
282
str += hdp->hdp_addrwidth;
usr/src/common/hexdump/hexdump.c
286
return (strcmp(str, pstr) == 0);
usr/src/common/hexdump/hexdump.c
459
hexdump_file_cb(void *arg, uint64_t addr __unused, const char *str,
usr/src/common/hexdump/hexdump.c
464
if (fprintf(fp, "%s\n", str) < 0)
usr/src/common/iscsi/utils.c
100
prt_bitmap(int bitmap, char *str, char *buf, int size)
usr/src/common/iscsi/utils.c
111
if (size < strlen(str))
usr/src/common/iscsi/utils.c
114
for (p = str; size--; p++) {
usr/src/common/mc/mc-amd/mcamd_err.c
49
const char *str = NULL;
usr/src/common/mc/mc-amd/mcamd_err.c
52
str = _mcamd_errlist[err - EMCAMD_BASE];
usr/src/common/mc/mc-amd/mcamd_err.c
54
return (str == NULL ? "Unknown error" : str);
usr/src/common/mpi/mpi.c
2497
mp_err mp_read_raw(mp_int *mp, char *str, int len)
usr/src/common/mpi/mpi.c
2501
unsigned char *ustr = (unsigned char *)str;
usr/src/common/mpi/mpi.c
2503
ARGCHK(mp != NULL && str != NULL && len > 0, MP_BADARG);
usr/src/common/mpi/mpi.c
2541
mp_err mp_toraw(mp_int *mp, char *str)
usr/src/common/mpi/mpi.c
2545
ARGCHK(mp != NULL && str != NULL, MP_BADARG);
usr/src/common/mpi/mpi.c
2547
str[0] = (char)SIGN(mp);
usr/src/common/mpi/mpi.c
2555
str[pos++] = (char)(d >> (jx * CHAR_BIT));
usr/src/common/mpi/mpi.c
2576
mp_err mp_read_radix(mp_int *mp, const char *str, int radix)
usr/src/common/mpi/mpi.c
2582
ARGCHK(mp != NULL && str != NULL && radix >= 2 && radix <= MAX_RADIX,
usr/src/common/mpi/mpi.c
2588
while(str[ix] &&
usr/src/common/mpi/mpi.c
2589
(s_mp_tovalue(str[ix], radix) < 0) &&
usr/src/common/mpi/mpi.c
2590
str[ix] != '-' &&
usr/src/common/mpi/mpi.c
2591
str[ix] != '+') {
usr/src/common/mpi/mpi.c
2595
if(str[ix] == '-') {
usr/src/common/mpi/mpi.c
2598
} else if(str[ix] == '+') {
usr/src/common/mpi/mpi.c
2603
while((val = s_mp_tovalue(str[ix], radix)) >= 0) {
usr/src/common/mpi/mpi.c
2620
mp_err mp_read_variable_radix(mp_int *a, const char * str, int default_radix)
usr/src/common/mpi/mpi.c
2628
while ((cx = *str) != 0 &&
usr/src/common/mpi/mpi.c
2632
++str;
usr/src/common/mpi/mpi.c
2637
++str;
usr/src/common/mpi/mpi.c
2640
++str;
usr/src/common/mpi/mpi.c
2643
if (str[0] == '0') {
usr/src/common/mpi/mpi.c
2644
if ((str[1] | 0x20) == 'x') {
usr/src/common/mpi/mpi.c
2646
str += 2;
usr/src/common/mpi/mpi.c
2649
str++;
usr/src/common/mpi/mpi.c
2652
res = mp_read_radix(a, str, radix);
usr/src/common/mpi/mpi.c
2680
mp_err mp_toradix(mp_int *mp, char *str, int radix)
usr/src/common/mpi/mpi.c
2684
ARGCHK(mp != NULL && str != NULL, MP_BADARG);
usr/src/common/mpi/mpi.c
2688
str[0] = '0';
usr/src/common/mpi/mpi.c
2689
str[1] = '\0';
usr/src/common/mpi/mpi.c
2713
str[pos++] = ch;
usr/src/common/mpi/mpi.c
2718
str[pos++] = '-';
usr/src/common/mpi/mpi.c
2721
str[pos--] = '\0';
usr/src/common/mpi/mpi.c
2726
char tmp = str[ix];
usr/src/common/mpi/mpi.c
2728
str[ix] = str[pos];
usr/src/common/mpi/mpi.c
2729
str[pos] = tmp;
usr/src/common/mpi/mpi.c
4686
mp_read_unsigned_octets(mp_int *mp, const unsigned char *str, mp_size len)
usr/src/common/mpi/mpi.c
4692
ARGCHK(mp != NULL && str != NULL && len > 0, MP_BADARG);
usr/src/common/mpi/mpi.c
4699
d = (d << 8) | *str++;
usr/src/common/mpi/mpi.c
4707
d = (d << 8) | *str++;
usr/src/common/mpi/mpi.c
4760
mp_to_unsigned_octets(const mp_int *mp, unsigned char *str, mp_size maxlen)
usr/src/common/mpi/mpi.c
4765
ARGCHK(mp != NULL && str != NULL && !SIGN(mp), MP_BADARG);
usr/src/common/mpi/mpi.c
4780
str[pos++] = x;
usr/src/common/mpi/mpi.c
4784
str[pos++] = 0;
usr/src/common/mpi/mpi.c
4792
mp_to_signed_octets(const mp_int *mp, unsigned char *str, mp_size maxlen)
usr/src/common/mpi/mpi.c
4797
ARGCHK(mp != NULL && str != NULL && !SIGN(mp), MP_BADARG);
usr/src/common/mpi/mpi.c
4817
str[pos++] = 0;
usr/src/common/mpi/mpi.c
4820
str[pos++] = x;
usr/src/common/mpi/mpi.c
4824
str[pos++] = 0;
usr/src/common/mpi/mpi.c
4832
mp_to_fixlen_octets(const mp_int *mp, unsigned char *str, mp_size length)
usr/src/common/mpi/mpi.c
4837
ARGCHK(mp != NULL && str != NULL && !SIGN(mp), MP_BADARG);
usr/src/common/mpi/mpi.c
4844
*str++ = 0;
usr/src/common/mpi/mpi.c
4857
str[pos++] = x;
usr/src/common/mpi/mpi.c
4861
str[pos++] = 0;
usr/src/common/mpi/mpi.h
332
mp_err mp_read_raw(mp_int *mp, char *str, int len);
usr/src/common/mpi/mpi.h
334
mp_err mp_toraw(mp_int *mp, char *str);
usr/src/common/mpi/mpi.h
335
mp_err mp_read_radix(mp_int *mp, const char *str, int radix);
usr/src/common/mpi/mpi.h
336
mp_err mp_read_variable_radix(mp_int *a, const char * str, int default_radix);
usr/src/common/mpi/mpi.h
338
mp_err mp_toradix(mp_int *mp, char *str, int radix);
usr/src/common/mpi/mpi.h
350
mp_err mp_read_unsigned_octets(mp_int *mp, const unsigned char *str, mp_size len);
usr/src/common/mpi/mpi.h
352
mp_err mp_to_unsigned_octets(const mp_int *mp, unsigned char *str, mp_size maxlen);
usr/src/common/mpi/mpi.h
353
mp_err mp_to_signed_octets(const mp_int *mp, unsigned char *str, mp_size maxlen);
usr/src/common/mpi/mpi.h
354
mp_err mp_to_fixlen_octets(const mp_int *mp, unsigned char *str, mp_size len);
usr/src/common/net/patricia/radix.c
63
panic(const char *str)
usr/src/common/net/patricia/radix.c
65
fprintf(stderr, "Panic - %s\n", str);
usr/src/common/secflags/secflags.c
183
secflag_by_name(const char *str, secflag_t *ret)
usr/src/common/secflags/secflags.c
188
if (strcasecmp(str, fd->name) == 0) {
usr/src/common/smbios/smb_error.c
59
const char *str;
usr/src/common/smbios/smb_error.c
62
str = _smb_errlist[error - ESMB_BASE];
usr/src/common/smbios/smb_error.c
64
str = smb_strerror(error);
usr/src/common/smbios/smb_error.c
66
return (str != NULL ? str : "Unknown error");
usr/src/common/smbios/smb_info.c
2058
smbios_info_strprop(smbios_hdl_t *shp, id_t id, smbios_strprop_t *str)
usr/src/common/smbios/smb_info.c
2079
bzero(str, sizeof (*str));
usr/src/common/smbios/smb_info.c
2082
str->smbsp_parent = prop.smbstrp_phdl;
usr/src/common/smbios/smb_info.c
2083
str->smbsp_prop_id = prop.smbstrp_prop_id;
usr/src/common/smbios/smb_info.c
2084
str->smbsp_prop_val = smb_strptr(stp, prop.smbstrp_prop_val);
usr/src/common/smbios/smb_info.c
610
const char *str;
usr/src/common/smbios/smb_info.c
612
str = smb_strptr(stp, b.smbcb_sku);
usr/src/common/smbios/smb_info.c
613
(void) strlcpy(p35->smbc_sku, str, sizeof (p35->smbc_sku));
usr/src/common/smbsrv/smb_match.c
140
smb_match_private(const char *pat, const char *str, struct match_priv *priv)
usr/src/common/smbsrv/smb_match.c
160
#define ADVANCE(str) \
usr/src/common/smbsrv/smb_match.c
161
if ((nbstr = smb_mbtowc(NULL, str, MTS_MB_CHAR_MAX)) < 1) \
usr/src/common/smbsrv/smb_match.c
164
str += nbstr /* no ; */
usr/src/common/smbsrv/smb_match.c
175
if (*str != '\0') {
usr/src/common/smbsrv/smb_match.c
176
ADVANCE(str);
usr/src/common/smbsrv/smb_match.c
187
while (*str != '\0') {
usr/src/common/smbsrv/smb_match.c
189
rc = smb_match_private(pat, str, priv);
usr/src/common/smbsrv/smb_match.c
193
ADVANCE(str);
usr/src/common/smbsrv/smb_match.c
199
if ((limit = strrchr(str, '.')) != NULL)
usr/src/common/smbsrv/smb_match.c
201
while (*str != '\0' && str != limit) {
usr/src/common/smbsrv/smb_match.c
203
rc = smb_match_private(pat, str, priv);
usr/src/common/smbsrv/smb_match.c
207
ADVANCE(str);
usr/src/common/smbsrv/smb_match.c
213
if (*str == '.') {
usr/src/common/smbsrv/smb_match.c
214
if (str[1] == '\0') {
usr/src/common/smbsrv/smb_match.c
216
str++; /* ADVANCE over '.' */
usr/src/common/smbsrv/smb_match.c
222
if (*str != '\0') {
usr/src/common/smbsrv/smb_match.c
224
ADVANCE(str);
usr/src/common/smbsrv/smb_match.c
231
if (*str == '.') {
usr/src/common/smbsrv/smb_match.c
232
str++; /* ADVANCE over '.' */
usr/src/common/smbsrv/smb_match.c
235
if (*str == '\0') {
usr/src/common/smbsrv/smb_match.c
243
nbstr = smb_mbtowc(&wcstr, str, MTS_MB_CHAR_MAX);
usr/src/common/smbsrv/smb_match.c
249
str += nbstr;
usr/src/common/smbsrv/smb_match.c
257
str += nbstr;
usr/src/common/smbsrv/smb_match.c
264
return (*str == '\0');
usr/src/common/tsol/stol.c
220
str_to_label(const char *str, m_label_t **l, const m_label_type_t t, uint_t f,
usr/src/common/tsol/stol.c
223
char *s = strdup(str);
usr/src/common/util/strtol.c
60
ddi_strtol(const char *str, char **nptr, int base, long *result)
usr/src/common/util/strtol.c
63
strtol(const char *str, char **nptr, int base)
usr/src/common/util/strtol.c
73
const unsigned char *ustr = (const unsigned char *)str;
usr/src/common/util/strtoll.c
58
ddi_strtoll(const char *str, char **nptr, int base, longlong_t *result)
usr/src/common/util/strtoll.c
61
strtoll(const char *str, char **nptr, int base)
usr/src/common/util/strtoll.c
71
const unsigned char *ustr = (const unsigned char *)str;
usr/src/common/util/strtoul.c
56
ddi_strtoul(const char *str, char **nptr, int base, unsigned long *result)
usr/src/common/util/strtoul.c
59
strtoul(const char *str, char **nptr, int base)
usr/src/common/util/strtoul.c
68
const unsigned char *ustr = (const unsigned char *)str;
usr/src/common/util/strtoull.c
58
ddi_strtoull(const char *str, char **nptr, int base, u_longlong_t *result)
usr/src/common/util/strtoull.c
61
strtoull(const char *str, char **nptr, int base)
usr/src/common/util/strtoull.c
70
const unsigned char *ustr = (const unsigned char *)str;
usr/src/common/zfs/zfs_prop.c
750
zfs_prop_valid_keylocation(const char *str, boolean_t encrypted)
usr/src/common/zfs/zfs_prop.c
752
if (strcmp("none", str) == 0)
usr/src/common/zfs/zfs_prop.c
754
else if (strcmp("prompt", str) == 0)
usr/src/common/zfs/zfs_prop.c
756
else if (strlen(str) > 8 && strncmp("file:///", str, 8) == 0)
usr/src/compat/bhyve/sys/nv.h
76
char *str;
usr/src/compat/bhyve/sys/nv.h
78
return (nvlist_lookup_string((nvlist_t *)nvl, name, &str) == 0);
usr/src/compat/bhyve/sys/nv.h
84
char *str;
usr/src/compat/bhyve/sys/nv.h
86
if (nvlist_lookup_string((nvlist_t *)nvl, name, &str) == 0)
usr/src/compat/bhyve/sys/nv.h
87
return (str);
usr/src/compat/bhyve/uuid.h
28
uuid_from_string(const char *str, uuid_t *uuidp, uint32_t *status)
usr/src/compat/bhyve/uuid.h
30
if (uuid_parse((char *)str, *uuidp) == 0) {
usr/src/grub/grub-0.97/lib/getopt.c
218
my_index (str, chr)
usr/src/grub/grub-0.97/lib/getopt.c
219
const char *str;
usr/src/grub/grub-0.97/lib/getopt.c
222
while (*str)
usr/src/grub/grub-0.97/lib/getopt.c
224
if (*str == chr)
usr/src/grub/grub-0.97/lib/getopt.c
225
return (char *) str;
usr/src/grub/grub-0.97/lib/getopt.c
226
str++;
usr/src/grub/grub-0.97/netboot/davicom.c
154
static void whereami(const char *str);
usr/src/grub/grub-0.97/netboot/davicom.c
177
static inline void whereami(const char *str)
usr/src/grub/grub-0.97/netboot/davicom.c
179
printf("%s\n", str);
usr/src/grub/grub-0.97/netboot/eepro100.c
356
static inline void whereami (const char *str)
usr/src/grub/grub-0.97/netboot/eepro100.c
358
printf ("%s\n", str);
usr/src/grub/grub-0.97/netboot/tulip.c
500
static void whereami(const char *str);
usr/src/grub/grub-0.97/netboot/tulip.c
512
static void whereami (const char *str)
usr/src/grub/grub-0.97/netboot/tulip.c
514
printf("%s: %s\n", tp->nic_name, str);
usr/src/grub/grub-0.97/stage2/boot.c
120
str = "elf";
usr/src/grub/grub-0.97/stage2/boot.c
170
str = "kludge";
usr/src/grub/grub-0.97/stage2/boot.c
217
str = "a.out";
usr/src/grub/grub-0.97/stage2/boot.c
47
char *str = 0, *str2 = 0;
usr/src/grub/grub-0.97/stage2/boot.c
490
printf (" [%s-%s", str2, str);
usr/src/grub/grub-0.97/stage2/boot.c
492
str = "";
usr/src/grub/grub-0.97/stage2/boot.c
497
str = "-and-data";
usr/src/grub/grub-0.97/stage2/boot.c
499
printf (", loadaddr=0x%x, text%s=0x%x", cur_addr, str, text_len);
usr/src/grub/grub-0.97/stage2/boot.c
889
char *str;
usr/src/grub/grub-0.97/stage2/boot.c
900
str = arg;
usr/src/grub/grub-0.97/stage2/boot.c
901
while (*str)
usr/src/grub/grub-0.97/stage2/boot.c
903
if (*str == '-')
usr/src/grub/grub-0.97/stage2/boot.c
905
while (*str && *str != ' ')
usr/src/grub/grub-0.97/stage2/boot.c
907
if (*str == 'C')
usr/src/grub/grub-0.97/stage2/boot.c
909
if (*str == 'a')
usr/src/grub/grub-0.97/stage2/boot.c
911
if (*str == 'b')
usr/src/grub/grub-0.97/stage2/boot.c
913
if (*str == 'c')
usr/src/grub/grub-0.97/stage2/boot.c
915
if (*str == 'd')
usr/src/grub/grub-0.97/stage2/boot.c
917
if (*str == 'D')
usr/src/grub/grub-0.97/stage2/boot.c
919
if (*str == 'g')
usr/src/grub/grub-0.97/stage2/boot.c
921
if (*str == 'h')
usr/src/grub/grub-0.97/stage2/boot.c
923
if (*str == 'm')
usr/src/grub/grub-0.97/stage2/boot.c
925
if (*str == 'r')
usr/src/grub/grub-0.97/stage2/boot.c
927
if (*str == 's')
usr/src/grub/grub-0.97/stage2/boot.c
929
if (*str == 'v')
usr/src/grub/grub-0.97/stage2/boot.c
931
str++;
usr/src/grub/grub-0.97/stage2/boot.c
935
str++;
usr/src/grub/grub-0.97/stage2/builtins.c
1300
char *str;
usr/src/grub/grub-0.97/stage2/builtins.c
1303
str = "Usable RAM";
usr/src/grub/grub-0.97/stage2/builtins.c
1305
str = "Reserved";
usr/src/grub/grub-0.97/stage2/builtins.c
1308
str,
usr/src/grub/grub-0.97/stage2/builtins.c
634
auto int color_number (char *str);
usr/src/grub/grub-0.97/stage2/builtins.c
637
auto int color_number (char *str)
usr/src/grub/grub-0.97/stage2/builtins.c
644
for (ptr = str; *ptr && *ptr != '/'; ptr++)
usr/src/grub/grub-0.97/stage2/builtins.c
656
if (substring ("blink-", str) <= 0)
usr/src/grub/grub-0.97/stage2/builtins.c
659
str += 6;
usr/src/grub/grub-0.97/stage2/builtins.c
664
if (grub_strcmp (color_list[i], str) == 0)
usr/src/grub/grub-0.97/stage2/builtins.c
673
str = ptr;
usr/src/grub/grub-0.97/stage2/builtins.c
674
nul_terminate (str);
usr/src/grub/grub-0.97/stage2/builtins.c
678
if (grub_strcmp (color_list[i], str) == 0)
usr/src/grub/grub-0.97/stage2/char_io.c
1317
grub_strlen (const char *str)
usr/src/grub/grub-0.97/stage2/char_io.c
1321
while (*str++)
usr/src/grub/grub-0.97/stage2/char_io.c
1331
nul_terminate (char *str)
usr/src/grub/grub-0.97/stage2/char_io.c
1335
while (*str && ! grub_isspace (*str))
usr/src/grub/grub-0.97/stage2/char_io.c
1336
str++;
usr/src/grub/grub-0.97/stage2/char_io.c
1338
ch = *str;
usr/src/grub/grub-0.97/stage2/char_io.c
1339
*str = 0;
usr/src/grub/grub-0.97/stage2/char_io.c
1344
grub_strchr (char *str, char c)
usr/src/grub/grub-0.97/stage2/char_io.c
1346
for (; *str && (*str != c); str++);
usr/src/grub/grub-0.97/stage2/char_io.c
1348
return (*str ? str : NULL);
usr/src/grub/grub-0.97/stage2/char_io.c
193
grub_putstr (const char *str)
usr/src/grub/grub-0.97/stage2/char_io.c
195
while (*str)
usr/src/grub/grub-0.97/stage2/char_io.c
196
grub_putchar (*str++);
usr/src/grub/grub-0.97/stage2/char_io.c
202
char c, str[21];
usr/src/grub/grub-0.97/stage2/char_io.c
234
*convert_to_ascii (str, c, val) = 0;
usr/src/grub/grub-0.97/stage2/char_io.c
235
grub_putstr (str);
usr/src/grub/grub-0.97/stage2/char_io.c
350
auto void cl_insert (const char *str);
usr/src/grub/grub-0.97/stage2/char_io.c
525
void cl_insert (const char *str)
usr/src/grub/grub-0.97/stage2/char_io.c
527
int l = grub_strlen (str);
usr/src/grub/grub-0.97/stage2/char_io.c
532
grub_memmove (buf + lpos, str, l + 1);
usr/src/grub/grub-0.97/stage2/char_io.c
536
grub_memmove (buf + lpos, str, l);
usr/src/grub/grub-0.97/stage2/char_io.c
768
char str[2];
usr/src/grub/grub-0.97/stage2/char_io.c
770
str[0] = c;
usr/src/grub/grub-0.97/stage2/char_io.c
771
str[1] = 0;
usr/src/grub/grub-0.97/stage2/char_io.c
772
cl_insert (str);
usr/src/grub/grub-0.97/stage2/char_io.c
927
char c, *ptr, str[16];
usr/src/grub/grub-0.97/stage2/char_io.c
958
*convert_to_ascii (str, c, val) = 0;
usr/src/grub/grub-0.97/stage2/char_io.c
960
ptr = str;
usr/src/grub/grub-0.97/stage2/disk_io.c
1038
char str[16];
usr/src/grub/grub-0.97/stage2/disk_io.c
1042
grub_sprintf (str, "%c)", unix_part + 'a');
usr/src/grub/grub-0.97/stage2/disk_io.c
1044
grub_sprintf (str, "%d,%c)",
usr/src/grub/grub-0.97/stage2/disk_io.c
1046
print_a_completion (str);
usr/src/grub/grub-0.97/stage2/disk_io.c
1051
char str[8];
usr/src/grub/grub-0.97/stage2/disk_io.c
1053
grub_sprintf (str, "%d)", pc_slice);
usr/src/grub/grub-0.97/stage2/disk_io.c
1054
print_a_completion (str);
usr/src/grub/grub-0.97/stage2/fsys_zfs.c
905
is_top_dataset_file(char *str)
usr/src/grub/grub-0.97/stage2/fsys_zfs.c
909
if ((tptr = grub_strstr(str, "menu.lst")) &&
usr/src/grub/grub-0.97/stage2/fsys_zfs.c
914
if (grub_strncmp(str, BOOTSIGN_DIR"/",
usr/src/grub/grub-0.97/stage2/fsys_zfs.c
918
if (grub_strcmp(str, BOOTSIGN_BACKUP) == 0)
usr/src/grub/grub-0.97/stage2/shared.h
1000
int nul_terminate (char *str);
usr/src/grub/grub-0.97/stage2/shared.h
1004
void grub_putstr (const char *str);
usr/src/grub/grub-0.97/stage2/shared.h
966
int grub_strlen (const char *str);
usr/src/grub/grub-0.97/stage2/shared.h
968
char *grub_strchr (char *str, char c);
usr/src/grub/grub-0.97/stage2/smp-imps.c
401
char str[8];
usr/src/grub/grub-0.97/stage2/smp-imps.c
403
memmove (str, bus->bus_type, 6);
usr/src/grub/grub-0.97/stage2/smp-imps.c
404
str[6] = 0;
usr/src/grub/grub-0.97/stage2/smp-imps.c
405
KERNEL_PRINT ((" Bus id %d is %s\n", bus->id, str));
usr/src/grub/grub-0.97/stage2/tparm.c
134
char *str;
usr/src/grub/grub-0.97/stage2/tparm.c
217
stack[stack_ptr].data.str = x;
usr/src/grub/grub-0.97/stage2/tparm.c
229
if (!stack[stack_ptr].num_type && stack[stack_ptr].data.str != 0)
usr/src/grub/grub-0.97/stage2/tparm.c
230
result = stack[stack_ptr].data.str;
usr/src/head/euc.h
42
extern int eucscol(const unsigned char *str);
usr/src/head/lber.h
181
int LDAP_CALL ber_put_ostring(BerElement *ber, char *str,
usr/src/head/lber.h
183
int LDAP_CALL ber_put_string(BerElement *ber, char *str,
usr/src/head/lber.h
185
int LDAP_CALL ber_put_bitstring(BerElement *ber, char *str,
usr/src/head/macros.h
51
#define length(str) strlen(str)
usr/src/head/macros.h
52
#define size(str) (strlen(str) + 1)
usr/src/head/nss_dbdefs.h
657
#define NSS_XbyY_INIT(str, res, bufp, len, func) (\
usr/src/head/nss_dbdefs.h
658
(str)->buf.result = (res), \
usr/src/head/nss_dbdefs.h
659
(str)->buf.buffer = (bufp), \
usr/src/head/nss_dbdefs.h
660
(str)->buf.buflen = (len), \
usr/src/head/nss_dbdefs.h
661
(str)->stayopen = 0, \
usr/src/head/nss_dbdefs.h
662
(str)->str2ent = (func), \
usr/src/head/nss_dbdefs.h
663
(str)->key2str = NULL, \
usr/src/head/nss_dbdefs.h
664
(str)->returnval = 0, \
usr/src/head/nss_dbdefs.h
665
(str)->returnlen = 0, \
usr/src/head/nss_dbdefs.h
666
(str)->h_errno = 0, \
usr/src/head/nss_dbdefs.h
667
(str)->erange = 0)
usr/src/head/nss_dbdefs.h
669
#define NSS_XbyY_INIT_EXT(str, res, bufp, len, func, kfunc) (\
usr/src/head/nss_dbdefs.h
670
(str)->buf.result = (res), \
usr/src/head/nss_dbdefs.h
671
(str)->buf.buffer = (bufp), \
usr/src/head/nss_dbdefs.h
672
(str)->buf.buflen = (len), \
usr/src/head/nss_dbdefs.h
673
(str)->stayopen = 0, \
usr/src/head/nss_dbdefs.h
674
(str)->str2ent = (func), \
usr/src/head/nss_dbdefs.h
675
(str)->key2str = (kfunc), \
usr/src/head/nss_dbdefs.h
676
(str)->returnval = 0, \
usr/src/head/nss_dbdefs.h
677
(str)->returnlen = 0, \
usr/src/head/nss_dbdefs.h
678
(str)->h_errno = 0, \
usr/src/head/nss_dbdefs.h
679
(str)->erange = 0)
usr/src/head/nss_dbdefs.h
681
#define NSS_XbyY_FINI(str) _nss_XbyY_fini(str)
usr/src/head/regexp.h
559
getrnge(const char *str)
usr/src/head/regexp.h
561
low = *str++ & 0377;
usr/src/head/regexp.h
562
size = ((*str & 0377) == 255)? 20000: (*str &0377) - low;
usr/src/head/regexp.h
73
static void getrnge(const char *str);
usr/src/lib/abi/apptrace/common/abienv.c
188
abibasename(const char *str)
usr/src/lib/abi/apptrace/common/abienv.c
192
if ((p = strrchr(str, '/')) != NULL)
usr/src/lib/abi/apptrace/common/abienv.c
195
return ((char *)str);
usr/src/lib/abi/apptrace/common/abienv.c
199
check_list(Liblist *list, char const *str)
usr/src/lib/abi/apptrace/common/abienv.c
207
if ((basename2 = strdup(abibasename(str))) == NULL)
usr/src/lib/abi/apptrace/common/apptrace.c
206
char *str;
usr/src/lib/abi/apptrace/common/apptrace.c
224
char *str = "LD_AUDIT=";
usr/src/lib/abi/apptrace/common/apptrace.c
230
(void) putenv(str);
usr/src/lib/abi/apptrace/common/apptrace.c
234
if ((str = checkenv("APPTRACE_OUTPUT")) != NULL) {
usr/src/lib/abi/apptrace/common/apptrace.c
246
fd = open(str, O_WRONLY|O_CREAT|O_TRUNC, 0666);
usr/src/lib/abi/apptrace/common/apptrace.c
251
str,
usr/src/lib/abi/apptrace/common/apptrace.c
488
char *str;
usr/src/lib/abi/apptrace/common/apptrace.c
536
for (ndx = 0; (str = spec_sym[ndx]) != NULL; ndx++) {
usr/src/lib/abi/apptrace/common/apptrace.c
538
cmpval = strcmp(sym_name, str);
usr/src/lib/cfgadm_plugins/ac/common/mema.c
1053
char *str;
usr/src/lib/cfgadm_plugins/ac/common/mema.c
1070
str = (char *)malloc(len);
usr/src/lib/cfgadm_plugins/ac/common/mema.c
1071
if (str == NULL)
usr/src/lib/cfgadm_plugins/ac/common/mema.c
1073
*str = '\0';
usr/src/lib/cfgadm_plugins/ac/common/mema.c
1076
(void) strcat(str, sep);
usr/src/lib/cfgadm_plugins/ac/common/mema.c
1077
(void) strcat(str, opts[i]);
usr/src/lib/cfgadm_plugins/ac/common/mema.c
1080
return (str);
usr/src/lib/cfgadm_plugins/ac/common/mema.c
1461
char *str;
usr/src/lib/cfgadm_plugins/ac/common/mema.c
1478
str = (char *)malloc(len);
usr/src/lib/cfgadm_plugins/ac/common/mema.c
1479
if (str == NULL)
usr/src/lib/cfgadm_plugins/ac/common/mema.c
1481
*str = '\0';
usr/src/lib/cfgadm_plugins/ac/common/mema.c
1484
(void) strcat(str, sep);
usr/src/lib/cfgadm_plugins/ac/common/mema.c
1485
(void) strcat(str, mema_opts[opts[i].subopt]);
usr/src/lib/cfgadm_plugins/ac/common/mema.c
1488
return (str);
usr/src/lib/cfgadm_plugins/fp/common/cfga_utils.c
38
const char *str;
usr/src/lib/cfgadm_plugins/fp/common/cfga_utils.c
757
sp->str = dgettext(TEXT_DOMAIN, GET_MSG_STR(a));
usr/src/lib/cfgadm_plugins/fp/common/cfga_utils.c
759
sp->str = GET_MSG_STR(a);
usr/src/lib/cfgadm_plugins/fp/common/cfga_utils.c
761
sp->str = va_arg(ap, char *);
usr/src/lib/cfgadm_plugins/fp/common/cfga_utils.c
763
len += (strlen(sp->str));
usr/src/lib/cfgadm_plugins/fp/common/cfga_utils.c
791
(void) strcat(*msgpp, sp->str);
usr/src/lib/cfgadm_plugins/ib/common/cfga_conf.c
114
ib_get_var_type(char *str)
usr/src/lib/cfgadm_plugins/ib/common/cfga_conf.c
120
if (strcasecmp(cfgvar->name, str) == 0)
usr/src/lib/cfgadm_plugins/ib/common/cfga_ib.c
1999
cfga_msg(struct cfga_msg *msgp, const char *str)
usr/src/lib/cfgadm_plugins/ib/common/cfga_ib.c
2009
if ((len = strlen(str)) == 0) {
usr/src/lib/cfgadm_plugins/ib/common/cfga_ib.c
2019
(void) strlcpy(q, str, len + 1);
usr/src/lib/cfgadm_plugins/ib/common/cfga_ib.c
347
char *str;
usr/src/lib/cfgadm_plugins/ib/common/cfga_ib.c
355
while ((str = va_arg(valist, char *)) != NULL) {
usr/src/lib/cfgadm_plugins/ib/common/cfga_ib.c
356
size_t len = strlen(str);
usr/src/lib/cfgadm_plugins/ib/common/cfga_ib.c
368
(void) strlcpy(*ret_str + total_len, str, ret_str_len);
usr/src/lib/cfgadm_plugins/pci/common/cfga.c
1001
char *str;
usr/src/lib/cfgadm_plugins/pci/common/cfga.c
1025
for (i = 0, str = func_strs[i], len = strlen(str); i < 6; i++) {
usr/src/lib/cfgadm_plugins/pci/common/cfga.c
1026
str = func_strs[i];
usr/src/lib/cfgadm_plugins/pci/common/cfga.c
1027
len = strlen(str);
usr/src/lib/cfgadm_plugins/pci/common/cfga.c
1028
if (strncmp(function, str, len) == 0)
usr/src/lib/cfgadm_plugins/pci/common/cfga.c
1053
str = (char *)function;
usr/src/lib/cfgadm_plugins/pci/common/cfga.c
1054
for (str = (str+len++), i = 0; *str != ',';
usr/src/lib/cfgadm_plugins/pci/common/cfga.c
1055
i++, str++) {
usr/src/lib/cfgadm_plugins/pci/common/cfga.c
1059
buf[i] = *str;
usr/src/lib/cfgadm_plugins/pci/common/cfga.c
1062
buf[i] = '\0'; str++;
usr/src/lib/cfgadm_plugins/pci/common/cfga.c
1077
if ((strncmp(str, func_strs[MODE], len) == 0) &&
usr/src/lib/cfgadm_plugins/pci/common/cfga.c
1078
(*(str+(len)) == '=')) {
usr/src/lib/cfgadm_plugins/pci/common/cfga.c
1079
for (str = (str+(++len)), i = 0;
usr/src/lib/cfgadm_plugins/pci/common/cfga.c
1080
*str != '\0'; i++, str++) {
usr/src/lib/cfgadm_plugins/pci/common/cfga.c
1081
buf[i] = *str;
usr/src/lib/cfgadm_plugins/pci/common/cfga.c
159
static void cfga_msg(struct cfga_msg *msgp, const char *str);
usr/src/lib/cfgadm_plugins/pci/common/cfga.c
1704
cfga_msg(struct cfga_msg *msgp, const char *str)
usr/src/lib/cfgadm_plugins/pci/common/cfga.c
1706
DBG(2, ("<%s>", str));
usr/src/lib/cfgadm_plugins/pci/common/cfga.c
1711
(*msgp->message_routine)(msgp->appdata_ptr, str);
usr/src/lib/cfgadm_plugins/sata/common/cfga_sata.c
1728
cfga_msg(struct cfga_msg *msgp, const char *str)
usr/src/lib/cfgadm_plugins/sata/common/cfga_sata.c
1738
if ((len = strlen(str)) == 0) {
usr/src/lib/cfgadm_plugins/sata/common/cfga_sata.c
1748
(void) strcpy(q, str);
usr/src/lib/cfgadm_plugins/sata/common/cfga_sata.c
418
char *str;
usr/src/lib/cfgadm_plugins/sata/common/cfga_sata.c
426
while ((str = va_arg(valist, char *)) != NULL) {
usr/src/lib/cfgadm_plugins/sata/common/cfga_sata.c
427
size_t len = strlen(str);
usr/src/lib/cfgadm_plugins/sata/common/cfga_sata.c
438
(void) strcpy(*ret_str + total_len, str);
usr/src/lib/cfgadm_plugins/scsi/common/cfga_utils.c
40
const char *str;
usr/src/lib/cfgadm_plugins/scsi/common/cfga_utils.c
683
sp->str = dgettext(TEXT_DOMAIN, GET_MSG_STR(a));
usr/src/lib/cfgadm_plugins/scsi/common/cfga_utils.c
685
sp->str = GET_MSG_STR(a);
usr/src/lib/cfgadm_plugins/scsi/common/cfga_utils.c
687
sp->str = va_arg(ap, char *);
usr/src/lib/cfgadm_plugins/scsi/common/cfga_utils.c
689
len += (strlen(sp->str));
usr/src/lib/cfgadm_plugins/scsi/common/cfga_utils.c
717
(void) strcat(*msgpp, sp->str);
usr/src/lib/cfgadm_plugins/shp/common/shp.c
1561
cfga_msg(struct cfga_msg *msgp, const char *str)
usr/src/lib/cfgadm_plugins/shp/common/shp.c
1563
DBG(2, ("<%s>", str));
usr/src/lib/cfgadm_plugins/shp/common/shp.c
1568
(*msgp->message_routine)(msgp->appdata_ptr, str);
usr/src/lib/cfgadm_plugins/shp/common/shp.c
161
static void cfga_msg(struct cfga_msg *msgp, const char *str);
usr/src/lib/cfgadm_plugins/shp/common/shp.c
884
char *str;
usr/src/lib/cfgadm_plugins/shp/common/shp.c
908
for (i = 0, str = func_strs[i], len = strlen(str);
usr/src/lib/cfgadm_plugins/shp/common/shp.c
910
str = func_strs[i];
usr/src/lib/cfgadm_plugins/shp/common/shp.c
911
len = strlen(str);
usr/src/lib/cfgadm_plugins/shp/common/shp.c
912
if (strncmp(function, str, len) == 0)
usr/src/lib/cfgadm_plugins/shp/common/shp.c
929
str = (char *)function;
usr/src/lib/cfgadm_plugins/shp/common/shp.c
930
for (str = (str+len++), i = 0; *str != ',';
usr/src/lib/cfgadm_plugins/shp/common/shp.c
931
i++, str++) {
usr/src/lib/cfgadm_plugins/shp/common/shp.c
935
buf[i] = *str;
usr/src/lib/cfgadm_plugins/shp/common/shp.c
938
buf[i] = '\0'; str++;
usr/src/lib/cfgadm_plugins/shp/common/shp.c
953
if ((strncmp(str, func_strs[MODE], len) == 0) &&
usr/src/lib/cfgadm_plugins/shp/common/shp.c
954
(*(str+(len)) == '=')) {
usr/src/lib/cfgadm_plugins/shp/common/shp.c
955
for (str = (str+(++len)), i = 0;
usr/src/lib/cfgadm_plugins/shp/common/shp.c
956
*str != '\0'; i++, str++) {
usr/src/lib/cfgadm_plugins/shp/common/shp.c
957
buf[i] = *str;
usr/src/lib/cfgadm_plugins/sysctrl/common/cfga.c
1078
char *str;
usr/src/lib/cfgadm_plugins/sysctrl/common/cfga.c
1101
str = cfga_str(CMD_SET_COND);
usr/src/lib/cfgadm_plugins/sysctrl/common/cfga.c
1102
len = strlen(str);
usr/src/lib/cfgadm_plugins/sysctrl/common/cfga.c
1104
if ((strncmp(function, str, len) == 0) && (function[len++] == '=') &&
usr/src/lib/cfgadm_plugins/usb/common/cfga_configfile.c
251
usb_get_var_type(char *str)
usr/src/lib/cfgadm_plugins/usb/common/cfga_configfile.c
257
if (strcasecmp(cfgvar->name, str) == 0) {
usr/src/lib/cfgadm_plugins/usb/common/cfga_configfile.c
729
char str[MAXLINESIZE];
usr/src/lib/cfgadm_plugins/usb/common/cfga_configfile.c
816
bzero(str, MAXLINESIZE);
usr/src/lib/cfgadm_plugins/usb/common/cfga_configfile.c
820
(void) snprintf(str, MAXLINESIZE, "selection=%s idVendor=0x%x "
usr/src/lib/cfgadm_plugins/usb/common/cfga_configfile.c
826
(void) snprintf(&str[strlen(str)], MAXLINESIZE,
usr/src/lib/cfgadm_plugins/usb/common/cfga_configfile.c
832
(void) snprintf(&str[strlen(str)], MAXLINESIZE,
usr/src/lib/cfgadm_plugins/usb/common/cfga_configfile.c
837
(void) snprintf(&str[strlen(str)], MAXLINESIZE,
usr/src/lib/cfgadm_plugins/usb/common/cfga_configfile.c
842
(void) snprintf(&str[strlen(str)], MAXLINESIZE,
usr/src/lib/cfgadm_plugins/usb/common/cfga_configfile.c
846
(void) snprintf(&str[strlen(str)], MAXLINESIZE,
usr/src/lib/cfgadm_plugins/usb/common/cfga_configfile.c
851
(void) strlcat(str, ";", sizeof (str));
usr/src/lib/cfgadm_plugins/usb/common/cfga_configfile.c
865
if (write(file, str, strlen(str)) == -1) {
usr/src/lib/cfgadm_plugins/usb/common/cfga_configfile.c
882
(void) snprintf(str, MAXLINESIZE,
usr/src/lib/cfgadm_plugins/usb/common/cfga_configfile.c
888
(void) snprintf(&str[strlen(str)], MAXLINESIZE,
usr/src/lib/cfgadm_plugins/usb/common/cfga_configfile.c
893
(void) snprintf(&str[strlen(str)], MAXLINESIZE,
usr/src/lib/cfgadm_plugins/usb/common/cfga_configfile.c
898
(void) snprintf(&str[strlen(str)], MAXLINESIZE,
usr/src/lib/cfgadm_plugins/usb/common/cfga_configfile.c
904
(void) snprintf(&str[strlen(str)], MAXLINESIZE,
usr/src/lib/cfgadm_plugins/usb/common/cfga_configfile.c
909
(void) strlcat(str, ";\n", sizeof (str));
usr/src/lib/cfgadm_plugins/usb/common/cfga_configfile.c
930
if (write(file, str, strlen(str)) == -1) {
usr/src/lib/cfgadm_plugins/usb/common/cfga_usb.c
1682
cfga_msg(struct cfga_msg *msgp, const char *str)
usr/src/lib/cfgadm_plugins/usb/common/cfga_usb.c
1692
if ((len = strlen(str)) == 0) {
usr/src/lib/cfgadm_plugins/usb/common/cfga_usb.c
1702
(void) strcpy(q, str);
usr/src/lib/cfgadm_plugins/usb/common/cfga_usb.c
285
char *str;
usr/src/lib/cfgadm_plugins/usb/common/cfga_usb.c
293
while ((str = va_arg(valist, char *)) != NULL) {
usr/src/lib/cfgadm_plugins/usb/common/cfga_usb.c
294
size_t len = strlen(str);
usr/src/lib/cfgadm_plugins/usb/common/cfga_usb.c
306
(void) strcpy(*ret_str + total_len, str);
usr/src/lib/fm/libdiskstatus/common/ds_scsi_uscsi.c
62
char *str;
usr/src/lib/fm/libdiskstatus/common/ds_scsi_uscsi.c
69
for (; slist->str != NULL; slist++) {
usr/src/lib/fm/libdiskstatus/common/ds_scsi_uscsi.c
71
return (slist->str);
usr/src/lib/fm/libfmd_adm/common/fmd_adm.c
1119
rv &= xdr_string(xp, &sp->fmds_value.str, ~0);
usr/src/lib/fm/libfmd_adm/common/fmd_adm.c
352
char *str = (char *)path;
usr/src/lib/fm/libfmd_adm/common/fmd_adm.c
361
cs = fmd_adm_modload_1(str, &err, ap->adm_clnt);
usr/src/lib/fm/libfmd_adm/common/fmd_adm.c
373
char *str = (char *)name;
usr/src/lib/fm/libfmd_adm/common/fmd_adm.c
382
cs = fmd_adm_modunload_1(str, &err, ap->adm_clnt);
usr/src/lib/fm/libfmd_adm/common/fmd_adm.c
394
char *str = (char *)name;
usr/src/lib/fm/libfmd_adm/common/fmd_adm.c
403
cs = fmd_adm_modreset_1(str, &err, ap->adm_clnt);
usr/src/lib/fm/libfmd_adm/common/fmd_adm.c
415
char *str = (char *)name;
usr/src/lib/fm/libfmd_adm/common/fmd_adm.c
424
cs = fmd_adm_modgc_1(str, &err, ap->adm_clnt);
usr/src/lib/fm/libfmd_adm/common/fmd_adm.c
600
char *str = (char *)fmri;
usr/src/lib/fm/libfmd_adm/common/fmd_adm.c
609
cs = fmd_adm_rsrcflush_1(str, &err, ap->adm_clnt);
usr/src/lib/fm/libfmd_adm/common/fmd_adm.c
621
char *str = (char *)fmri;
usr/src/lib/fm/libfmd_adm/common/fmd_adm.c
630
cs = fmd_adm_rsrcrepaired_1(str, &err, ap->adm_clnt);
usr/src/lib/fm/libfmd_adm/common/fmd_adm.c
642
char *str = (char *)fmri;
usr/src/lib/fm/libfmd_adm/common/fmd_adm.c
651
cs = fmd_adm_rsrcreplaced_1(str, &err, ap->adm_clnt);
usr/src/lib/fm/libfmd_adm/common/fmd_adm.c
663
char *str = (char *)fmri;
usr/src/lib/fm/libfmd_adm/common/fmd_adm.c
673
cs = fmd_adm_rsrcacquit_1(str, str2, &err, ap->adm_clnt);
usr/src/lib/fm/libfmd_adm/common/fmd_adm.c
685
char *str = (char *)uuid;
usr/src/lib/fm/libfmd_adm/common/fmd_adm.c
694
cs = fmd_adm_caserepair_1(str, &err, ap->adm_clnt);
usr/src/lib/fm/libfmd_adm/common/fmd_adm.c
706
char *str = (char *)uuid;
usr/src/lib/fm/libfmd_adm/common/fmd_adm.c
715
cs = fmd_adm_caseacquit_1(str, &err, ap->adm_clnt);
usr/src/lib/fm/libfmd_snmp/common/problem.c
1000
free(str);
usr/src/lib/fm/libfmd_snmp/common/problem.c
1006
char *fmri, *str;
usr/src/lib/fm/libfmd_snmp/common/problem.c
1009
if ((str = sunFm_nvl2str(rsrc)) == NULL)
usr/src/lib/fm/libfmd_snmp/common/problem.c
1012
fmri = str;
usr/src/lib/fm/libfmd_snmp/common/problem.c
1016
free(str);
usr/src/lib/fm/libfmd_snmp/common/problem.c
974
char *fmri, *str;
usr/src/lib/fm/libfmd_snmp/common/problem.c
977
if ((str = sunFm_nvl2str(asru)) == NULL)
usr/src/lib/fm/libfmd_snmp/common/problem.c
980
fmri = str;
usr/src/lib/fm/libfmd_snmp/common/problem.c
984
free(str);
usr/src/lib/fm/libfmd_snmp/common/problem.c
990
char *fmri, *str;
usr/src/lib/fm/libfmd_snmp/common/problem.c
993
if ((str = sunFm_nvl2str(fru)) == NULL)
usr/src/lib/fm/libfmd_snmp/common/problem.c
996
fmri = str;
usr/src/lib/fm/topo/libtopo/common/cpu.c
377
char *str, *s, *end, *serial_end;
usr/src/lib/fm/topo/libtopo/common/cpu.c
384
if (nvlist_lookup_string(in, "fmri-string", &str) != 0)
usr/src/lib/fm/topo/libtopo/common/cpu.c
388
if (strncmp(str, "cpu:///", 7) != 0)
usr/src/lib/fm/topo/libtopo/common/cpu.c
391
s = strchr(str + 7, '=');
usr/src/lib/fm/topo/libtopo/common/dev.c
237
char *str, *strcp;
usr/src/lib/fm/topo/libtopo/common/dev.c
246
if (nvlist_lookup_string(in, "fmri-string", &str) != 0)
usr/src/lib/fm/topo/libtopo/common/dev.c
249
len = strlen(str);
usr/src/lib/fm/topo/libtopo/common/dev.c
259
if (len < 8 || strncmp(str, "dev:///", 7) != 0)
usr/src/lib/fm/topo/libtopo/common/dev.c
263
(void) memcpy(strcp, str, len);
usr/src/lib/fm/topo/libtopo/common/hc.c
1073
char str[21]; /* sizeof (UINT64_MAX) + '\0' */
usr/src/lib/fm/topo/libtopo/common/hc.c
1112
(void) snprintf(str, sizeof (str), "%d", inst);
usr/src/lib/fm/topo/libtopo/common/hc.c
1113
if ((hcl[i] = hc_list_create(mod, name, str)) == NULL)
usr/src/lib/fm/topo/libtopo/common/hc.c
853
make_facility(topo_mod_t *mod, char *str, nvlist_t **nvl)
usr/src/lib/fm/topo/libtopo/common/hc.c
859
if ((fac = strchr(str, '?')) == NULL)
usr/src/lib/fm/topo/libtopo/common/hc.c
905
char *str;
usr/src/lib/fm/topo/libtopo/common/hc.c
913
if (nvlist_lookup_string(in, "fmri-string", &str) != 0)
usr/src/lib/fm/topo/libtopo/common/hc.c
917
if (strncmp(str, "hc://", 5) != 0)
usr/src/lib/fm/topo/libtopo/common/hc.c
920
if ((pa = make_hc_pairs(mod, str, &npairs)) == NULL)
usr/src/lib/fm/topo/libtopo/common/hc.c
923
if (make_hc_auth(mod, str, &serial, &part, &rev, &auth) < 0)
usr/src/lib/fm/topo/libtopo/common/hc.c
975
if (make_facility(mod, str, &fac) == -1)
usr/src/lib/fm/topo/libtopo/common/svc.c
332
svc_component_valid(const char *str)
usr/src/lib/fm/topo/libtopo/common/svc.c
334
if (str == NULL)
usr/src/lib/fm/topo/libtopo/common/svc.c
337
if (*str == '\0')
usr/src/lib/fm/topo/libtopo/common/svc.c
340
if (strpbrk(str, "@/:") != NULL)
usr/src/lib/fm/topo/libtopo/common/svc.c
520
char *str, *loc, val;
usr/src/lib/fm/topo/libtopo/common/svc.c
525
if (nvlist_lookup_string(in, "fmri-string", &str) != 0)
usr/src/lib/fm/topo/libtopo/common/svc.c
528
if (strncmp(str, "svc://", 6) != 0)
usr/src/lib/fm/topo/libtopo/common/svc.c
534
str += 6;
usr/src/lib/fm/topo/libtopo/common/svc.c
535
if ((loc = strpbrk(str, "@/")) == NULL)
usr/src/lib/fm/topo/libtopo/common/svc.c
541
if (!svc_component_valid(str)) {
usr/src/lib/fm/topo/libtopo/common/svc.c
546
if (nvlist_add_string(fmri, FM_FMRI_SVC_AUTH_SCOPE, str) != 0) {
usr/src/lib/fm/topo/libtopo/common/svc.c
552
str = loc + 1;
usr/src/lib/fm/topo/libtopo/common/svc.c
553
if ((loc = strchr(str, '/')) == NULL)
usr/src/lib/fm/topo/libtopo/common/svc.c
557
if (loc != str) {
usr/src/lib/fm/topo/libtopo/common/svc.c
560
if (!svc_component_valid(str)) {
usr/src/lib/fm/topo/libtopo/common/svc.c
566
str) != 0) {
usr/src/lib/fm/topo/libtopo/common/svc.c
574
str = loc + 1;
usr/src/lib/fm/topo/libtopo/common/svc.c
575
loc = strpbrk(str, ":@");
usr/src/lib/fm/topo/libtopo/common/svc.c
577
if (str[0] == '\0' || loc == str)
usr/src/lib/fm/topo/libtopo/common/svc.c
586
if (nvlist_add_string(fmri, FM_FMRI_SVC_NAME, str) != 0) {
usr/src/lib/fm/topo/libtopo/common/svc.c
597
str = loc + 1;
usr/src/lib/fm/topo/libtopo/common/svc.c
598
if (str[0] == '\0' || str[0] == '@')
usr/src/lib/fm/topo/libtopo/common/svc.c
601
loc = strchr(str, '@');
usr/src/lib/fm/topo/libtopo/common/svc.c
606
str) != 0) {
usr/src/lib/fm/topo/libtopo/common/svc.c
619
str = loc + 1;
usr/src/lib/fm/topo/libtopo/common/svc.c
620
if (str[0] == '\0')
usr/src/lib/fm/topo/libtopo/common/svc.c
624
str) != 0) {
usr/src/lib/fm/topo/libtopo/common/topo_fmri.c
106
char *scheme, *str;
usr/src/lib/fm/topo/libtopo/common/topo_fmri.c
122
if (out == NULL || nvlist_lookup_string(out, "fmri-string", &str) != 0)
usr/src/lib/fm/topo/libtopo/common/topo_fmri.c
126
if ((*fmristr = topo_hdl_strdup(thp, str)) == NULL)
usr/src/lib/fm/topo/libtopo/common/topo_mod.c
917
topo_mod_clean_str(topo_mod_t *mod, const char *str)
usr/src/lib/fm/topo/libtopo/common/topo_mod.c
919
if (str == NULL)
usr/src/lib/fm/topo/libtopo/common/topo_mod.c
922
return (topo_cleanup_strn(mod->tm_hdl, str, strlen(str)));
usr/src/lib/fm/topo/libtopo/common/topo_mod.c
926
topo_mod_clean_strn(topo_mod_t *mod, const char *str, size_t len)
usr/src/lib/fm/topo/libtopo/common/topo_mod.c
928
if (str == NULL)
usr/src/lib/fm/topo/libtopo/common/topo_mod.c
931
return (topo_cleanup_strn(mod->tm_hdl, str, len));
usr/src/lib/fm/topo/libtopo/common/topo_prop.c
246
char *str;
usr/src/lib/fm/topo/libtopo/common/topo_prop.c
249
TOPO_PROP_VAL_VAL, &str);
usr/src/lib/fm/topo/libtopo/common/topo_prop.c
252
if ((s2 = topo_hdl_strdup(thp, str)) == NULL)
usr/src/lib/fm/topo/libtopo/common/topo_string.c
103
ret = vsnprintf(*str, len, fmt, ap);
usr/src/lib/fm/topo/libtopo/common/topo_string.c
105
topo_hdl_free(thp, *str, len + 1);
usr/src/lib/fm/topo/libtopo/common/topo_string.c
106
*str = NULL;
usr/src/lib/fm/topo/libtopo/common/topo_string.c
114
topo_hdl_asprintf(topo_hdl_t *thp, char **str, const char *fmt, ...)
usr/src/lib/fm/topo/libtopo/common/topo_string.c
120
ret = topo_hdl_vasprintf(thp, str, fmt, ap);
usr/src/lib/fm/topo/libtopo/common/topo_string.c
126
topo_mod_vasprintf(topo_mod_t *mod, char **str, const char *fmt, va_list ap)
usr/src/lib/fm/topo/libtopo/common/topo_string.c
128
return (topo_hdl_vasprintf(mod->tm_hdl, str, fmt, ap));
usr/src/lib/fm/topo/libtopo/common/topo_string.c
132
topo_mod_asprintf(topo_mod_t *mod, char **str, const char *fmt, ...)
usr/src/lib/fm/topo/libtopo/common/topo_string.c
138
ret = topo_hdl_vasprintf(mod->tm_hdl, str, fmt, ap);
usr/src/lib/fm/topo/libtopo/common/topo_string.c
76
topo_hdl_vasprintf(topo_hdl_t *thp, char **str, const char *fmt, va_list ap)
usr/src/lib/fm/topo/libtopo/common/topo_string.c
80
*str = NULL;
usr/src/lib/fm/topo/libtopo/common/topo_string.c
91
*str = topo_hdl_alloc(thp, len);
usr/src/lib/fm/topo/libtopo/common/topo_string.c
92
if (*str == NULL) {
usr/src/lib/fm/topo/libtopo/common/topo_subr.c
248
topo_fmristr_build(ssize_t *sz, char *buf, size_t buflen, char *str,
usr/src/lib/fm/topo/libtopo/common/topo_subr.c
253
if (str == NULL)
usr/src/lib/fm/topo/libtopo/common/topo_subr.c
263
*sz += snprintf(buf, left, "%s", str);
usr/src/lib/fm/topo/libtopo/common/topo_subr.c
265
*sz += snprintf(buf, left, "%s%s", prepend, str);
usr/src/lib/fm/topo/libtopo/common/topo_subr.c
267
*sz += snprintf(buf, left, "%s%s", str, append);
usr/src/lib/fm/topo/libtopo/common/topo_subr.c
269
*sz += snprintf(buf, left, "%s%s%s", prepend, str, append);
usr/src/lib/fm/topo/libtopo/common/topo_xml.c
104
xmlChar *str;
usr/src/lib/fm/topo/libtopo/common/topo_xml.c
107
if ((str = xmlGetProp(n, (xmlChar *)propname)) == NULL) {
usr/src/lib/fm/topo/libtopo/common/topo_xml.c
113
*value = strtoull((char *)str, (char **)&estr, 0);
usr/src/lib/fm/topo/libtopo/common/topo_xml.c
116
xmlFree(str);
usr/src/lib/fm/topo/libtopo/common/topo_xml.c
121
xmlFree(str);
usr/src/lib/fm/topo/libtopo/common/topo_xml.c
129
xmlChar *str;
usr/src/lib/fm/topo/libtopo/common/topo_xml.c
134
if ((str = xmlGetProp(n, (xmlChar *)propname)) == NULL)
usr/src/lib/fm/topo/libtopo/common/topo_xml.c
138
*value = strtold((char *)str, (char **)&estr);
usr/src/lib/fm/topo/libtopo/common/topo_xml.c
141
xmlFree(str);
usr/src/lib/fm/topo/libtopo/common/topo_xml.c
144
xmlFree(str);
usr/src/lib/fm/topo/libtopo/common/topo_xml.c
1518
xmlChar *str;
usr/src/lib/fm/topo/libtopo/common/topo_xml.c
152
xmlChar *str;
usr/src/lib/fm/topo/libtopo/common/topo_xml.c
1533
if ((str = xmlGetProp(nn, (xmlChar *)Static)) != NULL) {
usr/src/lib/fm/topo/libtopo/common/topo_xml.c
1534
if (xmlStrcmp(str, (xmlChar *)True) == 0)
usr/src/lib/fm/topo/libtopo/common/topo_xml.c
1536
xmlFree(str);
usr/src/lib/fm/topo/libtopo/common/topo_xml.c
156
if ((str = xmlGetProp(xn, (xmlChar *)propname)) == NULL)
usr/src/lib/fm/topo/libtopo/common/topo_xml.c
158
if (topo_mod_str2nvl(mp, (const char *)str, rnvl) < 0) {
usr/src/lib/fm/topo/libtopo/common/topo_xml.c
159
xmlFree(str);
usr/src/lib/fm/topo/libtopo/common/topo_xml.c
162
xmlFree(str);
usr/src/lib/fm/topo/libtopo/common/topo_xml.c
170
xmlChar *str;
usr/src/lib/fm/topo/libtopo/common/topo_xml.c
171
if ((str = xmlGetProp(xn, (xmlChar *)attr)) == NULL) {
usr/src/lib/fm/topo/libtopo/common/topo_xml.c
177
if (xmlStrcmp(str, (xmlChar *)Int32) == 0) {
usr/src/lib/fm/topo/libtopo/common/topo_xml.c
179
} else if (xmlStrcmp(str, (xmlChar *)UInt32) == 0) {
usr/src/lib/fm/topo/libtopo/common/topo_xml.c
181
} else if (xmlStrcmp(str, (xmlChar *)Int64) == 0) {
usr/src/lib/fm/topo/libtopo/common/topo_xml.c
183
} else if (xmlStrcmp(str, (xmlChar *)UInt64) == 0) {
usr/src/lib/fm/topo/libtopo/common/topo_xml.c
185
} else if (xmlStrcmp(str, (xmlChar *)FMRI) == 0) {
usr/src/lib/fm/topo/libtopo/common/topo_xml.c
187
} else if (xmlStrcmp(str, (xmlChar *)String) == 0) {
usr/src/lib/fm/topo/libtopo/common/topo_xml.c
189
} else if (xmlStrcmp(str, (xmlChar *)Double) == 0) {
usr/src/lib/fm/topo/libtopo/common/topo_xml.c
191
} else if (xmlStrcmp(str, (xmlChar *)Int32_Arr) == 0) {
usr/src/lib/fm/topo/libtopo/common/topo_xml.c
193
} else if (xmlStrcmp(str, (xmlChar *)UInt32_Arr) == 0) {
usr/src/lib/fm/topo/libtopo/common/topo_xml.c
195
} else if (xmlStrcmp(str, (xmlChar *)Int64_Arr) == 0) {
usr/src/lib/fm/topo/libtopo/common/topo_xml.c
197
} else if (xmlStrcmp(str, (xmlChar *)UInt64_Arr) == 0) {
usr/src/lib/fm/topo/libtopo/common/topo_xml.c
199
} else if (xmlStrcmp(str, (xmlChar *)String_Arr) == 0) {
usr/src/lib/fm/topo/libtopo/common/topo_xml.c
201
} else if (xmlStrcmp(str, (xmlChar *)FMRI_Arr) == 0) {
usr/src/lib/fm/topo/libtopo/common/topo_xml.c
205
"Unrecognized type attribute value '%s'.\n", str);
usr/src/lib/fm/topo/libtopo/common/topo_xml.c
207
xmlFree(str);
usr/src/lib/fm/topo/libtopo/common/topo_xml.c
210
xmlFree(str);
usr/src/lib/fm/topo/libtopo/common/topo_xml.c
223
xmlChar *str;
usr/src/lib/fm/topo/libtopo/common/topo_xml.c
263
if ((str = xmlGetProp(xn, (xmlChar *)Value)) == NULL)
usr/src/lib/fm/topo/libtopo/common/topo_xml.c
265
rv = nvlist_add_string(nvl, name, (char *)str);
usr/src/lib/fm/topo/libtopo/common/topo_xml.c
266
xmlFree(str);
usr/src/lib/fm/topo/libtopo/common/topo_xml.c
372
if ((str = xmlGetProp(cn, (xmlChar *)Value))
usr/src/lib/fm/topo/libtopo/common/topo_xml.c
377
topo_mod_strdup(mp, (const char *)str);
usr/src/lib/fm/topo/libtopo/common/topo_xml.c
378
xmlFree(str);
usr/src/lib/fm/topo/libtopo/common/topo_xml.c
393
if ((str = xmlGetProp(cn, (xmlChar *)Value))
usr/src/lib/fm/topo/libtopo/common/topo_xml.c
397
if (topo_mod_str2nvl(mp, (const char *)str,
usr/src/lib/fm/topo/libtopo/common/topo_xml.c
399
xmlFree(str);
usr/src/lib/fm/topo/libtopo/common/topo_xml.c
402
xmlFree(str);
usr/src/lib/fm/topo/libtopo/common/topo_xml.c
430
xmlChar *str;
usr/src/lib/fm/topo/libtopo/common/topo_xml.c
433
if ((str = xmlGetProp(xn, (xmlChar *)Immutable)) != NULL) {
usr/src/lib/fm/topo/libtopo/common/topo_xml.c
434
if (xmlStrcmp(str, (xmlChar *)False) == 0)
usr/src/lib/fm/topo/libtopo/common/topo_xml.c
440
xmlFree(str);
usr/src/lib/fm/topo/libtopo/common/topo_xml.c
531
char *str, **strarr;
usr/src/lib/fm/topo/libtopo/common/topo_xml.c
556
e = nvlist_lookup_string(pfmri, INV_PVAL, &str);
usr/src/lib/fm/topo/libtopo/common/topo_xml.c
610
e = topo_prop_set_string(ptn, gnm, pnm, flag, str, &err);
usr/src/lib/fm/topo/libtopo/common/topo_xml.c
62
xmlChar *str;
usr/src/lib/fm/topo/libtopo/common/topo_xml.c
70
if ((str = xmlGetProp(n, (xmlChar *)stabname)) == NULL) {
usr/src/lib/fm/topo/libtopo/common/topo_xml.c
76
if (xmlStrcmp(str, (xmlChar *)Internal) == 0) {
usr/src/lib/fm/topo/libtopo/common/topo_xml.c
78
} else if (xmlStrcmp(str, (xmlChar *)Private) == 0) {
usr/src/lib/fm/topo/libtopo/common/topo_xml.c
80
} else if (xmlStrcmp(str, (xmlChar *)Obsolete) == 0) {
usr/src/lib/fm/topo/libtopo/common/topo_xml.c
82
} else if (xmlStrcmp(str, (xmlChar *)External) == 0) {
usr/src/lib/fm/topo/libtopo/common/topo_xml.c
84
} else if (xmlStrcmp(str, (xmlChar *)Unstable) == 0) {
usr/src/lib/fm/topo/libtopo/common/topo_xml.c
86
} else if (xmlStrcmp(str, (xmlChar *)Evolving) == 0) {
usr/src/lib/fm/topo/libtopo/common/topo_xml.c
88
} else if (xmlStrcmp(str, (xmlChar *)Stable) == 0) {
usr/src/lib/fm/topo/libtopo/common/topo_xml.c
90
} else if (xmlStrcmp(str, (xmlChar *)Standard) == 0) {
usr/src/lib/fm/topo/libtopo/common/topo_xml.c
93
xmlFree(str);
usr/src/lib/fm/topo/libtopo/common/topo_xml.c
96
xmlFree(str);
usr/src/lib/fm/topo/modules/common/pcibus/did.c
55
slotnm_create(topo_mod_t *mp, int dev, char *str)
usr/src/lib/fm/topo/modules/common/pcibus/did.c
64
p->snm_name = topo_mod_strdup(mp, str);
usr/src/lib/fm/topo/modules/common/pcibus/did_props.c
879
char str[21]; /* sizeof (UINT64_MAX) + '\0' */
usr/src/lib/fm/topo/modules/common/pcibus/did_props.c
882
(void) snprintf(str, 21, "%x", v);
usr/src/lib/fm/topo/modules/common/pcibus/did_props.c
884
tpgrp, tpnm, TOPO_PROP_IMMUTABLE, str, &e) < 0)
usr/src/lib/fm/topo/modules/common/pcibus/did_props.c
905
char str[21]; /* sizeof (UINT64_MAX) + '\0' */
usr/src/lib/fm/topo/modules/common/pcibus/did_props.c
908
(void) snprintf(str, 21, "%d", v);
usr/src/lib/fm/topo/modules/common/pcibus/did_props.c
910
tpgrp, tpnm, TOPO_PROP_IMMUTABLE, str, &e) < 0)
usr/src/lib/fm/topo/modules/common/pcibus/did_props.c
956
char str[23]; /* '0x' + sizeof (UINT64_MAX) + '\0' */
usr/src/lib/fm/topo/modules/common/pcibus/did_props.c
962
(void) snprintf(str, 23, "0x%x", bdf);
usr/src/lib/fm/topo/modules/common/pcibus/did_props.c
964
tpgrp, tpnm, TOPO_PROP_IMMUTABLE, str, &e) < 0)
usr/src/lib/fm/topo/modules/common/pcibus/util.c
51
fm_strtonum(topo_mod_t *mp, char *str, int *err)
usr/src/lib/fm/topo/modules/common/pcibus/util.c
56
r = strtoul(str, &e, 16);
usr/src/lib/fm/topo/modules/common/pcibus/util.c
57
if (e == str) {
usr/src/lib/fm/topo/modules/common/pcibus/util.c
59
"Trouble converting %s to a number!\n", str);
usr/src/lib/fm/topo/modules/common/smbios/smbios_enum.c
102
is_valid_string(const char *str)
usr/src/lib/fm/topo/modules/common/smbios/smbios_enum.c
104
if (strcmp(str, SMB_DEFAULT1) != 0 && strcmp(str, SMB_DEFAULT2) != 0 &&
usr/src/lib/fm/topo/modules/common/smbios/smbios_enum.c
105
strcmp(str, SMB_DEFAULT3) != 0 && strlen(str) > 0)
usr/src/lib/fm/topo/modules/i86pc/chip/chip_smbios.c
463
chip_strlen(const char *str)
usr/src/lib/fm/topo/modules/i86pc/chip/chip_smbios.c
467
if (str != NULL)
usr/src/lib/fm/topo/modules/i86pc/chip/chip_smbios.c
468
len = strlen(str);
usr/src/lib/fm/topo/modules/i86pc/chip/chip_subr.c
123
char *str;
usr/src/lib/fm/topo/modules/i86pc/chip/chip_subr.c
125
if (nvpair_value_string(nvp, &str) == 0 &&
usr/src/lib/fm/topo/modules/i86pc/chip/chip_subr.c
127
TOPO_PROP_IMMUTABLE, str, &err) == 0)
usr/src/lib/fm/topo/modules/i86pc/chip/chip_subr.c
893
*brandp = topo_mod_strdup(mod, ks->value.str.addr.ptr);
usr/src/lib/fm/topo/modules/i86pc/chip/chip_subr.c
898
if (strcmp(ks->value.str.addr.ptr, "Unknown") != 0) {
usr/src/lib/fm/topo/modules/i86pc/chip/chip_subr.c
900
ks->value.str.addr.ptr);
usr/src/lib/gss_mechs/mech_dh/backend/mech/support.c
101
str = dgettext(TEXT_DOMAIN, "mech_dh: Cipher failure");
usr/src/lib/gss_mechs/mech_dh/backend/mech/support.c
104
str = dgettext(TEXT_DOMAIN, "mech_dh: Verifier failure");
usr/src/lib/gss_mechs/mech_dh/backend/mech/support.c
107
str = dgettext(TEXT_DOMAIN, "mech_dh: Session cipher failure");
usr/src/lib/gss_mechs/mech_dh/backend/mech/support.c
110
str = dgettext(TEXT_DOMAIN, "mech_dh: No secret key");
usr/src/lib/gss_mechs/mech_dh/backend/mech/support.c
113
str = dgettext(TEXT_DOMAIN, "mech_dh: No principal");
usr/src/lib/gss_mechs/mech_dh/backend/mech/support.c
116
str = dgettext(TEXT_DOMAIN, "mech_dh: Not local principal");
usr/src/lib/gss_mechs/mech_dh/backend/mech/support.c
119
str = dgettext(TEXT_DOMAIN, "mech_dh: Unkown QOP");
usr/src/lib/gss_mechs/mech_dh/backend/mech/support.c
122
str = dgettext(TEXT_DOMAIN, "mech_dh: Verifier mismatch");
usr/src/lib/gss_mechs/mech_dh/backend/mech/support.c
125
str = dgettext(TEXT_DOMAIN, "mech_dh: No such user");
usr/src/lib/gss_mechs/mech_dh/backend/mech/support.c
128
str = dgettext(TEXT_DOMAIN,
usr/src/lib/gss_mechs/mech_dh/backend/mech/support.c
132
str = dgettext(TEXT_DOMAIN, "mech_dh: Invalid credential");
usr/src/lib/gss_mechs/mech_dh/backend/mech/support.c
135
str = dgettext(TEXT_DOMAIN, "mech_dh: Invalid GSS context");
usr/src/lib/gss_mechs/mech_dh/backend/mech/support.c
138
str = dgettext(TEXT_DOMAIN, "mech_dh: Diffie-Hellman protocol "
usr/src/lib/gss_mechs/mech_dh/backend/mech/support.c
142
str = dgettext(TEXT_DOMAIN, "mech_dh: Invalid or "
usr/src/lib/gss_mechs/mech_dh/backend/mech/support.c
149
status_str->value = strdup(str);
usr/src/lib/gss_mechs/mech_dh/backend/mech/support.c
154
status_str->length = strlen(str);
usr/src/lib/gss_mechs/mech_dh/backend/mech/support.c
50
char *str;
usr/src/lib/gss_mechs/mech_dh/backend/mech/support.c
84
str = dgettext(TEXT_DOMAIN, "mech_dh: Success");
usr/src/lib/gss_mechs/mech_dh/backend/mech/support.c
87
str = dgettext(TEXT_DOMAIN, "mech_dh: No memory");
usr/src/lib/gss_mechs/mech_dh/backend/mech/support.c
90
str = dgettext(TEXT_DOMAIN,
usr/src/lib/gss_mechs/mech_dh/backend/mech/support.c
94
str = dgettext(TEXT_DOMAIN,
usr/src/lib/gss_mechs/mech_dh/backend/mech/support.c
98
str = dgettext(TEXT_DOMAIN, "mech_dh: Bad argument");
usr/src/lib/gss_mechs/mech_dummy/mech/dmech.c
980
char str[] = "dummy_gss_export_sec_context";
usr/src/lib/gss_mechs/mech_dummy/mech/dmech.c
984
*interprocess_token = make_dummy_token_msg(str, strlen(str));
usr/src/lib/gss_mechs/mech_krb5/crypto/des/string2key.c
113
length,length,str);
usr/src/lib/gss_mechs/mech_krb5/crypto/des/string2key.c
116
str = copystr;
usr/src/lib/gss_mechs/mech_krb5/crypto/des/string2key.c
121
temp = (unsigned int) *str++;
usr/src/lib/gss_mechs/mech_krb5/crypto/des/string2key.c
55
register char *str, *copystr;
usr/src/lib/gss_mechs/mech_krb5/include/k5-utf8.h
189
size_t krb5int_utf8_strcspn( const char* str, const char *set);
usr/src/lib/gss_mechs/mech_krb5/include/k5-utf8.h
191
size_t krb5int_utf8_strspn( const char* str, const char *set);
usr/src/lib/gss_mechs/mech_krb5/include/k5-utf8.h
193
char *krb5int_utf8_strchr( const char* str, const char *chr);
usr/src/lib/gss_mechs/mech_krb5/include/k5-utf8.h
195
char *krb5int_utf8_strpbrk( const char* str, const char *set);
usr/src/lib/gss_mechs/mech_krb5/include/profile.h
108
void KRB5_CALLCONV profile_release_string (char *str);
usr/src/lib/gss_mechs/mech_krb5/krb5/krb/gc_frm_kdc.c
286
char *str;
usr/src/lib/gss_mechs/mech_krb5/krb5/krb/gc_frm_kdc.c
288
if (krb5_unparse_name(ts->ctx, princ, &str))
usr/src/lib/gss_mechs/mech_krb5/krb5/krb/gc_frm_kdc.c
290
fprintf(stderr, "%s: %s\n", prog, str);
usr/src/lib/gss_mechs/mech_krb5/krb5/krb/gc_frm_kdc.c
291
krb5_free_unparsed_name(ts->ctx, str);
usr/src/lib/gss_mechs/mech_krb5/krb5/krb/preauth2.c
747
#define SAMDATA(kdata, str, maxsize) \
usr/src/lib/gss_mechs/mech_krb5/krb5/krb/preauth2.c
749
((((kdata.length)<=(maxsize))?(kdata.length):strlen(str))): \
usr/src/lib/gss_mechs/mech_krb5/krb5/krb/preauth2.c
750
strlen(str)), \
usr/src/lib/gss_mechs/mech_krb5/krb5/krb/preauth2.c
752
((((kdata.length)<=(maxsize))?(kdata.data):(str))):(str)
usr/src/lib/gss_mechs/mech_krb5/krb5/os/realm_iter.c
57
krb5_free_realm_string(krb5_context context, char *str)
usr/src/lib/gss_mechs/mech_krb5/krb5/os/realm_iter.c
59
profile_release_string(str);
usr/src/lib/gss_mechs/mech_krb5/krb5/os/sendto_kdc.c
105
static void putstr(const char *str)
usr/src/lib/gss_mechs/mech_krb5/krb5/os/sendto_kdc.c
108
strlcat(global_err_str, str, sizeof (global_err_str));
usr/src/lib/gss_mechs/mech_krb5/mech/disp_major_status.c
127
char *str;
usr/src/lib/gss_mechs/mech_krb5/mech/disp_major_status.c
129
if ((str =
usr/src/lib/gss_mechs/mech_krb5/mech/disp_major_status.c
133
sprintf(str, unknown_error, kind, value);
usr/src/lib/gss_mechs/mech_krb5/mech/disp_major_status.c
135
buffer->length = strlen(str);
usr/src/lib/gss_mechs/mech_krb5/mech/disp_major_status.c
136
buffer->value = str;
usr/src/lib/gss_mechs/mech_krb5/mech/disp_major_status.c
148
const char *str;
usr/src/lib/gss_mechs/mech_krb5/mech/disp_major_status.c
150
if ((str = GSS_CALLING_ERROR_STR(code))) {
usr/src/lib/gss_mechs/mech_krb5/mech/disp_major_status.c
151
if (! g_make_string_buffer(str, status_string)) {
usr/src/lib/gss_mechs/mech_krb5/mech/disp_major_status.c
173
const char *str;
usr/src/lib/gss_mechs/mech_krb5/mech/disp_major_status.c
175
if ((str = GSS_ROUTINE_ERROR_STR(code))) {
usr/src/lib/gss_mechs/mech_krb5/mech/disp_major_status.c
176
if (! g_make_string_buffer(str, status_string)) {
usr/src/lib/gss_mechs/mech_krb5/mech/disp_major_status.c
198
const char *str;
usr/src/lib/gss_mechs/mech_krb5/mech/disp_major_status.c
200
if ((str = GSS_SINFO_STR(code))) {
usr/src/lib/gss_mechs/mech_krb5/mech/disp_major_status.c
201
if (! g_make_string_buffer(str, status_string)) {
usr/src/lib/gss_mechs/mech_krb5/mech/disp_name.c
35
char *str;
usr/src/lib/gss_mechs/mech_krb5/mech/disp_name.c
53
(krb5_principal) input_name, &str))) {
usr/src/lib/gss_mechs/mech_krb5/mech/disp_name.c
60
if (! g_make_string_buffer(str, output_name_buffer)) {
usr/src/lib/gss_mechs/mech_krb5/mech/disp_name.c
61
krb5_free_unparsed_name(context, str);
usr/src/lib/gss_mechs/mech_krb5/mech/disp_name.c
68
krb5_free_unparsed_name(context, str);
usr/src/lib/gss_mechs/mech_krb5/mech/export_name.c
106
memcpy(cp, str, length);
usr/src/lib/gss_mechs/mech_krb5/mech/export_name.c
108
free(str);
usr/src/lib/gss_mechs/mech_krb5/mech/export_name.c
40
char *str, *cp;
usr/src/lib/gss_mechs/mech_krb5/mech/export_name.c
74
&str))) {
usr/src/lib/gss_mechs/mech_krb5/mech/export_name.c
83
length = strlen(str);
usr/src/lib/gss_mechs/mech_krb5/mech/export_name.c
87
free(str);
usr/src/lib/gss_mechs/mech_krb5/mech/util_buffer.c
34
int g_make_string_buffer(str, buffer)
usr/src/lib/gss_mechs/mech_krb5/mech/util_buffer.c
35
const char *str;
usr/src/lib/gss_mechs/mech_krb5/mech/util_buffer.c
38
buffer->length = strlen(str);
usr/src/lib/gss_mechs/mech_krb5/mech/util_buffer.c
45
strcpy(buffer->value, str);
usr/src/lib/gss_mechs/mech_krb5/mech/util_dup.c
30
char * g_strdup(str)
usr/src/lib/gss_mechs/mech_krb5/mech/util_dup.c
31
char *str;
usr/src/lib/gss_mechs/mech_krb5/mech/util_dup.c
35
if ((ret = (char *) xmalloc(strlen(str)+1)) == NULL)
usr/src/lib/gss_mechs/mech_krb5/mech/util_dup.c
38
strcpy(ret, str);
usr/src/lib/gss_mechs/mech_krb5/mech/util_errmap.c
106
gss_buffer_desc str;
usr/src/lib/gss_mechs/mech_krb5/mech/util_errmap.c
124
if (generic_gss_oid_to_str(&minor, &value.mech, &str)) {
usr/src/lib/gss_mechs/mech_krb5/mech/util_errmap.c
130
if (!strcmp(str.value, mechnames[i].oidstr) && mechnames[i].name != 0) {
usr/src/lib/gss_mechs/mech_krb5/mech/util_errmap.c
136
fprintf(f, "%s", (char *) str.value);
usr/src/lib/gss_mechs/mech_krb5/mech/util_errmap.c
137
generic_gss_release_buffer(&minor, &str);
usr/src/lib/gss_mechs/mech_krb5/profile/prof_get.c
104
if (!strcmp(*cpp, str))
usr/src/lib/gss_mechs/mech_krb5/profile/prof_get.c
454
profile_release_string(char *str)
usr/src/lib/gss_mechs/mech_krb5/profile/prof_get.c
456
free(str);
usr/src/lib/gss_mechs/mech_krb5/profile/prof_get.c
70
errcode_t add_to_list(struct profile_string_list *list, const char *str)
usr/src/lib/gss_mechs/mech_krb5/profile/prof_get.c
83
newstr = malloc(strlen(str)+1);
usr/src/lib/gss_mechs/mech_krb5/profile/prof_get.c
86
strcpy(newstr, str);
usr/src/lib/gss_mechs/mech_krb5/profile/prof_get.c
96
static int is_list_member(struct profile_string_list *list, const char *str)
usr/src/lib/gss_mechs/mech_krb5/profile/prof_int.h
280
errcode_t add_to_list(struct profile_string_list *list, const char *str);
usr/src/lib/gss_mechs/mech_krb5/profile/prof_parse.c
318
static int need_double_quotes(char *str)
usr/src/lib/gss_mechs/mech_krb5/profile/prof_parse.c
320
if (!str)
usr/src/lib/gss_mechs/mech_krb5/profile/prof_parse.c
322
if (str[0] == '\0')
usr/src/lib/gss_mechs/mech_krb5/profile/prof_parse.c
324
if (isspace((int) (*str)) ||isspace((int) (*(str + strlen(str) - 1))))
usr/src/lib/gss_mechs/mech_krb5/profile/prof_parse.c
326
if (strchr(str, '\n') || strchr(str, '\t') || strchr(str, '\b'))
usr/src/lib/gss_mechs/mech_krb5/profile/prof_parse.c
335
static void output_quoted_string(char *str, void (*cb)(const char *,void *),
usr/src/lib/gss_mechs/mech_krb5/profile/prof_parse.c
342
if (!str) {
usr/src/lib/gss_mechs/mech_krb5/profile/prof_parse.c
347
while ((ch = *str++)) {
usr/src/lib/gss_mechs/mech_krb5/profile/prof_parse.c
44
static void parse_quoted_string(char *str)
usr/src/lib/gss_mechs/mech_krb5/profile/prof_parse.c
444
static void dump_profile_to_file_cb(const char *str, void *data)
usr/src/lib/gss_mechs/mech_krb5/profile/prof_parse.c
446
fputs(str, data);
usr/src/lib/gss_mechs/mech_krb5/profile/prof_parse.c
48
to = from = str;
usr/src/lib/gss_mechs/mech_krb5/profile/prof_parse.c
482
static void dump_profile_to_buffer_cb(const char *str, void *data)
usr/src/lib/gss_mechs/mech_krb5/profile/prof_parse.c
484
add_data_to_buffer((struct prof_buf *)data, str, strlen(str));
usr/src/lib/gss_mechs/mech_krb5/profile/prof_parse.c
50
for (to = from = str; *from && *from != '"'; to++, from++) {
usr/src/lib/gss_mechs/mech_krb5/support/errors.c
61
char *str = NULL;
usr/src/lib/gss_mechs/mech_krb5/support/errors.c
62
if (vasprintf(&str, fmt, args) >= 0 && str != NULL) {
usr/src/lib/gss_mechs/mech_krb5/support/errors.c
63
ep->msg = str;
usr/src/lib/gss_mechs/mech_krb5/support/utf8.c
453
char *krb5int_utf8_strchr(const char *str, const char *chr)
usr/src/lib/gss_mechs/mech_krb5/support/utf8.c
459
for ( ; *str != '\0'; KRB5_UTF8_INCR(str)) {
usr/src/lib/gss_mechs/mech_krb5/support/utf8.c
460
if (krb5int_utf8_to_ucs4(str, &chs) == 0 && chs == ch)
usr/src/lib/gss_mechs/mech_krb5/support/utf8.c
461
return (char *)str;
usr/src/lib/gss_mechs/mech_krb5/support/utf8.c
468
size_t krb5int_utf8_strcspn(const char *str, const char *set)
usr/src/lib/gss_mechs/mech_krb5/support/utf8.c
473
for (cstr = str; *cstr != '\0'; KRB5_UTF8_INCR(cstr)) {
usr/src/lib/gss_mechs/mech_krb5/support/utf8.c
477
return cstr - str;
usr/src/lib/gss_mechs/mech_krb5/support/utf8.c
481
return cstr - str;
usr/src/lib/gss_mechs/mech_krb5/support/utf8.c
485
size_t krb5int_utf8_strspn(const char *str, const char *set)
usr/src/lib/gss_mechs/mech_krb5/support/utf8.c
490
for (cstr = str; *cstr != '\0'; KRB5_UTF8_INCR(cstr)) {
usr/src/lib/gss_mechs/mech_krb5/support/utf8.c
493
return cstr - str;
usr/src/lib/gss_mechs/mech_krb5/support/utf8.c
500
return cstr - str;
usr/src/lib/gss_mechs/mech_krb5/support/utf8.c
504
char *krb5int_utf8_strpbrk(const char *str, const char *set)
usr/src/lib/gss_mechs/mech_krb5/support/utf8.c
509
for ( ; *str != '\0'; KRB5_UTF8_INCR(str)) {
usr/src/lib/gss_mechs/mech_krb5/support/utf8.c
511
if (krb5int_utf8_to_ucs4(str, &chstr) == 0
usr/src/lib/gss_mechs/mech_krb5/support/utf8.c
513
return (char *)str;
usr/src/lib/gss_mechs/mech_krb5/support/utf8.c
521
char *krb5int_utf8_strtok(char *str, const char *sep, char **last)
usr/src/lib/gss_mechs/mech_krb5/support/utf8.c
529
begin = str ? str : *last;
usr/src/lib/hal/libhal/common/libhal.c
153
char *str;
usr/src/lib/hal/libhal/common/libhal.c
164
str = strdup (value);
usr/src/lib/hal/libhal/common/libhal.c
165
if (str == NULL)
usr/src/lib/hal/libhal/common/libhal.c
168
buffer[count] = str;
usr/src/lib/hal/libhal/common/libhal.c
202
libhal_free_string (char *str)
usr/src/lib/hal/libhal/common/libhal.c
204
if (str != NULL) {
usr/src/lib/hal/libhal/common/libhal.c
205
free (str);
usr/src/lib/hal/libhal/common/libhal.c
206
str = NULL;
usr/src/lib/hal/libhal/common/libhal.h
499
void libhal_free_string (char *str);
usr/src/lib/iconv_modules/common/common_utf8.c
63
is_valid_utf8_string(uchar_t *str, int utf8_len)
usr/src/lib/iconv_modules/common/common_utf8.c
66
uchar_t *ib = str;
usr/src/lib/iconv_modules/common/common_utf8.c
93
convert_utf8_to_ucs4(str, len, &unicode);
usr/src/lib/json_nvlist/json_nvlist.c
308
const char *str;
usr/src/lib/json_nvlist/json_nvlist.c
314
str = custr_cstr(s->s_collect);
usr/src/lib/json_nvlist/json_nvlist.c
315
if (strcmp(str, "true") == 0) {
usr/src/lib/json_nvlist/json_nvlist.c
318
} else if (strcmp(str, "false") == 0) {
usr/src/lib/json_nvlist/json_nvlist.c
321
} else if (strcmp(str, "null") == 0) {
usr/src/lib/krb5/kadm5/srv/server_misc.c
62
reverse(str)
usr/src/lib/krb5/kadm5/srv/server_misc.c
63
char *str;
usr/src/lib/krb5/kadm5/srv/server_misc.c
69
i = strlen(str);
usr/src/lib/krb5/kadm5/srv/server_misc.c
72
p = str+i-1;
usr/src/lib/krb5/kadm5/srv/server_misc.c
84
lower(str)
usr/src/lib/krb5/kadm5/srv/server_misc.c
85
char *str;
usr/src/lib/krb5/kadm5/srv/server_misc.c
90
for (cp = str; *cp; cp++) {
usr/src/lib/krb5/plugins/kdb/db2/kdb_db2.c
2031
krb5_db2_prepend_err_str(krb5_context ctx, const char *str, krb5_error_code err,
usr/src/lib/krb5/plugins/kdb/db2/kdb_db2.c
2037
krb5_set_error_message (ctx, err, "%s %s", str, omsg);
usr/src/lib/krb5/plugins/kdb/ldap/libkdb_ldap/kdb_ldap.c
507
prepend_err_str (krb5_context ctx, const char *str, krb5_error_code err,
usr/src/lib/krb5/plugins/kdb/ldap/libkdb_ldap/kdb_ldap.c
513
krb5_set_error_message (ctx, err, "%s %s", str, omsg);
usr/src/lib/krb5/plugins/kdb/ldap/libkdb_ldap/kdb_ldap.h
141
#define CHECK_CLASS_VALIDITY(st, mask, str) \
usr/src/lib/krb5/plugins/kdb/ldap/libkdb_ldap/kdb_ldap.h
146
prepend_err_str(context, str, st, st); \
usr/src/lib/lib9p/common/sbuf/sbuf.h
45
#define sbuf_cat(s, str) custr_append((s)->s_custr, (str))
usr/src/lib/lib9p/common/utils.c
278
l9p_describe_bits(const char *str, uint64_t value, const char *oc,
usr/src/lib/lib9p/common/utils.c
285
if (str != NULL)
usr/src/lib/lib9p/common/utils.c
286
sbuf_printf(sb, "%s0x%" PRIx64, str, value);
usr/src/lib/lib9p/common/utils.c
323
l9p_describe_fid(const char *str, uint32_t fid, struct sbuf *sb)
usr/src/lib/lib9p/common/utils.c
326
sbuf_printf(sb, "%s%" PRIu32, str, fid);
usr/src/lib/lib9p/common/utils.c
333
l9p_describe_ugid(const char *str, uint32_t ugid, struct sbuf *sb)
usr/src/lib/lib9p/common/utils.c
336
sbuf_printf(sb, "%s%" PRIu32, str, ugid);
usr/src/lib/lib9p/common/utils.c
345
l9p_describe_mode(const char *str, uint32_t mode, struct sbuf *sb)
usr/src/lib/lib9p/common/utils.c
360
(void) l9p_describe_bits(str, mode, "[]", bits, sb);
usr/src/lib/lib9p/common/utils.c
367
l9p_describe_lflags(const char *str, uint32_t flags, struct sbuf *sb)
usr/src/lib/lib9p/common/utils.c
396
(void) l9p_describe_bits(str, flags, "[]", bits, sb);
usr/src/lib/lib9p/common/utils.c
405
l9p_describe_name(const char *str, char *name, struct sbuf *sb)
usr/src/lib/lib9p/common/utils.c
410
sbuf_printf(sb, "%s<null>", str);
usr/src/lib/lib9p/common/utils.c
417
sbuf_printf(sb, "%s\"%.*s...\"", str, 32 - 3, name);
usr/src/lib/lib9p/common/utils.c
419
sbuf_printf(sb, "%s\"%.*s\"", str, (int)len, name);
usr/src/lib/lib9p/common/utils.c
501
l9p_describe_perm(const char *str, uint32_t mode, struct sbuf *sb)
usr/src/lib/lib9p/common/utils.c
507
sbuf_printf(sb, "%s0x%" PRIx32 "<%.9s>", str, mode, pbuf + 1);
usr/src/lib/lib9p/common/utils.c
509
sbuf_printf(sb, "%s<%.9s>", str, pbuf + 1);
usr/src/lib/lib9p/common/utils.c
517
l9p_describe_ext_perm(const char *str, uint32_t mode, struct sbuf *sb)
usr/src/lib/lib9p/common/utils.c
536
sbuf_printf(sb, "%s[", str);
usr/src/lib/lib9p/common/utils.c
548
l9p_describe_lperm(const char *str, uint32_t mode, struct sbuf *sb)
usr/src/lib/lib9p/common/utils.c
566
sbuf_printf(sb, "%s[", str);
usr/src/lib/lib9p/common/utils.c
577
l9p_describe_qid(const char *str, struct l9p_qid *qid, struct sbuf *sb)
usr/src/lib/lib9p/common/utils.c
601
sbuf_cat(sb, str);
usr/src/lib/lib9p/common/utils.c
611
l9p_describe_size(const char *str, uint64_t size, struct sbuf *sb)
usr/src/lib/lib9p/common/utils.c
614
sbuf_printf(sb, "%s%" PRIu64, str, size);
usr/src/lib/lib9p/common/utils.c
621
l9p_describe_l9stat(const char *str, struct l9p_stat *st,
usr/src/lib/lib9p/common/utils.c
628
sbuf_printf(sb, "%stype=0x%04" PRIx32 " dev=0x%08" PRIx32, str,
usr/src/lib/lib9p/common/utils.c
660
l9p_describe_statfs(const char *str, struct l9p_statfs *st, struct sbuf *sb)
usr/src/lib/lib9p/common/utils.c
668
str, (u_long)st->type, (u_long)st->bsize, st->blocks,
usr/src/lib/lib9p/common/utils.c
788
l9p_describe_unlinkat_flags(const char *str, uint32_t flags, struct sbuf *sb)
usr/src/lib/lib9p/common/utils.c
795
(void) l9p_describe_bits(str, flags, "[]", bits, sb);
usr/src/lib/libadm/common/ckyorn.c
51
ckyorn_val(char *str)
usr/src/lib/libadm/common/ckyorn.c
57
for (pt = temp, i = 0; *str && i < TMPSIZ; i++) {
usr/src/lib/libadm/common/ckyorn.c
58
*pt++ = tolower((unsigned char)*str++);
usr/src/lib/libadm/common/getdev.c
407
char *str; /* Pointer to alloc'd space for name */
usr/src/lib/libadm/common/getdev.c
441
if (str = malloc(strlen(deventry)+1)) {
usr/src/lib/libadm/common/getdev.c
449
new->name = strcpy(str, deventry);
usr/src/lib/libadm/common/getdev.c
495
char *str; /* Ptr to malloc()ed string space */
usr/src/lib/libadm/common/getdev.c
525
if (str = malloc(strlen(*pp)+1)) {
usr/src/lib/libadm/common/getdev.c
528
(void) strcpy(str, *pp);
usr/src/lib/libadm/common/getdev.c
531
if (p = strchr(str+1, '=')) {
usr/src/lib/libadm/common/getdev.c
540
psrch->name = str;
usr/src/lib/libadm/common/getdev.c
545
else if (p = strchr(str+1, ':')) {
usr/src/lib/libadm/common/getdev.c
554
psrch->name = str;
usr/src/lib/libadm/common/puttext.c
47
puttext(FILE *fp, char *str, int lmarg, int rmarg)
usr/src/lib/libadm/common/puttext.c
61
if (!str || !*str)
usr/src/lib/libadm/common/puttext.c
64
len = strlen(str);
usr/src/lib/libadm/common/puttext.c
69
ret = mbstowcs(wstr, (const char *)str, len + 1);
usr/src/lib/libadutils/common/adutils.c
163
char *str, *cp;
usr/src/lib/libadutils/common/adutils.c
184
if ((cp = str = malloc(len)) == NULL)
usr/src/lib/libadutils/common/adutils.c
187
rlen = snprintf(str, len, "S-1-%llu", sidp->authority);
usr/src/lib/libadutils/common/adutils.c
200
return (str);
usr/src/lib/libadutils/common/ldap_ping.c
230
decode_name(uchar_t *base, uchar_t *cp, char *str)
usr/src/lib/libadutils/common/ldap_ping.c
246
*str++ = *cp++;
usr/src/lib/libadutils/common/ldap_ping.c
247
*str++ = '.';
usr/src/lib/libadutils/common/ldap_ping.c
250
*(str-1) = '\0';
usr/src/lib/libadutils/common/ldap_ping.c
252
*str = '\0';
usr/src/lib/libbe/common/be_list.c
582
char *str = NULL, *ds_path = NULL;
usr/src/lib/libbe/common/be_list.c
585
ds_path = str = strdup(zfs_get_name(zhp));
usr/src/lib/libbe/common/be_list.c
590
str = str + (strlen(be_container_ds) + 1);
usr/src/lib/libbe/common/be_list.c
593
if (!be_valid_be_name(str))
usr/src/lib/libbe/common/be_list.c
613
if ((ret = be_get_ss_data(zhp, str, snapshot,
usr/src/lib/libbe/common/be_list.c
623
} else if (strchr(str, '/') == NULL) {
usr/src/lib/libbe/common/be_list.c
641
ret = be_get_zone_node_data(cb->be_nodes, str);
usr/src/lib/libbe/common/be_list.c
646
if ((ret = be_get_node_data(zhp, cb->be_nodes, str,
usr/src/lib/libbe/common/be_list.c
651
} else if (strchr(str, '/') != NULL && !zone_be) {
usr/src/lib/libbe/common/be_list.c
661
if ((ret = be_get_ds_data(zhp, str,
usr/src/lib/libbe/common/be_utils.c
813
char str[BUFSIZ];
usr/src/lib/libbe/common/be_utils.c
819
(void) snprintf(str, BUFSIZ, "title %s\n",
usr/src/lib/libbe/common/be_utils.c
821
entries[num_lines] = strdup(str);
usr/src/lib/libbe/common/be_utils.c
837
(void) snprintf(str, BUFSIZ, "bootfs %s\n",
usr/src/lib/libbe/common/be_utils.c
839
entries[num_lines] = strdup(str);
usr/src/lib/libc/port/aio/aio_alloc.c
418
char *str;
usr/src/lib/libc/port/aio/aio_alloc.c
421
if ((str = getenv("_AIO_MIN_WORKERS")) != NULL) {
usr/src/lib/libc/port/aio/aio_alloc.c
422
if ((_min_workers = atoi(str)) <= 0)
usr/src/lib/libc/port/aio/aio_alloc.c
425
if ((str = getenv("_AIO_MAX_WORKERS")) != NULL) {
usr/src/lib/libc/port/aio/aio_alloc.c
426
if ((_max_workers = atoi(str)) <= 0)
usr/src/lib/libc/port/aio/aio_alloc.c
431
if ((str = getenv("_AIO_EXIT_INFO")) != NULL && atoi(str) != 0)
usr/src/lib/libc/port/gen/fmtmsg.c
345
noesc(char *str)
usr/src/lib/libc/port/gen/fmtmsg.c
351
p = str;
usr/src/lib/libc/port/gen/fmtmsg.c
369
return (str);
usr/src/lib/libc/port/gen/isaexec.c
101
if ((str = strrchr(pathname, '/')) != NULL) {
usr/src/lib/libc/port/gen/isaexec.c
102
*++str = '\0';
usr/src/lib/libc/port/gen/isaexec.c
103
fname = execname + (str - pathname);
usr/src/lib/libc/port/gen/isaexec.c
116
str = strtok_r(isalist, " ", &lasts);
usr/src/lib/libc/port/gen/isaexec.c
119
(void) strcpy(pathname + len, str);
usr/src/lib/libc/port/gen/isaexec.c
142
} while ((str = strtok_r(NULL, " ", &lasts)) != NULL);
usr/src/lib/libc/port/gen/isaexec.c
53
char *str;
usr/src/lib/libc/port/gen/mkstemp.c
113
if ((errno != EEXIST) || (*str != 'X')) {
usr/src/lib/libc/port/gen/mkstemp.c
68
char *tstr, *str, *mkret;
usr/src/lib/libc/port/gen/mkstemp.c
80
str = tstr + (len - 1 - slen);
usr/src/lib/libc/port/gen/mkstemp.c
89
if (*str == 'X') { /* If no trailing X's don't call mktemp. */
usr/src/lib/libc/port/gen/nss_common.c
910
char *str; /* _nsw_getoneconfig() clobbers its argument */
usr/src/lib/libc/port/gen/nss_common.c
912
if ((str = libc_strdup(s->p.default_config)) != 0) {
usr/src/lib/libc/port/gen/nss_common.c
913
config = _nsw_getoneconfig_v1(config_name, str, &err);
usr/src/lib/libc/port/gen/nss_common.c
914
libc_free(str);
usr/src/lib/libc/port/gen/strnlen.c
36
strnlen(const char *str, size_t maxlen)
usr/src/lib/libc/port/gen/strnlen.c
40
ptr = memchr(str, 0, maxlen);
usr/src/lib/libc/port/gen/strnlen.c
44
return (ptr - str);
usr/src/lib/libc/port/i18n/gettext_gnu.c
867
conv_macro(const char *str, uint32_t len, uint32_t *lenp)
usr/src/lib/libc/port/i18n/gettext_gnu.c
875
if (*str == 'I') {
usr/src/lib/libc/port/i18n/gettext_gnu.c
883
if (len <= 4 || strncmp(str, "PRI", 3) != 0)
usr/src/lib/libc/port/i18n/gettext_gnu.c
886
str += 3;
usr/src/lib/libc/port/i18n/gettext_gnu.c
890
if (pri_table[i].type == *str)
usr/src/lib/libc/port/i18n/gettext_gnu.c
898
str++;
usr/src/lib/libc/port/i18n/gettext_gnu.c
901
if (isdigit((unsigned char)*str)) {
usr/src/lib/libc/port/i18n/gettext_gnu.c
909
str, special_table[i].nlen) == 0) {
usr/src/lib/libc/port/i18n/gettext_gnu.c
917
str += special_table[i].nlen;
usr/src/lib/libc/port/i18n/gettext_gnu.c
921
if (!isdigit((unsigned char)*str))
usr/src/lib/libc/port/i18n/gettext_gnu.c
923
num = strtol(str, &next, 10);
usr/src/lib/libc/port/i18n/gettext_gnu.c
931
str = next;
usr/src/lib/libc/port/i18n/gettext_gnu.c
933
if (*str != '\0') {
usr/src/lib/libc/port/i18n/gettext_util.c
253
get_hashid(const char *str, uint32_t *len)
usr/src/lib/libc/port/i18n/gettext_util.c
255
const unsigned char *p = (unsigned char *)str;
usr/src/lib/libc/port/i18n/gettext_util.c
269
*len = (uint32_t)(p - (unsigned char *)str);
usr/src/lib/libc/port/i18n/wcsnlen.c
36
wcsnlen(const wchar_t *str, size_t maxlen)
usr/src/lib/libc/port/i18n/wcsnlen.c
38
const wchar_t *ptr = str;
usr/src/lib/libc/port/i18n/wcsnlen.c
49
return (ptr - str);
usr/src/lib/libc/port/i18n/wcstol.c
102
if (base == 16 && c == L'0' && iswxdigit(str[2]) &&
usr/src/lib/libc/port/i18n/wcstol.c
103
(str[1] == L'x' || str[1] == L'X')) {
usr/src/lib/libc/port/i18n/wcstol.c
104
c = *(str += 2); /* skip over leading "0x" or "0X" */
usr/src/lib/libc/port/i18n/wcstol.c
115
for (; iswalnum(c = *++str) && (xx = DIGIT(c)) < base; ) {
usr/src/lib/libc/port/i18n/wcstol.c
125
*ptr = (wchar_t *)str;
usr/src/lib/libc/port/i18n/wcstol.c
129
while (iswalnum(c = *++str) && (xx = DIGIT(c)) < base)
usr/src/lib/libc/port/i18n/wcstol.c
133
*ptr = (wchar_t *)str;
usr/src/lib/libc/port/i18n/wcstol.c
54
wcstoll(const wchar_t *_RESTRICT_KYWD str, wchar_t **_RESTRICT_KYWD ptr,
usr/src/lib/libc/port/i18n/wcstol.c
58
wcstol(const wchar_t *str, wchar_t **ptr, int base)
usr/src/lib/libc/port/i18n/wcstol.c
67
*ptr = (wchar_t *)str; /* in case no number is formed */
usr/src/lib/libc/port/i18n/wcstol.c
73
if (!iswalnum(c = *str)) {
usr/src/lib/libc/port/i18n/wcstol.c
75
c = *++str;
usr/src/lib/libc/port/i18n/wcstol.c
82
c = *++str;
usr/src/lib/libc/port/i18n/wcstol.c
88
else if (str[1] == L'x' || str[1] == L'X')
usr/src/lib/libc/port/i18n/wcstoul.c
100
(str[1] == L'x' || str[1] == L'X')) {
usr/src/lib/libc/port/i18n/wcstoul.c
101
c = *(str += 2); /* skip over leading "0x" or "0X" */
usr/src/lib/libc/port/i18n/wcstoul.c
106
for (; iswalnum(c = *++str) && (xx = DIGIT(c)) < base; ) {
usr/src/lib/libc/port/i18n/wcstoul.c
116
*ptr = (wchar_t *)str;
usr/src/lib/libc/port/i18n/wcstoul.c
120
while (iswalnum(c = *++str) && (xx = DIGIT(c)) < base)
usr/src/lib/libc/port/i18n/wcstoul.c
124
*ptr = (wchar_t *)str;
usr/src/lib/libc/port/i18n/wcstoul.c
52
wcstoull(const wchar_t *_RESTRICT_KYWD str, wchar_t **_RESTRICT_KYWD ptr,
usr/src/lib/libc/port/i18n/wcstoul.c
56
wcstoul(const wchar_t *str, wchar_t **ptr, int base)
usr/src/lib/libc/port/i18n/wcstoul.c
65
*ptr = (wchar_t *)str; /* in case no number is formed */
usr/src/lib/libc/port/i18n/wcstoul.c
71
if (!iswalnum(c = *str)) {
usr/src/lib/libc/port/i18n/wcstoul.c
73
c = *++str;
usr/src/lib/libc/port/i18n/wcstoul.c
80
c = *++str;
usr/src/lib/libc/port/i18n/wcstoul.c
86
else if (str[1] == L'x' || str[1] == L'X')
usr/src/lib/libc/port/i18n/wcstoul.c
99
if (base == 16 && c == L'0' && iswxdigit(str[2]) &&
usr/src/lib/libc/port/i18n/wstol.c
37
wstol(const wchar_t *str, wchar_t **ptr, int base)
usr/src/lib/libc/port/i18n/wstol.c
39
return (wcstol(str, ptr, base));
usr/src/lib/libc/port/i18n/wstoll.c
54
wstoll(const wchar_t *str, wchar_t **ptr, int base)
usr/src/lib/libc/port/i18n/wstoll.c
56
return (wcstoll(str, ptr, base));
usr/src/lib/libc/port/locale/c16rtomb.c
32
c16rtomb(char *restrict str, char16_t c16, mbstate_t *restrict ps)
usr/src/lib/libc/port/locale/c16rtomb.c
41
if (str == NULL) {
usr/src/lib/libc/port/locale/c16rtomb.c
77
return (c32rtomb(str, c32, ps));
usr/src/lib/libc/port/locale/c32rtomb.c
33
c32rtomb(char *restrict str, char32_t c32, mbstate_t *restrict ps)
usr/src/lib/libc/port/locale/c32rtomb.c
45
if (str == NULL) {
usr/src/lib/libc/port/locale/c32rtomb.c
49
return (wcrtomb_l(str, (wchar_t)c32, ps, uselocale((locale_t)0)));
usr/src/lib/libc/port/locale/collate.c
227
compar = *key - *p->str;
usr/src/lib/libc/port/locale/collate.c
229
l = wcsnlen(p->str, COLLATE_STR_LEN);
usr/src/lib/libc/port/locale/collate.c
230
compar = wcsncmp(key, p->str, l);
usr/src/lib/libc/port/locale/collatefile.h
94
wchar_t str[COLLATE_STR_LEN];
usr/src/lib/libc/port/locale/fix_grouping.c
47
__fix_locale_grouping_str(const char *str)
usr/src/lib/libc/port/locale/fix_grouping.c
52
if (str == NULL || *str == '\0') {
usr/src/lib/libc/port/locale/fix_grouping.c
56
for (src = (char *)str, dst = (char *)str; *src != '\0'; src++) {
usr/src/lib/libc/port/locale/fix_grouping.c
84
return ((dst == (char *)str) ? nogrouping : str);
usr/src/lib/libc/port/locale/fix_grouping.c
88
return (str);
usr/src/lib/libc/port/locale/gb2312.c
74
_GB2312_check(const char *str, size_t n)
usr/src/lib/libc/port/locale/gb2312.c
76
const uchar_t *s = (const uchar_t *)str;
usr/src/lib/libc/port/locale/getdate.c
128
rp = strptime(str, line, rtmp);
usr/src/lib/libc/port/locale/getdate.c
65
getdate(const char *str)
usr/src/lib/libc/port/locale/lmonetary.c
81
cnv(const char *str)
usr/src/lib/libc/port/locale/lmonetary.c
83
int i = strtol(str, NULL, 10);
usr/src/lib/libc/port/locale/mbrtoc16.c
41
mbrtoc16(char16_t *restrict pc16, const char *restrict str, size_t len,
usr/src/lib/libc/port/locale/mbrtoc16.c
53
if (str == NULL) {
usr/src/lib/libc/port/locale/mbrtoc16.c
55
str = "";
usr/src/lib/libc/port/locale/mbrtoc16.c
68
ret = mbrtowc_l(&wc, str, len, ps, uselocale(NULL));
usr/src/lib/libc/port/locale/mbrtoc32.c
31
mbrtoc32(char32_t *restrict pc32, const char *restrict str, size_t len,
usr/src/lib/libc/port/locale/mbrtoc32.c
38
if (str == NULL) {
usr/src/lib/libc/port/locale/mbrtoc32.c
40
str = "";
usr/src/lib/libc/port/locale/mbrtoc32.c
44
return (mbrtowc_l((wchar_t *)pc32, str, len, ps,
usr/src/lib/libc/port/locale/strftime.c
521
_add(const char *str, char *pt, const char *const ptlim)
usr/src/lib/libc/port/locale/strftime.c
523
while (pt < ptlim && (*pt = *str++) != '\0')
usr/src/lib/libc/port/print/asprintf.c
37
vasprintf(char **str, const char *format, va_list ap)
usr/src/lib/libc/port/print/asprintf.c
44
*str = NULL;
usr/src/lib/libc/port/print/asprintf.c
59
*str = newstr;
usr/src/lib/libc/port/print/asprintf.c
81
*str = newstr;
usr/src/lib/libc/port/print/asprintf.c
89
asprintf(char **str, const char *format, ...)
usr/src/lib/libc/port/print/asprintf.c
94
*str = NULL;
usr/src/lib/libc/port/print/asprintf.c
96
ret = vasprintf(str, format, ap);
usr/src/lib/libc/port/regex/engine.c
141
#define NOTE(str) { if (m->eflags®_TRACE) printf("=%s\n", (str)); }
usr/src/lib/libc/port/regex/glob.c
1215
g_opendir(wcat_t *str, glob_t *pglob)
usr/src/lib/libc/port/regex/glob.c
1219
if (str->w_wc == EOS)
usr/src/lib/libc/port/regex/glob.c
1222
if (g_Ctoc(str, buf, sizeof (buf)))
usr/src/lib/libc/port/regex/glob.c
1257
g_strchr(const wcat_t *str, wchar_t ch)
usr/src/lib/libc/port/regex/glob.c
1260
if (str->w_at == 0 && str->w_wc == ch)
usr/src/lib/libc/port/regex/glob.c
1261
return ((wcat_t *)str);
usr/src/lib/libc/port/regex/glob.c
1262
} while ((str++)->w_wc != EOS);
usr/src/lib/libc/port/regex/glob.c
1267
g_Ctoc(const wcat_t *str, char *buf, uint_t len)
usr/src/lib/libc/port/regex/glob.c
1273
w = (str++)->w_wc;
usr/src/lib/libc/port/regex/wordexp.c
393
append(wordexp_t *wp, char *str)
usr/src/lib/libc/port/regex/wordexp.c
412
if ((cp = strdup(str)) == NULL)
usr/src/lib/libc/port/stdio/doscan.c
1125
char str[MB_LEN_MAX + 1]; /* include null termination */
usr/src/lib/libc/port/stdio/doscan.c
1138
i = wctomb(str, (wchar_t)wch);
usr/src/lib/libc/port/stdio/doscan.c
1142
str[i] = '\0';
usr/src/lib/libc/port/stdio/doscan.c
1143
if (fnmatch((const char *)brstr, (const char *)str,
usr/src/lib/libc/port/stdio/doscan.c
1189
char str[MB_LEN_MAX + 1]; /* include null termination */
usr/src/lib/libc/port/stdio/doscan.c
1196
p = str;
usr/src/lib/libc/port/stdio/doscan.c
1197
i = wctomb(str, (wchar_t)wch);
usr/src/lib/libc/port/stdio/doscan.c
1201
str[i] = '\0';
usr/src/lib/libc/port/stdio/doscan.c
1202
if (fnmatch((const char *)brstr, (const char *)str,
usr/src/lib/libc/port/stdio/scanf.c
125
_sscanf_c89(const char *str, const char *fmt, ...)
usr/src/lib/libc/port/stdio/scanf.c
131
ret = _vsscanf_c89(str, fmt, ap);
usr/src/lib/libc/port/stdio/scanf.c
73
sscanf(const char *str, const char *fmt, ...)
usr/src/lib/libc/port/stdio/scanf.c
79
ret = vsscanf(str, fmt, ap);
usr/src/lib/libc/port/stdio/vscanf.c
110
_vsscanf_c89(const char *str, const char *fmt, va_list ap)
usr/src/lib/libc/port/stdio/vscanf.c
112
vsscanf(const char *str, const char *fmt, va_list ap)
usr/src/lib/libc/port/stdio/vscanf.c
123
strbuf._ptr = strbuf._base = (unsigned char *)str;
usr/src/lib/libc/port/stdio/vscanf.c
124
strbuf._cnt = strlen(str);
usr/src/lib/libc/port/sys/zone.c
124
zone_get_id(const char *str, zoneid_t *zip)
usr/src/lib/libc/port/sys/zone.c
161
return (real_zone_get_id(str, zip));
usr/src/lib/libc/port/sys/zone.c
165
zoneid = (zoneid_t)strtol(str, &cp, 0);
usr/src/lib/libc/port/sys/zone.c
166
if (errno == 0 && cp != str && *cp == '\0' &&
usr/src/lib/libc/port/sys/zone.c
173
if ((zoneid = getzoneidbyname(str)) != -1) {
usr/src/lib/libcpc/common/libcpc.c
1054
const char *str;
usr/src/lib/libcpc/common/libcpc.c
1069
str = dgettext(TEXT_DOMAIN, errstr[subcode]);
usr/src/lib/libcpc/common/libcpc.c
1073
cpc->cpc_errfn(fn, subcode, str, ap);
usr/src/lib/libcpc/common/libcpc.c
1079
(void) fprintf(stderr, "libcpc: %s: %s", fn, str);
usr/src/lib/libcpc/common/libcpc_impl.h
129
char *str;
usr/src/lib/libcpc/common/subr.c
153
p->str = "";
usr/src/lib/libcpc/common/subr.c
187
if (strcmp(p->str, key) == 0)
usr/src/lib/libcpc/common/subr.c
194
p->str = key;
usr/src/lib/libcpc/common/subr.c
215
return (p->str);
usr/src/lib/libcryptoutil/common/cryptoutil.h
228
extern int pkcs11_parse_uri(const char *str, pkcs11_uri_t *uri);
usr/src/lib/libcryptoutil/common/mechstr.c
432
target.str = NULL;
usr/src/lib/libcryptoutil/common/mechstr.c
437
return (result->str);
usr/src/lib/libcryptoutil/common/mechstr.c
45
const char *str;
usr/src/lib/libcryptoutil/common/mechstr.c
480
for (i = 0; mapping[i].str; i++) {
usr/src/lib/libcryptoutil/common/mechstr.c
481
if (strcasecmp(&mapping[i].str[compare_off], mech_str) == 0) {
usr/src/lib/libcryptoutil/common/pkcs11_uri.c
126
pkcs11_parse_uri(const char *str, pkcs11_uri_t *uri)
usr/src/lib/libcryptoutil/common/pkcs11_uri.c
136
if (strncmp(str, PK11_URI_PREFIX, strlen(PK11_URI_PREFIX)) != 0)
usr/src/lib/libcryptoutil/common/pkcs11_uri.c
139
if ((str2 = strdup(str + strlen(PK11_URI_PREFIX))) == NULL)
usr/src/lib/libcryptoutil/common/pkcs11_uri.c
63
read_id(char *str, unsigned char *output, int out_len)
usr/src/lib/libcryptoutil/common/pkcs11_uri.c
68
len = strlen(str);
usr/src/lib/libcryptoutil/common/pkcs11_uri.c
77
if (sscanf(str + i, "%1x", &x1) != 1)
usr/src/lib/libcryptoutil/common/pkcs11_uri.c
81
if (sscanf(str + i, "%1x", &x2) == 1) {
usr/src/lib/libcryptoutil/common/pkcs11_uri.c
93
if (str[i] != ':')
usr/src/lib/libcurses/screen/V3.m_addstr.c
47
m_addstr(char *str)
usr/src/lib/libcurses/screen/V3.m_addstr.c
49
return (waddstr(stdscr, str));
usr/src/lib/libcurses/screen/_addstr.c
47
addstr(char *str)
usr/src/lib/libcurses/screen/_addstr.c
49
return (waddstr(stdscr, str));
usr/src/lib/libcurses/screen/_addwchnstr.c
38
addwchnstr(chtype *str, int n)
usr/src/lib/libcurses/screen/_addwchnstr.c
40
return (waddwchnstr(stdscr, str, n));
usr/src/lib/libcurses/screen/_addwchstr.c
38
addwchstr(chtype *str)
usr/src/lib/libcurses/screen/_addwchstr.c
40
return (waddwchstr(stdscr, str));
usr/src/lib/libcurses/screen/_getstr.c
47
getstr(char *str)
usr/src/lib/libcurses/screen/_getstr.c
49
return (wgetstr(stdscr, str));
usr/src/lib/libcurses/screen/_inwchnstr.c
38
inwchnstr(chtype *str, int n)
usr/src/lib/libcurses/screen/_inwchnstr.c
40
return (winwchnstr(stdscr, str, n));
usr/src/lib/libcurses/screen/_inwchstr.c
38
inwchstr(chtype *str)
usr/src/lib/libcurses/screen/_inwchstr.c
40
return (winwchstr(stdscr, str));
usr/src/lib/libcurses/screen/_mvaddstr.c
45
mvaddstr(int y, int x, char *str)
usr/src/lib/libcurses/screen/_mvaddstr.c
47
return (wmove(stdscr, y, x) == ERR ? ERR : waddstr(stdscr, str));
usr/src/lib/libcurses/screen/_mvaddwchnstr.c
38
mvaddwchnstr(int y, int x, chtype *str, int n)
usr/src/lib/libcurses/screen/_mvaddwchnstr.c
40
return (mvwaddwchnstr(stdscr, y, x, str, n));
usr/src/lib/libcurses/screen/_mvaddwchstr.c
38
mvaddwchstr(int y, int x, chtype *str)
usr/src/lib/libcurses/screen/_mvaddwchstr.c
40
return (mvwaddwchstr(stdscr, y, x, str));
usr/src/lib/libcurses/screen/_mvgetstr.c
47
mvgetstr(int y, int x, char *str)
usr/src/lib/libcurses/screen/_mvgetstr.c
49
return (wmove(stdscr, y, x) == ERR ? ERR : wgetstr(stdscr, str));
usr/src/lib/libcurses/screen/_mvinwchnstr.c
38
mvinwchnstr(int y, int x, chtype *str, int n)
usr/src/lib/libcurses/screen/_mvinwchnstr.c
40
return (mvwinwchnstr(stdscr, y, x, str, n));
usr/src/lib/libcurses/screen/_mvinwchstr.c
38
mvinwchstr(int y, int x, chtype *str)
usr/src/lib/libcurses/screen/_mvinwchstr.c
40
return (mvwinwchstr(stdscr, y, x, str));
usr/src/lib/libcurses/screen/_mvwaddstr.c
47
mvwaddstr(WINDOW *win, int y, int x, char *str)
usr/src/lib/libcurses/screen/_mvwaddstr.c
49
return (wmove(win, y, x) == ERR ? ERR : waddstr(win, str));
usr/src/lib/libcurses/screen/_mvwaddwchnstr.c
38
mvwaddwchnstr(WINDOW *win, int y, int x, chtype *str, int n)
usr/src/lib/libcurses/screen/_mvwaddwchnstr.c
40
return ((wmove(win, y, x) == ERR ? ERR : waddwchnstr(win, str, n)));
usr/src/lib/libcurses/screen/_mvwaddwchstr.c
38
mvwaddwchstr(WINDOW *win, int y, int x, chtype *str)
usr/src/lib/libcurses/screen/_mvwaddwchstr.c
40
return ((wmove(win, y, x) == ERR ? ERR : waddwchstr(win, str)));
usr/src/lib/libcurses/screen/_mvwgetstr.c
47
mvwgetstr(WINDOW *win, int y, int x, char *str)
usr/src/lib/libcurses/screen/_mvwgetstr.c
49
return (wmove(win, y, x) == ERR ? ERR : wgetstr(win, str));
usr/src/lib/libcurses/screen/_mvwinchstr.c
47
mvwinchstr(WINDOW *win, int y, int x, chtype *str)
usr/src/lib/libcurses/screen/_mvwinchstr.c
49
return (wmove(win, y, x) == ERR ? ERR : winchstr(win, str));
usr/src/lib/libcurses/screen/_mvwinwchnstr.c
38
mvwinwchnstr(WINDOW *win, int y, int x, chtype *str, int n)
usr/src/lib/libcurses/screen/_mvwinwchnstr.c
40
return ((wmove(win, y, x) == ERR ? ERR : winwchnstr(win, str, n)));
usr/src/lib/libcurses/screen/_mvwinwchstr.c
38
mvwinwchstr(WINDOW *win, int y, int x, chtype *str)
usr/src/lib/libcurses/screen/_mvwinwchstr.c
40
return ((wmove(win, y, x) == ERR ? ERR : winwchstr(win, str)));
usr/src/lib/libcurses/screen/_waddchstr.c
47
waddchstr(WINDOW *win, chtype *str)
usr/src/lib/libcurses/screen/_waddchstr.c
49
return (waddchnstr(win, str, -1));
usr/src/lib/libcurses/screen/_waddstr.c
47
waddstr(WINDOW *win, char *str)
usr/src/lib/libcurses/screen/_waddstr.c
49
return (waddnstr(win, str, -1));
usr/src/lib/libcurses/screen/_waddwchstr.c
38
waddwchstr(WINDOW *win, chtype *str)
usr/src/lib/libcurses/screen/_waddwchstr.c
40
return (waddwchnstr(win, str, -1));
usr/src/lib/libcurses/screen/_winsstr.c
47
winsstr(WINDOW *win, char *str)
usr/src/lib/libcurses/screen/_winsstr.c
49
return (winsnstr(win, str, -1));
usr/src/lib/libcurses/screen/_winwchstr.c
38
winwchstr(WINDOW *win, chtype *str)
usr/src/lib/libcurses/screen/_winwchstr.c
40
return (winwchnstr(win, str, -1));
usr/src/lib/libcurses/screen/cexpand.c
103
for (; (*str == '*') || (*str == '/');
usr/src/lib/libcurses/screen/cexpand.c
104
str++) {
usr/src/lib/libcurses/screen/cexpand.c
105
if (*str == '*')
usr/src/lib/libcurses/screen/cexpand.c
119
if (*str != '>') {
usr/src/lib/libcurses/screen/cexpand.c
120
str = svbufptr;
usr/src/lib/libcurses/screen/cexpand.c
124
str++; /* skip the '>' */
usr/src/lib/libcurses/screen/cexpand.c
127
if (*str != '\0') {
usr/src/lib/libcurses/screen/cexpand.c
223
*cexpand(char *str)
usr/src/lib/libcurses/screen/cexpand.c
228
retptr = rmpadding(str, padbuffer, (int *)0);
usr/src/lib/libcurses/screen/cexpand.c
60
*rmpadding(char *str, char *padbuffer, int *padding)
usr/src/lib/libcurses/screen/cexpand.c
74
if (str == NULL)
usr/src/lib/libcurses/screen/cexpand.c
77
while (ch = (*str++ & 0377))
usr/src/lib/libcurses/screen/cexpand.c
80
if (*str == '<') {
usr/src/lib/libcurses/screen/cexpand.c
81
svbufptr = ++str; /* skip '<' */
usr/src/lib/libcurses/screen/cexpand.c
85
for (; *str && isdigit(*str); str++) {
usr/src/lib/libcurses/screen/cexpand.c
86
*svbufptr++ = *str;
usr/src/lib/libcurses/screen/cexpand.c
87
*pbufptr++ = *str;
usr/src/lib/libcurses/screen/cexpand.c
92
if (*str == '.') {
usr/src/lib/libcurses/screen/cexpand.c
93
str++;
usr/src/lib/libcurses/screen/cexpand.c
95
for (; *str && isdigit(ch);
usr/src/lib/libcurses/screen/cexpand.c
96
str++) {
usr/src/lib/libcurses/screen/cexpand.c
97
*svbufptr++ = *str;
usr/src/lib/libcurses/screen/cexpand.c
98
*pbufptr++ = *str;
usr/src/lib/libcurses/screen/init_costs.c
145
_cost_fn(char *str, int affcnt)
usr/src/lib/libcurses/screen/init_costs.c
147
if (str == NULL)
usr/src/lib/libcurses/screen/init_costs.c
150
(void) tputs(str, affcnt, _countchar);
usr/src/lib/libcurses/screen/newkey.c
104
key_info->_sends = str = (char *) key_info + sizeof (_KEY_MAP);
usr/src/lib/libcurses/screen/newkey.c
105
(void) memcpy(str, rcvchars, len);
usr/src/lib/libcurses/screen/newkey.c
107
cur_term->funckeystarter[*str] |= (macro ? _MACRO : _KEY);
usr/src/lib/libcurses/screen/newkey.c
62
char *str;
usr/src/lib/libcurses/screen/putp.c
69
putp(char *str)
usr/src/lib/libcurses/screen/putp.c
71
return (tputs(str, 1, _outchar));
usr/src/lib/libcurses/screen/trace.c
79
_asciify(char *str)
usr/src/lib/libcurses/screen/trace.c
86
while (c = *str++) {
usr/src/lib/libcurses/screen/waddnstr.c
101
for (k = 0; k <= m; ++k, ++str) {
usr/src/lib/libcurses/screen/waddnstr.c
103
RBYTE(*str))) == ERR)
usr/src/lib/libcurses/screen/waddnstr.c
143
str++;
usr/src/lib/libcurses/screen/waddnstr.c
58
unsigned char *str = (unsigned char *)tstr;
usr/src/lib/libcurses/screen/waddnstr.c
66
fprintf(outf, "\"%s\")\n", str);
usr/src/lib/libcurses/screen/waddnstr.c
80
while (((ch = *str) != 0) && (i-- > 0)) {
usr/src/lib/libcurses/screen/waddnstr.c
94
for (k = 1; str[k] != '\0' && k <= m; ++k)
usr/src/lib/libcurses/screen/waddnstr.c
95
if (!ISMBIT(str[k]))
usr/src/lib/libcurses/screen/wgetstr.c
115
cp = str;
usr/src/lib/libcurses/screen/wgetstr.c
50
wgetstr(WINDOW *win, char *str)
usr/src/lib/libcurses/screen/wgetstr.c
52
return ((wgetnstr(win, str, LENGTH) == ERR) ? ERR : OK);
usr/src/lib/libcurses/screen/wgetstr.c
56
wgetnstr(WINDOW *win, char *str, int n)
usr/src/lib/libcurses/screen/wgetstr.c
64
char *cp = str;
usr/src/lib/libcurses/screen/wgetwstr.c
40
wgetwstr(WINDOW *win, wchar_t *str)
usr/src/lib/libcurses/screen/wgetwstr.c
42
return ((wgetnwstr(win, str, LENGTH) == ERR) ? ERR : OK);
usr/src/lib/libcurses/screen/wgetwstr.c
46
wgetnwstr(WINDOW *win, wchar_t *str, int n)
usr/src/lib/libcurses/screen/wgetwstr.c
49
wchar_t *cp = str;
usr/src/lib/libcurses/screen/wgetwstr.c
96
cp = str;
usr/src/lib/libcurses/screen/winchstr.c
46
winchstr(WINDOW *win, chtype *str)
usr/src/lib/libcurses/screen/winchstr.c
48
return (winchnstr(win, str, MAXINT));
usr/src/lib/libcurses/screen/winnstr.c
51
winnstr(WINDOW *win, char *str, int ncols)
usr/src/lib/libcurses/screen/winnstr.c
77
*str++ = (char) wc;
usr/src/lib/libcurses/screen/winnstr.c
82
*str++ = (char) wc;
usr/src/lib/libcurses/screen/winnstr.c
95
*str = '\0';
usr/src/lib/libcurses/screen/winstr.c
46
winstr(WINDOW *win, char *str)
usr/src/lib/libcurses/screen/winstr.c
67
str[counter++] = (char) wc;
usr/src/lib/libcurses/screen/winstr.c
71
str[counter++] = (char) wc;
usr/src/lib/libcurses/screen/winstr.c
74
str[counter] = '\0';
usr/src/lib/libcustr/common/libcustr.h
195
const char *custr_cstr(custr_t *str);
usr/src/lib/libdemangle/common/demangle.c
103
sysdemangle(const char *str, sysdem_lang_t lang, sysdem_ops_t *ops)
usr/src/lib/libdemangle/common/demangle.c
116
DEMDEBUG("name = '%s'", (str == NULL) ? "(NULL)" : str);
usr/src/lib/libdemangle/common/demangle.c
119
if (str == NULL) {
usr/src/lib/libdemangle/common/demangle.c
124
slen = strlen(str);
usr/src/lib/libdemangle/common/demangle.c
149
return (cpp_demangle(str, slen, ops));
usr/src/lib/libdemangle/common/demangle.c
151
return (rust_demangle(str, slen, ops));
usr/src/lib/libdemangle/common/demangle.c
161
if (!is_mangled(str, slen)) {
usr/src/lib/libdemangle/common/demangle.c
169
DEMDEBUG("ERROR: '%.*s' cannot be a mangled string", len, str);
usr/src/lib/libdemangle/common/demangle.c
175
res = rust_demangle(str, slen, ops);
usr/src/lib/libdemangle/common/demangle.c
182
return (cpp_demangle(str, slen, ops));
usr/src/lib/libdemangle/common/demangle.c
38
const char *str;
usr/src/lib/libdemangle/common/demangle.c
53
return (lang_tbl[i].str);
usr/src/lib/libdemangle/common/demangle.c
59
sysdem_parse_lang(const char *str, sysdem_lang_t *langp)
usr/src/lib/libdemangle/common/demangle.c
64
if (strcmp(str, lang_tbl[i].str) == 0) {
usr/src/lib/libdemangle/common/demangle.c
78
is_mangled(const char *str, size_t n)
usr/src/lib/libdemangle/common/demangle.c
82
sv_init_str(&sv, str, str + n);
usr/src/lib/libdemangle/common/rust-v0.c
194
const char *str = NULL;
usr/src/lib/libdemangle/common/rust-v0.c
205
str = "u8";
usr/src/lib/libdemangle/common/rust-v0.c
208
str = "u16";
usr/src/lib/libdemangle/common/rust-v0.c
211
str = "u32";
usr/src/lib/libdemangle/common/rust-v0.c
214
str = "u64";
usr/src/lib/libdemangle/common/rust-v0.c
217
str = "u128";
usr/src/lib/libdemangle/common/rust-v0.c
220
str = "usize";
usr/src/lib/libdemangle/common/rust-v0.c
227
DEMDEBUG("%s: %c -> %s", __func__, c, str);
usr/src/lib/libdemangle/common/rust-v0.c
228
return (rust_append(st, str));
usr/src/lib/libdemangle/common/rust-v0.c
234
const char *str = NULL;
usr/src/lib/libdemangle/common/rust-v0.c
248
str = "i8";
usr/src/lib/libdemangle/common/rust-v0.c
251
str = "bool";
usr/src/lib/libdemangle/common/rust-v0.c
254
str = "char";
usr/src/lib/libdemangle/common/rust-v0.c
257
str = "f64";
usr/src/lib/libdemangle/common/rust-v0.c
260
str = "str";
usr/src/lib/libdemangle/common/rust-v0.c
263
str = "f32";
usr/src/lib/libdemangle/common/rust-v0.c
266
str = "isize";
usr/src/lib/libdemangle/common/rust-v0.c
269
str = "i32";
usr/src/lib/libdemangle/common/rust-v0.c
272
str = "i128";
usr/src/lib/libdemangle/common/rust-v0.c
275
str = "_";
usr/src/lib/libdemangle/common/rust-v0.c
278
str = "i16";
usr/src/lib/libdemangle/common/rust-v0.c
281
str = "()";
usr/src/lib/libdemangle/common/rust-v0.c
284
str = "...";
usr/src/lib/libdemangle/common/rust-v0.c
287
str = "i64";
usr/src/lib/libdemangle/common/rust-v0.c
290
str = "!";
usr/src/lib/libdemangle/common/rust-v0.c
297
DEMDEBUG("%s: %c -> %s", __func__, c, str);
usr/src/lib/libdemangle/common/rust-v0.c
298
return (rust_append(st, str));
usr/src/lib/libdemangle/common/strview.c
67
sv_consume_if(strview_t *sv, const char *str)
usr/src/lib/libdemangle/common/strview.c
69
size_t slen = strlen(str);
usr/src/lib/libdemangle/common/strview.c
73
if (strncmp(sv->sv_first, str, slen) != 0)
usr/src/lib/libdemangle/common/util.c
101
if (str == NULL)
usr/src/lib/libdemangle/common/util.c
105
(void) memcpy(str, src, len);
usr/src/lib/libdemangle/common/util.c
106
return (str);
usr/src/lib/libdemangle/common/util.c
99
char *str = zalloc(ops, len + 1);
usr/src/lib/libdevinfo/devinfo_devlink.c
1001
if (!VALID_STR(hdp, idx, str)) {
usr/src/lib/libdevinfo/devinfo_devlink.c
1003
"write_string: invalid index[%u], string(%s)\n", idx, str);
usr/src/lib/libdevinfo/devinfo_devlink.c
1011
(void) strcpy(dstr, str);
usr/src/lib/libdevinfo/devinfo_devlink.c
3052
count_string(const char *str, uint32_t *count)
usr/src/lib/libdevinfo/devinfo_devlink.c
3054
if (str == NULL) {
usr/src/lib/libdevinfo/devinfo_devlink.c
3060
count[DB_STR] += strlen(str) + 1;
usr/src/lib/libdevinfo/devinfo_devlink.c
3064
hashfn(struct di_devlink_handle *hdp, const char *str)
usr/src/lib/libdevinfo/devinfo_devlink.c
3069
if (str == NULL) {
usr/src/lib/libdevinfo/devinfo_devlink.c
3075
for (cp = str; *cp != '\0'; cp++) {
usr/src/lib/libdevinfo/devinfo_devlink.c
987
write_string(struct di_devlink_handle *hdp, const char *str, uint32_t *next)
usr/src/lib/libdevinfo/devinfo_devlink.c
994
if (str == NULL) {
usr/src/lib/libdevinfo/devinfo_devlink.h
321
static uint32_t write_string(struct di_devlink_handle *hdp, const char *str,
usr/src/lib/libdevinfo/devinfo_devlink.h
334
static void count_string(const char *str, uint32_t *count);
usr/src/lib/libdevinfo/devinfo_devlink.h
349
static uint_t hashfn(struct di_devlink_handle *hdp, const char *str);
usr/src/lib/libdhcpagent/common/dhcpagent_util.c
235
static char str[1024];
usr/src/lib/libdhcpagent/common/dhcpagent_util.c
243
(void) snprintf(str, sizeof (str), DHCP_STATUS_STR,
usr/src/lib/libdhcpagent/common/dhcpagent_util.c
248
(void) strlcat(str, "[PRIMARY] ", sizeof (str));
usr/src/lib/libdhcpagent/common/dhcpagent_util.c
251
(void) strlcat(str, "[BOOTP] ", sizeof (str));
usr/src/lib/libdhcpagent/common/dhcpagent_util.c
254
(void) strlcat(str, "[FAILED] ", sizeof (str));
usr/src/lib/libdhcpagent/common/dhcpagent_util.c
257
(void) strlcat(str, "[BUSY] ", sizeof (str));
usr/src/lib/libdhcpagent/common/dhcpagent_util.c
260
(void) strlcat(str, "[V6] ", sizeof (str));
usr/src/lib/libdhcpagent/common/dhcpagent_util.c
262
(void) strlcat(str, "\n", sizeof (str));
usr/src/lib/libdhcpagent/common/dhcpagent_util.c
270
return (str);
usr/src/lib/libdhcpagent/common/dhcpagent_util.c
273
(void) strlcat(str, "(Began, Expires, Renew) = (", sizeof (str));
usr/src/lib/libdhcpagent/common/dhcpagent_util.c
274
(void) strlcat(str, time_to_string(status->if_began), sizeof (str));
usr/src/lib/libdhcpagent/common/dhcpagent_util.c
275
(void) strlcat(str, ", ", sizeof (str));
usr/src/lib/libdhcpagent/common/dhcpagent_util.c
276
(void) strlcat(str, time_to_string(status->if_lease), sizeof (str));
usr/src/lib/libdhcpagent/common/dhcpagent_util.c
277
(void) strlcat(str, ", ", sizeof (str));
usr/src/lib/libdhcpagent/common/dhcpagent_util.c
278
(void) strlcat(str, time_to_string(status->if_t1), sizeof (str));
usr/src/lib/libdhcpagent/common/dhcpagent_util.c
279
(void) strlcat(str, ")\n", sizeof (str));
usr/src/lib/libdhcpagent/common/dhcpagent_util.c
280
return (str);
usr/src/lib/libdhcputil/common/dhcp_inittab.c
436
char *str = *strp;
usr/src/lib/libdhcputil/common/dhcp_inittab.c
439
if (*str++ != ',') {
usr/src/lib/libdhcputil/common/dhcp_inittab.c
443
if (*str == ',' || *str == '\0') {
usr/src/lib/libdhcputil/common/dhcp_inittab.c
444
*strp = str;
usr/src/lib/libdhcputil/common/dhcp_inittab.c
447
hwtype = strtoul(str, strp, 0);
usr/src/lib/libdhcputil/common/dhcp_inittab.c
448
if (errno != 0 || *strp == str || hwtype > 65535) {
usr/src/lib/libdhcputil/common/dhcp_inittab.c
471
get_mac_addr(const char *str, int *ierrnop, uint16_t *hwret, int hwtype,
usr/src/lib/libdhcputil/common/dhcp_inittab.c
480
if (*str != '\0') {
usr/src/lib/libdhcputil/common/dhcp_inittab.c
481
if (*str++ != ',')
usr/src/lib/libdhcputil/common/dhcp_inittab.c
483
if (dlpi_open(str, &dh, 0) != DLPI_SUCCESS) {
usr/src/lib/libdhcputil/common/dhcp_inittab.c
490
while ((chr = *str++) != '\0') {
usr/src/lib/libdhcputil/common/dhcp_symbol.c
109
dsym_trim(char **str)
usr/src/lib/libdhcputil/common/dhcp_symbol.c
112
char *tmpstr = *str;
usr/src/lib/libdhcputil/common/dhcp_symbol.c
124
*str = tmpstr;
usr/src/lib/libdhcputil/common/dhcp_symbol.c
134
tmpstr = *str + strlen(*str) - 1;
usr/src/lib/libdhcputil/common/dhcp_symbol.c
135
while (tmpstr >= *str && isspace(*tmpstr)) {
usr/src/lib/libdhcputil/common/dhcp_symbol.c
160
dsym_get_token(char *str, char *dels, char **lasts, boolean_t quote_support)
usr/src/lib/libdhcputil/common/dhcp_symbol.c
163
char *ptr = str;
usr/src/lib/libdhcputil/common/dhcp_symbol.c
210
return (str);
usr/src/lib/libdhcputil/common/dhcp_symbol.c
222
dsym_get_long(const char *str, long *val)
usr/src/lib/libdhcputil/common/dhcp_symbol.c
228
for (i = 0; str[i] != '\0'; i++) {
usr/src/lib/libdhcputil/common/dhcp_symbol.c
229
if (!isdigit(str[i])) {
usr/src/lib/libdhcputil/common/dhcp_symbol.c
235
*val = strtol(str, NULL, 10);
usr/src/lib/libdisasm/common/dis_riscv.c
886
#define DIS_RISCV_R32(str, op, f3, f7) \
usr/src/lib/libdisasm/common/dis_riscv.c
887
{ str, DIS_RISCV_I_R_TYPE, dis_riscv_rtype_32, op, f3, f7 }
usr/src/lib/libdisasm/common/dis_riscv.c
888
#define DIS_RISCV_I32(str, op, f3) \
usr/src/lib/libdisasm/common/dis_riscv.c
889
{ str, DIS_RISCV_I_I_TYPE, dis_riscv_itype_32, op, f3 }
usr/src/lib/libdisasm/common/dis_riscv.c
890
#define DIS_RISCV_S32(str, op, f3) \
usr/src/lib/libdisasm/common/dis_riscv.c
891
{ str, DIS_RISCV_I_S_TYPE, dis_riscv_stype_32, op, f3 }
usr/src/lib/libdisasm/common/dis_riscv.c
892
#define DIS_RISCV_B32(str, op, f3) \
usr/src/lib/libdisasm/common/dis_riscv.c
893
{ str, DIS_RISCV_I_B_TYPE, dis_riscv_btype_32, op, f3 }
usr/src/lib/libdisasm/common/dis_riscv.c
894
#define DIS_RISCV_U32(str, op) \
usr/src/lib/libdisasm/common/dis_riscv.c
895
{ str, DIS_RISCV_I_U_TYPE, dis_riscv_utype_32, op }
usr/src/lib/libdisasm/common/dis_riscv.c
896
#define DIS_RISCV_J32(str, op) \
usr/src/lib/libdisasm/common/dis_riscv.c
897
{ str, DIS_RISCV_I_J_TYPE, dis_riscv_jtype_32, op }
usr/src/lib/libdisasm/common/dis_riscv.c
903
#define DIS_RISCV_SHIFT32(str, op, f3, f7) \
usr/src/lib/libdisasm/common/dis_riscv.c
904
{ str, DIS_RISCV_I_R_TYPE, dis_riscv_shift_32, op, f3, f7 }
usr/src/lib/libdisasm/common/dis_riscv.c
905
#define DIS_RISCV_SHIFT64(str, op, f3, f7) \
usr/src/lib/libdisasm/common/dis_riscv.c
906
{ str, DIS_RISCV_I_SHIFT64_TYPE, dis_riscv_shift_64, op, f3, f7 }
usr/src/lib/libdisasm/common/dis_riscv.c
907
#define DIS_RISCV_CSR(str, op, f3) \
usr/src/lib/libdisasm/common/dis_riscv.c
908
{ str, DIS_RISCV_I_I_TYPE, dis_riscv_csr, op, f3 }
usr/src/lib/libdisasm/common/dis_riscv.c
909
#define DIS_RISCV_CSRI(str, op, f3) \
usr/src/lib/libdisasm/common/dis_riscv.c
910
{ str, DIS_RISCV_I_I_TYPE, dis_riscv_csri, op, f3 }
usr/src/lib/libdisasm/common/dis_riscv.c
911
#define DIS_RISCV_LOAD(str, op, f3) \
usr/src/lib/libdisasm/common/dis_riscv.c
912
{ str, DIS_RISCV_I_I_TYPE, dis_riscv_load, op, f3 }
usr/src/lib/libdisasm/common/dis_riscv.c
914
#define DIS_RISCV_MASK(str, mask, val, func) \
usr/src/lib/libdisasm/common/dis_riscv.c
915
{ str, DIS_RISCV_I_MASK_TYPE, func, mask, val }
usr/src/lib/libdisasm/common/dis_riscv.c
921
#define DIS_RISCV_A32(str, op, f3, f5) \
usr/src/lib/libdisasm/common/dis_riscv.c
922
{ str, DIS_RISCV_I_RV32A_TYPE, dis_riscv_rv32a, op, f3, f5 }
usr/src/lib/libdisasm/common/dis_riscv.c
923
#define DIS_RISCV_A32LOAD(str, op, f3, f5, f2) \
usr/src/lib/libdisasm/common/dis_riscv.c
924
{ str, DIS_RISCV_I_RV32A_LOAD_TYPE, dis_riscv_rv32a_load, op, f3, \
usr/src/lib/libdisasm/common/dis_riscv.c
930
#define DIS_RISCV_FP_LOAD(str, op, f3) \
usr/src/lib/libdisasm/common/dis_riscv.c
931
{ str, DIS_RISCV_I_I_TYPE, dis_riscv_fp_load, op, f3 }
usr/src/lib/libdisasm/common/dis_riscv.c
932
#define DIS_RISCV_FP_STORE(str, op, f3) \
usr/src/lib/libdisasm/common/dis_riscv.c
933
{ str, DIS_RISCV_I_S_TYPE, dis_riscv_fp_store, op, f3 }
usr/src/lib/libdisasm/common/dis_riscv.c
934
#define DIS_RISCV_FP_R(str, op, f3, f7) \
usr/src/lib/libdisasm/common/dis_riscv.c
935
{ str, DIS_RISCV_I_R_TYPE, dis_riscv_fp_r, op, f3, f7 }
usr/src/lib/libdisasm/common/dis_riscv.c
936
#define DIS_RISCV_FP_R4(str, op, f2) \
usr/src/lib/libdisasm/common/dis_riscv.c
937
{ str, DIS_RISCV_I_R4_TYPE, dis_riscv_fp_r4, op, 0, 0, f2 }
usr/src/lib/libdisasm/common/dis_riscv.c
938
#define DIS_RISCV_FP_RS2_FP(str, op, rs2, f7) \
usr/src/lib/libdisasm/common/dis_riscv.c
939
{ str, DIS_RISCV_I_FP_RS2OP_TYPE, dis_riscv_fp_rs2_fp, op, rs2, f7 }
usr/src/lib/libdisasm/common/dis_riscv.c
940
#define DIS_RISCV_FP_RS2_FP_NR(str, op, rs2, f7) \
usr/src/lib/libdisasm/common/dis_riscv.c
941
{ str, DIS_RISCV_I_FP_RS2OP_TYPE, dis_riscv_fp_rs2_fp_nr, op, rs2, f7 }
usr/src/lib/libdisasm/common/dis_riscv.c
942
#define DIS_RISCV_FP_RS2_FPI(str, op, rs2, f7) \
usr/src/lib/libdisasm/common/dis_riscv.c
943
{ str, DIS_RISCV_I_FP_RS2OP_TYPE, dis_riscv_fp_rs2_fpi, op, rs2, f7 }
usr/src/lib/libdisasm/common/dis_riscv.c
944
#define DIS_RISCV_FP_RS2_IFP(str, op, rs2, f7) \
usr/src/lib/libdisasm/common/dis_riscv.c
945
{ str, DIS_RISCV_I_FP_RS2OP_TYPE, dis_riscv_fp_rs2_ifp, op, rs2, f7 }
usr/src/lib/libdisasm/common/dis_riscv.c
946
#define DIS_RISCV_FP_RS2_IFP_NR(str, op, rs2, f7) \
usr/src/lib/libdisasm/common/dis_riscv.c
947
{ str, DIS_RISCV_I_FP_RS2OP_TYPE, dis_riscv_fp_rs2_ifp_nr, op, rs2, f7 }
usr/src/lib/libdisasm/common/dis_riscv.c
948
#define DIS_RISCV_FP_RM(str, op, f7) \
usr/src/lib/libdisasm/common/dis_riscv.c
949
{ str, DIS_RISCV_I_FP_RM_TYPE, dis_riscv_fp_rm, op, 0, f7 }
usr/src/lib/libdisasm/common/dis_riscv.c
950
#define DIS_RISCV_FP_R_RS2_FPI(str, op, f3, rs2, f7) \
usr/src/lib/libdisasm/common/dis_riscv.c
951
{ str, DIS_RISCV_I_FP_R_RS2_TYPE, dis_riscv_fp_rs2_fpi, op, f3, f7, \
usr/src/lib/libdisasm/common/dis_riscv.c
953
#define DIS_RISCV_FP_R_RS2_IFP(str, op, f3, rs2, f7) \
usr/src/lib/libdisasm/common/dis_riscv.c
954
{ str, DIS_RISCV_I_FP_R_RS2_TYPE, dis_riscv_fp_rs2_ifp, op, f3, f7, \
usr/src/lib/libdisasm/common/dis_riscv.c
956
#define DIS_RISCV_FP_R_RS2_FPI_NR(str, op, f3, rs2, f7) \
usr/src/lib/libdisasm/common/dis_riscv.c
957
{ str, DIS_RISCV_I_FP_R_RS2_TYPE, dis_riscv_fp_rs2_fpi_nr, op, f3, \
usr/src/lib/libdisasm/common/dis_riscv.c
959
#define DIS_RISCV_FP_R_RS2_IFP_NR(str, op, f3, rs2, f7) \
usr/src/lib/libdisasm/common/dis_riscv.c
960
{ str, DIS_RISCV_I_FP_R_RS2_TYPE, dis_riscv_fp_rs2_ifp_nr, op, f3, \
usr/src/lib/libdisasm/common/dis_riscv.c
962
#define DIS_RISCV_FP_RI(str, op, f3, f7) \
usr/src/lib/libdisasm/common/dis_riscv.c
963
{ str, DIS_RISCV_I_R_TYPE, dis_riscv_fp_r_fpi, op, f3, f7 }
usr/src/lib/libdiskmgt/common/entry.c
683
char *str = dm_get_name(slices[i], errp);
usr/src/lib/libdiskmgt/common/entry.c
689
*overlaps_with = strdup(str);
usr/src/lib/libdiskmgt/common/entry.c
690
dm_free_name(str);
usr/src/lib/libdiskmgt/common/entry.c
701
char *str = dm_get_name(slices[i], errp);
usr/src/lib/libdiskmgt/common/entry.c
707
*overlaps_with = strdup(str);
usr/src/lib/libdiskmgt/common/entry.c
708
dm_free_name(str);
usr/src/lib/libdiskmgt/common/events.c
418
char *str;
usr/src/lib/libdiskmgt/common/events.c
428
(void) nvpair_value_string(nvp, &str);
usr/src/lib/libdiskmgt/common/events.c
429
(void) fprintf(stderr, "%s%s: %s\n", prefix, attrname, str);
usr/src/lib/libdiskmgt/common/findevs.c
1240
char str[MAXPATHLEN];
usr/src/lib/libdiskmgt/common/findevs.c
1247
str[0] = 0;
usr/src/lib/libdiskmgt/common/findevs.c
1252
(void) strlcat(str, bstr, sizeof (str));
usr/src/lib/libdiskmgt/common/findevs.c
1254
return (strdup(str));
usr/src/lib/libdiskmgt/common/findevs.c
1289
char *str;
usr/src/lib/libdiskmgt/common/findevs.c
1291
if (di_prom_prop_lookup_strings(ph, node, prop_name, &str) == 1) {
usr/src/lib/libdiskmgt/common/findevs.c
1292
return (str);
usr/src/lib/libdiskmgt/common/findevs.c
1323
char *str;
usr/src/lib/libdiskmgt/common/findevs.c
1325
if (di_prop_lookup_strings(DDI_DEV_T_ANY, node, prop_name, &str) == 1) {
usr/src/lib/libdiskmgt/common/findevs.c
1326
return (str);
usr/src/lib/libdiskmgt/common/findevs.c
554
char *str;
usr/src/lib/libdiskmgt/common/findevs.c
558
node, "name", &str) == -1)
usr/src/lib/libdiskmgt/common/findevs.c
561
str);
usr/src/lib/libdiskmgt/common/findevs.c
693
char str[MAXPATHLEN];
usr/src/lib/libdiskmgt/common/findevs.c
703
str[0] = 0;
usr/src/lib/libdiskmgt/common/findevs.c
713
(void) strlcat(str, bstr, sizeof (str));
usr/src/lib/libdiskmgt/common/findevs.c
715
wwn = str;
usr/src/lib/libdladm/common/flowattr.c
276
dladm_parse_flow_attrs(char *str, dladm_arg_list_t **listp, boolean_t novalues)
usr/src/lib/libdladm/common/flowattr.c
279
if (dladm_parse_args(str, listp, novalues)
usr/src/lib/libdladm/common/flowattr.c
293
do_check_dsfield(char *str, flow_desc_t *fd)
usr/src/lib/libdladm/common/flowattr.c
298
if ((mask_str = strchr(str, ':')) != NULL) {
usr/src/lib/libdladm/common/flowattr.c
308
value = strtoul(str, &endp, 16);
usr/src/lib/libdladm/common/flowprop.c
457
dladm_parse_flow_props(char *str, dladm_arg_list_t **listp, boolean_t novalues)
usr/src/lib/libdladm/common/flowprop.c
461
status = dladm_parse_args(str, listp, novalues);
usr/src/lib/libdladm/common/libdladm.c
1043
dladm_parse_args(char *str, dladm_arg_list_t **listp, boolean_t novalues)
usr/src/lib/libdladm/common/libdladm.c
1050
if (str == NULL)
usr/src/lib/libdladm/common/libdladm.c
1053
if (str[0] == '\0')
usr/src/lib/libdladm/common/libdladm.c
1061
list->al_buf = buf = strdup(str);
usr/src/lib/libdladm/common/libdladm.c
1239
const mac_propval_str_range_t *str;
usr/src/lib/libdladm/common/libdladm.c
1243
str = &rangep->u.mpr_str;
usr/src/lib/libdladm/common/libdladm.c
1245
len = strlen(&str->mpur_data[coff]);
usr/src/lib/libdladm/common/libdladm.c
1246
(void) strlcpy(prop_val[i], &str->mpur_data[coff],
usr/src/lib/libdladm/common/libdlaggr.c
778
dladm_aggr_str2policy(const char *str, uint32_t *policy)
usr/src/lib/libdladm/common/libdlaggr.c
787
while ((token = strtok_r((token == NULL) ? (char *)str : NULL, ",",
usr/src/lib/libdladm/common/libdlaggr.c
809
dladm_aggr_policy2str(uint32_t policy, char *str)
usr/src/lib/libdladm/common/libdlaggr.c
814
if (str == NULL)
usr/src/lib/libdladm/common/libdlaggr.c
817
str[0] = '\0';
usr/src/lib/libdladm/common/libdlaggr.c
824
(void) strlcat(str, ",", DLADM_STRSIZE);
usr/src/lib/libdladm/common/libdlaggr.c
825
(void) strlcat(str, pol->pol_name, DLADM_STRSIZE);
usr/src/lib/libdladm/common/libdlaggr.c
829
return (str);
usr/src/lib/libdladm/common/libdlaggr.c
839
dladm_aggr_str2macaddr(const char *str, boolean_t *mac_fixed, uchar_t *mac_addr)
usr/src/lib/libdladm/common/libdlaggr.c
844
*mac_fixed = (strcmp(str, "auto") != 0);
usr/src/lib/libdladm/common/libdlaggr.c
850
conv_str = _link_aton(str, &mac_len);
usr/src/lib/libdladm/common/libdlaggr.c
895
dladm_aggr_str2lacpmode(const char *str, aggr_lacp_mode_t *lacp_mode)
usr/src/lib/libdladm/common/libdlaggr.c
902
if (strncasecmp(str, mode->mode_str,
usr/src/lib/libdladm/common/libdlaggr.c
943
dladm_aggr_str2lacptimer(const char *str, aggr_lacp_timer_t *lacp_timer)
usr/src/lib/libdladm/common/libdlaggr.c
950
if (strncasecmp(str, timer->lt_str,
usr/src/lib/libdladm/common/libdlbridge.c
644
dladm_bridge_str2prot(const char *str, dladm_bridge_prot_t *brprotp)
usr/src/lib/libdladm/common/libdlbridge.c
646
if (strcmp(str, "stp") == 0)
usr/src/lib/libdladm/common/libdlbridge.c
648
else if (strcmp(str, "trill") == 0)
usr/src/lib/libdladm/common/libdlvnic.c
357
dladm_vnic_str2macaddrtype(const char *str, vnic_mac_addr_type_t *val)
usr/src/lib/libdladm/common/libdlvnic.c
364
if (strncmp(str, type->va_str, strlen(type->va_str)) == 0) {
usr/src/lib/libdladm/common/libdlvnic.c
679
dladm_vnic_str2macaddr(const char *str, uchar_t *buf)
usr/src/lib/libdladm/common/libdlvnic.c
682
uchar_t *b = _link_aton(str, &len);
usr/src/lib/libdladm/common/libdlwlan.c
1012
dladm_wlan_str2secmode(const char *str, dladm_wlan_secmode_t *secmode)
usr/src/lib/libdladm/common/libdlwlan.c
1016
if (!find_val_by_name(str, secmode_vals, VALCNT(secmode_vals), &val))
usr/src/lib/libdladm/common/libdlwlan.c
1024
dladm_wlan_str2strength(const char *str, dladm_wlan_strength_t *strength)
usr/src/lib/libdladm/common/libdlwlan.c
1028
if (!find_val_by_name(str, strength_vals, VALCNT(strength_vals), &val))
usr/src/lib/libdladm/common/libdlwlan.c
1036
dladm_wlan_str2mode(const char *str, dladm_wlan_mode_t *mode)
usr/src/lib/libdladm/common/libdlwlan.c
1040
if (!find_val_by_name(str, mode_vals, VALCNT(mode_vals), &val))
usr/src/lib/libdladm/common/libdlwlan.c
1048
dladm_wlan_str2speed(const char *str, dladm_wlan_speed_t *speed)
usr/src/lib/libdladm/common/libdlwlan.c
1050
*speed = (dladm_wlan_speed_t)(atof(str) * 2);
usr/src/lib/libdladm/common/libdlwlan.c
1055
dladm_wlan_str2auth(const char *str, dladm_wlan_auth_t *auth)
usr/src/lib/libdladm/common/libdlwlan.c
1059
if (!find_val_by_name(str, auth_vals, VALCNT(auth_vals), &val))
usr/src/lib/libdladm/common/libdlwlan.c
1067
dladm_wlan_str2bsstype(const char *str, dladm_wlan_bsstype_t *bsstype)
usr/src/lib/libdladm/common/libdlwlan.c
1071
if (!find_val_by_name(str, bsstype_vals, VALCNT(bsstype_vals), &val))
usr/src/lib/libdladm/common/libdlwlan.c
1079
dladm_wlan_str2linkstatus(const char *str, dladm_wlan_linkstatus_t *linkstatus)
usr/src/lib/libdladm/common/libdlwlan.c
1083
if (!find_val_by_name(str, linkstatus_vals,
usr/src/lib/libdladm/common/libdlwlan.c
878
find_val_by_name(const char *str, val_desc_t *vdp, uint_t cnt, uint_t *valp)
usr/src/lib/libdladm/common/libdlwlan.c
883
if (strcasecmp(str, vdp[i].vd_name) == 0) {
usr/src/lib/libdladm/common/libdlwlan.c
982
dladm_wlan_str2essid(const char *str, dladm_wlan_essid_t *essid)
usr/src/lib/libdladm/common/libdlwlan.c
984
if (str[0] == '\0' || strlen(str) > DLADM_WLAN_MAX_ESSID_LEN - 1)
usr/src/lib/libdladm/common/libdlwlan.c
987
(void) strlcpy(essid->we_bytes, str, DLADM_WLAN_MAX_ESSID_LEN);
usr/src/lib/libdladm/common/libdlwlan.c
992
dladm_wlan_str2bssid(const char *str, dladm_wlan_bssid_t *bssid)
usr/src/lib/libdladm/common/libdlwlan.c
997
buf = _link_aton(str, &len);
usr/src/lib/libdladm/common/linkprop.c
3812
char buf[MAXLINELEN], *str;
usr/src/lib/libdladm/common/linkprop.c
3825
str = strtok(buf, ",");
usr/src/lib/libdladm/common/linkprop.c
3826
while (str != NULL) {
usr/src/lib/libdladm/common/linkprop.c
3831
(void) strlcpy(prop_val[cnt++], str, DLADM_PROP_VAL_MAX);
usr/src/lib/libdladm/common/linkprop.c
3832
str = strtok(NULL, ",");
usr/src/lib/libdladm/common/linkprop.c
4814
dladm_parse_link_props(char *str, dladm_arg_list_t **listp, boolean_t novalues)
usr/src/lib/libdladm/common/linkprop.c
4816
return (dladm_parse_args(str, listp, novalues));
usr/src/lib/libdladm/common/propfuncs.c
396
char *str, *lasts;
usr/src/lib/libdladm/common/propfuncs.c
410
str = buf + i;
usr/src/lib/libdladm/common/propfuncs.c
420
if (strncmp(str, lsp->ls_name, llen) != 0 ||
usr/src/lib/libdladm/common/propfuncs.c
421
!isspace(str[llen]))
usr/src/lib/libdladm/common/propfuncs.c
428
if (strtok_r(str, " \n\t", &lasts) == NULL)
usr/src/lib/libdladm/common/propfuncs.c
431
llen = strlen(str);
usr/src/lib/libdladm/common/propfuncs.c
432
lsp->ls_name = str;
usr/src/lib/libdladm/common/propfuncs.c
435
str += llen + 1;
usr/src/lib/libdladm/common/propfuncs.c
436
if (str >= buf + len)
usr/src/lib/libdladm/common/propfuncs.c
442
if ((str = strtok_r(str, " \n\t", &lasts)) == NULL)
usr/src/lib/libdladm/common/propfuncs.c
445
if (parse_props(str, &lip) < 0)
usr/src/lib/libdladm/common/propfuncs.c
689
dladm_parse_props(char *str, dladm_arg_list_t **listp, boolean_t novalues)
usr/src/lib/libdladm/common/propfuncs.c
691
if (dladm_parse_args(str, listp, novalues) != DLADM_STATUS_OK)
usr/src/lib/libdladm/common/secobj.c
424
char *str, *lasts;
usr/src/lib/libdladm/common/secobj.c
437
str = buf + i;
usr/src/lib/libdladm/common/secobj.c
443
if (strncmp(str, ssp->ss_info.si_name, nlen) != 0 ||
usr/src/lib/libdladm/common/secobj.c
444
!isspace(str[nlen]))
usr/src/lib/libdladm/common/secobj.c
453
if (strtok_r(str, " \n\t", &lasts) == NULL)
usr/src/lib/libdladm/common/secobj.c
456
nlen = strlen(str);
usr/src/lib/libdladm/common/secobj.c
457
sinfo.si_name = str;
usr/src/lib/libdladm/common/secobj.c
459
str += nlen + 1;
usr/src/lib/libdladm/common/secobj.c
460
if (str >= buf + len)
usr/src/lib/libdladm/common/secobj.c
466
if ((str = strtok_r(str, " \n\t", &lasts)) == NULL)
usr/src/lib/libdladm/common/secobj.c
469
*statusp = dladm_str2secobjclass(str, &class);
usr/src/lib/libdladm/common/secobj.c
476
if ((str = strtok_r(NULL, " \n\t", &lasts)) == NULL)
usr/src/lib/libdladm/common/secobj.c
483
if (parse_secobj_val(str, &sinfo) != 0)
usr/src/lib/libdladm/common/secobj.c
69
dladm_str2secobjclass(const char *str, dladm_secobj_class_t *class)
usr/src/lib/libdladm/common/secobj.c
76
if (strcasecmp(str, sp->sc_name) == 0) {
usr/src/lib/libds/common/libds.c
297
ds_string_arg(vlds_string_t *dsp, char *str)
usr/src/lib/libds/common/libds.c
299
if (str == NULL) {
usr/src/lib/libds/common/libds.c
303
dsp->vlds_strp = PTRTOUINT64(str);
usr/src/lib/libds/common/libds.c
304
dsp->vlds_strlen = strlen(str) + 1;
usr/src/lib/libds/common/libds.c
83
static void ds_string_arg(vlds_string_t *dsp, char *str);
usr/src/lib/libdtrace/common/dt_cc.c
1394
char *str; /* string identifier */
usr/src/lib/libdtrace/common/dt_cc.c
1418
for (i = 0; args[i].str != NULL; i++) {
usr/src/lib/libdtrace/common/dt_cc.c
1422
"integer constant\n", i + 1, args[i].str);
usr/src/lib/libdtrace/common/dt_cc.c
1428
"16-bit quantity\n", i + 1, args[i].str);
usr/src/lib/libdtrace/common/dt_cc.c
1500
assert(args[i].str != NULL);
usr/src/lib/libdtrace/common/dt_cc.c
1509
args[i - 1].str, i, expected, found);
usr/src/lib/libdtrace/common/dt_cc.c
585
char n[DT_TYPE_NAMELEN], *str;
usr/src/lib/libdtrace/common/dt_cc.c
599
str = dnp->dn_args->dn_string;
usr/src/lib/libdtrace/common/dt_cc.c
613
if (strcmp(str, DT_FREOPEN_RESTORE) == 0) {
usr/src/lib/libdtrace/common/dt_cc.c
625
if (str[0] == '\0')
usr/src/lib/libdtrace/common/dt_cc.c
626
str = DT_FREOPEN_RESTORE;
usr/src/lib/libdtrace/common/dt_cc.c
629
sdp->dtsd_fmtdata = dt_printf_create(dtp, str);
usr/src/lib/libdtrace/common/dt_consume.c
1330
const char *str = strsize ? strbase : NULL;
usr/src/lib/libdtrace/common/dt_consume.c
1386
} else if (str != NULL && str[0] != '\0' && str[0] != '@' &&
usr/src/lib/libdtrace/common/dt_consume.c
1405
(void) snprintf(c, sizeof (c), "%s", str);
usr/src/lib/libdtrace/common/dt_consume.c
1423
if (str != NULL && str[0] == '@') {
usr/src/lib/libdtrace/common/dt_consume.c
1433
(void) snprintf(c, sizeof (c), " [ %s ]", &str[1]);
usr/src/lib/libdtrace/common/dt_consume.c
1442
if (str != NULL) {
usr/src/lib/libdtrace/common/dt_consume.c
1443
str += strlen(str) + 1;
usr/src/lib/libdtrace/common/dt_consume.c
1444
if (str - strbase >= strsize)
usr/src/lib/libdtrace/common/dt_consume.c
1445
str = NULL;
usr/src/lib/libdtrace/common/dt_consume.c
410
const char *str = NULL;
usr/src/lib/libdtrace/common/dt_consume.c
435
str = e_str[strcmp(p, "syscall") == 0];
usr/src/lib/libdtrace/common/dt_consume.c
439
str = r_str[strcmp(p, "syscall") == 0];
usr/src/lib/libdtrace/common/dt_consume.c
481
data->dtpda_prefix = str;
usr/src/lib/libdtrace/common/dt_error.c
122
const char *str;
usr/src/lib/libdtrace/common/dt_error.c
126
str = dtp->dt_errmsg;
usr/src/lib/libdtrace/common/dt_error.c
128
str = ctf_errmsg(dtp->dt_ctferr);
usr/src/lib/libdtrace/common/dt_error.c
134
str = NULL;
usr/src/lib/libdtrace/common/dt_error.c
136
str = strerror(error);
usr/src/lib/libdtrace/common/dt_error.c
138
return (str ? str : "Unknown error");
usr/src/lib/libdtrace/common/dt_error.c
202
const char *str;
usr/src/lib/libdtrace/common/dt_error.c
217
for (i = 0; faults[i].str != NULL; i++) {
usr/src/lib/libdtrace/common/dt_error.c
219
return (faults[i].str);
usr/src/lib/libdtrace/common/dt_handle.c
156
char *str;
usr/src/lib/libdtrace/common/dt_handle.c
188
str = (char *)alloca(len);
usr/src/lib/libdtrace/common/dt_handle.c
214
(void) snprintf(str, len, "error on enabled probe ID %u "
usr/src/lib/libdtrace/common/dt_handle.c
221
err.dteda_msg = str;
usr/src/lib/libdtrace/common/dt_handle.c
239
char *str;
usr/src/lib/libdtrace/common/dt_handle.c
255
str = alloca(len);
usr/src/lib/libdtrace/common/dt_handle.c
257
(void) snprintf(str, len, "error on enabled probe ID %u "
usr/src/lib/libdtrace/common/dt_handle.c
264
err.dteda_msg = str;
usr/src/lib/libdtrace/common/dt_handle.c
312
char str[80], *s;
usr/src/lib/libdtrace/common/dt_handle.c
322
drop.dtdda_msg = str;
usr/src/lib/libdtrace/common/dt_handle.c
325
(void) snprintf(str, sizeof (str), "[%s] ", dt_droptag(what));
usr/src/lib/libdtrace/common/dt_handle.c
326
s = &str[strlen(str)];
usr/src/lib/libdtrace/common/dt_handle.c
327
size = sizeof (str) - (s - str);
usr/src/lib/libdtrace/common/dt_handle.c
329
s = str;
usr/src/lib/libdtrace/common/dt_handle.c
330
size = sizeof (str);
usr/src/lib/libdtrace/common/dt_handle.c
391
char str[80], *s;
usr/src/lib/libdtrace/common/dt_handle.c
398
drop.dtdda_msg = str;
usr/src/lib/libdtrace/common/dt_handle.c
417
(void) snprintf(str, sizeof (str), "[%s] ",
usr/src/lib/libdtrace/common/dt_handle.c
419
s = &str[strlen(str)];
usr/src/lib/libdtrace/common/dt_handle.c
420
size = sizeof (str) - (s - str);
usr/src/lib/libdtrace/common/dt_handle.c
422
s = str;
usr/src/lib/libdtrace/common/dt_handle.c
423
size = sizeof (str);
usr/src/lib/libdtrace/common/dt_options.c
64
char str[DTRACE_ATTR2STR_MAX];
usr/src/lib/libdtrace/common/dt_options.c
71
dtrace_attr2str(attr, str, sizeof (str)));
usr/src/lib/libdtrace/common/dt_printf.c
1795
const char *str;
usr/src/lib/libdtrace/common/dt_printf.c
1844
str = pfc->pfc_name;
usr/src/lib/libdtrace/common/dt_printf.c
1846
str = pfd->pfd_fmt;
usr/src/lib/libdtrace/common/dt_printf.c
1848
for (j = 0; str[j] != '\0'; j++)
usr/src/lib/libdtrace/common/dt_printf.c
1849
*f++ = str[j];
usr/src/lib/libdtrace/common/dt_program.c
366
dt_header_fmt_macro(char *buf, const char *str)
usr/src/lib/libdtrace/common/dt_program.c
369
if (islower(*str)) {
usr/src/lib/libdtrace/common/dt_program.c
370
*buf++ = *str++ + 'A' - 'a';
usr/src/lib/libdtrace/common/dt_program.c
371
} else if (*str == '-') {
usr/src/lib/libdtrace/common/dt_program.c
373
str++;
usr/src/lib/libdtrace/common/dt_program.c
374
} else if (*str == '.') {
usr/src/lib/libdtrace/common/dt_program.c
376
str++;
usr/src/lib/libdtrace/common/dt_program.c
377
} else if ((*buf++ = *str++) == '\0') {
usr/src/lib/libdtrace/common/dt_program.c
384
dt_header_fmt_func(char *buf, const char *str)
usr/src/lib/libdtrace/common/dt_program.c
387
if (*str == '-') {
usr/src/lib/libdtrace/common/dt_program.c
390
str++;
usr/src/lib/libdtrace/common/dt_program.c
391
} else if ((*buf++ = *str++) == '\0') {
usr/src/lib/libdtrace/common/dt_strtab.c
144
const char *str, size_t len)
usr/src/lib/libdtrace/common/dt_strtab.c
158
if ((rv = strncmp(buf, str, n)) != 0)
usr/src/lib/libdtrace/common/dt_strtab.c
162
str += n;
usr/src/lib/libdtrace/common/dt_strtab.c
170
dt_strtab_copyin(dt_strtab_t *sp, const char *str, size_t len)
usr/src/lib/libdtrace/common/dt_strtab.c
187
bcopy(str, sp->str_ptr, n);
usr/src/lib/libdtrace/common/dt_strtab.c
190
str += n;
usr/src/lib/libdtrace/common/dt_strtab.c
205
dt_strtab_index(dt_strtab_t *sp, const char *str)
usr/src/lib/libdtrace/common/dt_strtab.c
211
if (str == NULL || str[0] == '\0')
usr/src/lib/libdtrace/common/dt_strtab.c
214
h = dt_strtab_hash(str, &len) % sp->str_hashsz;
usr/src/lib/libdtrace/common/dt_strtab.c
217
if (dt_strtab_compare(sp, hp, str, len + 1) == 0)
usr/src/lib/libdtrace/common/dt_strtab.c
225
dt_strtab_insert(dt_strtab_t *sp, const char *str)
usr/src/lib/libdtrace/common/dt_strtab.c
232
if ((off = dt_strtab_index(sp, str)) != -1)
usr/src/lib/libdtrace/common/dt_strtab.c
235
h = dt_strtab_hash(str, &len) % sp->str_hashsz;
usr/src/lib/libdtrace/common/dt_strtab.c
254
if (dt_strtab_copyin(sp, str, len + 1) == -1)
usr/src/lib/libdtrace/common/dt_subr.c
216
dtrace_str2attr(const char *str, dtrace_attribute_t *attr)
usr/src/lib/libdtrace/common/dt_subr.c
222
if (str == NULL || attr == NULL)
usr/src/lib/libdtrace/common/dt_subr.c
226
p = strdupa(str);
usr/src/lib/libdtrace/common/dt_subr.c
416
dt_cpp_add_arg(dtrace_hdl_t *dtp, const char *str)
usr/src/lib/libdtrace/common/dt_subr.c
433
if ((arg = strdup(str)) == NULL)
usr/src/lib/libdtrace/common/dt_subr.c
750
dt_basename(char *str)
usr/src/lib/libdtrace/common/dt_subr.c
752
char *last = strrchr(str, '/');
usr/src/lib/libdtrace/common/dt_subr.c
755
return (str);
usr/src/lib/libdtrace/common/dt_subr.c
807
dt_string2str(char *s, char *str, int nbytes)
usr/src/lib/libdtrace/common/dt_subr.c
820
(void) strncpy(str, s, nbytes - 1);
usr/src/lib/libdtrace/common/dt_subr.c
825
str[nbytes - 1] = '\0';
usr/src/lib/libdtrace/common/dt_subr.c
827
(void) strcpy(str, s);
usr/src/lib/libdtrace/common/dt_subr.c
834
dtrace_addr2str(dtrace_hdl_t *dtp, uint64_t addr, char *str, int nbytes)
usr/src/lib/libdtrace/common/dt_subr.c
868
return (dt_string2str(s, str, nbytes));
usr/src/lib/libdtrace/common/dt_subr.c
873
uint64_t addr, char *str, int nbytes)
usr/src/lib/libdtrace/common/dt_subr.c
885
return (dt_string2str(c, str, nbytes));
usr/src/lib/libdtrace/common/dt_subr.c
911
return (dt_string2str(c, str, nbytes));
usr/src/lib/libdtrace/common/dt_sugar.c
111
char *str;
usr/src/lib/libdtrace/common/dt_sugar.c
117
(void) asprintf(&str, "%%condition_%d", ABS(condid));
usr/src/lib/libdtrace/common/dt_sugar.c
119
dt_node_ident(str)));
usr/src/lib/libdtrace_jni/common/dtj_util.c
1001
char str[DTJ_MSG_SIZE];
usr/src/lib/libdtrace_jni/common/dtj_util.c
1006
(void) vsnprintf(str, sizeof (str), fmt, ap);
usr/src/lib/libdtrace_jni/common/dtj_util.c
1009
jstr = dtj_NewStringNative(jenv, str);
usr/src/lib/libdtrace_jni/common/dtj_util.c
1015
dtj_NewStringNative(JNIEnv *jenv, const char *str)
usr/src/lib/libdtrace_jni/common/dtj_util.c
1027
len = strlen(str);
usr/src/lib/libdtrace_jni/common/dtj_util.c
1034
(jbyte *)str);
usr/src/lib/libdtrace_jni/common/dtj_util.c
1085
dtj_ReleaseStringNativeChars(JNIEnv *jenv, jstring jstr, const char *str)
usr/src/lib/libdtrace_jni/common/dtj_util.c
1087
free((void *)str);
usr/src/lib/libdtrace_jni/common/dtj_util.c
1094
const char *str;
usr/src/lib/libdtrace_jni/common/dtj_util.c
1124
str = dtj_GetStringNativeChars(jenv, jstr);
usr/src/lib/libdtrace_jni/common/dtj_util.c
1130
argv[i] = malloc(strlen(str) + 1);
usr/src/lib/libdtrace_jni/common/dtj_util.c
1134
dtj_ReleaseStringNativeChars(jenv, jstr, str);
usr/src/lib/libdtrace_jni/common/dtj_util.c
1138
(void) strcpy(argv[i], str);
usr/src/lib/libdtrace_jni/common/dtj_util.c
1139
dtj_ReleaseStringNativeChars(jenv, jstr, str);
usr/src/lib/libdtrace_jni/common/dtj_util.h
281
extern jstring dtj_NewStringNative(JNIEnv *jenv, const char *str);
usr/src/lib/libdtrace_jni/common/dtj_util.h
284
const char *str);
usr/src/lib/libdwarf/common/dwarf_macro.c
52
dwarf_find_macro_value_start(char *str)
usr/src/lib/libdwarf/common/dwarf_macro.c
57
for (lcp = str; *lcp; ++lcp) {
usr/src/lib/libdwarf/common/dwarfstring.c
178
dwarfstring_append_length(struct dwarfstring_s *g,char *str,
usr/src/lib/libdwarf/common/dwarfstring.c
184
if (!str || slen ==0) {
usr/src/lib/libdwarf/common/dwarfstring.c
196
memcpy(g->s_data + lastpos,str,slen);
usr/src/lib/libdwarf/common/dwarfstring.c
203
dwarfstring_append(struct dwarfstring_s *g,char *str)
usr/src/lib/libdwarf/common/dwarfstring.c
207
if(!str) {
usr/src/lib/libdwarf/common/dwarfstring.c
210
dlen = strlen(str);
usr/src/lib/libdwarf/common/dwarfstring.c
211
return dwarfstring_append_length(g,str,dlen);
usr/src/lib/libdwarf/common/dwarfstring.h
70
int dwarfstring_append(struct dwarfstring_s *g,char *str);
usr/src/lib/libdwarf/common/dwarfstring.h
75
char *str,unsigned long len);
usr/src/lib/libdwarf/common/pro_encode_nm.c
105
*str = byte;
usr/src/lib/libdwarf/common/pro_encode_nm.c
106
str++;
usr/src/lib/libdwarf/common/pro_encode_nm.c
108
*nbytes = (int)(str - space);
usr/src/lib/libdwarf/common/pro_encode_nm.c
83
char *str;
usr/src/lib/libdwarf/common/pro_encode_nm.c
88
str = space;
usr/src/lib/libdwarf/common/pro_encode_nm.c
95
if (str >= end) {
usr/src/lib/libdwarf/common/pro_init.c
290
_dwarf_string_hashfunc(const char *str)
usr/src/lib/libdwarf/common/pro_init.c
297
while ((c = *str++)) {
usr/src/lib/libdwarf/common/pro_init.c
308
const char *str = 0;
usr/src/lib/libdwarf/common/pro_init.c
312
str = (const char *)mt->dse_dbg->de_debug_str->ds_data +
usr/src/lib/libdwarf/common/pro_init.c
316
str = (const char *)mt->dse_name;
usr/src/lib/libdwarf/common/pro_init.c
318
return _dwarf_string_hashfunc(str);
usr/src/lib/libdwarf/common/pro_log_extra_flag_strings.c
208
char * str = dwarfstring_string(cms);
usr/src/lib/libdwarf/common/pro_log_extra_flag_strings.c
209
char *cp = str;
usr/src/lib/libdwarf/common/pro_log_extra_flag_strings.c
237
slen = cp - str;
usr/src/lib/libdwarf/common/pro_log_extra_flag_strings.c
238
dwarfstring_append_length(&cmsname,str,slen);
usr/src/lib/libeti/form/common/chg_data.c
65
extra_padding(char *str, int nstr) /* used for word wrapping */
usr/src/lib/libeti/form/common/chg_data.c
67
int c = *(str + nstr - 1);
usr/src/lib/libeti/form/common/chg_data.c
70
c = *(str + nstr - 2);
usr/src/lib/libeti/menu/inc/menu.h
53
char *str;
usr/src/lib/libeti/menu/inc/private.h
121
#define Name(i) (i)->name.str
usr/src/lib/libeti/menu/inc/private.h
123
#define Description(i) (i)->description.str
usr/src/lib/libexacct/demo/exdump.c
356
char str[INET_ADDRSTRLEN];
usr/src/lib/libexacct/demo/exdump.c
360
inet_ntop(AF_INET, &addr, str,
usr/src/lib/libexacct/demo/exdump.c
405
char str[INET6_ADDRSTRLEN];
usr/src/lib/libexacct/demo/exdump.c
409
&addr->s6_addr, str, INET6_ADDRSTRLEN));
usr/src/lib/libfakekernel/common/kmem.c
154
strfree(char *str)
usr/src/lib/libfakekernel/common/kmem.c
156
ASSERT(str != NULL);
usr/src/lib/libfakekernel/common/kmem.c
157
kmem_free(str, strlen(str) + 1);
usr/src/lib/libfakekernel/common/kmisc.c
106
ddi_strtoull(const char *str, char **endp, int base, u_longlong_t *res)
usr/src/lib/libfakekernel/common/kmisc.c
109
*res = strtoull(str, endp, base);
usr/src/lib/libfakekernel/common/kmisc.c
96
ddi_strtoul(const char *str, char **endp, int base, unsigned long *res)
usr/src/lib/libfakekernel/common/kmisc.c
99
*res = strtoul(str, endp, base);
usr/src/lib/libfakekernel/common/printf.c
189
debug_enter(char *str)
usr/src/lib/libfru/include/Str.h
41
Str(const char *str);
usr/src/lib/libfru/include/Str.h
42
Str(const char *str, int len);
usr/src/lib/libfru/include/Str.h
47
void operator=(const char *str);
usr/src/lib/libfru/libgenutil/Str.cc
37
Str::Str(const char *str)
usr/src/lib/libfru/libgenutil/Str.cc
38
: str_(strcpy(new char[strlen(str)+1], str)),
usr/src/lib/libfru/libgenutil/Str.cc
42
Str::Str(const char *str, int len)
usr/src/lib/libfru/libgenutil/Str.cc
46
strlcpy(str_, str, len+1);
usr/src/lib/libfru/libgenutil/Str.cc
69
Str::operator = (const char *str)
usr/src/lib/libfru/libgenutil/Str.cc
72
str_ = strcpy(new char[strlen(str)+1], str);
usr/src/lib/libfstyp/common/libfstyp.c
279
char *str;
usr/src/lib/libfstyp/common/libfstyp.c
283
str = dgettext(TEXT_DOMAIN, "success");
usr/src/lib/libfstyp/common/libfstyp.c
286
str = dgettext(TEXT_DOMAIN, "no matches");
usr/src/lib/libfstyp/common/libfstyp.c
289
str = dgettext(TEXT_DOMAIN, "multiple matches");
usr/src/lib/libfstyp/common/libfstyp.c
292
str = dgettext(TEXT_DOMAIN, "invalid handle");
usr/src/lib/libfstyp/common/libfstyp.c
295
str = dgettext(TEXT_DOMAIN, "invalid or unsupported offset");
usr/src/lib/libfstyp/common/libfstyp.c
298
str = dgettext(TEXT_DOMAIN, "partition not found");
usr/src/lib/libfstyp/common/libfstyp.c
301
str = dgettext(TEXT_DOMAIN, "no such operation");
usr/src/lib/libfstyp/common/libfstyp.c
304
str = dgettext(TEXT_DOMAIN, "cannot open device");
usr/src/lib/libfstyp/common/libfstyp.c
307
str = dgettext(TEXT_DOMAIN, "i/o error");
usr/src/lib/libfstyp/common/libfstyp.c
310
str = dgettext(TEXT_DOMAIN, "out of memory");
usr/src/lib/libfstyp/common/libfstyp.c
313
str = dgettext(TEXT_DOMAIN, "module not found");
usr/src/lib/libfstyp/common/libfstyp.c
316
str = dgettext(TEXT_DOMAIN, "cannot open module directory");
usr/src/lib/libfstyp/common/libfstyp.c
319
str = dgettext(TEXT_DOMAIN, "cannot open module");
usr/src/lib/libfstyp/common/libfstyp.c
322
str = dgettext(TEXT_DOMAIN, "invalid module version");
usr/src/lib/libfstyp/common/libfstyp.c
325
str = dgettext(TEXT_DOMAIN, "invalid module");
usr/src/lib/libfstyp/common/libfstyp.c
328
str = dgettext(TEXT_DOMAIN, "filesystem name too long");
usr/src/lib/libfstyp/common/libfstyp.c
331
str = dgettext(TEXT_DOMAIN, "undefined error");
usr/src/lib/libfstyp/common/libfstyp.c
335
return (str);
usr/src/lib/libgen/common/bgets.c
57
char *str;
usr/src/lib/libgen/common/bgets.c
61
str = pthread_getspecific(*keyp);
usr/src/lib/libgen/common/bgets.c
62
if (str == NULL) {
usr/src/lib/libgen/common/bgets.c
63
str = calloc(CHARS, sizeof (char));
usr/src/lib/libgen/common/bgets.c
64
if (thr_setspecific(*keyp, str) != 0) {
usr/src/lib/libgen/common/bgets.c
65
if (str)
usr/src/lib/libgen/common/bgets.c
66
(void) free(str);
usr/src/lib/libgen/common/bgets.c
67
str = NULL;
usr/src/lib/libgen/common/bgets.c
70
return (str);
usr/src/lib/libgen/common/mkdirp.c
105
while ((ptr = strchr(str, '\0')) != endptr) {
usr/src/lib/libgen/common/mkdirp.c
107
if (mkdir(str, mode) != 0 && errno != EEXIST) {
usr/src/lib/libgen/common/mkdirp.c
115
free(str);
usr/src/lib/libgen/common/mkdirp.c
119
free(str);
usr/src/lib/libgen/common/mkdirp.c
136
simplify(const char *str)
usr/src/lib/libgen/common/mkdirp.c
149
if (!str)
usr/src/lib/libgen/common/mkdirp.c
156
if ((mbPath = strdup(str)) == NULL) {
usr/src/lib/libgen/common/mkdirp.c
47
static char *simplify(const char *str);
usr/src/lib/libgen/common/mkdirp.c
52
char *endptr, *ptr, *slash, *str;
usr/src/lib/libgen/common/mkdirp.c
54
str = simplify(d);
usr/src/lib/libgen/common/mkdirp.c
58
if (str == NULL)
usr/src/lib/libgen/common/mkdirp.c
63
if (mkdir(str, mode) == 0) {
usr/src/lib/libgen/common/mkdirp.c
64
free(str);
usr/src/lib/libgen/common/mkdirp.c
68
free(str);
usr/src/lib/libgen/common/mkdirp.c
71
endptr = strrchr(str, '\0');
usr/src/lib/libgen/common/mkdirp.c
72
slash = strrchr(str, '/');
usr/src/lib/libgen/common/mkdirp.c
83
if (access(str, F_OK) == 0)
usr/src/lib/libgen/common/mkdirp.c
89
slash = strrchr(str, '/');
usr/src/lib/libgen/common/mkdirp.c
93
if (slash == NULL || slash == str) {
usr/src/lib/libgen/common/mkdirp.c
94
if (mkdir(str, mode) != 0 && errno != EEXIST) {
usr/src/lib/libgen/common/mkdirp.c
95
free(str);
usr/src/lib/libgen/common/pathfind.c
80
char *str;
usr/src/lib/libgen/common/pathfind.c
84
str = pthread_getspecific(*keyp);
usr/src/lib/libgen/common/pathfind.c
85
if (str == NULL) {
usr/src/lib/libgen/common/pathfind.c
86
str = calloc(PATH_MAX, sizeof (char));
usr/src/lib/libgen/common/pathfind.c
87
if (thr_setspecific(*keyp, str) != 0) {
usr/src/lib/libgen/common/pathfind.c
88
if (str)
usr/src/lib/libgen/common/pathfind.c
89
(void) free(str);
usr/src/lib/libgen/common/pathfind.c
90
str = NULL;
usr/src/lib/libgen/common/pathfind.c
93
return (str);
usr/src/lib/libgen/common/reg_step.c
597
getrnge(char *str)
usr/src/lib/libgen/common/reg_step.c
599
low = *str++ & 0377;
usr/src/lib/libgen/common/reg_step.c
600
size = (*str == (char)255)? 20000: (*str &0377) - low;
usr/src/lib/libgen/common/strtrns.c
37
strtrns(const char *str, const char *old, const char *new,
usr/src/lib/libgen/common/strtrns.c
43
for (r = result; *r = *str++; r++)
usr/src/lib/libgrubmgmt/common/libgrub_cmd.c
169
find_bootprop(const char *str, const char *bprop)
usr/src/lib/libgrubmgmt/common/libgrub_cmd.c
174
assert(str);
usr/src/lib/libgrubmgmt/common/libgrub_cmd.c
178
s = str;
usr/src/lib/libgrubmgmt/common/libgrub_cmd.c
180
while ((str = strstr(s, " -B")) != NULL ||
usr/src/lib/libgrubmgmt/common/libgrub_cmd.c
181
(str = strstr(s, "\t-B")) != NULL) {
usr/src/lib/libgrubmgmt/common/libgrub_cmd.c
182
s = str + 3;
usr/src/lib/libgrubmgmt/common/libgrub_cmd.c
236
update_bootpath(char *str, size_t strsz, const char *bootpath)
usr/src/lib/libgrubmgmt/common/libgrub_cmd.c
243
if ((bfs = find_bootprop(str, BPROP_ZFSBOOTFS)) == NULL ||
usr/src/lib/libgrubmgmt/common/libgrub_cmd.c
244
find_bootprop(str, BPROP_BOOTPATH) != NULL)
usr/src/lib/libgrubmgmt/common/libgrub_cmd.c
247
n = bfs - str;
usr/src/lib/libgrubmgmt/common/libgrub_cmd.c
250
bcopy(str, buf, n);
usr/src/lib/libgrubmgmt/common/libgrub_cmd.c
255
bcopy(buf, str, strsz);
usr/src/lib/libhotplug/common/libhotplug.c
1351
char *str;
usr/src/lib/libhotplug/common/libhotplug.c
1354
if ((nvlist_lookup_string(results, HPD_OPTIONS, &str) == 0) &&
usr/src/lib/libhotplug/common/libhotplug.c
1355
((*optionsp = strdup(str)) == NULL)) {
usr/src/lib/libi2c/common/libi2c.c
406
i2c_kernel_address_parse(i2c_hdl_t *hdl, const char *str, i2c_addr_t *addr)
usr/src/lib/libi2c/common/libi2c.c
412
ul = strtoul(str, &eptr, 16);
usr/src/lib/libi2c/common/libi2c.c
415
"did not have a valid leading type", str));
usr/src/lib/libi2c/common/libi2c.c
424
"did not have a valid type, found 0x%lx", str, ul));
usr/src/lib/libi2c/common/libi2c.c
431
"did not have a valid address", str));
usr/src/lib/libi2c/common/libi2c.c
437
"address 0x%lx is too large for type", str, ul));
usr/src/lib/libidmap/common/idmap_api.c
137
idmap_get_prop_str(idmap_prop_type pr, char **str)
usr/src/lib/libidmap/common/idmap_api.c
146
rc = idmap_strdupnull(str, res.value.idmap_prop_val_u.utf8val);
usr/src/lib/libidmap/common/idmap_api.c
1942
idmap_string2stat(const char *str)
usr/src/lib/libidmap/common/idmap_api.c
1944
if (str == NULL)
usr/src/lib/libidmap/common/idmap_api.c
1948
if (0 == strcmp(str, "IDMAP_ERR_" #a)) \
usr/src/lib/libidmap/common/idmap_api.c
766
char *str;
usr/src/lib/libidmap/common/idmap_api.c
826
str = mappings->mappings.mappings_val[iter->next].id1.
usr/src/lib/libidmap/common/idmap_api.c
828
if (str && *str != '\0') {
usr/src/lib/libidmap/common/idmap_api.c
829
*sidprefix = strdup(str);
usr/src/lib/libidmap/common/idmap_cache.c
261
update_str(const char **item, const char *str)
usr/src/lib/libidmap/common/idmap_cache.c
265
if (*item != NULL && str != NULL) {
usr/src/lib/libidmap/common/idmap_cache.c
266
if (strcmp(*item, str) != 0) {
usr/src/lib/libidmap/common/idmap_cache.c
267
if ((tmp = strdup(str)) == NULL)
usr/src/lib/libidmap/common/idmap_cache.c
272
} else if (str != NULL) {
usr/src/lib/libidmap/common/idmap_cache.c
274
if ((*item = strdup(str)) == NULL)
usr/src/lib/libidmap/common/idmap_priv.h
57
#define EMPTY_STRING(str) (str == NULL || *str == '\0')
usr/src/lib/libinetsvc/common/inetsvc.c
1683
char *str;
usr/src/lib/libinetsvc/common/inetsvc.c
1686
if ((str = strdup(pstr)) == NULL)
usr/src/lib/libinetsvc/common/inetsvc.c
1689
for (cp = strtok(str, PROTO_DELIMITERS); cp != NULL;
usr/src/lib/libinetsvc/common/inetsvc.c
1695
free(str);
usr/src/lib/libinetsvc/common/inetsvc.c
1707
free(str);
usr/src/lib/libinetsvc/common/inetsvc.c
1712
free(str);
usr/src/lib/libinstzones/common/instzones_lib.h
294
void *_z_strdup(char *str);
usr/src/lib/libinstzones/common/zones.c
402
char *str = NULL;
usr/src/lib/libinstzones/common/zones.c
407
if ((str = strtok(blist, delim)) != NULL) {
usr/src/lib/libinstzones/common/zones.c
414
brand->string_ptr = strdup(str);
usr/src/lib/libinstzones/common/zones.c
417
while ((str = strtok(NULL, delim)) != NULL) {
usr/src/lib/libinstzones/common/zones.c
424
brand->string_ptr = strdup(str);
usr/src/lib/libinstzones/common/zones_exec.c
552
char *str;
usr/src/lib/libinstzones/common/zones_exec.c
554
if ((str = malloc(sz)) == NULL)
usr/src/lib/libinstzones/common/zones_exec.c
557
(void) snprintf(str, sz, "%s%s", name, value);
usr/src/lib/libinstzones/common/zones_exec.c
558
return (str);
usr/src/lib/libinstzones/common/zones_utils.c
597
_z_strdup(char *str)
usr/src/lib/libinstzones/common/zones_utils.c
601
if (str == NULL)
usr/src/lib/libinstzones/common/zones_utils.c
604
if ((tmp = strdup(str)) == NULL) {
usr/src/lib/libipadm/common/ipadm_persist.c
300
char *str = NULL;
usr/src/lib/libipadm/common/ipadm_persist.c
303
if (nvpair_value_string(nvp, &str) != 0)
usr/src/lib/libipadm/common/ipadm_persist.c
305
return (snprintf(buf, buflen, "%s=%s", nvpair_name(nvp), str));
usr/src/lib/libipadm/common/ipadm_prop.c
1860
const char *str;
usr/src/lib/libipadm/common/ipadm_prop.c
1871
str = oname;
usr/src/lib/libipadm/common/ipadm_prop.c
1875
str += strlen("tcp");
usr/src/lib/libipadm/common/ipadm_prop.c
1879
str += strlen("sctp");
usr/src/lib/libipadm/common/ipadm_prop.c
1883
str += strlen("udp");
usr/src/lib/libipadm/common/ipadm_prop.c
1887
str += strlen("icmp");
usr/src/lib/libipadm/common/ipadm_prop.c
1894
str += strlen("ip6");
usr/src/lib/libipadm/common/ipadm_prop.c
1899
str = ionmp->iom_nname;
usr/src/lib/libipadm/common/ipadm_prop.c
1909
str += strlen("ip");
usr/src/lib/libipadm/common/ipadm_prop.c
1916
(void) snprintf(nname, nnamelen, "%s", str);
usr/src/lib/libipmi/common/ipmi_util.c
119
ipmi_strdup(ipmi_handle_t *ihp, const char *str)
usr/src/lib/libipmi/common/ipmi_util.c
123
if ((ptr = strdup(str)) == NULL)
usr/src/lib/libipmi/common/ipmi_util.c
72
const char *str;
usr/src/lib/libipmi/common/ipmi_util.c
74
str = NULL;
usr/src/lib/libipmi/common/ipmi_util.c
77
str = ipmi_errno_table[i].int_name;
usr/src/lib/libipmi/common/ipmi_util.c
82
if (str == NULL && (str = strerror(ihp->ih_errno)) == NULL)
usr/src/lib/libipmi/common/ipmi_util.c
83
str = "unknown failure";
usr/src/lib/libipmi/common/ipmi_util.c
86
return (str);
usr/src/lib/libipmi/common/ipmi_util.c
89
"%s: %s", str, ihp->ih_errmsg);
usr/src/lib/libipsecutil/common/ipsec_util.c
1031
privstr2num(char *str)
usr/src/lib/libipsecutil/common/ipsec_util.c
1038
if (strcasecmp(str, pp->kw_str) == 0)
usr/src/lib/libipsecutil/common/ipsec_util.c
1042
priv = strtol(str, &endp, 0);
usr/src/lib/libipsecutil/common/ipsec_util.c
1069
dbgstr2num(char *str)
usr/src/lib/libipsecutil/common/ipsec_util.c
1074
if (strcasecmp(str, dp->kw_str) == 0)
usr/src/lib/libipsecutil/common/ipsec_util.c
139
char *str;
usr/src/lib/libipsecutil/common/ipsec_util.c
145
if ((str = malloc(bufsiz)) == NULL)
usr/src/lib/libipsecutil/common/ipsec_util.c
148
(void) bytecnt2str(num, str, bufsiz);
usr/src/lib/libipsecutil/common/ipsec_util.c
150
if (strlen(str) == 0) {
usr/src/lib/libipsecutil/common/ipsec_util.c
151
free(str);
usr/src/lib/libipsecutil/common/ipsec_util.c
157
flags & SPC_BEGIN ? " " : "", str,
usr/src/lib/libipsecutil/common/ipsec_util.c
161
free(str);
usr/src/lib/libipsecutil/common/ipsec_util.c
211
char *str;
usr/src/lib/libipsecutil/common/ipsec_util.c
217
if ((str = malloc(bufsiz)) == NULL)
usr/src/lib/libipsecutil/common/ipsec_util.c
220
(void) secs2str(secs, str, bufsiz);
usr/src/lib/libipsecutil/common/ipsec_util.c
222
if (strlen(str) == 0) {
usr/src/lib/libipsecutil/common/ipsec_util.c
223
free(str);
usr/src/lib/libipsecutil/common/ipsec_util.c
229
flags & SPC_BEGIN ? " " : "", str,
usr/src/lib/libipsecutil/common/ipsec_util.c
233
free(str);
usr/src/lib/libipsecutil/common/ipsec_util.c
3677
char *str = NULL;
usr/src/lib/libipsecutil/common/ipsec_util.c
3685
if (kmf_dn_to_string(&name, &str) != KMF_OK)
usr/src/lib/libipsecutil/common/ipsec_util.c
3688
(void) fprintf(file, "%s\n", str);
usr/src/lib/libipsecutil/common/ipsec_util.c
3690
free(str);
usr/src/lib/libjedec/common/libjedec_spd.c
423
const char *str;
usr/src/lib/libjedec/common/libjedec_spd.c
426
str = libjedec_vendor_string(cont, si->si_data[off + 1]);
usr/src/lib/libjedec/common/libjedec_spd.c
427
if (str != NULL) {
usr/src/lib/libjedec/common/libjedec_spd.c
428
spd_nvl_insert_str(si, key, str);
usr/src/lib/libkmf/ber_der/common/encode.c
288
kmfber_put_ostring(BerElement *ber, char *str, ber_len_t len,
usr/src/lib/libkmf/ber_der/common/encode.c
305
if ((*(ber->ber_encode_translate_proc))(&str, &len, 0)
usr/src/lib/libkmf/ber_der/common/encode.c
321
kmfber_write(ber, str, len, 0) != (ber_int_t)len) {
usr/src/lib/libkmf/ber_der/common/encode.c
330
free(str);
usr/src/lib/libkmf/ber_der/common/encode.c
338
kmfber_put_string(BerElement *ber, char *str, ber_tag_t tag)
usr/src/lib/libkmf/ber_der/common/encode.c
340
return (kmfber_put_ostring(ber, str, (ber_len_t)strlen(str), tag));
usr/src/lib/libkmf/ber_der/common/encode.c
344
kmfber_put_bitstring(BerElement *ber, char *str,
usr/src/lib/libkmf/ber_der/common/encode.c
364
if (kmfber_write(ber, str, len, 0) != len)
usr/src/lib/libkmf/libkmf/common/generalop.c
631
char *str = strerror(handle->lasterr.errcode);
usr/src/lib/libkmf/libkmf/common/generalop.c
632
if (str != NULL) {
usr/src/lib/libkmf/libkmf/common/generalop.c
633
*msgstr = strdup(str);
usr/src/lib/libkmf/libkmf/common/pk11tokens.c
176
find_unescaped_colon(char *str)
usr/src/lib/libkmf/libkmf/common/pk11tokens.c
180
if (str == NULL)
usr/src/lib/libkmf/libkmf/common/pk11tokens.c
183
while ((end = strchr(str, ':')) != NULL) {
usr/src/lib/libkmf/libkmf/common/pk11tokens.c
184
if (end != str && *(end-1) != '\\')
usr/src/lib/libkmf/libkmf/common/pk11tokens.c
186
str = end + 1; /* could point to null-terminator */
usr/src/lib/libkmf/libkmf/common/pk11tokens.c
189
end = strchr(str, '\0');
usr/src/lib/libkmf/libkmf/common/pk11tokens.c
198
unescape_str(char *str)
usr/src/lib/libkmf/libkmf/common/pk11tokens.c
203
if (str == NULL)
usr/src/lib/libkmf/libkmf/common/pk11tokens.c
206
for (mark = str; *str != '\0'; str++) {
usr/src/lib/libkmf/libkmf/common/pk11tokens.c
207
if (*str != '\\' || escaped == B_TRUE) {
usr/src/lib/libkmf/libkmf/common/pk11tokens.c
208
*mark++ = *str;
usr/src/lib/libkmf/libkmf/common/rdn_parser.c
545
binvalue_to_string(KMF_DATA *data, custr_t *str)
usr/src/lib/libkmf/libkmf/common/rdn_parser.c
550
if (custr_appendc(str, '#') != 0)
usr/src/lib/libkmf/libkmf/common/rdn_parser.c
555
if (custr_appendc(str, hexdigits[(c >> 4) & 0xf]) != 0 ||
usr/src/lib/libkmf/libkmf/common/rdn_parser.c
556
custr_appendc(str, hexdigits[(c & 0xf)]) != 0) {
usr/src/lib/libkmf/libkmf/common/rdn_parser.c
573
value_to_string(KMF_DATA *data, custr_t *str)
usr/src/lib/libkmf/libkmf/common/rdn_parser.c
598
if (custr_append_printf(str, "\\%02hhX", c) != 0)
usr/src/lib/libkmf/libkmf/common/rdn_parser.c
622
if (custr_appendc(str, '\\') != 0)
usr/src/lib/libkmf/libkmf/common/rdn_parser.c
626
if (custr_appendc(str, c) != 0)
usr/src/lib/libkmf/libkmf/common/rdn_parser.c
638
ava_to_string(KMF_X509_TYPE_VALUE_PAIR *tvp, custr_t *str)
usr/src/lib/libkmf/libkmf/common/rdn_parser.c
662
if (custr_append(str, attr) != 0) {
usr/src/lib/libkmf/libkmf/common/rdn_parser.c
666
if (custr_appendc(str, '=') != 0) {
usr/src/lib/libkmf/libkmf/common/rdn_parser.c
683
ret = value_to_string(&tvp->value, str);
usr/src/lib/libkmf/libkmf/common/rdn_parser.c
688
ret = binvalue_to_string(&tvp->value, str);
usr/src/lib/libkmf/libkmf/common/rdn_parser.c
700
rdn_to_string(KMF_X509_RDN *rdn, custr_t *str)
usr/src/lib/libkmf/libkmf/common/rdn_parser.c
706
if (i > 0 && custr_appendc(str, '+') != 0)
usr/src/lib/libkmf/libkmf/common/rdn_parser.c
709
ret = ava_to_string(&rdn->AttributeTypeAndValue[i], str);
usr/src/lib/libkmf/libkmf/common/rdn_parser.c
725
custr_t *str = NULL;
usr/src/lib/libkmf/libkmf/common/rdn_parser.c
734
if (custr_alloc(&str) != 0)
usr/src/lib/libkmf/libkmf/common/rdn_parser.c
740
if (i > 0 && custr_append(str, ", ") != 0) {
usr/src/lib/libkmf/libkmf/common/rdn_parser.c
745
if ((err = rdn_to_string(rdn, str)) != KMF_OK)
usr/src/lib/libkmf/libkmf/common/rdn_parser.c
749
if ((*string = strdup(custr_cstr(str))) == NULL)
usr/src/lib/libkmf/libkmf/common/rdn_parser.c
753
custr_free(str);
usr/src/lib/libkmf/plugins/kmf_nss/common/nss_spi.c
1212
char *str;
usr/src/lib/libkmf/plugins/kmf_nss/common/nss_spi.c
1215
str = (char *)PR_ErrorToName((PRErrorCode)kmfh->lasterr.errcode);
usr/src/lib/libkmf/plugins/kmf_nss/common/nss_spi.c
1217
if (str != NULL) {
usr/src/lib/libkmf/plugins/kmf_nss/common/nss_spi.c
1218
*msgstr = (char *)strdup(str);
usr/src/lib/libkmf/plugins/kmf_openssl/common/openssl_spi.c
1942
char str[256]; /* OpenSSL needs at least 120 byte buffer */
usr/src/lib/libkmf/plugins/kmf_openssl/common/openssl_spi.c
1944
ERR_error_string_n(kmfh->lasterr.errcode, str, sizeof (str));
usr/src/lib/libkmf/plugins/kmf_openssl/common/openssl_spi.c
1945
if (strlen(str)) {
usr/src/lib/libkmf/plugins/kmf_openssl/common/openssl_spi.c
1946
*msgstr = (char *)strdup(str);
usr/src/lib/libkvm/common/kvm_getcmd.c
214
str = (argv[i] += reloc);
usr/src/lib/libkvm/common/kvm_getcmd.c
215
if (str < (char *)argv ||
usr/src/lib/libkvm/common/kvm_getcmd.c
216
str >= (char *)argv + asize)
usr/src/lib/libkvm/common/kvm_getcmd.c
237
str = (envp[i] += reloc);
usr/src/lib/libkvm/common/kvm_getcmd.c
238
if (str < (char *)envp ||
usr/src/lib/libkvm/common/kvm_getcmd.c
239
str >= (char *)envp + esize) {
usr/src/lib/libkvm/common/kvm_getcmd.c
268
char *str;
usr/src/lib/libkvm/common/kvm_getcmd.c
360
str = (argv[i] += offset);
usr/src/lib/libkvm/common/kvm_getcmd.c
361
if (str < (char *)argv ||
usr/src/lib/libkvm/common/kvm_getcmd.c
362
str >= (char *)argv + asize)
usr/src/lib/libkvm/common/kvm_getcmd.c
405
str = (envp[i] += offset);
usr/src/lib/libkvm/common/kvm_getcmd.c
406
if (str < (char *)envp || str >= (char *)envp + esize) {
usr/src/lib/libkvm/common/kvm_getcmd.c
92
char *str;
usr/src/lib/libldap5/include/ldap/solaris-int.h
499
LDAP_API(char **) LDAP_CALL ldap_str2charray( char *str, char *brkstr );
usr/src/lib/libldap5/sources/ldap/ber/encode.c
228
ber_put_ostring( BerElement *ber, char *str, ber_len_t len,
usr/src/lib/libldap5/sources/ldap/ber/encode.c
245
if ( (*(ber->ber_encode_translate_proc))( &str, &len, 0 )
usr/src/lib/libldap5/sources/ldap/ber/encode.c
261
ber_write( ber, str, len, 0 ) != (ber_int_t) len ) {
usr/src/lib/libldap5/sources/ldap/ber/encode.c
270
NSLBERI_FREE( str );
usr/src/lib/libldap5/sources/ldap/ber/encode.c
279
ber_put_string( BerElement *ber, char *str, ber_tag_t tag )
usr/src/lib/libldap5/sources/ldap/ber/encode.c
281
return( ber_put_ostring( ber, str, (ber_len_t) strlen( str ), tag ));
usr/src/lib/libldap5/sources/ldap/ber/encode.c
286
ber_put_bitstring( BerElement *ber, char *str,
usr/src/lib/libldap5/sources/ldap/ber/encode.c
306
if ( ber_write( ber, str, len, 0 ) != len )
usr/src/lib/libldap5/sources/ldap/common/charray.c
179
ldap_str2charray( char *str, char *brkstr )
usr/src/lib/libldap5/sources/ldap/common/charray.c
189
for ( s = str; *s; s++ ) {
usr/src/lib/libldap5/sources/ldap/common/charray.c
200
for ( s = strtok( str, brkstr ); s != NULL; s = strtok( NULL,
usr/src/lib/libldap5/sources/ldap/common/digest_md5.c
452
digest_parse(const char *str, int len, digest_attrs_t *attr_out)
usr/src/lib/libldap5/sources/ldap/common/digest_md5.c
469
if (len == 0) len = strlen(str);
usr/src/lib/libldap5/sources/ldap/common/digest_md5.c
470
scan = str;
usr/src/lib/libldap5/sources/ldap/common/digest_md5.c
471
end = str + len;
usr/src/lib/libldap5/sources/ldap/common/getfilter.c
41
static int break_into_words( char *str, char *delims, char ***wordsp );
usr/src/lib/libldap5/sources/ldap/common/getfilter.c
512
break_into_words( char *str, char *delims, char ***wordsp )
usr/src/lib/libldap5/sources/ldap/common/getfilter.c
524
word = ldap_utf8strtok_r( str, delims, &lasts );
usr/src/lib/libldap5/sources/ldap/common/ldap-int.h
750
int ldap_put_filter( BerElement *ber, char *str );
usr/src/lib/libldap5/sources/ldap/common/search.c
409
char *str,
usr/src/lib/libldap5/sources/ldap/common/search.c
427
str++;
usr/src/lib/libldap5/sources/ldap/common/search.c
428
if ( (next = find_right_paren( str )) == NULL )
usr/src/lib/libldap5/sources/ldap/common/search.c
432
if ( put_filter_list( ber, str ) == -1 )
usr/src/lib/libldap5/sources/ldap/common/search.c
444
ldap_put_filter( BerElement *ber, char *str )
usr/src/lib/libldap5/sources/ldap/common/search.c
474
LDAPDebug( LDAP_DEBUG_TRACE, "put_filter \"%s\"\n", str, 0, 0 );
usr/src/lib/libldap5/sources/ldap/common/search.c
477
while ( *str ) {
usr/src/lib/libldap5/sources/ldap/common/search.c
478
switch ( *str ) {
usr/src/lib/libldap5/sources/ldap/common/search.c
480
str++;
usr/src/lib/libldap5/sources/ldap/common/search.c
482
switch ( *str ) {
usr/src/lib/libldap5/sources/ldap/common/search.c
487
if ( (str = put_complex_filter( ber, str,
usr/src/lib/libldap5/sources/ldap/common/search.c
498
if ( (str = put_complex_filter( ber, str,
usr/src/lib/libldap5/sources/ldap/common/search.c
509
if ( (str = put_complex_filter( ber, str,
usr/src/lib/libldap5/sources/ldap/common/search.c
522
next = str;
usr/src/lib/libldap5/sources/ldap/common/search.c
53
static char *put_complex_filter( BerElement *ber, char *str,
usr/src/lib/libldap5/sources/ldap/common/search.c
541
if ( put_simple_filter( ber, str ) == -1 ) {
usr/src/lib/libldap5/sources/ldap/common/search.c
545
str = next;
usr/src/lib/libldap5/sources/ldap/common/search.c
55
static int unescape_filterval( char *str );
usr/src/lib/libldap5/sources/ldap/common/search.c
556
str++;
usr/src/lib/libldap5/sources/ldap/common/search.c
561
str++;
usr/src/lib/libldap5/sources/ldap/common/search.c
567
next = strchr( str, '\0' );
usr/src/lib/libldap5/sources/ldap/common/search.c
568
if ( put_simple_filter( ber, str ) == -1 ) {
usr/src/lib/libldap5/sources/ldap/common/search.c
571
str = next;
usr/src/lib/libldap5/sources/ldap/common/search.c
58
static int put_simple_filter( BerElement *ber, char *str );
usr/src/lib/libldap5/sources/ldap/common/search.c
585
put_filter_list( BerElement *ber, char *str )
usr/src/lib/libldap5/sources/ldap/common/search.c
590
LDAPDebug( LDAP_DEBUG_TRACE, "put_filter_list \"%s\"\n", str, 0, 0 );
usr/src/lib/libldap5/sources/ldap/common/search.c
592
while ( *str ) {
usr/src/lib/libldap5/sources/ldap/common/search.c
593
while ( *str && isspace( *str ) )
usr/src/lib/libldap5/sources/ldap/common/search.c
594
str++;
usr/src/lib/libldap5/sources/ldap/common/search.c
595
if ( *str == '\0' )
usr/src/lib/libldap5/sources/ldap/common/search.c
598
if ( (next = find_right_paren( str + 1 )) == NULL )
usr/src/lib/libldap5/sources/ldap/common/search.c
60
char *str );
usr/src/lib/libldap5/sources/ldap/common/search.c
604
if ( ldap_put_filter( ber, str ) == -1 )
usr/src/lib/libldap5/sources/ldap/common/search.c
608
str = next;
usr/src/lib/libldap5/sources/ldap/common/search.c
61
static int put_filter_list( BerElement *ber, char *str );
usr/src/lib/libldap5/sources/ldap/common/search.c
667
put_simple_filter( BerElement *ber, char *str )
usr/src/lib/libldap5/sources/ldap/common/search.c
676
LDAPDebug( LDAP_DEBUG_TRACE, "put_simple_filter \"%s\"\n", str, 0, 0 );
usr/src/lib/libldap5/sources/ldap/common/search.c
680
if (( str = nsldapi_strdup( str )) == NULL ) {
usr/src/lib/libldap5/sources/ldap/common/search.c
684
if ( (s = strchr( str, '=' )) == NULL ) {
usr/src/lib/libldap5/sources/ldap/common/search.c
695
if ( ! is_valid_attr( str ) ) {
usr/src/lib/libldap5/sources/ldap/common/search.c
720
if ( (s2 = strrchr( str, ':' )) == NULL ) {
usr/src/lib/libldap5/sources/ldap/common/search.c
731
if ( (s3 = strrchr( str, ':' )) != NULL ) {
usr/src/lib/libldap5/sources/ldap/common/search.c
749
if ( *str != '\0' ) {
usr/src/lib/libldap5/sources/ldap/common/search.c
751
LDAP_TAG_MRA_TYPE, str )) == -1 ) {
usr/src/lib/libldap5/sources/ldap/common/search.c
769
rc = put_substring_filter( ber, str, value );
usr/src/lib/libldap5/sources/ldap/common/search.c
776
rc = ber_printf( ber, "ts", ftype, str );
usr/src/lib/libldap5/sources/ldap/common/search.c
778
rc = ber_printf( ber, "t{so}", ftype, str, value, len );
usr/src/lib/libldap5/sources/ldap/common/search.c
785
NSLDAPI_FREE( str );
usr/src/lib/libmlrpc/common/libmlrpc.h
353
LPTSTR str;
usr/src/lib/libmlrpc/common/ndr_heap.c
219
if ((out->str = ndr_heap_strdup(heap, s)) == NULL)
usr/src/lib/libnisdb/db_item.cc
51
item::item(char *str, int n)
usr/src/lib/libnisdb/db_item.cc
57
(void) memcpy(value, str, len);
usr/src/lib/libnisdb/ldap_attr.c
197
char *str, *filter, *tmp;
usr/src/lib/libnisdb/ldap_attr.c
207
str = sdup(myself, T, attr);
usr/src/lib/libnisdb/ldap_attr.c
208
if (str == 0)
usr/src/lib/libnisdb/ldap_attr.c
212
free(str);
usr/src/lib/libnisdb/ldap_attr.c
217
for (; str[s] == ' ' || str[s] == '\t'; s++);
usr/src/lib/libnisdb/ldap_attr.c
219
for (e = s; str[e] != '\0' && str[e] != ','; e++);
usr/src/lib/libnisdb/ldap_attr.c
220
str[e] = '\0';
usr/src/lib/libnisdb/ldap_attr.c
222
scat(myself, F, &str[s], ")"));
usr/src/lib/libnisdb/ldap_attr.c
238
return (str);
usr/src/lib/libnisdb/ldap_attr.c
246
free(str);
usr/src/lib/libnisdb/ldap_attr.c
257
char **comp = 0, **new, *str;
usr/src/lib/libnisdb/ldap_attr.c
282
str = sdup(myself, T, filter);
usr/src/lib/libnisdb/ldap_attr.c
283
if (str == 0)
usr/src/lib/libnisdb/ldap_attr.c
287
for (; s < len && str[s] != '('; s++);
usr/src/lib/libnisdb/ldap_attr.c
291
for (e = s; str[e] != '\0' && str[e] != ')'; e++);
usr/src/lib/libnisdb/ldap_attr.c
292
str[e] = '\0';
usr/src/lib/libnisdb/ldap_attr.c
305
comp[nc] = sdup(myself, T, &str[s]);
usr/src/lib/libnisdb/ldap_attr.c
316
sfree(str);
usr/src/lib/libnisdb/ldap_attr.c
340
char **tmp, *str;
usr/src/lib/libnisdb/ldap_attr.c
346
str = sdup(myself, T, new);
usr/src/lib/libnisdb/ldap_attr.c
347
if (str == 0)
usr/src/lib/libnisdb/ldap_attr.c
351
sfree(str);
usr/src/lib/libnisdb/ldap_attr.c
356
comp[*numComps] = str;
usr/src/lib/libnisdb/ldap_map.c
506
isObjAttrString(char *str) {
usr/src/lib/libnisdb/ldap_map.c
507
if (str == 0)
usr/src/lib/libnisdb/ldap_map.c
510
if (strcmp("zo_owner", str) == 0 ||
usr/src/lib/libnisdb/ldap_map.c
511
strcmp("zo_group", str) == 0 ||
usr/src/lib/libnisdb/ldap_map.c
512
strcmp("zo_domain", str) == 0 ||
usr/src/lib/libnisdb/ldap_map.c
513
strcmp("zo_access", str) == 0 ||
usr/src/lib/libnisdb/ldap_map.c
514
strcmp("zo_ttl", str) == 0)
usr/src/lib/libnisdb/ldap_map.h
75
int isObjAttrString(char *str);
usr/src/lib/libnisdb/ldap_print.c
73
char *str = getIndex(i, &len);
usr/src/lib/libnisdb/ldap_print.c
76
sc2buf(myself, str, len);
usr/src/lib/libnisdb/ldap_print.c
77
sfree(str);
usr/src/lib/libnisdb/ldap_print.c
83
char *str = getObjSpec(o, &len);
usr/src/lib/libnisdb/ldap_print.c
86
sc2buf(myself, str, len);
usr/src/lib/libnisdb/ldap_print.c
87
sfree(str);
usr/src/lib/libnisdb/ldap_print.c
93
char *str = getSearchTriple(s, &len);
usr/src/lib/libnisdb/ldap_print.c
96
sc2buf(myself, str, len);
usr/src/lib/libnisdb/ldap_print.c
97
sfree(str);
usr/src/lib/libnisdb/ldap_util.c
228
slen(const char *str) {
usr/src/lib/libnisdb/ldap_util.c
229
return ((str != 0) ? strlen(str) : 0);
usr/src/lib/libnisdb/ldap_util.c
237
sdup(const char *msg, int allocate, char *str) {
usr/src/lib/libnisdb/ldap_util.c
241
return (str);
usr/src/lib/libnisdb/ldap_util.c
243
if (str == 0) {
usr/src/lib/libnisdb/ldap_util.c
246
s = strdup(str);
usr/src/lib/libnisdb/ldap_util.c
250
(msg != 0) ? msg : "<unknown>", slen(str)+1);
usr/src/lib/libnisdb/ldap_util.c
367
appendString2SingleVal(char *str, __nis_single_value_t *v, int *newLen) {
usr/src/lib/libnisdb/ldap_util.c
379
l = slen(str);
usr/src/lib/libnisdb/ldap_util.c
392
memcpy(&(((char *)s)[v->length]), str, l);
usr/src/lib/libnisdb/ldap_util.c
672
trimWhiteSpaces(char *str, int *len, int deallocate) {
usr/src/lib/libnisdb/ldap_util.c
680
sfree(str);
usr/src/lib/libnisdb/ldap_util.c
686
for (i = 0; i < *len && (str[i] == ' ' || str[i] == '\t'); i++);
usr/src/lib/libnisdb/ldap_util.c
690
if (str[i] == ' ' || str[i] == '\t') {
usr/src/lib/libnisdb/ldap_util.c
698
ostr[olen++] = str[i];
usr/src/lib/libnisdb/ldap_util.c
708
sfree(str);
usr/src/lib/libnisdb/ldap_util.h
111
char *trimWhiteSpaces(char *str, int *len, int deallocate);
usr/src/lib/libnisdb/ldap_util.h
90
int slen(const char *str);
usr/src/lib/libnisdb/ldap_util.h
91
char *sdup(const char *msg, int allocate, char *str);
usr/src/lib/libnisdb/ldap_util.h
95
void *appendString2SingleVal(char *str, __nis_single_value_t *v,
usr/src/lib/libnisdb/ldap_val.c
1686
char *str;
usr/src/lib/libnisdb/ldap_val.c
1695
str = nval[i].value;
usr/src/lib/libnisdb/ldap_val.c
1702
for (e = s; str[e] != '\0' && str[e] != delim; e++);
usr/src/lib/libnisdb/ldap_val.c
1707
str[e] = '\0';
usr/src/lib/libnisdb/ldap_val.c
1709
newstr = strdup(&str[s]);
usr/src/lib/libnisdb/ldap_val.c
1755
scanMappingFormat(__nis_mapping_format_t *f, int curf, int nf, char *str,
usr/src/lib/libnisdb/ldap_val.c
1767
if (f == 0 || curf < 0 || nf <= 0 || str == 0)
usr/src/lib/libnisdb/ldap_val.c
1779
if (strchr(sepset, *str) != 0)
usr/src/lib/libnisdb/ldap_val.c
1780
return (str);
usr/src/lib/libnisdb/ldap_val.c
1811
tmpstr = str;
usr/src/lib/libnisdb/ldap_val.c
1836
len = (int)((long)start - (long)str);
usr/src/lib/libnisdb/ldap_val.c
1840
memcpy(*val, str, len);
usr/src/lib/libnisdb/ldap_val.c
1882
*fmtstart = str;
usr/src/lib/libnisdb/ldap_val.c
1893
*fmtstart = str;
usr/src/lib/libnisdb/ldap_val.c
1894
return (str);
usr/src/lib/libnisdb/ldap_val.c
1906
next = str + strcspn(str, " \t");
usr/src/lib/libnisdb/ldap_val.c
1916
if ((next = strstr(str, mstr)) == 0)
usr/src/lib/libnisdb/ldap_val.c
1921
if (fmtstart == 0 && next != str)
usr/src/lib/libnisdb/ldap_val.c
1927
str = (char *)((long)next + (long)strlen(mstr));
usr/src/lib/libnisdb/ldap_val.c
1931
for (; *str == ' ' || *str == '\t'; str++);
usr/src/lib/libnisdb/ldap_val.c
1933
return (str);
usr/src/lib/libnisdb/ldap_val.c
1939
for (next = str; *next != '\0'; next++) {
usr/src/lib/libnisdb/ldap_val.c
1956
str = next;
usr/src/lib/libnisdb/ldap_val.c
1960
if (*str >= f[curf].match.single.lo[i] &&
usr/src/lib/libnisdb/ldap_val.c
1961
*str <= f[curf].match.single.hi[i]) {
usr/src/lib/libnisdb/ldap_val.c
1970
str++;
usr/src/lib/libnisdb/ldap_val.c
1971
return (str);
usr/src/lib/libnisdb/ldap_val.c
1980
while ((next = scanMappingFormat(f, curf+1, nf, str, 0,
usr/src/lib/libnisdb/ldap_val.c
1992
str = next;
usr/src/lib/libnisdb/ldap_val.c
2003
*fmtstart = str;
usr/src/lib/libnisdb/ldap_val.c
2011
str = str + strcspn(str, sepset);
usr/src/lib/libnisdb/ldap_val.c
2012
*fmtstart = str;
usr/src/lib/libnisdb/ldap_val.c
2013
} else if (strchr(sepset, *str) == 0) {
usr/src/lib/libnisdb/ldap_val.c
2017
return (str);
usr/src/lib/libnisdb/ldap_val.c
2021
*fmtstart = str;
usr/src/lib/libnisdb/ldap_val.c
2022
return (str);
usr/src/lib/libnisdb/ldap_val.c
2027
str = str + strcspn(str, sepset);
usr/src/lib/libnisdb/ldap_val.c
2028
*fmtstart = str;
usr/src/lib/libnisdb/ldap_val.c
2029
return (str);
usr/src/lib/libnisdb/ldap_val.c
2032
if (strchr(sepset, *str) == 0)
usr/src/lib/libnisdb/ldap_val.c
2034
return (str);
usr/src/lib/libnisdb/ldap_val.c
2048
verifyMappingMatch(__nis_mapping_format_t *f, char *str) {
usr/src/lib/libnisdb/ldap_val.c
2060
str = scanMappingFormat(f, n, nf, str, 0, 0, 0);
usr/src/lib/libnisdb/ldap_val.c
2061
if (str == 0)
usr/src/lib/libnisdb/ldap_val.c
2065
return ((str != 0) ? 1 : 0);
usr/src/lib/libnisdb/ldap_val.c
2095
char *str, *valstr;
usr/src/lib/libnisdb/ldap_val.c
2175
str = inVal->val[i].value;
usr/src/lib/libnisdb/ldap_val.c
2176
if (str == 0)
usr/src/lib/libnisdb/ldap_val.c
2180
str = scanMappingFormat(f, n, nf, str, &valstr,
usr/src/lib/libnisdb/ldap_val.c
2182
if (str == 0)
usr/src/lib/libnisdb/ldap_val.c
2195
if (str == 0) {
usr/src/lib/libnisdb/ldap_val.c
2212
*outstr = str;
usr/src/lib/libnisdb/ldap_val.c
2266
char *str = nval[i].value;
usr/src/lib/libnisdb/ldap_val.c
2280
str = scanMappingFormat(f, n, nf, str, &newstr, 0, 0);
usr/src/lib/libnisdb/ldap_val.c
2281
if (str == 0)
usr/src/lib/libnisdb/ldap_val.c
2291
if (str == 0 || *str != '\0' || newstr == 0 ||
usr/src/lib/libnisdb/ldap_val.c
2329
char *str = val->val[i].value;
usr/src/lib/libnisdb/ldap_val.c
2331
if (str == 0 || end <= 0)
usr/src/lib/libnisdb/ldap_val.c
2338
if (str[end-1] == '\0')
usr/src/lib/libnisdb/ldap_val.c
2340
if (end > 0 && str[end-1] == elide) {
usr/src/lib/libnisdb/ldap_val.c
2341
str[end-1] = '\0';
usr/src/lib/libnisdb/ldap_val.c
378
char *str = am(myself, val->val[i].length + 1);
usr/src/lib/libnisdb/ldap_val.c
380
if (str != 0) {
usr/src/lib/libnisdb/ldap_val.c
381
ret = ber_printf(ber, berstring, str);
usr/src/lib/libnisdb/ldap_val.c
382
free(str);
usr/src/lib/libnisdb/ldap_val.h
111
int curf, int nf, char *str, char **val,
usr/src/lib/libnisdb/ldap_val.h
114
char *str);
usr/src/lib/libnisdb/nis_db.cc
156
const char *str = NULL;
usr/src/lib/libnisdb/nis_db.cc
160
str = "Success";
usr/src/lib/libnisdb/nis_db.cc
163
str = "Not Found";
usr/src/lib/libnisdb/nis_db.cc
166
str = "Bad Table";
usr/src/lib/libnisdb/nis_db.cc
169
str = "Bad Query";
usr/src/lib/libnisdb/nis_db.cc
172
str = "Bad Object";
usr/src/lib/libnisdb/nis_db.cc
175
str = "Memory limit exceeded";
usr/src/lib/libnisdb/nis_db.cc
178
str = "Database storage limit exceeded";
usr/src/lib/libnisdb/nis_db.cc
181
str = "Database internal error";
usr/src/lib/libnisdb/nis_db.cc
184
str = "Sync of log file failed";
usr/src/lib/libnisdb/nis_db.cc
187
str = "Unknown Error";
usr/src/lib/libnisdb/nis_db.cc
190
return (str);
usr/src/lib/libnisdb/nis_parse_ldap_conf.h
647
extern void report_error(const char *str, const char *attr);
usr/src/lib/libnisdb/nis_parse_ldap_conf.h
649
extern void report_info(const char *str, const char *arg);
usr/src/lib/libnisdb/nis_parse_ldap_map.c
1446
char *str = NULL;
usr/src/lib/libnisdb/nis_parse_ldap_map.c
1517
str = s_strndup(begin_token,
usr/src/lib/libnisdb/nis_parse_ldap_map.c
1519
if (str == NULL)
usr/src/lib/libnisdb/nis_parse_ldap_map.c
1521
if (!get_mapping_format(str, &fmt,
usr/src/lib/libnisdb/nis_parse_ldap_map.c
1524
free(str);
usr/src/lib/libnisdb/nis_parse_ldap_map.c
1525
str = NULL;
usr/src/lib/libnisdb/nis_parse_ldap_map.c
1538
str = s_strndup(begin_token,
usr/src/lib/libnisdb/nis_parse_ldap_map.c
1540
if (str == NULL)
usr/src/lib/libnisdb/nis_parse_ldap_map.c
1544
str, e, item_type);
usr/src/lib/libnisdb/nis_parse_ldap_map.c
1545
free(str);
usr/src/lib/libnisdb/nis_parse_ldap_map.c
1546
str = NULL;
usr/src/lib/libnisdb/nis_parse_ldap_map.c
1562
if (str)
usr/src/lib/libnisdb/nis_parse_ldap_map.c
1563
free(str);
usr/src/lib/libnisdb/nis_parse_ldap_util.c
1086
append_dot(char **str)
usr/src/lib/libnisdb/nis_parse_ldap_util.c
1088
char *s = *str;
usr/src/lib/libnisdb/nis_parse_ldap_util.c
1096
*str = s;
usr/src/lib/libnisdb/nis_parse_ldap_util.c
1102
append_comma(char **str)
usr/src/lib/libnisdb/nis_parse_ldap_util.c
1105
char *s = *str;
usr/src/lib/libnisdb/nis_parse_ldap_util.c
1113
*str = s;
usr/src/lib/libnisdb/nis_parse_ldap_util.c
2598
report_error(const char *str, const char *attr)
usr/src/lib/libnisdb/nis_parse_ldap_util.c
2632
fprintf(cons, fmt_buf, str == NULL ? "" : str);
usr/src/lib/libnisdb/nis_parse_ldap_util.c
2636
syslog(LOG_ERR, fmt_buf, str == NULL ? "" : str);
usr/src/lib/libnisdb/nis_parse_ldap_util.c
2680
const char *str,
usr/src/lib/libnisdb/nis_parse_ldap_util.c
2684
fputs(str, cons);
usr/src/lib/libnisdb/nis_parse_ldap_util.c
2689
syslog(LOG_INFO, str, arg);
usr/src/lib/libnisdb/nis_parse_ldap_util.c
47
void append_dot(char **str);
usr/src/lib/libnisdb/nis_parse_ldap_util.c
48
void append_comma(char **str);
usr/src/lib/libnisdb/yptol/dit_access_utils.c
1015
char *skey, *str;
usr/src/lib/libnisdb/yptol/dit_access_utils.c
1042
if ((str = getFullMapName(map, domain)) == 0) {
usr/src/lib/libnisdb/yptol/dit_access_utils.c
1050
if (strcmp(str, t->objName) != 0) {
usr/src/lib/libnisdb/yptol/dit_access_utils.c
1178
sfree(str);
usr/src/lib/libnisdb/yptol/dit_access_utils.c
1200
sfree(str);
usr/src/lib/libnisdb/yptol/dit_access_utils.c
1217
char *dn = 0, *skey, *svalue, *str;
usr/src/lib/libnisdb/yptol/dit_access_utils.c
1250
if ((str = getFullMapName(map, domain)) == 0) {
usr/src/lib/libnisdb/yptol/dit_access_utils.c
1259
if (strcmp(str, t->objName) != 0) {
usr/src/lib/libnisdb/yptol/dit_access_utils.c
1299
sfree(str);
usr/src/lib/libnisdb/yptol/dit_access_utils.c
131
char *str, *oldstr;
usr/src/lib/libnisdb/yptol/dit_access_utils.c
1323
sfree(str);
usr/src/lib/libnisdb/yptol/dit_access_utils.c
1362
sfree(str);
usr/src/lib/libnisdb/yptol/dit_access_utils.c
1422
sfree(str);
usr/src/lib/libnisdb/yptol/dit_access_utils.c
1436
sfree(str);
usr/src/lib/libnisdb/yptol/dit_access_utils.c
153
str = oldstr = tempVal->val->value;
usr/src/lib/libnisdb/yptol/dit_access_utils.c
156
while (str) {
usr/src/lib/libnisdb/yptol/dit_access_utils.c
157
tempVal->val->value = str;
usr/src/lib/libnisdb/yptol/dit_access_utils.c
158
tempVal->val->length = strlen(str) + 1;
usr/src/lib/libnisdb/yptol/dit_access_utils.c
163
tempVal, &numVals, sepset, &str);
usr/src/lib/libnisdb/yptol/dit_access_utils.c
218
str = 0;
usr/src/lib/libnisdb/yptol/dit_access_utils.c
223
if (str) {
usr/src/lib/libnisdb/yptol/dit_access_utils.c
224
str = str + strspn(str, sepset);
usr/src/lib/libnisdb/yptol/dit_access_utils.c
225
if (*str == '\0')
usr/src/lib/libnisdb/yptol/dit_access_utils.c
234
if (str == 0) {
usr/src/lib/libnisdb/yptol/dit_access_utils.c
512
char *str, *tempstr;
usr/src/lib/libnisdb/yptol/dit_access_utils.c
541
str = 0;
usr/src/lib/libnisdb/yptol/dit_access_utils.c
595
if (str) {
usr/src/lib/libnisdb/yptol/dit_access_utils.c
597
0, str, delim);
usr/src/lib/libnisdb/yptol/dit_access_utils.c
598
sfree(str);
usr/src/lib/libnisdb/yptol/dit_access_utils.c
600
str = tempstr;
usr/src/lib/libnisdb/yptol/dit_access_utils.c
606
tempstr = scat(myself, 0, str,
usr/src/lib/libnisdb/yptol/dit_access_utils.c
608
sfree(str);
usr/src/lib/libnisdb/yptol/dit_access_utils.c
610
str = tempstr;
usr/src/lib/libnisdb/yptol/dit_access_utils.c
619
if (str == 0)
usr/src/lib/libnisdb/yptol/dit_access_utils.c
620
str = emptystr;
usr/src/lib/libnisdb/yptol/dit_access_utils.c
624
str, strlen(str), trv);
usr/src/lib/libnisdb/yptol/dit_access_utils.c
626
if (str != emptystr)
usr/src/lib/libnisdb/yptol/dit_access_utils.c
627
sfree(str);
usr/src/lib/libnisdb/yptol/dit_access_utils.c
795
char *str, *cstr, commentSep[3] = {' ', 0, 0};
usr/src/lib/libnisdb/yptol/dit_access_utils.c
825
(str = findVal(N2LCOMMENT, rv, mit_nisplus)) != 0 &&
usr/src/lib/libnisdb/yptol/dit_access_utils.c
826
*str != '\0') {
usr/src/lib/libnisdb/yptol/dit_access_utils.c
828
cstr = scat(myself, F, commentSep, str);
usr/src/lib/libnisdb/yptol/dit_access_utils.c
858
char *str;
usr/src/lib/libnisdb/yptol/dit_access_utils.c
879
if ((str = rv->colVal[i].val[j].value) == 0) {
usr/src/lib/libnisdb/yptol/dit_access_utils.c
884
rv->colName[i], str) == 0) {
usr/src/lib/libnisdb/yptol/dit_access_utils.c
890
key[j].dsize = strlen(str);
usr/src/lib/libnisdb/yptol/dit_access_utils.c
910
if (strncmp(YPMULTI, str,
usr/src/lib/libnisdb/yptol/dit_access_utils.c
913
bcopy(str, key[j].dptr,
usr/src/lib/libnisdb/yptol/dit_access_utils.c
920
str[k]);
usr/src/lib/libnisdb/yptol/dit_access_utils.c
924
bcopy(str, key[j].dptr,
usr/src/lib/libnisdb/yptol/dit_access_utils.c
970
char *sipkey, *str;
usr/src/lib/libnisdb/yptol/dit_access_utils.c
979
str = (char *)rv->colVal[i].val[j].value;
usr/src/lib/libnisdb/yptol/dit_access_utils.c
980
if (str && strcmp(str, key) == 0)
usr/src/lib/libnisdb/yptol/dit_access_utils.c
989
str = rv->colVal[i].val[j].value;
usr/src/lib/libnisdb/yptol/dit_access_utils.c
990
if (str && strcmp(str, sipkey) == 0) {
usr/src/lib/libnisdb/yptol/map_conv.c
404
add_separator(char *str)
usr/src/lib/libnisdb/yptol/map_conv.c
408
p = str + strlen(str);
usr/src/lib/libnisdb/yptol/shim_changepasswd.c
1281
char *str;
usr/src/lib/libnisdb/yptol/shim_changepasswd.c
1295
str = am(myself, len);
usr/src/lib/libnisdb/yptol/shim_changepasswd.c
1296
if (NULL == str) {
usr/src/lib/libnisdb/yptol/shim_changepasswd.c
1302
sprintf(str, "%s%c%d%c%d%c%d%c%d%c%d%c%d%c%d",
usr/src/lib/libnisdb/yptol/shim_changepasswd.c
1313
data.dptr = str;
usr/src/lib/libnisdb/yptol/shim_changepasswd.c
1319
sfree(str);
usr/src/lib/libnisdb/yptol/shim_changepasswd.c
133
extern int validstr(char *str, size_t size);
usr/src/lib/libnisdb/yptol/shim_changepasswd.c
885
get_next_token(char *str, char **op, char *str_end)
usr/src/lib/libnisdb/yptol/shim_changepasswd.c
890
p = str;
usr/src/lib/libnisdb/yptol/stubs.c
148
validstr(char *str, size_t size)
usr/src/lib/libnisdb/yptol/yptol.h
95
extern void add_separator(char *str);
usr/src/lib/libnsl/dial/callers.c
383
translate(char *ttab, char *str)
usr/src/lib/libnsl/dial/callers.c
388
for (s = str; *s; s++)
usr/src/lib/libnsl/dial/conn.c
352
getProto(char *save, char *str)
usr/src/lib/libnsl/dial/conn.c
357
if ((p = strchr(str, ',')) != NULL) {
usr/src/lib/libnsl/dial/conn.c
422
expect(char *str, int fn)
usr/src/lib/libnsl/dial/conn.c
429
for (sptr = str; *sptr; sptr++) {
usr/src/lib/libnsl/dial/conn.c
470
expect_str(char *str, int fn)
usr/src/lib/libnsl/dial/conn.c
480
for (c = 0; (kr = str[c]) != 0; c++)
usr/src/lib/libnsl/dial/conn.c
490
if (EQUALS(str, "\"\"")) {
usr/src/lib/libnsl/dial/conn.c
494
if (*str == '\0')
usr/src/lib/libnsl/dial/conn.c
500
while (notin(str, rdvec)) {
usr/src/lib/libnsl/dial/conn.c
577
sendthem(char *str, int fn, char *phstr1, char *phstr2)
usr/src/lib/libnsl/dial/conn.c
586
if (PREFIX("BREAK", str)) {
usr/src/lib/libnsl/dial/conn.c
593
if (EQUALS(str, "EOT")) {
usr/src/lib/libnsl/dial/conn.c
599
if (EQUALS(str, "\"\"")) {
usr/src/lib/libnsl/dial/conn.c
601
str += 2;
usr/src/lib/libnsl/dial/conn.c
606
for (sptr = str; *sptr; sptr++) {
usr/src/lib/libnsl/dial/getargs.c
102
for (num = 0, cp = str;
usr/src/lib/libnsl/dial/getargs.c
103
cp - str < 3; cp++) {
usr/src/lib/libnsl/dial/getargs.c
115
str = cp-1;
usr/src/lib/libnsl/dial/getargs.c
140
*to++ = *str;
usr/src/lib/libnsl/dial/getargs.c
145
*to++ = *str;
usr/src/lib/libnsl/dial/getargs.c
84
char *str, *to, *cp;
usr/src/lib/libnsl/dial/getargs.c
88
str = *args;
usr/src/lib/libnsl/dial/getargs.c
89
for (to = str; *str; str++) {
usr/src/lib/libnsl/dial/getargs.c
90
if (*str == '\\') {
usr/src/lib/libnsl/dial/getargs.c
91
if (str[1] == '\0')
usr/src/lib/libnsl/dial/getargs.c
93
switch (*++str) {
usr/src/lib/libnsl/dial/stoa.c
110
if (*str == '\\') {
usr/src/lib/libnsl/dial/stoa.c
111
++str;
usr/src/lib/libnsl/dial/stoa.c
112
switch (*str) {
usr/src/lib/libnsl/dial/stoa.c
116
addr->len = dobase(++str, sbuf, HEX);
usr/src/lib/libnsl/dial/stoa.c
121
addr->len = dobase(++str, sbuf, OCT);
usr/src/lib/libnsl/dial/stoa.c
78
stoa(char *str, struct netbuf *addr)
usr/src/lib/libnsl/dial/stoa.c
85
if (!str)
usr/src/lib/libnsl/dial/stoa.c
87
while (*str && isspace(*str)) /* leading whites are OK */
usr/src/lib/libnsl/dial/stoa.c
88
++str;
usr/src/lib/libnsl/dial/stoa.c
90
if (!str || !*str) /* Nothing to convert */
usr/src/lib/libnsl/dial/strsave.c
37
strsave(const char *str)
usr/src/lib/libnsl/dial/strsave.c
41
rval = malloc(strlen(str) + 1);
usr/src/lib/libnsl/dial/strsave.c
43
(void) strcpy(rval, str);
usr/src/lib/libnsl/dial/uucp.h
199
#define PREFIX(pre, str) (strncmp((pre), (str), strlen(pre)) == SAME)
usr/src/lib/libnsl/dial/uucp.h
200
#define BASENAME(str, c) ((Bnptr = strrchr((str), c)) ? (Bnptr + 1) : (str))
usr/src/lib/libnsl/ipsec/algs.c
170
_str_to_ipsec_exec_mode(char *str, ipsecalgs_exec_mode_t *exec_mode)
usr/src/lib/libnsl/ipsec/algs.c
172
if (strcmp(str, "sync") == 0) {
usr/src/lib/libnsl/ipsec/algs.c
175
} else if (strcmp(str, "async") == 0) {
usr/src/lib/libnsl/netdir/netdir.c
748
char *str;
usr/src/lib/libnsl/netdir/netdir.c
751
str = thr_main()?
usr/src/lib/libnsl/netdir/netdir.c
754
if (str == NULL)
usr/src/lib/libnsl/netdir/netdir.c
759
(void) snprintf(str, NDERR_BUFSZ,
usr/src/lib/libnsl/netdir/netdir.c
763
(void) snprintf(str, NDERR_BUFSZ,
usr/src/lib/libnsl/netdir/netdir.c
767
(void) snprintf(str, NDERR_BUFSZ,
usr/src/lib/libnsl/netdir/netdir.c
771
(void) snprintf(str, NDERR_BUFSZ,
usr/src/lib/libnsl/netdir/netdir.c
775
(void) snprintf(str, NDERR_BUFSZ, "%s : %s ",
usr/src/lib/libnsl/netdir/netdir.c
781
(void) snprintf(str, NDERR_BUFSZ, "%s - %s ",
usr/src/lib/libnsl/netdir/netdir.c
786
(void) snprintf(str, NDERR_BUFSZ,
usr/src/lib/libnsl/netdir/netdir.c
791
(void) snprintf(str, NDERR_BUFSZ,
usr/src/lib/libnsl/netdir/netdir.c
796
(void) snprintf(str, NDERR_BUFSZ,
usr/src/lib/libnsl/netdir/netdir.c
801
(void) snprintf(str, NDERR_BUFSZ,
usr/src/lib/libnsl/netdir/netdir.c
805
(void) snprintf(str, NDERR_BUFSZ,
usr/src/lib/libnsl/netdir/netdir.c
809
(void) snprintf(str, NDERR_BUFSZ, "%s: %s",
usr/src/lib/libnsl/netdir/netdir.c
814
(void) snprintf(str, NDERR_BUFSZ, "%s#%d",
usr/src/lib/libnsl/netdir/netdir.c
818
return (str);
usr/src/lib/libnsl/nss/netdir_inet.c
2537
struct strioctl str;
usr/src/lib/libnsl/nss/netdir_inet.c
2539
str.ic_cmd = cmd;
usr/src/lib/libnsl/nss/netdir_inet.c
2540
str.ic_timout = 0;
usr/src/lib/libnsl/nss/netdir_inet.c
2541
str.ic_len = ilen;
usr/src/lib/libnsl/nss/netdir_inet.c
2542
str.ic_dp = ptr;
usr/src/lib/libnsl/nss/netdir_inet.c
2544
return (nss_ioctl(af, I_STR, &str));
usr/src/lib/libnsl/rpc/clnt_perror.c
116
#define REMAINDER (ERRBUFSZ - (str - strstart))
usr/src/lib/libnsl/rpc/clnt_perror.c
123
char *str = __buf();
usr/src/lib/libnsl/rpc/clnt_perror.c
124
char *strstart = str;
usr/src/lib/libnsl/rpc/clnt_perror.c
126
if (str == NULL)
usr/src/lib/libnsl/rpc/clnt_perror.c
130
(void) snprintf(str, ERRBUFSZ, "%s: ", s);
usr/src/lib/libnsl/rpc/clnt_perror.c
131
str += strlcat(str, clnt_sperrno(e.re_status), ERRBUFSZ);
usr/src/lib/libnsl/rpc/clnt_perror.c
152
(void) snprintf(str, REMAINDER, "; %s", netdir_sperror());
usr/src/lib/libnsl/rpc/clnt_perror.c
153
str += strlen(str);
usr/src/lib/libnsl/rpc/clnt_perror.c
157
(void) snprintf(str, REMAINDER, "; %s", t_errlist[e.re_terrno]);
usr/src/lib/libnsl/rpc/clnt_perror.c
158
str += strlen(str);
usr/src/lib/libnsl/rpc/clnt_perror.c
160
(void) snprintf(str, REMAINDER,
usr/src/lib/libnsl/rpc/clnt_perror.c
162
str += strlen(str);
usr/src/lib/libnsl/rpc/clnt_perror.c
170
(void) snprintf(str, REMAINDER, "; errno = %s",
usr/src/lib/libnsl/rpc/clnt_perror.c
172
str += strlen(str);
usr/src/lib/libnsl/rpc/clnt_perror.c
175
(void) snprintf(str, REMAINDER,
usr/src/lib/libnsl/rpc/clnt_perror.c
177
str += strlen(str);
usr/src/lib/libnsl/rpc/clnt_perror.c
182
(void) snprintf(str, REMAINDER,
usr/src/lib/libnsl/rpc/clnt_perror.c
185
str += strlen(str);
usr/src/lib/libnsl/rpc/clnt_perror.c
190
(void) snprintf(str, REMAINDER, "; why = ");
usr/src/lib/libnsl/rpc/clnt_perror.c
191
str += strlen(str);
usr/src/lib/libnsl/rpc/clnt_perror.c
193
(void) snprintf(str, REMAINDER, "%s", err);
usr/src/lib/libnsl/rpc/clnt_perror.c
195
(void) snprintf(str, REMAINDER,
usr/src/lib/libnsl/rpc/clnt_perror.c
199
str += strlen(str);
usr/src/lib/libnsl/rpc/clnt_perror.c
203
(void) snprintf(str, REMAINDER,
usr/src/lib/libnsl/rpc/clnt_perror.c
206
str += strlen(str);
usr/src/lib/libnsl/rpc/clnt_perror.c
210
(void) snprintf(str, REMAINDER, "; s1 = %lu, s2 = %lu",
usr/src/lib/libnsl/rpc/clnt_perror.c
212
str += strlen(str);
usr/src/lib/libnsl/rpc/clnt_perror.c
238
char *str = __buf();
usr/src/lib/libnsl/rpc/clnt_perror.c
240
if (str == NULL)
usr/src/lib/libnsl/rpc/clnt_perror.c
242
(void) snprintf(str, ERRBUFSZ, "%s: ", s);
usr/src/lib/libnsl/rpc/clnt_perror.c
243
(void) strlcat(str, clnt_sperrno(rpc_createerr.cf_stat), ERRBUFSZ);
usr/src/lib/libnsl/rpc/clnt_perror.c
247
(void) strlcat(str, " - ", ERRBUFSZ);
usr/src/lib/libnsl/rpc/clnt_perror.c
248
(void) strlcat(str, netdir_sperror(), ERRBUFSZ);
usr/src/lib/libnsl/rpc/clnt_perror.c
252
(void) strlcat(str, " - ", ERRBUFSZ);
usr/src/lib/libnsl/rpc/clnt_perror.c
253
(void) strlcat(str,
usr/src/lib/libnsl/rpc/clnt_perror.c
259
(void) strlcat(str, " - ", ERRBUFSZ);
usr/src/lib/libnsl/rpc/clnt_perror.c
262
(void) strlcat(str, errstr, ERRBUFSZ);
usr/src/lib/libnsl/rpc/clnt_perror.c
264
(void) snprintf(&str[strlen(str)],
usr/src/lib/libnsl/rpc/clnt_perror.c
265
ERRBUFSZ - strlen(str), "Error %d",
usr/src/lib/libnsl/rpc/clnt_perror.c
270
(void) strlcat(str, " - ", ERRBUFSZ);
usr/src/lib/libnsl/rpc/clnt_perror.c
273
(void) strlcat(str,
usr/src/lib/libnsl/rpc/clnt_perror.c
280
(void) strlcat(str, " (", ERRBUFSZ);
usr/src/lib/libnsl/rpc/clnt_perror.c
281
(void) strlcat(str, err, ERRBUFSZ);
usr/src/lib/libnsl/rpc/clnt_perror.c
282
(void) strlcat(str, ")", ERRBUFSZ);
usr/src/lib/libnsl/rpc/clnt_perror.c
286
(void) snprintf(&str[strlen(str)],
usr/src/lib/libnsl/rpc/clnt_perror.c
287
ERRBUFSZ - strlen(str),
usr/src/lib/libnsl/rpc/clnt_perror.c
293
(void) strlcat(str, errstr, ERRBUFSZ);
usr/src/lib/libnsl/rpc/clnt_perror.c
295
(void) snprintf(&str[strlen(str)],
usr/src/lib/libnsl/rpc/clnt_perror.c
296
ERRBUFSZ - strlen(str), "Error %d",
usr/src/lib/libnsl/rpc/clnt_perror.c
301
(void) strlcat(str, " - ", ERRBUFSZ);
usr/src/lib/libnsl/rpc/clnt_perror.c
302
(void) strlcat(str,
usr/src/lib/libnsl/rpc/clnt_perror.c
306
return (str);
usr/src/lib/libnsl/rpc/svcauth_des.c
716
__msgout(int level, const char *str, const char *strarg)
usr/src/lib/libnsl/rpc/svcauth_des.c
718
(void) syslog(level, "%s %s", str, strarg);
usr/src/lib/libnsl/rpc/svcauth_des.c
723
__msgout2(const char *str, const char *str2)
usr/src/lib/libnsl/rpc/svcauth_des.c
725
(void) syslog(LOG_DEBUG, "%s %s", str, str2);
usr/src/lib/libnsl/rpc/ti_opts.c
345
char str[INET_ADDRSTRLEN];
usr/src/lib/libnsl/rpc/ti_opts.c
349
str, sizeof (str));
usr/src/lib/libnsl/rpc/ti_opts.c
352
str);
usr/src/lib/libnsl/rpc/ti_opts.c
401
char str[INET6_ADDRSTRLEN];
usr/src/lib/libnsl/rpc/ti_opts.c
405
str, sizeof (str));
usr/src/lib/libnsl/rpc/ti_opts.c
408
str);
usr/src/lib/libofmt/common/ofmt.c
104
split_str(const char *str, uint_t maxfields)
usr/src/lib/libofmt/common/ofmt.c
109
if (*str == '\0' || maxfields == 0)
usr/src/lib/libofmt/common/ofmt.c
116
sp->s_buf = strdup(str);
usr/src/lib/libofmt/common/ofmt.c
188
ofmt_open(const char *str, const ofmt_field_t *template, uint_t flags,
usr/src/lib/libofmt/common/ofmt.c
211
if (str == NULL || str[0] == '\0')
usr/src/lib/libofmt/common/ofmt.c
213
if (strcasecmp(str, "all") == 0)
usr/src/lib/libofmt/common/ofmt.c
226
if (str != NULL && strcasecmp(str, "all") != 0) {
usr/src/lib/libofmt/common/ofmt.c
227
sp = split_str(str, nfields);
usr/src/lib/libofmt/common/ofmt.c
229
if (parsable || (str != NULL && strcasecmp(str, "all") == 0))
usr/src/lib/libpicl/picl2door.h
66
char str[1];
usr/src/lib/libpicl/picl2door.h
68
#define ret_buf u.str
usr/src/lib/libpkg/common/gpkgmap.c
1121
getstrvfp(char **cp, char *sep, int n, char *str)
usr/src/lib/libpkg/common/gpkgmap.c
1164
(void) memcpy(str, p, len);
usr/src/lib/libpkg/common/gpkgmap.c
1165
str[len] = '\0';
usr/src/lib/libpkg/common/gpkgmap.c
1172
(void) memcpy(str, p, n-1);
usr/src/lib/libpkg/common/gpkgmap.c
1173
str[n-1] = '\0';
usr/src/lib/libpkg/common/gpkgmap.c
582
getstr(FILE *fp, char *sep, int n, char *str)
usr/src/lib/libpkg/common/gpkgmap.c
596
*str = '\0';
usr/src/lib/libpkg/common/gpkgmap.c
599
*str++ = (char)c;
usr/src/lib/libpkg/common/gpkgmap.c
604
*str = '\0';
usr/src/lib/libpkg/common/gpkgmap.c
64
static int getstr(FILE *fp, char *sep, int n, char *str);
usr/src/lib/libpkg/common/gpkgmap.c
71
static int getstrvfp(char **cp, char *sep, int n, char *str);
usr/src/lib/libpkg/common/pkglib.h
451
extern char *xstrdup(char *str);
usr/src/lib/libpkg/common/progerr.c
181
xstrdup(char *str)
usr/src/lib/libpkg/common/progerr.c
185
if (str == NULL)
usr/src/lib/libpkg/common/progerr.c
188
if ((tmp = strdup(str)) == NULL) {
usr/src/lib/libpkg/common/srchcfile.c
460
getstr(char **cp, int n, char *str, int separator[])
usr/src/lib/libpkg/common/srchcfile.c
48
static int getstr(char **cp, int n, char *str, int separator[]);
usr/src/lib/libpkg/common/srchcfile.c
495
(void) memcpy(str, p, len);
usr/src/lib/libpkg/common/srchcfile.c
496
str[len] = '\0';
usr/src/lib/libpkg/common/srchcfile.c
503
(void) memcpy(str, p, n-1);
usr/src/lib/libpkg/common/srchcfile.c
504
str[n-1] = '\0';
usr/src/lib/libpool/common/dict.c
215
hash_str(const char *str)
usr/src/lib/libpool/common/dict.c
217
uchar_t *p = (uchar_t *)str;
usr/src/lib/libpool/common/pool.c
268
const char *str;
usr/src/lib/libpool/common/pool.c
295
(void) pool_value_get_string(pval, &str);
usr/src/lib/libpool/common/pool.c
296
if (append_char_buf(cb, "%s", str) == PO_FAIL)
usr/src/lib/libpool/common/pool.c
390
const char *str;
usr/src/lib/libpool/common/pool.c
406
(void) pool_value_get_string(&val, &str);
usr/src/lib/libpool/common/pool.c
407
if (append_char_buf(cb, "\t%s\n", str) == PO_FAIL) {
usr/src/lib/libpool/common/pool.c
636
char *str;
usr/src/lib/libpool/common/pool.c
640
str = dgettext(TEXT_DOMAIN, "Operation successful");
usr/src/lib/libpool/common/pool.c
643
str = dgettext(TEXT_DOMAIN,
usr/src/lib/libpool/common/pool.c
647
str = dgettext(TEXT_DOMAIN, "Invalid configuration");
usr/src/lib/libpool/common/pool.c
650
str = dgettext(TEXT_DOMAIN, "Operation is not supported");
usr/src/lib/libpool/common/pool.c
653
str = dgettext(TEXT_DOMAIN, "Invalid search");
usr/src/lib/libpool/common/pool.c
656
str = dgettext(TEXT_DOMAIN, "Bad parameter supplied");
usr/src/lib/libpool/common/pool.c
659
str = dgettext(TEXT_DOMAIN, "Error putting property");
usr/src/lib/libpool/common/pool.c
662
str = dgettext(TEXT_DOMAIN, "Pools repository error");
usr/src/lib/libpool/common/pool.c
665
str = dgettext(TEXT_DOMAIN, "System error");
usr/src/lib/libpool/common/pool.c
668
str = dgettext(TEXT_DOMAIN, "Permission denied");
usr/src/lib/libpool/common/pool.c
672
str = NULL;
usr/src/lib/libpool/common/pool.c
674
return (str);
usr/src/lib/libproc/common/Pcontrol.c
1170
const char *str;
usr/src/lib/libproc/common/Pcontrol.c
1174
str = "no such process";
usr/src/lib/libproc/common/Pcontrol.c
1177
str = "no such core file";
usr/src/lib/libproc/common/Pcontrol.c
1180
str = "no such process or core file";
usr/src/lib/libproc/common/Pcontrol.c
1183
str = "cannot find executable file";
usr/src/lib/libproc/common/Pcontrol.c
1186
str = "zombie process";
usr/src/lib/libproc/common/Pcontrol.c
1189
str = "permission denied";
usr/src/lib/libproc/common/Pcontrol.c
1192
str = "process is traced";
usr/src/lib/libproc/common/Pcontrol.c
1195
str = "system process";
usr/src/lib/libproc/common/Pcontrol.c
1198
str = "attempt to grab self";
usr/src/lib/libproc/common/Pcontrol.c
1201
str = "operation interrupted";
usr/src/lib/libproc/common/Pcontrol.c
1204
str = "program is _LP64, self is not";
usr/src/lib/libproc/common/Pcontrol.c
1207
str = "file is not an ELF core file";
usr/src/lib/libproc/common/Pcontrol.c
1210
str = "libelf error";
usr/src/lib/libproc/common/Pcontrol.c
1213
str = "core file is corrupt or missing required data";
usr/src/lib/libproc/common/Pcontrol.c
1216
str = "unanticipated system error";
usr/src/lib/libproc/common/Pcontrol.c
1219
str = "wrong ELF machine type";
usr/src/lib/libproc/common/Pcontrol.c
1222
str = "bad lwp specification";
usr/src/lib/libproc/common/Pcontrol.c
1225
str = "too many open files";
usr/src/lib/libproc/common/Pcontrol.c
1228
str = "unknown error";
usr/src/lib/libproc/common/Pcontrol.c
1232
return (str);
usr/src/lib/libproc/common/Pcontrol.c
3369
const char *str;
usr/src/lib/libproc/common/Pcontrol.c
3373
str = "no such LWP";
usr/src/lib/libproc/common/Pcontrol.c
3376
str = "LWP already grabbed";
usr/src/lib/libproc/common/Pcontrol.c
3379
str = "unanticipated system error";
usr/src/lib/libproc/common/Pcontrol.c
3382
str = "unknown error";
usr/src/lib/libproc/common/Pcontrol.c
3386
return (str);
usr/src/lib/libproc/common/Pcontrol.c
764
const char *str;
usr/src/lib/libproc/common/Pcontrol.c
768
str = "cannot fork";
usr/src/lib/libproc/common/Pcontrol.c
771
str = "file is set-id or unreadable";
usr/src/lib/libproc/common/Pcontrol.c
774
str = "cannot execute file";
usr/src/lib/libproc/common/Pcontrol.c
777
str = "operation interrupted";
usr/src/lib/libproc/common/Pcontrol.c
780
str = "program is _LP64, self is not";
usr/src/lib/libproc/common/Pcontrol.c
783
str = "unanticipated system error";
usr/src/lib/libproc/common/Pcontrol.c
786
str = "cannot find executable file";
usr/src/lib/libproc/common/Pcontrol.c
789
str = "unknown error";
usr/src/lib/libproc/common/Pcontrol.c
793
return (str);
usr/src/lib/libproc/common/Pgcore.c
1619
proc_str2content(const char *str, core_content_t *cp)
usr/src/lib/libproc/common/Pgcore.c
1621
const char *cur = str;
usr/src/lib/libproc/common/Pgcore.c
1626
for (cur = str; isalpha(*cur); cur++)
usr/src/lib/libproc/common/Pgcore.c
1629
if (STREQ(str, "default", cur - str)) {
usr/src/lib/libproc/common/Pgcore.c
1631
} else if (STREQ(str, "all", cur - str)) {
usr/src/lib/libproc/common/Pgcore.c
1633
} else if (STREQ(str, "none", cur - str)) {
usr/src/lib/libproc/common/Pgcore.c
1638
while (!STREQ(str, content_str[i], cur - str)) {
usr/src/lib/libproc/common/Pgcore.c
1667
str = cur + 1;
usr/src/lib/libproc/common/proc_names.c
416
proc_str2flt(const char *str, int *fltnum)
usr/src/lib/libproc/common/proc_names.c
421
i = strtol(str, &next, 0);
usr/src/lib/libproc/common/proc_names.c
430
if (s && (strcasecmp(s, str) == 0 ||
usr/src/lib/libproc/common/proc_names.c
431
strcasecmp(s + 3, str) == 0)) {
usr/src/lib/libproc/common/proc_names.c
446
proc_str2sig(const char *str, int *signum)
usr/src/lib/libproc/common/proc_names.c
448
if (strncasecmp(str, "SIG", 3) == 0)
usr/src/lib/libproc/common/proc_names.c
449
str += 3; /* skip prefix */
usr/src/lib/libproc/common/proc_names.c
451
return (str2sig(str, signum));
usr/src/lib/libproc/common/proc_names.c
459
proc_str2sys(const char *str, int *sysnum)
usr/src/lib/libproc/common/proc_names.c
464
i = strtol(str, &next, 0);
usr/src/lib/libproc/common/proc_names.c
471
if (systable[i] != NULL && strcmp(systable[i], str) == 0) {
usr/src/lib/libprtdiag_psr/sparc/javelin/common/javelin.c
1259
tazmo_physical_slot(Prom_node *slotd, Prom_node *parent, int device, char *str)
usr/src/lib/libprtdiag_psr/sparc/javelin/common/javelin.c
1285
(void) strcpy(str, "");
usr/src/lib/libprtdiag_psr/sparc/javelin/common/javelin.c
1336
(void) strcpy(str, "");
usr/src/lib/libprtdiag_psr/sparc/javelin/common/javelin.c
1353
(void) strcpy(str, slot_names);
usr/src/lib/libprtdiag_psr/sparc/opl/common/opl.c
124
char *str;
usr/src/lib/libprtdiag_psr/sparc/opl/common/opl.c
142
str = (char *)get_prop_val(find_prop(node, "name"));
usr/src/lib/libprtdiag_psr/sparc/opl/common/opl.c
143
(void) strlcpy(card.name, (str == NULL ? "N/A":str),
usr/src/lib/libprtdiag_psr/sparc/opl/common/opl.c
146
str = (char *)get_prop_val(find_prop(node, "model"));
usr/src/lib/libprtdiag_psr/sparc/opl/common/opl.c
147
(void) strlcpy(card.model, (str == NULL ? "N/A":str),
usr/src/lib/libprtdiag_psr/sparc/serengeti/common/serengeti.c
101
strncat(str, tmp_str, sizeof (tmp_str)); \
usr/src/lib/libprtdiag_psr/sparc/serengeti/common/serengeti.c
104
#define CFG_SET_FRU_NAME_CPU_BOARD(str, num) \
usr/src/lib/libprtdiag_psr/sparc/serengeti/common/serengeti.c
108
strncat(str, tmp_str, sizeof (tmp_str)); \
usr/src/lib/libprtdiag_psr/sparc/serengeti/common/serengeti.c
111
#define CFG_SET_FRU_NAME_MODULE(str, num) \
usr/src/lib/libprtdiag_psr/sparc/serengeti/common/serengeti.c
115
strncat(str, tmp_str, sizeof (tmp_str)); \
usr/src/lib/libprtdiag_psr/sparc/serengeti/common/serengeti.c
97
#define CFG_SET_FRU_NAME_NODE(str, num) \
usr/src/lib/libprtdiag_psr/sparc/tazmo/common/tazmo.c
1468
tazmo_physical_slot(Prom_node *slotd, Prom_node *parent, int device, char *str)
usr/src/lib/libprtdiag_psr/sparc/tazmo/common/tazmo.c
1494
(void) strcpy(str, "");
usr/src/lib/libprtdiag_psr/sparc/tazmo/common/tazmo.c
1540
(void) strcpy(str, "");
usr/src/lib/libprtdiag_psr/sparc/tazmo/common/tazmo.c
1557
(void) strcpy(str, slot_names);
usr/src/lib/libresolv2/common/bsd/putenv.c
13
putenv(char *str) {
usr/src/lib/libresolv2/common/bsd/putenv.c
16
for (tmp = str; *tmp && (*tmp != '='); tmp++)
usr/src/lib/libresolv2/common/bsd/putenv.c
19
return (setenv(str, tmp, 1));
usr/src/lib/libresolv2/common/dst/dst_internal.h
120
int dst_s_calculate_bits( const u_int8_t *str, const int max_bits);
usr/src/lib/libresolv2/common/dst/dst_internal.h
121
int dst_s_verify_str( const char **buf, const char *str);
usr/src/lib/libresolv2/common/dst/dst_internal.h
66
#define EREPORT(str) printf str
usr/src/lib/libresolv2/common/dst/dst_internal.h
68
#define EREPORT(str) (void)0
usr/src/lib/libresolv2/common/dst/dst_internal.h
92
int (*from_dns_key)(DST_KEY *key, const u_int8_t *str,
usr/src/lib/libresolv2/common/dst/support.c
49
dst_s_verify_str(const char **buf, const char *str)
usr/src/lib/libresolv2/common/dst/support.c
54
if (str == NULL || *str == '\0')
usr/src/lib/libresolv2/common/dst/support.c
58
s = strlen(str);
usr/src/lib/libresolv2/common/dst/support.c
59
if (s > b || strncmp(*buf, str, s)) /*%< check if same */
usr/src/lib/libresolv2/common/dst/support.c
77
dst_s_calculate_bits(const u_char *str, const int max_bits)
usr/src/lib/libresolv2/common/dst/support.c
79
const u_char *p = str;
usr/src/lib/libresolv2/common/irs/getaddrinfo.c
243
#define GET_CANONNAME(ai, str) \
usr/src/lib/libresolv2/common/irs/getaddrinfo.c
246
error = get_canonname(pai, (ai), (str)); \
usr/src/lib/libresolv2/common/irs/getaddrinfo.c
904
get_canonname(pai, ai, str)
usr/src/lib/libresolv2/common/irs/getaddrinfo.c
907
const char *str;
usr/src/lib/libresolv2/common/irs/getaddrinfo.c
910
ai->ai_canonname = (char *)malloc(strlen(str) + 1);
usr/src/lib/libresolv2/common/irs/getaddrinfo.c
913
strcpy(ai->ai_canonname, str);
usr/src/lib/libresolv2/common/irs/irpmarshall.c
1846
strndup(const char *str, size_t len) {
usr/src/lib/libresolv2/common/irs/irpmarshall.c
1851
strncpy(p, str, len);
usr/src/lib/libresolv2/common/irs/irpmarshall.c
90
static char *strndup(const char *str, size_t len);
usr/src/lib/libresolv2/common/isc/ev_streams.c
122
evStream *str = id.opaque;
usr/src/lib/libresolv2/common/isc/ev_streams.c
126
str->timer = timer;
usr/src/lib/libresolv2/common/isc/ev_streams.c
127
str->flags |= EV_STR_TIMEROK;
usr/src/lib/libresolv2/common/isc/ev_streams.c
133
evStream *str = id.opaque;
usr/src/lib/libresolv2/common/isc/ev_streams.c
137
str->flags &= ~EV_STR_TIMEROK;
usr/src/lib/libresolv2/common/isc/ev_streams.c
197
copyvec(evStream *str, const struct iovec *iov, int iocnt) {
usr/src/lib/libresolv2/common/isc/ev_streams.c
200
str->iovOrig = (struct iovec *)memget(sizeof(struct iovec) * iocnt);
usr/src/lib/libresolv2/common/isc/ev_streams.c
201
if (str->iovOrig == NULL) {
usr/src/lib/libresolv2/common/isc/ev_streams.c
205
str->ioTotal = 0;
usr/src/lib/libresolv2/common/isc/ev_streams.c
207
str->iovOrig[i] = iov[i];
usr/src/lib/libresolv2/common/isc/ev_streams.c
208
str->ioTotal += iov[i].iov_len;
usr/src/lib/libresolv2/common/isc/ev_streams.c
210
str->iovOrigCount = iocnt;
usr/src/lib/libresolv2/common/isc/ev_streams.c
211
str->iovCur = str->iovOrig;
usr/src/lib/libresolv2/common/isc/ev_streams.c
212
str->iovCurCount = str->iovOrigCount;
usr/src/lib/libresolv2/common/isc/ev_streams.c
213
str->ioDone = 0;
usr/src/lib/libresolv2/common/isc/ev_streams.c
219
consume(evStream *str, size_t bytes) {
usr/src/lib/libresolv2/common/isc/ev_streams.c
221
if (bytes < (size_t)str->iovCur->iov_len) {
usr/src/lib/libresolv2/common/isc/ev_streams.c
222
str->iovCur->iov_len -= bytes;
usr/src/lib/libresolv2/common/isc/ev_streams.c
223
str->iovCur->iov_base = (void *)
usr/src/lib/libresolv2/common/isc/ev_streams.c
224
((u_char *)str->iovCur->iov_base + bytes);
usr/src/lib/libresolv2/common/isc/ev_streams.c
225
str->ioDone += bytes;
usr/src/lib/libresolv2/common/isc/ev_streams.c
228
bytes -= str->iovCur->iov_len;
usr/src/lib/libresolv2/common/isc/ev_streams.c
229
str->ioDone += str->iovCur->iov_len;
usr/src/lib/libresolv2/common/isc/ev_streams.c
230
str->iovCur++;
usr/src/lib/libresolv2/common/isc/ev_streams.c
231
str->iovCurCount--;
usr/src/lib/libresolv2/common/isc/ev_streams.c
238
done(evContext opaqueCtx, evStream *str) {
usr/src/lib/libresolv2/common/isc/ev_streams.c
242
str->prevDone = ctx->strLast;
usr/src/lib/libresolv2/common/isc/ev_streams.c
243
ctx->strLast->nextDone = str;
usr/src/lib/libresolv2/common/isc/ev_streams.c
244
ctx->strLast = str;
usr/src/lib/libresolv2/common/isc/ev_streams.c
247
ctx->strDone = ctx->strLast = str;
usr/src/lib/libresolv2/common/isc/ev_streams.c
249
evDeselectFD(opaqueCtx, str->file);
usr/src/lib/libresolv2/common/isc/ev_streams.c
250
str->file.opaque = NULL;
usr/src/lib/libresolv2/common/isc/ev_streams.c
257
evStream *str = uap;
usr/src/lib/libresolv2/common/isc/ev_streams.c
262
bytes = writev(fd, str->iovCur, str->iovCurCount);
usr/src/lib/libresolv2/common/isc/ev_streams.c
264
if ((str->flags & EV_STR_TIMEROK) != 0)
usr/src/lib/libresolv2/common/isc/ev_streams.c
265
evTouchIdleTimer(opaqueCtx, str->timer);
usr/src/lib/libresolv2/common/isc/ev_streams.c
266
consume(str, bytes);
usr/src/lib/libresolv2/common/isc/ev_streams.c
269
str->ioDone = -1;
usr/src/lib/libresolv2/common/isc/ev_streams.c
270
str->ioErrno = errno;
usr/src/lib/libresolv2/common/isc/ev_streams.c
273
if (str->ioDone == -1 || str->ioDone == str->ioTotal)
usr/src/lib/libresolv2/common/isc/ev_streams.c
274
done(opaqueCtx, str);
usr/src/lib/libresolv2/common/isc/ev_streams.c
280
evStream *str = uap;
usr/src/lib/libresolv2/common/isc/ev_streams.c
285
bytes = readv(fd, str->iovCur, str->iovCurCount);
usr/src/lib/libresolv2/common/isc/ev_streams.c
287
if ((str->flags & EV_STR_TIMEROK) != 0)
usr/src/lib/libresolv2/common/isc/ev_streams.c
288
evTouchIdleTimer(opaqueCtx, str->timer);
usr/src/lib/libresolv2/common/isc/ev_streams.c
289
consume(str, bytes);
usr/src/lib/libresolv2/common/isc/ev_streams.c
292
str->ioDone = 0;
usr/src/lib/libresolv2/common/isc/ev_streams.c
295
str->ioDone = -1;
usr/src/lib/libresolv2/common/isc/ev_streams.c
296
str->ioErrno = errno;
usr/src/lib/libresolv2/common/isc/ev_streams.c
300
if (str->ioDone <= 0 || str->ioDone == str->ioTotal)
usr/src/lib/libresolv2/common/isc/ev_streams.c
301
done(opaqueCtx, str);
usr/src/lib/libresolv2/common/isc/ev_streams.c
36
static int copyvec(evStream *str, const struct iovec *iov, int iocnt);
usr/src/lib/libresolv2/common/isc/ev_streams.c
37
static void consume(evStream *str, size_t bytes);
usr/src/lib/libresolv2/common/isc/ev_streams.c
38
static void done(evContext opaqueCtx, evStream *str);
usr/src/lib/libresolv2/common/nameser/ns_print.c
1006
const char *str = "record too long to print";
usr/src/lib/libresolv2/common/nameser/ns_print.c
1007
T(addstr(str, strlen(str), &buf, &buflen));
usr/src/lib/libresolv2/common/nameser/ns_print.c
582
const char *str = "record too long to print";
usr/src/lib/libresolv2/common/nameser/ns_print.c
583
T(addstr(str, strlen(str), &buf, &buflen));
usr/src/lib/libresolv2/common/nameser/ns_print.c
873
const char *str = "record too long to print";
usr/src/lib/libresolv2/common/nameser/ns_print.c
874
T(addstr(str, strlen(str), &buf, &buflen));
usr/src/lib/libresolv2/common/nameser/ns_print.c
965
const char *str = "record too long to print";
usr/src/lib/libresolv2/common/nameser/ns_print.c
966
T(addstr(str, strlen(str), &buf, &buflen));
usr/src/lib/librestart/common/librestart.c
2098
get_uid(const char *str, struct method_context *ci, uid_t *uidp)
usr/src/lib/librestart/common/librestart.c
2100
if (isdigit(str[0])) {
usr/src/lib/librestart/common/librestart.c
2105
uid = strtol(str, &cp, 10);
usr/src/lib/librestart/common/librestart.c
2134
getpwnam_r(str, &ci->pwd, ci->pwbuf, ci->pwbufsz);
usr/src/lib/librestart/common/librestart.c
2163
get_gid(const char *str)
usr/src/lib/librestart/common/librestart.c
2165
if (isdigit(str[0])) {
usr/src/lib/librestart/common/librestart.c
2170
gid = strtol(str, &cp, 10);
usr/src/lib/librestart/common/librestart.c
2191
ret = getgrnam_r(str, &grp, buffer, buflen);
usr/src/lib/librestart/common/librestart.c
2212
get_projid(const char *str, struct method_context *cip)
usr/src/lib/librestart/common/librestart.c
2219
if (strcmp(str, ":default") == 0) {
usr/src/lib/librestart/common/librestart.c
2256
if (!isdigit(str[0])) {
usr/src/lib/librestart/common/librestart.c
2257
cip->project = strdup(str);
usr/src/lib/librestart/common/librestart.c
2262
projid = strtol(str, &cp, 10);
usr/src/lib/librestart/common/librestart.c
2317
get_groups(char *str, struct method_context *ci)
usr/src/lib/librestart/common/librestart.c
2325
if (str[0] == '\0') {
usr/src/lib/librestart/common/librestart.c
2330
for (cp = str, i = 0; *cp != '\0'; ) {
usr/src/lib/librestart/common/librestart.c
4045
const char *pgtype, uint32_t pgflags, const char *pname, const char *str)
usr/src/lib/librestart/common/librestart.c
4066
if (scf_value_set_astring(v, str) != SCF_SUCCESS)
usr/src/lib/libsasl/include/plugin_common.h
160
void _plug_free_string(const sasl_utils_t *utils, char **str);
usr/src/lib/libsasl/include/saslplug.h
103
int (*utf8verify)(const char *str, unsigned len);
usr/src/lib/libsasl/include/saslutil.h
70
LIBSASL_API int sasl_utf8verify(const char *str, unsigned len);
usr/src/lib/libsasl/lib/common.c
881
char *str;
usr/src/lib/libsasl/lib/common.c
909
result = _sasl_strdup(value, &str, NULL);
usr/src/lib/libsasl/lib/common.c
912
str = NULL;
usr/src/lib/libsasl/lib/common.c
918
conn->external.auth_id = str;
usr/src/lib/libsasl/lib/common.c
935
result = _sasl_strdup(value, &str, NULL);
usr/src/lib/libsasl/lib/common.c
944
((sasl_server_conn_t *)conn)->user_realm = str;
usr/src/lib/libsasl/lib/common.c
945
((sasl_server_conn_t *)conn)->sparams->user_realm = str;
usr/src/lib/libsasl/lib/dlopen.c
505
char str[PATH_MAX], tmp[PATH_MAX+2], prefix[PATH_MAX+2];
usr/src/lib/libsasl/lib/dlopen.c
605
str[pos]=c;
usr/src/lib/libsasl/lib/dlopen.c
608
str[pos-1]='\0';
usr/src/lib/libsasl/lib/dlopen.c
610
strcpy(prefix,str);
usr/src/lib/libsasl/lib/dlopen.c
647
if ((dp=opendir(str)) !=NULL) /* ignore errors */
usr/src/lib/libsasl/lib/saslutil.c
300
int sasl_utf8verify(const char *str, unsigned len)
usr/src/lib/libsasl/lib/saslutil.c
304
if (str == NULL)
usr/src/lib/libsasl/lib/saslutil.c
306
if (len == 0) len = strlen(str);
usr/src/lib/libsasl/lib/saslutil.c
311
while (str[i] & (0x80 >> seqlen)) ++seqlen;
usr/src/lib/libsasl/lib/saslutil.c
314
if (str[i] == '\0' || str[i] == '\n' || str[i] == '\r')
usr/src/lib/libsasl/lib/saslutil.c
325
if ((str[++i] & 0xC0) != 0x80)
usr/src/lib/libsasl/lib/saslutil.c
328
if ((str[++i] & 0xC0) != 0xF0) return SASL_BADPROT; /* needed a 10 octet */
usr/src/lib/libsasl/plugin/plugin_common.c
353
void _plug_free_string(const sasl_utils_t *utils, char **str)
usr/src/lib/libsasl/plugin/plugin_common.c
357
if (!utils || !str || !(*str)) return;
usr/src/lib/libsasl/plugin/plugin_common.c
359
len = strlen(*str);
usr/src/lib/libsasl/plugin/plugin_common.c
361
utils->erasebuffer(*str, len);
usr/src/lib/libsasl/plugin/plugin_common.c
362
utils->free(*str);
usr/src/lib/libsasl/plugin/plugin_common.c
364
*str=NULL;
usr/src/lib/libscf/common/lowlevel.c
4919
scf_value_set_from_string(scf_value_t *v, scf_type_t type, const char *str)
usr/src/lib/libscf/common/lowlevel.c
4928
if (strcmp(str, "true") == 0 || strcmp(str, "t") == 0 ||
usr/src/lib/libscf/common/lowlevel.c
4929
strcmp(str, "1") == 0)
usr/src/lib/libscf/common/lowlevel.c
4931
else if (strcmp(str, "false") == 0 ||
usr/src/lib/libscf/common/lowlevel.c
4932
strcmp(str, "f") == 0 || strcmp(str, "0") == 0)
usr/src/lib/libscf/common/lowlevel.c
4947
c = strtoull(str, &endp, 0);
usr/src/lib/libscf/common/lowlevel.c
4949
if (errno != 0 || endp == str || *endp != '\0')
usr/src/lib/libscf/common/lowlevel.c
4961
i = strtoll(str, &endp, 0);
usr/src/lib/libscf/common/lowlevel.c
4963
if (errno != 0 || endp == str || *endp != '\0')
usr/src/lib/libscf/common/lowlevel.c
4977
s = strtoll(str, &endp, 10);
usr/src/lib/libscf/common/lowlevel.c
4978
if (errno != 0 || endp == str ||
usr/src/lib/libscf/common/lowlevel.c
5016
str, sizeof (v->value_value));
usr/src/lib/libscf/common/lowlevel.c
5017
if (!scf_validate_encoded_value(ty, str)) {
usr/src/lib/libscf/common/lowlevel.c
5022
(void) strlcpy(v->value_value, str,
usr/src/lib/libscf/common/notify_params.c
608
char *str;
usr/src/lib/libscf/common/notify_params.c
610
(void) nvpair_value_string(p, &str);
usr/src/lib/libscf/common/notify_params.c
611
return (add_astring_entry(h, te, str));
usr/src/lib/libscf/common/scf_tmpl.c
2945
char *str;
usr/src/lib/libscf/common/scf_tmpl.c
2948
str = _add_locale_to_name(name, locale);
usr/src/lib/libscf/common/scf_tmpl.c
2949
if (str == NULL)
usr/src/lib/libscf/common/scf_tmpl.c
2951
lname_prop = _scf_read_single_astring_from_pg(pg, str);
usr/src/lib/libscf/common/scf_tmpl.c
2953
free(str);
usr/src/lib/libscf/common/scf_tmpl.c
2956
str = _add_locale_to_name(name, "C");
usr/src/lib/libscf/common/scf_tmpl.c
2957
if (str == NULL)
usr/src/lib/libscf/common/scf_tmpl.c
2959
lname_prop = _scf_read_single_astring_from_pg(pg, str);
usr/src/lib/libscf/common/scf_tmpl.c
2961
free(str);
usr/src/lib/libscf/common/scf_tmpl.c
3635
char *str, *token;
usr/src/lib/libscf/common/scf_tmpl.c
3644
str = strdup(string);
usr/src/lib/libscf/common/scf_tmpl.c
3645
if (str == NULL) {
usr/src/lib/libscf/common/scf_tmpl.c
3650
if ((array[n] = strtok_r(str, sep, &lasts)) == NULL) {
usr/src/lib/libscf/common/scf_tmpl.c
3667
return (str);
usr/src/lib/libscf/common/scf_tmpl.c
3669
free(str);
usr/src/lib/libscf/common/scf_tmpl.c
3776
char *str = NULL;
usr/src/lib/libscf/common/scf_tmpl.c
3797
if ((str = _separate_by_separator(ret[i], ",", one_range,
usr/src/lib/libscf/common/scf_tmpl.c
3816
free(str);
usr/src/lib/libscf/common/scf_tmpl.c
3817
str = NULL;
usr/src/lib/libscf/common/scf_tmpl.c
3825
free(str);
usr/src/lib/libscf/common/scf_tmpl.c
3875
char *str = NULL;
usr/src/lib/libscf/common/scf_tmpl.c
3896
if ((str = _separate_by_separator(ret[n], ",", one_range, 2))
usr/src/lib/libscf/common/scf_tmpl.c
3916
free(str);
usr/src/lib/libscf/common/scf_tmpl.c
3917
str = NULL;
usr/src/lib/libscf/common/scf_tmpl.c
3925
free(str);
usr/src/lib/libscf/common/scf_tmpl.c
4099
char **str = NULL;
usr/src/lib/libscf/common/scf_tmpl.c
4104
str = vals->values_as_strings;
usr/src/lib/libscf/common/scf_tmpl.c
4119
str = NULL;
usr/src/lib/libscf/common/scf_tmpl.c
4123
str = NULL;
usr/src/lib/libscf/common/scf_tmpl.c
4127
str = NULL;
usr/src/lib/libscf/common/scf_tmpl.c
4139
if (str != NULL)
usr/src/lib/libscf/common/scf_tmpl.c
4140
free(str[i]);
usr/src/lib/libscf/common/scf_tmpl.c
4144
free(str);
usr/src/lib/libscf/common/scf_tmpl.c
5921
const char *str;
usr/src/lib/libscf/common/scf_tmpl.c
5948
if ((str = _tmpl_error_items[i].get_desc(err)) == NULL)
usr/src/lib/libscf/common/scf_tmpl.c
5952
ret = snprintf(buf, sz, "%s%s=\"%s\"", sep, str,
usr/src/lib/libscf/common/scf_type.c
105
const char *str = str_arg;
usr/src/lib/libscf/common/scf_type.c
110
while ((c = *str++) != 0) {
usr/src/lib/libscf/common/scf_type.c
124
c = *str++;
usr/src/lib/libscf/common/scf_type.c
142
return ((str - str_arg) < REP_PROTOCOL_VALUE_LEN);
usr/src/lib/libscf/common/scf_type.c
146
valid_string(const char *str)
usr/src/lib/libscf/common/scf_type.c
148
return (strlen(str) < REP_PROTOCOL_VALUE_LEN);
usr/src/lib/libscf/common/scf_type.c
154
const char *str = str_arg;
usr/src/lib/libscf/common/scf_type.c
158
while ((c = *str++) != 0)
usr/src/lib/libscf/common/scf_type.c
163
len = (str - str_arg) - 1; /* not counting NIL byte */
usr/src/lib/libscf/common/scf_type.c
172
valid_uri(const char *str)
usr/src/lib/libscf/common/scf_type.c
195
if (strlen(str) >= REP_PROTOCOL_VALUE_LEN)
usr/src/lib/libscf/common/scf_type.c
198
if (regex(exp, str, uri[URI_SCHEME], uri[URI_AUTHORITY], uri[URI_PATH],
usr/src/lib/libscf/common/scf_type.c
216
valid_fmri(const char *str)
usr/src/lib/libscf/common/scf_type.c
227
if (strlcpy(fmri, str, sizeof (fmri)) >= sizeof (fmri))
usr/src/lib/libscf/common/scf_type.c
256
valid_ip(int af, const char *str)
usr/src/lib/libscf/common/scf_type.c
259
const char *addr = str;
usr/src/lib/libscf/common/scf_type.c
282
if ((net_prefix = strchr(str, '/')) != NULL) {
usr/src/lib/libscf/common/scf_type.c
286
(void) strlcpy(buf, str, buf_sz);
usr/src/lib/libsec/common/acl.y
38
char *str;
usr/src/lib/libsec/common/acl.y
51
%token <str> ID IDNAME PERM_TOK INHERIT_TOK SID
usr/src/lib/libsec/common/acl.y
54
%type <str> idname id
usr/src/lib/libsec/common/acl.y
572
bad_entry_type(int toketype, char *str)
usr/src/lib/libsec/common/acl.y
578
"Invalid user %s specified.\n"), str);
usr/src/lib/libsec/common/acl.y
584
"Invalid group %s specified.\n"), str);
usr/src/lib/libsec/common/acl.y
589
"Invalid user SID %s specified.\n"), str);
usr/src/lib/libsec/common/acl.y
594
"Invalid group SID %s specified.\n"), str);
usr/src/lib/libsec/common/acl.y
599
"Invalid SID %s specified.\n"), str);
usr/src/lib/libsec/common/acltext.c
1273
ace_inherit_helper(char *str, uint32_t *imask, int table_length)
usr/src/lib/libsec/common/acltext.c
1277
if (strlen(str) == table_length) {
usr/src/lib/libsec/common/acltext.c
1283
if (compute_values(inherit_table, table_length, str,
usr/src/lib/libsec/common/acltext.c
1285
table_length, str, 0, imask)) {
usr/src/lib/libsec/common/acltext.c
1289
rc = compute_values(inherit_table, table_length, str, 0, imask);
usr/src/lib/libsec/common/acltext.c
1299
compute_ace_inherit(char *str, uint32_t *imask)
usr/src/lib/libsec/common/acltext.c
1303
rc = ace_inherit_helper(str, imask, IFLAG_COUNT);
usr/src/lib/libsec/common/acltext.c
1305
if (rc && strlen(str) != IFLAG_COUNT) {
usr/src/lib/libsec/common/acltext.c
1308
rc = ace_inherit_helper(str, imask, IFLAG_COUNT_V1);
usr/src/lib/libsec/common/acltext.c
1319
compute_ace_perms(char *str, uint32_t *mask)
usr/src/lib/libsec/common/acltext.c
1324
if (strlen(str) == ACE_PERM_COUNT)
usr/src/lib/libsec/common/acltext.c
1328
str, positional, mask);
usr/src/lib/libsec/common/acltext.c
1337
ACE_PERM_COUNT, str, 0, mask);
usr/src/lib/libsec/common/acltext.c
1351
compute_aclent_perms(char *str, o_mode_t *mask)
usr/src/lib/libsec/common/acltext.c
1356
if (strlen(str) != ACLENT_PERM_COUNT)
usr/src/lib/libsec/common/acltext.c
1361
str, 1, &pmask);
usr/src/lib/libsec/common/acltext.c
294
split_line(char *str, int cols)
usr/src/lib/libsec/common/acltext.c
303
len = strlen(str);
usr/src/lib/libsec/common/acltext.c
304
ptr = str;
usr/src/lib/libsec/common/acltext.c
307
ptr = str;
usr/src/lib/libsec/common/aclutils.h
128
extern int compute_aclent_perms(char *str, o_mode_t *mask);
usr/src/lib/libsec/common/aclutils.h
129
extern int compute_ace_inherit(char *str, uint32_t *imask);
usr/src/lib/libsff/common/libsff.c
1001
return (nvlist_add_string(nvl, LIBSFF_KEY_COMPLIANCE_8472, str));
usr/src/lib/libsff/common/libsff.c
1308
const char *str;
usr/src/lib/libsff/common/libsff.c
1310
if ((str = sff_pair_find(val, sff_8024_ext_spec)) == NULL) {
usr/src/lib/libsff/common/libsff.c
1311
str = "Reserved";
usr/src/lib/libsff/common/libsff.c
1314
return (nvlist_add_string(nvl, LIBSFF_KEY_EXT_SPEC, str));
usr/src/lib/libsff/common/libsff.c
709
char str[SFP_STRBUF];
usr/src/lib/libsff/common/libsff.c
712
(void) snprintf(str, sizeof (str), "%" PRIu64 " %s", val, unit);
usr/src/lib/libsff/common/libsff.c
713
return (nvlist_add_string(nvl, key, str));
usr/src/lib/libsff/common/libsff.c
747
const char *str;
usr/src/lib/libsff/common/libsff.c
753
str = sff_pair_find(bit, pairs);
usr/src/lib/libsff/common/libsff.c
754
if (str != NULL) {
usr/src/lib/libsff/common/libsff.c
755
vals[count++] = str;
usr/src/lib/libsff/common/libsff.c
834
const char *str;
usr/src/lib/libsff/common/libsff.c
836
str = "Reserved";
usr/src/lib/libsff/common/libsff.c
838
str = sff_8024_enc_sfp[val];
usr/src/lib/libsff/common/libsff.c
840
str = sff_8024_enc_qsfp[val];
usr/src/lib/libsff/common/libsff.c
843
return (nvlist_add_string(nvl, LIBSFF_KEY_ENCODING, str));
usr/src/lib/libsff/common/libsff.c
993
const char *str;
usr/src/lib/libsff/common/libsff.c
996
str = "Unallocated";
usr/src/lib/libsff/common/libsff.c
998
str = sff_8472_8472_comp[val];
usr/src/lib/libshare/autofs/libshare_autofs.c
387
fixcaselower(char *str)
usr/src/lib/libshare/autofs/libshare_autofs.c
389
while (*str) {
usr/src/lib/libshare/autofs/libshare_autofs.c
390
*str = tolower(*str);
usr/src/lib/libshare/autofs/libshare_autofs.c
391
str++;
usr/src/lib/libshare/autofs/libshare_autofs.c
402
skipwhitespace(char *str)
usr/src/lib/libshare/autofs/libshare_autofs.c
404
while (*str && isspace(*str))
usr/src/lib/libshare/autofs/libshare_autofs.c
405
str++;
usr/src/lib/libshare/autofs/libshare_autofs.c
407
return (str);
usr/src/lib/libshare/common/libshare.c
1025
char *str;
usr/src/lib/libshare/common/libshare.c
1026
str =
usr/src/lib/libshare/common/libshare.c
1028
if (str != NULL)
usr/src/lib/libshare/common/libshare.c
1030
strtoull(str, NULL, 0);
usr/src/lib/libshare/common/libshare.c
2642
fixproblemchars(char *str)
usr/src/lib/libshare/common/libshare.c
2645
for (c = *str; c != '\0'; c = *++str) {
usr/src/lib/libshare/common/libshare.c
2647
*str = ' ';
usr/src/lib/libshare/common/libshare.c
2649
*str = '\'';
usr/src/lib/libshare/common/libshare.c
431
char *str;
usr/src/lib/libshare/common/libshare.c
436
str = protolist;
usr/src/lib/libshare/common/libshare.c
437
while ((token = strtok(str, ",")) != NULL) {
usr/src/lib/libshare/common/libshare.c
442
str = NULL;
usr/src/lib/libshare/common/libsharecore.c
2256
char *str;
usr/src/lib/libshare/common/libsharecore.c
2283
str = scf_simple_prop_next_astring(prop);
usr/src/lib/libshare/common/libsharecore.c
2284
if (str != NULL)
usr/src/lib/libshare/common/libsharecore.c
2285
tstamp = strtoull(str, NULL, 0);
usr/src/lib/libshare/common/plugin.c
454
sa_format_free(char *str)
usr/src/lib/libshare/common/plugin.c
456
free(str);
usr/src/lib/libshare/nfs/libshare_nfs.c
2966
fixcaselower(char *str)
usr/src/lib/libshare/nfs/libshare_nfs.c
2968
while (*str) {
usr/src/lib/libshare/nfs/libshare_nfs.c
2969
*str = tolower(*str);
usr/src/lib/libshare/nfs/libshare_nfs.c
2970
str++;
usr/src/lib/libshare/nfs/libshare_nfs.c
2982
skipwhitespace(char *str)
usr/src/lib/libshare/nfs/libshare_nfs.c
2984
while (*str && isspace(*str))
usr/src/lib/libshare/nfs/libshare_nfs.c
2985
str++;
usr/src/lib/libshare/nfs/libshare_nfs.c
2987
return (str);
usr/src/lib/libshare/smb/libshare_smb.c
311
char *str;
usr/src/lib/libshare/smb/libshare_smb.c
314
if ((str = smf_get_state(SMBD_DEFAULT_INSTANCE_FMRI)) != NULL) {
usr/src/lib/libshare/smb/libshare_smb.c
315
ret = (strcmp(str, SCF_STATE_STRING_ONLINE) == 0);
usr/src/lib/libshare/smb/libshare_smb.c
316
free(str);
usr/src/lib/libshare/smb/libshare_smb.c
330
char *str;
usr/src/lib/libshare/smb/libshare_smb.c
333
if ((str = smf_get_state(SMBD_DEFAULT_INSTANCE_FMRI)) != NULL) {
usr/src/lib/libshare/smb/libshare_smb.c
334
ret = (strcmp(str, SCF_STATE_STRING_DISABLED) == 0);
usr/src/lib/libshare/smb/libshare_smb.c
335
free(str);
usr/src/lib/libshare/smb/libshare_smb.c
374
char *str;
usr/src/lib/libshare/smb/libshare_smb.c
377
if ((str = smf_get_state(SMBD_DEFAULT_INSTANCE_FMRI)) != NULL) {
usr/src/lib/libshare/smb/libshare_smb.c
378
ret = (strcmp(str, SCF_STATE_STRING_MAINT) == 0);
usr/src/lib/libshare/smb/libshare_smb.c
379
free(str);
usr/src/lib/libsip/common/sip_add_hdrs.c
104
size = strlen(str) + 2 * sizeof (char);
usr/src/lib/libsip/common/sip_add_hdrs.c
110
(void) strncat(new_str, str, strlen(str));
usr/src/lib/libsip/common/sip_add_hdrs.c
117
return (str);
usr/src/lib/libsip/common/sip_add_hdrs.c
236
sip_add_str_to_msg(sip_msg_t sip_msg, char *hdr_name, char *str, char *plist,
usr/src/lib/libsip/common/sip_add_hdrs.c
244
if (sip_msg == NULL || str == NULL || (str != NULL && str[0] == '\0'))
usr/src/lib/libsip/common/sip_add_hdrs.c
255
SIP_SPACE_LEN + + strlen(str) + strlen(SIP_CRLF);
usr/src/lib/libsip/common/sip_add_hdrs.c
258
SIP_SPACE_LEN + + strlen(str) + csize + strlen(plist) +
usr/src/lib/libsip/common/sip_add_hdrs.c
269
"%s %c %s%s", hdr_name, SIP_HCOLON, str, SIP_CRLF);
usr/src/lib/libsip/common/sip_add_hdrs.c
272
"%s %c %s%c%s%s", hdr_name, SIP_HCOLON, str, param_sep,
usr/src/lib/libsip/common/sip_add_hdrs.c
62
char *str;
usr/src/lib/libsip/common/sip_add_hdrs.c
75
str = calloc(1, sizeof (char) * count + 1);
usr/src/lib/libsip/common/sip_add_hdrs.c
76
if (str == NULL)
usr/src/lib/libsip/common/sip_add_hdrs.c
82
str[count - 1 - x] = a + '0';
usr/src/lib/libsip/common/sip_add_hdrs.c
85
str[count] = '\0';
usr/src/lib/libsip/common/sip_add_hdrs.c
86
return (str);
usr/src/lib/libsip/common/sip_add_hdrs.c
93
sip_add_aquot_to_str(char *str, boolean_t *alloc)
usr/src/lib/libsip/common/sip_add_hdrs.c
96
char *tmp = str;
usr/src/lib/libsip/common/sip_msg.h
160
sip_str_t str;
usr/src/lib/libsip/common/sip_msg.h
190
#define str_val hdr_value.str
usr/src/lib/libsip/common/sip_msg.h
191
#define str_val_ptr hdr_value.str.sip_str_ptr
usr/src/lib/libsip/common/sip_msg.h
192
#define str_val_len hdr_value.str.sip_str_len
usr/src/lib/libsip/common/sip_parse_uri.c
1423
char *str = uri_str->sip_str_ptr;
usr/src/lib/libsip/common/sip_parse_uri.c
1434
if (urlen > 1 && str[0] == '<' && str[urlen-1] == '>') {
usr/src/lib/libsip/common/sip_parse_uri.c
1436
++str;
usr/src/lib/libsip/common/sip_parse_uri.c
1438
uend = str + urlen;
usr/src/lib/libsip/common/sip_parse_uri.c
1443
while (str < uend && isspace(*str)) {
usr/src/lib/libsip/common/sip_parse_uri.c
1444
++str;
usr/src/lib/libsip/common/sip_parse_uri.c
1447
while (str < uend && isspace(*(uend - 1))) {
usr/src/lib/libsip/common/sip_parse_uri.c
1455
if (urlen > 4 && sip_uri_url_casecmp(str, "URL:", 4) == 0) {
usr/src/lib/libsip/common/sip_parse_uri.c
1456
str += 4;
usr/src/lib/libsip/common/sip_parse_uri.c
1463
mark = scan = str;
usr/src/lib/libsip/common/sip_ui.c
1019
char *str;
usr/src/lib/libsip/common/sip_ui.c
1024
str = strtok(val, ",");
usr/src/lib/libsip/common/sip_ui.c
1025
while (str != NULL) {
usr/src/lib/libsip/common/sip_ui.c
1027
char *start = str;
usr/src/lib/libsip/common/sip_ui.c
1028
char *end = str + strlen(str) - 1;
usr/src/lib/libsip/common/sip_ui.c
1055
str = strtok(NULL, ",");
usr/src/lib/libsip/common/sip_ui.c
1089
char *str;
usr/src/lib/libsip/common/sip_ui.c
1093
str = strtok(val, ",");
usr/src/lib/libsip/common/sip_ui.c
1094
while (str != NULL) {
usr/src/lib/libsip/common/sip_ui.c
1097
if (strncmp(sb->sb_val, str, strlen(str)) == 0) {
usr/src/lib/libsip/common/sip_ui.c
1118
str = strtok(NULL, ",");
usr/src/lib/libsldap/common/ns_common.c
811
const char *str, *str1;
usr/src/lib/libsldap/common/ns_common.c
848
str = NULL_OR_STR(__s_api_get_configname(NS_LDAP_SERVERS_P));
usr/src/lib/libsldap/common/ns_common.c
850
gettext("Unable to retrieve the '%s' list"), str);
usr/src/lib/libsldap/common/ns_common.c
928
str = NULL_OR_STR(__s_api_get_configname(
usr/src/lib/libsldap/common/ns_common.c
934
"based on '%s' and/or '%s'"), str, str1);
usr/src/lib/libsldap/common/ns_config.c
1109
const char *str, *str1;
usr/src/lib/libsldap/common/ns_config.c
1119
str = NULL_OR_STR(__s_api_get_configname(
usr/src/lib/libsldap/common/ns_config.c
1123
"'%s' found"), str);
usr/src/lib/libsldap/common/ns_config.c
1127
str = NULL_OR_STR(__s_api_get_configname(
usr/src/lib/libsldap/common/ns_config.c
1133
"Neither '%s' nor '%s' is defined"), str, str1);
usr/src/lib/libsldap/common/ns_config.c
1139
str = NULL_OR_STR(__s_api_get_configname(
usr/src/lib/libsldap/common/ns_config.c
1145
"but no value for '%s' found"), str, str1);
usr/src/lib/libsldap/common/ns_config.c
1150
str = NULL_OR_STR(__s_api_get_configname(
usr/src/lib/libsldap/common/ns_config.c
1156
"but no value for '%s' found"), str, str1);
usr/src/lib/libsldap/common/ns_config.c
1161
str = NULL_OR_STR(__s_api_get_configname(
usr/src/lib/libsldap/common/ns_config.c
1165
"'%s' found"), str);
usr/src/lib/libsldap/common/ns_config.c
1187
str = NULL_OR_STR(__s_api_get_configname(
usr/src/lib/libsldap/common/ns_config.c
1191
"'%s' found"), str);
usr/src/lib/libsldap/common/ns_config.c
1196
str = NULL_OR_STR(__s_api_get_configname(
usr/src/lib/libsldap/common/ns_config.c
1200
"'%s' found"), str);
usr/src/lib/libsldap/common/ns_config.c
3261
retstring = buffer->str;
usr/src/lib/libsldap/common/ns_config.c
3266
free(buffer->str);
usr/src/lib/libsldap/common/ns_confmgr.c
1075
char *str;
usr/src/lib/libsldap/common/ns_confmgr.c
1114
str = __s_api_strValue(ptr, i, NS_FILE_FMT);
usr/src/lib/libsldap/common/ns_confmgr.c
1115
if (str == NULL)
usr/src/lib/libsldap/common/ns_confmgr.c
1119
(void) fprintf(stdout, "%s\n", str);
usr/src/lib/libsldap/common/ns_confmgr.c
1120
free(str);
usr/src/lib/libsldap/common/ns_confmgr.c
415
char *str;
usr/src/lib/libsldap/common/ns_confmgr.c
428
line->str = (char *)calloc(newmax, 1);
usr/src/lib/libsldap/common/ns_confmgr.c
435
str = (char *)realloc(line->str, newmax);
usr/src/lib/libsldap/common/ns_confmgr.c
436
if (str == NULL) {
usr/src/lib/libsldap/common/ns_confmgr.c
437
free(line->str);
usr/src/lib/libsldap/common/ns_confmgr.c
438
line->str = NULL;
usr/src/lib/libsldap/common/ns_confmgr.c
441
line->str = str;
usr/src/lib/libsldap/common/ns_confmgr.c
444
if (line->str == NULL) {
usr/src/lib/libsldap/common/ns_confmgr.c
451
(void) strlcat(line->str, toprint, line->alloc);
usr/src/lib/libsldap/common/ns_confmgr.c
453
(void) strlcat(line->str, sep, line->alloc);
usr/src/lib/libsldap/common/ns_confmgr.c
477
char *str;
usr/src/lib/libsldap/common/ns_confmgr.c
513
str = __s_api_strValue(ptr, i, NS_DOOR_FMT);
usr/src/lib/libsldap/common/ns_confmgr.c
514
if (str == NULL)
usr/src/lib/libsldap/common/ns_confmgr.c
516
if (__print2buf(configinfo, str, DOORLINESEP)) {
usr/src/lib/libsldap/common/ns_confmgr.c
522
free(str);
usr/src/lib/libsldap/common/ns_confmgr.c
525
free(str);
usr/src/lib/libsldap/common/ns_confmgr.c
543
if (configinfo->str) {
usr/src/lib/libsldap/common/ns_confmgr.c
547
free(configinfo->str);
usr/src/lib/libsldap/common/ns_confmgr.c
548
configinfo->str = NULL;
usr/src/lib/libsldap/common/ns_confmgr.c
561
(void) memcpy(cout->config_str, configinfo->str,
usr/src/lib/libsldap/common/ns_confmgr.c
563
free(configinfo->str);
usr/src/lib/libsldap/common/ns_confmgr.c
564
configinfo->str = (char *)cout;
usr/src/lib/libsldap/common/ns_confmgr.c
577
char *str;
usr/src/lib/libsldap/common/ns_confmgr.c
639
str = __s_api_strValue(ptr, i, NS_LDIF_FMT);
usr/src/lib/libsldap/common/ns_confmgr.c
640
if (str == NULL)
usr/src/lib/libsldap/common/ns_confmgr.c
653
(void) fprintf(fp, "%s\n", str);
usr/src/lib/libsldap/common/ns_confmgr.c
654
free(str);
usr/src/lib/libsldap/common/ns_confmgr.c
678
char *str;
usr/src/lib/libsldap/common/ns_confmgr.c
754
str = __s_api_strValue(ptr, i, NS_FILE_FMT);
usr/src/lib/libsldap/common/ns_confmgr.c
755
if (str == NULL)
usr/src/lib/libsldap/common/ns_confmgr.c
757
if (fprintf(fp, "%s\n", str) < 0) {
usr/src/lib/libsldap/common/ns_confmgr.c
765
free(str);
usr/src/lib/libsldap/common/ns_confmgr.c
926
(void) __ns_ldap_setParamValue(ptr, index, buffer.str,
usr/src/lib/libsldap/common/ns_confmgr.c
929
free(buffer.str);
usr/src/lib/libsldap/common/ns_confmgr.c
984
free(buffer.str);
usr/src/lib/libsldap/common/ns_crypt.c
160
modvalue(char *str, int len, int *mod_len)
usr/src/lib/libsldap/common/ns_crypt.c
173
t2[(t3[(t1[(str[i]+n1)&MASK]+n2)&MASK]-n2)&MASK]-n1;
usr/src/lib/libsldap/common/ns_crypt.c
194
char *modv, *str, *ev;
usr/src/lib/libsldap/common/ns_crypt.c
203
str = strdup(ptr);
usr/src/lib/libsldap/common/ns_crypt.c
204
return (str);
usr/src/lib/libsldap/common/ns_crypt.c
208
str = hex2ascii(modv, modv_len);
usr/src/lib/libsldap/common/ns_crypt.c
211
len = strlen(str) + strlen(CRYPTMARK) + 1;
usr/src/lib/libsldap/common/ns_crypt.c
214
free(str);
usr/src/lib/libsldap/common/ns_crypt.c
217
(void) snprintf(ev, len, CRYPTMARK "%s", str);
usr/src/lib/libsldap/common/ns_crypt.c
218
free(str);
usr/src/lib/libsldap/common/ns_crypt.c
219
str = NULL;
usr/src/lib/libsldap/common/ns_crypt.c
227
char *modv, *str, *sb;
usr/src/lib/libsldap/common/ns_crypt.c
237
str = ascii2hex(sb, &len);
usr/src/lib/libsldap/common/ns_crypt.c
238
modv = modvalue(str, len, NULL);
usr/src/lib/libsldap/common/ns_crypt.c
239
free(str);
usr/src/lib/libsldap/common/ns_crypt.c
240
str = NULL;
usr/src/lib/libsldap/common/ns_internal.h
212
#define NULL_OR_STR(str) (!(str) || *(str) == '\0' ? "<NULL>" : (str))
usr/src/lib/libsldap/common/ns_mapping.c
40
ns_hash(const char *str)
usr/src/lib/libsldap/common/ns_mapping.c
44
while (*str) {
usr/src/lib/libsldap/common/ns_mapping.c
47
hval = (hval << 4) + tolower(*str++);
usr/src/lib/libsldap/common/ns_mapping.c
62
const char *str, ns_hash_t *idx)
usr/src/lib/libsldap/common/ns_mapping.c
67
strcasecmp(str, idx->h_map->orig) == 0) {
usr/src/lib/libsldap/common/ns_mapping.c
81
ns_hashtype_t type, const char *service, const char *str)
usr/src/lib/libsldap/common/ns_mapping.c
86
if (config == NULL || service == NULL || str == NULL)
usr/src/lib/libsldap/common/ns_mapping.c
89
hash = ns_hash(str) % NS_HASH_MAX;
usr/src/lib/libsldap/common/ns_mapping.c
91
hashp = ns_scan_hash(type, service, str, idx);
usr/src/lib/libsldap/common/ns_reads.c
1458
char *filter, *str;
usr/src/lib/libsldap/common/ns_reads.c
1554
str = ((char **)param)[0];
usr/src/lib/libsldap/common/ns_reads.c
1555
baselen += strlen(str)+1;
usr/src/lib/libsldap/common/ns_reads.c
1564
(void) strcat(cookie->basedn, str);
usr/src/lib/libsldap/common/ns_reads.c
4857
static int adj_filter_list(char *str);
usr/src/lib/libsldap/common/ns_reads.c
4858
static int adj_simple_filter(char *str);
usr/src/lib/libsldap/common/ns_reads.c
4871
resync_str(char *str, char *next, char c)
usr/src/lib/libsldap/common/ns_reads.c
4875
ret = str + strlen(str);
usr/src/lib/libsldap/common/ns_reads.c
4879
(void) strcat(str, next);
usr/src/lib/libsldap/common/ns_reads.c
4910
adj_complex_filter(char *str)
usr/src/lib/libsldap/common/ns_reads.c
4921
str++;
usr/src/lib/libsldap/common/ns_reads.c
4922
if ((next = find_right_paren(str)) == NULL)
usr/src/lib/libsldap/common/ns_reads.c
4926
if (adj_filter_list(str) == -1)
usr/src/lib/libsldap/common/ns_reads.c
4928
next = resync_str(str, next, ')');
usr/src/lib/libsldap/common/ns_reads.c
4935
adj_filter(char *str)
usr/src/lib/libsldap/common/ns_reads.c
4943
while (*str) {
usr/src/lib/libsldap/common/ns_reads.c
4944
switch (*str) {
usr/src/lib/libsldap/common/ns_reads.c
4946
str++;
usr/src/lib/libsldap/common/ns_reads.c
4948
switch (*str) {
usr/src/lib/libsldap/common/ns_reads.c
4950
if ((str = adj_complex_filter(str)) == NULL)
usr/src/lib/libsldap/common/ns_reads.c
4957
if ((str = adj_complex_filter(str)) == NULL)
usr/src/lib/libsldap/common/ns_reads.c
4964
if ((str = adj_complex_filter(str)) == NULL)
usr/src/lib/libsldap/common/ns_reads.c
4974
np = find_right_paren(str+1);
usr/src/lib/libsldap/common/ns_reads.c
4981
for (dp = str, cp = str+1; cp < np; ) {
usr/src/lib/libsldap/common/ns_reads.c
4991
str--;
usr/src/lib/libsldap/common/ns_reads.c
4997
next = str;
usr/src/lib/libsldap/common/ns_reads.c
5016
if (adj_simple_filter(str) == -1) {
usr/src/lib/libsldap/common/ns_reads.c
5019
next = resync_str(str, next, ')');
usr/src/lib/libsldap/common/ns_reads.c
5021
str = next;
usr/src/lib/libsldap/common/ns_reads.c
5028
str++;
usr/src/lib/libsldap/common/ns_reads.c
5033
str++;
usr/src/lib/libsldap/common/ns_reads.c
5037
next = strchr(str, '\0');
usr/src/lib/libsldap/common/ns_reads.c
5038
if (adj_simple_filter(str) == -1) {
usr/src/lib/libsldap/common/ns_reads.c
5041
str = next;
usr/src/lib/libsldap/common/ns_reads.c
5055
adj_filter_list(char *str)
usr/src/lib/libsldap/common/ns_reads.c
5060
while (*str) {
usr/src/lib/libsldap/common/ns_reads.c
5061
while (*str && isspace(*str))
usr/src/lib/libsldap/common/ns_reads.c
5062
str++;
usr/src/lib/libsldap/common/ns_reads.c
5063
if (*str == '\0')
usr/src/lib/libsldap/common/ns_reads.c
5066
if ((next = find_right_paren(str + 1)) == NULL)
usr/src/lib/libsldap/common/ns_reads.c
5072
if (adj_filter(str) == -1)
usr/src/lib/libsldap/common/ns_reads.c
5074
next = resync_str(str, next, save);
usr/src/lib/libsldap/common/ns_reads.c
5076
str = next;
usr/src/lib/libsldap/common/ns_reads.c
5137
adj_simple_filter(char *str)
usr/src/lib/libsldap/common/ns_reads.c
5146
if ((str = strdup(str)) == NULL) {
usr/src/lib/libsldap/common/ns_reads.c
5150
if ((s = strchr(str, '=')) == NULL) {
usr/src/lib/libsldap/common/ns_reads.c
5161
if (!is_valid_attr(str)) {
usr/src/lib/libsldap/common/ns_reads.c
5180
if ((s2 = strrchr(str, ':')) == NULL) {
usr/src/lib/libsldap/common/ns_reads.c
5187
if ((s3 = strrchr(str, ':')) != NULL) {
usr/src/lib/libsldap/common/ns_reads.c
5222
free(str);
usr/src/lib/libsldap/common/ns_sldap.h
177
char *str;
usr/src/lib/libsldap/common/ns_writes.c
1637
static int escape_str(char *escstr, char *str)
usr/src/lib/libsldap/common/ns_writes.c
1641
while ((*str != '\0') && (index < (RDNSIZE - 1))) {
usr/src/lib/libsldap/common/ns_writes.c
1642
if (*str == '+' || *str == ';' || *str == '>' ||
usr/src/lib/libsldap/common/ns_writes.c
1643
*str == '<' || *str == ',' || *str == '"' ||
usr/src/lib/libsldap/common/ns_writes.c
1644
*str == '\\' || *str == '=' ||
usr/src/lib/libsldap/common/ns_writes.c
1645
(*str == '#' && index == 0)) {
usr/src/lib/libsldap/common/ns_writes.c
1647
*escstr++ = *str++;
usr/src/lib/libsldap/common/ns_writes.c
1650
*escstr++ = *str++;
usr/src/lib/libsldap/common/ns_writes.c
1655
if (*str == '\0') {
usr/src/lib/libsldap/common/ns_writes.c
3978
char *str = NULL;
usr/src/lib/libsldap/common/ns_writes.c
3996
str = ((char **)param)[0];
usr/src/lib/libsldap/common/ns_writes.c
3997
len = len + strlen(str) +1;
usr/src/lib/libsldap/common/ns_writes.c
4006
(void) strcat(*new_dn, str);
usr/src/lib/libslp/clib/SLPUtils.c
710
const char *str;
usr/src/lib/libslp/clib/SLPUtils.c
713
str = "Last call";
usr/src/lib/libslp/clib/SLPUtils.c
715
str = "Security Implementation Unavailable";
usr/src/lib/libslp/clib/SLPUtils.c
719
str = "Invalid error number";
usr/src/lib/libslp/clib/SLPUtils.c
721
str = error_strings[abserr];
usr/src/lib/libslp/clib/SLPUtils.c
725
return (dgettext("libslp", str));
usr/src/lib/libslp/javalib/com/sun/slp/AttributePattern.java
135
public boolean match(AttributeString str) {
usr/src/lib/libslp/javalib/com/sun/slp/AttributePattern.java
136
String cstring = str.cstring;
usr/src/lib/libslp/javalib/com/sun/slp/AttributePattern.java
72
PatternPart(boolean wc, String str) {
usr/src/lib/libslp/javalib/com/sun/slp/AttributePattern.java
74
pattern = str;
usr/src/lib/libslp/javalib/com/sun/slp/AttributePattern.java
79
AttributePattern(String str, Locale locale) {
usr/src/lib/libslp/javalib/com/sun/slp/AttributePattern.java
81
super(str, locale);
usr/src/lib/libslp/javalib/com/sun/slp/AttributeString.java
103
public boolean greaterEqual(AttributeString str) {
usr/src/lib/libslp/javalib/com/sun/slp/AttributeString.java
104
return (cstring.compareTo(str.cstring) >= 0);
usr/src/lib/libslp/javalib/com/sun/slp/AttributeString.java
59
AttributeString(String str, Locale nlocale) {
usr/src/lib/libslp/javalib/com/sun/slp/AttributeString.java
61
string = str;
usr/src/lib/libslp/javalib/com/sun/slp/AttributeString.java
64
cstring = parse(str, nlocale);
usr/src/lib/libslp/javalib/com/sun/slp/AttributeString.java
70
private String parse(String str, Locale nlocale) {
usr/src/lib/libslp/javalib/com/sun/slp/AttributeString.java
75
new StringTokenizer(str, ServiceLocationAttribute.WHITESPACE);
usr/src/lib/libslp/javalib/com/sun/slp/AttributeString.java
92
public boolean match(AttributeString str) {
usr/src/lib/libslp/javalib/com/sun/slp/AttributeString.java
93
return equals(str);
usr/src/lib/libslp/javalib/com/sun/slp/AttributeString.java
97
public boolean lessEqual(AttributeString str) {
usr/src/lib/libslp/javalib/com/sun/slp/AttributeString.java
99
return (cstring.compareTo(str.cstring) <= 0);
usr/src/lib/libslp/javalib/com/sun/slp/AttributeVerifier.java
2118
private String unescapeHash(String str) {
usr/src/lib/libslp/javalib/com/sun/slp/AttributeVerifier.java
2124
for (i = str.indexOf(ESC_HASH, j);
usr/src/lib/libslp/javalib/com/sun/slp/AttributeVerifier.java
2126
i = str.indexOf(ESC_HASH, j)) {
usr/src/lib/libslp/javalib/com/sun/slp/AttributeVerifier.java
2128
buf.append(str.substring(j, i));
usr/src/lib/libslp/javalib/com/sun/slp/AttributeVerifier.java
2133
len = str.length();
usr/src/lib/libslp/javalib/com/sun/slp/AttributeVerifier.java
2136
buf.append(str.substring(j, len));
usr/src/lib/libslp/javalib/com/sun/slp/DATable.java
388
String str = (String)o;
usr/src/lib/libslp/javalib/com/sun/slp/DATable.java
390
if (str.length() <= 0) {
usr/src/lib/libslp/javalib/com/sun/slp/DATable.java
400
str = str.toLowerCase(locale).trim();
usr/src/lib/libslp/javalib/com/sun/slp/DATable.java
406
new StringTokenizer(str, ServiceLocationAttribute.WHITESPACE);
usr/src/lib/libslp/javalib/com/sun/slp/DATable.java
422
str = buf.toString();
usr/src/lib/libslp/javalib/com/sun/slp/DATable.java
426
if (ht.get(str) == null) {
usr/src/lib/libslp/javalib/com/sun/slp/DATable.java
427
ht.put(str, str);
usr/src/lib/libslp/javalib/com/sun/slp/DATable.java
428
scopes.setElementAt(str, i);
usr/src/lib/libslp/javalib/com/sun/slp/IANACharCode.java
273
String str = null;
usr/src/lib/libslp/javalib/com/sun/slp/IANACharCode.java
334
str = new String(b, encoding);
usr/src/lib/libslp/javalib/com/sun/slp/IANACharCode.java
342
return str;
usr/src/lib/libslp/javalib/com/sun/slp/Opaque.java
100
new Object[] {str});
usr/src/lib/libslp/javalib/com/sun/slp/Opaque.java
111
new Object[] {str});
usr/src/lib/libslp/javalib/com/sun/slp/Opaque.java
119
new Object[] {str});
usr/src/lib/libslp/javalib/com/sun/slp/Opaque.java
134
new Object[] {str});
usr/src/lib/libslp/javalib/com/sun/slp/Opaque.java
188
String str = null;
usr/src/lib/libslp/javalib/com/sun/slp/Opaque.java
194
str = Integer.toHexString(((int)bytes[i] & 0xFF));
usr/src/lib/libslp/javalib/com/sun/slp/Opaque.java
198
if (str.length() < 2) {
usr/src/lib/libslp/javalib/com/sun/slp/Opaque.java
202
buf.append(str);
usr/src/lib/libslp/javalib/com/sun/slp/Opaque.java
70
static byte[] unescapeByteArray(String str)
usr/src/lib/libslp/javalib/com/sun/slp/Opaque.java
75
if (!str.startsWith(OPAQUE_HEADER)) {
usr/src/lib/libslp/javalib/com/sun/slp/Opaque.java
80
new Object[] {str});
usr/src/lib/libslp/javalib/com/sun/slp/Opaque.java
84
String string = str.substring(OPAQUE_HEADER.length());
usr/src/lib/libslp/javalib/com/sun/slp/Parser.java
517
String str = parsePotentialNonASCII(tk);
usr/src/lib/libslp/javalib/com/sun/slp/Parser.java
519
str =
usr/src/lib/libslp/javalib/com/sun/slp/Parser.java
520
ServiceLocationAttribute.unescapeAttributeString(str, true);
usr/src/lib/libslp/javalib/com/sun/slp/Parser.java
522
return new AttributeString(str, locale);
usr/src/lib/libslp/javalib/com/sun/slp/SLPConfig.java
273
InputStream str = null;
usr/src/lib/libslp/javalib/com/sun/slp/SLPConfig.java
279
str = confURL.openStream();
usr/src/lib/libslp/javalib/com/sun/slp/SLPConfig.java
294
return str;
usr/src/lib/libslp/javalib/com/sun/slp/SLPTokenizer.java
126
if (str.length() < 1) {
usr/src/lib/libslp/javalib/com/sun/slp/SLPTokenizer.java
130
if (index >= str.length()) {
usr/src/lib/libslp/javalib/com/sun/slp/SLPTokenizer.java
137
for (int i = index; i < str.length(); i++) {
usr/src/lib/libslp/javalib/com/sun/slp/SLPTokenizer.java
139
if (delims.indexOf(str.charAt(i)) == -1) {
usr/src/lib/libslp/javalib/com/sun/slp/SLPTokenizer.java
176
if (index >= str.length()) throw new NoSuchElementException();
usr/src/lib/libslp/javalib/com/sun/slp/SLPTokenizer.java
179
char c = str.charAt(index);
usr/src/lib/libslp/javalib/com/sun/slp/SLPTokenizer.java
187
sb.append(str.charAt(index));
usr/src/lib/libslp/javalib/com/sun/slp/SLPTokenizer.java
193
while (index < str.length()) {
usr/src/lib/libslp/javalib/com/sun/slp/SLPTokenizer.java
195
c = str.charAt(index);
usr/src/lib/libslp/javalib/com/sun/slp/SLPTokenizer.java
215
while (index < str.length()) {
usr/src/lib/libslp/javalib/com/sun/slp/SLPTokenizer.java
217
c = str.charAt(index);
usr/src/lib/libslp/javalib/com/sun/slp/SLPTokenizer.java
46
private String str;
usr/src/lib/libslp/javalib/com/sun/slp/SLPTokenizer.java
53
str = s;
usr/src/lib/libslp/javalib/com/sun/slp/SLPTokenizer.java
83
if (str.length() < 1) {
usr/src/lib/libslp/javalib/com/sun/slp/SLPTokenizer.java
87
char c = str.charAt(0);
usr/src/lib/libslp/javalib/com/sun/slp/SLPTokenizer.java
94
for (int j = 0; j < str.length(); j++)
usr/src/lib/libslp/javalib/com/sun/slp/SLPTokenizer.java
96
c = str.charAt(j);
usr/src/lib/libslp/javalib/com/sun/slp/SLPV1SSrvMsg.java
484
String str = tk.sval; // not used if token not a string...
usr/src/lib/libslp/javalib/com/sun/slp/SLPV1SSrvMsg.java
489
if (str.charAt(0) != HASH) {
usr/src/lib/libslp/javalib/com/sun/slp/ServiceLocationAttribute.java
316
static public String escapeId(String str)
usr/src/lib/libslp/javalib/com/sun/slp/ServiceLocationAttribute.java
321
ret = escapeAttributeString(str, true);
usr/src/lib/libslp/javalib/com/sun/slp/ServiceLocationAttribute.java
568
String str = escapeChar(c);
usr/src/lib/libslp/javalib/com/sun/slp/ServiceLocationAttribute.java
572
if (str.length() <= 1) {
usr/src/lib/libslp/javalib/com/sun/slp/ServiceLocationAttribute.java
573
str = "0" + str;
usr/src/lib/libslp/javalib/com/sun/slp/ServiceLocationAttribute.java
577
buf.append(str);
usr/src/lib/libslp/javalib/com/sun/slp/ServiceLocationAttribute.java
734
String str = Integer.toHexString(code);
usr/src/lib/libslp/javalib/com/sun/slp/ServiceLocationAttribute.java
736
return str;
usr/src/lib/libslp/javalib/com/sun/slp/ServiceLocationAttribute.java
767
String str = null;
usr/src/lib/libslp/javalib/com/sun/slp/ServiceLocationAttribute.java
801
str = new String(b, Defaults.UTF8);
usr/src/lib/libslp/javalib/com/sun/slp/ServiceLocationAttribute.java
809
int len = str.length();
usr/src/lib/libslp/javalib/com/sun/slp/ServiceLocationAttribute.java
811
if (str.length() > 1) {
usr/src/lib/libslp/javalib/com/sun/slp/ServiceLocationAttribute.java
820
return (len == 1 ? str.charAt(0):(char)0);
usr/src/lib/libsmbfs/cflib.h
67
char *str; /* string value */
usr/src/lib/libsmbfs/smb/ctx.c
1404
smb_cf_minauth_from_str(char *str)
usr/src/lib/libsmbfs/smb/ctx.c
1409
if (strcmp(nvp->name, str) == 0)
usr/src/lib/libsmbfs/smb/ctx.c
1429
smb_cf_version_from_str(char *str)
usr/src/lib/libsmbfs/smb/ctx.c
1434
if (strcmp(nvp->name, str) == 0)
usr/src/lib/libsmbfs/smb/nb_name.c
138
nb_encname_len(const uchar_t *str)
usr/src/lib/libsmbfs/smb/nb_name.c
140
const uchar_t *cp = str;
usr/src/lib/libsmbfs/smb/ntlmssp.c
179
const char *str, int unicode)
usr/src/lib/libsmbfs/smb/ntlmssp.c
186
if (str != NULL && *str != '\0') {
usr/src/lib/libsmbfs/smb/ntlmssp.c
195
err = mb_put_string(&tmp_mb, str, unicode);
usr/src/lib/libsmedia/library/common/l_defines.h
56
#define DPRINTF(str) (void) printf(str)
usr/src/lib/libsmedia/library/common/l_defines.h
57
#define DPRINTF1(str, a) (void) printf(str, a)
usr/src/lib/libsmedia/library/common/l_defines.h
58
#define DPRINTF2(str, a, b) (void) printf(str, a, b)
usr/src/lib/libsmedia/library/common/l_defines.h
59
#define DPRINTF3(str, a, b, c) (void) printf(str, a, b, c)
usr/src/lib/libsmedia/library/common/l_defines.h
60
#define DPRINTF4(str, a, b, c, d) (void) printf(str, a, b, c, d)
usr/src/lib/libsmedia/library/common/l_defines.h
62
#define DPRINTF(str)
usr/src/lib/libsmedia/library/common/l_defines.h
63
#define DPRINTF1(str, a)
usr/src/lib/libsmedia/library/common/l_defines.h
64
#define DPRINTF2(str, a, b)
usr/src/lib/libsmedia/library/common/l_defines.h
65
#define DPRINTF3(str, a, b, c)
usr/src/lib/libsmedia/library/common/l_defines.h
66
#define DPRINTF4(str, a, b, c, d)
usr/src/lib/libsmedia/plugins/floppy/common/f_defines.h
36
#define PERROR(str) my_perror(gettext(str))
usr/src/lib/libsocket/inet/link_addr.c
46
_link_ntoa(const unsigned char *macaddr, char *str, int size, int mactype)
usr/src/lib/libsocket/inet/link_addr.c
51
if (((buf = str) == NULL) &&
usr/src/lib/libsqlite/src/btree_rb.c
313
char * str = append_node(0, pNode, 0);
usr/src/lib/libsqlite/src/btree_rb.c
314
printf("%s", str);
usr/src/lib/libsqlite/src/tclsqlite.c
351
Tcl_DString str;
usr/src/lib/libsqlite/src/tclsqlite.c
353
Tcl_DStringInit(&str);
usr/src/lib/libsqlite/src/tclsqlite.c
354
Tcl_DStringAppend(&str, pDb->zTrace, -1);
usr/src/lib/libsqlite/src/tclsqlite.c
355
Tcl_DStringAppendElement(&str, zSql);
usr/src/lib/libsqlite/src/tclsqlite.c
356
Tcl_Eval(pDb->interp, Tcl_DStringValue(&str));
usr/src/lib/libsqlite/src/tclsqlite.c
357
Tcl_DStringFree(&str);
usr/src/lib/libsqlite/src/tclsqlite.c
416
Tcl_DString str;
usr/src/lib/libsqlite/src/tclsqlite.c
450
Tcl_DStringInit(&str);
usr/src/lib/libsqlite/src/tclsqlite.c
451
Tcl_DStringAppend(&str, pDb->zAuth, -1);
usr/src/lib/libsqlite/src/tclsqlite.c
452
Tcl_DStringAppendElement(&str, zCode);
usr/src/lib/libsqlite/src/tclsqlite.c
453
Tcl_DStringAppendElement(&str, zArg1 ? zArg1 : "");
usr/src/lib/libsqlite/src/tclsqlite.c
454
Tcl_DStringAppendElement(&str, zArg2 ? zArg2 : "");
usr/src/lib/libsqlite/src/tclsqlite.c
455
Tcl_DStringAppendElement(&str, zArg3 ? zArg3 : "");
usr/src/lib/libsqlite/src/tclsqlite.c
456
Tcl_DStringAppendElement(&str, zArg4 ? zArg4 : "");
usr/src/lib/libsqlite/src/tclsqlite.c
457
rc = Tcl_GlobalEval(pDb->interp, Tcl_DStringValue(&str));
usr/src/lib/libsqlite/src/tclsqlite.c
458
Tcl_DStringFree(&str);
usr/src/lib/libsqlite/src/test1.c
118
Tcl_DString *str = (Tcl_DString*)pArg;
usr/src/lib/libsqlite/src/test1.c
121
if( Tcl_DStringLength(str)==0 ){
usr/src/lib/libsqlite/src/test1.c
123
Tcl_DStringAppendElement(str, name[i] ? name[i] : "NULL");
usr/src/lib/libsqlite/src/test1.c
127
Tcl_DStringAppendElement(str, argv[i] ? argv[i] : "NULL");
usr/src/lib/libsqlite/src/test1.c
146
Tcl_DString str;
usr/src/lib/libsqlite/src/test1.c
156
Tcl_DStringInit(&str);
usr/src/lib/libsqlite/src/test1.c
157
rc = sqlite_exec_printf(db, argv[2], exec_printf_cb, &str, &zErr, argv[3]);
usr/src/lib/libsqlite/src/test1.c
160
Tcl_AppendElement(interp, rc==SQLITE_OK ? Tcl_DStringValue(&str) : zErr);
usr/src/lib/libsqlite/src/test1.c
161
Tcl_DStringFree(&str);
usr/src/lib/libsqlite/src/test1.c
204
Tcl_DString str;
usr/src/lib/libsqlite/src/test1.c
217
Tcl_DStringInit(&str);
usr/src/lib/libsqlite/tool/lemon.c
2844
PRIVATE void tplt_print(out,lemp,str,strln,lineno)
usr/src/lib/libsqlite/tool/lemon.c
2847
char *str;
usr/src/lib/libsqlite/tool/lemon.c
2851
if( str==0 ) return;
usr/src/lib/libsqlite/tool/lemon.c
2853
while( *str ){
usr/src/lib/libsqlite/tool/lemon.c
2854
if( *str=='\n' ) (*lineno)++;
usr/src/lib/libsqlite/tool/lemon.c
2855
putc(*str,out);
usr/src/lib/libsqlite/tool/lemon.c
2856
str++;
usr/src/lib/libsysevent/libevchannel.c
88
sysevent_is_chan_name(const char *str)
usr/src/lib/libsysevent/libevchannel.c
90
for (; *str != '\0'; str++) {
usr/src/lib/libsysevent/libevchannel.c
91
if (!EVCH_ISCHANCHAR(*str))
usr/src/lib/libsysevent/libsysevent.c
463
char *pub_id, *pub_element, *str, *next;
usr/src/lib/libsysevent/libsysevent.c
467
str = strtok_r(next, ":", &next);
usr/src/lib/libsysevent/libsysevent.c
468
if (str == NULL) {
usr/src/lib/libsysevent/libsysevent.c
474
pub_element = strdup(str);
usr/src/lib/libtecla/common/history.c
224
static void glh_init_stream(GlhLineStream *str, GlhHashNode *line);
usr/src/lib/libtecla/common/history.c
225
static void glh_step_stream(GlhLineStream *str);
usr/src/lib/libtecla/common/history.c
2553
static void glh_init_stream(GlhLineStream *str, GlhHashNode *line)
usr/src/lib/libtecla/common/history.c
2555
str->seg = line ? line->head : NULL;
usr/src/lib/libtecla/common/history.c
2556
str->posn = 0;
usr/src/lib/libtecla/common/history.c
2557
str->c = str->seg ? str->seg->s[0] : '\0';
usr/src/lib/libtecla/common/history.c
2568
static void glh_step_stream(GlhLineStream *str)
usr/src/lib/libtecla/common/history.c
2573
str->c = str->seg ? str->seg->s[str->posn] : '\0';
usr/src/lib/libtecla/common/history.c
2578
if(str->c != '\0' && ++str->posn >= GLH_SEG_SIZE) {
usr/src/lib/libtecla/common/history.c
2579
str->posn = 0;
usr/src/lib/libtecla/common/history.c
2580
str->seg = str->seg->next;
usr/src/lib/libtsnet/common/tsol_getrhent.c
174
char *str = NULL;
usr/src/lib/libtsnet/common/tsol_getrhent.c
185
str = _strtok_escape(buffer, sep, &last);
usr/src/lib/libtsnet/common/tsol_getrhent.c
186
rhstrp->address = _do_unescape(str);
usr/src/lib/libtsnet/common/tsol_sgetzcent.c
106
parse_mlp_list(tsol_mlp_t **list, char *str, int *errp, char **errstrp)
usr/src/lib/libtsnet/common/tsol_sgetzcent.c
122
tokp = strtok_r(str, KV_DELIMITER, &finally);
usr/src/lib/libumem/common/envvar.c
290
empty(const char *str)
usr/src/lib/libumem/common/envvar.c
294
while ((c = *str) != '\0' && isspace(c))
usr/src/lib/libumem/common/envvar.c
295
str++;
usr/src/lib/libumem/common/envvar.c
297
return (*str == '\0');
usr/src/lib/libuutil/common/uu_alloc.c
54
uu_strdup(const char *str)
usr/src/lib/libuutil/common/uu_alloc.c
58
if (str != NULL) {
usr/src/lib/libuutil/common/uu_alloc.c
61
sz = strlen(str) + 1;
usr/src/lib/libuutil/common/uu_alloc.c
64
(void) memcpy(buf, str, sz);
usr/src/lib/libuutil/common/uu_misc.c
120
const char *str;
usr/src/lib/libuutil/common/uu_misc.c
124
str = dgettext(TEXT_DOMAIN, "No error");
usr/src/lib/libuutil/common/uu_misc.c
128
str = dgettext(TEXT_DOMAIN, "Invalid argument");
usr/src/lib/libuutil/common/uu_misc.c
132
str = dgettext(TEXT_DOMAIN, "Unknown flag passed");
usr/src/lib/libuutil/common/uu_misc.c
136
str = dgettext(TEXT_DOMAIN, "Out of memory");
usr/src/lib/libuutil/common/uu_misc.c
140
str = dgettext(TEXT_DOMAIN, "Callback-initiated failure");
usr/src/lib/libuutil/common/uu_misc.c
144
str = dgettext(TEXT_DOMAIN, "Operation not supported");
usr/src/lib/libuutil/common/uu_misc.c
148
str = dgettext(TEXT_DOMAIN, "No value provided");
usr/src/lib/libuutil/common/uu_misc.c
152
str = dgettext(TEXT_DOMAIN, "Value too small");
usr/src/lib/libuutil/common/uu_misc.c
156
str = dgettext(TEXT_DOMAIN, "Value too large");
usr/src/lib/libuutil/common/uu_misc.c
160
str = dgettext(TEXT_DOMAIN,
usr/src/lib/libuutil/common/uu_misc.c
165
str = dgettext(TEXT_DOMAIN,
usr/src/lib/libuutil/common/uu_misc.c
170
str = dgettext(TEXT_DOMAIN, "Underlying system error");
usr/src/lib/libuutil/common/uu_misc.c
174
str = dgettext(TEXT_DOMAIN, "Error status not known");
usr/src/lib/libuutil/common/uu_misc.c
179
str = NULL;
usr/src/lib/libuutil/common/uu_misc.c
182
return (str);
usr/src/lib/libv12n/sparc/libv12n.c
835
char *str;
usr/src/lib/libv12n/sparc/libv12n.c
842
&str)) != 0) {
usr/src/lib/libv12n/sparc/libv12n.c
845
rv = v12n_string_copyout(buf, str, count);
usr/src/lib/libv12n/sparc/libv12n.c
858
char *str;
usr/src/lib/libv12n/sparc/libv12n.c
865
&str)) != 0) {
usr/src/lib/libv12n/sparc/libv12n.c
868
rv = v12n_string_copyout(buf, str, count);
usr/src/lib/libvmmapi/common/vmmapi.c
427
cmpseg(size_t len, const char *str, size_t len2, const char *str2)
usr/src/lib/libvmmapi/common/vmmapi.c
431
if ((!str && !str2) || (str && str2 && !strcmp(str, str2)))
usr/src/lib/libwrap/misc.c
109
if (strchr(str,':')) {
usr/src/lib/libwrap/misc.c
112
if (inet_pton(AF_INET6, str, (void*) addr) == 1)
usr/src/lib/libwrap/misc.c
119
addr->ga_in.s_addr = dot_quad_addr(str);
usr/src/lib/libwrap/misc.c
172
char *skip_ipv6_addrs(str)
usr/src/lib/libwrap/misc.c
173
char *str;
usr/src/lib/libwrap/misc.c
176
char *p = str;
usr/src/lib/libwrap/misc.c
75
unsigned long dot_quad_addr(str)
usr/src/lib/libwrap/misc.c
76
char *str;
usr/src/lib/libwrap/misc.c
80
char *cp = str;
usr/src/lib/libwrap/misc.c
93
return (runs == 4 ? inet_addr(str) : INADDR_NONE);
usr/src/lib/libwrap/misc.c
98
int numeric_addr(str, addr, af, len)
usr/src/lib/libwrap/misc.c
99
char *str;
usr/src/lib/libwrap/percent_x.c
51
char *str = string;
usr/src/lib/libwrap/percent_x.c
60
while (*str) {
usr/src/lib/libwrap/percent_x.c
61
if (*str == '%' && (ch = str[1]) != 0) {
usr/src/lib/libwrap/percent_x.c
62
str += 2;
usr/src/lib/libwrap/percent_x.c
80
expansion = str++;
usr/src/lib/libxcurses/h/m_i18n.h
95
#define m_textdomain(str)
usr/src/lib/libxcurses/h/m_i18n.h
96
#define m_textmsg(id, str, cls) (str)
usr/src/lib/libxcurses/h/m_i18n.h
97
#define m_textstr(id, str, cls) str
usr/src/lib/libxcurses/h/m_i18n.h
98
#define m_strmsg(str) (str)
usr/src/lib/libxcurses/h/m_nls.h
42
#define m_textstr(id, str, cls) #id "##" str
usr/src/lib/libxcurses/h/m_nls.h
43
extern void m_textdomain(char * str);
usr/src/lib/libxcurses/h/m_nls.h
44
extern char *m_textmsg(int id, const char *str, char *cls);
usr/src/lib/libxcurses/h/m_nls.h
45
extern char *m_strmsg(const char *str);
usr/src/lib/libxcurses/h/m_wchar.h
129
#define m_fputmbs(fp, str, wid, prec, ljust) \
usr/src/lib/libxcurses/h/m_wchar.h
130
fprintf((fp), (ljust) ? "%-*.*s" : "%*.*s", wid, prec, str)
usr/src/lib/libxcurses/h/m_wchar.h
51
#define m_strsanitize(str) (str)
usr/src/lib/libxcurses/h/mks.h
345
LEXTERN int m_stty_cc (cc_t* cp, char *str);
usr/src/lib/libxcurses/src/libc/gen/eprintf.c
57
char *str;
usr/src/lib/libxcurses/src/libc/gen/eprintf.c
64
str = strerror(saveerrno);
usr/src/lib/libxcurses/src/libc/gen/eprintf.c
65
if (*str == '\0')
usr/src/lib/libxcurses/src/libc/gen/eprintf.c
68
nprf += fprintf(stderr,": %s\n", str);
usr/src/lib/libxcurses/src/libc/i18n/m_strmsg.c
45
m_strmsg(str)
usr/src/lib/libxcurses/src/libc/i18n/m_strmsg.c
46
const char* str;
usr/src/lib/libxcurses/src/libc/i18n/m_strmsg.c
49
int id = (int)strtol(str, &cp, 0);
usr/src/lib/libxcurses/src/libc/i18n/m_strmsg.c
52
return ((char *)str);
usr/src/lib/libxcurses/src/libc/i18n/m_text.c
101
domain = str==NULL ? NULL : strdup(str);
usr/src/lib/libxcurses/src/libc/i18n/m_text.c
109
m_textmsg(id, str, cls)
usr/src/lib/libxcurses/src/libc/i18n/m_text.c
111
const char *str;
usr/src/lib/libxcurses/src/libc/i18n/m_text.c
128
return (xlate((char *)str));
usr/src/lib/libxcurses/src/libc/i18n/m_text.c
144
return (xlate((char *)str));
usr/src/lib/libxcurses/src/libc/i18n/m_text.c
148
cp = catgets(catd, NL_SETD, id, (char *)str);
usr/src/lib/libxcurses/src/libc/i18n/m_text.c
93
m_textdomain(str)
usr/src/lib/libxcurses/src/libc/i18n/m_text.c
94
char *str;
usr/src/lib/libxcurses/src/libc/mks/m_errorx.c
72
char *str;
usr/src/lib/libxcurses/src/libc/mks/m_errorx.c
75
str = strerror(saveerrno);
usr/src/lib/libxcurses/src/libc/mks/m_errorx.c
76
if (*str == '\0')
usr/src/lib/libxcurses/src/libc/mks/m_errorx.c
79
fprintf(stderr,": %s", str);
usr/src/lib/libxcurses/src/libc/mks/m_varian.c
284
static char str[10][SHORT_STRING_LEN];
usr/src/lib/libxcurses/src/libc/mks/m_varian.c
290
ret = str[buf++];
usr/src/lib/libxcurses/src/libc/mks/m_varian.c
311
static wchar_t str[SHORT_STRING_LEN];
usr/src/lib/libxcurses/src/libc/mks/m_varian.c
312
static wchar_t * const strend = str + sizeof(str);
usr/src/lib/libxcurses/src/libc/mks/m_varian.c
316
for (s1 = str ; *s != '\0'; s++) {
usr/src/lib/libxcurses/src/libc/mks/m_varian.c
318
if (str == strend) {
usr/src/lib/libxcurses/src/libc/mks/m_varian.c
325
return str;
usr/src/lib/libxcurses/src/libc/stdio/vfscanf.c
222
char *str;
usr/src/lib/libxcurses/src/libc/stdio/vfscanf.c
225
str = va_arg(ap, char *);
usr/src/lib/libxcurses/src/libc/stdio/vfscanf.c
251
*str++ = c;
usr/src/lib/libxcurses/src/libc/stdio/vfscanf.c
264
*str = '\0';
usr/src/lib/libxcurses/src/libc/stdio/vfscanf.c
458
scan(int ch, const char *str, const char *estr)
usr/src/lib/libxcurses/src/libc/stdio/vfscanf.c
460
for (; str < estr; ++str)
usr/src/lib/libxcurses/src/libc/stdio/vfscanf.c
461
if (*str == ch)
usr/src/lib/libxcurses/src/libc/stdio/vfscanf.c
468
match(const char *str, char *outstr)
usr/src/lib/libxcurses/src/libc/stdio/vfscanf.c
476
if (*str == '^') {
usr/src/lib/libxcurses/src/libc/stdio/vfscanf.c
478
str++;
usr/src/lib/libxcurses/src/libc/stdio/vfscanf.c
482
start = *str++;
usr/src/lib/libxcurses/src/libc/stdio/vfscanf.c
484
if (*str == '-') {
usr/src/lib/libxcurses/src/libc/stdio/vfscanf.c
485
if (str[2] == ']')
usr/src/lib/libxcurses/src/libc/stdio/vfscanf.c
486
end = str[1];
usr/src/lib/libxcurses/src/libc/stdio/vfscanf.c
489
bscan = str - 1;
usr/src/lib/libxcurses/src/libc/stdio/vfscanf.c
490
while (*str++ != ']')
usr/src/lib/libxcurses/src/libc/stdio/vfscanf.c
492
escan = str - 1;
usr/src/lib/libxcurses/src/libc/xcurses/addnstr.c
104
__m_trace("addstr(%p)", str);
usr/src/lib/libxcurses/src/libc/xcurses/addnstr.c
107
code = waddnstr(stdscr, str, -1);
usr/src/lib/libxcurses/src/libc/xcurses/addnstr.c
113
(mvaddstr)(y, x, str)
usr/src/lib/libxcurses/src/libc/xcurses/addnstr.c
115
const char *str;
usr/src/lib/libxcurses/src/libc/xcurses/addnstr.c
120
__m_trace("mvaddstr(%d, %d, %p)", y, x, str);
usr/src/lib/libxcurses/src/libc/xcurses/addnstr.c
124
code = waddnstr(stdscr, str, -1);
usr/src/lib/libxcurses/src/libc/xcurses/addnstr.c
130
(mvwaddstr)(w, y, x, str)
usr/src/lib/libxcurses/src/libc/xcurses/addnstr.c
133
const char *str;
usr/src/lib/libxcurses/src/libc/xcurses/addnstr.c
138
__m_trace("mvwaddstr(%p, %d, %d, %p)", w, y, x, str);
usr/src/lib/libxcurses/src/libc/xcurses/addnstr.c
142
code = waddnstr(w, str, -1);
usr/src/lib/libxcurses/src/libc/xcurses/addnstr.c
148
(waddstr)(w, str)
usr/src/lib/libxcurses/src/libc/xcurses/addnstr.c
150
const char *str;
usr/src/lib/libxcurses/src/libc/xcurses/addnstr.c
155
__m_trace("waddstr(%p, %p)", w, str);
usr/src/lib/libxcurses/src/libc/xcurses/addnstr.c
158
code = waddnstr(w, str, -1);
usr/src/lib/libxcurses/src/libc/xcurses/addnstr.c
45
(addnstr)(str, n)
usr/src/lib/libxcurses/src/libc/xcurses/addnstr.c
46
const char *str;
usr/src/lib/libxcurses/src/libc/xcurses/addnstr.c
52
__m_trace("addnstr(%p, %d)", str, n);
usr/src/lib/libxcurses/src/libc/xcurses/addnstr.c
55
code = waddnstr(stdscr, str, n);
usr/src/lib/libxcurses/src/libc/xcurses/addnstr.c
61
(mvaddnstr)(y, x, str, n)
usr/src/lib/libxcurses/src/libc/xcurses/addnstr.c
63
const char *str;
usr/src/lib/libxcurses/src/libc/xcurses/addnstr.c
69
__m_trace("mvaddnstr(%d, %d, %p, %d)", y, x, str, n);
usr/src/lib/libxcurses/src/libc/xcurses/addnstr.c
73
code = waddnstr(stdscr, str, n);
usr/src/lib/libxcurses/src/libc/xcurses/addnstr.c
79
(mvwaddnstr)(w, y, x, str, n)
usr/src/lib/libxcurses/src/libc/xcurses/addnstr.c
82
const char *str;
usr/src/lib/libxcurses/src/libc/xcurses/addnstr.c
88
__m_trace("mvwaddnstr(%p, %d, %d, %p, %d)", w, y, x, str, n);
usr/src/lib/libxcurses/src/libc/xcurses/addnstr.c
92
code = waddnstr(w, str, n);
usr/src/lib/libxcurses/src/libc/xcurses/addnstr.c
98
(addstr)(str)
usr/src/lib/libxcurses/src/libc/xcurses/addnstr.c
99
const char *str;
usr/src/lib/libxcurses/src/libc/xcurses/getnstr.c
104
__m_trace("getstr(%p)", str);
usr/src/lib/libxcurses/src/libc/xcurses/getnstr.c
107
code = wgetnstr(stdscr, str, -1);
usr/src/lib/libxcurses/src/libc/xcurses/getnstr.c
113
(mvgetstr)(y, x, str)
usr/src/lib/libxcurses/src/libc/xcurses/getnstr.c
115
char *str;
usr/src/lib/libxcurses/src/libc/xcurses/getnstr.c
120
__m_trace("mvgetstr(%d, %d, %p)", y, x, str);
usr/src/lib/libxcurses/src/libc/xcurses/getnstr.c
124
code = wgetnstr(stdscr, str, -1);
usr/src/lib/libxcurses/src/libc/xcurses/getnstr.c
130
(mvwgetstr)(w, y, x, str)
usr/src/lib/libxcurses/src/libc/xcurses/getnstr.c
133
char *str;
usr/src/lib/libxcurses/src/libc/xcurses/getnstr.c
138
__m_trace("mvwgetstr(%p, %d, %d, %p)", w, y, x, str);
usr/src/lib/libxcurses/src/libc/xcurses/getnstr.c
142
code = wgetnstr(w, str, -1);
usr/src/lib/libxcurses/src/libc/xcurses/getnstr.c
149
(wgetstr)(w, str)
usr/src/lib/libxcurses/src/libc/xcurses/getnstr.c
151
char *str;
usr/src/lib/libxcurses/src/libc/xcurses/getnstr.c
156
__m_trace("wgetstr(%p, %p)", w, str);
usr/src/lib/libxcurses/src/libc/xcurses/getnstr.c
159
code = wgetnstr(w, str, -1);
usr/src/lib/libxcurses/src/libc/xcurses/getnstr.c
45
(getnstr)(str, n)
usr/src/lib/libxcurses/src/libc/xcurses/getnstr.c
46
char *str;
usr/src/lib/libxcurses/src/libc/xcurses/getnstr.c
52
__m_trace("getnstr(%p, %d)", str, n);
usr/src/lib/libxcurses/src/libc/xcurses/getnstr.c
55
code = wgetnstr(stdscr, str, n);
usr/src/lib/libxcurses/src/libc/xcurses/getnstr.c
61
(mvgetnstr)(y, x, str, n)
usr/src/lib/libxcurses/src/libc/xcurses/getnstr.c
63
char *str;
usr/src/lib/libxcurses/src/libc/xcurses/getnstr.c
69
__m_trace("mvgetnstr(%d, %d, %p, %d)", y, x, str, n);
usr/src/lib/libxcurses/src/libc/xcurses/getnstr.c
73
code = wgetnstr(stdscr, str, n);
usr/src/lib/libxcurses/src/libc/xcurses/getnstr.c
79
(mvwgetnstr)(w, y, x, str, n)
usr/src/lib/libxcurses/src/libc/xcurses/getnstr.c
82
char *str;
usr/src/lib/libxcurses/src/libc/xcurses/getnstr.c
88
__m_trace("mvwgetnstr(%p, %d, %d, %p, %d)", w, y, x, str, n);
usr/src/lib/libxcurses/src/libc/xcurses/getnstr.c
92
code = wgetnstr(w, str, n);
usr/src/lib/libxcurses/src/libc/xcurses/getnstr.c
98
(getstr)(str)
usr/src/lib/libxcurses/src/libc/xcurses/getnstr.c
99
char *str;
usr/src/lib/libxcurses/src/libc/xcurses/keyname.c
54
const char *str;
usr/src/lib/libxcurses/src/libc/xcurses/keyname.c
63
str = __m_strfnames[**p];
usr/src/lib/libxcurses/src/libc/xcurses/keyname.c
69
str = unctrl(ch);
usr/src/lib/libxcurses/src/libc/xcurses/keyname.c
72
__m_trace("keyname returned %p = \"%s\".", str, str);
usr/src/lib/libxcurses/src/libc/xcurses/keyname.c
74
return str;
usr/src/lib/libxcurses/src/libc/xcurses/keypad.c
105
while (*str != '\0') {
usr/src/lib/libxcurses/src/libc/xcurses/keypad.c
114
node->ch = *str++;
usr/src/lib/libxcurses/src/libc/xcurses/keypad.c
120
return (int) (str - start);
usr/src/lib/libxcurses/src/libc/xcurses/keypad.c
50
decode_add(root, str, code)
usr/src/lib/libxcurses/src/libc/xcurses/keypad.c
52
const char *str;
usr/src/lib/libxcurses/src/libc/xcurses/keypad.c
61
if (str == (char *) 0)
usr/src/lib/libxcurses/src/libc/xcurses/keypad.c
64
start = str;
usr/src/lib/libxcurses/src/libc/xcurses/keypad.c
76
node->ch = *str++;
usr/src/lib/libxcurses/src/libc/xcurses/keypad.c
80
for (node = *root; *str != '\0'; ++str, node = node->child) {
usr/src/lib/libxcurses/src/libc/xcurses/keypad.c
81
while (node->ch != *str
usr/src/lib/libxcurses/src/libc/xcurses/keypad.c
85
if (node->ch != *str) {
usr/src/lib/libxcurses/src/libc/xcurses/keypad.c
94
node->ch = *str++;
usr/src/lib/libxcurses/src/libc/xcurses/tgoto.c
47
const char *str;
usr/src/lib/libxcurses/src/libc/xcurses/tgoto.c
53
str = tparm((char *)cap, (long) row, (long) col, 0L, 0L, 0L, 0L, 0L, 0L, 0L);
usr/src/lib/libxcurses/src/libc/xcurses/tgoto.c
55
return __m_return_pointer("tgoto", (char *)str);
usr/src/lib/libxcurses/src/libc/xcurses/tparm.c
106
#define spop() (stack_ptr > 0 ? stack[--stack_ptr].str : (char *) 0)
usr/src/lib/libxcurses/src/libc/xcurses/tparm.c
110
char* str;
usr/src/lib/libxcurses/src/libc/xcurses/unctrl.c
116
str = (char *) unctrl(c);
usr/src/lib/libxcurses/src/libc/xcurses/unctrl.c
117
chr[2] = *str++;
usr/src/lib/libxcurses/src/libc/xcurses/unctrl.c
118
chr[3] = *str;
usr/src/lib/libxcurses/src/libc/xcurses/unctrl.c
85
char *str;
usr/src/lib/libxcurses/src/libc/xcurses/waddnstr.c
46
waddnstr(w, str, n)
usr/src/lib/libxcurses/src/libc/xcurses/waddnstr.c
48
const char *str;
usr/src/lib/libxcurses/src/libc/xcurses/waddnstr.c
56
__m_trace("waddnstr(%p, %p = \"%s\", %d)", w, str, str, n);
usr/src/lib/libxcurses/src/libc/xcurses/waddnstr.c
68
for ( ; *str != '\0' && 0 < n; n -= i, str += i) {
usr/src/lib/libxcurses/src/libc/xcurses/waddnstr.c
69
if ((i = __m_mbs_cc(str, w->_bg._at, w->_bg._co, &cc)) < 0
usr/src/lib/libxcurses2/src/libc/xcurses/addnstr.c
100
mvaddstr(int y, int x, const char *str)
usr/src/lib/libxcurses2/src/libc/xcurses/addnstr.c
105
code = waddnstr(stdscr, str, -1);
usr/src/lib/libxcurses2/src/libc/xcurses/addnstr.c
113
mvwaddstr(WINDOW *w, int y, int x, const char *str)
usr/src/lib/libxcurses2/src/libc/xcurses/addnstr.c
118
code = waddnstr(w, str, -1);
usr/src/lib/libxcurses2/src/libc/xcurses/addnstr.c
126
waddstr(WINDOW *w, const char *str)
usr/src/lib/libxcurses2/src/libc/xcurses/addnstr.c
130
code = waddnstr(w, str, -1);
usr/src/lib/libxcurses2/src/libc/xcurses/addnstr.c
50
addnstr(const char *str, int n)
usr/src/lib/libxcurses2/src/libc/xcurses/addnstr.c
54
code = waddnstr(stdscr, str, n);
usr/src/lib/libxcurses2/src/libc/xcurses/addnstr.c
62
mvaddnstr(int y, int x, const char *str, int n)
usr/src/lib/libxcurses2/src/libc/xcurses/addnstr.c
67
code = waddnstr(stdscr, str, n);
usr/src/lib/libxcurses2/src/libc/xcurses/addnstr.c
75
mvwaddnstr(WINDOW *w, int y, int x, const char *str, int n)
usr/src/lib/libxcurses2/src/libc/xcurses/addnstr.c
80
code = waddnstr(w, str, n);
usr/src/lib/libxcurses2/src/libc/xcurses/addnstr.c
88
addstr(const char *str)
usr/src/lib/libxcurses2/src/libc/xcurses/addnstr.c
92
code = waddnstr(stdscr, str, -1);
usr/src/lib/libxcurses2/src/libc/xcurses/getnstr.c
100
mvgetstr(int y, int x, char *str)
usr/src/lib/libxcurses2/src/libc/xcurses/getnstr.c
105
code = wgetnstr(stdscr, str, -1);
usr/src/lib/libxcurses2/src/libc/xcurses/getnstr.c
113
mvwgetstr(WINDOW *w, int y, int x, char *str)
usr/src/lib/libxcurses2/src/libc/xcurses/getnstr.c
118
code = wgetnstr(w, str, -1);
usr/src/lib/libxcurses2/src/libc/xcurses/getnstr.c
126
wgetstr(WINDOW *w, char *str)
usr/src/lib/libxcurses2/src/libc/xcurses/getnstr.c
130
code = wgetnstr(w, str, -1);
usr/src/lib/libxcurses2/src/libc/xcurses/getnstr.c
50
getnstr(char *str, int n)
usr/src/lib/libxcurses2/src/libc/xcurses/getnstr.c
54
code = wgetnstr(stdscr, str, n);
usr/src/lib/libxcurses2/src/libc/xcurses/getnstr.c
62
mvgetnstr(int y, int x, char *str, int n)
usr/src/lib/libxcurses2/src/libc/xcurses/getnstr.c
67
code = wgetnstr(stdscr, str, n);
usr/src/lib/libxcurses2/src/libc/xcurses/getnstr.c
75
mvwgetnstr(WINDOW *w, int y, int x, char *str, int n)
usr/src/lib/libxcurses2/src/libc/xcurses/getnstr.c
80
code = wgetnstr(w, str, n);
usr/src/lib/libxcurses2/src/libc/xcurses/getnstr.c
88
getstr(char *str)
usr/src/lib/libxcurses2/src/libc/xcurses/getnstr.c
92
code = wgetnstr(stdscr, str, -1);
usr/src/lib/libxcurses2/src/libc/xcurses/keyname.c
53
char *str;
usr/src/lib/libxcurses2/src/libc/xcurses/keyname.c
60
str = (char *)strfnames[**p];
usr/src/lib/libxcurses2/src/libc/xcurses/keyname.c
66
if ((str = unctrl(ch)) == NULL) {
usr/src/lib/libxcurses2/src/libc/xcurses/keyname.c
67
str = (char *)unknown_key;
usr/src/lib/libxcurses2/src/libc/xcurses/keyname.c
70
return (str);
usr/src/lib/libxcurses2/src/libc/xcurses/keypad.c
106
while (*str != '\0') {
usr/src/lib/libxcurses2/src/libc/xcurses/keypad.c
115
node->ch = *str++;
usr/src/lib/libxcurses2/src/libc/xcurses/keypad.c
122
return ((int)(str - start));
usr/src/lib/libxcurses2/src/libc/xcurses/keypad.c
55
decode_add(t_decode **root, const char *str, short code)
usr/src/lib/libxcurses2/src/libc/xcurses/keypad.c
63
if (str == NULL)
usr/src/lib/libxcurses2/src/libc/xcurses/keypad.c
66
start = str;
usr/src/lib/libxcurses2/src/libc/xcurses/keypad.c
78
node->ch = *str++;
usr/src/lib/libxcurses2/src/libc/xcurses/keypad.c
82
for (node = *root; *str != '\0'; ++str, node = node->child) {
usr/src/lib/libxcurses2/src/libc/xcurses/keypad.c
83
while (node->ch != *str &&
usr/src/lib/libxcurses2/src/libc/xcurses/keypad.c
87
if (node->ch != *str) {
usr/src/lib/libxcurses2/src/libc/xcurses/keypad.c
95
node->ch = *str++;
usr/src/lib/libxcurses2/src/libc/xcurses/tgoto.c
52
char *str;
usr/src/lib/libxcurses2/src/libc/xcurses/tgoto.c
54
str = tparm((char *)cap, (long) row, (long) col,
usr/src/lib/libxcurses2/src/libc/xcurses/tgoto.c
57
return (str);
usr/src/lib/libxcurses2/src/libc/xcurses/tparm.c
113
#define spop() (stack_ptr > 0 ? stack[--stack_ptr].str : NULL)
usr/src/lib/libxcurses2/src/libc/xcurses/tparm.c
117
char *str;
usr/src/lib/libxcurses2/src/libc/xcurses/unctrl.c
122
str = (char *) unctrl(c);
usr/src/lib/libxcurses2/src/libc/xcurses/unctrl.c
123
chr[2] = *str++;
usr/src/lib/libxcurses2/src/libc/xcurses/unctrl.c
124
chr[3] = *str;
usr/src/lib/libxcurses2/src/libc/xcurses/unctrl.c
90
char *str;
usr/src/lib/libxcurses2/src/libc/xcurses/waddnstr.c
51
waddnstr(WINDOW *w, const char *str, int n)
usr/src/lib/libxcurses2/src/libc/xcurses/waddnstr.c
67
for (; *str != '\0' && 0 < n; n -= i, str += i) {
usr/src/lib/libxcurses2/src/libc/xcurses/waddnstr.c
68
if ((i = __m_mbs_cc(str, 0, 0, &cc)) < 0 ||
usr/src/lib/libxpio/common/libxpio_attr.c
254
xpio_attr_xlate_tou32_direct(const char *str, const xpio_pair_t *pairs,
usr/src/lib/libxpio/common/libxpio_attr.c
258
if (strcmp(str, pairs[i].xp_name) == 0) {
usr/src/lib/libxpio/common/libxpio_attr.c
305
xpio_attr_xlate_tou32_bitfield(const char *str, const xpio_pair_t *pairs,
usr/src/lib/libxpio/common/libxpio_attr.c
311
while (*str != '\0') {
usr/src/lib/libxpio/common/libxpio_attr.c
313
const char *pipe = strchr(str, '|');
usr/src/lib/libxpio/common/libxpio_attr.c
317
len = (uintptr_t)pipe - (uintptr_t)str;
usr/src/lib/libxpio/common/libxpio_attr.c
319
len = strlen(str);
usr/src/lib/libxpio/common/libxpio_attr.c
323
if (strncmp(pairs[i].xp_name, str, len) == 0 &&
usr/src/lib/libxpio/common/libxpio_attr.c
338
str = pipe + 1;
usr/src/lib/libxpio/common/libxpio_attr.c
355
xpio_attr_xlate_tou32_hex(const char *str, const xpio_pair_t *pairs,
usr/src/lib/libxpio/common/libxpio_attr.c
362
l = strtoull(str, &eptr, 0);
usr/src/lib/libzfs/common/libzfs_crypto.c
102
ret = regexec(&hdl->libzfs_urire, str, ARRAY_SIZE(pmatch), pmatch, 0);
usr/src/lib/libzfs/common/libzfs_crypto.c
123
*schemep = strndup(str + smatch->rm_so, smatch->rm_eo - smatch->rm_so);
usr/src/lib/libzfs/common/libzfs_crypto.c
86
zfs_prop_parse_keylocation(libzfs_handle_t *restrict hdl, const char *str,
usr/src/lib/libzfs/common/libzfs_crypto.c
94
if (strcmp("prompt", str) == 0) {
usr/src/lib/libzfs/common/libzfs_dataset.c
2614
const char *str;
usr/src/lib/libzfs/common/libzfs_dataset.c
2662
str = getprop_string(zhp, prop, &source);
usr/src/lib/libzfs/common/libzfs_dataset.c
2664
if (str[0] == '/') {
usr/src/lib/libzfs/common/libzfs_dataset.c
2701
if (str[1] == '\0' && (root[0] != '\0' ||
usr/src/lib/libzfs/common/libzfs_dataset.c
2703
str++;
usr/src/lib/libzfs/common/libzfs_dataset.c
2707
root, str);
usr/src/lib/libzfs/common/libzfs_dataset.c
2710
root, str, relpath[0] == '@' ? "" : "/",
usr/src/lib/libzfs/common/libzfs_dataset.c
2714
(void) strlcpy(propbuf, str, proplen);
usr/src/lib/libzfs/common/libzfs_dataset.c
2720
str = getprop_string(zhp, prop, &source);
usr/src/lib/libzfs/common/libzfs_dataset.c
2721
if (str == NULL)
usr/src/lib/libzfs/common/libzfs_dataset.c
2723
(void) strlcpy(propbuf, str, proplen);
usr/src/lib/libzfs/common/libzfs_dataset.c
2724
zcp_check(zhp, prop, 0, str);
usr/src/lib/libzfs/common/libzfs_dataset.c
2799
str = "filesystem";
usr/src/lib/libzfs/common/libzfs_dataset.c
2802
str = "volume";
usr/src/lib/libzfs/common/libzfs_dataset.c
2805
str = "snapshot";
usr/src/lib/libzfs/common/libzfs_dataset.c
2808
str = "bookmark";
usr/src/lib/libzfs/common/libzfs_dataset.c
2813
(void) snprintf(propbuf, proplen, "%s", str);
usr/src/lib/libzfs/common/libzfs_dataset.c
2935
str = getprop_string(zhp, prop, &source);
usr/src/lib/libzfs/common/libzfs_dataset.c
2936
if (str == NULL)
usr/src/lib/libzfs/common/libzfs_dataset.c
2939
(void) strlcpy(propbuf, str, proplen);
usr/src/lib/libzfs/common/libzfs_dataset.c
2940
zcp_check(zhp, prop, 0, str);
usr/src/lib/libzfs/common/libzfs_pool.c
2355
#define CTD_CHECK(str) (str && str[0] == 'c' && isdigit(str[1]))
usr/src/lib/libzfs/common/libzfs_pool.c
2362
ctd_check_path(char *str)
usr/src/lib/libzfs/common/libzfs_pool.c
2367
if (str && str[0] == '/') {
usr/src/lib/libzfs/common/libzfs_pool.c
2368
char *tmp = strrchr(str, '/');
usr/src/lib/libzfs/common/libzfs_pool.c
2374
if (tmp != str && strcmp(tmp, "/old") == 0) {
usr/src/lib/libzfs/common/libzfs_pool.c
2378
str = tmp + 1;
usr/src/lib/libzfs/common/libzfs_pool.c
2380
return (CTD_CHECK(str));
usr/src/lib/libzfs/common/libzfs_util.c
1064
const char *str = NULL;
usr/src/lib/libzfs/common/libzfs_util.c
1079
str = name;
usr/src/lib/libzfs/common/libzfs_util.c
1083
str = propname;
usr/src/lib/libzfs/common/libzfs_util.c
1087
str = value;
usr/src/lib/libzfs/common/libzfs_util.c
1093
str = "-";
usr/src/lib/libzfs/common/libzfs_util.c
1097
str = "default";
usr/src/lib/libzfs/common/libzfs_util.c
1101
str = "local";
usr/src/lib/libzfs/common/libzfs_util.c
1105
str = "temporary";
usr/src/lib/libzfs/common/libzfs_util.c
1111
str = buf;
usr/src/lib/libzfs/common/libzfs_util.c
1114
str = "received";
usr/src/lib/libzfs/common/libzfs_util.c
1118
str = NULL;
usr/src/lib/libzfs/common/libzfs_util.c
1124
str = (recvd_value == NULL ? "-" : recvd_value);
usr/src/lib/libzfs/common/libzfs_util.c
1132
(void) printf("%s", str);
usr/src/lib/libzfs/common/libzfs_util.c
1134
(void) printf("%s\t", str);
usr/src/lib/libzfs/common/libzfs_util.c
1138
str);
usr/src/lib/libzfs/common/libzfs_util.c
659
zfs_strdup(libzfs_handle_t *hdl, const char *str)
usr/src/lib/libzfs/common/libzfs_util.c
663
if ((ret = strdup(str)) == NULL)
usr/src/lib/libzfs_jni/common/libzfs_jni_property.c
435
str_to_enum_element(JNIEnv *env, char *str, char *valueClass)
usr/src/lib/libzfs_jni/common/libzfs_jni_property.c
440
jstring utf = (*env)->NewStringUTF(env, str);
usr/src/lib/libzfs_jni/common/libzfs_jni_property.c
453
str_to_aclinherit(JNIEnv *env, char *str)
usr/src/lib/libzfs_jni/common/libzfs_jni_property.c
455
return (str_to_enum_element(env, str,
usr/src/lib/libzfs_jni/common/libzfs_jni_property.c
460
str_to_aclmode(JNIEnv *env, char *str)
usr/src/lib/libzfs_jni/common/libzfs_jni_property.c
462
return (str_to_enum_element(env, str,
usr/src/lib/libzfs_jni/common/libzfs_jni_property.c
467
str_to_checksum(JNIEnv *env, char *str)
usr/src/lib/libzfs_jni/common/libzfs_jni_property.c
469
return (str_to_enum_element(env, str,
usr/src/lib/libzfs_jni/common/libzfs_jni_property.c
474
str_to_compression(JNIEnv *env, char *str)
usr/src/lib/libzfs_jni/common/libzfs_jni_property.c
476
return (str_to_enum_element(env, str,
usr/src/lib/libzfs_jni/common/libzfs_jni_property.c
481
str_to_snapdir(JNIEnv *env, char *str)
usr/src/lib/libzfs_jni/common/libzfs_jni_property.c
483
return (str_to_enum_element(env, str,
usr/src/lib/libzfs_jni/common/libzfs_jni_property.c
488
str_to_string(JNIEnv *env, char *str)
usr/src/lib/libzfs_jni/common/libzfs_jni_property.c
490
return (*env)->NewStringUTF(env, str);
usr/src/lib/libzfs_jni/common/libzfs_jni_util.c
217
zjni_str_to_long(JNIEnv *env, char *str)
usr/src/lib/libzfs_jni/common/libzfs_jni_util.c
225
jstring utf = (*env)->NewStringUTF(env, str);
usr/src/lib/libzfs_jni/common/libzfs_jni_util.c
249
zjni_str_to_date(JNIEnv *env, char *str)
usr/src/lib/libzfs_jni/common/libzfs_jni_util.c
257
jstring utf = (*env)->NewStringUTF(env, str);
usr/src/lib/libzonecfg/common/libzonecfg.c
4092
zonecfg_str_to_bytes(char *str, uint64_t *bytes)
usr/src/lib/libzonecfg/common/libzonecfg.c
4098
if ((val = strtold(str, &unitp)) < 0)
usr/src/lib/libzonecfg/common/libzonecfg.c
5373
append_priv_token(char *priv, char *str, size_t strlen)
usr/src/lib/libzonecfg/common/libzonecfg.c
5375
if (*str != '\0')
usr/src/lib/libzonecfg/common/libzonecfg.c
5376
(void) strlcat(str, TOKEN_PRIV_STR, strlen);
usr/src/lib/libzonecfg/common/libzonecfg.c
5377
(void) strlcat(str, priv, strlen);
usr/src/lib/libzonecfg/common/libzonecfg.c
5841
zone_get_id(const char *str, zoneid_t *zip)
usr/src/lib/libzonecfg/common/libzonecfg.c
5850
zoneid = (zoneid_t)strtol(str, &cp, 0);
usr/src/lib/libzonecfg/common/libzonecfg.c
5851
if (errno == 0 && cp != str && *cp == '\0' &&
usr/src/lib/libzonecfg/common/libzonecfg.c
5858
if ((zoneid = getzoneidbyname(str)) != -1) {
usr/src/lib/libzonecfg/common/libzonecfg.c
5868
if (zonecfg_get_handle(str, hdl) == Z_OK) {
usr/src/lib/libzonecfg/common/libzonecfg.c
7343
zperror(const char *str)
usr/src/lib/libzonecfg/common/libzonecfg.c
7345
(void) fprintf(stderr, "%s: %s\n", str, strerror(errno));
usr/src/lib/libzutil/common/zutil_import.c
159
zutil_strdup(libpc_handle_t *hdl, const char *str)
usr/src/lib/libzutil/common/zutil_import.c
163
if ((ret = strdup(str)) == NULL)
usr/src/lib/libzutil/common/zutil_import.h
57
char *zutil_strdup(libpc_handle_t *hdl, const char *str);
usr/src/lib/libzutil/common/zutil_nicenum.c
36
zfs_isnumber(const char *str)
usr/src/lib/libzutil/common/zutil_nicenum.c
38
for (; *str; str++)
usr/src/lib/libzutil/common/zutil_nicenum.c
39
if (!(isdigit(*str) || (*str == '.')))
usr/src/lib/madv/common/madv.c
248
argmatch(char *str)
usr/src/lib/madv/common/madv.c
262
MADVPRINT(2, (stderr, "argmatch: %s ", str));
usr/src/lib/madv/common/madv.c
264
if (rc = gmatch(*argv, str)) {
usr/src/lib/madv/common/madv.c
285
empty(char *str)
usr/src/lib/madv/common/madv.c
289
while ((c = *str) == '\n' || c == ' ' || c == '\t')
usr/src/lib/madv/common/madv.c
290
str++;
usr/src/lib/madv/common/madv.c
291
return (*str == '\0');
usr/src/lib/madv/common/madv.c
443
char *str, *envadv;
usr/src/lib/madv/common/madv.c
469
if (str = getenv(ENV_MADVDEBUG))
usr/src/lib/madv/common/madv.c
470
madvdebug = atoi(str);
usr/src/lib/madv/common/madv.c
541
if (str = strrchr(tokadv, '\n'))
usr/src/lib/madv/common/madv.c
542
*str = '\0';
usr/src/lib/mpss/common/mpss.c
252
argmatch(char *str, FILE *errfp)
usr/src/lib/mpss/common/mpss.c
266
MPSSPRINT(2, (stderr, "argmatch: %s ", str));
usr/src/lib/mpss/common/mpss.c
268
if (rc = gmatch(*argv, str)) {
usr/src/lib/mpss/common/mpss.c
289
empty(char *str)
usr/src/lib/mpss/common/mpss.c
293
while ((c = *str) == '\n' || c == ' ' || c == '\t')
usr/src/lib/mpss/common/mpss.c
294
str++;
usr/src/lib/mpss/common/mpss.c
295
return (*str == '\0');
usr/src/lib/mpss/common/mpss.c
308
char *str, *envheap, *envstack;
usr/src/lib/mpss/common/mpss.c
330
if (str = getenv(ENV_MPSSDEBUG))
usr/src/lib/mpss/common/mpss.c
331
mpssdebug = atosz(str);
usr/src/lib/mpss/common/mpss.c
413
if (str = strrchr(tokstack, '\n'))
usr/src/lib/mpss/common/mpss.c
414
*str = '\0';
usr/src/lib/nsswitch/files/common/getnetgrent.c
294
const char *str;
usr/src/lib/nsswitch/files/common/getnetgrent.c
297
if ((str = mem->triple[i]) == 0) {
usr/src/lib/nsswitch/files/common/getnetgrent.c
299
} else if ((len = strlen(str) + 1) <= buflen) {
usr/src/lib/nsswitch/files/common/getnetgrent.c
301
(void) memcpy(buffer, str, len);
usr/src/lib/nsswitch/nis/common/getnetgrent.c
113
const char *str;
usr/src/lib/nsswitch/nis/common/getnetgrent.c
116
if ((str = mem->triple[i]) == 0) {
usr/src/lib/nsswitch/nis/common/getnetgrent.c
118
} else if ((len = strlen(str) + 1) <= buflen) {
usr/src/lib/nsswitch/nis/common/getnetgrent.c
120
(void) memcpy(buffer, str, len);
usr/src/lib/pam_modules/authtok_check/rules.c
107
Capitalise(register char *str) /* return a pointer to an capitalised */
usr/src/lib/pam_modules/authtok_check/rules.c
114
while (*str) {
usr/src/lib/pam_modules/authtok_check/rules.c
115
*(ptr++) = CRACK_TOLOWER(*str);
usr/src/lib/pam_modules/authtok_check/rules.c
116
str++;
usr/src/lib/pam_modules/authtok_check/rules.c
60
Reverse(register char *str) /* return a pointer to a reversal */
usr/src/lib/pam_modules/authtok_check/rules.c
66
j = i = strlen(str);
usr/src/lib/pam_modules/authtok_check/rules.c
67
while (*str) {
usr/src/lib/pam_modules/authtok_check/rules.c
68
area[--i] = *str++;
usr/src/lib/pam_modules/authtok_check/rules.c
75
Uppercase(register char *str) /* return a pointer to an uppercase */
usr/src/lib/pam_modules/authtok_check/rules.c
81
while (*str) {
usr/src/lib/pam_modules/authtok_check/rules.c
82
*(ptr++) = CRACK_TOUPPER(*str);
usr/src/lib/pam_modules/authtok_check/rules.c
83
str++;
usr/src/lib/pam_modules/authtok_check/rules.c
91
Lowercase(register char *str) /* return a pointer to an lowercase */
usr/src/lib/pam_modules/authtok_check/rules.c
97
while (*str) {
usr/src/lib/pam_modules/authtok_check/rules.c
98
*(ptr++) = CRACK_TOLOWER(*str);
usr/src/lib/pam_modules/authtok_check/rules.c
99
str++;
usr/src/lib/pam_modules/unix_cred/unix_cred.c
115
} while (tmp == NULL && *str != '\0');
usr/src/lib/pam_modules/unix_cred/unix_cred.c
83
getset(char *str, priv_set_t **res)
usr/src/lib/pam_modules/unix_cred/unix_cred.c
89
if (str == NULL)
usr/src/lib/pam_modules/unix_cred/unix_cred.c
92
len = strlen(str) + 1;
usr/src/lib/pam_modules/unix_cred/unix_cred.c
97
tmp = priv_str_to_set(str, ",", &endp);
usr/src/lib/pkcs11/pkcs11_tpm/common/asn1.c
447
CK_BYTE ** str,
usr/src/lib/pkcs11/pkcs11_tpm/common/asn1.c
488
*str = buf;
usr/src/lib/pkcs11/pkcs11_tpm/common/asn1.c
500
*str = buf;
usr/src/lib/pkcs11/pkcs11_tpm/common/asn1.c
513
*str = buf;
usr/src/lib/pkcs11/pkcs11_tpm/common/asn1.c
527
*str = buf;
usr/src/lib/pkcs11/pkcs11_tpm/common/asn1.c
536
ber_decode_OCTET_STRING(CK_BYTE * str,
usr/src/lib/pkcs11/pkcs11_tpm/common/asn1.c
543
if (! str) {
usr/src/lib/pkcs11/pkcs11_tpm/common/asn1.c
546
if (str[0] != 0x04) {
usr/src/lib/pkcs11/pkcs11_tpm/common/asn1.c
549
if ((str[1] & 0x80) == 0) {
usr/src/lib/pkcs11/pkcs11_tpm/common/asn1.c
550
len = str[1] & 0x7F;
usr/src/lib/pkcs11/pkcs11_tpm/common/asn1.c
552
*data = &str[2];
usr/src/lib/pkcs11/pkcs11_tpm/common/asn1.c
558
length_octets = str[1] & 0x7F;
usr/src/lib/pkcs11/pkcs11_tpm/common/asn1.c
561
len = str[2];
usr/src/lib/pkcs11/pkcs11_tpm/common/asn1.c
563
*data = &str[3];
usr/src/lib/pkcs11/pkcs11_tpm/common/asn1.c
570
len = str[2];
usr/src/lib/pkcs11/pkcs11_tpm/common/asn1.c
572
len |= str[3];
usr/src/lib/pkcs11/pkcs11_tpm/common/asn1.c
574
*data = &str[4];
usr/src/lib/pkcs11/pkcs11_tpm/common/asn1.c
581
len = str[2];
usr/src/lib/pkcs11/pkcs11_tpm/common/asn1.c
583
len |= str[3];
usr/src/lib/pkcs11/pkcs11_tpm/common/asn1.c
585
len |= str[4];
usr/src/lib/pkcs11/pkcs11_tpm/common/asn1.c
587
*data = &str[5];
usr/src/lib/pyzfs/common/ioctl.c
471
char *str;
usr/src/lib/pyzfs/common/ioctl.c
473
if (!PyArg_ParseTuple(args, "s", &str))
usr/src/lib/pyzfs/common/ioctl.c
476
(void) strlcpy(cmdstr, str, sizeof (cmdstr));
usr/src/lib/sasl_plugins/digestmd5/digestmd5.c
290
static unsigned hash(const char *str)
usr/src/lib/sasl_plugins/digestmd5/digestmd5.c
295
while (str && *str) {
usr/src/lib/sasl_plugins/digestmd5/digestmd5.c
296
i = (int) *str;
usr/src/lib/sasl_plugins/digestmd5/digestmd5.c
299
str++;
usr/src/lib/sasl_plugins/digestmd5/digestmd5.c
534
char **str, unsigned *buflen, unsigned *curlen,
usr/src/lib/sasl_plugins/digestmd5/digestmd5.c
543
ret = _plug_buf_alloc(utils, str, buflen,
usr/src/lib/sasl_plugins/digestmd5/digestmd5.c
549
strcat(*str, ",");
usr/src/lib/sasl_plugins/digestmd5/digestmd5.c
550
strcat(*str, name);
usr/src/lib/sasl_plugins/digestmd5/digestmd5.c
553
strcat(*str, "=\"");
usr/src/lib/sasl_plugins/digestmd5/digestmd5.c
554
strcat(*str, (char *) value); /* XXX. What about quoting??? */
usr/src/lib/sasl_plugins/digestmd5/digestmd5.c
555
strcat(*str, "\"");
usr/src/lib/sasl_plugins/digestmd5/digestmd5.c
557
strcat(*str, "=");
usr/src/lib/sasl_plugins/digestmd5/digestmd5.c
558
strcat(*str, (char *) value);
usr/src/lib/scsi/libscsi/common/scsi_status.c
38
char *str;
usr/src/lib/scsi/libscsi/common/scsi_status.c
568
for (; slist->str != NULL; slist++) {
usr/src/lib/scsi/libscsi/common/scsi_status.c
570
return (slist->str);
usr/src/lib/scsi/libscsi/common/scsi_subr.c
175
libscsi_strdup(libscsi_hdl_t *hp, const char *str)
usr/src/lib/scsi/libscsi/common/scsi_subr.c
177
size_t len = strlen(str);
usr/src/lib/scsi/libscsi/common/scsi_subr.c
183
return (strcpy(dup, str));
usr/src/lib/scsi/libses/common/ses_subr.c
86
char *str = alloca(len + 1);
usr/src/lib/scsi/libses/common/ses_subr.c
87
bcopy(buf, str, len);
usr/src/lib/scsi/libses/common/ses_subr.c
88
str[len] = '\0';
usr/src/lib/scsi/libses/common/ses_subr.c
90
return (nvlist_add_string(nvl, name, str));
usr/src/lib/scsi/libsmp/common/smp_subr.c
177
smp_strdup(const char *str)
usr/src/lib/scsi/libsmp/common/smp_subr.c
179
size_t len = strlen(str);
usr/src/lib/scsi/libsmp/common/smp_subr.c
185
return (strcpy(dup, str));
usr/src/lib/scsi/libsmp/common/smp_subr.c
199
smp_trim_strdup(const char *str, size_t len)
usr/src/lib/scsi/libsmp/common/smp_subr.c
204
for (p = str; p - str < len && isspace(*p); p++)
usr/src/lib/scsi/libsmp/common/smp_subr.c
207
len -= (p - str);
usr/src/lib/scsi/libsmp/common/smp_subr.c
212
for (str = p + len - 1; str > p && isspace(*str); str--, len--)
usr/src/lib/smbclnt/libfknsmb/common/sys/sunddi.h
61
extern char *ddi_strdup(const char *str, int flag);
usr/src/lib/smbclnt/libfknsmb/common/sys/sunddi.h
62
extern char *strdup(const char *str);
usr/src/lib/smbclnt/libfknsmb/common/sys/sunddi.h
63
extern void strfree(char *str);
usr/src/lib/smbsrv/libfksmbsrv/common/sys/sunddi.h
58
extern char *ddi_strdup(const char *str, int flag);
usr/src/lib/smbsrv/libfksmbsrv/common/sys/sunddi.h
59
extern char *strdup(const char *str);
usr/src/lib/smbsrv/libfksmbsrv/common/sys/sunddi.h
60
extern void strfree(char *str);
usr/src/lib/smbsrv/libmlsvc/common/eventlog_svc.c
306
log_name = (char *)param->log_name.str;
usr/src/lib/smbsrv/libmlsvc/common/lsar_clnt.c
1161
arg.name.str = (unsigned char *)name;
usr/src/lib/smbsrv/libmlsvc/common/lsar_clnt.c
1205
(void) strlcpy(name, (char const *)arg.name->str,
usr/src/lib/smbsrv/libmlsvc/common/lsar_clnt.c
1246
arg.name.str = (unsigned char *)name;
usr/src/lib/smbsrv/libmlsvc/common/lsar_clnt.c
1259
(char const *)arg.display_name->str, display_len);
usr/src/lib/smbsrv/libmlsvc/common/lsar_clnt.c
1289
(char *)enum_buf->info[i].nb_name.str,
usr/src/lib/smbsrv/libmlsvc/common/lsar_clnt.c
1290
(char *)enum_buf->info[i].dns_name.str,
usr/src/lib/smbsrv/libmlsvc/common/lsar_clnt.c
1319
sidstr, (char *)enum_buf->info[i].name.str,
usr/src/lib/smbsrv/libmlsvc/common/lsar_clnt.c
332
(char *)pd_info->name.str, "", info);
usr/src/lib/smbsrv/libmlsvc/common/lsar_clnt.c
343
(char *)ad_info->name.str, "", info);
usr/src/lib/smbsrv/libmlsvc/common/lsar_clnt.c
356
(char *)dns_info->nb_domain.str,
usr/src/lib/smbsrv/libmlsvc/common/lsar_clnt.c
357
(char *)dns_info->dns_domain.str,
usr/src/lib/smbsrv/libmlsvc/common/lsar_clnt.c
358
(char *)dns_info->forest.str,
usr/src/lib/smbsrv/libmlsvc/common/lsar_clnt.c
412
names.name[0].str = (unsigned char *)name;
usr/src/lib/smbsrv/libmlsvc/common/lsar_clnt.c
516
if ((domname = (char *)domain_entry->domain_name.str) != NULL)
usr/src/lib/smbsrv/libmlsvc/common/lsar_clnt.c
571
if ((domname = (char *)domain_entry->domain_name.str) != NULL)
usr/src/lib/smbsrv/libmlsvc/common/lsar_clnt.c
626
if ((domname = (char *)domain_entry->domain_name.str) != NULL)
usr/src/lib/smbsrv/libmlsvc/common/lsar_clnt.c
690
if ((domname = (char *)domain_entry->domain_name.str) != NULL)
usr/src/lib/smbsrv/libmlsvc/common/lsar_clnt.c
780
name = (char *)name_entry->name.str;
usr/src/lib/smbsrv/libmlsvc/common/lsar_clnt.c
787
if ((name = (char *)domain_entry->domain_name.str) != NULL)
usr/src/lib/smbsrv/libmlsvc/common/lsar_clnt.c
841
name = (char *)name_entry->name.str;
usr/src/lib/smbsrv/libmlsvc/common/lsar_clnt.c
848
if ((name = (char *)domain_entry->domain_name.str) != NULL)
usr/src/lib/smbsrv/libmlsvc/common/lsar_clnt.c
911
name = (char *)name_entry->name.str;
usr/src/lib/smbsrv/libmlsvc/common/lsar_clnt.c
918
if ((name = (char *)domain_entry->domain_name.str) != NULL)
usr/src/lib/smbsrv/libmlsvc/common/lsar_svc.c
1078
accname = (char *)param->name_table->names->str;
usr/src/lib/smbsrv/libmlsvc/common/lsar_svc.c
1163
accname = (char *)param->name_table->names->str;
usr/src/lib/smbsrv/libmlsvc/common/lsar_svc.c
384
if ((pi = smb_priv_getbyname((char *)param->name.str)) == NULL) {
usr/src/lib/smbsrv/libmlsvc/common/lsar_svc.c
447
if ((pi = smb_priv_getbyname((char *)param->name.str)) == NULL) {
usr/src/lib/smbsrv/libmlsvc/common/lsar_svc.c
723
accname = (char *)param->name_table->names->str;
usr/src/lib/smbsrv/libmlsvc/common/netr_logon.c
119
if (info.info3.EffectiveName.str) {
usr/src/lib/smbsrv/libmlsvc/common/netr_logon.c
121
strdup((char *)info.info3.EffectiveName.str);
usr/src/lib/smbsrv/libmlsvc/common/netr_logon.c
126
if (info.info3.LogonDomainName.str) {
usr/src/lib/smbsrv/libmlsvc/common/netr_logon.c
128
strdup((char *)info.info3.LogonDomainName.str);
usr/src/lib/smbsrv/libmlsvc/common/netr_logon.c
410
username = (info3->EffectiveName.str)
usr/src/lib/smbsrv/libmlsvc/common/netr_logon.c
411
? (char *)info3->EffectiveName.str : user_info->lg_e_username;
usr/src/lib/smbsrv/libmlsvc/common/netr_logon.c
413
if (info3->LogonDomainName.str) {
usr/src/lib/smbsrv/libmlsvc/common/netr_logon.c
414
domain = (char *)info3->LogonDomainName.str;
usr/src/lib/smbsrv/libmlsvc/common/samr_clnt.c
1009
arg.username->str = (uint8_t *)account;
usr/src/lib/smbsrv/libmlsvc/common/samr_clnt.c
590
arg.domain_name.str = (unsigned char *)domain_name;
usr/src/lib/smbsrv/libmlsvc/common/samr_clnt.c
679
arg.name.str = (unsigned char *)name;
usr/src/lib/smbsrv/libmlsvc/common/samr_clnt.c
755
(char const *)info1->username.str);
usr/src/lib/smbsrv/libmlsvc/common/samr_clnt.c
757
(char const *)info1->fullname.str);
usr/src/lib/smbsrv/libmlsvc/common/samr_clnt.c
759
(char const *)info1->description.str);
usr/src/lib/smbsrv/libmlsvc/common/samr_clnt.c
767
(char const *)info6->username.str);
usr/src/lib/smbsrv/libmlsvc/common/samr_clnt.c
769
(char const *)info6->fullname.str);
usr/src/lib/smbsrv/libmlsvc/common/samr_clnt.c
774
(char const *)arg->ru.info7.username.str);
usr/src/lib/smbsrv/libmlsvc/common/samr_clnt.c
779
(char const *)arg->ru.info8.fullname.str);
usr/src/lib/smbsrv/libmlsvc/common/samr_clnt.c
998
arg.servername->str = (uint8_t *)slashserver;
usr/src/lib/smbsrv/libmlsvc/common/samr_svc.c
1551
gname = (char *)param->alias_name.str;
usr/src/lib/smbsrv/libmlsvc/common/samr_svc.c
340
if ((domain_name = (char *)param->domain_name.str) == NULL) {
usr/src/lib/smbsrv/libmlsvc/common/samr_svc.c
630
if (param->name.str == NULL) {
usr/src/lib/smbsrv/libmlsvc/common/samr_svc.c
651
wka = smb_wka_lookup_builtin((char *)param->name.str);
usr/src/lib/smbsrv/libmlsvc/common/samr_svc.c
664
status = smb_sam_lookup_name(NULL, (char *)param->name.str,
usr/src/lib/smbsrv/libmlsvc/common/winreg_svc.c
404
subkey = (char *)param->subkey.str;
usr/src/lib/smbsrv/libmlsvc/common/winreg_svc.c
493
subkey = (char *)param->subkey.str;
usr/src/lib/smbsrv/libmlsvc/common/winreg_svc.c
817
char *subkey = (char *)param->name.str;
usr/src/lib/smbsrv/libmlsvc/common/winreg_svc.c
909
name = (char *)param->value_name.str;
usr/src/lib/smbsrv/libsmb/common/smb_cfg.c
1204
char str[SMB_VERSTR_LEN];
usr/src/lib/smbsrv/libsmb/common/smb_cfg.c
1208
rc = smb_config_getstr(id, str, sizeof (str));
usr/src/lib/smbsrv/libsmb/common/smb_cfg.c
1210
val = smb_convert_version_str(str);
usr/src/lib/smbsrv/libsmb/common/smb_cfg.c
1213
if (str[0] != '\0') {
usr/src/lib/smbsrv/libsmb/common/smb_cfg.c
1214
syslog(LOG_ERR, "smbd/%s value invalid: %s", name, str);
usr/src/lib/smbsrv/libsmb/common/smb_cfg.c
1293
for (sv = table; sv->str != NULL; sv++) {
usr/src/lib/smbsrv/libsmb/common/smb_cfg.c
1294
if (strcmp(cn, sv->str) == 0) {
usr/src/lib/smbsrv/libsmb/common/smb_cfg.c
1379
char str[sizeof ("required")];
usr/src/lib/smbsrv/libsmb/common/smb_cfg.c
1381
rc = smb_config_getstr(id, str, sizeof (str));
usr/src/lib/smbsrv/libsmb/common/smb_cfg.c
1385
if (strncmp(str, "required", sizeof (str)) == 0)
usr/src/lib/smbsrv/libsmb/common/smb_cfg.c
1387
if (strncmp(str, "enabled", sizeof (str)) == 0)
usr/src/lib/smbsrv/libsmb/common/smb_cfg.c
231
for (i = 0; smb_versions[i].str != NULL; i++) {
usr/src/lib/smbsrv/libsmb/common/smb_cfg.c
232
if (strcmp(version, smb_versions[i].str) == 0)
usr/src/lib/smbsrv/libsmb/common/smb_cfg.c
61
char *str;
usr/src/lib/smbsrv/libsmb/common/smb_syslog.c
51
smb_syslog_fmt_m(char *buf, int buflen, const char *str, int err)
usr/src/lib/smbsrv/libsmb/common/smb_syslog.c
54
const char *sp = str;
usr/src/lib/udapl/libdat/common/udat_sr_parser.c
1005
(void) dat_os_strncpy(provider_version->id, str, i);
usr/src/lib/udapl/libdat/common/udat_sr_parser.c
1011
for (; '\0' != str[i]; i++) {
usr/src/lib/udapl/libdat/common/udat_sr_parser.c
1012
if ('.' == str[i]) {
usr/src/lib/udapl/libdat/common/udat_sr_parser.c
1014
} else if (DAT_TRUE != dat_os_isdigit(str[i])) {
usr/src/lib/udapl/libdat/common/udat_sr_parser.c
1027
dat_os_strtol(str + decimal_i, NULL, 10);
usr/src/lib/udapl/libdat/common/udat_sr_parser.c
1032
for (; '\0' != str[i]; i++) {
usr/src/lib/udapl/libdat/common/udat_sr_parser.c
1033
if (DAT_TRUE != dat_os_isdigit(str[i])) {
usr/src/lib/udapl/libdat/common/udat_sr_parser.c
1046
dat_os_strtol(str + decimal_i, NULL, 10);
usr/src/lib/udapl/libdat/common/udat_sr_parser.c
1048
if ('\0' != str[i]) {
usr/src/lib/udapl/libdat/common/udat_sr_parser.c
208
char *str,
usr/src/lib/udapl/libdat/common/udat_sr_parser.c
213
char *str,
usr/src/lib/udapl/libdat/common/udat_sr_parser.c
218
char *str,
usr/src/lib/udapl/libdat/common/udat_sr_parser.c
223
char *str,
usr/src/lib/udapl/libdat/common/udat_sr_parser.c
872
char *str,
usr/src/lib/udapl/libdat/common/udat_sr_parser.c
878
dat_os_assert(0 < dat_os_strlen(str));
usr/src/lib/udapl/libdat/common/udat_sr_parser.c
880
if ('u' == str[0]) {
usr/src/lib/udapl/libdat/common/udat_sr_parser.c
882
} else if ('k' == str[0]) {
usr/src/lib/udapl/libdat/common/udat_sr_parser.c
888
for (i = 1 /* move past initial [u|k] */; '\0' != str[i]; i++) {
usr/src/lib/udapl/libdat/common/udat_sr_parser.c
889
if ('.' == str[i]) {
usr/src/lib/udapl/libdat/common/udat_sr_parser.c
891
} else if (DAT_TRUE != dat_os_isdigit(str[i])) {
usr/src/lib/udapl/libdat/common/udat_sr_parser.c
896
api_version->version.major = (DAT_UINT32)dat_os_strtol(str + 1, NULL,
usr/src/lib/udapl/libdat/common/udat_sr_parser.c
902
for (; '\0' != str[i]; i++) {
usr/src/lib/udapl/libdat/common/udat_sr_parser.c
903
if (DAT_TRUE != dat_os_isdigit(str[i])) {
usr/src/lib/udapl/libdat/common/udat_sr_parser.c
908
api_version->version.minor = (DAT_UINT32)dat_os_strtol(str + minor_i,
usr/src/lib/udapl/libdat/common/udat_sr_parser.c
911
if ('\0' != str[i]) {
usr/src/lib/udapl/libdat/common/udat_sr_parser.c
925
char *str,
usr/src/lib/udapl/libdat/common/udat_sr_parser.c
928
if (!dat_os_strncmp(str,
usr/src/lib/udapl/libdat/common/udat_sr_parser.c
933
} else if (!dat_os_strncmp(str,
usr/src/lib/udapl/libdat/common/udat_sr_parser.c
950
char *str,
usr/src/lib/udapl/libdat/common/udat_sr_parser.c
953
if (!dat_os_strncmp(str,
usr/src/lib/udapl/libdat/common/udat_sr_parser.c
958
} else if (!dat_os_strncmp(str,
usr/src/lib/udapl/libdat/common/udat_sr_parser.c
975
char *str,
usr/src/lib/udapl/libdat/common/udat_sr_parser.c
982
dat_os_assert(0 < dat_os_strlen(str));
usr/src/lib/udapl/libdat/common/udat_sr_parser.c
987
for (i = 0; '\0' != str[i]; i++) {
usr/src/lib/udapl/libdat/common/udat_sr_parser.c
988
if ('.' == str[i]) {
usr/src/lib/udapl/udapl_tavor/common/dapl_ia_open.c
511
char *str;
usr/src/lib/udapl/udapl_tavor/common/dapl_ia_open.c
530
for (str = hostname; *str && *str != '.'; ) {
usr/src/lib/udapl/udapl_tavor/common/dapl_ia_open.c
531
str++;
usr/src/lib/udapl/udapl_tavor/common/dapl_ia_open.c
533
if (*str == '.') {
usr/src/lib/udapl/udapl_tavor/common/dapl_ia_open.c
534
*str = '\0';
usr/src/lib/udapl/udapl_tavor/include/dapl_osd.h
263
#define dapl_os_strlen(str) strlen((str))
usr/src/lib/udapl/udapl_tavor/include/dapl_osd.h
265
#define dapl_os_strdup(str) strdup((str))
usr/src/lib/varpd/files/common/libvarpd_files.c
419
char *str;
usr/src/lib/varpd/files/common/libvarpd_files.c
426
ret = nvlist_lookup_string(nvp, varpd_files_props[0], &str);
usr/src/lib/varpd/files/common/libvarpd_files.c
430
str = NULL;
usr/src/lib/varpd/files/common/libvarpd_files.c
443
if (str != NULL) {
usr/src/lib/varpd/files/common/libvarpd_files.c
444
size_t len = strlen(str) + 1;
usr/src/lib/varpd/files/common/libvarpd_files.c
450
(void) strlcpy(vaf->vaf_path, str, len);
usr/src/lib/varpd/files/common/libvarpd_files_json.c
308
const char *str;
usr/src/lib/varpd/files/common/libvarpd_files_json.c
314
str = custr_cstr(s->s_collect);
usr/src/lib/varpd/files/common/libvarpd_files_json.c
315
if (strcmp(str, "true") == 0) {
usr/src/lib/varpd/files/common/libvarpd_files_json.c
318
} else if (strcmp(str, "false") == 0) {
usr/src/lib/varpd/files/common/libvarpd_files_json.c
321
} else if (strcmp(str, "null") == 0) {
usr/src/lib/varpd/libvarpd/common/libvarpd_prop.c
126
libvarpd_prop_set_range_str(varpd_prop_handle_t *phdl, const char *str)
usr/src/lib/varpd/libvarpd/common/libvarpd_prop.c
129
size_t len = strlen(str) + 1; /* Account for a null terminator */
usr/src/lib/varpd/libvarpd/common/libvarpd_prop.c
141
(void) strlcpy((char *)&pstr->mpur_data[pstr->mpur_nextbyte], str,
usr/src/lib/watchmalloc/common/malloc.c
1295
char str[80];
usr/src/lib/watchmalloc/common/malloc.c
1305
s = strncpy(str, s, sizeof (str));
usr/src/psm/promif/ieee1275/common/prom_fb.c
114
prom_atol(const char *str, int len)
usr/src/psm/promif/ieee1275/common/prom_fb.c
118
while (len-- && (*str != '\0')) {
usr/src/psm/promif/ieee1275/common/prom_fb.c
119
n = n * 10 + (*str - '0');
usr/src/psm/promif/ieee1275/common/prom_fb.c
120
str++;
usr/src/psm/promif/ieee1275/sun4/prom_efcode.c
40
prom_get_fcode_size(char *str)
usr/src/psm/promif/ieee1275/sun4/prom_efcode.c
52
ci[3] = p1275_ptr2cell(str);
usr/src/psm/promif/ieee1275/sun4/prom_efcode.c
68
prom_get_fcode(char *str, char *buf)
usr/src/psm/promif/ieee1275/sun4/prom_efcode.c
81
ci[4] = p1275_ptr2cell(str); /* Arg#2: name of drop-in */
usr/src/psm/stand/bootlst/common/bootlst.c
43
extern int mountroot(char *str);
usr/src/psm/stand/cpr/common/support.c
104
str, default_path);
usr/src/psm/stand/cpr/common/support.c
111
prom_printf("%s: error reading %s\n", str, default_path);
usr/src/psm/stand/cpr/common/support.c
114
prom_printf("%s: bad magic number in %s\n", str, default_path);
usr/src/psm/stand/cpr/common/support.c
124
prom_printf("%s: cannot find \"options\" node\n", str);
usr/src/psm/stand/cpr/common/support.c
146
str, prop->name, prop->value);
usr/src/psm/stand/cpr/common/support.c
161
char *str;
usr/src/psm/stand/cpr/common/support.c
164
str = "\ncpr_read_cdump:";
usr/src/psm/stand/cpr/common/support.c
167
prom_printf("%s Error reading cpr dump descriptor\n", str);
usr/src/psm/stand/cpr/common/support.c
173
str, cdp->cdd_magic, CPR_DUMP_MAGIC);
usr/src/psm/stand/cpr/common/support.c
179
str, cdp->cdd_version, CPR_VERSION);
usr/src/psm/stand/cpr/common/support.c
185
str, cdp->cdd_machine, mach_type);
usr/src/psm/stand/cpr/common/support.c
190
prom_printf("%s bad bitmap %d\n", str, cdp->cdd_bitmaprec);
usr/src/psm/stand/cpr/common/support.c
195
prom_printf("%s Bad pg tot %d\n", str, cdp->cdd_dumppgsize);
usr/src/psm/stand/cpr/common/support.c
93
char *str, *default_path;
usr/src/psm/stand/cpr/common/support.c
99
str = "cpr_reset_properties";
usr/src/psm/stand/cpr/sparcv9/sun4u/bitmap.c
228
char *str;
usr/src/psm/stand/cpr/sparcv9/sun4u/bitmap.c
230
str = "map_free_phys";
usr/src/psm/stand/cpr/sparcv9/sun4u/bitmap.c
233
str, (void *)vaddr, size, (void *)virt));
usr/src/psm/stand/cpr/sparcv9/sun4u/bitmap.c
236
str, (void *)vaddr, (void *)(vaddr + size), name);
usr/src/psm/stand/cpr/sparcv9/sun4u/bitmap.c
273
char *str;
usr/src/psm/stand/cpr/sparcv9/sun4u/bitmap.c
275
str = "cb_set_bitmap";
usr/src/psm/stand/cpr/sparcv9/sun4u/bitmap.c
276
CB_VPRINTF((ent_fmt, str, entry));
usr/src/psm/stand/cpr/sparcv9/sun4u/bitmap.c
284
str, cb_nbitmaps, (CPR_MAX_BMDESC - 1));
usr/src/psm/stand/cpr/sparcv9/sun4u/bitmap.c
300
str, dp->cbd_magic, CPR_BITMAP_MAGIC);
usr/src/psm/stand/cpr/sparcv9/sun4u/bitmap.c
314
str, cb_nbitmaps, bmda_size);
usr/src/psm/stand/cpr/sparcv9/sun4u/bitmap.c
316
str, all_bitmap_size, alloc_size);
usr/src/psm/stand/cpr/sparcv9/sun4u/bitmap.c
417
char *str, *pdev, *mem_prop;
usr/src/psm/stand/cpr/sparcv9/sun4u/bitmap.c
427
str = "cb_get_physavail";
usr/src/psm/stand/cpr/sparcv9/sun4u/bitmap.c
428
CB_VPRINTF((ent_fmt, str, entry));
usr/src/psm/stand/cpr/sparcv9/sun4u/bitmap.c
445
prom_printf("%s: cant find \"%s\" node\n", str, pdev);
usr/src/psm/stand/cpr/sparcv9/sun4u/bitmap.c
462
str, mem_prop, len, need, space);
usr/src/psm/stand/cpr/sparcv9/sun4u/bitmap.c
472
str, mem_node, mem_prop, len, glen);
usr/src/psm/stand/cpr/sparcv9/sun4u/bitmap.c
536
char *str, *desc, *skip_fmt;
usr/src/psm/stand/cpr/sparcv9/sun4u/bitmap.c
541
str = "cb_relocate";
usr/src/psm/stand/cpr/sparcv9/sun4u/bitmap.c
542
CB_VPRINTF((ent_fmt, str, entry));
usr/src/psm/stand/cpr/sparcv9/sun4u/bitmap.c
588
str, clash_cnt + ok_cnt, clash_cnt, ok_cnt));
usr/src/psm/stand/cpr/sparcv9/sun4u/bitmap.c
596
str, ppn, ppn + mmu_btop(CB_STACK_SIZE) - 1));
usr/src/psm/stand/cpr/sparcv9/sun4u/cprboot.c
182
char **argv, *str, *cp;
usr/src/psm/stand/cpr/sparcv9/sun4u/cprboot.c
187
str = "-F";
usr/src/psm/stand/cpr/sparcv9/sun4u/cprboot.c
188
if (*argv == NULL || prom_strcmp(*argv, str))
usr/src/psm/stand/cpr/sparcv9/sun4u/cprboot.c
189
usage(str, *argv);
usr/src/psm/stand/cpr/sparcv9/sun4u/cprboot.c
199
str = "-[SR]";
usr/src/psm/stand/cpr/sparcv9/sun4u/cprboot.c
203
usage(str, *argv);
usr/src/psm/stand/cpr/sparcv9/sun4u/cprboot.c
224
usage(str, *argv);
usr/src/psm/stand/cpr/sparcv9/sun4u/cprboot.c
346
char *str, *dst_virt;
usr/src/psm/stand/cpr/sparcv9/sun4u/cprboot.c
352
str = "cb_read_statefile";
usr/src/psm/stand/cpr/sparcv9/sun4u/cprboot.c
353
CB_VPRINTF((ent_fmt, str, entry));
usr/src/psm/stand/cpr/sparcv9/sun4u/cprboot.c
379
str, alsize, sfile.size, (void *)sfile.buf, phys));
usr/src/psm/stand/cpr/sparcv9/sun4u/cprboot.c
382
str, sfile.size, rsvp);
usr/src/psm/stand/cpr/sparcv9/sun4u/cprboot.c
434
"expect %ld, got %ld\n", str, len, nread);
usr/src/psm/stand/cpr/sparcv9/sun4u/cprboot.c
450
str, mmu_btop(len),
usr/src/psm/stand/cpr/sparcv9/sun4u/cprboot.c
530
check_halt(char *str)
usr/src/psm/stand/cpr/sparcv9/sun4u/cprboot.c
534
prog, str);
usr/src/psm/stand/cpr/sparcv9/sun4u/machdep.c
270
char *str, *intf;
usr/src/psm/stand/cpr/sparcv9/sun4u/machdep.c
276
str = "cb_mp_setup";
usr/src/psm/stand/cpr/sparcv9/sun4u/machdep.c
277
CB_VPRINTF((ent_fmt, str, entry));
usr/src/psm/stand/cpr/sparcv9/sun4u/machdep.c
311
prom_printf("\n%s: slave cpu count: %d\n", str, ncpu);
usr/src/psm/stand/cpr/sparcv9/sun4u/machdep.c
71
char *fmt, *str;
usr/src/psm/stand/cpr/sparcv9/sun4u/machdep.c
74
str = "cb_check_machdep";
usr/src/psm/stand/cpr/sparcv9/sun4u/machdep.c
75
CB_VPRINTF((ent_fmt, str, entry));
usr/src/psm/stand/cpr/sparcv9/sun4u/machdep.c
83
str, cmach.md_magic, CPR_MACHDEP_MAGIC);
usr/src/psm/stand/cpr/sparcv9/sun4u/pages.c
282
char *str;
usr/src/psm/stand/cpr/sparcv9/sun4u/pages.c
284
str = "cb_restore_kpages";
usr/src/psm/stand/cpr/sparcv9/sun4u/pages.c
285
CB_VPRINTF((ent_fmt, str, entry));
usr/src/psm/stand/cpr/sparcv9/sun4u/pages.c
326
str, sfile.kpages, npages, compressed, regular);
usr/src/psm/stand/cpr/sparcv9/sun4u/pages.c
333
str, sfile.kpages, npages);
usr/src/psm/stand/cpr/sparcv9/sun4u/util.c
338
char *str, *name, **propp;
usr/src/psm/stand/cpr/sparcv9/sun4u/util.c
342
str = "get_cpu_node";
usr/src/psm/stand/cpr/sparcv9/sun4u/util.c
350
str, name);
usr/src/stand/lib/fs/common/fsswitch.c
113
mountroot(char *str)
usr/src/stand/lib/fs/common/fsswitch.c
116
return ((*dfl_fsw->fsw_mountroot)(str));
usr/src/stand/lib/fs/common/fsswitch.c
220
kern_open(char *str, int flags)
usr/src/stand/lib/fs/common/fsswitch.c
223
return ((*dfl_fsw->fsw_open)(str, flags));
usr/src/stand/lib/fs/common/promfs.c
38
static int promfs_mountroot(char *str);
usr/src/stand/lib/fs/common/promfs.c
63
promfs_mountroot(char *str)
usr/src/stand/lib/fs/common/promfs.c
66
(void) prom_getprop(prom_chosennode(), str, (caddr_t)&fsih);
usr/src/stand/lib/fs/hsfs/hsfsops.c
457
boot_hsfs_mountroot(char *str)
usr/src/stand/lib/fs/hsfs/hsfsops.c
473
h = prom_open(str);
usr/src/stand/lib/fs/hsfs/hsfsops.c
476
printf("Cannot open %s\n", str);
usr/src/stand/lib/fs/hsfs/hsfsops.c
483
devp->di_desc = (char *)bkmem_alloc(strlen(str) + 1);
usr/src/stand/lib/fs/hsfs/hsfsops.c
484
(void) strcpy(devp->di_desc, str);
usr/src/stand/lib/fs/hsfs/hsfsops.c
80
static int boot_hsfs_mountroot(char *str);
usr/src/stand/lib/fs/hsfs/hsfsops.c
979
print_io_req(fileid_t *filep, char *str)
usr/src/stand/lib/fs/hsfs/hsfsops.c
982
str,
usr/src/stand/lib/fs/nfs/getdents4.c
106
str.utf8string_len = sizeof (tagname) - 1;
usr/src/stand/lib/fs/nfs/getdents4.c
107
str.utf8string_val = tagname;
usr/src/stand/lib/fs/nfs/getdents4.c
110
compound_init(&readdir_args.rd_arg, &str, 0, 2, &nfp->fh.fh4);
usr/src/stand/lib/fs/nfs/getdents4.c
112
compound_init(&readdir_args.rd_arg, &str, 0, 2, NULL);
usr/src/stand/lib/fs/nfs/getdents4.c
99
utf8string str;
usr/src/stand/lib/fs/nfs/mount.c
556
boot_nfs_mountroot(char *str)
usr/src/stand/lib/fs/nfs/mount.c
580
mac_init(str);
usr/src/stand/lib/fs/nfs/nfs4ops.c
188
utf8string str;
usr/src/stand/lib/fs/nfs/nfs4ops.c
195
str.utf8string_len = sizeof (tagname) - 1;
usr/src/stand/lib/fs/nfs/nfs4ops.c
196
str.utf8string_val = tagname;
usr/src/stand/lib/fs/nfs/nfs4ops.c
199
compound_init(&getattrargs.ga_arg, &str, 0, 2, &nfp->fh.fh4);
usr/src/stand/lib/fs/nfs/nfs4ops.c
201
compound_init(&getattrargs.ga_arg, &str, 0, 2, NULL);
usr/src/stand/lib/fs/nfs/nfs4ops.c
384
utf8string str;
usr/src/stand/lib/fs/nfs/nfs4ops.c
402
str.utf8string_len = sizeof (tagname) - 1;
usr/src/stand/lib/fs/nfs/nfs4ops.c
403
str.utf8string_val = tagname;
usr/src/stand/lib/fs/nfs/nfs4ops.c
406
compound_init(&lookupargs.la_arg, &str, 0, 3, &dir->fh.fh4);
usr/src/stand/lib/fs/nfs/nfs4ops.c
408
compound_init(&lookupargs.la_arg, &str, 0, 3, NULL);
usr/src/stand/lib/fs/nfs/nfs4ops.c
504
utf8string str;
usr/src/stand/lib/fs/nfs/nfs4ops.c
515
str.utf8string_len = sizeof (tagname) - 1;
usr/src/stand/lib/fs/nfs/nfs4ops.c
516
str.utf8string_val = tagname;
usr/src/stand/lib/fs/nfs/nfs4ops.c
519
compound_init(&lookuppargs.la_arg, &str, 0, 3, &dir->fh.fh4);
usr/src/stand/lib/fs/nfs/nfs4ops.c
521
compound_init(&lookuppargs.la_arg, &str, 0, 3, NULL);
usr/src/stand/lib/fs/nfs/nfs4ops.c
601
utf8string str;
usr/src/stand/lib/fs/nfs/nfs4ops.c
610
str.utf8string_len = sizeof (tagname) - 1;
usr/src/stand/lib/fs/nfs/nfs4ops.c
611
str.utf8string_val = tagname;
usr/src/stand/lib/fs/nfs/nfs4ops.c
614
compound_init(&readlinkargs.rl_arg, &str, 0, 2,
usr/src/stand/lib/fs/nfs/nfs4ops.c
617
compound_init(&readlinkargs.rl_arg, &str, 0, 2, NULL);
usr/src/stand/lib/fs/nfs/nfs4ops.c
665
compound_init(b_compound_t *cp, utf8string *str, uint_t mvers, uint_t arglen,
usr/src/stand/lib/fs/nfs/nfs4ops.c
668
if (str == NULL || str->utf8string_len == 0) {
usr/src/stand/lib/fs/nfs/nfs4ops.c
672
cp->ca_tag.utf8string_len = str->utf8string_len;
usr/src/stand/lib/fs/nfs/nfs4ops.c
673
cp->ca_tag.utf8string_val = str->utf8string_val;
usr/src/stand/lib/fs/nfs/nfs4ops.c
70
utf8string str;
usr/src/stand/lib/fs/nfs/nfs4ops.c
75
str.utf8string_len = sizeof (tagname) - 1;
usr/src/stand/lib/fs/nfs/nfs4ops.c
76
str.utf8string_val = tagname;
usr/src/stand/lib/fs/nfs/nfs4ops.c
92
compound_init(&readargs.r_arg, &str, 0, 2, &filep->fh.fh4);
usr/src/stand/lib/fs/nfs/nfs4ops.c
94
compound_init(&readargs.r_arg, &str, 0, 2, NULL);
usr/src/stand/lib/fs/nfs/pathname.c
79
stpn_get(char *str, struct st_pathname *pnp)
usr/src/stand/lib/fs/nfs/pathname.c
83
bcopy(str, pnp->pn_path, strlen(str));
usr/src/stand/lib/fs/nfs/pathname.c
84
pnp->pn_pathlen = strlen(str); /* don't count null byte */
usr/src/stand/lib/fs/nfs/pmap.c
148
strtoi(char *str, char **ptr)
usr/src/stand/lib/fs/nfs/pmap.c
152
for (val = 0, c = *str++; c >= '0' && c <= '9'; c = *str++) {
usr/src/stand/lib/fs/nfs/pmap.c
156
*ptr = str;
usr/src/stand/lib/fs/ufs/ufsops.c
599
boot_ufs_mountroot(char *str)
usr/src/stand/lib/fs/ufs/ufsops.c
617
if (strchr(str, ':') == NULL) {
usr/src/stand/lib/fs/ufs/ufsops.c
618
(void) strcat(str, ":a");
usr/src/stand/lib/fs/ufs/ufsops.c
620
h = prom_open(str);
usr/src/stand/lib/fs/ufs/ufsops.c
622
printf("Cannot open %s\n", str);
usr/src/stand/lib/fs/ufs/ufsops.c
629
ufs_devp->di_desc = (char *)bkmem_alloc(strlen(str) + 1);
usr/src/stand/lib/fs/ufs/ufsops.c
630
(void) strcpy(ufs_devp->di_desc, str);
usr/src/stand/lib/fs/ufs/ufsops.c
67
static int boot_ufs_mountroot(char *str);
usr/src/stand/lib/tcp/tcp.c
340
#define TCP_DUMP_PACKET(str, mp) \
usr/src/stand/lib/tcp/tcp.c
344
printf("%s: dump TCP(%d): \n", (str), len); \
usr/src/stand/lib/tcp/tcp.c
348
#define TCP_DUMP_PACKET(str, mp)
usr/src/stand/lib/tcp/tcp.c
352
#define DEBUG_1(str, arg) printf(str, (arg))
usr/src/stand/lib/tcp/tcp.c
353
#define DEBUG_2(str, arg1, arg2) printf(str, (arg1), (arg2))
usr/src/stand/lib/tcp/tcp.c
354
#define DEBUG_3(str, arg1, arg2, arg3) printf(str, (arg1), (arg2), (arg3))
usr/src/stand/lib/tcp/tcp.c
356
#define DEBUG_1(str, arg)
usr/src/stand/lib/tcp/tcp.c
357
#define DEBUG_2(str, arg1, arg2)
usr/src/stand/lib/tcp/tcp.c
358
#define DEBUG_3(str, arg1, arg2, arg3)
usr/src/stand/lib/tcp/tcp.c
5513
tcp_xmit_ctl(char *str, tcp_t *tcp, mblk_t *mp, uint32_t seq,
usr/src/stand/lib/tcp/tcp.c
5540
if (str != NULL) {
usr/src/stand/lib/tcp/tcp.c
5542
"ctl 0x%x\n", sock_id, str, seq, ack, ctl);
usr/src/stand/lib/tcp/tcp.c
6120
tcp_xmit_early_reset(char *str, int sock_id, mblk_t *mp, uint32_t seq,
usr/src/stand/lib/tcp/tcp.c
6130
if (str != NULL) {
usr/src/stand/lib/tcp/tcp.c
6132
"flags 0x%x\n", str, seq, ack, ctl);
usr/src/stand/sys/bootvfs.h
54
int (*fsw_mountroot)(char *str);
usr/src/stand/sys/bootvfs.h
71
extern int mountroot(char *str);
usr/src/test/i2c-tests/tests/ioctl/addresses.c
122
const char *str = "I promise I'm an nvlist_t";
usr/src/test/i2c-tests/tests/ioctl/addresses.c
139
if (!test_add(fd, str, strlen(str) + 1, I2C_IOCTL_E_NVL_INVALID,
usr/src/test/i2c-tests/tests/ioctl/addresses.c
213
fnvlist_add_byte_array(nvl, UI2C_IOCTL_NVL_COMPAT, (uchar_t *)str,
usr/src/test/i2c-tests/tests/ioctl/addresses.c
214
strlen(str));
usr/src/test/libc-tests/tests/newlocale/newlocale_test.c
78
guarded_str(const char *str)
usr/src/test/libc-tests/tests/newlocale/newlocale_test.c
80
size_t len = strlen(str) + 1;
usr/src/test/libc-tests/tests/newlocale/newlocale_test.c
84
return (str);
usr/src/test/libc-tests/tests/newlocale/newlocale_test.c
93
memcpy(loc, str, len);
usr/src/test/libc-tests/tests/stdio/memstream.c
1574
const char str[] = { 'H', 'e', 'l', 'l', 'o', '\0', 'w',
usr/src/test/libc-tests/tests/stdio/memstream.c
1588
if (fwrite(str, sizeof (char), ARRAY_SIZE(str), f) == 0) {
usr/src/test/libc-tests/tests/stdio/memstream.c
725
char *str;
usr/src/test/libc-tests/tests/stdio/memstream.c
727
if ((str = strdup(fmemopen_str1)) == NULL) {
usr/src/test/libc-tests/tests/stdio/memstream.c
732
f = fmemopen(str, len, "w");
usr/src/test/libc-tests/tests/stdio/memstream.c
735
free(str);
usr/src/test/libc-tests/tests/stdio/memstream.c
742
free(str);
usr/src/test/libc-tests/tests/stdio/memstream.c
752
char *str;
usr/src/test/libc-tests/tests/stdio/memstream.c
754
if ((str = strdup(fmemopen_str1)) == NULL) {
usr/src/test/libc-tests/tests/stdio/memstream.c
759
f = fmemopen(str, len, "w+");
usr/src/test/libc-tests/tests/stdio/memstream.c
762
free(str);
usr/src/test/libc-tests/tests/stdio/memstream.c
769
free(str);
usr/src/test/libc-tests/tests/stdio/memstream.c
779
char *str;
usr/src/test/libc-tests/tests/stdio/memstream.c
781
if ((str = strdup(fmemopen_str1)) == NULL) {
usr/src/test/libc-tests/tests/stdio/memstream.c
786
f = fmemopen(str, len, "a");
usr/src/test/libc-tests/tests/stdio/memstream.c
789
free(str);
usr/src/test/libc-tests/tests/stdio/memstream.c
796
free(str);
usr/src/test/libc-tests/tests/stdio/memstream.c
806
char *str;
usr/src/test/libc-tests/tests/stdio/memstream.c
808
if ((str = strdup(fmemopen_str1)) == NULL) {
usr/src/test/libc-tests/tests/stdio/memstream.c
813
f = fmemopen(str, len, "a+");
usr/src/test/libc-tests/tests/stdio/memstream.c
816
free(str);
usr/src/test/libc-tests/tests/stdio/memstream.c
823
free(str);
usr/src/test/libc-tests/tests/stdio/memstream.c
833
char *str;
usr/src/test/libc-tests/tests/stdio/memstream.c
835
if ((str = strdup(fmemopen_str1)) == NULL) {
usr/src/test/libc-tests/tests/stdio/memstream.c
839
str[8] = '\0';
usr/src/test/libc-tests/tests/stdio/memstream.c
841
f = fmemopen(str, len, "a");
usr/src/test/libc-tests/tests/stdio/memstream.c
844
free(str);
usr/src/test/libc-tests/tests/stdio/memstream.c
851
free(str);
usr/src/test/libc-tests/tests/stdio/memstream.c
861
char *str;
usr/src/test/libc-tests/tests/stdio/memstream.c
863
if ((str = strdup(fmemopen_str1)) == NULL) {
usr/src/test/libc-tests/tests/stdio/memstream.c
867
str[12] = '\0';
usr/src/test/libc-tests/tests/stdio/memstream.c
869
f = fmemopen(str, len, "a+");
usr/src/test/libc-tests/tests/stdio/memstream.c
872
free(str);
usr/src/test/libc-tests/tests/stdio/memstream.c
879
free(str);
usr/src/test/libc-tests/tests/wcsncasecmp.c
42
const char *str = "kefka";
usr/src/test/libc-tests/tests/wcsncasecmp.c
48
size_t len = strlen(str);
usr/src/test/libc-tests/tests/wcsncasecmp.c
58
ret = mbstowcs(a, str, len);
usr/src/test/libc-tests/tests/wcsncasecmp.c
60
ret = mbstowcs(b, str, len);
usr/src/test/libsec-tests/cmd/acl_from_text.c
107
str = strdup(argv[i]);
usr/src/test/libsec-tests/cmd/acl_from_text.c
108
if (str == NULL) {
usr/src/test/libsec-tests/cmd/acl_from_text.c
112
for (p = str; *p != '\0'; p++) {
usr/src/test/libsec-tests/cmd/acl_from_text.c
117
err = acl_fromtext(str, &aclp);
usr/src/test/libsec-tests/cmd/acl_from_text.c
120
str, acl_strerror(err));
usr/src/test/libsec-tests/cmd/acl_from_text.c
125
fprintf(stderr, "compare failed on: %s\n", str);
usr/src/test/libsec-tests/cmd/acl_from_text.c
99
char *str;
usr/src/test/libsec-tests/cmd/acl_to_text.c
37
char *str;
usr/src/test/libsec-tests/cmd/acl_to_text.c
60
str = acl_totext(aclp, flags);
usr/src/test/libsec-tests/cmd/acl_to_text.c
61
if (str == NULL) {
usr/src/test/libsec-tests/cmd/acl_to_text.c
70
for (p = str; *p != '\0'; p++) {
usr/src/test/libsec-tests/cmd/acl_to_text.c
75
printf("%s\n", str);
usr/src/test/libsec-tests/cmd/acl_to_text.c
76
free(str);
usr/src/test/nvme-tests/tests/ioctl/lock-order.c
107
const char *str;
usr/src/test/nvme-tests/tests/ioctl/lock-order.c
112
str = "WRITE";
usr/src/test/nvme-tests/tests/ioctl/lock-order.c
116
str = "READ";
usr/src/test/nvme-tests/tests/ioctl/lock-order.c
126
exp_level, str);
usr/src/test/nvme-tests/tests/ioctl/lock-order.c
166
const char *str;
usr/src/test/nvme-tests/tests/ioctl/lock-order.c
171
str = "ctrl";
usr/src/test/nvme-tests/tests/ioctl/lock-order.c
175
str = "ns";
usr/src/test/nvme-tests/tests/ioctl/lock-order.c
185
exp_ent, str);
usr/src/test/nvme-tests/tests/libnvme/sctostr.c
164
const char *str = nvme_scttostr(NULL, test->st_code);
usr/src/test/nvme-tests/tests/libnvme/sctostr.c
165
if (strcmp(str, test->st_str) != 0) {
usr/src/test/nvme-tests/tests/libnvme/sctostr.c
167
"not %s", test->st_code, str, test->st_str);
usr/src/test/nvme-tests/tests/libnvme/sctostr.c
179
const char *str = nvme_sctostr(NULL, test->sc_csi, test->sc_sct,
usr/src/test/nvme-tests/tests/libnvme/sctostr.c
181
if (strcmp(str, test->sc_str) != 0) {
usr/src/test/nvme-tests/tests/libnvme/sctostr.c
184
test->sc_sc, str, test->sc_str);
usr/src/test/os-tests/tests/hexdump/hexdump_basic.c
183
cb(void *arg, uint64_t addr __unused, const char *str, size_t l)
usr/src/test/os-tests/tests/hexdump/hexdump_basic.c
187
ilstr_append_str(i, str);
usr/src/test/util-tests/tests/ctf/test-sou.c
131
uint64_t str:8;
usr/src/test/util-tests/tests/libcustr/custr_remove.c
24
expect(const char *var, custr_t *cu, const char *str, const char *file,
usr/src/test/util-tests/tests/libcustr/custr_remove.c
27
if (strcmp(custr_cstr(cu), str) == 0)
usr/src/test/util-tests/tests/libcustr/custr_remove.c
33
var, str, custr_cstr(cu), str);
usr/src/test/util-tests/tests/libcustr/custr_trunc.c
25
expect(const char *var, custr_t *cu, const char *str, const char *file,
usr/src/test/util-tests/tests/libcustr/custr_trunc.c
28
if (strcmp(custr_cstr(cu), str) == 0)
usr/src/test/util-tests/tests/libcustr/custr_trunc.c
34
var, str, custr_cstr(cu), str);
usr/src/test/util-tests/tests/libjedec/hex2spd/libjedec_hex2spd.c
209
char *str;
usr/src/test/util-tests/tests/libjedec/hex2spd/libjedec_hex2spd.c
249
nvret = nvlist_lookup_string(nvl, spd->hs_key, &str);
usr/src/test/util-tests/tests/libjedec/hex2spd/libjedec_hex2spd.c
255
} else if (strcmp(str, spd->hs_val.hs_str) != 0) {
usr/src/test/util-tests/tests/libjedec/hex2spd/libjedec_hex2spd.c
258
spd->hs_key, str, spd->hs_val.hs_str);
usr/src/test/util-tests/tests/smbios/smbios.c
116
smbios_test_table_append_string(smbios_test_table_t *table, const char *str)
usr/src/test/util-tests/tests/smbios/smbios.c
118
size_t len = strlen(str) + 1;
usr/src/test/util-tests/tests/smbios/smbios.c
119
(void) smbios_test_table_append_common(table, str, len);
usr/src/test/util-tests/tests/smbios/smbios_test_strprop.c
28
smb_strprop_t str;
usr/src/test/util-tests/tests/smbios/smbios_test_strprop.c
30
str.smbstrp_hdr.smbh_type = SMB_TYPE_STRPROP;
usr/src/test/util-tests/tests/smbios/smbios_test_strprop.c
31
str.smbstrp_hdr.smbh_len = sizeof (str);
usr/src/test/util-tests/tests/smbios/smbios_test_strprop.c
32
str.smbstrp_prop_id = htole16(SMB_STRP_UEFI_DEVPATH);
usr/src/test/util-tests/tests/smbios/smbios_test_strprop.c
33
str.smbstrp_prop_val = 1;
usr/src/test/util-tests/tests/smbios/smbios_test_strprop.c
34
str.smbstrp_phdl = htole16(smbios_strprop_hdl);
usr/src/test/util-tests/tests/smbios/smbios_test_strprop.c
36
(void) smbios_test_table_append(table, &str, sizeof (str));
usr/src/test/util-tests/tests/smbios/smbios_test_strprop.c
47
smb_strprop_t str;
usr/src/test/util-tests/tests/smbios/smbios_test_strprop.c
49
str.smbstrp_hdr.smbh_type = SMB_TYPE_STRPROP;
usr/src/test/util-tests/tests/smbios/smbios_test_strprop.c
50
str.smbstrp_hdr.smbh_len = sizeof (str);
usr/src/test/util-tests/tests/smbios/smbios_test_strprop.c
51
str.smbstrp_prop_id = htole16(SMB_STRP_UEFI_DEVPATH);
usr/src/test/util-tests/tests/smbios/smbios_test_strprop.c
52
str.smbstrp_prop_val = 0x23;
usr/src/test/util-tests/tests/smbios/smbios_test_strprop.c
53
str.smbstrp_phdl = htole16(smbios_strprop_hdl);
usr/src/test/util-tests/tests/smbios/smbios_test_strprop.c
55
(void) smbios_test_table_append(table, &str, sizeof (str));
usr/src/test/util-tests/tests/smbios/smbios_test_strprop.c
80
smb_strprop_t str;
usr/src/test/util-tests/tests/smbios/smbios_test_strprop.c
83
str.smbstrp_hdr.smbh_type = SMB_TYPE_STRPROP;
usr/src/test/util-tests/tests/smbios/smbios_test_strprop.c
84
str.smbstrp_hdr.smbh_len = sizeof (str) + 1;
usr/src/test/util-tests/tests/smbios/smbios_test_strprop.c
85
str.smbstrp_prop_id = htole16(0);
usr/src/test/util-tests/tests/smbios/smbios_test_strprop.c
86
str.smbstrp_prop_val = 0;
usr/src/test/util-tests/tests/smbios/smbios_test_strprop.c
87
str.smbstrp_phdl = htole16(0);
usr/src/test/util-tests/tests/smbios/smbios_test_strprop.c
93
(void) smbios_test_table_append(table, &str, sizeof (str));
usr/src/tools/ctf/common/memory.c
67
xstrdup(const char *str)
usr/src/tools/ctf/common/memory.c
71
if ((newstr = strdup(str)) == NULL)
usr/src/tools/ctf/common/memory.c
78
xstrndup(char *str, size_t len)
usr/src/tools/ctf/common/memory.c
85
(void) strncpy(newstr, str, len);
usr/src/tools/install.bin/install.bin.c
131
find_basename(const char *str)
usr/src/tools/install.bin/install.bin.c
136
len = strlen(str);
usr/src/tools/install.bin/install.bin.c
139
if (str[i] == '/')
usr/src/tools/install.bin/install.bin.c
140
return ((char *)(str + i + 1));
usr/src/tools/install.bin/install.bin.c
141
return ((char *)str);
usr/src/tools/install.bin/install.bin.c
51
static char *find_basename(const char *str);
usr/src/tools/protocmp/list.c
108
hash(const char *str)
usr/src/tools/protocmp/list.c
112
for (i = 0; *str != '\0'; )
usr/src/tools/protocmp/list.c
113
i += *str++;
usr/src/tools/protocmp/list.h
149
extern unsigned int hash(const char *str);
usr/src/tools/protocmp/proto_list.c
54
is_num(const char *str)
usr/src/tools/protocmp/proto_list.c
57
int len = strlen(str);
usr/src/tools/protocmp/proto_list.c
63
if (!isdigit(str[i]))
usr/src/tools/sgs/sgsmsg/sgsmsg.c
1029
str = "msgstr\t\"\"\n\n";
usr/src/tools/sgs/sgsmsg/sgsmsg.c
1031
str = "\n";
usr/src/tools/sgs/sgsmsg/sgsmsg.c
1033
if (fprintf(fdmsgs, str) < 0) {
usr/src/tools/sgs/sgsmsg/sgsmsg.c
679
char defn[PATH_MAX], * _defn, * str;
usr/src/tools/smatch/src/check_64bit_shift.c
27
char *str;
usr/src/tools/smatch/src/check_64bit_shift.c
48
str = expr_to_str(expr->right);
usr/src/tools/smatch/src/check_64bit_shift.c
49
sm_warning("should '%s' be a 64 bit type?", str);
usr/src/tools/smatch/src/check_64bit_shift.c
50
free_string(str);
usr/src/tools/smatch/src/check_allocating_enough_data.c
26
char *str;
usr/src/tools/smatch/src/check_allocating_enough_data.c
47
str = expr_to_str(expr->left);
usr/src/tools/smatch/src/check_allocating_enough_data.c
48
sm_error("not allocating enough for = '%s' %d vs %s", str, bytes, sval_to_str(sval));
usr/src/tools/smatch/src/check_allocating_enough_data.c
49
free_string(str);
usr/src/tools/smatch/src/check_array_condition.c
33
char *str;
usr/src/tools/smatch/src/check_array_condition.c
43
str = expr_to_str(expr);
usr/src/tools/smatch/src/check_array_condition.c
44
sm_warning("this array is probably non-NULL. '%s'", str);
usr/src/tools/smatch/src/check_array_condition.c
45
free_string(str);
usr/src/tools/smatch/src/check_assign_vs_compare.c
33
char *str;
usr/src/tools/smatch/src/check_assign_vs_compare.c
46
str = expr_to_str(right);
usr/src/tools/smatch/src/check_assign_vs_compare.c
47
sm_warning("was '== %s' instead of '='", str);
usr/src/tools/smatch/src/check_assign_vs_compare.c
48
free_string(str);
usr/src/tools/smatch/src/check_debug.c
706
char *cont, *name, *str;
usr/src/tools/smatch/src/check_debug.c
711
str = get_container_name(container, x);
usr/src/tools/smatch/src/check_debug.c
714
sm_msg("container: '%s' vs '%s' --> '%s'", cont, name, str);
usr/src/tools/smatch/src/check_debug.c
721
struct expression *arg, *str, *new;
usr/src/tools/smatch/src/check_debug.c
724
str = get_argument_from_call_expr(expr->args, 0);
usr/src/tools/smatch/src/check_debug.c
726
if (!arg || !str)
usr/src/tools/smatch/src/check_debug.c
729
if (str->type != EXPR_STRING)
usr/src/tools/smatch/src/check_debug.c
732
new = gen_expression_from_key(arg, str->string->data);
usr/src/tools/smatch/src/check_debug.c
736
sm_msg("str = '%s', arg = '%s' expr = '%s'", str->string->data, name, new_name);
usr/src/tools/smatch/src/check_debug.h
59
static inline long long __smatch_type_rl_helper(long long type, const char *str, ...)
usr/src/tools/smatch/src/check_debug.h
78
static inline void __smatch_expr(const char *str, void *p){}
usr/src/tools/smatch/src/check_impossible_mask.c
111
str = expr_to_str(expr);
usr/src/tools/smatch/src/check_impossible_mask.c
112
sm_warning("masked condition '%s' is always %s.", str,
usr/src/tools/smatch/src/check_impossible_mask.c
114
free_string(str);
usr/src/tools/smatch/src/check_impossible_mask.c
84
char *str;
usr/src/tools/smatch/src/check_signed_integer_overflow_check.c
70
char *str;
usr/src/tools/smatch/src/check_signed_integer_overflow_check.c
94
str = expr_to_str(expr);
usr/src/tools/smatch/src/check_signed_integer_overflow_check.c
95
sm_warning("potential negative subtraction from max '%s'", str);
usr/src/tools/smatch/src/check_signed_integer_overflow_check.c
96
free_string(str);
usr/src/tools/smatch/src/compat-solaris.c
10
long double string_to_ld(const char *str, char **endptr)
usr/src/tools/smatch/src/compat-solaris.c
19
string_to_decimal ((char **)&str, INT_MAX, 0,
usr/src/tools/smatch/src/compat-solaris.c
21
if (endptr) *endptr = (char *)str;
usr/src/tools/smatch/src/compile-i386.c
215
#define REGINFO(nr, str, conflicts...) [nr] = { .name = str, .aliases = { nr , conflicts } }
usr/src/tools/smatch/src/compile-i386.c
482
static inline void push_cstring(struct function *f, struct string *str,
usr/src/tools/smatch/src/compile-i386.c
488
atom->string = str;
usr/src/tools/smatch/src/example.c
1218
static const char *replace_asm_args(const char *str, struct asm_arg *args, int nr)
usr/src/tools/smatch/src/example.c
1224
char c = *str;
usr/src/tools/smatch/src/example.c
1228
str++;
usr/src/tools/smatch/src/example.c
1231
if (*str == '%') {
usr/src/tools/smatch/src/example.c
1232
str++;
usr/src/tools/smatch/src/example.c
1236
replace_asm_percent(&str, &p, args, nr);
usr/src/tools/smatch/src/example.c
1239
replace_asm_named(&str, &p, args, nr);
usr/src/tools/smatch/src/example.c
1328
const char *str = insn->string;
usr/src/tools/smatch/src/example.c
1335
str = replace_asm_args(str, asm_arguments, arg - asm_arguments);
usr/src/tools/smatch/src/example.c
1337
output_insn(state, "%s", str);
usr/src/tools/smatch/src/example.c
800
const char *str;
usr/src/tools/smatch/src/example.c
812
str = show_op(state, op);
usr/src/tools/smatch/src/example.c
819
str = show_op(state, op);
usr/src/tools/smatch/src/example.c
822
return str;
usr/src/tools/smatch/src/example.c
849
const char *str = show_op(state, op);
usr/src/tools/smatch/src/example.c
851
return str;
usr/src/tools/smatch/src/expression.c
251
const char *str = token->number;
usr/src/tools/smatch/src/expression.c
260
value = parse_num(str, &end);
usr/src/tools/smatch/src/expression.c
261
if (end == str)
usr/src/tools/smatch/src/expression.c
288
if (str[0] != '0' && !want_unsigned)
usr/src/tools/smatch/src/expression.c
349
expr->fvalue = string_to_ld(str, &end);
usr/src/tools/smatch/src/expression.c
350
if (str == end)
usr/src/tools/smatch/src/lib.c
1545
static int endswith(const char *str, const char *suffix)
usr/src/tools/smatch/src/lib.c
1547
const char *found = strstr(str, suffix);
usr/src/tools/smatch/src/lib.c
500
static int apply_mask(unsigned long *val, const char *str, unsigned len, const struct mask_map *map, int neg)
usr/src/tools/smatch/src/lib.c
505
if (!strncmp(name, str, len) && !name[len]) {
usr/src/tools/smatch/src/pre-process.c
109
static void replace_with_string(struct token *token, const char *str)
usr/src/tools/smatch/src/pre-process.c
111
int size = strlen(str) + 1;
usr/src/tools/smatch/src/pre-process.c
115
memcpy(s->data, str, size);
usr/src/tools/smatch/src/pre-process.c
1218
token->count.str = token->count.vararg = 0;
usr/src/tools/smatch/src/pre-process.c
1345
n = ++count->str;
usr/src/tools/smatch/src/pre-process.c
324
struct token *str;
usr/src/tools/smatch/src/pre-process.c
358
args[count].n_str = p->str;
usr/src/tools/smatch/src/pre-process.c
374
args[count].n_str = p->str;
usr/src/tools/smatch/src/pre-process.c
471
args[i].str = stringify(arg);
usr/src/tools/smatch/src/pre-process.c
688
arg = args[body->argnum].str;
usr/src/tools/smatch/src/smatch.c
158
char *str;
usr/src/tools/smatch/src/smatch.c
162
str = malloc(strlen(option) + 3);
usr/src/tools/smatch/src/smatch.c
163
snprintf(str, strlen(option) + 3, "--%s", option);
usr/src/tools/smatch/src/smatch.c
164
tmp = str;
usr/src/tools/smatch/src/smatch.c
170
if (!strcmp(arg, str))
usr/src/tools/smatch/src/smatch.c
172
free(str);
usr/src/tools/smatch/src/smatch.h
1189
int list_has_string(struct string_list *str_list, const char *str);
usr/src/tools/smatch/src/smatch.h
1190
int insert_string(struct string_list **str_list, const char *str);
usr/src/tools/smatch/src/smatch.h
1284
mtag_t str_to_mtag(const char *str);
usr/src/tools/smatch/src/smatch.h
381
char *alloc_string(const char *str);
usr/src/tools/smatch/src/smatch.h
382
char *alloc_string_newline(const char *str);
usr/src/tools/smatch/src/smatch.h
383
void free_string(char *str);
usr/src/tools/smatch/src/smatch.h
385
void remove_parens(char *str);
usr/src/tools/smatch/src/smatch.h
924
char *escape_newlines(const char *str);
usr/src/tools/smatch/src/smatch_common_functions.c
24
struct expression *str;
usr/src/tools/smatch/src/smatch_common_functions.c
27
str = get_argument_from_call_expr(call->args, 0);
usr/src/tools/smatch/src/smatch_common_functions.c
28
if (get_implied_strlen(str, rl) && sval_is_positive(rl_min(*rl))) {
usr/src/tools/smatch/src/smatch_common_functions.c
33
max = get_array_size_bytes_max(str);
usr/src/tools/smatch/src/smatch_constraints.c
220
static int constraint_str_to_id(const char *str)
usr/src/tools/smatch/src/smatch_constraints.c
225
"select id from constraints where str = '%q'", str);
usr/src/tools/smatch/src/smatch_constraints.c
232
char **str = _str;
usr/src/tools/smatch/src/smatch_constraints.c
234
*str = alloc_string(argv[0]);
usr/src/tools/smatch/src/smatch_constraints.c
240
char *str = NULL;
usr/src/tools/smatch/src/smatch_constraints.c
242
run_sql(save_constraint_str, &str,
usr/src/tools/smatch/src/smatch_constraints.c
245
return str;
usr/src/tools/smatch/src/smatch_db.c
100
return alloc_sname(str);
usr/src/tools/smatch/src/smatch_db.c
2444
static char *get_next_string(char **str)
usr/src/tools/smatch/src/smatch_db.c
2448
char *p = *str;
usr/src/tools/smatch/src/smatch_db.c
2470
**str = '\0';
usr/src/tools/smatch/src/smatch_db.c
2483
*str = p;
usr/src/tools/smatch/src/smatch_db.c
80
char *escape_newlines(const char *str)
usr/src/tools/smatch/src/smatch_db.c
86
for (i = 0, j = 0; str[i] != '\0' && j != sizeof(buf); i++, j++) {
usr/src/tools/smatch/src/smatch_db.c
87
if (str[i] != '\r' && str[i] != '\n') {
usr/src/tools/smatch/src/smatch_db.c
88
buf[j] = str[i];
usr/src/tools/smatch/src/smatch_expressions.c
148
struct expression *string_expression(char *str)
usr/src/tools/smatch/src/smatch_expressions.c
154
len = strlen(str) + 1;
usr/src/tools/smatch/src/smatch_expressions.c
158
memcpy(string->data, str, len);
usr/src/tools/smatch/src/smatch_extra.h
219
struct expression *string_expression(char *str);
usr/src/tools/smatch/src/smatch_function_hashtable.h
26
char *str = (char *)ky;
usr/src/tools/smatch/src/smatch_function_hashtable.h
30
while ((c = *str++))
usr/src/tools/smatch/src/smatch_function_hooks.c
394
char *str;
usr/src/tools/smatch/src/smatch_function_hooks.c
440
str = expr_to_chunk_sym_vsl(arg, NULL, NULL);
usr/src/tools/smatch/src/smatch_function_hooks.c
441
if (!str)
usr/src/tools/smatch/src/smatch_function_hooks.c
443
free_string(str);
usr/src/tools/smatch/src/smatch_function_hooks.c
527
char *str;
usr/src/tools/smatch/src/smatch_function_hooks.c
532
str = strstr(ret_string, "==$");
usr/src/tools/smatch/src/smatch_function_hooks.c
533
if (!str)
usr/src/tools/smatch/src/smatch_function_hooks.c
535
str += 3;
usr/src/tools/smatch/src/smatch_function_hooks.c
536
param = strtoll(str, NULL, 10);
usr/src/tools/smatch/src/smatch_helper.c
31
char *alloc_string(const char *str)
usr/src/tools/smatch/src/smatch_helper.c
35
if (!str)
usr/src/tools/smatch/src/smatch_helper.c
37
tmp = malloc(strlen(str) + 1);
usr/src/tools/smatch/src/smatch_helper.c
38
strcpy(tmp, str);
usr/src/tools/smatch/src/smatch_helper.c
383
char str[VAR_LEN];
usr/src/tools/smatch/src/smatch_helper.c
399
strncpy(buf, cached[i].str, len);
usr/src/tools/smatch/src/smatch_helper.c
415
strncpy(cached[idx].str, buf, VAR_LEN);
usr/src/tools/smatch/src/smatch_helper.c
42
char *alloc_string_newline(const char *str)
usr/src/tools/smatch/src/smatch_helper.c
47
if (!str)
usr/src/tools/smatch/src/smatch_helper.c
49
len = strlen(str);
usr/src/tools/smatch/src/smatch_helper.c
51
snprintf(tmp, len + 2, "%s\n", str);
usr/src/tools/smatch/src/smatch_helper.c
55
void free_string(char *str)
usr/src/tools/smatch/src/smatch_helper.c
57
free(str);
usr/src/tools/smatch/src/smatch_helper.c
60
void remove_parens(char *str)
usr/src/tools/smatch/src/smatch_helper.c
64
dst = src = str;
usr/src/tools/smatch/src/smatch_ignore.c
102
str = show_ident(token->ident);
usr/src/tools/smatch/src/smatch_ignore.c
105
set_state_stree_perm(&ignored_from_file, owner, str, NULL, &ignore);
usr/src/tools/smatch/src/smatch_ignore.c
82
const char *name, *str;
usr/src/tools/smatch/src/smatch_kernel_user_data.c
1055
char *str;
usr/src/tools/smatch/src/smatch_kernel_user_data.c
1062
str = get_user_rl_str(arg, type);
usr/src/tools/smatch/src/smatch_kernel_user_data.c
1063
if (!str)
usr/src/tools/smatch/src/smatch_kernel_user_data.c
1066
sql_insert_caller_info(expr, USER_DATA, i, "$", str);
usr/src/tools/smatch/src/smatch_kernel_user_data.c
327
struct string *str;
usr/src/tools/smatch/src/smatch_kernel_user_data.c
334
str = expr->string;
usr/src/tools/smatch/src/smatch_kernel_user_data.c
335
if (str->length < 3)
usr/src/tools/smatch/src/smatch_kernel_user_data.c
338
if (str->data[str->length - 3] == '%' &&
usr/src/tools/smatch/src/smatch_kernel_user_data.c
339
str->data[str->length - 2] == 'n')
usr/src/tools/smatch/src/smatch_kernel_user_data.c
346
struct expression *str, *format, *arg;
usr/src/tools/smatch/src/smatch_kernel_user_data.c
351
str = get_argument_from_call_expr(expr->args, 0);
usr/src/tools/smatch/src/smatch_kernel_user_data.c
352
if (is_dev_attr_name(str))
usr/src/tools/smatch/src/smatch_mtag.c
287
char *str;
usr/src/tools/smatch/src/smatch_mtag.c
300
str = expr_to_str(expr);
usr/src/tools/smatch/src/smatch_mtag.c
301
snprintf(buf, sizeof(buf), "%lld %d %s", tag, lines_from_start, str);
usr/src/tools/smatch/src/smatch_mtag.c
302
free_string(str);
usr/src/tools/smatch/src/smatch_mtag.c
53
mtag_t str_to_mtag(const char *str)
usr/src/tools/smatch/src/smatch_mtag.c
59
len = strlen(str);
usr/src/tools/smatch/src/smatch_mtag.c
60
md5_calc(c, str, len);
usr/src/tools/smatch/src/smatch_ranges.c
209
static int str_to_comparison_arg_helper(const char *str,
usr/src/tools/smatch/src/smatch_ranges.c
214
const char *c = str;
usr/src/tools/smatch/src/smatch_ranges.c
288
int str_to_comparison_arg(const char *str, struct expression *call, int *comparison, struct expression **arg)
usr/src/tools/smatch/src/smatch_ranges.c
291
if (!*str)
usr/src/tools/smatch/src/smatch_ranges.c
293
if (*str == '[')
usr/src/tools/smatch/src/smatch_ranges.c
295
str++;
usr/src/tools/smatch/src/smatch_ranges.c
297
return str_to_comparison_arg_helper(str, call, comparison, arg, NULL);
usr/src/tools/smatch/src/smatch_ranges.c
533
static void str_to_rl_helper(struct expression *call, struct symbol *type, const char *str, const char **endp, struct range_list **rl)
usr/src/tools/smatch/src/smatch_ranges.c
542
c = str;
usr/src/tools/smatch/src/smatch_ranges.c
577
sm_debug("XXX: trouble parsing %s c = %s", str, c);
usr/src/tools/smatch/src/smatch_slist.c
275
char *alloc_sname(const char *str)
usr/src/tools/smatch/src/smatch_slist.c
279
if (!str)
usr/src/tools/smatch/src/smatch_slist.c
281
tmp = __alloc_sname(strlen(str) + 1);
usr/src/tools/smatch/src/smatch_slist.c
282
strcpy(tmp, str);
usr/src/tools/smatch/src/smatch_slist.h
25
char *alloc_sname(const char *str);
usr/src/tools/smatch/src/smatch_string_list.c
20
int list_has_string(struct string_list *str_list, const char *str)
usr/src/tools/smatch/src/smatch_string_list.c
25
if (!str)
usr/src/tools/smatch/src/smatch_string_list.c
29
cmp = strcmp(tmp, str);
usr/src/tools/smatch/src/smatch_strings.c
38
char *str = NULL;
usr/src/tools/smatch/src/smatch_strings.c
40
run_sql(get_str, &str,
usr/src/tools/smatch/src/smatch_strings.c
44
if ((unsigned long)str == -1UL)
usr/src/tools/smatch/src/smatch_strings.c
46
return str;
usr/src/tools/smatch/src/smatch_strings.c
51
char *str;
usr/src/tools/smatch/src/smatch_strings.c
55
str = get_string_from_mtag(tag);
usr/src/tools/smatch/src/smatch_strings.c
56
if (!str)
usr/src/tools/smatch/src/smatch_strings.c
58
return string_expression(str);
usr/src/tools/smatch/src/smatch_strlen.c
114
str = get_argument_from_call_expr(left->args, 0);
usr/src/tools/smatch/src/smatch_strlen.c
118
str = get_argument_from_call_expr(right->args, 0);
usr/src/tools/smatch/src/smatch_strlen.c
162
set_true_false_states_expr(my_strlen_id, str, true_state, false_state);
usr/src/tools/smatch/src/smatch_strlen.c
75
struct expression *str;
usr/src/tools/smatch/src/smatch_strlen.c
81
str = get_argument_from_call_expr(right->args, 0);
usr/src/tools/smatch/src/smatch_strlen.c
92
set_state_expr(my_equiv_id, str, state);
usr/src/tools/smatch/src/smatch_strlen.c
99
struct expression *str = NULL;
usr/src/tools/smatch/src/symbol.c
711
#define __INIT_IDENT(str, res) { .len = sizeof(str)-1, .name = str, .reserved = res }
usr/src/tools/smatch/src/symbol.c
712
#define __IDENT(n,str,res) \
usr/src/tools/smatch/src/symbol.c
713
struct ident n = __INIT_IDENT(str,res)
usr/src/tools/smatch/src/symbol.c
721
#define __IDENT(n,str,res) \
usr/src/tools/smatch/src/symbol.h
292
#define __IDENT(n,str,res) \
usr/src/tools/smatch/src/test-dissect.c
18
static char str[3];
usr/src/tools/smatch/src/test-dissect.c
24
str[0] = U(U_R_AOF);
usr/src/tools/smatch/src/test-dissect.c
25
str[1] = U(U_R_VAL);
usr/src/tools/smatch/src/test-dissect.c
26
str[2] = U(U_R_PTR);
usr/src/tools/smatch/src/test-dissect.c
29
return str;
usr/src/tools/smatch/src/token.h
178
unsigned str:10;
usr/src/tools/smatch/src/utils.c
24
char *str;
usr/src/tools/smatch/src/utils.c
31
str = __alloc_bytes(n);
usr/src/tools/smatch/src/utils.c
32
vsnprintf(str, n, fmt, ap);
usr/src/tools/smatch/src/utils.c
34
return str;
usr/src/tools/smatch/src/utils.c
40
char *str;
usr/src/tools/smatch/src/utils.c
43
str = xvasprintf(fmt, ap);
usr/src/tools/smatch/src/utils.c
46
return str;
usr/src/tools/smatch/src/validation/call-inlined.c
12
static inline const char *lstrip(const char *str)
usr/src/tools/smatch/src/validation/call-inlined.c
14
return str + 1;
usr/src/tools/smatch/src/validation/preprocessor/builtin.c
4
const char str[] = "__CHECKER__";
usr/src/tools/smatch/src/validation/sm_array_overflow.c
10
char *str = b;
usr/src/tools/smatch/src/validation/sm_array_overflow.c
18
str4 = str;
usr/src/tools/smatch/src/validation/sm_array_overflow.c
29
str[j] = '\0';
usr/src/tools/smatch/src/validation/sm_overflow6.c
15
if (strlen(str) > 11)
usr/src/tools/smatch/src/validation/sm_overflow6.c
17
snprintf(buf, 11, "%s", str);
usr/src/tools/smatch/src/validation/sm_overflow6.c
18
sprintf(buf1, "%s", str);
usr/src/tools/smatch/src/validation/sm_overflow6.c
5
int snprintf(char *dest, int limit, char *format, char *str);
usr/src/tools/smatch/src/validation/sm_overflow6.c
6
int sprintf(char *dest, char *format, char *str);
usr/src/tools/smatch/src/validation/sm_overflow6.c
8
char *str;
usr/src/tools/smatch/src/validation/sm_strlen.c
1
int strlen(char *str);
usr/src/tools/smatch/src/validation/sm_strlen.c
2
int strcpy(char *str);
usr/src/tools/smatch/src/validation/sm_strlen2.c
1
int strlen(char *str);
usr/src/tools/smatch/src/validation/sm_strlen2.c
2
int strcpy(char *str);
usr/src/tools/smatch/src/validation/sm_strlen3.c
3
int strlen(const char *str);
usr/src/tools/smatch/src/validation/sm_strlen3.c
4
int strnlen(const char *str, int limit);
usr/src/ucbcmd/expr/expr.y
382
static char str[20];
usr/src/ucbcmd/expr/expr.y
392
sp = &str[20];
usr/src/ucbcmd/from/from.c
105
while (*str && *line != ' ' && *line != '\t' && *line != '\n') {
usr/src/ucbcmd/from/from.c
107
if (ch != *str++)
usr/src/ucbcmd/from/from.c
111
return (*str == '\0');
usr/src/ucbcmd/from/from.c
97
match(char *line, char *str)
usr/src/ucbcmd/install.d/install.c
300
atoo(str)
usr/src/ucbcmd/install.d/install.c
301
char *str;
usr/src/ucbcmd/install.d/install.c
305
for (val = 0; isdigit(*str); ++str)
usr/src/ucbcmd/install.d/install.c
306
val = val * 8 + *str - '0';
usr/src/ucbcmd/ls/ls.c
600
savestr(char *str)
usr/src/ucbcmd/ls/ls.c
602
char *cp = malloc(strlen(str) + 1);
usr/src/ucbcmd/ls/ls.c
608
(void) strcpy(cp, str);
usr/src/ucbcmd/mkstr/mkstr.c
268
hashit(char *str, char really, unsigned int fakept)
usr/src/ucbcmd/mkstr/mkstr.c
278
for (cp = str; *cp; )
usr/src/ucbcmd/mkstr/mkstr.c
288
if (strcmp(buf, str) == 0)
usr/src/ucbcmd/mkstr/mkstr.c
297
(void) fwrite(str, sizeof (char), strlen(str) + 1,
usr/src/ucbcmd/mkstr/mkstr.c
73
static int hashit(char *str, char really, unsigned int fakept);
usr/src/ucbcmd/tset/tset.c
1485
putbuf(ptr, str)
usr/src/ucbcmd/tset/tset.c
1487
char *str;
usr/src/ucbcmd/tset/tset.c
1491
while (*str) {
usr/src/ucbcmd/tset/tset.c
1492
switch (*str) {
usr/src/ucbcmd/tset/tset.c
1495
str++;
usr/src/ucbcmd/tset/tset.c
1498
if (*str <= ' ') {
usr/src/ucbcmd/tset/tset.c
1499
(void) sprintf(buf, "\\%03o", *str);
usr/src/ucbcmd/tset/tset.c
1501
str++;
usr/src/ucbcmd/tset/tset.c
1503
*ptr++ = *str++;
usr/src/ucbhead/curses.h
108
#define addstr(str) VOID(waddstr(stdscr, str))
usr/src/ucbhead/curses.h
109
#define getstr(str) VOID(wgetstr(stdscr, str))
usr/src/ucbhead/curses.h
130
#define mvwaddstr(win, y, x, str) VOID(wmove(win, y, x) == ERR? \
usr/src/ucbhead/curses.h
131
ERR:waddstr(win, str))
usr/src/ucbhead/curses.h
132
#define mvwgetstr(win, y, x, str) VOID(wmove(win, y, x) == ERR? \
usr/src/ucbhead/curses.h
133
ERR:wgetstr(win, str))
usr/src/ucbhead/curses.h
141
#define mvaddstr(y, x, str) mvwaddstr(stdscr, y, x, str)
usr/src/ucbhead/curses.h
142
#define mvgetstr(y, x, str) mvwgetstr(stdscr, y, x, str)
usr/src/ucblib/libcurses/addstr.c
29
waddstr(WINDOW *win, char *str)
usr/src/ucblib/libcurses/addstr.c
32
fprintf(outf, "WADDSTR(\"%s\")\n", str);
usr/src/ucblib/libcurses/addstr.c
34
while (*str)
usr/src/ucblib/libcurses/addstr.c
35
if (waddch(win, *str++) == ERR)
usr/src/ucblib/libcurses/getstr.c
30
wgetstr(WINDOW *win, char *str)
usr/src/ucblib/libcurses/getstr.c
32
while ((*str = wgetch(win)) != ERR && *str != '\n')
usr/src/ucblib/libcurses/getstr.c
33
str++;
usr/src/ucblib/libcurses/getstr.c
34
if (*str == ERR) {
usr/src/ucblib/libcurses/getstr.c
35
*str = '\0';
usr/src/ucblib/libcurses/getstr.c
38
*str = '\0';
usr/src/ucblib/libtermcap/termcap.c
345
tdecode(char *str, char **area)
usr/src/ucblib/libtermcap/termcap.c
353
while (((c = *str++) != 0) && c != ':') {
usr/src/ucblib/libtermcap/termcap.c
357
c = *str++ & 037;
usr/src/ucblib/libtermcap/termcap.c
362
c = *str++;
usr/src/ucblib/libtermcap/termcap.c
374
c <<= 3, c |= *str++ - '0';
usr/src/ucblib/libtermcap/termcap.c
375
while (--i && isdigit(*str));
usr/src/ucblib/libtermcap/termcap.c
382
str = *area;
usr/src/ucblib/libtermcap/termcap.c
384
return (str);
usr/src/uts/common/cpr/cpr_dump.c
336
char *str;
usr/src/uts/common/cpr/cpr_dump.c
347
str = "cpr_write_statefile:";
usr/src/uts/common/cpr/cpr_dump.c
349
CPR_DEBUG(CPR_DEBUG7, "%s untag %ld sens pages\n", str, spages);
usr/src/uts/common/cpr/cpr_dump.c
363
"%s cpr_dump_sensitive_kpages() failed!\n", str);
usr/src/uts/common/cpr/cpr_dump.c
373
"%s cpr_dump_regular_pages() failed!\n", str);
usr/src/uts/common/cpr/cpr_dump.c
384
prom_printf("\n%s page count mismatch!\n", str);
usr/src/uts/common/cpr/cpr_main.c
1046
str = " prom time";
usr/src/uts/common/cpr/cpr_main.c
1047
CPR_STAT_EVENT_START_TMZ(str, &pwron_tv);
usr/src/uts/common/cpr/cpr_main.c
1049
CPR_STAT_EVENT_END_TMZ(str, ctp);
usr/src/uts/common/cpr/cpr_main.c
1051
str = " read statefile";
usr/src/uts/common/cpr/cpr_main.c
1052
CPR_STAT_EVENT_START_TMZ(str, ctp);
usr/src/uts/common/cpr/cpr_main.c
1054
CPR_STAT_EVENT_END_TMZ(str, ctp);
usr/src/uts/common/cpr/cpr_main.c
1102
str = "Failed to resume one or more devices.";
usr/src/uts/common/cpr/cpr_main.c
1111
cpr_err(CE_WARN, str);
usr/src/uts/common/cpr/cpr_main.c
1115
cpr_err(CE_PANIC, str);
usr/src/uts/common/cpr/cpr_main.c
1119
cpr_err(CE_WARN, str);
usr/src/uts/common/cpr/cpr_main.c
251
char *str, *able;
usr/src/uts/common/cpr/cpr_main.c
255
str = "cpr_log_status";
usr/src/uts/common/cpr/cpr_main.c
267
"status, error %d\n", str, refstr_value(mntpt),
usr/src/uts/common/cpr/cpr_main.c
276
str, refstr_value(mntpt), status);
usr/src/uts/common/cpr/cpr_main.c
296
str, refstr_value(mntpt), able, error);
usr/src/uts/common/cpr/cpr_main.c
302
str, refstr_value(mntpt), able);
usr/src/uts/common/cpr/cpr_main.c
851
char *str;
usr/src/uts/common/cpr/cpr_misc.c
451
char *str;
usr/src/uts/common/cpr/cpr_misc.c
459
str = "\n-->Retrying statefile allocation...";
usr/src/uts/common/cpr/cpr_misc.c
461
prom_printf(str);
usr/src/uts/common/cpr/cpr_misc.c
602
char *str, *est_fmt;
usr/src/uts/common/cpr/cpr_misc.c
613
str = "cpr_statefile_ok:";
usr/src/uts/common/cpr/cpr_misc.c
667
CPR_DEBUG(CPR_DEBUG1, est_fmt, str, "", size, ksize);
usr/src/uts/common/cpr/cpr_misc.c
670
CPR_DEBUG(CPR_DEBUG1, est_fmt, str, "no ",
usr/src/uts/common/cpr/cpr_misc.c
691
"space %lu\n", str, size, space);
usr/src/uts/common/cpr/cpr_misc.c
725
"i_size %lld\n", str, size, isize);
usr/src/uts/common/cpr/cpr_misc.c
771
char *str;
usr/src/uts/common/cpr/cpr_misc.c
778
str = "write";
usr/src/uts/common/cpr/cpr_misc.c
780
str = "fsync";
usr/src/uts/common/cpr/cpr_misc.c
786
str, rc, cpr_default_path);
usr/src/uts/common/dtrace/dcpc.c
213
char *str, *end, *p;
usr/src/uts/common/dtrace/dcpc.c
226
p = str = kmem_alloc(len + 1, KM_SLEEP);
usr/src/uts/common/dtrace/dcpc.c
227
(void) strcpy(str, desc->dtpd_name);
usr/src/uts/common/dtrace/dcpc.c
235
if (str[i] == '-')
usr/src/uts/common/dtrace/dcpc.c
236
str[i] = '\0';
usr/src/uts/common/dtrace/dcpc.c
327
kmem_free(str, len + 1);
usr/src/uts/common/dtrace/dtrace.c
10364
dtrace_format_add(dtrace_state_t *state, char *str)
usr/src/uts/common/dtrace/dtrace.c
10367
uint16_t ndx, len = strlen(str) + 1;
usr/src/uts/common/dtrace/dtrace.c
10370
bcopy(str, fmt, len);
usr/src/uts/common/dtrace/dtrace.c
10551
char *str = (char *)(uintptr_t)act->dtad_arg;
usr/src/uts/common/dtrace/dtrace.c
10553
ASSERT((str != NULL && (uintptr_t)str >= KERNELBASE) ||
usr/src/uts/common/dtrace/dtrace.c
10554
(str == NULL && act->dtad_kind == DTRACEACT_PRINTA));
usr/src/uts/common/dtrace/dtrace.c
10556
if (str != NULL)
usr/src/uts/common/dtrace/dtrace.c
10557
kmem_free(str, strlen(str) + 1);
usr/src/uts/common/dtrace/dtrace.c
12605
dtrace_dof_error(dof_hdr_t *dof, const char *str)
usr/src/uts/common/dtrace/dtrace.c
12608
cmn_err(CE_WARN, "failed to process DOF: %s", str);
usr/src/uts/common/dtrace/dtrace.c
12611
dtrace_errdebug(str);
usr/src/uts/common/dtrace/dtrace.c
12809
uintptr_t str;
usr/src/uts/common/dtrace/dtrace.c
12833
str = daddr + strtab->dofs_offset;
usr/src/uts/common/dtrace/dtrace.c
12842
(char *)(str + probe->dofp_provider),
usr/src/uts/common/dtrace/dtrace.c
12850
(void) strncpy(desc->dtpd_mod, (char *)(str + probe->dofp_mod),
usr/src/uts/common/dtrace/dtrace.c
12858
(void) strncpy(desc->dtpd_func, (char *)(str + probe->dofp_func),
usr/src/uts/common/dtrace/dtrace.c
12866
(void) strncpy(desc->dtpd_name, (char *)(str + probe->dofp_name),
usr/src/uts/common/dtrace/dtrace.c
13111
char *str, *fmt;
usr/src/uts/common/dtrace/dtrace.c
13124
str = (char *)((uintptr_t)dof +
usr/src/uts/common/dtrace/dtrace.c
13128
if (str[i] == '\0')
usr/src/uts/common/dtrace/dtrace.c
13144
bcopy(&str[desc->dofa_arg], fmt, i + 1);
usr/src/uts/common/dtrace/dtrace.c
17180
char *str;
usr/src/uts/common/dtrace/dtrace.c
17201
str = state->dts_formats[fmt.dtfd_format - 1];
usr/src/uts/common/dtrace/dtrace.c
17202
ASSERT(str != NULL);
usr/src/uts/common/dtrace/dtrace.c
17204
len = strlen(str) + 1;
usr/src/uts/common/dtrace/dtrace.c
17214
if (copyout(str, fmt.dtfd_string, len) != 0) {
usr/src/uts/common/dtrace/dtrace.c
6573
char c[DTRACE_FULLNAMELEN + 80], *str;
usr/src/uts/common/dtrace/dtrace.c
6598
for (str = prov->dtpv_name; *str != '\0'; str++)
usr/src/uts/common/dtrace/dtrace.c
6599
c[i++] = *str;
usr/src/uts/common/dtrace/dtrace.c
6602
for (str = probe->dtpr_mod; *str != '\0'; str++)
usr/src/uts/common/dtrace/dtrace.c
6603
c[i++] = *str;
usr/src/uts/common/dtrace/dtrace.c
6606
for (str = probe->dtpr_func; *str != '\0'; str++)
usr/src/uts/common/dtrace/dtrace.c
6607
c[i++] = *str;
usr/src/uts/common/dtrace/dtrace.c
6610
for (str = probe->dtpr_name; *str != '\0'; str++)
usr/src/uts/common/dtrace/dtrace.c
6611
c[i++] = *str;
usr/src/uts/common/dtrace/dtrace.c
6746
char *str = (char *)&pcs[nframes];
usr/src/uts/common/dtrace/dtrace.c
6811
str[offs++] = '\0';
usr/src/uts/common/dtrace/dtrace.c
6816
str[offs++] = '\0';
usr/src/uts/common/dtrace/dtrace.c
6822
str[offs++] = '\0';
usr/src/uts/common/dtrace/dtrace.c
6832
if ((str[offs + j] = sym[j]) == '\0')
usr/src/uts/common/dtrace/dtrace.c
6853
str[offs++] = '\0';
usr/src/uts/common/dtrace/dtrace.c
7758
dtrace_strdup(const char *str)
usr/src/uts/common/dtrace/dtrace.c
7760
char *new = kmem_zalloc((str != NULL ? strlen(str) : 0) + 1, KM_SLEEP);
usr/src/uts/common/dtrace/dtrace.c
7762
if (str != NULL)
usr/src/uts/common/dtrace/dtrace.c
7763
(void) strcpy(new, str);
usr/src/uts/common/dtrace/dtrace.c
7823
dtrace_errdebug(const char *str)
usr/src/uts/common/dtrace/dtrace.c
7825
int hval = dtrace_hash_str((char *)str) % DTRACE_ERRHASHSZ;
usr/src/uts/common/dtrace/dtrace.c
7829
dtrace_errlast = str;
usr/src/uts/common/dtrace/dtrace.c
7833
if (dtrace_errhash[hval].dter_msg == str) {
usr/src/uts/common/dtrace/dtrace.c
7843
dtrace_errhash[hval].dter_msg = str;
usr/src/uts/common/dtrace/fasttrap.c
1085
char *str;
usr/src/uts/common/dtrace/fasttrap.c
1100
str = probe->ftp_ntypes;
usr/src/uts/common/dtrace/fasttrap.c
1102
str += strlen(str) + 1;
usr/src/uts/common/dtrace/fasttrap.c
1105
ASSERT(strlen(str + 1) < sizeof (desc->dtargd_native));
usr/src/uts/common/dtrace/fasttrap.c
1106
(void) strcpy(desc->dtargd_native, str);
usr/src/uts/common/dtrace/fasttrap.c
1111
str = probe->ftp_xtypes;
usr/src/uts/common/dtrace/fasttrap.c
1113
str += strlen(str) + 1;
usr/src/uts/common/dtrace/fasttrap.c
1116
ASSERT(strlen(str + 1) < sizeof (desc->dtargd_xlate));
usr/src/uts/common/dtrace/fasttrap.c
1117
(void) strcpy(desc->dtargd_xlate, str);
usr/src/uts/common/fs/dev/sdev_zvolops.c
522
char str[MAXNAMELEN];
usr/src/uts/common/fs/dev/sdev_zvolops.c
542
(void) snprintf(str, sizeof (str), ZVOL_PSEUDO_DEV "%u", minor);
usr/src/uts/common/fs/dev/sdev_zvolops.c
543
(void) strncat(pathname, str, MAXPATHLEN);
usr/src/uts/common/fs/hsfs/hsfs_node.c
121
static int hs_utf8_trunc(uint8_t *str, int len);
usr/src/uts/common/fs/lofs/lofs_subr.c
765
lo_dprint(int level, char *str, int a1, int a2, int a3, int a4, int a5, int a6,
usr/src/uts/common/fs/lofs/lofs_subr.c
770
printf(str, a1, a2, a3, a4, a5, a6, a7, a8, a9);
usr/src/uts/common/fs/nfs/nfs4_idmap.c
371
(void) bcopy(u8s->utf8string_val, mapargp->str, mapargp->u_arg.len);
usr/src/uts/common/fs/nfs/nfs4_idmap.c
372
mapargp->str[mapargp->u_arg.len] = '\0';
usr/src/uts/common/fs/nfs/nfs4_idmap.c
415
DTRACE_PROBE1(nfs4__str__uid, char *, mapargp->str);
usr/src/uts/common/fs/nfs/nfs4_idmap.c
591
(void) str_to_utf8(resp->str, u8s);
usr/src/uts/common/fs/nfs/nfs4_idmap.c
750
(void) bcopy(u8s->utf8string_val, mapargp->str, mapargp->u_arg.len);
usr/src/uts/common/fs/nfs/nfs4_idmap.c
751
mapargp->str[mapargp->u_arg.len] = '\0';
usr/src/uts/common/fs/nfs/nfs4_idmap.c
795
DTRACE_PROBE1(nfs4__str__gid, char *, mapargp->str);
usr/src/uts/common/fs/nfs/nfs4_idmap.c
971
(void) str_to_utf8(resp->str, u8s);
usr/src/uts/common/fs/nfs/nfs4_recovery.c
644
nfs4_recov_state_t *rsp, int retry_err_cnt, char *str)
usr/src/uts/common/fs/nfs/nfs4_recovery.c
677
"nfs4_start_fop: %s %p DEAD, cnt=%d", str,
usr/src/uts/common/fs/nfs/nfs4_recovery.c
699
str, (void *)vp,
usr/src/uts/common/fs/nfs/nfs4_srv.c
6295
static void lock_print(char *str, int operation, struct flock64 *flk)
usr/src/uts/common/fs/nfs/nfs4_srv.c
6322
str, op, type, (longlong_t)flk->l_start,
usr/src/uts/common/fs/nfs/nfs4_subr.c
583
utf8_to_str(utf8string *str, uint_t *lenp, char *s)
usr/src/uts/common/fs/nfs/nfs4_subr.c
592
if (str == NULL)
usr/src/uts/common/fs/nfs/nfs4_subr.c
595
u8p = str->utf8string_val;
usr/src/uts/common/fs/nfs/nfs4_subr.c
596
len = str->utf8string_len;
usr/src/uts/common/fs/nfs/nfs4_subr.c
632
str_to_utf8(char *nm, utf8string *str)
usr/src/uts/common/fs/nfs/nfs4_subr.c
636
if (str == NULL)
usr/src/uts/common/fs/nfs/nfs4_subr.c
640
str->utf8string_len = 0;
usr/src/uts/common/fs/nfs/nfs4_subr.c
641
str->utf8string_val = NULL;
usr/src/uts/common/fs/nfs/nfs4_subr.c
646
str->utf8string_val = kmem_alloc(len, KM_SLEEP);
usr/src/uts/common/fs/nfs/nfs4_subr.c
647
str->utf8string_len = len;
usr/src/uts/common/fs/nfs/nfs4_subr.c
648
bcopy(nm, str->utf8string_val, len);
usr/src/uts/common/fs/nfs/nfs4_subr.c
650
return (str);
usr/src/uts/common/fs/nfs/nfs4_subr.c
720
utf8_dir_verify(utf8string *str)
usr/src/uts/common/fs/nfs/nfs4_subr.c
725
if (str == NULL)
usr/src/uts/common/fs/nfs/nfs4_subr.c
728
nm = str->utf8string_val;
usr/src/uts/common/fs/nfs/nfs4_subr.c
729
len = str->utf8string_len;
usr/src/uts/common/fs/nfs/nfs4_subr.c
739
if (utf8_strchr(str, '/') != NULL)
usr/src/uts/common/fs/nfs/nfs4_subr.c
742
if (utf8_strchr(str, '\0') != NULL)
usr/src/uts/common/fs/nfs/nfs_dlinet.c
1176
char *str;
usr/src/uts/common/fs/nfs/nfs_dlinet.c
1184
DDI_PROP_DONTPASS, BP_SERVER_ROOTOPTS, &str) == DDI_SUCCESS) {
usr/src/uts/common/fs/nfs/nfs_dlinet.c
1185
(void) strncpy(rootopts, str, 255);
usr/src/uts/common/fs/nfs/nfs_dlinet.c
1186
ddi_prop_free(str);
usr/src/uts/common/fs/nfs/nfs_dlinet.c
1189
DDI_PROP_DONTPASS, BP_SERVER_IP, &str) == DDI_SUCCESS) {
usr/src/uts/common/fs/nfs/nfs_dlinet.c
1190
if (inet_aton(str, server_ip) != 0)
usr/src/uts/common/fs/nfs/nfs_dlinet.c
1192
str);
usr/src/uts/common/fs/nfs/nfs_dlinet.c
1193
ddi_prop_free(str);
usr/src/uts/common/fs/nfs/nfs_dlinet.c
1211
str = NULL;
usr/src/uts/common/fs/nfs/nfs_dlinet.c
1235
str = (char *)(&source[++len]);
usr/src/uts/common/fs/nfs/nfs_dlinet.c
1237
str = (char *)(&source[len++]);
usr/src/uts/common/fs/nfs/nfs_dlinet.c
1243
if (str != NULL) {
usr/src/uts/common/fs/nfs/nfs_dlinet.c
1264
str = (char *)doptp->value;
usr/src/uts/common/fs/nfs/nfs_dlinet.c
1268
bcopy(str, server_path_c, len);
usr/src/uts/common/fs/nfs/nfs_dlinet.c
2189
char *str;
usr/src/uts/common/fs/nfs/nfs_dlinet.c
2205
DDI_PROP_DONTPASS, BP_HOST_IP, &str) == DDI_SUCCESS) {
usr/src/uts/common/fs/nfs/nfs_dlinet.c
2206
if (inet_aton(str, (uchar_t *)&my_ip) != 0)
usr/src/uts/common/fs/nfs/nfs_dlinet.c
2208
str);
usr/src/uts/common/fs/nfs/nfs_dlinet.c
2209
ddi_prop_free(str);
usr/src/uts/common/fs/nfs/nfs_dlinet.c
2215
DDI_PROP_DONTPASS, BP_SUBNET_MASK, &str) == DDI_SUCCESS) {
usr/src/uts/common/fs/nfs/nfs_dlinet.c
2216
if (inet_aton(str, (uchar_t *)&my_netmask) != 0)
usr/src/uts/common/fs/nfs/nfs_dlinet.c
2218
str);
usr/src/uts/common/fs/nfs/nfs_dlinet.c
2219
ddi_prop_free(str);
usr/src/uts/common/fs/nfs/nfs_dlinet.c
2225
DDI_PROP_DONTPASS, BP_ROUTER_IP, &str) == DDI_SUCCESS) {
usr/src/uts/common/fs/nfs/nfs_dlinet.c
2226
if (inet_aton(str, (uchar_t *)&my_router) != 0)
usr/src/uts/common/fs/nfs/nfs_dlinet.c
2228
str);
usr/src/uts/common/fs/nfs/nfs_dlinet.c
2229
ddi_prop_free(str);
usr/src/uts/common/fs/nfs/nfs_dlinet.c
2239
DDI_PROP_DONTPASS, BP_SERVER_ROOTOPTS, &str) == DDI_SUCCESS) {
usr/src/uts/common/fs/nfs/nfs_dlinet.c
2240
(void) strlcpy(rootopts, str, sizeof (rootopts));
usr/src/uts/common/fs/nfs/nfs_dlinet.c
2241
ddi_prop_free(str);
usr/src/uts/common/fs/nfs/nfs_dlinet.c
2244
DDI_PROP_DONTPASS, BP_SERVER_IP, &str) == DDI_SUCCESS) {
usr/src/uts/common/fs/nfs/nfs_dlinet.c
2245
if (inet_aton(str, server_ip) != 0)
usr/src/uts/common/fs/nfs/nfs_dlinet.c
2247
str);
usr/src/uts/common/fs/nfs/nfs_dlinet.c
2248
ddi_prop_free(str);
usr/src/uts/common/fs/nfs/nfs_server.c
3101
URLparse(char *str)
usr/src/uts/common/fs/nfs/nfs_server.c
3105
p = q = str;
usr/src/uts/common/fs/pathname.c
104
pn_get_buf(const char *str, enum uio_seg seg, struct pathname *pnp,
usr/src/uts/common/fs/pathname.c
112
error = copyinstr(str, pnp->pn_path, bufsize, &pnp->pn_pathlen);
usr/src/uts/common/fs/pathname.c
114
error = copystr(str, pnp->pn_path, bufsize, &pnp->pn_pathlen);
usr/src/uts/common/fs/pathname.c
125
pn_get(const char *str, enum uio_seg seg, struct pathname *pnp)
usr/src/uts/common/fs/pathname.c
131
if ((error = pn_get_buf(str, seg, pnp, buf, MAXPATHLEN)) != 0)
usr/src/uts/common/fs/pkp_hash.c
56
pkp_tab_hash(char *str, int len)
usr/src/uts/common/fs/pkp_hash.c
65
hash = MOD2((hash + str[i]), PKP_HASH_SIZE);
usr/src/uts/common/fs/proc/prvnops.c
5386
char str[64];
usr/src/uts/common/fs/proc/prvnops.c
5423
(void) strcpy(str, "a.out");
usr/src/uts/common/fs/proc/prvnops.c
5425
pr_object_name(str, vp, &vattr);
usr/src/uts/common/fs/proc/prvnops.c
5428
str, 0);
usr/src/uts/common/fs/smbclnt/netsmb/smb_subr.h
82
#define DEBUG_ENTER(str) debug_enter(str)
usr/src/uts/common/fs/smbclnt/netsmb/smb_subr.h
86
#define DEBUG_ENTER(str) ((void)0)
usr/src/uts/common/fs/smbsrv/smb_kshare.c
105
char *str = NULL;
usr/src/uts/common/fs/smbsrv/smb_kshare.c
133
str = kmem_alloc(MAXPATHLEN, KM_SLEEP);
usr/src/uts/common/fs/smbsrv/smb_kshare.c
134
error = copyinstr(arg, str, MAXPATHLEN, NULL);
usr/src/uts/common/fs/smbsrv/smb_kshare.c
136
kmem_free(str, MAXPATHLEN);
usr/src/uts/common/fs/smbsrv/smb_kshare.c
140
smb_dr_put_string(enc_ctx, str);
usr/src/uts/common/fs/smbsrv/smb_kshare.c
141
kmem_free(str, MAXPATHLEN);
usr/src/uts/common/fs/smbsrv/smb_kutil.c
100
smb_ascii_or_unicode_strlen_null(struct smb_request *sr, char *str)
usr/src/uts/common/fs/smbsrv/smb_kutil.c
104
return (smb_wcequiv_strlen(str) + 2);
usr/src/uts/common/fs/smbsrv/smb_kutil.c
105
return (smb_sbequiv_strlen(str) + 1);
usr/src/uts/common/fs/smbsrv/smb_kutil.c
84
smb_ascii_or_unicode_strlen(struct smb_request *sr, char *str)
usr/src/uts/common/fs/smbsrv/smb_kutil.c
88
return (smb_wcequiv_strlen(str));
usr/src/uts/common/fs/smbsrv/smb_kutil.c
89
return (smb_sbequiv_strlen(str));
usr/src/uts/common/fs/smbsrv/smb_negotiate.c
662
if (strcmp(dp->str, dialect) == 0)
usr/src/uts/common/fs/smbsrv/smb_vss.c
235
const char *str;
usr/src/uts/common/fs/smbsrv/smb_vss.c
239
str = s;
usr/src/uts/common/fs/smbsrv/smb_vss.c
243
if (!smb_isdigit(*str))
usr/src/uts/common/fs/smbsrv/smb_vss.c
245
} else if (*template != *str) {
usr/src/uts/common/fs/smbsrv/smb_vss.c
250
str++;
usr/src/uts/common/fs/smbsrv/smb_vss.c
254
if ((*str == '\0') || (*str == '/'))
usr/src/uts/common/fs/tmpfs/tmp_subr.c
155
tmp_convnum(char *str, pgcnt_t *maxpg)
usr/src/uts/common/fs/tmpfs/tmp_subr.c
174
if (str == NULL) {
usr/src/uts/common/fs/tmpfs/tmp_subr.c
177
c = str;
usr/src/uts/common/fs/tmpfs/tmp_subr.c
182
if (ddi_strtoull(str, &c, 10, &num) != 0) {
usr/src/uts/common/fs/tmpfs/tmp_subr.c
268
tmp_convmode(char *str, mode_t *mode)
usr/src/uts/common/fs/tmpfs/tmp_subr.c
273
if (str == NULL) {
usr/src/uts/common/fs/tmpfs/tmp_subr.c
277
if (ddi_strtoul(str, &c, 8, &num) != 0) {
usr/src/uts/common/fs/ufs/ufs_panic.c
113
#define NULLSTR(str) (!(str) || *(str) == '\0'? "<null>" : (str))
usr/src/uts/common/fs/vnode.c
3263
vn_setpath_str(vnode_t *vp, const char *str, size_t len)
usr/src/uts/common/fs/vnode.c
3265
vn_setpath_common(NULL, vp, str, len, B_FALSE);
usr/src/uts/common/fs/zfs/dsl_dataset.c
2094
char *str;
usr/src/uts/common/fs/zfs/dsl_dataset.c
2152
str = kmem_alloc(compressed_size * 2 + 1, KM_SLEEP);
usr/src/uts/common/fs/zfs/dsl_dataset.c
2154
(void) sprintf(str + i * 2, "%02x", compressed[i]);
usr/src/uts/common/fs/zfs/dsl_dataset.c
2156
str[compressed_size * 2] = '\0';
usr/src/uts/common/fs/zfs/dsl_dataset.c
2160
(longlong_t)packed_size, str);
usr/src/uts/common/fs/zfs/dsl_dataset.c
2162
kmem_free(str, compressed_size * 2 + 1);
usr/src/uts/common/fs/zfs/lua/lcompat.c
23
lcompat_strtoll(const char *str, char **ptr)
usr/src/uts/common/fs/zfs/lua/lcompat.c
31
cp = str;
usr/src/uts/common/fs/zfs/lua/llex.c
122
TString *luaX_newstring (LexState *ls, const char *str, size_t l) {
usr/src/uts/common/fs/zfs/lua/llex.c
125
TString *ts = luaS_newlstr(L, str, l); /* create new string */
usr/src/uts/common/fs/zfs/lua/llex.h
71
LUAI_FUNC TString *luaX_newstring (LexState *ls, const char *str, size_t l);
usr/src/uts/common/fs/zfs/lua/lobject.c
169
static void pushstr (lua_State *L, const char *str, size_t l) {
usr/src/uts/common/fs/zfs/lua/lobject.c
170
setsvalue2s(L, L->top++, luaS_newlstr(L, str, l));
usr/src/uts/common/fs/zfs/lua/lstring.c
107
memcpy(ts+1, str, l*sizeof(char));
usr/src/uts/common/fs/zfs/lua/lstring.c
116
static TString *newshrstr (lua_State *L, const char *str, size_t l,
usr/src/uts/common/fs/zfs/lua/lstring.c
124
s = createstrobj(L, str, l, LUA_TSHRSTR, h, list);
usr/src/uts/common/fs/zfs/lua/lstring.c
133
static TString *internshrstr (lua_State *L, const char *str, size_t l) {
usr/src/uts/common/fs/zfs/lua/lstring.c
136
unsigned int h = luaS_hash(str, l, g->seed);
usr/src/uts/common/fs/zfs/lua/lstring.c
143
(memcmp(str, getstr(ts), l * sizeof(char)) == 0)) {
usr/src/uts/common/fs/zfs/lua/lstring.c
149
return newshrstr(L, str, l, h); /* not found; create a new string */
usr/src/uts/common/fs/zfs/lua/lstring.c
156
TString *luaS_newlstr (lua_State *L, const char *str, size_t l) {
usr/src/uts/common/fs/zfs/lua/lstring.c
158
return internshrstr(L, str, l);
usr/src/uts/common/fs/zfs/lua/lstring.c
162
return createstrobj(L, str, l, LUA_TLNGSTR, G(L)->seed, NULL);
usr/src/uts/common/fs/zfs/lua/lstring.c
170
TString *luaS_new (lua_State *L, const char *str) {
usr/src/uts/common/fs/zfs/lua/lstring.c
171
return luaS_newlstr(L, str, strlen(str));
usr/src/uts/common/fs/zfs/lua/lstring.c
51
unsigned int luaS_hash (const char *str, size_t l, unsigned int seed) {
usr/src/uts/common/fs/zfs/lua/lstring.c
56
h = h ^ ((h<<5) + (h>>2) + cast_byte(str[l1 - 1]));
usr/src/uts/common/fs/zfs/lua/lstring.c
98
static TString *createstrobj (lua_State *L, const char *str, size_t l,
usr/src/uts/common/fs/zfs/lua/lstring.h
37
LUAI_FUNC unsigned int luaS_hash (const char *str, size_t l, unsigned int seed);
usr/src/uts/common/fs/zfs/lua/lstring.h
42
LUAI_FUNC TString *luaS_newlstr (lua_State *L, const char *str, size_t l);
usr/src/uts/common/fs/zfs/lua/lstring.h
43
LUAI_FUNC TString *luaS_new (lua_State *L, const char *str);
usr/src/uts/common/fs/zfs/lua/ltable.c
53
#define hashstr(t,str) hashpow2(t, (str)->tsv.hash)
usr/src/uts/common/fs/zfs/spa_misc.c
1598
zfs_strtonum(const char *str, char **nptr)
usr/src/uts/common/fs/zfs/spa_misc.c
1604
while ((c = *str) != '\0') {
usr/src/uts/common/fs/zfs/spa_misc.c
1615
str++;
usr/src/uts/common/fs/zfs/spa_misc.c
1619
*nptr = (char *)str;
usr/src/uts/common/fs/zfs/sys/spa.h
1010
extern uint64_t zfs_strtonum(const char *str, char **nptr);
usr/src/uts/common/fs/zfs/zcp_get.c
75
get_objset_type_name(dsl_dataset_t *ds, char *str)
usr/src/uts/common/fs/zfs/zcp_get.c
84
(void) strcpy(str, "snapshot");
usr/src/uts/common/fs/zfs/zcp_get.c
87
(void) strcpy(str, "filesystem");
usr/src/uts/common/fs/zfs/zcp_get.c
90
(void) strcpy(str, "volume");
usr/src/uts/common/fs/zfs/zfs_vfsops.c
1504
str_to_uint64(char *str, uint64_t *objnum)
usr/src/uts/common/fs/zfs/zfs_vfsops.c
1508
while (*str) {
usr/src/uts/common/fs/zfs/zfs_vfsops.c
1509
if (*str < '0' || *str > '9')
usr/src/uts/common/fs/zfs/zfs_vfsops.c
1512
num = num*10 + *str++ - '0';
usr/src/uts/common/fs/zfs/zfs_vfsops.c
1736
char *str = NULL;
usr/src/uts/common/fs/zfs/zfs_vfsops.c
1738
if (l_to_str_internal(mnt_sl, &str) == 0 &&
usr/src/uts/common/fs/zfs/zfs_vfsops.c
1741
ZPROP_SRC_LOCAL, str) == 0)
usr/src/uts/common/fs/zfs/zfs_vfsops.c
1743
if (str != NULL)
usr/src/uts/common/fs/zfs/zfs_vfsops.c
1744
kmem_free(str, strlen(str) + 1);
usr/src/uts/common/gssapi/include/gssapiP_dummy.h
64
#define TWRITE_STR(ptr, str, len) \
usr/src/uts/common/gssapi/include/gssapiP_dummy.h
65
(void) memcpy((ptr), (char *) (str), (len)); \
usr/src/uts/common/gssapi/mechs/krb5/include/gssapiP_generic.h
100
#define TREAD_STR(ptr, str, len) \
usr/src/uts/common/gssapi/mechs/krb5/include/gssapiP_generic.h
101
(str) = (ptr); \
usr/src/uts/common/gssapi/mechs/krb5/include/gssapiP_generic.h
192
int g_make_string_buffer (const char *str, gss_buffer_t buffer);
usr/src/uts/common/gssapi/mechs/krb5/include/gssapiP_generic.h
227
char *g_strdup (char *str);
usr/src/uts/common/gssapi/mechs/krb5/include/gssapiP_generic.h
96
#define TWRITE_STR(ptr, str, len) \
usr/src/uts/common/gssapi/mechs/krb5/include/gssapiP_generic.h
97
(void) memcpy((ptr), (char *) (str), (len)); \
usr/src/uts/common/gssapi/mechs/krb5/include/k5-int.h
2728
static inline krb5_data string2data (char *str)
usr/src/uts/common/gssapi/mechs/krb5/include/k5-int.h
2732
d.length = strlen(str);
usr/src/uts/common/gssapi/mechs/krb5/include/k5-int.h
2733
d.data = str;
usr/src/uts/common/gssapi/mechs/krb5/include/krb5.h
2847
(krb5_context context, char *str);
usr/src/uts/common/gssapi/mechs/krb5/include/krb5.h
2864
(krb5_context context, char *str);
usr/src/uts/common/inet/ip/ip_arp.c
2108
arp_drop_packet(const char *str, mblk_t *mp, ill_t *ill)
usr/src/uts/common/inet/ip/ip_arp.c
74
static void arp_drop_packet(const char *str, mblk_t *, ill_t *);
usr/src/uts/common/inet/ip/ip_if.c
18321
const char *str = NULL;
usr/src/uts/common/inet/ip/ip_if.c
18356
str = ill_hook_event2str(event);
usr/src/uts/common/inet/ip/ip_if.c
18358
"information for %s (ENOMEM)\n", str, ill->ill_name));
usr/src/uts/common/inet/ip/ipdrop.c
255
char *str;
usr/src/uts/common/inet/ip/ipdrop.c
287
str = counter->name;
usr/src/uts/common/inet/ip/ipdrop.c
289
str = who_called->ipd_name;
usr/src/uts/common/inet/ip/ipdrop.c
291
str = "Unspecified IPsec drop";
usr/src/uts/common/inet/ip/ipdrop.c
294
ip_drop_input(str, mp, ill);
usr/src/uts/common/inet/ip/ipdrop.c
296
ip_drop_output(str, mp, ill);
usr/src/uts/common/inet/ip/ipdrop.c
313
ip_drop_input(char *str, mblk_t *mp, ill_t *ill)
usr/src/uts/common/inet/ip/ipdrop.c
335
ip_drop_output(char *str, mblk_t *mp, ill_t *ill)
usr/src/uts/common/inet/mi.c
1009
mi_strtol(const char *str, char **ptr, int base)
usr/src/uts/common/inet/mi.c
1016
cp = str;
usr/src/uts/common/inet/mi.c
955
mi_strlen(const char *str)
usr/src/uts/common/inet/mi.c
957
const char *cp = str;
usr/src/uts/common/inet/mi.c
961
return ((int)(cp - str));
usr/src/uts/common/inet/mi.h
125
extern size_t mi_strlen(const char *str);
usr/src/uts/common/inet/mi.h
130
extern long mi_strtol(const char *str, char **ptr, int base);
usr/src/uts/common/inet/tcp/tcp_output.c
2367
tcp_xmit_ctl(char *str, tcp_t *tcp, uint32_t seq, uint32_t ack, int ctl)
usr/src/uts/common/inet/tcp/tcp_output.c
2389
if (str != NULL && connp->conn_debug) {
usr/src/uts/common/inet/tcp/tcp_output.c
2392
str, seq, ack, ctl);
usr/src/uts/common/inet/tcp/tcp_output.c
2513
tcp_xmit_early_reset(char *str, mblk_t *mp, uint32_t seq, uint32_t ack, int ctl,
usr/src/uts/common/inet/tcp/tcp_output.c
2570
if (str && tcps->tcps_dbg) {
usr/src/uts/common/inet/tcp/tcp_output.c
2574
str, seq, ack, ctl);
usr/src/uts/common/io/1394/s1394_misc.c
668
char str[200], tmp[200];
usr/src/uts/common/io/1394/s1394_misc.c
684
(void) strcpy(str, " |");
usr/src/uts/common/io/1394/s1394_misc.c
687
(void) strcat(str, tmp);
usr/src/uts/common/io/1394/s1394_misc.c
689
(void) strcat(str, " | GUID\n");
usr/src/uts/common/io/1394/s1394_misc.c
690
cmn_err(CE_CONT, str);
usr/src/uts/common/io/1394/s1394_misc.c
692
(void) strcpy(str, "----|");
usr/src/uts/common/io/1394/s1394_misc.c
695
(void) strcat(str, tmp);
usr/src/uts/common/io/1394/s1394_misc.c
697
(void) strcat(str, "--|------------------\n");
usr/src/uts/common/io/1394/s1394_misc.c
698
cmn_err(CE_CONT, str);
usr/src/uts/common/io/1394/s1394_misc.c
702
(void) sprintf(str, " %2d |", i);
usr/src/uts/common/io/1394/s1394_misc.c
706
(void) strcat(str, tmp);
usr/src/uts/common/io/1394/s1394_misc.c
711
(void) strcat(str, " | Local OHCI Card\n");
usr/src/uts/common/io/1394/s1394_misc.c
718
(void) strcat(str, tmp);
usr/src/uts/common/io/1394/s1394_misc.c
722
(void) strcat(str, " | Link off\n");
usr/src/uts/common/io/1394/s1394_misc.c
726
(void) strcat(str, " | ????????????????\n");
usr/src/uts/common/io/1394/s1394_misc.c
728
cmn_err(CE_CONT, str);
usr/src/uts/common/io/aac/aac.c
8448
char *str;
usr/src/uts/common/io/aac/aac.c
8456
str = aac_cmd_name(aif_en_type, aac_aifens);
usr/src/uts/common/io/aac/aac.c
8457
if (str)
usr/src/uts/common/io/aac/aac.c
8458
aac_printf(softs, CE_NOTE, "AIF! %s", str);
usr/src/uts/common/io/aac/aac.c
8467
str = "success"; break;
usr/src/uts/common/io/aac/aac.c
8469
str = "finished"; break;
usr/src/uts/common/io/aac/aac.c
8471
str = "aborted"; break;
usr/src/uts/common/io/aac/aac.c
8473
str = "failed"; break;
usr/src/uts/common/io/aac/aac.c
8475
str = "suspended"; break;
usr/src/uts/common/io/aac/aac.c
8477
str = "running"; break;
usr/src/uts/common/io/aac/aac.c
8479
str = "unknown"; break;
usr/src/uts/common/io/aac/aac.c
8483
aif_seqnumber, str,
usr/src/uts/common/io/audio/drv/audiots/audiots.c
650
int str;
usr/src/uts/common/io/audio/drv/audiots/audiots.c
663
for (str = 0; str < TS_MAX_HW_CHANNELS; str++) {
usr/src/uts/common/io/audio/drv/audiots/audiots.c
669
®s->aud_ram[str].eram.eram_gvsel_pan_vol,
usr/src/uts/common/io/audio/drv/audiots/audiots.c
673
®s->aud_ram[str].eram.eram_gvsel_pan_vol,
usr/src/uts/common/io/audio/drv/audiots/audiots.c
683
ddi_put32(handle, ®s->aud_ram[str].eram.eram_ebuf1,
usr/src/uts/common/io/audio/drv/audiots/audiots.c
685
ddi_put32(handle, ®s->aud_ram[str].eram.eram_ebuf2,
usr/src/uts/common/io/audio/drv/audiots/audiots.c
689
ddi_put16(handle, ®s->aud_ram[str].aram.aram_delta,
usr/src/uts/common/io/audio/drv/audiots/audiots.c
691
ddi_put16(handle, ®s->aud_ram[str].eram.eram_ctrl_ec,
usr/src/uts/common/io/blkdev/blkdev.c
554
bd_errstats_setstr(kstat_named_t *k, char *str, size_t len, char *alt)
usr/src/uts/common/io/blkdev/blkdev.c
561
km_len = strnlen(str, len);
usr/src/uts/common/io/blkdev/blkdev.c
568
bcopy(len > 0 ? str : alt, tmp, km_len);
usr/src/uts/common/io/bnxe/577xx/common/bnxe_clc.c
11466
elink_848xx_format_ver(u32 raw_ver, u8 *str, u16 *len)
usr/src/uts/common/io/bnxe/577xx/common/bnxe_clc.c
11472
status = elink_format_ver(spirom_ver, str, len);
usr/src/uts/common/io/bnxe/577xx/common/bnxe_clc.c
12402
elink_7101_format_ver(u32 spirom_ver, u8 *str, u16 *len)
usr/src/uts/common/io/bnxe/577xx/common/bnxe_clc.c
12406
str[0] = (spirom_ver & 0xFF);
usr/src/uts/common/io/bnxe/577xx/common/bnxe_clc.c
12407
str[1] = (spirom_ver & 0xFF00) >> 8;
usr/src/uts/common/io/bnxe/577xx/common/bnxe_clc.c
12408
str[2] = (spirom_ver & 0xFF0000) >> 16;
usr/src/uts/common/io/bnxe/577xx/common/bnxe_clc.c
12409
str[3] = (spirom_ver & 0xFF000000) >> 24;
usr/src/uts/common/io/bnxe/577xx/common/bnxe_clc.c
12410
str[4] = '\0';
usr/src/uts/common/io/bnxe/577xx/common/bnxe_clc.c
6825
elink_format_ver(u32 num, u8 *str, u16 *len)
usr/src/uts/common/io/bnxe/577xx/common/bnxe_clc.c
6828
u8 *str_ptr = str;
usr/src/uts/common/io/bnxe/577xx/common/bnxe_clc.c
6869
elink_null_format_ver(u32 spirom_ver, u8 *str, u16 *len)
usr/src/uts/common/io/bnxe/577xx/common/bnxe_clc.c
6872
str[0] = '\0';
usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/ecore_sp_verbs.c
38
#define ECORE_ERR(str, ...) DbgMessage(pdev, FATAL, str, ##__VA_ARGS__)
usr/src/uts/common/io/bnxe/577xx/hsi/hw/include/clc.h
245
typedef elink_status_t (*format_fw_ver_t)(u32 raw, u8 *str, u16 *len);
usr/src/uts/common/io/bnxe/bnxe_gld.c
1015
char str[1]; /* holds names of desc.num stats, each desc.len in length */
usr/src/uts/common/io/bnxe/bnxe_gld.c
1211
memcpy(pStats->str, p_stat_str, sizeof(p_stat_str));
usr/src/uts/common/io/clone.c
165
struct streamtab *str;
usr/src/uts/common/io/clone.c
210
if ((str = STREAMSTAB(maj)) == NULL) {
usr/src/uts/common/io/clone.c
243
ASSERT(str == dp->d_str);
usr/src/uts/common/io/clone.c
250
dp->d_dmp = hold_dm(str, qflag, sqtype);
usr/src/uts/common/io/clone.c
266
setq(rq, str->st_rdinit, str->st_wrinit, dmp, qflag, sqtype, B_FALSE);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd.c
849
sbd_strlen(char *str, uint32_t maxlen)
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd.c
854
if (str[i] == 0)
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1933
char *str = (char *)kmem_zalloc(33, KM_SLEEP);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1934
(void) snprintf(str, 33,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1942
return (str);
usr/src/uts/common/io/comstar/port/iscsit/iscsit_isns.c
1673
char *str;
usr/src/uts/common/io/comstar/port/iscsit/iscsit_isns.c
1824
str = itarget->target_info->ti_tgt_name;
usr/src/uts/common/io/comstar/port/iscsit/iscsit_isns.c
1825
len = strlen(str) + 1;
usr/src/uts/common/io/comstar/port/iscsit/iscsit_isns.c
1827
len, str, 0) != 0) {
usr/src/uts/common/io/comstar/port/iscsit/iscsit_isns.c
1839
str = itarget->target_info->ti_tgt_alias;
usr/src/uts/common/io/comstar/port/iscsit/iscsit_isns.c
1840
len = strnlen(str,
usr/src/uts/common/io/comstar/port/iscsit/iscsit_isns.c
1845
ISNS_ISCSI_ALIAS_ATTR_ID, len+1, str, 0) != 0) {
usr/src/uts/common/io/comstar/port/iscsit/iscsit_isns.c
670
char *str;
usr/src/uts/common/io/comstar/port/iscsit/iscsit_isns.c
686
&str) == 0) {
usr/src/uts/common/io/comstar/port/iscsit/iscsit_isns.c
687
(void) strncpy(ti->ti_tgt_alias, str, MAX_ISCSI_NODENAMELEN);
usr/src/uts/common/io/comstar/port/pppt/alua_ic_if.c
2275
stmf_ic_strdup(char *str)
usr/src/uts/common/io/comstar/port/pppt/alua_ic_if.c
2279
ASSERT(str);
usr/src/uts/common/io/comstar/port/pppt/alua_ic_if.c
2281
copy = kmem_zalloc(strlen(str) + 1, KM_SLEEP);
usr/src/uts/common/io/comstar/port/pppt/alua_ic_if.c
2282
(void) strcpy(copy, str);
usr/src/uts/common/io/comstar/port/pppt/alua_ic_if.c
312
static char *stmf_ic_strdup(char *str);
usr/src/uts/common/io/cpc.c
287
str = pcbe_ops->pcbe_list_attrs();
usr/src/uts/common/io/cpc.c
288
size = strlen(str) + sizeof (SEPARATOR ATTRLIST) + 1;
usr/src/uts/common/io/cpc.c
289
if (str[0] != '\0')
usr/src/uts/common/io/cpc.c
303
if (copyout(str, udata1, strlen(str)) == -1)
usr/src/uts/common/io/cpc.c
305
if (str[0] != '\0') {
usr/src/uts/common/io/cpc.c
307
((char *)udata1) + strlen(str),
usr/src/uts/common/io/cpc.c
313
(char *)udata1 + strlen(str),
usr/src/uts/common/io/cpc.c
326
str = pcbe_ops->pcbe_impl_name();
usr/src/uts/common/io/cpc.c
327
ASSERT(strlen(str) < CPC_MAX_IMPL_NAME);
usr/src/uts/common/io/cpc.c
329
str = pcbe_ops->pcbe_cpuref();
usr/src/uts/common/io/cpc.c
330
ASSERT(strlen(str) < CPC_MAX_CPUREF);
usr/src/uts/common/io/cpc.c
333
if (copyout(str, udata1, strlen(str) + 1) != 0)
usr/src/uts/common/io/cpc.c
93
const char *str;
usr/src/uts/common/io/cxgbe/t4nex/t4_mac.c
1879
char str[16];
usr/src/uts/common/io/cxgbe/t4nex/t4_mac.c
1880
(void) snprintf(str, sizeof (str), "%d", v);
usr/src/uts/common/io/cxgbe/t4nex/t4_mac.c
1881
mac_prop_info_set_default_str(ph, str);
usr/src/uts/common/io/cxgbe/t4nex/t4_sge.c
3504
char str[16];
usr/src/uts/common/io/cxgbe/t4nex/t4_sge.c
3507
(void) snprintf(str, sizeof (str), "rxq%u", idx);
usr/src/uts/common/io/cxgbe/t4nex/t4_sge.c
3509
ksp = kstat_create(T4_PORT_NAME, ddi_get_instance(pi->dip), str, "rxq",
usr/src/uts/common/io/cxgbe/t4nex/t4_sge.c
3578
char str[16];
usr/src/uts/common/io/cxgbe/t4nex/t4_sge.c
3581
(void) snprintf(str, sizeof (str), "txq%u", idx);
usr/src/uts/common/io/cxgbe/t4nex/t4_sge.c
3583
ksp = kstat_create(T4_PORT_NAME, ddi_get_instance(pi->dip), str, "txq",
usr/src/uts/common/io/devinfo.c
2758
char *str;
usr/src/uts/common/io/devinfo.c
2808
(void) nvpair_value_string(prop, &str);
usr/src/uts/common/io/devinfo.c
2809
size = strlen(str) + 1;
usr/src/uts/common/io/devinfo.c
2811
(void) strcpy(di_mem_addr(st, off), str);
usr/src/uts/common/io/elxl/elxl.c
1419
char *str;
usr/src/uts/common/io/elxl/elxl.c
1424
str = "mii";
usr/src/uts/common/io/elxl/elxl.c
1427
str = sc->ex_fdx ? "tp-fdx" : "tp-hdx";
usr/src/uts/common/io/elxl/elxl.c
1430
str = "bnc";
usr/src/uts/common/io/elxl/elxl.c
1434
str = sc->ex_fdx ? "fl-fdx" : "fl-hdx";
usr/src/uts/common/io/elxl/elxl.c
1436
str = "aui";
usr/src/uts/common/io/elxl/elxl.c
1440
str = sc->ex_fdx ? "fx-fdx" : "fx-hdx";
usr/src/uts/common/io/elxl/elxl.c
1443
str = "unknown";
usr/src/uts/common/io/elxl/elxl.c
1446
(void) snprintf(val, sz, "%s", str);
usr/src/uts/common/io/elxl/elxl.c
682
#define APPEND_MEDIA(str, bit, name) \
usr/src/uts/common/io/elxl/elxl.c
684
(void) strlcat(str, *str ? "," : "", sizeof (str)); \
usr/src/uts/common/io/elxl/elxl.c
685
(void) strlcat(str, name, sizeof (str)); \
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_hba.c
1469
emlxs_strtol(char *str, uint32_t base)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_hba.c
1476
if (*str == 0) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_hba.c
1488
ptr = str + strlen(str);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_hba.c
1491
while ((ptr-- > str) && digits) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_hba.c
1523
emlxs_strtoll(char *str, uint32_t base)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_hba.c
1530
if (*str == 0) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_hba.c
1542
ptr = str + strlen(str);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_hba.c
1545
while ((ptr-- > str) && digits) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
9261
emlxs_data_dump(emlxs_port_t *port, char *str, uint32_t *iptr, int cnt, int err)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
9265
if (!port || !str || !iptr || !cnt) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
9277
"%s00: %08x %08x %08x %08x %08x %08x", str, *iptr,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
9282
"%s06: %08x %08x %08x %08x %08x %08x", str, *(iptr+6),
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
9287
"%s12: %08x %08x %08x %08x %08x %08x", str, *(iptr+12),
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
9292
"%s18: %08x %08x %08x %08x %08x %08x", str, *(iptr+18),
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
9297
"%s24: %08x %08x %08x %08x %08x %08x", str, *(iptr+24),
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
9302
"%s30: %08x %08x %08x %08x %08x %08x", str, *(iptr+30),
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
9307
"%s36: %08x %08x %08x %08x %08x %08x", str, *(iptr+36),
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
9315
emlxs_ue_dump(emlxs_hba_t *hba, char *str)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
9337
"%s: ueLow:%08x ueHigh:%08x on1:%08x on2:%08x", str,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
9352
"%s: status:%08x err1:%08x err2:%08x", str,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
12368
emlxs_strtoupper(char *str)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
12370
char *cptr = str;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
12379
return (str);
usr/src/uts/common/io/fibre-channel/fca/oce/oce_queue.c
459
char str[MAX_POOL_NAME];
usr/src/uts/common/io/fibre-channel/fca/oce/oce_queue.c
507
(void) snprintf(str, MAX_POOL_NAME, "%s%d%s%d", "oce_wqed_",
usr/src/uts/common/io/fibre-channel/fca/oce/oce_queue.c
509
wq->wqed_cache = kmem_cache_create(str, sizeof (oce_wqe_desc_t),
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
17177
char *str;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
17181
for (str = s; *str >= '0' && *str <= '9'; str++) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_debug.c
100
cmn_err(CE_CONT, "%s\n", str);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_debug.c
101
sp = &str[0];
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_debug.c
115
cmn_err(CE_CONT, "%s\n", str);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_debug.c
116
sp = &str[0];
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_debug.c
123
if (sp != &str[0]) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_debug.c
124
cmn_err(CE_CONT, "%s\n", str);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_debug.c
70
char str[256], *sp;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_debug.c
74
sp = &str[0];
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_debug.c
85
cmn_err(CE_CONT, "%s\n", str);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_debug.c
86
sp = &str[0];
usr/src/uts/common/io/fibre-channel/impl/fctl.c
2073
fc_wwn_to_str(la_wwn_t *wwn, caddr_t str)
usr/src/uts/common/io/fibre-channel/impl/fctl.c
2077
for (count = 0; count < FCTL_WWN_SIZE(wwn); count++, str += 2) {
usr/src/uts/common/io/fibre-channel/impl/fctl.c
2078
(void) sprintf(str, "%02x", wwn->raw_wwn[count]);
usr/src/uts/common/io/fibre-channel/impl/fctl.c
2080
*str = '\0';
usr/src/uts/common/io/fibre-channel/impl/fctl.c
2088
fc_str_to_wwn(caddr_t str, la_wwn_t *wwn)
usr/src/uts/common/io/fibre-channel/impl/fctl.c
2093
while (*str) {
usr/src/uts/common/io/fibre-channel/impl/fctl.c
2094
byte = FC_ATOB(*str);
usr/src/uts/common/io/fibre-channel/impl/fctl.c
2095
str++;
usr/src/uts/common/io/fibre-channel/impl/fctl.c
2096
byte = byte << 4 | FC_ATOB(*str);
usr/src/uts/common/io/fibre-channel/impl/fctl.c
2097
str++;
usr/src/uts/common/io/fssnap.c
160
static int snap_print(dev_t dev, char *str);
usr/src/uts/common/io/fssnap.c
919
snap_print(dev_t dev, char *str)
usr/src/uts/common/io/fssnap.c
932
cmn_err(CE_NOTE, "snap_print: snapshot %d: %s", minor, str);
usr/src/uts/common/io/gld.c
1317
gld_t *str;
usr/src/uts/common/io/gld.c
1372
for (str = vlan->gldv_str_next;
usr/src/uts/common/io/gld.c
1373
str != (gld_t *)&vlan->gldv_str_next;
usr/src/uts/common/io/gld.c
1374
str = str->gld_next) {
usr/src/uts/common/io/gld.c
1375
ASSERT(str->gld_mac_info == mac);
usr/src/uts/common/io/gld.c
1376
if (minor == str->gld_minor) {
usr/src/uts/common/io/gld.c
5571
gld_t *str;
usr/src/uts/common/io/gld.c
5582
for (str = dev->gld_str_next;
usr/src/uts/common/io/gld.c
5583
str != (gld_t *)&dev->gld_str_next;
usr/src/uts/common/io/gld.c
5584
str = str->gld_next) {
usr/src/uts/common/io/gld.c
5585
ASSERT(str->gld_device == dev);
usr/src/uts/common/io/gld.c
5586
ASSERT(str->gld_mac_info == NULL);
usr/src/uts/common/io/gld.c
5587
ASSERT(str->gld_qptr != NULL);
usr/src/uts/common/io/gld.c
5588
ASSERT(str->gld_minor >= GLD_MIN_CLONE_MINOR);
usr/src/uts/common/io/gld.c
5589
ASSERT(str->gld_multicnt == 0);
usr/src/uts/common/io/gld.c
5590
ASSERT(str->gld_mcast == NULL);
usr/src/uts/common/io/gld.c
5591
ASSERT(!(str->gld_flags &
usr/src/uts/common/io/gld.c
5593
ASSERT(str->gld_sap == 0);
usr/src/uts/common/io/gld.c
5594
ASSERT(str->gld_state == DL_UNATTACHED);
usr/src/uts/common/io/gld.c
5620
for (str = vlan->gldv_str_next;
usr/src/uts/common/io/gld.c
5621
str !=
usr/src/uts/common/io/gld.c
5623
str = str->gld_next) {
usr/src/uts/common/io/gld.c
5624
ASSERT(str->gld_device == dev);
usr/src/uts/common/io/gld.c
5625
ASSERT(str->gld_mac_info ==
usr/src/uts/common/io/gld.c
5627
ASSERT(str->gld_qptr != NULL);
usr/src/uts/common/io/gld.c
5628
ASSERT(str->gld_minor >=
usr/src/uts/common/io/gld.c
5631
str->gld_multicnt == 0 ||
usr/src/uts/common/io/gld.c
5632
str->gld_mcast);
usr/src/uts/common/io/hxge/hxge_fm.c
329
err_str = ereport->str;
usr/src/uts/common/io/hxge/hxge_fm.h
60
char *str;
usr/src/uts/common/io/ib/clients/daplt/daplt.c
9864
daplka_dbglog(char *str)
usr/src/uts/common/io/ib/clients/daplt/daplt.c
9881
length = strlen(str);
usr/src/uts/common/io/ib/clients/daplt/daplt.c
9887
bcopy(str, daplka_dbgbuf + daplka_dbgnext, remlen);
usr/src/uts/common/io/ib/clients/daplt/daplt.c
9889
str += remlen;
usr/src/uts/common/io/ib/clients/daplt/daplt.c
9893
bcopy(str, daplka_dbgbuf + daplka_dbgnext, length);
usr/src/uts/common/io/ib/clients/eoib/eib_cmn.c
161
char *str;
usr/src/uts/common/io/ib/clients/eoib/eib_cmn.c
250
EIB_PROP_GW_SYS_NAME, &str);
usr/src/uts/common/io/ib/clients/eoib/eib_cmn.c
251
ss->ei_gw_props->pp_gw_system_name = (uint8_t *)str;
usr/src/uts/common/io/ib/clients/eoib/eib_cmn.c
254
EIB_PROP_GW_PORT_NAME, &str);
usr/src/uts/common/io/ib/clients/eoib/eib_cmn.c
255
ss->ei_gw_props->pp_gw_port_name = (uint8_t *)str;
usr/src/uts/common/io/ib/clients/eoib/eib_cmn.c
258
EIB_PROP_GW_VENDOR_ID, &str);
usr/src/uts/common/io/ib/clients/eoib/eib_cmn.c
259
ss->ei_gw_props->pp_gw_vendor_id = (uint8_t *)str;
usr/src/uts/common/io/ib/clients/eoib/eib_cmn.c
273
char *str;
usr/src/uts/common/io/ib/clients/eoib/eib_cmn.c
338
DDI_PROP_DONTPASS | DDI_PROP_NOTPROM, EIB_PROP_GW_SYS_NAME, &str);
usr/src/uts/common/io/ib/clients/eoib/eib_cmn.c
342
gwp->pp_gw_system_name = (uint8_t *)str;
usr/src/uts/common/io/ib/clients/eoib/eib_cmn.c
347
DDI_PROP_DONTPASS | DDI_PROP_NOTPROM, EIB_PROP_GW_PORT_NAME, &str);
usr/src/uts/common/io/ib/clients/eoib/eib_cmn.c
351
gwp->pp_gw_port_name = (uint8_t *)str;
usr/src/uts/common/io/ib/clients/eoib/eib_cmn.c
356
DDI_PROP_DONTPASS | DDI_PROP_NOTPROM, EIB_PROP_GW_VENDOR_ID, &str);
usr/src/uts/common/io/ib/clients/eoib/eib_cmn.c
360
gwp->pp_gw_vendor_id = (uint8_t *)str;
usr/src/uts/common/io/idm/idm_text.c
1032
textbuf_strcpy(idm_textbuf_t *itb, char *str)
usr/src/uts/common/io/idm/idm_text.c
1034
textbuf_memcpy(itb, str, strlen(str));
usr/src/uts/common/io/idm/idm_text.c
1128
idm_strnlen(const char *str, size_t maxlen)
usr/src/uts/common/io/idm/idm_text.c
1132
ptr = memchr(str, 0, maxlen);
usr/src/uts/common/io/idm/idm_text.c
1136
return ((uintptr_t)ptr - (uintptr_t)str);
usr/src/uts/common/io/idm/idm_text.c
1325
char *str;
usr/src/uts/common/io/idm/idm_text.c
1331
str = kmem_alloc(itb.itb_mem_len, KM_SLEEP);
usr/src/uts/common/io/idm/idm_text.c
1337
(void) strcpy(str, &itb.itb_mem[len+1]);
usr/src/uts/common/io/idm/idm_text.c
1340
return (str);
usr/src/uts/common/io/idm/idm_text.c
222
static void textbuf_strcpy(idm_textbuf_t *itb, char *str);
usr/src/uts/common/io/idm/idm_text.c
235
static size_t idm_strnlen(const char *str, size_t maxlen);
usr/src/uts/common/io/idm/idm_text.c
937
char str[16];
usr/src/uts/common/io/idm/idm_text.c
949
(void) sprintf(str, "%llu", (u_longlong_t)value);
usr/src/uts/common/io/idm/idm_text.c
950
textbuf_strcpy(itb, str);
usr/src/uts/common/io/igc/igc_osdep.h
88
#define DEBUGOUT(str) igc_core_log(hw, str)
usr/src/uts/common/io/igc/igc_osdep.h
89
#define DEBUGOUT1(str, d1) igc_core_log(hw, str, d1)
usr/src/uts/common/io/igc/igc_osdep.h
90
#define DEBUGOUT2(str, d1, d2) igc_core_log(hw, str, d1, d2)
usr/src/uts/common/io/igc/igc_osdep.h
91
#define DEBUGFUNC(str) igc_core_log(hw, str)
usr/src/uts/common/io/ixgbe/core/ixgbe_common.h
160
u8 build, u8 ver, u16 len, const char *str);
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.h
69
u8 build, u8 ver, u16 len, const char *str);
usr/src/uts/common/io/kstat.c
254
kn->value.str.addr.ptr32 =
usr/src/uts/common/io/kstat.c
587
knew->value.str.addr.ptr32;
usr/src/uts/common/io/lofi.c
2940
char namebuf[MAXNAMELEN], *str;
usr/src/uts/common/io/lofi.c
2961
nvlist_lookup_string(nvl, DEV_NAME, &str) == 0 &&
usr/src/uts/common/io/lofi.c
2962
strncmp(str, "/dev/" LOFI_CHAR_NAME,
usr/src/uts/common/io/lofi.c
2964
(void) strlcpy(klip->li_devpath, str,
usr/src/uts/common/io/mac/mac_provider.c
1517
mac_prop_info_set_default_str(mac_prop_info_handle_t ph, const char *str)
usr/src/uts/common/io/mac/mac_provider.c
1525
if (strlen(str) >= pr->pr_default_size)
usr/src/uts/common/io/mac/mac_provider.c
1528
(void) strlcpy(pr->pr_default, str, pr->pr_default_size);
usr/src/uts/common/io/mega_sas/megaraid_sas.h
1017
char str[96];
usr/src/uts/common/io/mega_sas/megaraid_sas.h
1027
char str[64];
usr/src/uts/common/io/mlxcx/mlxcx.c
1522
const char *str;
usr/src/uts/common/io/mlxcx/mlxcx.c
1542
str = "???";
usr/src/uts/common/io/mlxcx/mlxcx.c
1547
str = "WRITE_FAILURE";
usr/src/uts/common/io/mlxcx/mlxcx.c
1553
eq->mleq_num, str, ctx.mleqc_status);
usr/src/uts/common/io/mlxcx/mlxcx.c
1555
eq->mleq_intr_index, ctx.mleqc_status, str);
usr/src/uts/common/io/mlxcx/mlxcx.c
1580
const char *str, *type;
usr/src/uts/common/io/mlxcx/mlxcx.c
1615
str = "???";
usr/src/uts/common/io/mlxcx/mlxcx.c
1621
str = "OVERFLOW";
usr/src/uts/common/io/mlxcx/mlxcx.c
1624
str = "WRITE_FAIL";
usr/src/uts/common/io/mlxcx/mlxcx.c
1627
str = "INVALID";
usr/src/uts/common/io/mlxcx/mlxcx.c
1633
cq->mlcq_num, str, v);
usr/src/uts/common/io/mlxcx/mlxcx.c
1635
type, cq->mlcq_num, v, str);
usr/src/uts/common/io/mr_sas/mr_sas.h
1703
char str[96];
usr/src/uts/common/io/mr_sas/mr_sas.h
1713
char str[64];
usr/src/uts/common/io/nvme/nvme.c
3837
nvme_strlen(const char *str, size_t len)
usr/src/uts/common/io/nvme/nvme.c
3842
while (str[--len] == ' ')
usr/src/uts/common/io/nxge/nxge_fm.c
525
err_str = ereport->str;
usr/src/uts/common/io/overlay/overlay_prop.c
103
overlay_prop_set_range_str(overlay_prop_handle_t phdl, const char *str)
usr/src/uts/common/io/overlay/overlay_prop.c
105
size_t len = strlen(str) + 1; /* Account for a null terminator */
usr/src/uts/common/io/overlay/overlay_prop.c
118
strlcpy((char *)&pstr->mpur_data[pstr->mpur_nextbyte], str,
usr/src/uts/common/io/ppm/ppm.c
1079
char *str = "ppm_manage_cpus";
usr/src/uts/common/io/ppm/ppm.c
1111
"from %d to %d", str, (void *)dip, old, new))
usr/src/uts/common/io/ppm/ppm.c
1119
PPMD(D_CPU, ("%s: already at power level %d\n", str, new))
usr/src/uts/common/io/ppm/ppm.c
1135
"level %d yet.\n", str, new))
usr/src/uts/common/io/ppm/ppm.c
1146
"need pm_rescan\n", str, PM_NAME(cpup->dip),
usr/src/uts/common/io/ppm/ppm.c
1154
str, ppmd->path, ppmd->level, new))
usr/src/uts/common/io/ppm/ppm.c
1179
str, cpup->path, old, new))
usr/src/uts/common/io/ppm/ppm.c
1262
char *str = "ppm_bringup_domains";
usr/src/uts/common/io/ppm/ppm.c
1267
PPMD(D_CPR, ("%s[%d]: enter\n", str, ++ppmbringup))
usr/src/uts/common/io/ppm/ppm.c
1294
PPMD(D_CPR, ("%s[%d]: exit\n", str, ppmbringup))
usr/src/uts/common/io/ppm/ppm.c
1307
char *str = "ppm_sync_bookkeeping";
usr/src/uts/common/io/ppm/ppm.c
1312
PPMD(D_CPR, ("%s[%d]: enter\n", str, ++ppmsyncbp))
usr/src/uts/common/io/ppm/ppm.c
1348
PPMD(D_CPR, ("%s[%d]: exit\n", str, ppmsyncbp))
usr/src/uts/common/io/ppm/ppm.c
1518
char *str = "ppm_manage_fet";
usr/src/uts/common/io/ppm/ppm.c
1545
str, reqp->request_type, PM_NAME(dip), PM_ADDR(dip)))
usr/src/uts/common/io/ppm/ppm.c
1554
" found for cmpt(%d)", str, (void *)dip, old, new, cmpt))
usr/src/uts/common/io/ppm/ppm.c
1560
"status %s\n", str, PM_NAME(dip), PM_ADDR(dip),
usr/src/uts/common/io/ppm/ppm.c
1677
char *str = "ppm_fetset";
usr/src/uts/common/io/ppm/ppm.c
1690
str, domp->name))
usr/src/uts/common/io/ppm/ppm.c
1741
str, domp->dc->method))
usr/src/uts/common/io/ppm/ppm.c
1745
PPMD(D_FET, ("%s: %s domain(%s) FET from %s to %s\n", str,
usr/src/uts/common/io/ppm/ppm.c
1781
char *str = "ppm_fetget";
usr/src/uts/common/io/ppm/ppm.c
1789
str, domp->name))
usr/src/uts/common/io/ppm/ppm.c
1794
"defined, found only one in domain(%s)", str, domp->name);
usr/src/uts/common/io/ppm/ppm.c
1808
str, ret))
usr/src/uts/common/io/ppm/ppm.c
1816
PPMD(D_FET, ("%s: %s domain FET %s\n", str, domp->name,
usr/src/uts/common/io/ppm/ppm.c
1828
str, ret))
usr/src/uts/common/io/ppm/ppm.c
1836
PPMD(D_FET, ("%s: %s domain FET %s\n", str, domp->name,
usr/src/uts/common/io/ppm/ppm.c
1843
str, domp->dc->method))
usr/src/uts/common/io/ppm/ppm.c
1858
char *str = "ppm_switch_clock";
usr/src/uts/common/io/ppm/ppm.c
1871
str, domp->name))
usr/src/uts/common/io/ppm/ppm.c
1909
PPMD(D_PCI, ("%s: %s pci clock %s for domain (%s)\n", str,
usr/src/uts/common/io/ppm/ppm.c
1918
str, dc->method))
usr/src/uts/common/io/ppm/ppm.c
1940
char *str = "ppm_manage_pci";
usr/src/uts/common/io/ppm/ppm.c
1975
" found for cmpt(%d)", str, (void *)dip, old, new, cmpt))
usr/src/uts/common/io/ppm/ppm.c
1980
PPMD(D_PCI, ("%s: %s, dev(%s), c%d, old %d, new %d\n", str,
usr/src/uts/common/io/ppm/ppm.c
2083
char *str = "ppm_manage_pcie";
usr/src/uts/common/io/ppm/ppm.c
2118
" found for cmpt(%d)", str, (void *)dip, old, new, cmpt))
usr/src/uts/common/io/ppm/ppm.c
2123
PPMD(D_PCI, ("%s: %s, dev(%s), c%d, old %d, new %d\n", str,
usr/src/uts/common/io/ppm/ppm.c
2224
char *str = "ppm_gpioset";
usr/src/uts/common/io/ppm/ppm.c
2235
str, domp->name))
usr/src/uts/common/io/ppm/ppm.c
2264
"poll-mode.\n", str))
usr/src/uts/common/io/ppm/ppm.c
2275
str, (ret == 0) ? "turned" : "FAILed to turn",
usr/src/uts/common/io/ppm/ppm.c
2291
str, (ret == 0) ? "turned" : "FAILed to turn",
usr/src/uts/common/io/ppm/ppm.c
2300
str, domp->dc->method))
usr/src/uts/common/io/ppm/ppm.c
2319
char *str = "ppm_pcie_pwr";
usr/src/uts/common/io/ppm/ppm.c
2354
str, domp->name))
usr/src/uts/common/io/ppm/ppm.c
2365
str, domp->name))
usr/src/uts/common/io/ppm/ppm.c
2373
str, domp->name))
usr/src/uts/common/io/ppm/ppm.c
2382
str, domp->name))
usr/src/uts/common/io/ppm/ppm.c
2390
str, domp->name))
usr/src/uts/common/io/ppm/ppm.c
2398
str, domp->name))
usr/src/uts/common/io/ppm/ppm.c
2406
str, domp->name))
usr/src/uts/common/io/ppm/ppm.c
2429
"root complex nexus FAILed\n", str))
usr/src/uts/common/io/ppm/ppm.c
2447
str, domp->name, (domp->status == PPMD_ON) ? "ON" : "OFF",
usr/src/uts/common/io/ppm/ppm.c
2464
char *str = "ppm_set_level";
usr/src/uts/common/io/ppm/ppm.c
2473
str, ppmd->path, change, ppmd->level, level, ret))
usr/src/uts/common/io/ppm/ppm.c
2595
char *str = "ppm_power_up_domain";
usr/src/uts/common/io/ppm/ppm.c
2606
str, PM_NAME(dip), PM_ADDR(dip)))
usr/src/uts/common/io/ppm/ppm.c
2609
"for %s@%s\n", str, PM_NAME(dip),
usr/src/uts/common/io/ppm/ppm.c
2621
"%s@%s\n", str, PM_NAME(dip),
usr/src/uts/common/io/ppm/ppm.c
2625
"for %s@%s\n", str, PM_NAME(dip),
usr/src/uts/common/io/ppm/ppm.c
2636
"%s@%s\n", str, PM_NAME(dip),
usr/src/uts/common/io/ppm/ppm.c
2640
"for %s@%s\n", str, PM_NAME(dip),
usr/src/uts/common/io/ppm/ppm.c
2663
char *str = "ppm_power_down_domain";
usr/src/uts/common/io/ppm/ppm.c
2679
str, PM_NAME(dip), PM_ADDR(dip)))
usr/src/uts/common/io/ppm/ppm.c
2682
" %s@%s\n", str, PM_NAME(dip),
usr/src/uts/common/io/ppm/ppm.c
2696
str, PM_NAME(dip), PM_ADDR(dip)))
usr/src/uts/common/io/ppm/ppm.c
2699
"for %s@%s\n", str, PM_NAME(dip),
usr/src/uts/common/io/ppm/ppm.c
2712
str, PM_NAME(dip), PM_ADDR(dip)))
usr/src/uts/common/io/ppm/ppm.c
2715
"for %s@%s\n", str, PM_NAME(dip),
usr/src/uts/common/io/ppm/ppm.c
288
char *str = "ppm_attach";
usr/src/uts/common/io/ppm/ppm.c
294
PPMD(D_ATTACH, ("%s: attaching ...\n", str))
usr/src/uts/common/io/ppm/ppm.c
298
PPMD(D_ATTACH, ("%s: Resuming ...\n", str))
usr/src/uts/common/io/ppm/ppm.c
312
PPMD(D_ATTACH, ("%s: Already attached !", str))
usr/src/uts/common/io/ppm/ppm.c
318
PPMD(D_ATTACH, ("%s: soft states alloc error!\n", str))
usr/src/uts/common/io/ppm/ppm.c
326
PPMD(D_ATTACH, ("%s: can't create minor node!\n", str))
usr/src/uts/common/io/ppm/ppm.c
392
char *str = "ppm_detach";
usr/src/uts/common/io/ppm/ppm.c
397
PPMD(D_DETACH, ("%s: detach not allowed.\n", str))
usr/src/uts/common/io/ppm/ppm.c
401
PPMD(D_DETACH, ("%s: suspending ...\n", str))
usr/src/uts/common/io/ppm/ppm.c
450
char *str = "ppm_ioctl";
usr/src/uts/common/io/ppm/ppm.c
457
str, dev, cmd, mode))
usr/src/uts/common/io/ppm/ppm.c
478
str, __LINE__))
usr/src/uts/common/io/ppm/ppm.c
485
PPMD(D_IOCTL, ("%s: no such domain %s\n", str, domain))
usr/src/uts/common/io/ppm/ppm.c
530
str, __LINE__))
usr/src/uts/common/io/ppm/ppm.c
557
str, __LINE__))
usr/src/uts/common/io/ppm/ppm.c
569
PPMD(D_IOCTL, ("%s: buffer too small\n", str))
usr/src/uts/common/io/ppm/ppm.c
579
" \n", str, __LINE__))
usr/src/uts/common/io/ppm/ppm.c
609
str, __LINE__))
usr/src/uts/common/io/ppm/ppm.c
639
PPMD(D_IOCTL, ("%s: buffer overflow\n", str))
usr/src/uts/common/io/ppm/ppm.c
656
" \n", str, __LINE__))
usr/src/uts/common/io/ppm/ppm.c
698
str, __LINE__))
usr/src/uts/common/io/ppm/ppm.c
733
str, __LINE__))
usr/src/uts/common/io/ppm/ppm.c
740
PPMD(D_IOCTL, ("%s: unsupported ioctl command(%d)\n", str, cmd))
usr/src/uts/common/io/ppm/ppm.c
772
char *str = "ppm_ctlops";
usr/src/uts/common/io/ppm/ppm.c
777
str, ddi_binding_name(rdip), ctlstr))
usr/src/uts/common/io/ppm/ppm.c
967
"rv %d\n", str, PM_NAME(rdip), PM_ADDR(rdip),
usr/src/uts/common/io/ppm/ppm_subr.c
1092
char *str = "ppm_parse_dc";
usr/src/uts/common/io/ppm/ppm_subr.c
1233
"file!", str, dclist[i]);
usr/src/uts/common/io/ppm/ppm_subr.c
1252
char *str = "ppm_lookup_dc";
usr/src/uts/common/io/ppm/ppm_subr.c
1300
PPMD(D_PPMDC, ("%s: cmd(%d) unrecognized\n", str, cmd))
usr/src/uts/common/io/ppm/ppm_subr.c
1357
char *str;
usr/src/uts/common/io/ppm/ppm_subr.c
1397
return (ccp->str);
usr/src/uts/common/io/ppm/ppm_subr.c
158
char *str = "ppm_lookup_hndl";
usr/src/uts/common/io/ppm/ppm_subr.c
176
"domain %s.\n", str, key_path, domp->name))
usr/src/uts/common/io/ppm/ppm_subr.c
192
str, key_path, domp->name))
usr/src/uts/common/io/ppm/ppm_subr.c
200
PPMD(D_PPMDC, ("%s: Miss(dc_path:%s)\n", str, key_path))
usr/src/uts/common/io/ppm/ppm_subr.c
230
char *str = "ppm_create_db";
usr/src/uts/common/io/ppm/ppm_subr.c
255
str, PPM_DOMAIN_PROP))
usr/src/uts/common/io/ppm/ppm_subr.c
296
str, modeldata.name))
usr/src/uts/common/io/ppm/ppm_subr.c
329
str, domp->name, domp->propname))
usr/src/uts/common/io/ppm/ppm_subr.c
345
str, devdata.name))
usr/src/uts/common/io/ppm/ppm_subr.c
355
str, devdata.name, db->name))
usr/src/uts/common/io/ppm/ppm_subr.c
73
char *str = "ppm_get_confdata";
usr/src/uts/common/io/ppm/ppm_subr.c
792
char *str = "ppm_init_cb";
usr/src/uts/common/io/ppm/ppm_subr.c
820
"be offline.", str, domp->name);
usr/src/uts/common/io/ppm/ppm_subr.c
838
char *str = "ppm_init_lyr";
usr/src/uts/common/io/ppm/ppm_subr.c
84
str, cinfo->name, err))
usr/src/uts/common/io/ppm/ppm_subr.c
846
"failed (err=%d)", str, err);
usr/src/uts/common/io/ppp/spppcomp/zlib.c
813
#define INSERT_STRING(s, str, match_head) \
usr/src/uts/common/io/ppp/spppcomp/zlib.c
814
(UPDATE_HASH(s, s->ins_h, s->window[(str) + (MIN_MATCH-1)]), \
usr/src/uts/common/io/ppp/spppcomp/zlib.c
816
s->head[s->ins_h] = (Pos)(str))
usr/src/uts/common/io/ppp/spppcomp/zlib.c
818
#define INSERT_STRING(s, str, match_head) \
usr/src/uts/common/io/ppp/spppcomp/zlib.c
819
(UPDATE_HASH(s, s->ins_h, s->window[(str) + (MIN_MATCH-1)]), \
usr/src/uts/common/io/ppp/spppcomp/zlib.c
820
s->prev[(str) & s->w_mask] = match_head = s->head[s->ins_h], \
usr/src/uts/common/io/ppp/spppcomp/zlib.c
821
s->head[s->ins_h] = (Pos)(str))
usr/src/uts/common/io/pshot.c
3109
pshot_str2nt(char *str)
usr/src/uts/common/io/pshot.c
3114
if (strcmp(pshot_nodetypes[i].name, str) == 0)
usr/src/uts/common/io/pshot.c
3217
char *str;
usr/src/uts/common/io/pshot.c
3257
if ((str = pshot_str2nt(nt_arr[i])) == NULL)
usr/src/uts/common/io/pshot.c
3259
str = nt_arr[i];
usr/src/uts/common/io/pshot.c
3262
devarr[i].nodetype = i_ddi_strdup(str, KM_SLEEP);
usr/src/uts/common/io/pshot.c
3363
strtoi(char *str)
usr/src/uts/common/io/pshot.c
3368
for (val = 0, c = *str++; c >= '0' && c <= '9'; c = *str++) {
usr/src/uts/common/io/ptms_conf.c
643
ptms_log(char *str, uint_t arg)
usr/src/uts/common/io/ptms_conf.c
647
cmn_err(CE_CONT, str, arg);
usr/src/uts/common/io/ptms_conf.c
650
str, arg);
usr/src/uts/common/io/ptms_conf.c
652
(void) strlog(PTMOD_ID, -1, 0, SL_TRACE, str, arg);
usr/src/uts/common/io/ptms_conf.c
657
ptms_logp(char *str, uintptr_t arg)
usr/src/uts/common/io/ptms_conf.c
661
cmn_err(CE_CONT, str, arg);
usr/src/uts/common/io/ptms_conf.c
664
str, arg);
usr/src/uts/common/io/ptms_conf.c
666
(void) strlog(PTMOD_ID, -1, 0, SL_TRACE, str, arg);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
1957
const char *str)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
1960
OSAL_STRCPY(dump_buf, str);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
1962
return (u32)OSAL_STRLEN(str) + 1;
usr/src/uts/common/io/qede/579xx/hsi/mcp/bdn.h
101
u8 str[ENCLOSURE_ID_LENGTH];
usr/src/uts/common/io/qede/579xx/hsi/mcp/bdn.h
68
u8 str[SERVER_DESCRIPTION_MAX_LENGTH];
usr/src/uts/common/io/qede/579xx/hsi/mcp/bdn.h
74
u8 str[SERVER_UUID_LENGTH];
usr/src/uts/common/io/qede/579xx/hsi/mcp/bdn.h
87
u8 str[SLOT_TYPE_NUM_MAX_LENGTH];
usr/src/uts/common/io/qede/579xx/hsi/mcp/bdn.h
95
u8 str[ILO_MGMT_MAX_NUM_OF_ADDR][ILO_MGMT_ADDR_MAX_LENGTH];
usr/src/uts/common/io/sata/adapters/ahci/ahci.c
1408
#define SET_PORTSTR(str, addrp) \
usr/src/uts/common/io/sata/adapters/ahci/ahci.c
1410
(void) sprintf((str), "%d", (addrp)->aa_port); \
usr/src/uts/common/io/sata/adapters/ahci/ahci.c
1412
(void) sprintf((str), "%d (pmult)", (addrp)->aa_port); \
usr/src/uts/common/io/sata/adapters/ahci/ahci.c
1414
(void) sprintf((str), "%d:%d", (addrp)->aa_port, \
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_login.c
1921
char *str = param;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_login.c
1933
while (*str) {
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_login.c
1940
if (*str != *text) {
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_login.c
1943
str++;
usr/src/uts/common/io/scsi/conf/scsi_confsubr.c
1096
uint32_t str;
usr/src/uts/common/io/scsi/conf/scsi_confsubr.c
1152
str = scsi_test(inq_pkt, STC_PROBE_FIRST_INQ);
usr/src/uts/common/io/scsi/conf/scsi_confsubr.c
1153
if (SCSI_TEST_FAILURE(str)) {
usr/src/uts/common/io/scsi/conf/scsi_confsubr.c
1154
if (str == SCSI_TEST_CMD_INCOMPLETE) {
usr/src/uts/common/io/scsi/conf/scsi_confsubr.c
1162
str = scsi_test(inq_pkt, STC_PROBE_FIRST_INQ_RETRY);
usr/src/uts/common/io/scsi/conf/scsi_confsubr.c
1163
if (SCSI_TEST_FAILURE(str)) {
usr/src/uts/common/io/scsi/conf/scsi_confsubr.c
1173
if (str == SCSI_TEST_CMPLT_GOOD)
usr/src/uts/common/io/scsi/conf/scsi_confsubr.c
1184
str = scsi_test(inq_pkt, STC_PROBE_PARTIAL_SUCCESS);
usr/src/uts/common/io/scsi/conf/scsi_confsubr.c
1185
if (SCSI_TEST_FAILURE(str)) {
usr/src/uts/common/io/scsi/conf/scsi_confsubr.c
1186
if (str == SCSI_TEST_CMD_INCOMPLETE)
usr/src/uts/common/io/scsi/conf/scsi_confsubr.c
1198
if (str == SCSI_TEST_CMPLT_BUSY) {
usr/src/uts/common/io/scsi/conf/scsi_confsubr.c
1209
if (str == SCSI_TEST_CMPLT_CHECK &&
usr/src/uts/common/io/scsi/conf/scsi_confsubr.c
1272
str = scsi_test(inq_pkt, STC_PROBE_CHK_CLEARED);
usr/src/uts/common/io/scsi/conf/scsi_confsubr.c
1273
if (SCSI_TEST_FAILURE(str)) {
usr/src/uts/common/io/scsi/conf/scsi_confsubr.c
1278
if (str == SCSI_TEST_CMPLT_BUSY) {
usr/src/uts/common/io/scsi/conf/scsi_confsubr.c
1292
if (str == SCSI_TEST_CMPLT_CHECK) {
usr/src/uts/common/io/scsi/conf/scsi_confsubr.c
1303
str = scsi_test(inq_pkt, STC_PROBE_INQ_FINAL);
usr/src/uts/common/io/scsi/conf/scsi_confsubr.c
1304
if (SCSI_TEST_FAILURE(str)) {
usr/src/uts/common/io/scsi/conf/scsi_confsubr.c
1307
} else if (str == SCSI_TEST_CMPLT_CHECK) {
usr/src/uts/common/io/skd/skd.c
121
static char *skd_pci_info(struct skd_device *skdev, char *str, size_t len);
usr/src/uts/common/io/skd/skd.c
3752
skd_pci_info(struct skd_device *skdev, char *str, size_t len)
usr/src/uts/common/io/skd/skd.c
3756
str[0] = '\0';
usr/src/uts/common/io/skd/skd.c
3768
(void) snprintf(str, len, "PCIe (%s rev %d)",
usr/src/uts/common/io/skd/skd.c
3774
return (str);
usr/src/uts/common/io/str_conf.c
205
fmodsw_register(const char *name, struct streamtab *str, int flag)
usr/src/uts/common/io/str_conf.c
222
if ((err = devflg_to_qflag(str, flag, &qflag, &sqtype)) != 0)
usr/src/uts/common/io/str_conf.c
225
fp->f_str = str;
usr/src/uts/common/io/str_conf.c
229
fp->f_dmp = hold_dm(str, qflag, sqtype);
usr/src/uts/common/io/timod.c
2158
tilog(char *str, t_scalar_t arg)
usr/src/uts/common/io/timod.c
2162
cmn_err(CE_CONT, str, arg);
usr/src/uts/common/io/timod.c
2165
str, arg);
usr/src/uts/common/io/timod.c
2167
(void) strlog(TIMOD_ID, -1, 0, SL_TRACE, str, arg);
usr/src/uts/common/io/timod.c
2172
tilogp(char *str, uintptr_t arg)
usr/src/uts/common/io/timod.c
2176
cmn_err(CE_CONT, str, arg);
usr/src/uts/common/io/timod.c
2179
str, arg);
usr/src/uts/common/io/timod.c
2181
(void) strlog(TIMOD_ID, -1, 0, SL_TRACE, str, arg);
usr/src/uts/common/io/usb/clients/printer/usbprn.c
2863
usbprn_print_long(usbprn_state_t *usbprnp, char *str, int len)
usr/src/uts/common/io/usb/clients/printer/usbprn.c
2865
char *tmp = str;
usr/src/uts/common/io/usb/clients/usbser/usbser.c
3310
char *str;
usr/src/uts/common/io/usb/clients/usbser/usbser.c
3313
case M_STOP: str = "M_STOP"; break;
usr/src/uts/common/io/usb/clients/usbser/usbser.c
3314
case M_START: str = "M_START"; break;
usr/src/uts/common/io/usb/clients/usbser/usbser.c
3315
case M_STOPI: str = "M_STOPI"; break;
usr/src/uts/common/io/usb/clients/usbser/usbser.c
3316
case M_STARTI: str = "M_STARTI"; break;
usr/src/uts/common/io/usb/clients/usbser/usbser.c
3317
case M_DATA: str = "M_DATA"; break;
usr/src/uts/common/io/usb/clients/usbser/usbser.c
3318
case M_DELAY: str = "M_DELAY"; break;
usr/src/uts/common/io/usb/clients/usbser/usbser.c
3319
case M_BREAK: str = "M_BREAK"; break;
usr/src/uts/common/io/usb/clients/usbser/usbser.c
3320
case M_IOCTL: str = "M_IOCTL"; break;
usr/src/uts/common/io/usb/clients/usbser/usbser.c
3321
case M_IOCDATA: str = "M_IOCDATA"; break;
usr/src/uts/common/io/usb/clients/usbser/usbser.c
3322
case M_FLUSH: str = "M_FLUSH"; break;
usr/src/uts/common/io/usb/clients/usbser/usbser.c
3323
case M_CTL: str = "M_CTL"; break;
usr/src/uts/common/io/usb/clients/usbser/usbser.c
3324
case M_READ: str = "M_READ"; break;
usr/src/uts/common/io/usb/clients/usbser/usbser.c
3325
default: str = "unknown"; break;
usr/src/uts/common/io/usb/clients/usbser/usbser.c
3328
return (str);
usr/src/uts/common/io/usb/clients/usbser/usbser.c
3334
char *str;
usr/src/uts/common/io/usb/clients/usbser/usbser.c
3337
case TCGETA: str = "TCGETA"; break;
usr/src/uts/common/io/usb/clients/usbser/usbser.c
3338
case TCSETA: str = "TCSETA"; break;
usr/src/uts/common/io/usb/clients/usbser/usbser.c
3339
case TCSETAF: str = "TCSETAF"; break;
usr/src/uts/common/io/usb/clients/usbser/usbser.c
3340
case TCSETAW: str = "TCSETAW"; break;
usr/src/uts/common/io/usb/clients/usbser/usbser.c
3341
case TCSBRK: str = "TCSBRK"; break;
usr/src/uts/common/io/usb/clients/usbser/usbser.c
3342
case TCXONC: str = "TCXONC"; break;
usr/src/uts/common/io/usb/clients/usbser/usbser.c
3343
case TCFLSH: str = "TCFLSH"; break;
usr/src/uts/common/io/usb/clients/usbser/usbser.c
3344
case TCGETS: str = "TCGETS"; break;
usr/src/uts/common/io/usb/clients/usbser/usbser.c
3345
case TCSETS: str = "TCSETS"; break;
usr/src/uts/common/io/usb/clients/usbser/usbser.c
3346
case TCSETSF: str = "TCSETSF"; break;
usr/src/uts/common/io/usb/clients/usbser/usbser.c
3347
case TCSETSW: str = "TCSETSW"; break;
usr/src/uts/common/io/usb/clients/usbser/usbser.c
3348
case TIOCSBRK: str = "TIOCSBRK"; break;
usr/src/uts/common/io/usb/clients/usbser/usbser.c
3349
case TIOCCBRK: str = "TIOCCBRK"; break;
usr/src/uts/common/io/usb/clients/usbser/usbser.c
3350
case TIOCMSET: str = "TIOCMSET"; break;
usr/src/uts/common/io/usb/clients/usbser/usbser.c
3351
case TIOCMBIS: str = "TIOCMBIS"; break;
usr/src/uts/common/io/usb/clients/usbser/usbser.c
3352
case TIOCMBIC: str = "TIOCMBIC"; break;
usr/src/uts/common/io/usb/clients/usbser/usbser.c
3353
case TIOCMGET: str = "TIOCMGET"; break;
usr/src/uts/common/io/usb/clients/usbser/usbser.c
3354
case TIOCSILOOP: str = "TIOCSILOOP"; break;
usr/src/uts/common/io/usb/clients/usbser/usbser.c
3355
case TIOCCILOOP: str = "TIOCCILOOP"; break;
usr/src/uts/common/io/usb/clients/usbser/usbser.c
3356
case TCGETX: str = "TCGETX"; break;
usr/src/uts/common/io/usb/clients/usbser/usbser.c
3357
case TCSETX: str = "TCGETX"; break;
usr/src/uts/common/io/usb/clients/usbser/usbser.c
3358
case TCSETXW: str = "TCGETX"; break;
usr/src/uts/common/io/usb/clients/usbser/usbser.c
3359
case TCSETXF: str = "TCGETX"; break;
usr/src/uts/common/io/usb/clients/usbser/usbser.c
3360
default: str = "unknown"; break;
usr/src/uts/common/io/usb/clients/usbser/usbser.c
3363
return (str);
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
1571
scsa2usb_parse_input_str(char *str, scsa2usb_ov_t *ovp,
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
1580
for (input_field = strtok_r(str, "=", &lasts);
usr/src/uts/common/io/usb/usba/hubdi.c
7997
char *str;
usr/src/uts/common/io/usb/usba/hubdi.c
8016
str = usba_device->usb_mfg_str;
usr/src/uts/common/io/usb/usba/hubdi.c
8020
str = usba_device->usb_product_str;
usr/src/uts/common/io/usb/usba/hubdi.c
8024
str = usba_device->usb_serialno_str;
usr/src/uts/common/io/usb/usba/hubdi.c
8029
str = usba_device->usb_cfg_str_descr[
usr/src/uts/common/io/usb/usba/hubdi.c
8048
size = (str != NULL) ? strlen(str) + 1 : 0;
usr/src/uts/common/io/usb/usba/hubdi.c
8078
if (ddi_copyout((void *)str, ioc.buf,
usr/src/uts/common/io/usb/usba/usba.c
2806
char *tmpbuf, *str;
usr/src/uts/common/io/usb/usba/usba.c
2827
str = kmem_zalloc(l + 1, KM_SLEEP);
usr/src/uts/common/io/usb/usba/usba.c
2829
ud->usb_mfg_str = str;
usr/src/uts/common/io/usb/usba/usba.c
2843
str = kmem_zalloc(l + 1, KM_SLEEP);
usr/src/uts/common/io/usb/usba/usba.c
2845
ud->usb_product_str = str;
usr/src/uts/common/io/usb/usba/usba.c
2859
str = kmem_zalloc(l + 1, KM_SLEEP);
usr/src/uts/common/io/usb/usba/usba.c
2861
ud->usb_serialno_str = str;
usr/src/uts/common/io/usb/usba/usba_devdb.c
117
usba_devdb_get_var_type(char *str)
usr/src/uts/common/io/usb/usba/usba_devdb.c
123
if (strcasecmp(cfgvar->name, str) == 0) {
usr/src/uts/common/io/usb/usba/usbai.c
804
char str[USBA_POWER_STR_SIZE];
usr/src/uts/common/io/usb/usba/usbai.c
829
(void) snprintf(str, USBA_POWER_STR_SIZE, "NAME= %s%d Power",
usr/src/uts/common/io/usb/usba/usbai.c
832
pm_comp[n_prop] = kmem_zalloc(strlen(str) + 1, KM_SLEEP);
usr/src/uts/common/io/usb/usba/usbai.c
833
(void) strcpy(pm_comp[n_prop++], str);
usr/src/uts/common/io/usb/usba/usbai.c
898
(void) snprintf(str, USBA_POWER_STR_SIZE,
usr/src/uts/common/io/usb/usba/usbai.c
901
pm_comp[n_prop] = kmem_zalloc(strlen(str) + 1,
usr/src/uts/common/io/usb/usba/usbai.c
903
(void) strcpy(pm_comp[n_prop++], str);
usr/src/uts/common/io/vscan/vscan_svc.c
1176
vscan_svc_match_ext(char *patn, char *str, int depth)
usr/src/uts/common/io/vscan/vscan_svc.c
1185
return (*str == 0);
usr/src/uts/common/io/vscan/vscan_svc.c
1188
if (*str != 0) {
usr/src/uts/common/io/vscan/vscan_svc.c
1189
str++;
usr/src/uts/common/io/vscan/vscan_svc.c
1200
while (*str) {
usr/src/uts/common/io/vscan/vscan_svc.c
1201
if (vscan_svc_match_ext(patn, str, depth + 1))
usr/src/uts/common/io/vscan/vscan_svc.c
1203
str++;
usr/src/uts/common/io/vscan/vscan_svc.c
1208
if (*str != *patn) {
usr/src/uts/common/io/vscan/vscan_svc.c
1209
c1 = *str;
usr/src/uts/common/io/vscan/vscan_svc.c
1217
str++;
usr/src/uts/common/krtld/bootrd.c
56
BRD_MOUNTROOT(struct boot_fs_ops *ops, char *str)
usr/src/uts/common/krtld/bootrd.c
58
return (ops->fsw_mountroot(str));
usr/src/uts/common/krtld/kobj_bootflags.c
159
char **str = &kobj_kmdb_argv[num_O_opt];
usr/src/uts/common/krtld/kobj_bootflags.c
169
*str = kobj_alloc(params.gos_optarglen + 1, KM_TMP);
usr/src/uts/common/krtld/kobj_bootflags.c
170
(void) strncpy(*str, params.gos_optargp,
usr/src/uts/common/krtld/kobj_bootflags.c
172
(*str)[params.gos_optarglen] = '\0';
usr/src/uts/common/ktli/t_kutil.c
255
ktli_log(int level, char *str, int a1)
usr/src/uts/common/ktli/t_kutil.c
258
printf(str, a1);
usr/src/uts/common/nfs/nfs4.h
1175
#define UTF8STRING_FREE(str) { \
usr/src/uts/common/nfs/nfs4.h
1176
kmem_free((str).utf8string_val, (str).utf8string_len); \
usr/src/uts/common/nfs/nfs4.h
1177
(str).utf8string_val = NULL; \
usr/src/uts/common/nfs/nfs4.h
1178
(str).utf8string_len = 0; \
usr/src/uts/common/nfs/nfsid_map.h
136
char str[1];
usr/src/uts/common/nfs/nfsid_map.h
144
((offsetof(mapid_res_t, str[0]) + 1 + (str_length) + 7) & ~ 7)
usr/src/uts/common/nfs/nfsid_map.h
75
char str[1];
usr/src/uts/common/nfs/nfsid_map.h
83
((offsetof(mapid_arg_t, str[0]) + 1 + (str_length) + 7) & ~ 7)
usr/src/uts/common/os/dacf.c
669
char *str;
usr/src/uts/common/os/dacf.c
729
str = kmem_alloc(strlen(mod_name) + 1, KM_SLEEP);
usr/src/uts/common/os/dacf.c
730
(void) strcpy(str, mod_name);
usr/src/uts/common/os/dacf.c
733
if (mod_hash_insert(dacf_module_hash, (mod_hash_key_t)str,
usr/src/uts/common/os/dacf.c
736
kmem_free(str, strlen(str) + 1);
usr/src/uts/common/os/devcfg.c
2637
i_ddi_strdup(const char *str, uint_t flag)
usr/src/uts/common/os/devcfg.c
2641
if (str == NULL)
usr/src/uts/common/os/devcfg.c
2644
copy = kmem_alloc(strlen(str) + 1, flag);
usr/src/uts/common/os/devcfg.c
2648
(void) strcpy(copy, str);
usr/src/uts/common/os/driver.c
460
bdev_print(dev_t dev, caddr_t str)
usr/src/uts/common/os/driver.c
465
return ((*cb->cb_print)(dev, str));
usr/src/uts/common/os/driver_lyr.c
928
i_check_string(char *str, int prop_len)
usr/src/uts/common/os/driver_lyr.c
932
ASSERT(str != NULL);
usr/src/uts/common/os/driver_lyr.c
935
if (str[i] == '\0')
usr/src/uts/common/os/fm.c
228
char *str;
usr/src/uts/common/os/fm.c
300
(void) nvpair_value_string(nvp, &str);
usr/src/uts/common/os/fm.c
302
str ? str : "<NULL>");
usr/src/uts/common/os/ftrace.c
354
ftrace_0(char *str, caddr_t caller)
usr/src/uts/common/os/ftrace.c
375
r->ftr_event = str;
usr/src/uts/common/os/ftrace.c
388
ftrace_1(char *str, ulong_t arg1, caddr_t caller)
usr/src/uts/common/os/ftrace.c
409
r->ftr_event = str;
usr/src/uts/common/os/ftrace.c
423
ftrace_2(char *str, ulong_t arg1, ulong_t arg2, caddr_t caller)
usr/src/uts/common/os/ftrace.c
444
r->ftr_event = str;
usr/src/uts/common/os/ftrace.c
459
ftrace_3(char *str, ulong_t arg1, ulong_t arg2, ulong_t arg3, caddr_t caller)
usr/src/uts/common/os/ftrace.c
480
r->ftr_event = str;
usr/src/uts/common/os/ftrace.c
496
ftrace_3_notick(char *str, ulong_t arg1, ulong_t arg2,
usr/src/uts/common/os/ftrace.c
515
r->ftr_event = str;
usr/src/uts/common/os/iscsiboot_prop.c
53
iscsi_bootprop_print(int level, char *str)
usr/src/uts/common/os/iscsiboot_prop.c
55
if (str == NULL) {
usr/src/uts/common/os/iscsiboot_prop.c
59
cmn_err(level, "%s", str);
usr/src/uts/common/os/modconf.c
552
struct streamtab *str;
usr/src/uts/common/os/modconf.c
623
if ((str = STREAMSTAB(major)) != NULL) { /* streams driver */
usr/src/uts/common/os/modconf.c
625
if ((err = devflg_to_qflag(str, flag, &qflag, &sqtype)) != 0)
usr/src/uts/common/os/modconf.c
629
cdp->d_str = str;
usr/src/uts/common/os/modconf.c
653
struct streamtab *str;
usr/src/uts/common/os/modconf.c
700
if ((str = STREAMSTAB(major)) != NULL) { /* streams driver */
usr/src/uts/common/os/modconf.c
702
ASSERT(cdp->d_str == str);
usr/src/uts/common/os/modctl.c
887
check_esc_sequences(char *str, char *cstr)
usr/src/uts/common/os/modctl.c
893
len = strlen(str);
usr/src/uts/common/os/modctl.c
894
for (i = 0; i < len; i++, str++, cstr++) {
usr/src/uts/common/os/modctl.c
895
if (*str != '\\') {
usr/src/uts/common/os/modctl.c
896
*cstr = *str;
usr/src/uts/common/os/modctl.c
898
p = str + 1;
usr/src/uts/common/os/modctl.c
904
str += 3;
usr/src/uts/common/os/modctl.c
906
*cstr = *str;
usr/src/uts/common/os/pg.c
738
char *str;
usr/src/uts/common/os/pg.c
739
if ((str = PG_POLICY_NAME(pg)) != NULL)
usr/src/uts/common/os/pg.c
740
return (str);
usr/src/uts/common/os/refstr.c
35
refstr_alloc(const char *str)
usr/src/uts/common/os/refstr.c
39
strlen(str) + 1;
usr/src/uts/common/os/refstr.c
45
(void) strcpy(rsp->rs_string, str);
usr/src/uts/common/os/strext.c
101
*str = p;
usr/src/uts/common/os/strext.c
92
stoi(char **str)
usr/src/uts/common/os/strext.c
94
char *p = *str;
usr/src/uts/common/os/strsubr.c
1125
struct streamtab *str;
usr/src/uts/common/os/strsubr.c
1139
str = fp->f_str;
usr/src/uts/common/os/strsubr.c
1157
str = dp->d_str;
usr/src/uts/common/os/strsubr.c
1158
ASSERT(str == STREAMSTAB(major));
usr/src/uts/common/os/strsubr.c
1166
dp->d_dmp = hold_dm(str, qflag, sqtype);
usr/src/uts/common/os/strsubr.c
1176
setq(rq, str->st_rdinit, str->st_wrinit, dmp, qflag, sqtype, B_FALSE);
usr/src/uts/common/os/strsubr.c
1736
struct streamtab *str;
usr/src/uts/common/os/strsubr.c
1881
str = stp->sd_strtab;
usr/src/uts/common/os/strsubr.c
1883
ASSERT(dp->d_str == str);
usr/src/uts/common/os/strsubr.c
1890
dp->d_dmp = hold_dm(str, qflag, sqtype);
usr/src/uts/common/os/strsubr.c
1894
setq(rq, str->st_muxrinit, str->st_muxwinit, dmp, qflag, sqtype,
usr/src/uts/common/os/strsubr.c
2667
hold_dm(struct streamtab *str, uint32_t qflag, uint32_t sqtype)
usr/src/uts/common/os/strsubr.c
2674
ASSERT(str != NULL);
usr/src/uts/common/os/strsubr.c
2679
if (p->dm_str == str) { /* found one */
usr/src/uts/common/os/strsubr.c
2698
dmp->dm_str = str;
usr/src/uts/common/os/strsubr.c
2704
if (p->dm_str == str) { /* already present */
usr/src/uts/common/os/subr.c
267
append_subopt(const char *buf, size_t len, char *str, const char *opt)
usr/src/uts/common/os/subr.c
279
*str++ = ',';
usr/src/uts/common/os/subr.c
280
(void) strcpy(str, opt);
usr/src/uts/common/os/subr.c
281
return (str + l);
usr/src/uts/common/os/sunddi.c
2193
char *str;
usr/src/uts/common/os/sunddi.c
2220
str = ddi_prop_decode_alloc((size_t)size, ddi_prop_free_string);
usr/src/uts/common/os/sunddi.c
2227
tmp = str;
usr/src/uts/common/os/sunddi.c
2234
ddi_prop_free(str);
usr/src/uts/common/os/sunddi.c
2244
*(char **)data = str;
usr/src/uts/common/os/sunddi.c
6168
ddi_soft_state_bystr_zalloc(ddi_soft_state_bystr *state, const char *str)
usr/src/uts/common/os/sunddi.c
6174
ASSERT(sss && str && sss->ss_mod_hash);
usr/src/uts/common/os/sunddi.c
6175
if ((sss == NULL) || (str == NULL) || (sss->ss_mod_hash == NULL))
usr/src/uts/common/os/sunddi.c
6178
dup_str = i_ddi_strdup((char *)str, KM_SLEEP);
usr/src/uts/common/os/sunddi.c
6193
ddi_soft_state_bystr_get(ddi_soft_state_bystr *state, const char *str)
usr/src/uts/common/os/sunddi.c
6198
ASSERT(sss && str && sss->ss_mod_hash);
usr/src/uts/common/os/sunddi.c
6199
if ((sss == NULL) || (str == NULL) || (sss->ss_mod_hash == NULL))
usr/src/uts/common/os/sunddi.c
6203
(mod_hash_key_t)str, (mod_hash_val_t *)&sso) == 0)
usr/src/uts/common/os/sunddi.c
6209
ddi_soft_state_bystr_free(ddi_soft_state_bystr *state, const char *str)
usr/src/uts/common/os/sunddi.c
6214
ASSERT(sss && str && sss->ss_mod_hash);
usr/src/uts/common/os/sunddi.c
6215
if ((sss == NULL) || (str == NULL) || (sss->ss_mod_hash == NULL))
usr/src/uts/common/os/sunddi.c
6219
(mod_hash_key_t)str, (mod_hash_val_t *)&sso);
usr/src/uts/common/os/sunddi.c
6280
i_ddi_strid_alloc(ddi_strid *strid, char *str)
usr/src/uts/common/os/sunddi.c
6286
ASSERT(ss && str);
usr/src/uts/common/os/sunddi.c
6287
if ((ss == NULL) || (str == NULL))
usr/src/uts/common/os/sunddi.c
6313
s = i_ddi_strdup(str, KM_SLEEP);
usr/src/uts/common/os/sunddi.c
6331
ddi_strid_alloc(ddi_strid *strid, char *str)
usr/src/uts/common/os/sunddi.c
6333
return (i_ddi_strid_alloc(strid, str));
usr/src/uts/common/os/sunddi.c
6338
ddi_strid_str2id(ddi_strid *strid, char *str)
usr/src/uts/common/os/sunddi.c
6344
ASSERT(ss && str);
usr/src/uts/common/os/sunddi.c
6345
if (ss && str && (mod_hash_find(ss->strid_bystr,
usr/src/uts/common/os/sunddi.c
6346
(mod_hash_key_t)str, &hv) == 0))
usr/src/uts/common/os/sunddi.c
6356
char *str = NULL;
usr/src/uts/common/os/sunddi.c
6362
str = (char *)hv;
usr/src/uts/common/os/sunddi.c
6363
return (str);
usr/src/uts/common/os/sunddi.c
6371
char *str;
usr/src/uts/common/os/sunddi.c
6378
str = ddi_strid_id2str(strid, id);
usr/src/uts/common/os/sunddi.c
6382
if (str)
usr/src/uts/common/os/sunddi.c
6383
(void) mod_hash_destroy(ss->strid_bystr, (mod_hash_key_t)str);
usr/src/uts/common/os/sunddi.c
9033
ddi_strdup(const char *str, int flag)
usr/src/uts/common/os/sunddi.c
9038
ASSERT(str != NULL);
usr/src/uts/common/os/sunddi.c
9041
n = strlen(str);
usr/src/uts/common/os/sunddi.c
9044
bcopy(str, ptr, n + 1);
usr/src/uts/common/os/sunddi.c
9049
strdup(const char *str)
usr/src/uts/common/os/sunddi.c
9051
return (ddi_strdup(str, KM_SLEEP));
usr/src/uts/common/os/sunddi.c
9055
strfree(char *str)
usr/src/uts/common/os/sunddi.c
9057
ASSERT(str != NULL);
usr/src/uts/common/os/sunddi.c
9058
kmem_free(str, strlen(str) + 1);
usr/src/uts/common/os/sunmdi.c
1672
i_mdi_get_hash_key(char *str)
usr/src/uts/common/os/sunmdi.c
1677
for (p = str; *p != '\0'; p++) {
usr/src/uts/common/os/sunmdi.c
7748
free_string_array(char **str, int nelem)
usr/src/uts/common/os/sunmdi.c
7752
if (str) {
usr/src/uts/common/os/sunmdi.c
7754
if (str[i])
usr/src/uts/common/os/sunmdi.c
7755
kmem_free(str[i], strlen(str[i]) + 1);
usr/src/uts/common/os/sunmdi.c
7757
kmem_free(str, sizeof (char *) * nelem);
usr/src/uts/common/os/zone.c
2672
zone_status_wait_cpr(zone_t *zone, zone_status_t status, char *str)
usr/src/uts/common/os/zone.c
2679
str);
usr/src/uts/common/os/zone.c
4431
char *str;
usr/src/uts/common/os/zone.c
4703
str = kmem_alloc(strlen(zone->zone_name) + 1, KM_SLEEP);
usr/src/uts/common/os/zone.c
4704
(void) strcpy(str, zone->zone_name);
usr/src/uts/common/os/zone.c
4705
(void) mod_hash_insert(zonehashbyname, (mod_hash_key_t)str,
usr/src/uts/common/pcmcia/nexus/pcmcia.c
2330
pcmcia_fix_string(char *str)
usr/src/uts/common/pcmcia/nexus/pcmcia.c
2332
for (; str && *str; str++) {
usr/src/uts/common/pcmcia/nexus/pcmcia.c
2333
switch (*str) {
usr/src/uts/common/pcmcia/nexus/pcmcia.c
2336
*str = '_';
usr/src/uts/common/pcmcia/nexus/pcmcia.c
236
void pcmcia_fix_string(char *str);
usr/src/uts/common/rpc/clnt_cots.c
1676
fbuf = cm_ksp_data->x_server.value.str.addr.ptr;
usr/src/uts/common/rpc/clnt_cots.c
2605
x_server.value.str.addr.ptr != NULL)
usr/src/uts/common/rpc/clnt_cots.c
2607
ks_data))->x_server.value.str.addr.ptr,
usr/src/uts/common/rpc/clnt_cots.c
2875
x_server.value.str.addr.ptr =
usr/src/uts/common/rpc/clnt_perr.c
130
char *str;
usr/src/uts/common/rpc/clnt_perr.c
133
str = kmem_alloc(MAXPATHLEN, KM_SLEEP);
usr/src/uts/common/rpc/clnt_perr.c
134
strstart = str;
usr/src/uts/common/rpc/clnt_perr.c
138
(void) sprintf(str, "%s: ", s);
usr/src/uts/common/rpc/clnt_perr.c
139
str += strlen(str);
usr/src/uts/common/rpc/clnt_perr.c
141
(void) strcpy(str, clnt_sperrno(e.re_status));
usr/src/uts/common/rpc/clnt_perr.c
142
str += strlen(str);
usr/src/uts/common/rpc/clnt_perr.c
165
(void) sprintf(str, "; %s", netdir_sperror());
usr/src/uts/common/rpc/clnt_perr.c
171
(void) sprintf(str, "; %s", t_errlist[e.re_terrno]);
usr/src/uts/common/rpc/clnt_perr.c
173
(void) sprintf(str, "; %d", e.re_terrno);
usr/src/uts/common/rpc/clnt_perr.c
175
str += strlen(str);
usr/src/uts/common/rpc/clnt_perr.c
178
(void) sprintf(str, "; %s", strerror(e.re_errno));
usr/src/uts/common/rpc/clnt_perr.c
180
(void) sprintf(str, "; %d", e.re_errno);
usr/src/uts/common/rpc/clnt_perr.c
189
(void) sprintf(str, "; errno = %s",
usr/src/uts/common/rpc/clnt_perr.c
192
(void) sprintf(str, "; errno = %d", e.re_errno);
usr/src/uts/common/rpc/clnt_perr.c
194
str += strlen(str);
usr/src/uts/common/rpc/clnt_perr.c
198
(void) sprintf(str, "; %s", t_errlist[e.re_terrno]);
usr/src/uts/common/rpc/clnt_perr.c
200
(void) sprintf(str, "; %d", e.re_terrno);
usr/src/uts/common/rpc/clnt_perr.c
206
(void) sprintf(str,
usr/src/uts/common/rpc/clnt_perr.c
214
(void) sprintf(str, "; why = ");
usr/src/uts/common/rpc/clnt_perr.c
215
str += strlen(str);
usr/src/uts/common/rpc/clnt_perr.c
217
(void) sprintf(str, "%s", err);
usr/src/uts/common/rpc/clnt_perr.c
219
(void) sprintf(str,
usr/src/uts/common/rpc/clnt_perr.c
227
(void) sprintf(str,
usr/src/uts/common/rpc/clnt_perr.c
233
(void) sprintf(str, "; s1 = %" PRIu32 ", s2 = %" PRIu32,
usr/src/uts/common/rpc/rpc_subr.c
278
strtoi(char *str, char **ptr)
usr/src/uts/common/rpc/rpc_subr.c
283
for (val = 0, c = *str++; c >= '0' && c <= '9'; c = *str++) {
usr/src/uts/common/rpc/rpc_subr.c
287
*ptr = str;
usr/src/uts/common/smbsrv/smb_ktypes.h
2249
char *str;
usr/src/uts/common/sys/crc32.h
132
#define CRC32_STRING(crc, len, str, start, table) \
usr/src/uts/common/sys/crc32.h
137
for (Xcp = (const uint8_t *)(str); (Xc = *Xcp) != 0; Xcp++) \
usr/src/uts/common/sys/crc32.h
140
(len) = Xcp - (const uint8_t *)(str); \
usr/src/uts/common/sys/devops.h
92
int (*cb_print)(dev_t dev, char *str);
usr/src/uts/common/sys/fibre-channel/fca/emlxs/emlxs_extern.h
222
extern char *emlxs_strtoupper(char *str);
usr/src/uts/common/sys/fibre-channel/fca/emlxs/emlxs_extern.h
578
extern uint32_t emlxs_strtol(char *str, uint32_t base);
usr/src/uts/common/sys/fibre-channel/fca/emlxs/emlxs_extern.h
579
extern uint64_t emlxs_strtoll(char *str, uint32_t base);
usr/src/uts/common/sys/fibre-channel/fca/emlxs/emlxs_extern.h
676
extern void emlxs_data_dump(emlxs_port_t *port, char *str,
usr/src/uts/common/sys/fibre-channel/fca/emlxs/emlxs_extern.h
678
extern void emlxs_ue_dump(emlxs_hba_t *hba, char *str);
usr/src/uts/common/sys/kstat.h
467
} str;
usr/src/uts/common/sys/kstat.h
543
#define KSTAT_NAMED_STR_PTR(knptr) ((knptr)->value.str.addr.ptr)
usr/src/uts/common/sys/kstat.h
549
#define KSTAT_NAMED_STR_BUFLEN(knptr) ((knptr)->value.str.len)
usr/src/uts/common/sys/nxge/nxge_fm.h
109
char *str;
usr/src/uts/common/sys/ramdisk.h
88
char *str = strstr((name), ",raw"); \
usr/src/uts/common/sys/ramdisk.h
89
if (str != NULL) \
usr/src/uts/common/sys/ramdisk.h
90
*str = '\0'; \
usr/src/uts/common/sys/sunddi.h
1651
ddi_soft_state_bystr_zalloc(ddi_soft_state_bystr *state, const char *str);
usr/src/uts/common/sys/sunddi.h
1660
ddi_soft_state_bystr_get(ddi_soft_state_bystr *state, const char *str);
usr/src/uts/common/sys/sunddi.h
1669
ddi_soft_state_bystr_free(ddi_soft_state_bystr *state, const char *str);
usr/src/uts/common/sys/sunddi.h
1686
ddi_strid_alloc(ddi_strid *strid, char *str);
usr/src/uts/common/sys/sunddi.h
1688
ddi_strid_str2id(ddi_strid *strid, char *str);
usr/src/uts/common/sys/sunddi.h
456
extern char *ddi_strdup(const char *str, int flag);
usr/src/uts/common/sys/sunddi.h
457
extern char *strdup(const char *str);
usr/src/uts/common/sys/sunddi.h
458
extern void strfree(char *str);
usr/src/uts/common/sys/vnode.h
1369
void vn_setpath_str(struct vnode *vp, const char *str, size_t len);
usr/src/uts/common/vm/seg_vn.c
449
char str[32];
usr/src/uts/common/vm/seg_vn.c
451
(void) sprintf(str, "segvn_szc_cache%d", szc);
usr/src/uts/common/vm/seg_vn.c
452
segvn_szc_cache[szc] = kmem_cache_create(str,
usr/src/uts/common/xen/io/xdb.c
1011
if (strcmp(str, XBV_MEDIA_REQ_EJECT) != 0) {
usr/src/uts/common/xen/io/xdb.c
1013
strfree(str);
usr/src/uts/common/xen/io/xdb.c
1016
strfree(str);
usr/src/uts/common/xen/io/xdb.c
1071
char *str, *xsname;
usr/src/uts/common/xen/io/xdb.c
1080
err = xenbus_read_str(xsname, "params", &str);
usr/src/uts/common/xen/io/xdb.c
1084
vdp->xs_params_path = str;
usr/src/uts/common/xen/io/xdb.c
1104
char *xsname, *str;
usr/src/uts/common/xen/io/xdb.c
1114
if ((err = xenbus_read_str(xsname, "type", &str)) != 0) {
usr/src/uts/common/xen/io/xdb.c
1118
if (strcmp(str, "file") == 0)
usr/src/uts/common/xen/io/xdb.c
1120
strfree(str);
usr/src/uts/common/xen/io/xdb.c
1214
char *str;
usr/src/uts/common/xen/io/xdb.c
1238
err = xenbus_read_str(xsname, "dynamic-device-path", &str);
usr/src/uts/common/xen/io/xdb.c
1241
vdp->xs_params_path = str;
usr/src/uts/common/xen/io/xdb.c
1646
char *str;
usr/src/uts/common/xen/io/xdb.c
1686
if (xenbus_read_str(oename, XBP_DEV_TYPE, &str) != 0)
usr/src/uts/common/xen/io/xdb.c
1688
if (strcmp(str, XBV_DEV_TYPE_CD) == 0)
usr/src/uts/common/xen/io/xdb.c
1690
strfree(str);
usr/src/uts/common/xen/io/xdb.c
1693
if (xenbus_read_str(xsname, "mode", &str) != 0)
usr/src/uts/common/xen/io/xdb.c
1695
if ((strcmp(str, "r") == 0) || (strcmp(str, "ro") == 0))
usr/src/uts/common/xen/io/xdb.c
1697
strfree(str);
usr/src/uts/common/xen/io/xdb.c
922
char *xsname, *oename, *str, *str2;
usr/src/uts/common/xen/io/xdb.c
931
if (xenbus_read_str(xsname, "params", &str) != 0) {
usr/src/uts/common/xen/io/xdb.c
936
if (strcmp(vdp->xs_params_path, str) == 0) {
usr/src/uts/common/xen/io/xdb.c
939
strfree(str);
usr/src/uts/common/xen/io/xdb.c
954
strfree(str);
usr/src/uts/common/xen/io/xdb.c
956
str = i_pathname(dip);
usr/src/uts/common/xen/io/xdb.c
958
"!%s: media locked, ignoring params update", str);
usr/src/uts/common/xen/io/xdb.c
959
strfree(str);
usr/src/uts/common/xen/io/xdb.c
966
"block-configure params request: \"%s\"", str));
usr/src/uts/common/xen/io/xdb.c
968
xdb_params_change(vdp, str, B_FALSE);
usr/src/uts/common/xen/io/xdb.c
970
strfree(str);
usr/src/uts/common/xen/io/xdb.c
990
char *oename, *str;
usr/src/uts/common/xen/io/xdb.c
999
if (xenbus_read_str(oename, XBP_MEDIA_REQ, &str) != 0) {
usr/src/uts/common/xen/io/xdf.c
1178
char *xsname, *str;
usr/src/uts/common/xen/io/xdf.c
1184
(xenbus_read_str(xsname, XBP_MEDIA_REQ, &str) != 0))
usr/src/uts/common/xen/io/xdf.c
1187
if (strcmp(str, XBV_MEDIA_REQ_EJECT) != 0) {
usr/src/uts/common/xen/io/xdf.c
1188
strfree(str);
usr/src/uts/common/xen/io/xdf.c
1191
strfree(str);
usr/src/uts/common/xen/io/xdf.c
1526
char *xsname, *str;
usr/src/uts/common/xen/io/xdf.c
1557
if (xenbus_read_str(xsname, XBP_DEV_TYPE, &str) != 0)
usr/src/uts/common/xen/io/xdf.c
1559
strfree(str);
usr/src/uts/common/xen/io/xdf.c
1780
char *oename, *xsname, *str;
usr/src/uts/common/xen/io/xdf.c
1816
if (xenbus_read_str(xsname, XBP_DEV_TYPE, &str) != 0) {
usr/src/uts/common/xen/io/xdf.c
1821
if (strcmp(str, XBV_DEV_TYPE_CD) == 0)
usr/src/uts/common/xen/io/xdf.c
1823
strfree(str);
usr/src/uts/common/xen/io/xdf.c
2189
char *oename, *str;
usr/src/uts/common/xen/io/xdf.c
2213
str = NULL;
usr/src/uts/common/xen/io/xdf.c
2214
if ((xenbus_read_str(oename, XBP_HP_STATUS, &str) == 0) &&
usr/src/uts/common/xen/io/xdf.c
2215
(strcmp(str, XBV_HP_STATUS_CONN) == 0))
usr/src/uts/common/xen/io/xdf.c
2218
if (str != NULL)
usr/src/uts/common/xen/io/xdf.c
2219
strfree(str);
usr/src/uts/common/xen/io/xdf.c
2231
ASSERT(strcmp(str, XBV_HP_STATUS_CONN) == 0);
usr/src/uts/common/xen/io/xdf.c
2232
strfree(str);
usr/src/uts/common/xen/io/xdf.c
3405
char *oename, *xsname, *str;
usr/src/uts/common/xen/io/xdf.c
3447
if (xenbus_read_str(xsname, XBP_DEV_TYPE, &str) != 0) {
usr/src/uts/common/xen/io/xdf.c
3452
if (strcmp(str, XBV_DEV_TYPE_CD) == 0)
usr/src/uts/common/xen/io/xdf.c
3454
strfree(str);
usr/src/uts/common/xen/io/xenbus_xs.c
217
xenbus_debug_write(const char *str, unsigned int count)
usr/src/uts/common/xen/io/xenbus_xs.c
227
(void) xb_write(str, count);
usr/src/uts/common/xen/io/xenbus_xs.c
499
char *str;
usr/src/uts/common/xen/io/xenbus_xs.c
505
if ((err = xenbus_read(XBT_NULL, dir, node, (void **)&str, &n)) != 0)
usr/src/uts/common/xen/io/xenbus_xs.c
507
ASSERT((str != NULL) && (n > 0));
usr/src/uts/common/xen/io/xenbus_xs.c
517
*retp = strdup(str);
usr/src/uts/common/xen/io/xenbus_xs.c
518
kmem_free(str, n);
usr/src/uts/common/xen/os/hypercall.c
177
HYPERVISOR_console_io(int cmd, int count, char *str)
usr/src/uts/common/xen/os/hypercall.c
180
(ulong_t)str));
usr/src/uts/i86pc/boot/boot_console.c
183
#define EAT_WHITE_SPACE(str) { \
usr/src/uts/i86pc/boot/boot_console.c
184
while ((*str != '\0') && ISSPACE(*str)) \
usr/src/uts/i86pc/boot/boot_console.c
185
str++; \
usr/src/uts/i86pc/i86hvm/io/xpv/xpv_support.c
611
char *str;
usr/src/uts/i86pc/i86hvm/io/xpv/xpv_support.c
620
if (xenbus_read(xbt, "control", "shutdown", (void *)&str, &slen)) {
usr/src/uts/i86pc/i86hvm/io/xpv/xpv_support.c
625
SUSPEND_DEBUG("%d: xen_shutdown_handler: \"%s\"\n", CPU->cpu_id, str);
usr/src/uts/i86pc/i86hvm/io/xpv/xpv_support.c
631
if (strcmp(str, "") == 0) {
usr/src/uts/i86pc/i86hvm/io/xpv/xpv_support.c
633
kmem_free(str, slen);
usr/src/uts/i86pc/i86hvm/io/xpv/xpv_support.c
635
} else if (strcmp(str, "poweroff") == 0) {
usr/src/uts/i86pc/i86hvm/io/xpv/xpv_support.c
637
} else if (strcmp(str, "reboot") == 0) {
usr/src/uts/i86pc/i86hvm/io/xpv/xpv_support.c
639
} else if (strcmp(str, "suspend") == 0) {
usr/src/uts/i86pc/i86hvm/io/xpv/xpv_support.c
641
} else if (strcmp(str, "halt") == 0) {
usr/src/uts/i86pc/i86hvm/io/xpv/xpv_support.c
644
printf("Ignoring shutdown request: %s\n", str);
usr/src/uts/i86pc/i86hvm/io/xpv/xpv_support.c
651
kmem_free(str, slen);
usr/src/uts/i86pc/i86hvm/io/xpv/xpv_support.c
655
kmem_free(str, slen);
usr/src/uts/i86pc/io/acpi/acpidev/acpidev_drv.c
481
char *str = NULL;
usr/src/uts/i86pc/io/acpi/acpidev/acpidev_drv.c
497
DDI_PROP_DONTPASS, "acpidev-autoconfig", &str);
usr/src/uts/i86pc/io/acpi/acpidev/acpidev_drv.c
499
if (strcasecmp(str, "off") == 0 || strcasecmp(str, "no") == 0) {
usr/src/uts/i86pc/io/acpi/acpidev/acpidev_drv.c
502
ddi_prop_free(str);
usr/src/uts/i86pc/io/acpi/acpidev/acpidev_drv.c
506
ddi_prop_free(str);
usr/src/uts/i86pc/io/acpi/acpidev/acpidev_drv.c
527
DDI_PROP_DONTPASS, "acpidev-options", &str) == DDI_PROP_SUCCESS) {
usr/src/uts/i86pc/io/acpi/acpidev/acpidev_drv.c
529
rc = ddi_strtol(str, NULL, 0, &data);
usr/src/uts/i86pc/io/acpi/acpidev/acpidev_drv.c
536
ddi_prop_free(str);
usr/src/uts/i86pc/io/acpi/acpidev/acpidev_drv.c
544
DDI_PROP_DONTPASS, "acpidev-dr", &str);
usr/src/uts/i86pc/io/acpi/acpidev/acpidev_drv.c
546
if (strcasecmp(str, "off") == 0 || strcasecmp(str, "no") == 0) {
usr/src/uts/i86pc/io/acpi/acpidev/acpidev_drv.c
551
ddi_prop_free(str);
usr/src/uts/i86pc/io/acpi_drv/acpi_drv.c
769
char str[1024];
usr/src/uts/i86pc/io/acpi_drv/acpi_drv.c
771
buf.Length = sizeof (str);
usr/src/uts/i86pc/io/acpi_drv/acpi_drv.c
772
buf.Pointer = str;
usr/src/uts/i86pc/io/acpi_drv/acpi_drv.c
774
cmn_err(CE_NOTE, "AcpiNotify(%s, 0x%02x)", str, val);
usr/src/uts/i86pc/io/immu.c
780
immu_alloc_name(const char *str, int instance)
usr/src/uts/i86pc/io/immu.c
785
slen = strlen(str) + IMMU_ISTRLEN + 1;
usr/src/uts/i86pc/io/immu.c
788
(void) snprintf(s, slen, "%s%d", str, instance);
usr/src/uts/i86pc/io/immu_dmar.c
107
char *str = kmem_alloc(len + 1, KM_SLEEP);
usr/src/uts/i86pc/io/immu_dmar.c
109
(void) strlcpy(str, cp, len + 1);
usr/src/uts/i86pc/io/immu_dmar.c
111
return (str);
usr/src/uts/i86pc/io/ppm/acpippm.c
196
char *str = "appm_attach";
usr/src/uts/i86pc/io/ppm/acpippm.c
208
cmn_err(CE_WARN, "%s: cmd %d unsupported.\n", str, cmd);
usr/src/uts/i86pc/io/ppm/acpippm.c
216
str, ddi_binding_name(dip),
usr/src/uts/i86pc/io/ppm/acpippm.c
317
char *str = "appm_detach";
usr/src/uts/i86pc/io/ppm/acpippm.c
325
cmn_err(CE_WARN, "%s: cmd %d unsupported", str, cmd);
usr/src/uts/i86pc/io/ppm/acpippm.c
390
char *str = "appm_ioctl";
usr/src/uts/i86pc/io/ppm/acpippm.c
394
PMD(PMD_SX, ("%s: called with %x\n", str, cmd))
usr/src/uts/i86pc/io/ppm/acpippm.c
397
PMD(PMD_SX, ("%s: EPERM\n", str))
usr/src/uts/i86pc/io/ppm/acpippm.c
402
PMD(PMD_SX, ("%s: no soft state: EIO\n", str))
usr/src/uts/i86pc/io/ppm/acpippm.c
407
PMD(PMD_SX, ("%s: !acpi_initted\n", str))
usr/src/uts/i86pc/io/ppm/acpippm.c
414
PMD(PMD_SX, ("%s: EINVAL\n", str))
usr/src/uts/i86pc/io/ppm/acpippm.c
419
PMD(PMD_SX, ("%s: looking for cmd %x\n", str, cmd))
usr/src/uts/i86pc/io/ppm/acpippm.c
425
PMD(PMD_SX, ("%s: cmd %x, arg %p\n", str, cmd, (void *)arg))
usr/src/uts/i86pc/io/ppm/acpippm.c
434
PMD(PMD_SX, ("%s: cmd %x, arg %p\n", str, cmd, (void *)arg))
usr/src/uts/i86pc/io/ppm/acpippm.c
440
PMD(PMD_SX, ("%s: cmd %x unrecognized: ENOTTY\n", str, cmd))
usr/src/uts/i86pc/io/ppm_plat.c
121
char *str = "ppm_change_cpu_power";
usr/src/uts/i86pc/io/ppm_plat.c
140
PPMD(D_CPU, ("%s: old %d, new %d\n", str, oldlevel, newlevel))
usr/src/uts/i86pc/io/ppm_plat.c
149
str, cpup->path, newlevel, ret))
usr/src/uts/i86pc/io/ppm_plat.c
62
char *str = "ppm_redefine_topspeed";
usr/src/uts/i86pc/io/ppm_plat.c
73
"since cpupm interfaces are not initialized", str,
usr/src/uts/i86pc/io/ppm_plat.c
80
"notification before PPMD_CPU_READY", str,
usr/src/uts/i86pc/os/cpr_impl.c
1051
char *str = "wait_for_set";
usr/src/uts/i86pc/os/cpr_impl.c
1063
str, who))
usr/src/uts/i86pc/os/cpr_impl.c
1070
str, who))
usr/src/uts/i86pc/os/cpr_impl.c
296
char *str = "i_cpr_pre_resume_cpus";
usr/src/uts/i86pc/os/cpr_impl.c
350
PMD(PMD_SX, ("%s() waking up %d cpu\n", str, who))
usr/src/uts/i86pc/os/cpr_impl.c
371
PMD(PMD_SX, ("%s() #1 waiting for %d in procset\n", str, who))
usr/src/uts/i86pc/os/cpr_impl.c
376
PMD(PMD_SX, ("%s() %d cpu started\n", str, who))
usr/src/uts/i86pc/os/cpr_impl.c
378
PMD(PMD_SX, ("%s() tsc_ready = %d\n", str, get_tsc_ready()))
usr/src/uts/i86pc/os/cpr_impl.c
381
PMD(PMD_SX, ("%s() calling tsc_sync_master\n", str))
usr/src/uts/i86pc/os/cpr_impl.c
385
PMD(PMD_SX, ("%s() waiting for %d in cpu_ready_set\n", str,
usr/src/uts/i86pc/os/cpr_impl.c
399
PMD(PMD_SX, ("%s() cpu %d now ready\n", str, who))
usr/src/uts/i86pc/os/cpr_impl.c
404
PMD(PMD_SX, ("%s() all cpus now ready\n", str))
usr/src/uts/i86pc/os/cpr_impl.c
519
char *str = "i_cpr_power_down";
usr/src/uts/i86pc/os/cpr_impl.c
529
PMD(PMD_SX, ("%s: root node not claimed\n", str))
usr/src/uts/i86pc/os/cpr_impl.c
533
PMD(PMD_SX, ("Entering %s()\n", str))
usr/src/uts/i86pc/os/cpr_impl.c
598
PMD(PMD_SX, ("%s: i_cpr_save_apic() returned %d\n", str, ret))
usr/src/uts/i86pc/os/cpr_impl.c
656
PMD(PMD_SX, ("%s: pm_ctlops PMR_PPM_ENTER_SX\n", str))
usr/src/uts/i86pc/os/cpr_impl.c
660
PMD(PMD_SX, ("%s: returns %d\n", str, ret))
usr/src/uts/i86pc/os/cpr_impl.c
678
PMD(PMD_SX, ("%s: pm_ctlops PMR_PPM_EXIT_SX\n", str))
usr/src/uts/i86pc/os/cpr_impl.c
682
PMD(PMD_SX, ("%s: returns %d\n", str, ret))
usr/src/uts/i86pc/os/cpr_impl.c
773
char *str = "i_cpr_platform_alloc";
usr/src/uts/i86pc/os/cpr_impl.c
776
PMD(PMD_SX, ("cpu = %d, %s(%p) \n", CPU->cpu_id, str, (void *)req))
usr/src/uts/i86pc/os/cpr_impl.c
779
PMD(PMD_SX, ("%s() : psm_state == NULL\n", str))
usr/src/uts/i86pc/os/cpr_impl.c
794
char *str = "i_cpr_platform_free";
usr/src/uts/i86pc/os/cpr_impl.c
797
PMD(PMD_SX, ("cpu = %d, %s(%p) \n", CPU->cpu_id, str, (void *)req))
usr/src/uts/i86pc/os/cpr_impl.c
800
PMD(PMD_SX, ("%s() : psm_state == NULL\n", str))
usr/src/uts/i86pc/os/cpr_impl.c
812
char *str = "i_cpr_save_apic";
usr/src/uts/i86pc/os/cpr_impl.c
816
PMD(PMD_SX, ("%s() : psm_state == NULL\n", str))
usr/src/uts/i86pc/os/cpr_impl.c
828
char *str = "i_cpr_restore_apic";
usr/src/uts/i86pc/os/cpr_impl.c
832
PMD(PMD_SX, ("%s() : psm_state == NULL\n", str))
usr/src/uts/i86pc/os/cpr_impl.c
903
char *str = "i_cpr_start_cpu";
usr/src/uts/i86pc/os/cpr_impl.c
906
PMD(PMD_SX, ("%s() called\n", str))
usr/src/uts/i86pc/os/cpr_impl.c
908
PMD(PMD_SX, ("%s() #0 cp->cpu_base_spl %d\n", str,
usr/src/uts/i86pc/os/cpr_impl.c
915
("%s() called on bootcpu nothing to do!\n", str))
usr/src/uts/i86pc/os/cpr_impl.c
938
PMD(PMD_SX, ("%s() #1 cp->cpu_base_spl %d\n", str, cp->cpu_base_spl))
usr/src/uts/i86pc/os/cpr_impl.c
951
PMD(PMD_SX, ("%s() #2 cp->cpu_base_spl %d\n", str,
usr/src/uts/i86pc/os/cpr_impl.c
955
PMD(PMD_SX, ("%s() calling tsc_sync_slave\n", str))
usr/src/uts/i86pc/os/cpr_impl.c
959
PMD(PMD_SX, ("%s() cp->cpu_id %d, cp->cpu_intr_actv %d\n", str,
usr/src/uts/i86pc/os/cpr_impl.c
961
PMD(PMD_SX, ("%s() #3 cp->cpu_base_spl %d\n", str,
usr/src/uts/i86pc/os/cpr_impl.c
966
PMD(PMD_SX, ("%s() #4 cp->cpu_base_spl %d\n", str,
usr/src/uts/i86pc/os/cpr_impl.c
985
PMD(PMD_SX, ("%s() returning\n", str))
usr/src/uts/i86pc/os/cpr_impl.c
993
char *str = "i_cpr_alloc_cpus";
usr/src/uts/i86pc/os/cpr_impl.c
995
PMD(PMD_SX, ("%s() CPU->cpu_id %d\n", str, CPU->cpu_id))
usr/src/uts/i86pc/os/fakebop.c
1541
char str[3];
usr/src/uts/i86pc/os/fakebop.c
1831
str[0] = (boot_device >> 4) + '0';
usr/src/uts/i86pc/os/fakebop.c
1832
str[1] = (boot_device & 0xf) + '0';
usr/src/uts/i86pc/os/fakebop.c
1833
str[2] = 0;
usr/src/uts/i86pc/os/fakebop.c
1834
bsetprops("bios-boot-device", str);
usr/src/uts/i86pc/os/fakebop.c
1869
str[0] = (boot_device >> 4) + '0';
usr/src/uts/i86pc/os/fakebop.c
1870
str[1] = (boot_device & 0xf) + '0';
usr/src/uts/i86pc/os/fakebop.c
1871
str[2] = 0;
usr/src/uts/i86pc/os/fakebop.c
1872
bsetprops("bios-boot-device", str);
usr/src/uts/i86pc/os/fakebop.c
3038
char str[BP_MAX_STRLEN];
usr/src/uts/i86pc/os/fakebop.c
3042
if (boot_prop_len < 0 || boot_prop_len >= sizeof (str) ||
usr/src/uts/i86pc/os/fakebop.c
3043
BOP_GETPROP(bootops, prop_name, str) < 0 ||
usr/src/uts/i86pc/os/fakebop.c
3044
kobj_getvalue(str, &value) == -1)
usr/src/uts/i86pc/os/fastboot.c
124
#define fastboot_nosup_msg(id, str) str,
usr/src/uts/i86pc/sys/fastboot_msg.h
38
#define fastboot_nosup_msg(id, str)
usr/src/uts/i86xpv/os/mp_xen.c
1000
str = "bad cpuid";
usr/src/uts/i86xpv/os/mp_xen.c
1002
str = "not initialized";
usr/src/uts/i86xpv/os/mp_xen.c
1005
str = "<unexpected>";
usr/src/uts/i86xpv/os/mp_xen.c
1010
id, -(int)err, str);
usr/src/uts/i86xpv/os/mp_xen.c
934
char *str;
usr/src/uts/i86xpv/os/mp_xen.c
951
str = "something is wrong :(";
usr/src/uts/i86xpv/os/mp_xen.c
954
str = "no such cpu";
usr/src/uts/i86xpv/os/mp_xen.c
957
str = "no mem to copy ctxt";
usr/src/uts/i86xpv/os/mp_xen.c
960
str = "bad address";
usr/src/uts/i86xpv/os/mp_xen.c
969
str = "already initialized";
usr/src/uts/i86xpv/os/mp_xen.c
973
str = "<unexpected>";
usr/src/uts/i86xpv/os/mp_xen.c
978
id, -err, str);
usr/src/uts/i86xpv/os/mp_xen.c
989
char *str;
usr/src/uts/i86xpv/os/mp_xen.c
993
str = "no such cpu";
usr/src/uts/i86xpv/os/xen_machdep.c
1182
print_panic(const char *str)
usr/src/uts/i86xpv/os/xen_machdep.c
1184
xen_printf(str);
usr/src/uts/i86xpv/os/xen_machdep.c
801
char *str;
usr/src/uts/i86xpv/os/xen_machdep.c
810
if (xenbus_read(xbt, "control", "shutdown", (void *)&str, &slen)) {
usr/src/uts/i86xpv/os/xen_machdep.c
815
SUSPEND_DEBUG("%d: xen_shutdown_handler: \"%s\"\n", CPU->cpu_id, str);
usr/src/uts/i86xpv/os/xen_machdep.c
821
if (strcmp(str, "") == 0) {
usr/src/uts/i86xpv/os/xen_machdep.c
823
kmem_free(str, slen);
usr/src/uts/i86xpv/os/xen_machdep.c
825
} else if (strcmp(str, "poweroff") == 0) {
usr/src/uts/i86xpv/os/xen_machdep.c
827
} else if (strcmp(str, "reboot") == 0) {
usr/src/uts/i86xpv/os/xen_machdep.c
829
} else if (strcmp(str, "suspend") == 0) {
usr/src/uts/i86xpv/os/xen_machdep.c
831
} else if (strcmp(str, "halt") == 0) {
usr/src/uts/i86xpv/os/xen_machdep.c
834
printf("Ignoring shutdown request: %s\n", str);
usr/src/uts/i86xpv/os/xen_machdep.c
845
kmem_free(str, slen);
usr/src/uts/i86xpv/os/xen_machdep.c
849
kmem_free(str, slen);
usr/src/uts/intel/dtrace/fbt.c
144
char *str = mp->strings;
usr/src/uts/intel/dtrace/fbt.c
178
if (str == NULL || symhdr == NULL || symhdr->sh_addr == 0) {
usr/src/uts/intel/dtrace/fbt.c
212
name = str + sym->st_name;
usr/src/uts/intel/io/acpica/acpi_enum.c
776
convert_to_pnp1275(char *pnpid, char *str, int strsize)
usr/src/uts/intel/io/acpica/acpi_enum.c
789
snprintf(str, strsize, "pnp%s,%x", vendor, id);
usr/src/uts/intel/io/acpica/osl.c
2439
acpi_strtoul(const char *str, char **ep, int base)
usr/src/uts/intel/io/acpica/osl.c
2443
if (ddi_strtoul(str, ep, base, &v) != 0 || v > ACPI_UINT32_MAX) {
usr/src/uts/intel/sys/bootvfs.h
51
int (*fsw_mountroot)(char *str);
usr/src/uts/intel/sys/bootvfs.h
82
#define BRD_MOUNTROOT(ops, str) ((ops)->fsw_mountroot)(str)
usr/src/uts/intel/sys/bootvfs.h
97
extern int mountroot(char *str);
usr/src/uts/sparc/dtrace/fbt.c
1002
char *str = mp->strings;
usr/src/uts/sparc/dtrace/fbt.c
1043
if (str == NULL || symhdr == NULL || symhdr->sh_addr == 0) {
usr/src/uts/sparc/dtrace/fbt.c
1109
name = str + sym->st_name;
usr/src/uts/sparc/os/cpr_sparc.c
170
cpr_prop_update(int index, char *str)
usr/src/uts/sparc/os/cpr_sparc.c
179
(void) strcpy(prop->value, str);
usr/src/uts/sparc/os/obpsym.c
58
#define DPRINTF(str) if (obpsym_debug) prom_printf(str)
usr/src/uts/sparc/os/obpsym.c
59
#define DPRINTF1(str, a) if (obpsym_debug) prom_printf(str, a);
usr/src/uts/sparc/os/obpsym.c
60
#define DPRINTF2(str, a, b) if (obpsym_debug) prom_printf(str, a, b);
usr/src/uts/sparc/os/obpsym_1275.c
60
#define DPRINTF(str) if (obpsym_debug) prom_printf(str)
usr/src/uts/sparc/os/obpsym_1275.c
61
#define DPRINTF1(str, a) if (obpsym_debug) prom_printf(str, a);
usr/src/uts/sparc/os/obpsym_1275.c
62
#define DPRINTF2(str, a, b) if (obpsym_debug) prom_printf(str, a, b);
usr/src/uts/sun/io/dada/targets/dad.c
4152
dcd_validate_model_serial(char *str, int *retlen, int totallen)
usr/src/uts/sun/io/dada/targets/dad.c
4160
ch = *str++;
usr/src/uts/sun/io/dada/targets/dad.c
89
static void dcd_validate_model_serial(char *str, int *retlen, int totallen);
usr/src/uts/sun/io/zs_common.c
108
#define GETPROP(dip, str, defval) \
usr/src/uts/sun/io/zs_common.c
109
ddi_getprop(DDI_DEV_T_ANY, (dip), DDI_PROP_DONTPASS, (str), (defval))
usr/src/uts/sun/sys/promif.h
195
extern void prom_interpret(char *str, uintptr_t arg1,
usr/src/uts/sun/sys/scsi/adapters/fasvar.h
751
#define EPRINTF(str) if (EDEBUGGING) fas_dprintf(fas, str)
usr/src/uts/sun/sys/scsi/adapters/fasvar.h
752
#define EPRINTF1(str, a) if (EDEBUGGING) fas_dprintf(fas, str, a)
usr/src/uts/sun/sys/scsi/adapters/fasvar.h
753
#define EPRINTF2(str, a, b) if (EDEBUGGING) fas_dprintf(fas, str, a, b)
usr/src/uts/sun/sys/scsi/adapters/fasvar.h
754
#define EPRINTF3(str, a, b, c) if (EDEBUGGING) fas_dprintf(fas, str, a, b, c)
usr/src/uts/sun/sys/scsi/adapters/fasvar.h
755
#define EPRINTF4(str, a, b, c, d) \
usr/src/uts/sun/sys/scsi/adapters/fasvar.h
756
if (EDEBUGGING) fas_dprintf(fas, str, a, b, c, d)
usr/src/uts/sun/sys/scsi/adapters/fasvar.h
757
#define EPRINTF5(str, a, b, c, d, e) \
usr/src/uts/sun/sys/scsi/adapters/fasvar.h
758
if (EDEBUGGING) fas_dprintf(fas, str, a, b, c, d, e)
usr/src/uts/sun/sys/scsi/adapters/fasvar.h
759
#define EPRINTF6(str, a, b, c, d, e, f) \
usr/src/uts/sun/sys/scsi/adapters/fasvar.h
760
if (EDEBUGGING) fas_dprintf(fas, str, a, b, c, d, e, f)
usr/src/uts/sun/sys/scsi/adapters/fasvar.h
762
#define DPRINTF(str) if (DDEBUGGING) fas_dprintf(fas, str)
usr/src/uts/sun/sys/scsi/adapters/fasvar.h
763
#define DPRINTF1(str, a) if (DDEBUGGING) fas_dprintf(fas, str, a)
usr/src/uts/sun/sys/scsi/adapters/fasvar.h
764
#define DPRINTF2(str, a, b) if (DDEBUGGING) fas_dprintf(fas, str, a, b)
usr/src/uts/sun/sys/scsi/adapters/fasvar.h
765
#define DPRINTF3(str, a, b, c) if (DDEBUGGING) fas_dprintf(fas, str, a, b, c)
usr/src/uts/sun/sys/scsi/adapters/fasvar.h
766
#define DPRINTF4(str, a, b, c, d) \
usr/src/uts/sun/sys/scsi/adapters/fasvar.h
767
if (DDEBUGGING) fas_dprintf(fas, str, a, b, c, d)
usr/src/uts/sun/sys/scsi/adapters/fasvar.h
768
#define DPRINTF5(str, a, b, c, d, e) \
usr/src/uts/sun/sys/scsi/adapters/fasvar.h
769
if (DDEBUGGING) fas_dprintf(fas, str, a, b, c, d, e)
usr/src/uts/sun/sys/scsi/adapters/fasvar.h
770
#define DPRINTF6(str, a, b, c, d, e, f) \
usr/src/uts/sun/sys/scsi/adapters/fasvar.h
771
if (DDEBUGGING) fas_dprintf(fas, str, a, b, c, d, e, f)
usr/src/uts/sun/sys/scsi/adapters/fasvar.h
773
#define IPRINTF(str) if (IDEBUGGING) fas_dprintf(fas, str)
usr/src/uts/sun/sys/scsi/adapters/fasvar.h
774
#define IPRINTF1(str, a) if (IDEBUGGING) fas_dprintf(fas, str, a)
usr/src/uts/sun/sys/scsi/adapters/fasvar.h
775
#define IPRINTF2(str, a, b) if (IDEBUGGING) fas_dprintf(fas, str, a, b)
usr/src/uts/sun/sys/scsi/adapters/fasvar.h
776
#define IPRINTF3(str, a, b, c) if (IDEBUGGING) fas_dprintf(fas, str, a, b, c)
usr/src/uts/sun/sys/scsi/adapters/fasvar.h
777
#define IPRINTF4(str, a, b, c, d) \
usr/src/uts/sun/sys/scsi/adapters/fasvar.h
778
if (IDEBUGGING) fas_dprintf(fas, str, a, b, c, d)
usr/src/uts/sun/sys/scsi/adapters/fasvar.h
779
#define IPRINTF5(str, a, b, c, d, e) \
usr/src/uts/sun/sys/scsi/adapters/fasvar.h
780
if (IDEBUGGING) fas_dprintf(fas, str, a, b, c, d, e)
usr/src/uts/sun/sys/scsi/adapters/fasvar.h
781
#define IPRINTF6(str, a, b, c, d, e, f) \
usr/src/uts/sun/sys/scsi/adapters/fasvar.h
782
if (IDEBUGGING) fas_dprintf(fas, str, a, b, c, d, e, f)
usr/src/uts/sun/sys/scsi/adapters/fasvar.h
786
#define EPRINTF(str)
usr/src/uts/sun/sys/scsi/adapters/fasvar.h
787
#define EPRINTF1(str, a)
usr/src/uts/sun/sys/scsi/adapters/fasvar.h
788
#define EPRINTF2(str, a, b)
usr/src/uts/sun/sys/scsi/adapters/fasvar.h
789
#define EPRINTF3(str, a, b, c)
usr/src/uts/sun/sys/scsi/adapters/fasvar.h
790
#define EPRINTF4(str, a, b, c, d)
usr/src/uts/sun/sys/scsi/adapters/fasvar.h
791
#define EPRINTF5(str, a, b, c, d, e)
usr/src/uts/sun/sys/scsi/adapters/fasvar.h
792
#define EPRINTF6(str, a, b, c, d, e, f)
usr/src/uts/sun/sys/scsi/adapters/fasvar.h
793
#define DPRINTF(str)
usr/src/uts/sun/sys/scsi/adapters/fasvar.h
794
#define DPRINTF1(str, a)
usr/src/uts/sun/sys/scsi/adapters/fasvar.h
795
#define DPRINTF2(str, a, b)
usr/src/uts/sun/sys/scsi/adapters/fasvar.h
796
#define DPRINTF3(str, a, b, c)
usr/src/uts/sun/sys/scsi/adapters/fasvar.h
797
#define DPRINTF4(str, a, b, c, d)
usr/src/uts/sun/sys/scsi/adapters/fasvar.h
798
#define DPRINTF5(str, a, b, c, d, e)
usr/src/uts/sun/sys/scsi/adapters/fasvar.h
799
#define DPRINTF6(str, a, b, c, d, e, f)
usr/src/uts/sun/sys/scsi/adapters/fasvar.h
800
#define IPRINTF(str)
usr/src/uts/sun/sys/scsi/adapters/fasvar.h
801
#define IPRINTF1(str, a)
usr/src/uts/sun/sys/scsi/adapters/fasvar.h
802
#define IPRINTF2(str, a, b)
usr/src/uts/sun/sys/scsi/adapters/fasvar.h
803
#define IPRINTF3(str, a, b, c)
usr/src/uts/sun/sys/scsi/adapters/fasvar.h
804
#define IPRINTF4(str, a, b, c, d)
usr/src/uts/sun/sys/scsi/adapters/fasvar.h
805
#define IPRINTF5(str, a, b, c, d, e)
usr/src/uts/sun/sys/scsi/adapters/fasvar.h
806
#define IPRINTF6(str, a, b, c, d, e, f)
usr/src/uts/sun4/os/startup.c
338
#define debug_pause(str) halt((str))
usr/src/uts/sun4/os/startup.c
339
#define MPRINTF(str) if (debugging_mem) prom_printf((str))
usr/src/uts/sun4/os/startup.c
340
#define MPRINTF1(str, a) if (debugging_mem) prom_printf((str), (a))
usr/src/uts/sun4/os/startup.c
341
#define MPRINTF2(str, a, b) if (debugging_mem) prom_printf((str), (a), (b))
usr/src/uts/sun4/os/startup.c
342
#define MPRINTF3(str, a, b, c) \
usr/src/uts/sun4/os/startup.c
343
if (debugging_mem) prom_printf((str), (a), (b), (c))
usr/src/uts/sun4/os/startup.c
345
#define MPRINTF(str)
usr/src/uts/sun4/os/startup.c
346
#define MPRINTF1(str, a)
usr/src/uts/sun4/os/startup.c
347
#define MPRINTF2(str, a, b)
usr/src/uts/sun4/os/startup.c
348
#define MPRINTF3(str, a, b, c)
usr/src/uts/sun4/sys/prom_debug.h
54
#define PRM_INFO1(str, a) if (prom_debug) \
usr/src/uts/sun4/sys/prom_debug.h
56
prom_printf((str), (a)))
usr/src/uts/sun4/sys/prom_debug.h
58
#define PRM_INFO2(str, a, b) if (prom_debug) \
usr/src/uts/sun4/sys/prom_debug.h
60
prom_printf((str), (a), (b)))
usr/src/uts/sun4/sys/prom_debug.h
74
#define PRM_INFO1(str, a)
usr/src/uts/sun4/sys/prom_debug.h
76
#define PRM_INFO2(str, a, b)
usr/src/uts/sun4u/excalibur/io/xcalppm.c
1037
char *str = "xcppm_manage_fet";
usr/src/uts/sun4u/excalibur/io/xcalppm.c
1044
DPRINTF(D_FET, ("%s: \"%s\", req %s\n", str,
usr/src/uts/sun4u/excalibur/io/xcalppm.c
1068
str, ppmd->path, old, new));
usr/src/uts/sun4u/excalibur/io/xcalppm.c
1086
str, ppmd->domp->pwr_cnt));
usr/src/uts/sun4u/excalibur/io/xcalppm.c
1096
str, ppmd->path));
usr/src/uts/sun4u/excalibur/io/xcalppm.c
1111
DPRINTF(D_FET, ("%s: DN cnt = %d\n", str, ppmd->domp->pwr_cnt));
usr/src/uts/sun4u/excalibur/io/xcalppm.c
1137
char *str = "xcppm_manage_pciupa";
usr/src/uts/sun4u/excalibur/io/xcalppm.c
1145
DPRINTF(D_PCIUPA, ("%s: \"%s\", req %s\n", str,
usr/src/uts/sun4u/excalibur/io/xcalppm.c
1173
str, ppmd->path, ppmd->level, new));
usr/src/uts/sun4u/excalibur/io/xcalppm.c
1182
DPRINTF(D_ERROR, ("%s: invalid ppmd->flags value 0x%x\n", str,
usr/src/uts/sun4u/excalibur/io/xcalppm.c
1236
"rplvl %d level %d\n", str, codev->path,
usr/src/uts/sun4u/excalibur/io/xcalppm.c
1262
char *str = "xcppm_manage_1394";
usr/src/uts/sun4u/excalibur/io/xcalppm.c
1269
DPRINTF(D_1394, ("%s: \"%s\", req %s\n", str,
usr/src/uts/sun4u/excalibur/io/xcalppm.c
1291
DPRINTF(D_1394, ("%s: dev %s@%s, old %d new %d\n", str,
usr/src/uts/sun4u/excalibur/io/xcalppm.c
1428
char path[MAXPATHLEN], *ctlstr, *str = "xcppm_ctlops";
usr/src/uts/sun4u/excalibur/io/xcalppm.c
1431
prom_printf("%s: \"%s\", %s\n", str,
usr/src/uts/sun4u/excalibur/io/xcalppm.c
1457
str, reqp->req.ppm_all_lowest_req.mode));
usr/src/uts/sun4u/excalibur/io/xcalppm.c
1470
DPRINTF(D_LOWEST, ("%s: LED blink started\n", str));
usr/src/uts/sun4u/excalibur/io/xcalppm.c
1473
DPRINTF(D_LOWEST, ("%s: LED freeze ON\n", str));
usr/src/uts/sun4u/excalibur/io/xcalppm.c
1564
str, ppmd->path);
usr/src/uts/sun4u/excalibur/io/xcalppm.c
307
char *str = "xcppm_attach";
usr/src/uts/sun4u/excalibur/io/xcalppm.c
313
DPRINTF(D_ATTACH, ("%s: attach cmd %d\n", str, cmd));
usr/src/uts/sun4u/excalibur/io/xcalppm.c
320
("%s: instance already attached\n", str));
usr/src/uts/sun4u/excalibur/io/xcalppm.c
338
("%s: Can't create minor for 0x%p\n", str,
usr/src/uts/sun4u/excalibur/io/xcalppm.c
357
("%s: can't register ppm handler\n", str));
usr/src/uts/sun4u/excalibur/io/xcalppm.c
564
char *str = "xcppm_set_level";
usr/src/uts/sun4u/excalibur/io/xcalppm.c
573
str, ppmd->path, change, ppmd->level, level, ret));
usr/src/uts/sun4u/excalibur/io/xcalppm.c
602
char *str = "xcppm_gpio_port2";
usr/src/uts/sun4u/excalibur/io/xcalppm.c
618
str, buf8));
usr/src/uts/sun4u/excalibur/io/xcalppm.c
632
str, (action == XCPPM_SETBIT) ? "UP" : "DOWN",
usr/src/uts/sun4u/excalibur/io/xcalppm.c
770
char *str = "xcppm_ccp";
usr/src/uts/sun4u/excalibur/io/xcalppm.c
797
str, oldlevel, newlevel, highest, lowest));
usr/src/uts/sun4u/excalibur/io/xcalppm.c
841
str, cpup->path, chstr, cpup->level, ret));
usr/src/uts/sun4u/excalibur/io/xcalppm.c
865
DPRINTF(D_CPU, ("%s: safari config reg changed\n", str));
usr/src/uts/sun4u/excalibur/io/xcalppm.c
874
"(t1) = 0x%x\n", str, chstr, data32));
usr/src/uts/sun4u/excalibur/io/xcalppm.c
880
"(t4) = 0x%x\n", str, chstr, data32));
usr/src/uts/sun4u/excalibur/io/xcalppm.c
886
str, chstr, data16));
usr/src/uts/sun4u/excalibur/io/xcalppm.c
915
char *str = "xcppm_manage_cpus";
usr/src/uts/sun4u/excalibur/io/xcalppm.c
947
"power level to %d\n", str, new));
usr/src/uts/sun4u/excalibur/io/xcalppm.c
953
DPRINTF(D_CPU, ("%s: already at power level %d\n", str, new));
usr/src/uts/sun4u/excalibur/io/xcalppm.c
972
"level %d yet\n", str, new));
usr/src/uts/sun4u/excalibur/io/xcalppm.c
983
"need pm_rescan\n", str, PM_NAME(ppmd->dip),
usr/src/uts/sun4u/io/pci/pci_pci.c
1280
char *str;
usr/src/uts/sun4u/io/pci/pci_pci.c
1332
str = "PM_LEVEL_B0 (full speed)";
usr/src/uts/sun4u/io/pci/pci_pci.c
1336
str = "PM_LEVEL_B1 (light sleep. No bus traffic allowed)";
usr/src/uts/sun4u/io/pci/pci_pci.c
1347
str = "PM_LEVEL_B2 (clock off)";
usr/src/uts/sun4u/io/pci/pci_pci.c
1369
str = "PM_LEVEL_B30 (clock and power off)";
usr/src/uts/sun4u/io/pci/pci_pci.c
1433
DEBUG1(DBG_PWR, dip, "ppb_set_pwr: set PM state to %s\n\n", str);
usr/src/uts/sun4u/io/ppm/jbusppm.c
190
char *str = "jbppm_attach";
usr/src/uts/sun4u/io/ppm/jbusppm.c
203
cmn_err(CE_WARN, "%s: cmd %d unsupported.\n", str, cmd);
usr/src/uts/sun4u/io/ppm/jbusppm.c
211
str, ddi_binding_name(dip),
usr/src/uts/sun4u/io/ppm/jbusppm.c
317
char *str = "jbppm_detach";
usr/src/uts/sun4u/io/ppm/jbusppm.c
325
cmn_err(CE_WARN, "%s: cmd %d unsupported", str, cmd);
usr/src/uts/sun4u/io/ppm_plat.c
111
str, dc->method))
usr/src/uts/sun4u/io/ppm_plat.c
153
char *str = "ppm_cpu_post_chng";
usr/src/uts/sun4u/io/ppm_plat.c
183
str, dc->method))
usr/src/uts/sun4u/io/ppm_plat.c
205
char *str = "ppm_change_cpu_power";
usr/src/uts/sun4u/io/ppm_plat.c
231
str, oldlevel, newlevel, highest, lowest))
usr/src/uts/sun4u/io/ppm_plat.c
256
str, cpup->path, chstr, level, ret))
usr/src/uts/sun4u/io/ppm_plat.c
49
char *str = "ppm_cpu_next";
usr/src/uts/sun4u/io/ppm_plat.c
67
str, dc->method))
usr/src/uts/sun4u/io/ppm_plat.c
81
char *str = "ppm_cpu_pre_chng";
usr/src/uts/sun4u/io/ppm_xgsubr.c
207
char *str = "ppm_create_db";
usr/src/uts/sun4u/io/ppm_xgsubr.c
228
str, ppm_prefix, devdata.name, domdata.name));
usr/src/uts/sun4u/io/ppm_xgsubr.c
241
"device \"%s\"\n", str, *dom_namep, *dev_namep));
usr/src/uts/sun4u/io/ppm_xgsubr.c
262
str, domp->name, new->name));
usr/src/uts/sun4u/io/ppm_xgsubr.c
429
char *str = "ppm_ioctl";
usr/src/uts/sun4u/io/ppm_xgsubr.c
437
str, dev, cmd, arg, mode));
usr/src/uts/sun4u/io/ppm_xgsubr.c
440
DPRINTF(D_IOCTL, (iofmt, str, "in", arg));
usr/src/uts/sun4u/io/ppm_xgsubr.c
449
str, req.ppmdev));
usr/src/uts/sun4u/io/ppm_xgsubr.c
457
str, cmd));
usr/src/uts/sun4u/io/ppm_xgsubr.c
460
DPRINTF(D_IOCTL, (rwfmt, str, mode, "write"));
usr/src/uts/sun4u/io/ppm_xgsubr.c
469
str, level, cmd));
usr/src/uts/sun4u/io/ppm_xgsubr.c
479
DPRINTF(D_IOCTL, (rwfmt, str, mode, "read"));
usr/src/uts/sun4u/io/ppm_xgsubr.c
488
DPRINTF(D_ERROR, (iofmt, str, "out", arg));
usr/src/uts/sun4u/io/ppm_xgsubr.c
494
DPRINTF(D_IOCTL, ("%s: unrecognized cmd 0x%x\n", str, cmd));
usr/src/uts/sun4u/io/ppm_xgsubr.c
518
char *str;
usr/src/uts/sun4u/io/ppm_xgsubr.c
554
return (ccp->str);
usr/src/uts/sun4u/io/ppm_xgsubr.c
58
char *str = "ppm_init";
usr/src/uts/sun4u/io/ppm_xgsubr.c
65
DPRINTF(D_INIT, ("%s: ss init %d\n", str, error));
usr/src/uts/sun4u/io/ppm_xgsubr.c
71
DPRINTF(D_INIT, ("%s: mod_install %d\n", str, error));
usr/src/uts/sun4u/lw8/io/sgenv.c
2109
envresp_key_t key, char *str)
usr/src/uts/sun4u/lw8/io/sgenv.c
2113
ASSERT(str != (char *)NULL);
usr/src/uts/sun4u/lw8/io/sgenv.c
2128
" while %s", key_posn, key, str);
usr/src/uts/sun4u/lw8/io/sgenv.c
2133
sgenv_mbox_error_msg(str, err, status);
usr/src/uts/sun4u/lw8/io/sgenv.c
2168
sgenv_mbox_error_msg(char *str, int err, int status)
usr/src/uts/sun4u/lw8/io/sgenv.c
2181
ASSERT(str != NULL);
usr/src/uts/sun4u/lw8/io/sgenv.c
2190
"SGENV request for %s", str);
usr/src/uts/sun4u/lw8/io/sgenv.c
2194
" Status=%d", str, err, status);
usr/src/uts/sun4u/lw8/io/sgenv.c
2546
sgenv_tagid_to_string(sensor_id_t id, char *str)
usr/src/uts/sun4u/lw8/io/sgenv.c
2552
ASSERT(str != NULL);
usr/src/uts/sun4u/lw8/io/sgenv.c
2558
(void) sprintf(str,
usr/src/uts/sun4u/lw8/sys/sgenv_impl.h
192
envresp_key_t key, char *str);
usr/src/uts/sun4u/lw8/sys/sgenv_impl.h
193
static void sgenv_mbox_error_msg(char *str, int err, int status);
usr/src/uts/sun4u/lw8/sys/sgenv_impl.h
209
static void sgenv_tagid_to_string(sensor_id_t id, char *str);
usr/src/uts/sun4u/lw8/sys/sgenv_impl.h
243
#define SGENV_PRINT_MBOX_MSG(x, str) \
usr/src/uts/sun4u/lw8/sys/sgenv_impl.h
244
DCMN_ERR(CE_CONT, "Mbox msg info: %s", str); \
usr/src/uts/sun4u/opl/io/dm2s.c
1243
dm2s_dump_bytes(char *str, uint32_t total_len,
usr/src/uts/sun4u/opl/io/dm2s.c
1269
str, total_len, digest);
usr/src/uts/sun4u/opl/io/drmach.c
2933
char *str;
usr/src/uts/sun4u/opl/io/drmach.c
2949
str = (char *)kmem_zalloc(len+1, KM_SLEEP);
usr/src/uts/sun4u/opl/io/drmach.c
2950
rtn = prom_getprop(node, OPL_DR_STATUS_PROP, str);
usr/src/uts/sun4u/opl/io/drmach.c
2951
kmem_free(str, len + 1);
usr/src/uts/sun4u/opl/sys/dm2s.h
93
static void dm2s_dump_bytes(char *str, uint32_t total_len,
usr/src/uts/sun4u/os/cpr_impl.c
1167
char *str = "i_cpr_storage_desc_alloc:";
usr/src/uts/sun4u/os/cpr_impl.c
1177
CPR_DEBUG(CPR_DEBUG7, "%s chunks %d, ", str, chunks);
usr/src/uts/sun4u/os/cpr_impl.c
1179
CPR_DEBUG(CPR_DEBUG7, "%s retry %d: ", str, retry);
usr/src/uts/sun4u/os/cpr_impl.c
1188
CPR_DEBUG(CPR_DEBUG7, "%s no space for descriptors!\n", str);
usr/src/uts/sun4u/os/cpr_impl.c
827
char *str;
usr/src/uts/sun4u/os/cpr_impl.c
844
str = "i_cpr_save_sensitive_kpages:";
usr/src/uts/sun4u/os/cpr_impl.c
845
CPR_DEBUG(CPR_DEBUG7, pages_fmt, "before", str, spages, vpages, pages);
usr/src/uts/sun4u/os/cpr_impl.c
867
str);
usr/src/uts/sun4u/os/cpr_impl.c
904
CPR_DEBUG(CPR_DEBUG7, pages_fmt, "after ", str,
usr/src/uts/sun4u/os/cpr_impl.c
919
CPR_DEBUG(CPR_DEBUG1, "%s too few descriptors\n", str);
usr/src/uts/sun4u/os/cpr_impl.c
936
char *str;
usr/src/uts/sun4u/os/cpr_impl.c
938
str = "i_cpr_storage_data_alloc:";
usr/src/uts/sun4u/os/cpr_impl.c
947
CPR_DEBUG(CPR_DEBUG7, "%s sensitive pages: %ld\n", str, pages);
usr/src/uts/sun4u/os/cpr_impl.c
950
str, *alloc_pages, alloc_pcnt);
usr/src/uts/sun4u/os/cpr_impl.c
959
CPR_DEBUG(CPR_DEBUG7, "%s last ratio %ld%%\n", str, last_pcnt);
usr/src/uts/sun4u/os/cpr_impl.c
970
str, *alloc_pages, alloc_pcnt);
usr/src/uts/sun4u/os/cpr_impl.c
974
CPR_DEBUG(CPR_DEBUG7, "%s alloc %ld pages\n", str, *alloc_pages);
usr/src/uts/sun4u/serengeti/sys/sgfrutypes.h
306
#define SG_SET_FRU_NAME_NODE(str, num) \
usr/src/uts/sun4u/serengeti/sys/sgfrutypes.h
310
(void) strcat(str, tmp_str); \
usr/src/uts/sun4u/serengeti/sys/sgfrutypes.h
313
#define SG_SET_FRU_NAME_CPU_BOARD(str, num) \
usr/src/uts/sun4u/serengeti/sys/sgfrutypes.h
317
(void) strcat(str, tmp_str); \
usr/src/uts/sun4u/serengeti/sys/sgfrutypes.h
320
#define SG_SET_FRU_NAME_IO_BOARD(str, num) \
usr/src/uts/sun4u/serengeti/sys/sgfrutypes.h
324
(void) strcat(str, tmp_str); \
usr/src/uts/sun4u/serengeti/sys/sgfrutypes.h
327
#define SG_SET_FRU_NAME_MODULE(str, num) \
usr/src/uts/sun4u/serengeti/sys/sgfrutypes.h
331
(void) strcat(str, tmp_str); \
usr/src/uts/sun4u/serengeti/sys/sgfrutypes.h
334
#define SG_SET_FRU_NAME_CORE(str, num) \
usr/src/uts/sun4u/serengeti/sys/sgfrutypes.h
338
(void) strcat(str, tmp_str); \
usr/src/uts/sun4u/serengeti/sys/sgfrutypes.h
341
#define SG_SET_FRU_NAME_BANK(str, num) \
usr/src/uts/sun4u/serengeti/sys/sgfrutypes.h
345
(void) strcat(str, tmp_str); \
usr/src/uts/sun4u/serengeti/sys/sgfrutypes.h
348
#define SG_SET_FRU_NAME_DIMM(str, num) \
usr/src/uts/sun4u/serengeti/sys/sgfrutypes.h
352
(void) strcat(str, tmp_str); \
usr/src/uts/sun4v/io/drctl.c
195
char *str = "drctl_do_attach";
usr/src/uts/sun4v/io/drctl.c
199
cmn_err(CE_WARN, "%s: an instance is already attached!", str);
usr/src/uts/sun4v/io/drctl.c
207
cmn_err(CE_WARN, "%s: can't create minor node", str);
usr/src/uts/sun4v/io/ds_common.c
203
ds_strdup(char *str)
usr/src/uts/sun4v/io/ds_common.c
207
newstr = DS_MALLOC(strlen(str) + 1);
usr/src/uts/sun4v/io/ds_common.c
208
(void) strcpy(newstr, str);
usr/src/uts/sun4v/io/mdeg.c
708
char *str;
usr/src/uts/sun4v/io/mdeg.c
710
if (md_get_prop_str(md, node, prop->namep, &str) != 0)
usr/src/uts/sun4v/io/mdeg.c
713
if (strcmp(prop->ps_str, str) != 0)
usr/src/uts/sun4v/io/mdeg.c
891
char str[MAX_FIELD_STR] = "";
usr/src/uts/sun4v/io/mdeg.c
899
mdeg_spec_str(clnt->pspec, str, MAX_FIELD_STR);
usr/src/uts/sun4v/io/mdeg.c
900
MDEG_DBG(" pspecp=%s\n", str);
usr/src/uts/sun4v/io/mdeg.c
904
mdeg_match_str(clnt->nmatch, str, MAX_FIELD_STR);
usr/src/uts/sun4v/io/mdeg.c
905
MDEG_DBG(" nmatch=%s\n", str);
usr/src/uts/sun4v/io/vdc.c
111
static int vdc_print(dev_t dev, char *str);
usr/src/uts/sun4v/io/vdc.c
1428
vdc_print(dev_t dev, char *str)
usr/src/uts/sun4v/io/vdc.c
1430
cmn_err(CE_NOTE, "vdc%d: %s", VDCUNIT(dev), str);
usr/src/uts/sun4v/io/vds.c
318
char *str;
usr/src/uts/sun4v/io/vds.c
320
#define CASE_STATE(_s) case _s: str = #_s; break;
usr/src/uts/sun4v/io/vds.c
329
default: str = "unknown"; break;
usr/src/uts/sun4v/io/vds.c
334
return (str);
usr/src/uts/sun4v/io/vlds.c
453
char *str;
usr/src/uts/sun4v/io/vlds.c
466
str = DS_MALLOC(len);
usr/src/uts/sun4v/io/vlds.c
467
if (ddi_copyin(ARGTOPTR(strp->vlds_strp), str, len, mode) != 0) {
usr/src/uts/sun4v/io/vlds.c
470
DS_FREE(str, len);
usr/src/uts/sun4v/io/vlds.c
473
slen = strlen(str) + 1;
usr/src/uts/sun4v/io/vlds.c
477
DS_FREE(str, len);
usr/src/uts/sun4v/io/vlds.c
480
*rstrp = str;
usr/src/uts/sun4v/io/vlds.c
485
vlds_put_string(char *str, vlds_string_t *strp, int mode)
usr/src/uts/sun4v/io/vlds.c
491
if (str == NULL) {
usr/src/uts/sun4v/io/vlds.c
492
str = "";
usr/src/uts/sun4v/io/vlds.c
494
len = strlen(str) + 1;
usr/src/uts/sun4v/io/vlds.c
504
(void) memcpy(tstr, str, len - 1);
usr/src/uts/sun4v/io/vlds.c
506
str = tstr;
usr/src/uts/sun4v/io/vlds.c
509
rv = ddi_copyout(str, ARGTOPTR(strp->vlds_strp), len, mode);
usr/src/uts/sun4v/os/error.c
1003
fm_ereport_set(ereport, FM_EREPORT_VERSION, str,
usr/src/uts/sun4v/os/error.c
960
char *str = NULL;
usr/src/uts/sun4v/os/error.c
964
str = "chassis.sp.unavailable";
usr/src/uts/sun4v/os/fillsysinfo.c
1064
split_alias(plat_alias_t *pali, char *str)
usr/src/uts/sun4v/os/fillsysinfo.c
1071
str = dup = strdup(str);
usr/src/uts/sun4v/os/fillsysinfo.c
1073
str += strspn(str, " ");
usr/src/uts/sun4v/os/fillsysinfo.c
1074
for (i = 0; *str != '\0'; str = p) {
usr/src/uts/sun4v/os/fillsysinfo.c
1076
p = strpbrk(str, " ");
usr/src/uts/sun4v/os/fillsysinfo.c
1082
aliasv[i++] = strdup(str);
usr/src/uts/sun4v/os/fillsysinfo.c
1160
char *str;
usr/src/uts/sun4v/os/fillsysinfo.c
1162
err = md_get_prop_str(mdp, ionodes[i], "current", &str);
usr/src/uts/sun4v/os/fillsysinfo.c
1167
pali->pali_current = strdup(str);
usr/src/uts/sun4v/os/fillsysinfo.c
1169
err = md_get_prop_str(mdp, ionodes[i], "aliases", &str);
usr/src/uts/sun4v/os/fillsysinfo.c
1175
pali->pali_current, str));
usr/src/uts/sun4v/os/fillsysinfo.c
1177
split_alias(pali, str);
usr/src/uts/sun4v/promif/promif_io.c
120
promif_hv_print(char *str)
usr/src/uts/sun4v/promif/promif_io.c
122
size_t i, len = strlen(str);
usr/src/uts/sun4v/promif/promif_io.c
125
while (hv_cnputchar((uint8_t)str[i]) == H_EWOULDBLOCK)
usr/src/uts/sun4v/sys/ds_impl.h
480
char *ds_strdup(char *str);