Lines Matching defs:result
678 int result = -1;
711 result = 0;
716 if (result) {
724 return result;
1826 int port, result;
1847 result = setipaddr(host.buf, (struct sockaddr *)addr,
1850 if (result < 0)
1868 int port, result;
1892 result = setipaddr(host.buf, (struct sockaddr *)addr,
1895 if (result < 0)
2563 /* If length is in range, set *result to CMSG_LEN(length) and return
2566 get_CMSG_LEN(size_t length, size_t *result)
2575 *result = tmp;
2580 /* If length is in range, set *result to CMSG_SPACE(length) and return
2583 get_CMSG_SPACE(size_t length, size_t *result)
2594 *result = tmp;
2690 SOCKET_T result;
2717 ctx->result = accept4(s->sock_fd, addr, paddrlen,
2719 if (ctx->result == INVALID_SOCKET && accept4_works == -1) {
2725 ctx->result = accept(s->sock_fd, addr, paddrlen);
2727 ctx->result = accept(s->sock_fd, addr, paddrlen);
2731 return (ctx->result != INVALID_SOCKET);
2733 return (ctx->result >= 0);
2761 newfd = ctx.result;
3489 Py_ssize_t result;
3500 ctx->result = recv(s->sock_fd, ctx->cbuf, (int)ctx->len, ctx->flags);
3502 ctx->result = recv(s->sock_fd, ctx->cbuf, ctx->len, ctx->flags);
3504 return (ctx->result >= 0);
3537 return ctx.result;
3657 Py_ssize_t result;
3671 ctx->result = recvfrom(s->sock_fd, ctx->cbuf, (int)ctx->len, ctx->flags,
3674 ctx->result = recvfrom(s->sock_fd, ctx->cbuf, ctx->len, ctx->flags,
3677 return (ctx->result >= 0);
3723 return ctx.result;
3841 ssize_t result;
3849 ctx->result = recvmsg(s->sock_fd, ctx->msg, ctx->flags);
3850 return (ctx->result >= 0);
3955 (*makeval)(ctx.result, makeval_data),
4167 Py_ssize_t result;
4178 ctx->result = send(s->sock_fd, ctx->buf, (int)ctx->len, ctx->flags);
4180 ctx->result = send(s->sock_fd, ctx->buf, ctx->len, ctx->flags);
4182 return (ctx->result >= 0);
4210 return PyLong_FromSsize_t(ctx.result);
4269 n = ctx.result;
4307 Py_ssize_t result;
4318 ctx->result = sendto(s->sock_fd, ctx->buf, (int)ctx->len, ctx->flags,
4321 ctx->result = sendto(s->sock_fd, ctx->buf, ctx->len, ctx->flags,
4324 return (ctx->result >= 0);
4385 return PyLong_FromSsize_t(ctx.result);
4402 ssize_t result;
4410 int result = -1;
4454 result = 0;
4459 return result;
4467 ctx->result = sendmsg(s->sock_fd, ctx->msg, ctx->flags);
4468 return (ctx->result >= 0);
4603 "unexpected NULL result from %s()",
4642 retval = PyLong_FromSsize_t(ctx.result);
4774 "unexpected NULL result from CMSG_FIRSTHDR");
4788 "unexpected NULL result from CMSG_NXTHDR(iv)");
4804 "unexpected NULL result from CMSG_NXTHDR(assoc)");
4820 retval = PyLong_FromSsize_t(ctx.result);
4931 int result;
4937 result = WSADuplicateSocketW(s->sock_fd, processId, &info);
4939 if (result == SOCKET_ERROR)
5476 PyObject *result;
5502 result = PyUnicode_FromWideChar(name, size);
5504 return result;
5763 int result;
5783 result = gethostbyname_r(name, &hp_allocated, &data);
5784 h = (result != 0) ? NULL : &hp_allocated;
5842 int result;
5886 result = gethostbyaddr_r(ap, al, af, &hp_allocated, &data);
5887 h = (result != 0) ? NULL : &hp_allocated;
6963 size_t result;
6967 if (length < 0 || !get_CMSG_LEN(length, &result)) {
6971 return PyLong_FromSize_t(result);
6993 size_t result;
6997 if (length < 0 || !get_CMSG_SPACE(length, &result)) {
7002 return PyLong_FromSize_t(result);