Searched refs:dist_to_buf_end (Results 1 – 3 of 3) sorted by relevance
/titanic_44/usr/src/cmd/sort/common/ |
H A D | streams_mmap.c | 75 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 D | streams_wide.c | 128 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 D | streams_stdio.c | 175 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()
|