/titanic_51/usr/src/cmd/sort/common/ |
H A D | streams_stdio.c | 48 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 in stream_stdio_prime() 173 stream_stdio_fetch(stream_t * str) stream_stdio_fetch() argument 275 stream_stdio_fetch_overwrite(stream_t * str) stream_stdio_fetch_overwrite() argument 320 stream_stdio_is_closable(stream_t * str) stream_stdio_is_closable() argument 328 stream_stdio_close(stream_t * str) stream_stdio_close() argument 352 stream_stdio_send_eol(stream_t * str) stream_stdio_send_eol() argument 362 stream_stdio_flush(stream_t * str) stream_stdio_flush() argument 372 stream_stdio_put_line(stream_t * str,line_rec_t * line) stream_stdio_put_line() argument 390 stream_stdio_put_line_unique(stream_t * str,line_rec_t * line) stream_stdio_put_line_unique() argument 420 stream_stdio_unlink(stream_t * str) stream_stdio_unlink() argument 429 stream_stdio_free(stream_t * str) stream_stdio_free() argument 454 stream_stdio_eos(stream_t * str) stream_stdio_eos() argument 477 stream_stdio_release_line(stream_t * str) stream_stdio_release_line() argument [all...] |
H A D | streams_mmap.c | 37 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 in stream_mmap_prime() 73 stream_mmap_fetch(stream_t * str) stream_mmap_fetch() argument 115 stream_mmap_is_closable(stream_t * str) stream_mmap_is_closable() argument 123 stream_mmap_close(stream_t * str) stream_mmap_close() argument 135 stream_mmap_free(stream_t * str) stream_mmap_free() argument 157 stream_mmap_eos(stream_t * str) stream_mmap_eos() argument 191 stream_mmap_release_line(stream_t * str) stream_mmap_release_line() argument [all...] |
H A D | streams_wide.c | 50 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 in stream_wide_prime() 126 stream_wide_fetch(stream_t * str) stream_wide_fetch() argument 195 stream_wide_fetch_overwrite(stream_t * str) stream_wide_fetch_overwrite() argument 236 stream_wide_send_eol(stream_t * str) stream_wide_send_eol() argument 248 stream_wide_put_line(stream_t * str,line_rec_t * line) stream_wide_put_line() argument 265 stream_wide_put_line_unique(stream_t * str,line_rec_t * line) stream_wide_put_line_unique() argument 295 stream_wide_eos(stream_t * str) stream_wide_eos() argument 315 stream_wide_release_line(stream_t * str) stream_wide_release_line() argument [all...] |
H A D | streams_array.c | 37 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_PRIME in stream_array_prime() 58 stream_array_fetch(stream_t * str) stream_array_fetch() argument 74 stream_array_is_closable(stream_t * str) stream_array_is_closable() argument 84 stream_array_close(stream_t * str) stream_array_close() argument 92 stream_array_free(stream_t * str) stream_array_free() argument 104 stream_array_eos(stream_t * str) stream_array_eos() argument 121 stream_array_release_line(stream_t * str) stream_array_release_line() argument [all...] |
H A D | streams.c | 46 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 in stream_set() 140 stream_clear(stream_t * str) stream_clear() argument 176 stream_count_chain(stream_t * str) stream_count_chain() argument 189 stream_open_for_read(sort_t * S,stream_t * str) stream_open_for_read() argument 273 stream_set_size(stream_t * str,size_t new_size) stream_set_size() argument 307 stream_t *str; stream_add_file_to_chain() local 582 stream_swap_buffer(stream_t * str,char ** buf,size_t * size) stream_swap_buffer() argument [all...] |
/titanic_51/usr/src/boot/sys/boot/common/ |
H A D | interp_backslash.c | 27 * backslash: Return malloc'd copy of str with all standard "backslash 31 backslash(char *str) in backslash() argument 45 if ((new_str = strdup(str)) == NULL) in backslash() 48 while (*str) { in backslash() 51 switch (*str) { in backslash() 54 str++; in backslash() 62 new_str[i++] = *str++; in backslash() 67 str++; in backslash() 72 str++; in backslash() 77 str in backslash() [all...] |
/titanic_51/usr/src/cmd/lp/lib/lp/ |
H A D | syntax.c | 42 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() 92 syn_text(char * str) syn_text() argument 114 syn_comment(char * str) syn_comment() argument 136 syn_machine_name(char * str) syn_machine_name() argument 155 syn_option(char * str) syn_option() argument [all...] |
H A D | which.c | 48 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 106 isrequest(char * str) isrequest() argument [all...] |
/titanic_51/usr/src/lib/libnsl/rpc/ |
H A D | clnt_perror.c | 118 #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() 240 char *str = __buf(); clnt_spcreateerror() local [all...] |
/titanic_51/usr/src/lib/libxcurses2/src/libc/xcurses/ |
H A D | caps | 53 # 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 Se [all...] |
/titanic_51/usr/src/lib/libxcurses/src/libc/xcurses/ |
H A D | caps | 53 # 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 Se [all...] |
H A D | addnstr.c | 47 (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 117 const char *str; global() variable 135 const char *str; global() variable 152 const char *str; global() variable [all...] |
H A D | getnstr.c | 47 (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 117 char *str; global() variable 135 char *str; global() variable 153 char *str; global() variable [all...] |
/titanic_51/usr/src/cmd/truss/ |
H A D | procset.c | 67 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 in idtype_enum() 114 char *str = pri->code_buf; woptions() local [all...] |
/titanic_51/usr/src/cmd/dtrace/test/tst/common/funcs/ |
H A D | tst.strstr.d | 33 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, [all...] |
H A D | tst.index.d | 32 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_51/usr/src/lib/libresolv2/common/isc/ |
H A D | ev_streams.c | 40 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 in copyvec() 223 consume(evStream * str,size_t bytes) consume() argument 242 done(evContext opaqueCtx,evStream * str) done() argument 261 evStream *str = uap; writable() local 284 evStream *str = uap; readable() local [all...] |
/titanic_51/usr/src/cmd/sgs/libconv/common/ |
H A D | strproc.c | 50 * str - String to be trimmed 56 * Leading whitespace is trimmed by advancing the given str pointer, 58 * should retain a copy of the original str pointer if they need to 67 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,const char ** value) conv_strproc_extract_value() argument [all...] |
/titanic_51/usr/src/cmd/tbl/ |
H A D | tm.c | 21 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 in maknew() [all...] |
/titanic_51/usr/src/uts/common/rpc/ |
H A D | clnt_perr.c | 132 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, "; in clnt_sperror() [all...] |
/titanic_51/usr/src/lib/libdhcpagent/common/ |
H A D | dhcpagent_util.c | 235 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, "[BUS in dhcp_status_reply_to_string() [all...] |
/titanic_51/usr/src/common/smbsrv/ |
H A D | smb_match.c | 140 smb_match_private(const char *pat, const char *str, struct match_priv *priv) in smb_match_private() argument 145 smb_wchar_t wcpat, wcstr; /* current wchar in pat, str */ in smb_match_private() 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() [all...] |
/titanic_51/usr/src/lib/libshell/common/tests/ |
H A D | sun_solaris_cr_6805795_negative_zero.sh | 74 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_51/usr/src/cmd/ast/libshell/common/tests/ |
H A D | sun_solaris_cr_6805795_negative_zero.sh | 74 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}" [all...] |
/titanic_51/usr/src/lib/gss_mechs/mech_dh/backend/mech/ |
H A D | support.c | 52 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 in __dh_gss_display_status() [all...] |