/third_party/rust/crates/rustix/src/backend/linux_raw/io/ |
H A D | errno.rs | 4 //! `errno` value. 17 use linux_raw_sys::errno; 24 #[doc(alias = "errno")] 63 /// Convert from a C errno value (which is positive) to an `Errno`. 242 pub const ACCESS: Self = Self::from_errno(errno::EACCES); 244 pub const ADDRINUSE: Self = Self::from_errno(errno::EADDRINUSE); 246 pub const ADDRNOTAVAIL: Self = Self::from_errno(errno::EADDRNOTAVAIL); 248 pub const ADV: Self = Self::from_errno(errno::EADV); 250 pub const AFNOSUPPORT: Self = Self::from_errno(errno::EAFNOSUPPORT); 252 pub const AGAIN: Self = Self::from_errno(errno [all...] |
/third_party/musl/libc-test/src/functionalext/supplement/signal/ |
H A D | sigignore.c | 16 #include <errno.h> 30 errno = 0; in sigignore_0100() 32 if (result != 0 || errno != 0) { in sigignore_0100() 34 t_error("%s failed: errno = %d\n", __func__, errno); in sigignore_0100() 37 errno = 0; in sigignore_0100() 39 if (result != 0 || errno != 0) { in sigignore_0100() 41 t_error("%s failed: errno = %d\n", __func__, errno); in sigignore_0100() 45 errno in sigignore_0100() [all...] |
/foundation/filemanagement/storage_service/services/storage_daemon/crypto/src/ |
H A D | fbex.cpp | 100 LOGE("Read baseAddr failed, errno: %{public}d", errno); in IsFBEXSupported() 110 LOGE("realpath of %{public}s failed, errno: %{public}d", path.c_str(), errno); in IsFBEXSupported() 120 LOGE("read ufs_inline_stat failed, errno: %{public}d", errno); in IsFBEXSupported() 153 if (errno == ENOENT) { in InstallEL5KeyToKernel() 158 LOGE("open fbex_cmd failed, errno: %{public}d", errno); in InstallEL5KeyToKernel() 159 return -errno; in InstallEL5KeyToKernel() [all...] |
/foundation/communication/netmanager_base/services/netmanagernative/src/netsys/ |
H A D | netsys_client.c | 18 #include <errno.h> 86 if (errno != EINPROGRESS) { in NonBlockConnect() 100 DNS_CONFIG_PRINT("select error: %s", strerror(errno)); in NonBlockConnect() 120 DNS_CONFIG_PRINT("socket failed %d", errno); in CreateConnectionToNetSys() 121 return -errno; in CreateConnectionToNetSys() 125 return CloseSocketReturn(sockFd, -errno); in CreateConnectionToNetSys() 137 return CloseSocketReturn(sockFd, -errno); in CreateConnectionToNetSys() 175 HILOG_ERROR(LOG_CORE, "send failed %{public}d", errno); in NetSysGetResolvConfInternal() 176 return CloseSocketReturn(sockFd, -errno); in NetSysGetResolvConfInternal() 180 HILOG_ERROR(LOG_CORE, "receive failed %{public}d", errno); in NetSysGetResolvConfInternal() [all...] |
/third_party/musl/libc-test/src/functionalext/supplement/misc/ |
H A D | getpriority.c | 16 #include <errno.h> 32 errno = 0; in getpriority_0100() 34 EXPECT_EQ("getpriority_0100", errno, CMPFLAG); in getpriority_0100() 37 errno = 0; in getpriority_0100() 39 EXPECT_EQ("getpriority_0100", errno, CMPFLAG); in getpriority_0100() 42 errno = 0; in getpriority_0100() 44 EXPECT_EQ("getpriority_0100", errno, CMPFLAG); in getpriority_0100() 57 errno = 0; in getpriority_0200() 61 errno = 0; in getpriority_0200() 64 EXPECT_EQ("getpriority_0200", errno, CMPFLA in getpriority_0200() [all...] |
/foundation/CastEngine/castengine_cast_framework/service/src/session/src/channel/src/tcp/ |
H A D | tcp_socket.cpp | 33 CLOGE("Create socket error: errno = %{public}d, errmsg = %{public}s.", errno, strerror(errno)); in TcpSocket() 59 CLOGE("Socket bind error: errno = %{public}d, errmsg = %{public}s.", errno, strerror(errno)); in Bind() 78 CLOGE("Socket getBindPort error: errno = %{public}d, errmsg = %{public}s.", errno, strerror(errno)); in GetBindPort() 93 CLOGE("Socket getPeerPort error: errno in GetPeerPort() [all...] |
/foundation/CastEngine/castengine_cast_plus_stream/src/channel/src/tcp/ |
H A D | tcp_socket.cpp | 33 CLOGE("Create socket error: errno = %{public}d, errmsg = %{public}s.", errno, strerror(errno)); in TcpSocket() 59 CLOGE("Socket bind error: errno = %{public}d, errmsg = %{public}s.", errno, strerror(errno)); in Bind() 78 CLOGE("Socket getBindPort error: errno = %{public}d, errmsg = %{public}s.", errno, strerror(errno)); in GetBindPort() 93 CLOGE("Socket getPeerPort error: errno in GetPeerPort() [all...] |
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/fork/ |
H A D | 14-1.c | 40 #include <errno.h> 64 UNRESOLVED(errno, "Failed to create the named semaphore"); in main() 70 UNRESOLVED(errno, "Failed to create the named semaphore"); in main() 76 UNRESOLVED(errno, "Failed to unlink the semaphore"); in main() 83 UNRESOLVED(errno, "Failed to fork"); in main() 91 while ((ret != 0) && (errno == EINTR)); in main() 94 UNRESOLVED(errno, "Failed to post semaphore A"); in main() 100 while ((ret != 0) && (errno == EINTR)); in main() 103 UNRESOLVED(errno, "Failed to post semaphore B"); in main() 114 UNRESOLVED(errno, "Waitpi in main() [all...] |
H A D | 11-1.c | 23 #include <errno.h> 39 strerror(errno), errno); in child() 49 if (errno == EACCES || errno == EAGAIN) { in child() 55 strerror(errno), errno); in child() 78 strerror(errno), errno); in main() 84 strerror(errno), errn in main() [all...] |
H A D | 12-1.c | 41 #include <errno.h> 65 UNRESOLVED(errno, "Failed to initialize signal set"); in main() 71 UNRESOLVED(errno, "Failed to add SIGUSR1 to signal set"); in main() 77 UNRESOLVED(errno, "Failed to add SIGUSR2 to signal set"); in main() 83 UNRESOLVED(errno, "Sigprocmask failed"); in main() 90 UNRESOLVED(errno, "failed to kill with SIGUSR1"); in main() 96 UNRESOLVED(errno, "failed to kill with SIGUSR2"); in main() 103 UNRESOLVED(errno, in main() 110 UNRESOLVED(errno, in main() 118 UNRESOLVED(errno, in main() [all...] |
H A D | 1-1.c | 33 #include <errno.h> 65 UNRESOLVED(errno, "Unable to read CLOCK_REALTIME clock"); in main() 74 UNRESOLVED(errno, "Failed to fork"); in main() 79 UNRESOLVED(errno, "Failed to open the semaphore (try executing " in main() 89 } while (ret == -1 && errno == EINTR); in main() 92 UNRESOLVED(errno, "Failed to post the semaphore"); in main() 96 UNRESOLVED(errno, "Failed to close the semaphore"); in main() 105 } while (ret == -1 && errno == EINTR); in main() 108 if (errno == ETIMEDOUT) in main() 110 UNRESOLVED(errno, "Faile in main() [all...] |
/third_party/musl/libc-test/src/functional/ |
H A D | sem_open.c | 4 #include <errno.h> 26 "could not open sem: %s\n", strerror(errno)); in main() 27 errno = 0; in main() 30 TEST(errno == EEXIST, in main() 31 "after reopen failure errno is \"%s\" (%d); want EEXIST (%d)\n", strerror(errno), errno, EEXIST); in main() 39 errno = 0; in main() 40 TEST(sem_wait(sem) == 0, "%s\n", strerror(errno)); in main() 41 TEST(sem_getvalue(sem2, &val) == 0, "%s\n", strerror(errno)); in main() 46 "trywait on locked sem: got errno \\"%s\\" (%d), want EAGAIN (%d)\\n", strerror(errno), errno, EAGAIN); main() local [all...] |
H A D | env.c | 6 #include <errno.h> 20 t_error("clrearenv: %s\n", strerror(errno)); in main() 22 t_error("putenv: %s\n", strerror(errno)); in main() 32 t_error("unsetenv: %s\n", strerror(errno)); in main() 37 errno = 0; in main() 39 t_error("setenv: %s\n", strerror(errno)); in main() 44 errno = 0; in main() 46 t_error("setenv: %s\n", strerror(errno)); in main() 49 errno = 0; in main() 51 t_error("setenv: %s\n", strerror(errno)); in main() [all...] |
H A D | strtol.c | 4 #include <errno.h> 14 errno = 0, msg = #f, ((r) = (f)) == (x) || \ 38 TEST2(i, errno, ERANGE, "missing errno %d != %d"); in main() 41 TEST2(i, errno, ERANGE, "missing errno %d != %d"); in main() 44 TEST2(i, errno, ERANGE, "missing errno %d != %d"); in main() 47 TEST2(i, errno, 0, "spurious errno in main() [all...] |
H A D | iconv_open.c | 2 #include <errno.h> 20 if (errno != EINVAL) in main() 21 t_error("iconv_open(\"%s\",\"%s\") did not fail with EINVAL, got %s\n", bad, bad, strerror(errno)); in main() 23 errno = 0; in main() 26 t_error("iconv_open(\"\",\"\") failed: %s\n", strerror(errno)); in main() 28 errno = 0; in main() 33 if (errno != E2BIG) in main() 34 t_error("iconv() did not fail with E2BIG, got %s\n", strerror(errno)); in main() 36 errno = 0; in main() 41 if (errno) in main() [all...] |
/third_party/ltp/testcases/kernel/io/direct_io/ |
H A D | diotest4.c | 66 #include <errno.h> 103 if (errno != errnum) { in runtest_f() 105 strerror(errno)); in runtest_f() 109 errno = 0; in runtest_f() 111 if (ret >= 0 || errno != errnum) { in runtest_f() 113 msg, ret, strerror(errno)); in runtest_f() 118 if (errno != errnum) { in runtest_f() 120 strerror(errno)); in runtest_f() 124 errno = 0; in runtest_f() 126 if (ret >= 0 || errno ! in runtest_f() [all...] |
/third_party/ltp/utils/sctp/func_tests/ |
H A D | test_1_to_1_shutdown.c | 44 #include <sys/errno.h> 114 if (error != -1 || errno != EBADF) in main() 116 "error:%d, errno:%d", error, errno); in main() 125 filename, strerror(errno)); in main() 128 err_no = errno; in main() 133 "error:%d, errno:%d", error, err_no); in main() 137 errno = 0; in main() 145 "error:%d, errno:%d", error, errno); in main() [all...] |
H A D | test_1_to_1_socket_bind_listen.c | 70 #include <errno.h> 107 if (sk != -1 || errno != EAFNOSUPPORT) in main() 109 "error:%d, errno:%d", error, errno); in main() 115 if (sk != -1 || errno != EINVAL) in main() 117 "error:%d, errno:%d", error, errno); in main() 125 "error:%d, errno:%d", error, errno); in main() 131 if (error != -1 || errno ! in main() [all...] |
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/ |
H A D | 30-1.c | 19 * sigaction returns -1 and errno is set to EINVAL if signal number is invalid 44 #include <errno.h> 122 if (errno != EINVAL) { in main() 124 errno, strerror(errno), EINVAL, strerror(EINVAL)); in main() 139 if (errno != EINVAL) { in main() 141 errno, strerror(errno), EINVAL, strerror(EINVAL)); in main() 156 if (errno != EINVAL) { in main() 158 errno, strerro in main() [all...] |
/foundation/multimodalinput/input/libudev/test/ |
H A D | custom_udev_test.cpp | 99 errno = 0; in HWTEST_F() 101 EXPECT_NE(errno, 0); in HWTEST_F() 103 errno = 0; in HWTEST_F() 105 EXPECT_EQ(errno, 0); in HWTEST_F() 107 errno = 0; in HWTEST_F() 109 EXPECT_EQ(errno, 0); in HWTEST_F() 124 errno = 0; in HWTEST_F() 126 EXPECT_EQ(errno, EINVAL); in HWTEST_F() 128 errno = 0; in HWTEST_F() 131 EXPECT_EQ(errno, EINVA in HWTEST_F() [all...] |
/third_party/ltp/testcases/kernel/syscalls/sigprocmask/ |
H A D | sigprocmask01.c | 44 * Log the errno and Issue a FAIL message. 52 * Print errno log and/or timing stats if options given 58 * -e : Turn on errno logging. 76 #include <errno.h> 125 "sigprocmask() Failed, errno=%d : %s", in main() 141 errno = 0; in main() 146 "error:%d", errno); in main() 153 errno = 0; in main() 157 "error:%d", errno); in main() 166 errno in main() [all...] |
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_unlink/ |
H A D | 6-1.c | 43 #include <errno.h> 96 if ((sem1 == SEM_FAILED) && (errno == EEXIST)) { in main() 102 UNRESOLVED(errno, "Failed to create the semaphore"); in main() 109 UNRESOLVED(errno, "Failed to unlink the semaphore"); in main() 119 if (errno != ENOENT) { in main() 120 output("Error %d: %s\n", errno, strerror(errno)); in main() 129 output("Gor error %d: %s\n", errno, strerror(errno)); in main() 137 UNRESOLVED(errno, "Faile in main() [all...] |
/third_party/musl/libc-test/src/functionalext/supplement/linux/ |
H A D | removexattr.c | 16 #include <errno.h> 45 errno = 0; in removexattr_0100() 51 if (errno != 0) { in removexattr_0100() 52 t_error("%s failed: errno = %d\n", __func__, errno); in removexattr_0100() 57 errno = 0; in removexattr_0100() 63 if (errno != 0) { in removexattr_0100() 64 t_error("%s failed: errno = %d\n", __func__, errno); in removexattr_0100() 71 errno in removexattr_0100() [all...] |
/third_party/libwebsockets/lib/misc/ |
H A D | daemonize.c | 27 #include <errno.h> 63 lock_path, errno, strerror(errno)); in child_handler() 71 lock_path, errno, strerror(errno)); in child_handler() 157 errno, strerror(errno)); in lws_daemonize() 195 errno, strerror(errno)); in lws_daemonize() 206 "/", errno, strerro in lws_daemonize() [all...] |
/third_party/musl/libc-test/src/regression/ |
H A D | daemon-failure.c | 10 #include <errno.h> 25 t_error("pipe failed: %s\n", strerror(errno)); in main() 30 t_error("dup(1) failed: %s\n", strerror(errno)); in main() 35 t_error("fork failed: %s\n", strerror(errno)); in main() 43 errno = 0; in main() 47 t_error("failed to dup pipe fd for communicating results: %s\n", strerror(errno)); in main() 51 if (errno != EMFILE) in main() 52 t_error("daemon should have failed with %d [EMFILE] got %d [%s]\n", EMFILE, errno, strerror(errno)); in main() 57 t_error("write failed: %s\n", strerror(errno)); in main() [all...] |