Lines Matching refs:offset
42 "as the current offset.]"
57 "for \alines\a indicates an offset from the end of the file.]"
60 "for \achars\a indicates an offset from the end of the file.]"
149 * if file is seekable, position file to tail location and return offset
157 register Sfoff_t offset;
169 if ((offset = last - number) < first)
171 return offset;
175 if ((offset = last - SF_BUFSIZE) < first)
176 offset = first;
177 sfseek(fp, offset, SEEK_SET);
178 n = last - offset;
186 return offset + (t - s) + 1;
189 if (offset == first)
191 last = offset;
208 Sfoff_t offset[2];
215 offset[0] = offset[1] = 0;
218 offset[fno] = sftell(out);
228 offset[fno] = 0;
237 if (offset[fno])
242 if ((n = offset[!fno] - sftell(tmp[!fno])) > 0)
247 sfmove(tmp[fno], outfile, offset[fno], -1);
259 Sfoff_t offset;
266 offset = 0;
271 offset = 1;
283 if (offset)
291 offset = sfseek(tp->sp, (Sfoff_t)0, SEEK_CUR);
294 offset = 0;
296 else if ((offset = tailpos(tp->sp, number, delim)) >= 0)
297 sfseek(tp->sp, offset, SEEK_SET);
326 tp->cur = tp->end = offset;
413 Sfoff_t offset;
523 if (!(r = argv[opt_info.index]) || !opt_info.offset)
528 s = r + opt_info.offset - 1;
545 opt_info.offset = t - r - 1;
562 opt_info.offset = strlen(r);
745 if ((offset = tailpos(ip, number, delim)) >= 0)
748 rev_line(ip, sfstdout, offset);
751 sfseek(ip, offset, SEEK_SET);