Lines Matching defs:nbytes
165 ssize_t nbytes;
168 for (nwritten = 0; nwritten < buflen; nwritten += nbytes) {
169 nbytes = write(fd, &buf[nwritten], buflen - nwritten);
170 if (nbytes == -1)
172 if (nbytes == 0) {
213 ssize_t nbytes = 0; /* total bytes processed */
217 while (nbytes < buflen) {
253 prbytes = read(fd, (caddr_t)buffer + nbytes, buflen - nbytes);
259 nbytes += prbytes;
262 return (nbytes == buflen ? IPMP_SUCCESS : IPMP_FAILURE);