Home
last modified time | relevance | path

Searched refs:s_buffer_size (Results 1 – 6 of 6) sorted by relevance

/titanic_44/usr/src/cmd/sort/common/
H A Dstreams_mmap.c46 if (str->s_buffer_size == 0) { in stream_mmap_prime()
53 if ((nl = (char *)memchr(str->s_buffer, '\n', str->s_buffer_size)) == in stream_mmap_prime()
56 str->s_current.l_data_length = str->s_buffer_size; in stream_mmap_prime()
87 dist_to_buf_end = str->s_buffer_size - (str->s_current.l_data.sp in stream_mmap_fetch()
89 ASSERT(dist_to_buf_end >= 0 && dist_to_buf_end <= str->s_buffer_size); 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()
149 str->s_buffer_size = 0; in stream_mmap_free()
172 str->s_buffer_size)) { in stream_mmap_eos()
H A Dstreams.c233 str->s_buffer_size = str->s_filesize; in stream_open_for_read()
283 if (str->s_buffer_size == p_new_size) in stream_set_size()
287 (void) munmap(str->s_buffer, str->s_buffer_size); in stream_set_size()
291 str->s_buffer_size = 0; in stream_set_size()
301 str->s_buffer_size = p_new_size; in stream_set_size()
380 out_streamp->s_buffer_size = 0; in stream_push_to_temporary()
480 + dest->s_buffer_size) - dest->s_type.LA.s_array_size; in stream_insert()
588 *size = str->s_buffer_size; in stream_swap_buffer()
591 str->s_buffer_size = ts; in stream_swap_buffer()
H A Dstreams_stdio.c96 str->s_buffer_size = STDIO_VBUF_SIZE; in stream_stdio_prime()
135 end_of_buffer = (char *)str->s_buffer + str->s_buffer_size; in stream_stdio_prime()
199 dist_to_buf_end = str->s_buffer_size - (graft_pt - in stream_stdio_fetch()
284 dist_to_buf_end = str->s_buffer_size; in stream_stdio_fetch_overwrite()
440 if (munmap(str->s_buffer, str->s_buffer_size) < 0) in stream_stdio_free()
444 str->s_buffer_size = 0; in stream_stdio_free()
H A Dstreams_wide.c65 str->s_buffer_size = WIDE_VBUF_SIZE; in stream_wide_prime()
94 str->s_buffer_size); in stream_wide_prime()
143 dist_to_buf_end = str->s_buffer_size / sizeof (wchar_t) - (graft_pt - in stream_wide_fetch()
203 dist_to_buf_end = str->s_buffer_size / sizeof (wchar_t); in stream_wide_fetch_overwrite()
H A Dinternal.c367 sort_stream->s_buffer_size = prev_sort_mem; in internal_sort()
373 prev_sort_mem = sort_stream->s_buffer_size; in internal_sort()
H A Dtypes.h215 size_t s_buffer_size; member