Home
last modified time | relevance | path

Searched refs:dist_to_buf_end (Results 1 – 3 of 3) sorted by relevance

/titanic_44/usr/src/cmd/sort/common/
H A Dstreams_mmap.c75 ssize_t dist_to_buf_end; in stream_mmap_fetch() local
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()
91 next_nl = memchr(str->s_current.l_data.sp, '\n', dist_to_buf_end); in stream_mmap_fetch()
98 str->s_current.l_data_length = dist_to_buf_end; in stream_mmap_fetch()
H A Dstreams_wide.c128 ssize_t dist_to_buf_end; in stream_wide_fetch() local
143 dist_to_buf_end = str->s_buffer_size / sizeof (wchar_t) - (graft_pt - in stream_wide_fetch()
146 if (dist_to_buf_end <= 1) { in stream_wide_fetch()
151 if (fgetws(graft_pt, dist_to_buf_end, str->s_type.BF.s_fp) == NULL) { in stream_wide_fetch()
160 dist_to_buf_end)) == NULL) { in stream_wide_fetch()
162 MIN(wslen(str->s_current.l_data.wp), dist_to_buf_end); in stream_wide_fetch()
197 ssize_t dist_to_buf_end; in stream_wide_fetch_overwrite() local
203 dist_to_buf_end = str->s_buffer_size / sizeof (wchar_t); in stream_wide_fetch_overwrite()
205 if (fgetws(str->s_current.l_data.wp, dist_to_buf_end, in stream_wide_fetch_overwrite()
H A Dstreams_stdio.c175 ssize_t dist_to_buf_end; in stream_stdio_fetch() local
199 dist_to_buf_end = str->s_buffer_size - (graft_pt - in stream_stdio_fetch()
202 if (dist_to_buf_end <= 1) { in stream_stdio_fetch()
215 if (fgets(graft_pt, dist_to_buf_end, str->s_type.BF.s_fp) == NULL) { in stream_stdio_fetch()
228 dist_to_buf_end)) == NULL) { in stream_stdio_fetch()
277 ssize_t dist_to_buf_end; in stream_stdio_fetch_overwrite() local
284 dist_to_buf_end = str->s_buffer_size; in stream_stdio_fetch_overwrite()
286 if (fgets(str->s_current.l_data.sp, dist_to_buf_end, in stream_stdio_fetch_overwrite()