Lines Matching defs:pos
99 off_t pos; /* file position */
194 help_file_tell(struct help_file *hp, struct help_pos *pos)
196 if (pos->fname != NULL)
197 free(pos->fname);
198 if ((pos->fname = strdup(hp->fname)) == NULL)
200 pos->fcnt = hp->fcnt;
201 pos->p_start = hp->p_start;
202 pos->p_end = hp->p_end;
203 if ((pos->pos = ftello(hp->fp)) == -1)
204 err(1, "%s", pos->fname);
213 help_file_seek(struct help_file *hp, struct help_pos *pos)
215 hp->p_start = pos->p_start;
216 hp->p_end = pos->p_end;
217 hp->fcnt = pos->fcnt;
225 if (hp->fp != NULL &&strcmp(hp->fname, pos->fname) != 0) {
231 if ((hp->fname = strdup(pos->fname)) == NULL)
236 if (fseeko(hp->fp, pos->pos, SEEK_SET) == -1)
239 if (pos->fcnt == 1)
344 match.pos = -1;
345 last_match.pos = -1;
362 if (match.pos == -1) {
370 match.pos = -1;
378 if (match.pos != -1) {
419 if (last_match.pos == -1)