Lines Matching refs:errcode
477 struct sockaddr *from, socklen_t *from_len, int *errcode) { in _socket_read_data() argument
515 *errcode = errno; in _socket_read_data()
521 *errcode = sock->retries == 0 ? MP_EWOULDBLOCK : MP_ETIMEDOUT; in _socket_read_data()
531 int errcode; in _socket_recvfrom() local
532 mp_uint_t ret = _socket_read_data(self_in, vstr.buf, len, from, from_len, &errcode); in _socket_recvfrom()
534 mp_raise_OSError(errcode); in _socket_recvfrom()
649 STATIC mp_uint_t socket_stream_read(mp_obj_t self_in, void *buf, mp_uint_t size, int *errcode) { in socket_stream_read() argument
650 return _socket_read_data(self_in, buf, size, NULL, NULL, errcode); in socket_stream_read()
653 …IC mp_uint_t socket_stream_write(mp_obj_t self_in, const void *buf, mp_uint_t size, int *errcode) { in socket_stream_write() argument
664 *errcode = errno; in socket_stream_write()
669 *errcode = sock->retries == 0 ? MP_EWOULDBLOCK : MP_ETIMEDOUT; in socket_stream_write()
673 …C mp_uint_t socket_stream_ioctl(mp_obj_t self_in, mp_uint_t request, uintptr_t arg, int *errcode) { in socket_stream_ioctl() argument
699 *errcode = MP_EIO; in socket_stream_ioctl()
724 *errcode = errno; in socket_stream_ioctl()
732 *errcode = MP_EINVAL; in socket_stream_ioctl()