Home
last modified time | relevance | path

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

12345678910>>...66

/titanic_41/usr/src/cmd/sort/common/
H A Dstreams_stdio.c48 stream_stdio_open_for_write(stream_t *str) in stream_stdio_open_for_write() argument
50 stream_simple_file_t *SF = &(str->s_type.SF); in stream_stdio_open_for_write()
52 ASSERT(!(str->s_status & STREAM_OPEN)); in stream_stdio_open_for_write()
53 ASSERT(!(str->s_status & STREAM_OUTPUT)); in stream_stdio_open_for_write()
55 if (str->s_status & STREAM_NOTFILE) in stream_stdio_open_for_write()
58 if ((SF->s_fd = open(str->s_filename, O_CREAT | O_TRUNC | in stream_stdio_open_for_write()
63 die(EMSG_OPEN, str->s_filename); in stream_stdio_open_for_write()
66 stream_set(str, STREAM_OPEN | STREAM_OUTPUT); in stream_stdio_open_for_write()
80 stream_stdio_prime(stream_t *str) in stream_stdio_prime() argument
82 stream_buffered_file_t *BF = &(str->s_type.BF); in stream_stdio_prime()
[all …]
H A Dstreams_mmap.c37 stream_mmap_prime(stream_t *str) in stream_mmap_prime() argument
41 if (stream_is_primed(str)) in stream_mmap_prime()
44 stream_set(str, STREAM_PRIMED); in stream_mmap_prime()
46 if (str->s_buffer_size == 0) { in stream_mmap_prime()
47 stream_set(str, STREAM_EOS_REACHED); in stream_mmap_prime()
51 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()
53 if ((nl = (char *)memchr(str->s_buffer, '\n', str->s_buffer_size)) == in stream_mmap_prime()
55 warn(WMSG_NEWLINE_ADDED, str->s_filename); in stream_mmap_prime()
56 str->s_current.l_data_length = str->s_buffer_size; in stream_mmap_prime()
[all …]
H A Dstreams_wide.c50 stream_wide_prime(stream_t *str) in stream_wide_prime() argument
52 stream_buffered_file_t *BF = &(str->s_type.BF); in stream_wide_prime()
57 ASSERT(!(str->s_status & STREAM_OUTPUT)); in stream_wide_prime()
58 ASSERT(str->s_status & STREAM_OPEN); in stream_wide_prime()
60 if (str->s_status & STREAM_INSTANT && (str->s_buffer == NULL)) { in stream_wide_prime()
61 str->s_buffer = xzmap(0, WIDE_VBUF_SIZE, PROT_READ | in stream_wide_prime()
63 if (str->s_buffer == MAP_FAILED) in stream_wide_prime()
65 str->s_buffer_size = WIDE_VBUF_SIZE; in stream_wide_prime()
68 ASSERT(str->s_buffer != NULL); in stream_wide_prime()
70 if (stream_is_primed(str)) { in stream_wide_prime()
[all …]
H A Dstreams_array.c37 stream_array_prime(stream_t *str) in stream_array_prime() argument
39 ASSERT((str->s_status & STREAM_SOURCE_MASK) == STREAM_ARRAY); in stream_array_prime()
41 str->s_type.LA.s_cur_index = MIN(0, str->s_type.LA.s_array_size - 1); in stream_array_prime()
42 if (str->s_type.LA.s_cur_index >= 0) 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()
47 stream_set(str, STREAM_EOS_REACHED); in stream_array_prime()
48 stream_unset(str, STREAM_PRIMED); in stream_array_prime()
52 stream_set(str, STREAM_PRIMED); in stream_array_prime()
58 stream_array_fetch(stream_t *str) in stream_array_fetch() argument
[all …]
H A Dstreams.c46 stream_t *str = safe_realloc(NULL, sizeof (stream_t)); in stream_new() local
48 stream_clear(str); in stream_new()
49 stream_set(str, src); in stream_new()
51 return (str); in stream_new()
55 stream_set(stream_t *str, flag_t flags) in stream_set() argument
63 str->s_status &= ~STREAM_SOURCE_MASK; in stream_set()
64 str->s_status |= flags & STREAM_SOURCE_MASK; in stream_set()
68 str->s_element_size = 0; in stream_set()
69 str->s_ops = invalid_ops; in stream_set()
75 str->s_ops = stream_array_ops; in stream_set()
[all …]
/titanic_41/usr/src/cmd/lp/lib/lp/
H A Dsyntax.c42 char * str in syn_name() argument
45 syn_name (str) in syn_name()
46 char *str; in syn_name()
51 if (!str || !*str)
54 if (strlen(str) > (size_t) MAXPATHLEN)
57 for (p = str; *p; p++)
67 char * str in syn_type() argument
70 syn_type (str) in syn_type()
71 char *str; in syn_type()
76 if (!str)
[all …]
H A Dwhich.c48 char * str in isprinter() argument
51 isprinter (str) in isprinter()
52 char *str; in isprinter()
60 str
61 && *str
62 && (path = getprinterfile(str, CONFIGFILE))
77 char * str in isclass() argument
80 isclass (str) in isclass()
81 char *str; in isclass()
89 str
[all …]
/titanic_41/usr/src/lib/libnsl/rpc/
H A Dclnt_perror.c118 #define REMAINDER (ERRBUFSZ - (str - strstart))
125 char *str = __buf(); in clnt_sperror() local
126 char *strstart = str; in clnt_sperror()
128 if (str == NULL) in clnt_sperror()
132 (void) snprintf(str, ERRBUFSZ, "%s: ", s); in clnt_sperror()
133 str += strlcat(str, clnt_sperrno(e.re_status), ERRBUFSZ); in clnt_sperror()
154 (void) snprintf(str, REMAINDER, "; %s", netdir_sperror()); in clnt_sperror()
155 str += strlen(str); in clnt_sperror()
159 (void) snprintf(str, REMAINDER, "; %s", t_errlist[e.re_terrno]); in clnt_sperror()
160 str += strlen(str); in clnt_sperror()
[all …]
/titanic_41/usr/src/lib/libxcurses2/src/libc/xcurses/
H A Dcaps53 # type One of bool, number, str
141 back_tab cbt bt str Back tab (P)
142 bell bel bl str Audible signal (bell) (P)
143 carriage_return cr cr str Carriage return (P*)
144 change_scroll_region csr cs str change to lines #1 through #2 (vt100) (PG)
145 clear_all_tabs tbc ct str Clear all tab stops. (P)
146 clear_screen clear cl str Clear screen (P*)
147 clr_eol el ce str Clear to end of line (P)
148 clr_eos ed cd str Clear to end of display (P*)
149 column_address hpa ch str Set cursor column (PG)
[all …]
/titanic_41/usr/src/lib/libxcurses/src/libc/xcurses/
H A Dcaps53 # type One of bool, number, str
141 back_tab cbt bt str Back tab (P)
142 bell bel bl str Audible signal (bell) (P)
143 carriage_return cr cr str Carriage return (P*)
144 change_scroll_region csr cs str change to lines #1 through #2 (vt100) (PG)
145 clear_all_tabs tbc ct str Clear all tab stops. (P)
146 clear_screen clear cl str Clear screen (P*)
147 clr_eol el ce str Clear to end of line (P)
148 clr_eos ed cd str Clear to end of display (P*)
149 column_address hpa ch str Set cursor column (PG)
[all …]
H A Daddnstr.c47 (addnstr)(str, n)
48 const char *str;
54 __m_trace("addnstr(%p, %d)", str, n);
57 code = waddnstr(stdscr, str, n);
63 (mvaddnstr)(y, x, str, n)
65 const char *str; variable
71 __m_trace("mvaddnstr(%d, %d, %p, %d)", y, x, str, n);
75 code = waddnstr(stdscr, str, n);
81 (mvwaddnstr)(w, y, x, str, n)
84 const char *str; variable
[all …]
H A Dgetnstr.c47 (getnstr)(str, n)
48 char *str;
54 __m_trace("getnstr(%p, %d)", str, n);
57 code = wgetnstr(stdscr, str, n);
63 (mvgetnstr)(y, x, str, n)
65 char *str; variable
71 __m_trace("mvgetnstr(%d, %d, %p, %d)", y, x, str, n);
75 code = wgetnstr(stdscr, str, n);
81 (mvwgetnstr)(w, y, x, str, n)
84 char *str; variable
[all …]
/titanic_41/usr/src/cmd/krb5/kadmin/gui/visualrt/sunsoft/jws/visual/rt/awt/
H A DKeyField.java92 String str; in getKeyString() local
96 str = /* NOI18N */"null"; in getKeyString()
99 str = /* NOI18N */"Line Feed"; in getKeyString()
102 str = /* NOI18N */"Tab"; in getKeyString()
105 str = /* NOI18N */"Form Feed"; in getKeyString()
108 str = /* NOI18N */"Carriage Return"; in getKeyString()
112 str = /* NOI18N */"Back Space"; in getKeyString()
115 str = /* NOI18N */"Space"; in getKeyString()
120 str = /* NOI18N */"Esc"; in getKeyString()
124 str = /* NOI18N */"Delete"; in getKeyString()
[all …]
/titanic_41/usr/src/cmd/truss/
H A Dprocset.c67 const char *str; in idop_enum() local
70 case POP_DIFF: str = "POP_DIFF"; break; in idop_enum()
71 case POP_AND: str = "POP_AND"; break; in idop_enum()
72 case POP_OR: str = "POP_OR"; break; in idop_enum()
73 case POP_XOR: str = "POP_XOR"; break; in idop_enum()
76 str = (const char *)pri->code_buf; in idop_enum()
80 return (str); in idop_enum()
86 const char *str; in idtype_enum() local
89 case P_PID: str = "P_PID"; break; in idtype_enum()
90 case P_PPID: str = "P_PPID"; break; in idtype_enum()
[all …]
/titanic_41/usr/src/cmd/dtrace/test/tst/common/funcs/
H A Dtst.strstr.d33 str = "foobarbarbazbarbop";
36 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));
[all …]
H A Dtst.index.d32 string str; member
42 command[i].str = "foobarbaz";
46 command[i].str = "foofoofoo";
50 command[i].str = "boofoofoo";
54 command[i].str = "foobarbaz";
58 command[i].str = "foobar";
62 command[i].str = "foobar";
66 command[i].str = "";
70 command[i].str = "foobar";
74 command[i].str = "";
[all …]
/titanic_41/usr/src/lib/libresolv2/common/isc/
H A Dev_streams.c40 static int copyvec(evStream *str, const struct iovec *iov, int iocnt);
41 static void consume(evStream *str, size_t bytes);
42 static void done(evContext opaqueCtx, evStream *str);
126 evStream *str = id.opaque; in evTimeRW() local
130 str->timer = timer; in evTimeRW()
131 str->flags |= EV_STR_TIMEROK; in evTimeRW()
137 evStream *str = id.opaque; in evUntimeRW() local
141 str->flags &= ~EV_STR_TIMEROK; in evUntimeRW()
201 copyvec(evStream *str, const struct iovec *iov, int iocnt) { in copyvec() argument
204 str->iovOrig = (struct iovec *)memget(sizeof(struct iovec) * iocnt); in copyvec()
[all …]
/titanic_41/usr/src/cmd/sgs/libconv/common/
H A Dstrproc.c67 conv_strproc_trim(char *str) in conv_strproc_trim() argument
72 while (conv_strproc_isspace(*str)) in conv_strproc_trim()
73 str++; in conv_strproc_trim()
76 tail = str + strlen(str); in conv_strproc_trim()
77 while ((tail > str) && conv_strproc_isspace(*(tail - 1))) in conv_strproc_trim()
81 return (str); in conv_strproc_trim()
107 conv_strproc_extract_value(char *str, size_t token_len, int flags, in conv_strproc_extract_value() argument
113 str += token_len; in conv_strproc_extract_value()
119 while (conv_strproc_isspace(*str)) in conv_strproc_extract_value()
120 str++; in conv_strproc_extract_value()
[all …]
/titanic_41/usr/src/cmd/tbl/
H A Dtm.c21 maknew(char *str) in maknew() argument
26 p = str; in maknew()
27 for (ba= 0; c = *str; str++) in maknew()
28 if (c == '\\' && *(str+1)== '&') 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()
37 digit(*(str+1)))) in maknew()
[all …]
/titanic_41/usr/src/uts/common/rpc/
H A Dclnt_perr.c132 char *str; in clnt_sperror() local
135 str = kmem_alloc(MAXPATHLEN, KM_SLEEP); in clnt_sperror()
136 strstart = str; in clnt_sperror()
140 (void) sprintf(str, "%s: ", s); in clnt_sperror()
141 str += strlen(str); in clnt_sperror()
143 (void) strcpy(str, clnt_sperrno(e.re_status)); in clnt_sperror()
144 str += strlen(str); in clnt_sperror()
167 (void) sprintf(str, "; %s", netdir_sperror()); in clnt_sperror()
173 (void) sprintf(str, "; %s", t_errlist[e.re_terrno]); in clnt_sperror()
175 (void) sprintf(str, "; %d", e.re_terrno); in clnt_sperror()
[all …]
/titanic_41/usr/src/lib/libdhcpagent/common/
H A Ddhcpagent_util.c235 static char str[1024]; in dhcp_status_reply_to_string() local
243 (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()
270 return (str); in dhcp_status_reply_to_string()
273 (void) strlcat(str, "(Began, Expires, Renew) = (", sizeof (str)); in dhcp_status_reply_to_string()
[all …]
/titanic_41/usr/src/common/smbsrv/
H A Dsmb_match.c140 smb_match_private(const char *pat, const char *str, struct match_priv *priv) in smb_match_private() argument
160 #define ADVANCE(str) \ in smb_match_private() argument
161 if ((nbstr = smb_mbtowc(NULL, str, MTS_MB_CHAR_MAX)) < 1) \ in smb_match_private()
164 str += nbstr /* no ; */ in smb_match_private()
175 if (*str != '\0') { in smb_match_private()
176 ADVANCE(str); in smb_match_private()
187 while (*str != '\0') { in smb_match_private()
189 rc = smb_match_private(pat, str, priv); in smb_match_private()
193 ADVANCE(str); in smb_match_private()
199 if ((limit = strrchr(str, '.')) != NULL) in smb_match_private()
[all …]
/titanic_41/usr/src/lib/libshell/common/tests/
H A Dsun_solaris_cr_6805795_negative_zero.sh74 typeset str
77 str=$(
82 [[ "${str}" == "-0" ]] || err_exit "Expected copysign(0, -5) == -0, got ${str}"
86 str=$(
100 [[ "${str}" == "-0" ]] || err_exit "Expected c == -0, got ${str}"
104 str=$(
113 [[ "${str}" == "1" ]] || err_exit "Expected signbit(a, b) == 1, got ${str}"
117 str=$(
129 [[ "${str}" == "1" ]] || err_exit "Expected c == 1, got ${str}"
134 str=$(
[all …]
/titanic_41/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()
103 str = dgettext(TEXT_DOMAIN, "mech_dh: Cipher failure"); in __dh_gss_display_status()
106 str = dgettext(TEXT_DOMAIN, "mech_dh: Verifier failure"); in __dh_gss_display_status()
109 str = dgettext(TEXT_DOMAIN, "mech_dh: Session cipher failure"); in __dh_gss_display_status()
112 str = dgettext(TEXT_DOMAIN, "mech_dh: No secret key"); in __dh_gss_display_status()
[all …]
/titanic_41/usr/src/lib/libshell/common/sh/
H A Darith.c117 char *str = (char*)*ptr; in arith() local
132 register int c = *str; in arith()
133 register char *xp=str; in arith()
136 str++; in arith()
137 c = mbchar(str); in arith()
144 while(xp=str, c=mbchar(str), isaname(c)); in arith()
145 str = xp; in arith()
148 str = nv_endsubscript((Namval_t*)0,str,0); in arith()
149 c = *str; in arith()
154 if((c = *++str) !='[') in arith()
[all …]

12345678910>>...66