Lines Matching defs:pos
50 int64_t pos;
78 if(c->pos<c->end){
79 r = read(c->fd, buf, FFMIN(size, c->end - c->pos));
81 c->pos += r;
88 c->pos += r;
95 static int64_t cache_seek(URLContext *h, int64_t pos, int whence)
100 pos= ffurl_seek(c->inner, pos, whence);
101 if(pos <= 0){
102 pos= ffurl_seek(c->inner, -1, SEEK_END);
104 if(pos <= 0)
107 return pos;
110 pos= lseek(c->fd, pos, whence);
111 if(pos<0){
112 return pos;
113 }else if(pos <= c->end){
114 c->pos= pos;
115 return pos;
117 if(lseek(c->fd, c->pos, SEEK_SET) < 0) {