Home
last modified time | relevance | path

Searched refs:errno (Results 1 – 25 of 34) sorted by relevance

12

/openthread-latest/tools/spi-hdlc-adapter/
Dspi-hdlc-adapter.c583 syslog(LOG_ERR, "push_pull_spi:do_spi_xfer: errno=%d (%s)", errno, strerror(errno)); in push_pull_spi()
587 if ((sSpiCsDelay != 0) && (errno == EINVAL)) in push_pull_spi()
885 if (errno == EAGAIN) in push_hdlc()
892 syslog(LOG_ERR, "push_hdlc:write: errno=%d (%s)", errno, strerror(errno)); in push_hdlc()
990 if (errno == EAGAIN) in pull_hdlc()
997 syslog(LOG_ERR, "pull_hdlc:read: errno=%d (%s)", errno, strerror(errno)); in pull_hdlc()
1045 if (errno == EAGAIN) in push_raw()
1052 syslog(LOG_ERR, "push_raw:write: errno=%d (%s)", errno, strerror(errno)); in push_raw()
1085 if (errno == EAGAIN) in pull_raw()
1092 syslog(LOG_ERR, "pull_raw:read: errno=%d (%s)", errno, strerror(errno)); in pull_raw()
[all …]
/openthread-latest/src/lib/spinel/
Dspinel.c102 #if defined(errno) && SPINEL_PLATFORM_DOESNT_IMPLEMENT_ERRNO_VAR
107 #if !defined(errno) && SPINEL_PLATFORM_DOESNT_IMPLEMENT_ERRNO_VAR
109 #define errno spinel_errno_workaround_ macro
348 require_action(data_len <= SPINEL_MAX_PACK_LENGTH, bail, (ret = -1, errno = EINVAL)); in spinel_datatype_vunpack_()
363 require_action(data_len >= sizeof(uint8_t), bail, (ret = -1, errno = EOVERFLOW)); in spinel_datatype_vunpack_()
380 require_action(data_len >= sizeof(uint8_t), bail, (ret = -1, errno = EOVERFLOW)); in spinel_datatype_vunpack_()
397 require_action(data_len >= sizeof(uint16_t), bail, (ret = -1, errno = EOVERFLOW)); in spinel_datatype_vunpack_()
414 require_action(data_len >= sizeof(uint32_t), bail, (ret = -1, errno = EOVERFLOW)); in spinel_datatype_vunpack_()
431 require_action(data_len >= sizeof(uint64_t), bail, (ret = -1, errno = EOVERFLOW)); in spinel_datatype_vunpack_()
449 … require_action(data_len >= sizeof(spinel_ipv6addr_t), bail, (ret = -1, errno = EOVERFLOW)); in spinel_datatype_vunpack_()
[all …]
/openthread-latest/third_party/mbedtls/repo/library/
Dnet_sockets.c291 int err = errno; in net_would_block()
297 errno = err; in net_would_block()
301 switch (errno = err) { in net_would_block()
563 if (errno == EPIPE || errno == ECONNRESET) { in mbedtls_net_recv()
567 if (errno == EINTR) { in mbedtls_net_recv()
614 if (errno == EINTR) { in mbedtls_net_recv_timeout()
652 if (errno == EPIPE || errno == ECONNRESET) { in mbedtls_net_send()
656 if (errno == EINTR) { in mbedtls_net_send()
Dentropy_poll.c161 } else if (errno != ENOSYS) { in mbedtls_platform_entropy_poll()
/openthread-latest/src/lib/platform/
Dexit_code.c71 #ifdef errno in otExitCodeToString()
72 retval = strerror(errno); in otExitCodeToString()
/openthread-latest/src/posix/platform/
Dudp.cpp157 error = (errno == EINVAL) ? OT_ERROR_INVALID_STATE : OT_ERROR_FAILED; in transmitPacket()
282 ot::Posix::Udp::LogCrit("Failed to bind UDP socket: %s", strerror(errno)); in otPlatUdpBind()
384 … ot::Posix::Udp::LogWarn("Failed to read socket bound device: %s", strerror(errno)); in otPlatUdpConnect()
398 ot::Posix::Udp::LogWarn("Failed to bind to device: %s", strerror(errno)); in otPlatUdpConnect()
410 VerifyOrExit(errno == EAFNOSUPPORT && isDisconnect); in otPlatUdpConnect()
414 aUdpSocket->mPeerName.mPort, strerror(errno)); in otPlatUdpConnect()
491 …VerifyOrExit(setsockopt(fd, IPPROTO_IPV6, IPV6_JOIN_GROUP, &mreq, sizeof(mreq)) == 0 || errno == E… in otPlatUdpJoinMulticastGroup()
497 ot::Posix::Udp::LogCrit("IPV6_JOIN_GROUP failed: %s", strerror(errno)); in otPlatUdpJoinMulticastGroup()
535 …VerifyOrExit(setsockopt(fd, IPPROTO_IPV6, IPV6_LEAVE_GROUP, &mreq, sizeof(mreq)) == 0 || errno == … in otPlatUdpLeaveMulticastGroup()
541 ot::Posix::Udp::LogCrit("IPV6_LEAVE_GROUP failed: %s", strerror(errno)); in otPlatUdpLeaveMulticastGroup()
Dhdlc_interface.cpp204 else if ((rval < 0) && (errno != EAGAIN) && (errno != EINTR)) in Read()
255 … VerifyOrDie((errno == EAGAIN) || (errno == EWOULDBLOCK) || (errno == EINTR), OT_EXIT_ERROR_ERRNO); in Write()
340 else if (errno != EINTR) in WaitForFrame()
424 else if ((rval < 0) && (errno != EINTR)) in WaitForWritable()
652 VerifyOrExit(-1 != wait(nullptr) || errno == ECHILD, perror("wait RCP")); in CloseFile()
Dutils.cpp81 if (error != OT_ERROR_NONE && errno != 0) in ExecuteCommand()
83 otLogInfoPlat("Got an error when executing command `%s`: `%s`", cmd, strerror(errno)); in ExecuteCommand()
Ddaemon.cpp102 VerifyOrExit(rval >= 0, LogWarn("Failed to format CLI output: %s", strerror(errno))); in OutputFormatV()
121 LogWarn("Failed to write CLI output: %s", strerror(errno)); in OutputFormatV()
165 LogWarn("Failed to initialize session socket: %s", strerror(errno)); in InitializeSessionSocket()
405 LogWarn("Daemon read: %s", strerror(errno)); in Process()
Dresolver.cpp213 LogInfo("Failed to read response from upstream resolver socket: %d", errno); in ForwardResponse()
322 VerifyOrExit(fd >= 0, LogDebg("Failed to create the UDP socket: %s", strerror(errno))); in CreateUdpSocket()
326 …iled to bind the UDP socket to infra interface %s: %s", otSysGetInfraNetifName(), strerror(errno)); in CreateUdpSocket()
Dmdns_socket.cpp454 … VerifyOrExit(rval >= 0, LogCrit("recvfrom() for IPv6 socket failed, errno: %s", strerror(errno))); in ReceiveMessage()
464 … VerifyOrExit(rval >= 0, LogCrit("recvfrom() for IPv4 socket failed, errno: %s", strerror(errno))); in ReceiveMessage()
543 LogCrit("bind() to mDNS port for IPv4 socket failed, errno: %s", strerror(errno)); in OpenIp4Socket()
624 LogCrit("bind() to mDNS port for IPv6 socket failed, errno: %s", strerror(errno)); in OpenIp6Socket()
701 LogCrit("Failed to setsockopt(%s) - errno: %s", aOptionName, strerror(errno)); in SetSocketOptionValue()
Dalarm.cpp172 otLogWarnPlat("Failed to update microsecond timer: %s", strerror(errno)); in otPlatAlarmMicroStartAt()
191 otLogWarnPlat("Failed to stop microsecond timer: %s", strerror(errno)); in otPlatAlarmMicroStop()
Dnetif.cpp543 else if (errno != EALREADY) in UpdateUnicast()
546 … Ip6AddressString(aAddressInfo.mAddress).AsCString(), aAddressInfo.mPrefixLength, strerror(errno)); in UpdateUnicast()
569 if ((err != 0) && (errno == EINVAL) && (IN6_IS_ADDR_MC_LINKLOCAL(&mreq.ipv6mr_multiaddr))) in UpdateMulticast()
586 LogWarn("%s failure (%d)", aIsAdded ? "IPV6_JOIN_GROUP" : "IPV6_LEAVE_GROUP", errno); in UpdateMulticast()
685 … VerifyOrExit(errno == EAGAIN || errno == EINTR || errno == EWOULDBLOCK, error = OT_ERROR_BUSY); in AddRoute()
739 … VerifyOrExit(errno == EAGAIN || errno == EINTR || errno == EWOULDBLOCK, error = OT_ERROR_BUSY); in DeleteRoute()
1605 LogWarn("Error (%d) removing stack-addded link-local address %s", errno, in processNetifAddrEvent()
2164 LogWarn("Failed to enable NETLINK_EXT_ACK: %s", strerror(errno));
2170 LogWarn("Failed to enable NETLINK_CAP_ACK: %s", strerror(errno));
Dinfra_if.cpp275 LogWarn("failed to send ICMPv6 message: %s", strerror(errno)); in SendIcmp6Nd()
336 LogWarn("failed to get netif addresses: %s", strerror(errno)); in CountAddresses()
383 LogCrit("failed to get netif addresses: %s", strerror(errno)); in HasLinkLocalAddress()
553 LogCrit("Failed to receive netlink message: %s", strerror(errno)); in ReceiveNetLinkMessage()
625 LogWarn("Failed to receive ICMPv6 message: %s", strerror(errno)); in ReceiveIcmp6Message()
Dspi_interface.cpp460 LogCrit("PushPullSpi:DoSpiTransfer: errno=%s", strerror(errno)); in PushPullSpi()
463 if ((mSpiCsDelayUs != 0) && (errno == EINVAL)) in PushPullSpi()
770 else if (errno != EINTR) in WaitForFrame()
811 LogWarn("%s: %s", aString, strerror(errno)); in LogError()
/openthread-latest/tools/ot-fct/
Dmain.cpp76 if ((ret == -1) && (errno != EINTR)) in main()
78 fprintf(stderr, "select: %s\n", strerror(errno)); in main()
/openthread-latest/src/posix/
Dclient.cpp143 VerifyOrExit((rval == -1) && (errno == EINTR), perror("write"); ret = false); in DoWrite()
176 errno = EINVAL; in ConnectSession()
204 VerifyOrExit(errno != ENOENT); in ReconnectSession()
/openthread-latest/third_party/mbedtls/repo/programs/psa/
Dpsa_constant_names.c205 if (value < min || (errno == ERANGE && value < 0)) { in process_signed()
209 if (value > max || (errno == ERANGE && value > 0)) { in process_signed()
244 if (value > max || errno == ERANGE) { in process_unsigned()
/openthread-latest/examples/platforms/simulation/
Dble.c208 else if (errno != EINTR && errno != EAGAIN) in platformBleProcess()
Duart.c223 errno = 0; in platformUartProcess()
274 else if (errno != EINTR) in platformUartProcess()
Dlogging.c62 fprintf(stderr, "Failed to open log file '%s': %s\r\n", aName, strerror(errno)); in platformLoggingSetFileName()
Dsimul_utils.c45 otLogWarnPlat("%s: %s", aErrorMsg, strerror(errno)); \
445 else if (errno != EINTR && errno != EAGAIN) in utilsReceiveFromSocket()
Dsystem.c268 else if (errno != EINTR) in otSysProcessDrivers()
/openthread-latest/third_party/mbedtls/repo/tests/suites/
Dhelpers.function13 #include <errno.h>
Dtest_suite_asn1parse.function2 #include <errno.h>
379 errno = 0;
382 (errno == ERANGE
467 errno = 0;
470 (errno == ERANGE

12