Lines Matching refs:buf
41 static ssize_t skwrite(Sfio_t* f, const Void_t* buf, size_t n, Sfdisc_t* disc)
43 static ssize_t skwrite(f, buf, n, disc)
45 Void_t* buf; /* buffer to read into */
54 static ssize_t skread(Sfio_t* f, Void_t* buf, size_t n, Sfdisc_t* disc)
56 static ssize_t skread(f, buf, n, disc)
58 Void_t* buf; /* buffer to read into */
71 return sfread(sf,buf,n);
76 return sfread(sf,buf,n);
79 { if((w = sfread(sf,buf,r)) != r)
81 buf = (char*)buf + r;
86 if((w = sfrd(f,buf,n,disc)) <= 0)
92 if((p = sfwrite(sf,buf,w)) != w)
113 char buf[SF_BUFSIZE];
142 { if(addr > sk->extent+sizeof(buf) )
143 w = sizeof(buf);
145 if((r = sfrd(f,buf,w,disc)) <= 0)
147 else if((w = sfwrite(sf,buf,r)) > 0)