Searched refs:str (Results 201 - 225 of 1601) sorted by relevance

1234567891011>>

/illumos-gate/usr/src/cmd/prstat/
H A Dprutil.c136 Format_size(char *str, size_t size, int length) argument
147 (void) snprintf(str, length, "%4d%c", (int)size, tag);
151 Format_time(char *str, ulong_t time, int length) argument
153 (void) snprintf(str, length, gettext("%3d:%2.2d:%2.2d"), /* hr:mm:ss */
158 Format_pct(char *str, float val, int length) argument
166 (void) snprintf(str, length, "%1.1f", val);
168 (void) snprintf(str, length, "%.0f", val);
172 Format_num(char *str, int num, int length) argument
175 (void) snprintf(str, length, ".%1dM", num/100000);
178 (void) snprintf(str, lengt
185 Format_state(char *str, char state, processorid_t pr_id, int length) argument
284 getprojname(projid_t projid, char *str, size_t len, int noresolve, int trunc, size_t width) argument
306 getzonename(zoneid_t zoneid, char *str, size_t len, int trunc, size_t width) argument
[all...]
/illumos-gate/usr/src/cmd/ndmpd/tlm/
H A Dtlm_util.c214 match(char *patn, char *str) argument
219 return (*str == 0);
222 if (*str != 0) {
223 str++;
234 while (*str) {
235 if (match(patn, str))
237 str++;
242 if (*str != *patn)
244 str++;
255 match_ci(char *patn, char *str) argument
[all...]
/illumos-gate/usr/src/cmd/pcidr/plugins/default/
H A Dpcidr_cfga.c158 char *str; local
167 str = pcidr_cfga_stat_name(datap->ap_r_state);
168 if (str == NULL)
169 str = "(unrecognized cfga_stat_t value!)";
170 dprint(lvl, "%sAP receptacle state = %s\n", prestr, str);
172 str = pcidr_cfga_stat_name(datap->ap_o_state);
173 if (str == NULL)
174 str = "(unrecognized cfga_stat_t value!)";
175 dprint(lvl, "%sAP occupant state = %s\n", prestr, str);
177 str
233 char *cmdnm, *cfga_errstr, *apid, *str; local
[all...]
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/mech/
H A Ddisp_major_status.c129 char *str; local
131 if ((str =
135 sprintf(str, unknown_error, kind, value);
137 buffer->length = strlen(str);
138 buffer->value = str;
150 const char *str; local
152 if ((str = GSS_CALLING_ERROR_STR(code))) {
153 if (! g_make_string_buffer(str, status_string)) {
175 const char *str; local
177 if ((str
200 const char *str; local
[all...]
/illumos-gate/usr/src/uts/sun4u/serengeti/sys/
H A Dsgfrutypes.h306 #define SG_SET_FRU_NAME_NODE(str, num) \
310 (void) strcat(str, tmp_str); \
313 #define SG_SET_FRU_NAME_CPU_BOARD(str, num) \
317 (void) strcat(str, tmp_str); \
320 #define SG_SET_FRU_NAME_IO_BOARD(str, num) \
324 (void) strcat(str, tmp_str); \
327 #define SG_SET_FRU_NAME_MODULE(str, num) \
331 (void) strcat(str, tmp_str); \
334 #define SG_SET_FRU_NAME_CORE(str, num) \
338 (void) strcat(str, tmp_st
[all...]
/illumos-gate/usr/src/cmd/cpio/
H A Dutils.c226 * Convert val to digit string and put it in str. The next address
230 put_value(off_t val, char *str) argument
238 (void) memcpy(str, digp, len);
240 return (str + len);
249 store_sparse_string(holes_list_t *hlh, char *str, size_t *szp) argument
254 p = str;
263 *szp = p - str;
267 * Convert decimal str into unsigned long long value. The end pointer
271 get_ull_tok(const char *str, uint64_t *ulp) argument
276 while (isspace(*str))
325 char *str, hstr[MIN_HOLES_HDRSIZE + 1]; local
368 read_holes_header(const char *str, off_t filesz) argument
397 parse_holesdata(holes_info_t *hi, const char *str) argument
[all...]
/illumos-gate/usr/src/cmd/devmgmt/cmds/
H A Dgetvol.c61 char *str; local
64 str = arg0 + strlen(arg0);
65 while (str > arg0 && *--str == '/')
66 *str = '\0';
67 if ((str = strrchr(arg0, '/')) != NULL)
68 return (str + 1);
/illumos-gate/usr/src/lib/libc/port/gen/
H A Disaexec.c53 char *str; local
101 if ((str = strrchr(pathname, '/')) != NULL) {
102 *++str = '\0';
103 fname = execname + (str - pathname);
116 str = strtok_r(isalist, " ", &lasts);
119 (void) strcpy(pathname + len, str);
142 } while ((str = strtok_r(NULL, " ", &lasts)) != NULL);
/illumos-gate/usr/src/cmd/truss/
H A Dcodes.c1708 const char *str = NULL; local
1712 str = ip->name;
1723 if (str == NULL) {
1749 str = (const char *)pri->code_buf;
1752 return (str);
1760 const char *str = NULL; local
1764 str = ip->datastruct;
1768 return (str);
1775 const char *str = NULL; local
1778 str
1785 const char *str = NULL; local
1796 const char *str = NULL; local
1859 const char *str = NULL; local
1873 const char *str = NULL; local
1945 const char *str = NULL; local
1955 const char *str = NULL; local
1970 char *str = pri->code_buf; local
2036 const char *str = NULL; local
2054 char *str = pri->code_buf; local
2076 char *str; local
2094 char *str; local
2112 char *str; local
2180 const char *str = NULL; local
2190 const char *str = NULL; local
2200 const char *str = NULL; local
2210 const char *str = NULL; local
2225 char *str = pri->code_buf; local
2250 char *str = pri->code_buf; local
2267 const char *str = NULL; local
2284 char *str = pri->code_buf; local
2323 char *str = pri->code_buf; local
2344 const char *str = NULL; local
2357 char *str = pri->code_buf; local
[all...]
/illumos-gate/usr/src/lib/libldap5/sources/ldap/common/
H A Dsearch.c53 static char *put_complex_filter( BerElement *ber, char *str,
55 static int unescape_filterval( char *str );
58 static int put_simple_filter( BerElement *ber, char *str );
60 char *str );
61 static int put_filter_list( BerElement *ber, char *str );
409 char *str,
417 * We have (x(filter)...) with str sitting on
427 str++;
428 if ( (next = find_right_paren( str )) == NULL )
432 if ( put_filter_list( ber, str )
407 put_complex_filter( BerElement *ber, char *str, ber_tag_t tag, int not ) argument
[all...]
/illumos-gate/usr/src/cmd/listen/
H A Dnstoa.c82 stoa(str, addr) /* Return 0 for success, -1 for error */
83 char *str;
93 if (!str)
95 while (*str && isspace(*str)) /* leading whites are OK */
96 ++str;
98 str = prescan(str); /* Do all \$ ... \$ */
100 if (!str || !*str) retur
[all...]
/illumos-gate/usr/src/cmd/bnu/
H A Dstoa.c73 stoa(str, addr) /* Return netbuf ptr if success */
74 char *str; /* Return NULL if error */
81 if (!str)
83 while (*str && isspace(*str)) /* leading whites are OK */
84 ++str;
86 if (!str || !*str) return NULL; /* Nothing to convert */
98 if (*str == '\\') {
99 ++str;
[all...]
H A Dxio.c75 * str -> message body (ascii string)
81 xwrmsg(type, str, fn)
82 char *str;
91 while (*str)
92 *s++ = *str++;
102 * str -> message buffer
106 * 0 -> ok message in str
109 xrdmsg(str, fn)
110 char *str;
119 if( (len = (*Read)(fn, str, XBUFSI
[all...]
H A Dgio.c90 gwrmsg(type, str, fn)
91 char type, *str;
100 while (*str)
101 *s++ = *str++;
117 grdmsg(str, fn)
118 char *str;
125 len = pkread(str, packsize);
128 str += len;
129 if (*(str - 1) == '\0')
/illumos-gate/usr/src/cmd/tnf/prex/
H A Dspec.c50 static boolean_t spec_match(spec_t * spec_p, char *str);
70 new_p->str = str_p;
96 new_p = spec(strdup(spec_p->str), spec_p->type);
115 if (spec_p->str)
116 free(spec_p->str);
122 if (list_p->str)
123 free(list_p->str);
158 (void) fprintf(stream, "'%s'", spec_p->str);
161 (void) fprintf(stream, "/%s/", spec_p->str);
176 char *str)
175 spec_match(spec_t * spec_p, char *str) argument
[all...]
/illumos-gate/usr/src/lib/libgen/common/
H A Dpathfind.c82 char *str; local
86 str = pthread_getspecific(*keyp);
87 if (str == NULL) {
88 str = calloc(PATH_MAX, sizeof (char));
89 if (thr_setspecific(*keyp, str) != 0) {
90 if (str)
91 (void) free(str);
92 str = NULL;
95 return (str);
/illumos-gate/usr/src/cmd/lp/lib/filters/
H A Ddumpfilters.c140 q_print(int fd, char *str) argument
149 if (!str)
151 while (*str) {
153 *str == '\\' /* quote reason #1 */
154 || strchr(FL_SEP, *str) /* quote reason #2 */
155 || strchr(LP_SEP, *str) /* quote reason #3 */
156 || strchr("=", *str) /* quote reason #4 */
159 fdputc (*str, fd);
160 str++;
/illumos-gate/usr/src/lib/libshell/common/scripts/
H A Dcpvprint.sh60 str="${ print -v var ; }"
64 str="${str//$'\t'typeset -l -E /$'\t'float }"
65 str="${str//$'\t'typeset -l -i /$'\t'integer }"
66 str="${str//$'\t'typeset -C /$'\t'compound }"
67 print -r -- "${str}"
/illumos-gate/usr/src/cmd/lp/lib/lp/
H A Dprintlist.c118 q_print(int fd, char *str, char *sep) argument
120 while (*str) {
121 if (strchr(sep, *str))
123 fdputc(*str, fd);
124 str++;
/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Dsscanf.c56 ** str -- strings containing data
65 ** Attempts to strlen() 'str'; if not a '\0' terminated string
67 ** Faking the string 'str' as a file.
72 sm_io_sscanf(const char *str, char const *fmt, ...) argument
74 sm_io_sscanf(str, fmt, va_alist)
75 const char *str;
86 fake.f_bf.smb_base = fake.f_p = (unsigned char *) str;
87 fake.f_bf.smb_size = fake.f_r = strlen(str);
/illumos-gate/usr/src/cmd/sgs/crle/common/
H A Ddepend.c46 filter(Crle_desc *crle, const char *filter, const char *str, const char *filtee) argument
85 (strcmp(flt->f_str, str) != 0))
103 ((flt->f_strsz = strlen(str) + 1) == 0) ||
115 (void) memcpy((void *)flt->f_str, (void *)str, flt->f_strsz);
180 char *str; local
192 str = strrchr(buffer, '\n');
193 *str = '\0';
194 str = buffer + MSG_AUD_PRF_SIZE;
197 str, MSG_AUD_DEPEND_SIZE) == 0) {
201 str
[all...]
/illumos-gate/usr/src/cmd/sgs/libcrle/common/
H A Daudit.c74 char *str; local
80 if ((str = getenv(MSG_ORIG(MSG_ENV_AUD_FD))) == NULL)
82 pfd = atoi(str);
88 if ((str = getenv(MSG_ORIG(MSG_ENV_AUD_FLAGS))) == NULL) {
92 dlflag |= atoi(str);
/illumos-gate/usr/src/cmd/localedef/
H A Dnumeric.c42 char *str; local
44 if ((str = to_mb_string(wcs)) == NULL) {
52 numeric.decimal_point = str;
55 numeric.thousands_sep = str;
58 free(str);
/illumos-gate/usr/src/boot/lib/libc/string/
H A Dstrlen.c79 return (p - str + x); \
83 strlen(const char *str) argument
99 lp = (const unsigned long *)((uintptr_t)str & ~LONGPTR_MASK);
105 for (p = str; p < (const char *)lp; p++)
107 return (p - str);
/illumos-gate/usr/src/cmd/zpool/
H A Dzpool_util.c103 * Return 1 if "str" is a number string, 0 otherwise. Works for integer and
107 isnumber(char *str) argument
109 for (; *str; str++)
110 if (!(isdigit(*str) || (*str == '.')))

Completed in 57 milliseconds

1234567891011>>