Lines Matching defs:cur
51 char *head, *tail, *cur, *eob;
65 s = p->cur;
66 len = MIN(p->tail - p->cur, nbytes);
67 bcopy(p->cur, buf, len);
68 p->cur += len;
70 return (int)(p->cur - s);
84 if (p->cur >= p->tail)
86 s = p->cur;
88 len = MIN(p->tail - p->cur, nbytes);
90 bcopy(buf, p->cur, len);
92 p->cur += len - 1;
93 if (p->cur == p->tail - 1) {
94 *p->cur = '\0';
96 p->cur++;
98 *++p->cur = '\0';
101 if (p->cur > p->eob)
102 p->eob = p->cur;
104 return (int)(p->cur - s);
119 offset += p->cur - p->head;
129 p->cur = p->head + (ptrdiff_t)offset;
130 return (fpos_t)(p->cur - p->head);
209 cookie->cur = (oflags & O_APPEND) ? cookie->eob : cookie->head;