Lines Matching refs:type
30 Void_t* sfreserve(Sfio_t* f, ssize_t size, int type)
32 Void_t* sfreserve(f,size,type)
35 int type; /* LOCKR: lock stream, LASTR: last record */
49 if(type < 0)
51 else if((mode = type&SF_WRITE) )
52 type &= ~SF_WRITE;
55 if(type == SF_LASTR )
73 if(type > 0)
74 { if(type == 1 ) /* upward compatibility mode */
75 type = SF_LOCKR;
76 else if(type != SF_LOCKR)
80 if(size == 0 && (type < 0 || type == SF_LOCKR) )
130 else if(type == SF_LOCKR && f->extent < 0 && (f->flags&SF_SHARE) )
145 if(size == 0 && type == 0)
161 if(type == SF_LOCKR && size > 0 && n > 0 )
170 else if(type == SF_LOCKR && size == 0 && (rsrv = _sfrsrv(f,0)) )
183 { if(type == SF_LOCKR && (rsrv = _sfrsrv(f, sz)) )
186 else if(type != SF_LOCKR && sz > f->size && (rsrv = _sfrsrv(f,sz)) )
195 { if(type == SF_LOCKR)