Home
last modified time | relevance | path

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

12345678910>>...605

/kernel/liteos_a/testsuites/unittest/net/socket/smoke/
H A Dnet_socket_test_012.cpp56 LogPrintln("accept: %d, errno=%d", ret, errno); in SocketNullTestInternal()
57 ICUNIT_ASSERT_EQUAL(ret, -1, errno); in SocketNullTestInternal()
60 LogPrintln("accept: %d, errno=%d", ret, errno); in SocketNullTestInternal()
61 ICUNIT_ASSERT_EQUAL(ret, -1, errno); in SocketNullTestInternal()
64 LogPrintln("accept: %d, errno=%d", ret, errno); in SocketNullTestInternal()
65 ICUNIT_ASSERT_EQUAL(ret, -1, errno); in SocketNullTestInternal()
68 LogPrintln("accept: %d, errno in SocketNullTestInternal()
[all...]
/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...]
/kernel/liteos_a/testsuites/unittest/libc/io/full/
H A DIO_test_dngettext_002.cpp44 errno = 0; in testcase1()
47 TEST_PRINT("[INFO]%s:%d,%s,errno=%d,errstr=%s\n", __FILE__, __LINE__, __func__, errno, strerror(errno)); in testcase1()
49 ICUNIT_GOTO_EQUAL(errno, 0, errno, OUT); in testcase1()
51 errno = 0; in testcase1()
54 TEST_PRINT("[INFO]%s:%d,%s,errno=%d,errstr=%s\n", __FILE__, __LINE__, __func__, errno, strerror(errno)); in testcase1()
[all...]
H A DIO_test_strfmon_l_002.cpp40 errno = 0; in testcase1()
45 errno = 0; in testcase1()
47 TEST_PRINT("[INFO]%s:%d,%s,ret=%d,errno=%d,errstr=%s\n", __FILE__, __LINE__, __func__, ret, errno, strerror(errno)); in testcase1()
50 ICUNIT_GOTO_EQUAL(errno, E2BIG, errno, OUT); in testcase1()
52 errno = 0; in testcase1()
54 TEST_PRINT("[INFO]%s:%d,%s,ret=%d,errno=%d,errstr=%s\n", __FILE__, __LINE__, __func__, ret, errno, strerro in testcase1()
[all...]
H A DIO_test_dcngettext_002.cpp44 errno = 0; in testcase1()
47 TEST_PRINT("[INFO]%s:%d,%s,errno=%d,errstr=%s\n", __FILE__, __LINE__, __func__, errno, strerror(errno)); in testcase1()
49 ICUNIT_GOTO_EQUAL(errno, 0, errno, OUT); in testcase1()
51 errno = 0; in testcase1()
54 TEST_PRINT("[INFO]%s:%d,%s,errno=%d,errstr=%s\n", __FILE__, __LINE__, __func__, errno, strerror(errno)); in testcase1()
[all...]
H A DIO_test_strncasecmp_l_002.cpp41 errno = 0; in testcase1()
46 errno = 0; in testcase1()
48 TEST_PRINT("[INFO]%s:%d,%s,ret=%d,errno=%d,errstr=%s\n", __FILE__, __LINE__, __func__, ret, errno, strerror(errno)); in testcase1()
50 ICUNIT_GOTO_EQUAL(errno, 0, errno, OUT); in testcase1()
64 errno = 0; in testcase2()
69 errno = 0; in testcase2()
71 TEST_PRINT("[INFO]%s:%d,%s,ret=%d,errno in testcase2()
[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...]
/kernel/linux/linux-5.10/tools/testing/selftests/capabilities/
H A Dtest_execve.c10 #include <errno.h>
43 ksft_exit_fail_msg("vsnprintf failed - %s\n", strerror(errno)); in vmaybe_write_file()
51 if ((errno == ENOENT) && enoent_ok) in vmaybe_write_file()
54 filename, strerror(errno)); in vmaybe_write_file()
62 filename, strerror(errno)); in vmaybe_write_file()
67 filename, strerror(errno)); in vmaybe_write_file()
107 strerror(errno)); in create_and_enter_ns()
109 ksft_exit_fail_msg("setresuid - %s\n", strerror(errno)); in create_and_enter_ns()
118 "capng_apply - %s\n", strerror(errno)); in create_and_enter_ns()
134 strerror(errno)); in create_and_enter_ns()
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/capabilities/
H A Dtest_execve.c10 #include <errno.h>
43 ksft_exit_fail_msg("vsnprintf failed - %s\n", strerror(errno)); in vmaybe_write_file()
51 if ((errno == ENOENT) && enoent_ok) in vmaybe_write_file()
54 filename, strerror(errno)); in vmaybe_write_file()
62 filename, strerror(errno)); in vmaybe_write_file()
67 filename, strerror(errno)); in vmaybe_write_file()
107 strerror(errno)); in create_and_enter_ns()
109 ksft_exit_fail_msg("setresuid - %s\n", strerror(errno)); in create_and_enter_ns()
118 "capng_apply - %s\n", strerror(errno)); in create_and_enter_ns()
134 strerror(errno)); in create_and_enter_ns()
[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...]
/kernel/liteos_a/compat/posix/src/
H A Dmap_error.c51 errno = EINVAL; in map_errno()
55 errno = EAGAIN; in map_errno()
58 errno = ENOSPC; in map_errno()
61 errno = ETIMEDOUT; in map_errno()
64 errno = ENFILE; in map_errno()
68 errno = EINTR; in map_errno()
82 errno = EINVAL; in map_errno()
87 errno = ENOSPC; in map_errno()
91 errno = ENOMEM; in map_errno()
95 errno in map_errno()
[all...]
/kernel/liteos_a/testsuites/unittest/security/reugid/smoke/
H A Dreugid_test_001.cpp125 ICUNIT_ASSERT_EQUAL(EINVAL, errno, errno); in Child()
128 ICUNIT_ASSERT_EQUAL(EINVAL, errno, errno); in Child()
156 ICUNIT_ASSERT_EQUAL(EINVAL, errno, errno); in Child()
196 ICUNIT_ASSERT_EQUAL(EINVAL, errno, errno); in Child()
199 ICUNIT_ASSERT_EQUAL(EINVAL, errno, errno); in Child()
[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...]
/kernel/liteos_m/testsuites/unittest/xts/sched/
H A Dprocess_sched_api_test.c55 errno = 0;
58 ICUNIT_ASSERT_EQUAL(errno, EINVAL, errno);
74 errno = 0;
77 ICUNIT_ASSERT_EQUAL(errno, EINVAL, errno);
80 errno = 0;
83 ICUNIT_ASSERT_EQUAL(errno, EINVAL, errno);
97 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...]
/kernel/linux/linux-5.10/tools/testing/selftests/membarrier/
H A Dmembarrier_test_impl.h6 #include <errno.h>
27 if (errno != EINVAL) { in test_membarrier_cmd_fail()
31 errno, strerror(errno)); in test_membarrier_cmd_fail()
35 "%s test: command = %d, flags = %d, errno = %d. Failed as expected\n", in test_membarrier_cmd_fail()
36 test_name, cmd, flags, errno); in test_membarrier_cmd_fail()
50 if (errno != EINVAL) { in test_membarrier_flags_fail()
54 errno, strerror(errno)); in test_membarrier_flags_fail()
58 "%s test: flags = %d, errno in test_membarrier_flags_fail()
[all...]
/kernel/linux/linux-6.6/arch/um/os-Linux/
H A Dfile.c10 #include <errno.h>
50 return -errno; in os_stat_fd()
64 return -errno; in os_stat_file()
82 return -errno; in os_access()
94 return -errno; in os_ioctl_generic()
103 return -errno; in os_get_ifname()
114 return -errno; in os_set_slip()
118 return -errno; in os_set_slip()
129 return -errno; in os_mode_fd()
165 if (err && (errno ! in os_file_mode()
[all...]
/kernel/linux/linux-5.10/arch/um/os-Linux/
H A Dfile.c10 #include <errno.h>
50 return -errno; in os_stat_fd()
64 return -errno; in os_stat_file()
82 return -errno; in os_access()
94 return -errno; in os_ioctl_generic()
103 return -errno; in os_get_ifname()
114 return -errno; in os_set_slip()
118 return -errno; in os_set_slip()
129 return -errno; in os_mode_fd()
165 if (err && (errno ! in os_file_mode()
[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...]
/kernel/linux/linux-6.6/tools/testing/selftests/landlock/
H A Dbase_test.c10 #include <errno.h>
35 ASSERT_EQ(EINVAL, errno); in TEST()
37 ASSERT_EQ(EINVAL, errno); in TEST()
39 ASSERT_EQ(EINVAL, errno); in TEST()
43 ASSERT_EQ(EFAULT, errno); in TEST()
47 ASSERT_EQ(EFAULT, errno); in TEST()
50 ASSERT_EQ(E2BIG, errno); in TEST()
54 ASSERT_EQ(ENOMSG, errno); in TEST()
58 ASSERT_EQ(ENOMSG, errno); in TEST()
60 ASSERT_EQ(ENOMSG, errno); in TEST()
[all...]

Completed in 10 milliseconds

12345678910>>...605