Lines Matching refs:type
52 Sfoff_t sfseek(Sfio_t* f, Sfoff_t p, int type)
54 Sfoff_t sfseek(f,p,type)
57 int type; /* 0: from org, 1: from here, 2: from end */
68 hardseek = (type|f->flags)&(SF_SHARE|SF_PUBLIC);
89 mustsync = (type&SF_SHARE) && !(type&SF_PUBLIC) &&
93 if((type &= (SEEK_SET|SEEK_CUR|SEEK_END)) != SEEK_SET &&
94 type != SEEK_CUR && type != SEEK_END )
118 if(type == SEEK_CUR)
120 else if(type == SEEK_END)
146 if(!hardseek && type < SEEK_END && !(f->flags&SF_APPENDWR) )
148 r = p + (type == SEEK_SET ? 0 : s);
161 if(type == SEEK_END || (f->mode&SF_WRITE) )
162 { if((hardseek&SF_PUBLIC) || type == SEEK_END)
163 p = SFSK(f, p, type, f->disc);
165 { r = p + (type == SEEK_CUR ? f->here : 0);
176 r = p + (type == SEEK_CUR ? s : 0);
178 { if((hardseek || (type == SEEK_CUR && p == 0)) )
201 if((p += type == SEEK_CUR ? s : 0) < 0)