Lines Matching defs:io
24 /* Function to handle io exceptions.
29 int _sfexcept(Sfio_t* f, int type, ssize_t io, Sfdisc_t* disc)
31 int _sfexcept(f,type,io,disc)
33 int type; /* io type that was performed */
34 ssize_t io; /* the io return value that indicated exception */
48 if(local && io <= 0)
49 f->flags |= io < 0 ? SF_ERROR : SF_EOF;
57 _Sfi = f->val = io;
58 ev = (*(disc->exceptf))(f,type,&io,disc);
64 if(io > 0 && !(f->flags&SF_STRING) )
77 if(local && io >= 0)
83 if((io -= size) <= 0)
84 io = SF_GRAIN;
85 size = ((size+io+SF_GRAIN-1)/SF_GRAIN)*SF_GRAIN;