Searched refs:s_buffer (Results 1 - 6 of 6) sorted by relevance

/illumos-gate/usr/src/cmd/sort/common/
H A Dstreams_mmap.c51 str->s_current.l_data.sp = str->s_buffer;
52 str->s_type.SF.s_release_origin = str->s_buffer;
53 if ((nl = (char *)memchr(str->s_buffer, '\n', str->s_buffer_size)) ==
58 str->s_current.l_data_length = nl - (char *)str->s_buffer;
88 - (char *)str->s_buffer);
105 (char *)str->s_buffer + str->s_buffer_size)
142 if (str->s_buffer == NULL)
145 if (munmap(str->s_buffer, str->s_buffer_size) < 0)
148 str->s_buffer = NULL;
171 (char *)str->s_buffer
[all...]
H A Dstreams_wide.c60 if (str->s_status & STREAM_INSTANT && (str->s_buffer == NULL)) {
61 str->s_buffer = xzmap(0, WIDE_VBUF_SIZE, PROT_READ |
63 if (str->s_buffer == MAP_FAILED)
68 ASSERT(str->s_buffer != NULL);
74 (void) memcpy(str->s_buffer, str->s_current.l_data.wp,
76 str->s_current.l_data.wp = str->s_buffer;
91 current_position = (wchar_t *)str->s_buffer;
93 end_of_buffer = (wchar_t *)((char *)str->s_buffer +
144 (wchar_t *)str->s_buffer);
202 str->s_current.l_data.wp = str->s_buffer;
[all...]
H A Dstreams.c229 str->s_buffer = mmap(0, str->s_filesize, PROT_READ,
232 if (str->s_buffer != MAP_FAILED) {
247 str->s_buffer = NULL;
286 if (str->s_buffer != NULL)
287 (void) munmap(str->s_buffer, str->s_buffer_size);
290 str->s_buffer = NULL;
295 str->s_buffer = xzmap(0, p_new_size, PROT_READ | PROT_WRITE,
298 if (str->s_buffer == MAP_FAILED)
379 out_streamp->s_buffer = NULL;
460 char *l_convert = dest->s_buffer;
[all...]
H A Dstreams_stdio.c73 * for the stream; otherwise, the s_buffer and s_buffer_size members should have
91 if (str->s_status & STREAM_INSTANT && (str->s_buffer == NULL)) {
92 str->s_buffer = xzmap(0, STDIO_VBUF_SIZE, PROT_READ |
94 if (str->s_buffer == MAP_FAILED)
99 ASSERT(str->s_buffer != NULL);
110 (void) memcpy(str->s_buffer, str->s_current.l_data.sp,
112 str->s_current.l_data.sp = str->s_buffer;
134 current_position = (char *)str->s_buffer;
135 end_of_buffer = (char *)str->s_buffer + str->s_buffer_size;
200 (char *)str->s_buffer);
[all...]
H A Dinternal.c366 sort_stream->s_buffer = prev_sort_buf;
372 prev_sort_buf = sort_stream->s_buffer;
H A Dtypes.h204 struct stream *s_consumer; /* dependent on s_buffer */
214 void *s_buffer; member in struct:stream

Completed in 58 milliseconds