Home
last modified time | relevance | path

Searched refs:str (Results 1 – 25 of 1540) sorted by relevance

12345678910>>...62

/illumos-gate/usr/src/cmd/sort/common/
H A Dstreams_stdio.c91 if (str->s_status & STREAM_INSTANT && (str->s_buffer == NULL)) { in stream_stdio_prime()
110 (void) memcpy(str->s_buffer, str->s_current.l_data.sp, in stream_stdio_prime()
112 str->s_current.l_data.sp = str->s_buffer; in stream_stdio_prime()
135 end_of_buffer = (char *)str->s_buffer + str->s_buffer_size; in stream_stdio_prime()
229 str->s_current.l_data_length = strlen(str->s_current.l_data.sp); in stream_stdio_fetch()
237 if (*(str->s_current.l_data.sp + str->s_current.l_data_length) != in stream_stdio_fetch()
283 str->s_current.l_data.sp = str->s_buffer; in stream_stdio_fetch_overwrite()
295 str->s_current.l_data_length = strlen(str->s_current.l_data.sp) - 1; in stream_stdio_fetch_overwrite()
299 *(str->s_current.l_data.sp + str->s_current.l_data_length) != in stream_stdio_fetch_overwrite()
440 if (munmap(str->s_buffer, str->s_buffer_size) < 0) in stream_stdio_free()
[all …]
H A Dstreams_mmap.c51 str->s_current.l_data.sp = str->s_buffer; in stream_mmap_prime()
52 str->s_type.SF.s_release_origin = str->s_buffer; in stream_mmap_prime()
56 str->s_current.l_data_length = str->s_buffer_size; in stream_mmap_prime()
58 str->s_current.l_data_length = nl - (char *)str->s_buffer; in stream_mmap_prime()
84 str->s_current.l_data.sp = str->s_current.l_data.sp + in stream_mmap_fetch()
87 dist_to_buf_end = str->s_buffer_size - (str->s_current.l_data.sp in stream_mmap_fetch()
105 (char *)str->s_buffer + str->s_buffer_size) in stream_mmap_fetch()
145 if (munmap(str->s_buffer, str->s_buffer_size) < 0) in stream_mmap_free()
161 if (str == NULL || str->s_status & STREAM_EOS_REACHED) in stream_mmap_eos()
170 (stream_is_primed(str) && str->s_current.l_data.sp - in stream_mmap_eos()
[all …]
H A Dstreams_wide.c60 if (str->s_status & STREAM_INSTANT && (str->s_buffer == NULL)) { in stream_wide_prime()
74 (void) memcpy(str->s_buffer, str->s_current.l_data.wp, in stream_wide_prime()
76 str->s_current.l_data.wp = str->s_buffer; in stream_wide_prime()
116 *(str->s_current.l_data.wp + str->s_current.l_data_length) = L'\0'; in stream_wide_prime()
170 if (*(str->s_current.l_data.wp + str->s_current.l_data_length) != in stream_wide_fetch()
186 *(str->s_current.l_data.wp + str->s_current.l_data_length) = in stream_wide_fetch()
202 str->s_current.l_data.wp = str->s_buffer; in stream_wide_fetch_overwrite()
214 str->s_current.l_data_length = wslen(str->s_current.l_data.wp) - 1; in stream_wide_fetch_overwrite()
218 *(str->s_current.l_data.wp + str->s_current.l_data_length) != in stream_wide_fetch_overwrite()
229 *(str->s_current.l_data.wp + str->s_current.l_data_length) = L'\0'; in stream_wide_fetch_overwrite()
[all …]
H A Dstreams_array.c41 str->s_type.LA.s_cur_index = MIN(0, str->s_type.LA.s_array_size - 1); in stream_array_prime()
44 str->s_type.LA.s_array[str->s_type.LA.s_cur_index], in stream_array_prime()
45 &str->s_current); in stream_array_prime()
52 stream_set(str, STREAM_PRIMED); in stream_array_prime()
61 ASSERT(str->s_type.LA.s_cur_index < str->s_type.LA.s_array_size); in stream_array_fetch()
63 if (++str->s_type.LA.s_cur_index == str->s_type.LA.s_array_size - 1) in stream_array_fetch()
66 copy_line_rec(str->s_type.LA.s_array[str->s_type.LA.s_cur_index], in stream_array_fetch()
67 &str->s_current); in stream_array_fetch()
104 stream_array_eos(stream_t *str) in stream_array_eos() argument
108 if (str == NULL || str->s_status & STREAM_EOS_REACHED) in stream_array_eos()
[all …]
H A Dstreams.c48 stream_clear(str); in stream_new()
49 stream_set(str, src); in stream_new()
51 return (str); in stream_new()
180 while (str != NULL) { in stream_count_chain()
182 str = str->s_next; in stream_count_chain()
229 str->s_buffer = mmap(0, str->s_filesize, PROT_READ, in stream_open_for_read()
233 str->s_buffer_size = str->s_filesize; in stream_open_for_read()
251 if ((str->s_type.BF.s_fp = fopen(str->s_filename, "r")) == NULL) { in stream_open_for_read()
259 if (setvbuf(str->s_type.BF.s_fp, str->s_type.BF.s_vbuf, _IOFBF, in stream_open_for_read()
287 (void) munmap(str->s_buffer, str->s_buffer_size); in stream_set_size()
[all …]
/illumos-gate/usr/src/boot/sys/boot/common/
H A Dinterp_backslash.c54 str++; in backslash()
67 str++; in backslash()
72 str++; in backslash()
77 str++; in backslash()
82 str++; in backslash()
87 str++; in backslash()
92 str++; in backslash()
97 str++; in backslash()
109 if (*str >= '0' && *str <= '3' && in backslash()
110 *(str + 1) >= '0' && *(str + 1) <= '7' && in backslash()
[all …]
/illumos-gate/usr/src/cmd/lp/lib/lp/
H A Dsyntax.c42 char * str in syn_name() argument
46 char *str; in syn_name()
51 if (!str || !*str)
67 char * str in syn_type() argument
71 char *str; in syn_type()
76 if (!str)
92 char * str in syn_text() argument
101 if (!str)
123 if (!str)
143 if (!str)
[all …]
H A Dwhich.c48 char * str in isprinter() argument
52 char *str; in isprinter()
60 str
61 && *str
77 char * str in isclass() argument
80 isclass (str) in isclass()
81 char *str; in isclass()
89 str
90 && *str
106 char * str in isrequest() argument
[all …]
/illumos-gate/usr/src/lib/libnsl/rpc/
H A Dclnt_perror.c155 str += strlen(str); in clnt_sperror()
160 str += strlen(str); in clnt_sperror()
164 str += strlen(str); in clnt_sperror()
174 str += strlen(str); in clnt_sperror()
179 str += strlen(str); in clnt_sperror()
187 str += strlen(str); in clnt_sperror()
193 str += strlen(str); in clnt_sperror()
201 str += strlen(str); in clnt_sperror()
208 str += strlen(str); in clnt_sperror()
214 str += strlen(str); in clnt_sperror()
[all …]
/illumos-gate/usr/src/lib/libxcurses2/src/libc/xcurses/
H A Dcaps53 # type One of bool, number, str
428 user0 u0 u0 str User string 0
429 user1 u1 u1 str User string 1
430 user2 u2 u2 str User string 2
431 user3 u3 u3 str User string 3
432 user4 u4 u4 str User string 4
433 user5 u5 u5 str User string 5
434 user6 u6 u6 str User string 6
435 user7 u7 u7 str User string 7
436 user8 u8 u8 str User string 8
[all …]
/illumos-gate/usr/src/lib/libxcurses/src/libc/xcurses/
H A Dcaps53 # type One of bool, number, str
428 user0 u0 u0 str User string 0
429 user1 u1 u1 str User string 1
430 user2 u2 u2 str User string 2
431 user3 u3 u3 str User string 3
432 user4 u4 u4 str User string 4
433 user5 u5 u5 str User string 5
434 user6 u6 u6 str User string 6
435 user7 u7 u7 str User string 7
436 user8 u8 u8 str User string 8
[all …]
H A Daddnstr.c47 (addnstr)(str, n)
48 const char *str;
65 const char *str; variable
84 const char *str; variable
100 (addstr)(str)
101 const char *str;
115 (mvaddstr)(y, x, str)
117 const char *str; variable
135 const char *str; variable
150 (waddstr)(w, str)
[all …]
H A Dgetnstr.c47 (getnstr)(str, n)
48 char *str;
65 char *str; variable
84 char *str; variable
100 (getstr)(str)
101 char *str;
115 (mvgetstr)(y, x, str)
117 char *str; variable
135 char *str; variable
151 (wgetstr)(w, str)
[all …]
/illumos-gate/usr/src/cmd/truss/
H A Dprocset.c67 const char *str; in idop_enum() local
80 return (str); in idop_enum()
86 const char *str; in idtype_enum() local
108 return (str); in idtype_enum()
114 char *str = pri->code_buf; in woptions() local
122 *str = '\0'; in woptions()
124 (void) strcat(str, "|WEXITED"); in woptions()
126 (void) strcat(str, "|WTRAPPED"); in woptions()
132 (void) strcat(str, "|WNOHANG"); in woptions()
134 (void) strcat(str, "|WNOWAIT"); in woptions()
[all …]
/illumos-gate/usr/src/lib/libresolv2/common/isc/
H A Dev_streams.c126 str->timer = timer; in evTimeRW()
205 str->ioTotal = 0; in copyvec()
211 str->iovCur = str->iovOrig; in copyvec()
212 str->iovCurCount = str->iovOrigCount; in copyvec()
213 str->ioDone = 0; in copyvec()
229 str->ioDone += str->iovCur->iov_len; in consume()
230 str->iovCur++; in consume()
262 bytes = writev(fd, str->iovCur, str->iovCurCount); in writable()
273 if (str->ioDone == -1 || str->ioDone == str->ioTotal) in writable()
285 bytes = readv(fd, str->iovCur, str->iovCurCount); in readable()
[all …]
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/funcs/
H A Dtst.strstr.d36 c = str;
37 printf("strstr(\"%s\", \"%s\") = \"%s\"\n", str, c, strstr(str, c));
40 printf("strstr(\"%s\", \"%s\") = \"%s\"\n", str, c, strstr(str, c));
43 printf("strstr(\"%s\", \"%s\") = \"%s\"\n", str, c, strstr(str, c));
46 printf("strstr(\"%s\", \"%s\") = \"%s\"\n", str, c, strstr(str, c));
49 printf("strstr(\"%s\", \"%s\") = \"%s\"\n", str, c, strstr(str, c));
52 strstr(str, "baz"), strstr(str, "zba"),
53 strstr(strstr(str, "baz"), strstr(str, "zba")));
56 printf("strstr(\"%s\", \"%s\") = \"%s\"\n", str, c, strstr(str, c));
58 str = "";
[all …]
H A Dtst.index.d32 string str; member
66 command[i].str = "";
74 command[i].str = "";
89 command[i + k].str = command[j].str;
95 command[i + k].str = command[j].str;
101 command[i + k].str = command[j].str;
107 command[i + k].str = command[j].str;
113 command[i + k].str = command[j].str;
119 command[i + k].str = command[j].str;
125 command[i + k].str = command[j].str;
[all …]
/illumos-gate/usr/src/test/util-tests/tests/awk/gnu/
H A Dgsubtest.awk2 str = "abc"; print gsub("b+", "FOO", str), str
3 str = "abc"; print gsub("x*", "X", str), str
4 str = "abc"; print gsub("b*", "X", str), str
5 str = "abc"; print gsub("c", "X", str), str
6 str = "abc"; print gsub("c+", "X", str), str
7 str = "abc"; print gsub("x*$", "X", str), str
8 str = "abc"; print gsub("b|$", "X", str), str
/illumos-gate/usr/src/cmd/sgs/libconv/common/
H A Dstrproc.c73 str++; in conv_strproc_trim()
76 tail = str + strlen(str); in conv_strproc_trim()
81 return (str); in conv_strproc_trim()
113 str += token_len; in conv_strproc_extract_value()
120 str++; in conv_strproc_extract_value()
123 if (*str != '=') in conv_strproc_extract_value()
131 str++; in conv_strproc_extract_value()
137 *value = str; in conv_strproc_extract_value()
141 for (; *str; str++) in conv_strproc_extract_value()
142 if ((*str >= 'a') && (*str <= 'z')) in conv_strproc_extract_value()
[all …]
/illumos-gate/usr/src/cmd/tbl/
H A Dtm.c26 p = str; in maknew()
27 for (ba= 0; c = *str; str++) in maknew()
29 ba=str; in maknew()
30 str=p; in maknew()
33 for (dpoint=0; *str; str++) in maknew()
35 if (*str=='.' && !ineqn(str,p) && in maknew()
36 (str>p && digit(*(str-1)) || in maknew()
41 for(; str>p; str--) in maknew()
43 if (digit( * (str-1) ) && !ineqn(str, p)) in maknew()
51 str = ba; in maknew()
[all …]
/illumos-gate/usr/src/uts/common/rpc/
H A Dclnt_perr.c132 char *str; in clnt_sperror() local
136 strstart = str; in clnt_sperror()
140 (void) sprintf(str, "%s: ", s); in clnt_sperror()
141 str += strlen(str); in clnt_sperror()
144 str += strlen(str); in clnt_sperror()
177 str += strlen(str); in clnt_sperror()
196 str += strlen(str); in clnt_sperror()
208 (void) sprintf(str, in clnt_sperror()
217 str += strlen(str); in clnt_sperror()
221 (void) sprintf(str, in clnt_sperror()
[all …]
/illumos-gate/usr/src/lib/libdhcpagent/common/
H A Ddhcpagent_util.c243 (void) snprintf(str, sizeof (str), DHCP_STATUS_STR, in dhcp_status_reply_to_string()
248 (void) strlcat(str, "[PRIMARY] ", sizeof (str)); in dhcp_status_reply_to_string()
251 (void) strlcat(str, "[BOOTP] ", sizeof (str)); in dhcp_status_reply_to_string()
254 (void) strlcat(str, "[FAILED] ", sizeof (str)); in dhcp_status_reply_to_string()
257 (void) strlcat(str, "[BUSY] ", sizeof (str)); in dhcp_status_reply_to_string()
260 (void) strlcat(str, "[V6] ", sizeof (str)); in dhcp_status_reply_to_string()
262 (void) strlcat(str, "\n", sizeof (str)); in dhcp_status_reply_to_string()
275 (void) strlcat(str, ", ", sizeof (str)); in dhcp_status_reply_to_string()
277 (void) strlcat(str, ", ", sizeof (str)); in dhcp_status_reply_to_string()
279 (void) strlcat(str, ")\n", sizeof (str)); in dhcp_status_reply_to_string()
[all …]
/illumos-gate/usr/src/common/smbsrv/
H A Dsmb_match.c160 #define ADVANCE(str) \ in smb_match_private() argument
175 if (*str != '\0') { in smb_match_private()
176 ADVANCE(str); in smb_match_private()
193 ADVANCE(str); in smb_match_private()
201 while (*str != '\0' && str != limit) { in smb_match_private()
207 ADVANCE(str); in smb_match_private()
213 if (*str == '.') { in smb_match_private()
224 ADVANCE(str); in smb_match_private()
231 if (*str == '.') { in smb_match_private()
249 str += nbstr; in smb_match_private()
[all …]
/illumos-gate/usr/src/lib/gss_mechs/mech_dh/backend/mech/
H A Dsupport.c52 char *str; in __dh_gss_display_status() local
86 str = dgettext(TEXT_DOMAIN, "mech_dh: Success"); in __dh_gss_display_status()
89 str = dgettext(TEXT_DOMAIN, "mech_dh: No memory"); in __dh_gss_display_status()
92 str = dgettext(TEXT_DOMAIN, in __dh_gss_display_status()
96 str = dgettext(TEXT_DOMAIN, in __dh_gss_display_status()
100 str = dgettext(TEXT_DOMAIN, "mech_dh: Bad argument"); in __dh_gss_display_status()
121 str = dgettext(TEXT_DOMAIN, "mech_dh: Unkown QOP"); in __dh_gss_display_status()
130 str = dgettext(TEXT_DOMAIN, in __dh_gss_display_status()
144 str = dgettext(TEXT_DOMAIN, "mech_dh: Invalid or " in __dh_gss_display_status()
151 status_str->value = strdup(str); in __dh_gss_display_status()
[all …]
/illumos-gate/usr/src/cmd/ast/libshell/common/tests/
H A Dsun_solaris_cr_6805795_negative_zero.sh74 typeset str
77 str=$(
86 str=$(
100 [[ "${str}" == "-0" ]] || err_exit "Expected c == -0, got ${str}"
104 str=$(
117 str=$(
129 [[ "${str}" == "1" ]] || err_exit "Expected c == 1, got ${str}"
134 str=$(
147 [[ "${str}" == -0x* ]] || err_exit "Expected c == -0x*, got ${str}"
152 str=$(
[all …]

12345678910>>...62