Lines Matching refs:pos

84   size_t pos; /* current position */  member
107 if (sizeof (OFF_T) == sizeof (size_t) && (ssize_t) (c->pos + n) < 0) in memwriter()
117 if (c->pos + n >= c->max) in memwriter()
120 if (newsize < c->pos + n + 1) in memwriter()
121 newsize = c->pos + n + 1; in memwriter()
130 if (c->pos > c->eof) in memwriter()
131 memset (cbuf + c->eof, '\0', c->pos - c->eof); in memwriter()
132 memcpy (cbuf + c->pos, buf, n); in memwriter()
133 c->pos += n; in memwriter()
136 if (c->pos > c->eof) in memwriter()
137 c->eof = c->pos; in memwriter()
139 c->saved.w = *(wchar_t *)(cbuf + c->pos); in memwriter()
141 c->saved.c = cbuf[c->pos]; in memwriter()
142 cbuf[c->pos] = '\0'; in memwriter()
143 *c->psize = (c->wide > 0) ? c->pos / sizeof (wchar_t) : c->pos; in memwriter()
152 _fpos_t pos, in memseeker() argument
156 OFF_T offset = (OFF_T) pos; in memseeker()
159 offset += c->pos; in memseeker()
181 if (c->pos < c->eof) in memseeker()
184 *(wchar_t *)((*c->pbuf) + c->pos) = c->saved.w; in memseeker()
186 (*c->pbuf)[c->pos] = c->saved.c; in memseeker()
189 c->pos = offset; in memseeker()
190 if (c->pos < c->eof) in memseeker()
194 c->saved.w = *(wchar_t *)((*c->pbuf) + c->pos); in memseeker()
195 *(wchar_t *)((*c->pbuf) + c->pos) = L'\0'; in memseeker()
196 *c->psize = c->pos / sizeof (wchar_t); in memseeker()
200 c->saved.c = (*c->pbuf)[c->pos]; in memseeker()
201 (*c->pbuf)[c->pos] = '\0'; in memseeker()
202 *c->psize = c->pos; in memseeker()
219 _fpos64_t pos, in memseeker64() argument
222 _off64_t offset = (_off64_t) pos; in memseeker64()
226 offset += c->pos; in memseeker64()
241 if (c->pos < c->eof) in memseeker64()
244 *(wchar_t *)((*c->pbuf) + c->pos) = c->saved.w; in memseeker64()
246 (*c->pbuf)[c->pos] = c->saved.c; in memseeker64()
249 c->pos = offset; in memseeker64()
250 if (c->pos < c->eof) in memseeker64()
254 c->saved.w = *(wchar_t *)((*c->pbuf) + c->pos); in memseeker64()
255 *(wchar_t *)((*c->pbuf) + c->pos) = L'\0'; in memseeker64()
256 *c->psize = c->pos / sizeof (wchar_t); in memseeker64()
260 c->saved.c = (*c->pbuf)[c->pos]; in memseeker64()
261 (*c->pbuf)[c->pos] = '\0'; in memseeker64()
262 *c->psize = c->pos; in memseeker64()
354 c->pos = 0; in internalopen_memstream()