Lines Matching refs:peek
39 static void _sfbuf(Sfio_t* f, int* peek) in _sfbuf() argument
41 static void _sfbuf(f, peek) in _sfbuf()
43 int* peek;
47 { if(*peek) /* try peeking for a share stream if possible */
53 *peek = 0; /* can't peek, back to normal reads */
67 int peek; /* != 0 if unseekable/share stream */ member
75 (sc)->peek = peek, (sc)->n_input = n_input)
79 peek = (sc)->peek, n_input = (sc)->n_input)
104 if(sc->peek)
108 _sfbuf(sc->f, &sc->peek);
341 int peek; local
342 #define SFbuf(f) (_sfbuf(f,&peek), (data = d = f->next), (endd = f->endb) )
344 #define SFinit(f) ((peek = f->extent < 0 && (f->flags&SF_SHARE)), SFbuf(f) )
346 (peek ? SFREAD(f,(Void_t*)data,SFlen(f)) : ((f->next = d),0)) )