Home | History | Annotate | Download | only in slirp

Lines Matching defs:nn

157 	int n, nn;
171 nn = readv(so->s, (struct iovec *)iov, n);
172 DEBUG_MISC((dfd, " ... read nn = %d bytes\n", nn));
174 nn = recv(so->s, iov[0].iov_base, iov[0].iov_len,0);
176 if (nn <= 0) {
177 if (nn < 0 && (errno == EINTR || errno == EAGAIN))
180 DEBUG_MISC((dfd, " --- soread() disconnected, nn = %d, errno = %d-%s\n", nn, errno,strerror(errno)));
197 if (n == 2 && nn == iov[0].iov_len) {
201 nn += ret;
204 DEBUG_MISC((dfd, " ... read nn = %d bytes\n", nn));
208 sb->sb_cc += nn;
209 sb->sb_wptr += nn;
212 return nn;
217 int n, nn, copy = size;
231 nn = MIN(iov[0].iov_len, copy);
232 memcpy(iov[0].iov_base, buf, nn);
234 copy -= nn;
235 buf += nn;
352 int n,nn;
396 nn = writev(so->s, (const struct iovec *)iov, n);
398 DEBUG_MISC((dfd, " ... wrote nn = %d bytes\n", nn));
400 nn = slirp_send(so, iov[0].iov_base, iov[0].iov_len,0);
403 if (nn < 0 && (errno == EAGAIN || errno == EINTR))
406 if (nn <= 0) {
415 if (n == 2 && nn == iov[0].iov_len) {
419 nn += ret;
421 DEBUG_MISC((dfd, " ... wrote nn = %d bytes\n", nn));
425 sb->sb_cc -= nn;
426 sb->sb_rptr += nn;
437 return nn;