Searched refs:s_current (Results 1 – 9 of 9) sorted by relevance
/illumos-gate/usr/src/cmd/sort/ |
H A D | streams_wide.c | 71 ASSERT(str->s_current.l_data_length >= -1); in stream_wide_prime() 72 (void) memcpy(str->s_buffer, str->s_current.l_data.wp, in stream_wide_prime() 73 (str->s_current.l_data_length + 1) * sizeof (wchar_t)); in stream_wide_prime() 74 str->s_current.l_data.wp = str->s_buffer; in stream_wide_prime() 76 if ((str->s_current.l_data_length == -1 || in stream_wide_prime() 78 *(str->s_current.l_data.wp + in stream_wide_prime() 79 str->s_current.l_data_length) != L'\0') && in stream_wide_prime() 104 str->s_current.l_data.wp = current_position; in stream_wide_prime() 109 str->s_current.l_data_length = MIN(wslen(current_position), in stream_wide_prime() 112 str->s_current.l_data_length = next_nl - current_position; in stream_wide_prime() [all …]
|
H A D | merge.c | 102 strp->s_current.l_collate_bufsize = initial_size; in merge_one_stream() 103 strp->s_current.l_collate.sp = safe_realloc(NULL, initial_size); in merge_one_stream() 105 (void) mg_coll_convert(fields_chain, &strp->s_current, in merge_one_stream() 107 SOP_PUT_LINE(outstrp, &strp->s_current); in merge_one_stream() 112 if (strp->s_current.l_collate_length == 0) in merge_one_stream() 114 &strp->s_current, FCV_REALLOC, in merge_one_stream() 116 SOP_PUT_LINE(outstrp, &strp->s_current); in merge_one_stream() 160 str_a->s_current.l_collate_bufsize = in merge_two_streams() 161 str_b->s_current.l_collate_bufsize = initial_size; in merge_two_streams() 163 str_a->s_current.l_collate.sp = safe_realloc(NULL, initial_size); in merge_two_streams() [all …]
|
H A D | streams_mmap.c | 49 str->s_current.l_data.sp = str->s_buffer; in stream_mmap_prime() 54 str->s_current.l_data_length = str->s_buffer_size; in stream_mmap_prime() 56 str->s_current.l_data_length = nl - (char *)str->s_buffer; in stream_mmap_prime() 59 str->s_current.l_collate.sp = NULL; in stream_mmap_prime() 60 str->s_current.l_collate_length = 0; in stream_mmap_prime() 82 str->s_current.l_data.sp = str->s_current.l_data.sp + in stream_mmap_fetch() 83 str->s_current.l_data_length + 1; in stream_mmap_fetch() 85 dist_to_buf_end = str->s_buffer_size - (str->s_current.l_data.sp in stream_mmap_fetch() 89 next_nl = memchr(str->s_current.l_data.sp, '\n', dist_to_buf_end); in stream_mmap_fetch() 92 str->s_current.l_data_length = next_nl in stream_mmap_fetch() [all …]
|
H A D | streams_stdio.c | 107 ASSERT(str->s_current.l_data_length >= -1); in stream_stdio_prime() 108 (void) memcpy(str->s_buffer, str->s_current.l_data.sp, in stream_stdio_prime() 109 str->s_current.l_data_length + 1); in stream_stdio_prime() 110 str->s_current.l_data.sp = str->s_buffer; in stream_stdio_prime() 116 if ((str->s_current.l_data_length == -1 || in stream_stdio_prime() 118 *(str->s_current.l_data.sp + in stream_stdio_prime() 119 str->s_current.l_data_length) != '\n') && in stream_stdio_prime() 124 str->s_current.l_collate.sp = NULL; in stream_stdio_prime() 125 str->s_current.l_collate_length = 0; in stream_stdio_prime() 145 str->s_current.l_data.sp = current_position; in stream_stdio_prime() [all …]
|
H A D | convert.c | 65 cur_streamp->s_current.l_collate.sp = safe_realloc(NULL, in convert() 67 cur_streamp->s_current.l_collate_bufsize = COLLATE_BUFSIZE; in convert() 71 &cur_streamp->s_current, FCV_REALLOC, in convert() 77 cur_streamp->s_current.l_data_length, in convert() 78 cur_streamp->s_current.l_data.wp); in convert() 81 cur_streamp->s_current.l_data_length, in convert() 82 cur_streamp->s_current.l_data.usp); in convert() 83 xdump(stdout, cur_streamp->s_current.l_collate.usp, in convert() 84 cur_streamp->s_current.l_collate_length, in convert()
|
H A D | check.c | 163 cur_streamp->s_current.l_collate_bufsize = INITIAL_COLLATION_SIZE in check_if_sorted() 165 cur_streamp->s_current.l_collate.sp = safe_realloc(NULL, in check_if_sorted() 166 cur_streamp->s_current.l_collate_bufsize); in check_if_sorted() 167 cur_streamp->s_current.l_raw_collate.sp = NULL; in check_if_sorted() 175 (void) conversion_fcn(S->m_fields_head, &cur_streamp->s_current, in check_if_sorted() 178 swap_coll_bufs(&cur_streamp->s_current, &last_line); in check_if_sorted() 186 (void) conversion_fcn(S->m_fields_head, &cur_streamp->s_current, in check_if_sorted() 189 r = collation_fcn(&last_line, &cur_streamp->s_current, 0, in check_if_sorted() 193 swap_coll_bufs(&cur_streamp->s_current, &last_line); in check_if_sorted() 202 fail_check(&cur_streamp->s_current, in check_if_sorted() [all …]
|
H A D | streams.c | 340 SOP_PUT_LINE(str_out, &str_in->s_current); in stream_dump() 344 SOP_PUT_LINE(str_out, &str_in->s_current); in stream_dump() 487 src->s_current.l_collate.sp = l_convert; in stream_insert() 488 src->s_current.l_collate_bufsize = (caddr_t)l_series in stream_insert() 490 src->s_current.l_raw_collate.sp = NULL; in stream_insert() 492 if (src->s_current.l_collate_bufsize <= 0) in stream_insert() 497 while (src->s_current.l_collate_bufsize > 0 && in stream_insert() 498 (src->s_current.l_collate_length = S->m_coll_convert( in stream_insert() 499 S->m_fields_head, &src->s_current, FCV_FAIL, in stream_insert() 503 l_convert += src->s_current.l_collate_length; in stream_insert() [all …]
|
H A D | streams_array.c | 43 &str->s_current); in stream_array_prime() 65 &str->s_current); in stream_array_fetch()
|
H A D | types.h | 208 line_rec_t s_current; /* present line buffers */ member
|