Home | History | Annotate | Download | only in slirp-android

Lines Matching defs:nn

165 	int n, nn;
179 nn = readv(so->s, (struct iovec *)iov, n);
180 DEBUG_MISC((dfd, " ... read nn = %d bytes\n", nn));
182 nn = socket_recv(so->s, iov[0].iov_base, iov[0].iov_len);
184 if (nn <= 0) {
185 if (nn < 0 && (errno == EINTR || errno == EAGAIN))
188 DEBUG_MISC((dfd, " --- soread() disconnected, nn = %d, errno = %d-%s\n", nn, errno,errno_str));
205 if (n == 2 && nn == iov[0].iov_len) {
209 nn += ret;
212 DEBUG_MISC((dfd, " ... read nn = %d bytes\n", nn));
216 sb->sb_cc += nn;
217 sb->sb_wptr += nn;
220 return nn;
225 int n, nn, copy = size;
239 nn = MIN(iov[0].iov_len, copy);
240 memcpy(iov[0].iov_base, buf, nn);
242 copy -= nn;
243 buf += nn;
360 int n,nn;
404 nn = writev(so->s, (const struct iovec *)iov, n);
406 DEBUG_MISC((dfd, " ... wrote nn = %d bytes\n", nn));
408 nn = socket_send(so->s, iov[0].iov_base, iov[0].iov_len);
411 if (nn < 0 && (errno == EAGAIN || errno == EINTR))
414 if (nn <= 0) {
423 if (n == 2 && nn == iov[0].iov_len) {
427 nn += ret;
429 DEBUG_MISC((dfd, " ... wrote nn = %d bytes\n", nn));
433 sb->sb_cc -= nn;
434 sb->sb_rptr += nn;
445 return nn;