Home
last modified time | relevance | path

Searched refs:curoff (Results 1 – 7 of 7) sorted by relevance

/freebsd/contrib/sendmail/libsm/
H A Dfseek.c84 off_t target, curoff; local
148 curoff = fp->f_lseekoff;
151 curoff = (*seekfn)(fp, (off_t) 0, SM_IO_SEEK_CUR);
152 if (curoff == -1L)
160 curoff -= fp->f_r;
162 curoff -= fp->f_ur;
165 curoff += fp->f_p - fp->f_bf.smb_base;
167 offset += curoff;
175 curoff = 0; /* XXX just to keep gcc quiet */
227 curoff = fp->f_lseekoff;
[all …]
/freebsd/lib/libc/stdio/
H A Dfseek.c93 fpos_t target, curoff, ret; in _fseeko() local
118 if (_ftello(fp, &curoff)) in _fseeko()
120 if (curoff < 0) { in _fseeko()
125 if (offset > 0 && curoff > OFF_MAX - offset) { in _fseeko()
129 offset += curoff; in _fseeko()
148 curoff = 0; /* XXX just to keep gcc quiet */ in _fseeko()
204 if (!havepos && _ftello(fp, &curoff)) in _fseeko()
221 curoff += fp->_r; /* kill off ungetc */ in _fseeko()
223 curoff -= n; in _fseeko()
227 curoff -= n; in _fseeko()
[all …]
/freebsd/usr.bin/tail/
H A Dreverse.c108 off_t curoff, size, lineend; in r_reg() local
123 curoff = size - 2; in r_reg()
125 while (curoff >= 0) { in r_reg()
126 if (curoff < map.mapoff || in r_reg()
127 curoff >= map.mapoff + (off_t)map.maplen) { in r_reg()
128 if (maparound(&map, curoff) != 0) { in r_reg()
133 for (i = curoff - map.mapoff; i >= 0; i--) { in r_reg()
140 curoff = map.mapoff + i; in r_reg()
145 if (mapprint(&map, curoff + 1, lineend - curoff - 1) != 0) { in r_reg()
149 lineend = curoff + 1; in r_reg()
[all …]
H A Dforward.c193 off_t curoff, size; in rlines() local
206 curoff = size - 2; in rlines()
207 while (curoff >= 0) { in rlines()
208 if (curoff < map.mapoff && maparound(&map, curoff) != 0) { in rlines()
212 for (i = curoff - map.mapoff; i >= 0; i--) in rlines()
216 curoff = map.mapoff + i; in rlines()
220 curoff++; in rlines()
221 if (mapprint(&map, curoff, size - curoff) != 0) { in rlines()
/freebsd/contrib/nvi/vi/
H A Dvs_relative.c97 size_t chlen, cno, curoff, last = 0, len, scno; in vs_columns() local
132 curoff = scno; in vs_columns()
146 curoff += chlen; \ in vs_columns()
147 if (!leftright && curoff >= sp->cols) { \ in vs_columns()
149 curoff = 0; \ in vs_columns()
152 curoff -= sp->cols; \ in vs_columns()
157 chlen = CHLEN(curoff); in vs_columns()
164 chlen = CHLEN(curoff); in vs_columns()
223 size_t chlen, curoff, len, llen, off, scno; in vs_colpos() local
265 for (curoff = scno; len--;) { in vs_colpos()
[all …]
/freebsd/contrib/sendmail/mail.local/
H A Dmail.local.c1017 off_t curoff, cursize; local
1314 curoff = lseek(mbfd, (off_t) 0, SEEK_END);
1319 name, (LONGLONG_T) curoff);
1389 (void) ftruncate(mbfd, curoff);
/freebsd/contrib/sendmail/src/
H A Ddeliver.c6334 off_t curoff; local
6789 curoff = stb.st_size;
6836 curoff);