Home
last modified time | relevance | path

Searched refs:errno (Results 1 - 25 of 6859) sorted by relevance

12345678910>>...275

/third_party/rust/crates/rustix/src/backend/linux_raw/io/
H A Derrno.rs4 //! `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...]
/foundation/filemanagement/storage_service/services/storage_daemon/crypto/src/
H A Dfbex.cpp100 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 Dnetsys_client.c18 #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/signal/
H A Dsigignore.c16 #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...]
/third_party/musl/libc-test/src/functionalext/supplement/misc/
H A Dgetpriority.c16 #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 Dtcp_socket.cpp33 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 Dtcp_socket.cpp33 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 D14-1.c40 #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 D11-1.c23 #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 D12-1.c41 #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 D1-1.c33 #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...]
/device/soc/hisilicon/hi3861v100/sdk_liteos/platform/os/Huawei_LiteOS/kernel/include/
H A Dlos_errno.h74 #define LOS_ERRNO_OS_FATAL(moduleID, errno) \
75 (LOS_ERRTYPE_FATAL | LOS_ERRNO_OS_ID | ((UINT32)(moduleID) << 2) | (errno << 7))
81 #define LOS_ERRNO_OS_ERROR(moduleID, errno) \
82 (LOS_ERRTYPE_ERROR | LOS_ERRNO_OS_ID | ((UINT32)(moduleID) << 2) | (errno << 7))
88 #define LOS_ERRNO_OS_WARN(moduleID, errno) \
89 (LOS_ERRTYPE_WARN | LOS_ERRNO_OS_ID | ((UINT32)(moduleID) << 2) | (errno << 7))
95 #define LOS_ERRNO_OS_NORMAL(moduleID, errno) \
96 (LOS_ERRTYPE_NORMAL | LOS_ERRNO_OS_ID | ((UINT32)(moduleID) << 2) | (errno << 7))
133 #define LOS_ERRNO_OS_FATAL(moduleID, errno) \
134 (LOS_ERRTYPE_FATAL | LOS_ERRNO_OS_ID | ((UINT32)(moduleID) << 8) | (errno))
[all...]
/third_party/musl/libc-test/src/functional/
H A Dsem_open.c4 #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 Dstrtol.c4 #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 Denv.c6 #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...]
/third_party/ltp/testcases/kernel/io/direct_io/
H A Ddiotest4.c66 #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 Dtest_1_to_1_shutdown.c44 #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 Dtest_1_to_1_socket_bind_listen.c70 #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 D30-1.c19 * 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 Dcustom_udev_test.cpp99 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 Dsigprocmask01.c44 * 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 D6-1.c43 #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 Dremovexattr.c16 #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 Ddaemonize.c27 #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/eudev/src/shared/
H A Dselinux-util.c20 #include <errno.h>
99 r = security_getenforce() == 1 ? -errno : 0; in mac_selinux_init()
157 if (r < 0 && errno == ENOENT) in mac_selinux_fix()
164 if (r < 0 && errno == EOPNOTSUPP) in mac_selinux_fix()
171 if (ignore_enoent && errno == ENOENT) in mac_selinux_fix()
174 if (ignore_erofs && errno == EROFS) in mac_selinux_fix()
179 return -errno; in mac_selinux_fix()
198 return -errno; in mac_selinux_apply()
219 return -errno; in mac_selinux_get_create_label_from_exe()
223 return -errno; in mac_selinux_get_create_label_from_exe()
[all...]

Completed in 9 milliseconds

12345678910>>...275