Lines Matching refs:w
59 register ssize_t w, s; in _sfvwrite() local
124 w = fp->_write (fp->_cookie, p, in _sfvwrite()
126 if (w <= 0) in _sfvwrite()
128 p += w; in _sfvwrite()
129 len -= w; in _sfvwrite()
131 while ((uio->uio_resid -= w) != 0); in _sfvwrite()
151 w = fp->_w; in _sfvwrite()
154 if (len >= (size_t) w && fp->_flags & (__SMBF | __SOPT)) in _sfvwrite()
198 w = len; in _sfvwrite()
201 if (len < (size_t) w) in _sfvwrite()
202 w = len; in _sfvwrite()
203 COPY (w); /* copy MIN(fp->_w,len), */ in _sfvwrite()
204 fp->_w -= w; in _sfvwrite()
205 fp->_p += w; in _sfvwrite()
206 w = len; /* but pretend copied all */ in _sfvwrite()
211 w = MIN (len, (size_t) w); in _sfvwrite()
212 COPY (w); in _sfvwrite()
213 fp->_w -= w; in _sfvwrite()
214 fp->_p += w; in _sfvwrite()
221 w = ((int)MIN (len, INT_MAX)) / fp->_bf._size * fp->_bf._size; in _sfvwrite()
222 w = fp->_write (fp->_cookie, p, w); in _sfvwrite()
223 if (w <= 0) in _sfvwrite()
226 p += w; in _sfvwrite()
227 len -= w; in _sfvwrite()
229 while ((uio->uio_resid -= w) != 0); in _sfvwrite()
252 w = fp->_w + fp->_bf._size; in _sfvwrite()
253 if (fp->_p > fp->_bf._base && s > w) in _sfvwrite()
255 COPY (w); in _sfvwrite()
257 fp->_p += w; in _sfvwrite()
261 else if (s >= (w = fp->_bf._size)) in _sfvwrite()
263 w = fp->_write (fp->_cookie, p, w); in _sfvwrite()
264 if (w <= 0) in _sfvwrite()
269 w = s; in _sfvwrite()
270 COPY (w); in _sfvwrite()
271 fp->_w -= w; in _sfvwrite()
272 fp->_p += w; in _sfvwrite()
274 if ((nldist -= w) == 0) in _sfvwrite()
281 p += w; in _sfvwrite()
282 len -= w; in _sfvwrite()
284 while ((uio->uio_resid -= w) != 0); in _sfvwrite()