Home
last modified time | relevance | path

Searched full:errno (Results 1 – 25 of 1077) sorted by relevance

12345678910>>...44

/Zephyr-Core-3.4.0/tests/posix/fs/src/
Dtest_fs_open_flags.c23 if (fd >= 0 || errno != ENOENT) { in test_file_open_flags()
24 TC_PRINT("Expected fail; fd = %d, errno = %d\n", fd, errno); in test_file_open_flags()
31 if (fd >= 0 || errno != ENOENT) { in test_file_open_flags()
32 TC_PRINT("Expected fail; fd = %d, errno = %d\n", fd, errno); in test_file_open_flags()
38 if (fd >= 0 || errno != ENOENT) { in test_file_open_flags()
39 TC_PRINT("Expected fail; fd = %d, errno = %d\n", fd, errno); in test_file_open_flags()
46 if (fd >= 0 || errno != ENOENT) { in test_file_open_flags()
47 TC_PRINT("Expected fail; fd = %d, errno = %d\n", fd, errno); in test_file_open_flags()
57 TC_PRINT("Expected success; fd = %d, errno = %d\n", fd, errno); in test_file_open_flags()
63 if (ret > 0 || errno != EACCES) { in test_file_open_flags()
[all …]
/Zephyr-Core-3.4.0/include/zephyr/drivers/
Dcache.h51 * @retval -errno Negative errno for other failures.
62 * @retval -errno Negative errno for other failures.
73 * @retval -errno Negative errno for other failures.
87 * @retval -errno Negative errno for other failures.
101 * @retval -errno Negative errno for other failures.
115 * @retval -errno Negative errno for other failures.
162 * @retval -errno Negative errno for other failures.
173 * @retval -errno Negative errno for other failures.
184 * @retval -errno Negative errno for other failures.
198 * @retval -errno Negative errno for other failures.
[all …]
/Zephyr-Core-3.4.0/tests/posix/common/src/
Dnanosleep.c8 #include <errno.h>
19 zassert_equal(errno, EFAULT, "actual: %d expected: %d", errno, EFAULT); in ZTEST()
31 errno = 0; in ZTEST()
35 zassert_equal(errno, EFAULT, "actual: %d expected: %d", in ZTEST()
36 errno, EFAULT); in ZTEST()
52 errno = 0; in ZTEST()
60 zassert_equal(errno, 0, "actual: %d expected: %d", errno, 0); in ZTEST()
73 errno = 0; in ZTEST()
77 zassert_equal(errno, 0, "actual: %d expected: %d", errno, 0); in ZTEST()
98 errno = 0; in ZTEST()
[all …]
/Zephyr-Core-3.4.0/tests/net/socket/socketpair/src/
Dnonblock.c15 zassert_equal(res, 0, "socketpair() failed: %d", errno); in ZTEST_USER()
22 zassert_equal(res, 1, "send() failed: %d", errno); in ZTEST_USER()
27 zassert_not_equal(res, -1, "fcntl() failed: %d", i, errno); in ZTEST_USER()
30 zassert_not_equal(res, -1, "fcntl() failed: %d", i, errno); in ZTEST_USER()
35 zassert_equal(errno, EAGAIN, "errno: expected: EAGAIN " in ZTEST_USER()
36 "actual: %d", errno); in ZTEST_USER()
50 zassert_equal(res, 0, "socketpair() failed: %d", errno); in ZTEST_USER()
55 zassert_not_equal(res, -1, "fcntl() failed: %d", i, errno); in ZTEST_USER()
58 zassert_not_equal(res, -1, "fcntl() failed: %d", i, errno); in ZTEST_USER()
63 zassert_equal(errno, EAGAIN, "errno: expected: EAGAIN " in ZTEST_USER()
[all …]
Dexpected_failures.c22 zassert_equal(errno, EAFNOSUPPORT, in ZTEST_USER()
23 "errno should be EAFNOSUPPORT with bad address family"); in ZTEST_USER()
32 zassert_equal(errno, EPROTOTYPE, in ZTEST_USER()
33 "errno should be EPROTOTYPE with bad socket type"); in ZTEST_USER()
42 zassert_equal(errno, EPROTONOSUPPORT, in ZTEST_USER()
43 "errno should be EPROTONOSUPPORT with bad protocol"); in ZTEST_USER()
53 zassert_equal(errno, EFAULT, in ZTEST_USER()
54 "errno should be EFAULT with bad socket vector"); in ZTEST_USER()
Dunsupported_calls.c28 zassert_equal(errno, EISCONN, in ZTEST_USER()
29 "bind should set errno to EISCONN"); in ZTEST_USER()
34 zassert_equal(errno, EISCONN, in ZTEST_USER()
35 "connect should set errno to EISCONN"); in ZTEST_USER()
40 zassert_equal(errno, EINVAL, in ZTEST_USER()
41 "listen should set errno to EINVAL"); in ZTEST_USER()
46 zassert_equal(errno, EOPNOTSUPP, in ZTEST_USER()
47 "accept should set errno to EOPNOTSUPP"); in ZTEST_USER()
Dclosed_ends.c15 zassert_equal(res, 0, "socketpair() failed: %d", errno); in ZTEST_USER()
18 zassert_equal(res, 0, "close(sv[%u]) failed: %d", i, errno); in ZTEST_USER()
22 zassert_equal(res, -1, "errno: expected: EPIPE actual: %d", in ZTEST_USER()
23 errno); in ZTEST_USER()
26 zassert_equal(res, 0, "close(sv[%u]) failed: %d", i, errno); in ZTEST_USER()
38 zassert_equal(res, 0, "socketpair() failed: %d", errno); in ZTEST_USER()
46 zassert_not_equal(res, -1, "send() failed: %d", errno); in ZTEST_USER()
50 zassert_equal(res, 0, "close(sv[%u]) failed: %d", i, errno); in ZTEST_USER()
54 zassert_not_equal(res, -1, "read() failed: %d", errno); in ZTEST_USER()
62 zassert_equal(res, 0, "close(sv[%u]) failed: %d", i, errno); in ZTEST_USER()
/Zephyr-Core-3.4.0/tests/lib/mem_alloc/src/
Dmain.c31 #include <errno.h>
66 zassert_is_null((iptr), "malloc failed, errno: %d", errno); in _test_no_mem_malloc()
82 zassert_is_null(reloc_ptr, "realloc failed, errno: %d", errno); in _test_no_mem_realloc()
189 zassert_not_null((iptr), "malloc failed, errno: %d", errno); in ZTEST()
225 zassert_not_null((ptr), "malloc failed, errno: %d", errno); in ZTEST()
230 zassert_not_null(reloc_ptr, "realloc failed, errno: %d", errno); in ZTEST()
235 "realloc failed to copy malloc data, errno: %d", errno); in ZTEST()
270 zassert_is_null((cptr), "calloc failed, errno: %d", errno); in _test_calloc()
274 zassert_is_null((cptr), "calloc failed, errno: %d", errno); in _test_calloc()
278 zassert_not_null((cptr), "calloc failed, errno: %d", errno); in _test_calloc()
[all …]
/Zephyr-Core-3.4.0/tests/kernel/common/src/
Derrno.c9 #include <errno.h>
51 errno = my_errno; in errno_thread()
54 if (errno == my_errno) { in errno_thread()
58 zassert_equal(errno, my_errno); in errno_thread()
77 errno = errno_values[N_THREADS]; in ZTEST()
78 test_errno = errno; in ZTEST()
100 zassert_equal(errno, test_errno); in ZTEST()
102 if (errno != errno_values[N_THREADS]) { in ZTEST()
122 /* The errno in native posix will be handled by native in thread_entry_user()
129 /* assign the error number to C standard errno */ in thread_entry_user()
[all …]
/Zephyr-Core-3.4.0/tests/lib/c_lib/src/
Dtest_strerror.c7 #include <errno.h>
17 errno = 4242; in ZTEST()
28 /* do not change errno on success */ in ZTEST()
29 zassert_equal(4242, errno, ""); in ZTEST()
31 /* consistent behaviour w.r.t. errno with invalid input */ in ZTEST()
32 errno = 0; in ZTEST()
40 /* do not change errno on failure (for consistence) */ in ZTEST()
41 zassert_equal(0, errno, ""); in ZTEST()
64 errno = 4242; in ZTEST()
84 /* do not change errno on success */ in ZTEST()
[all …]
/Zephyr-Core-3.4.0/subsys/sip_svc/
Dsip_svc_shell.c13 #include <errno.h>
75 errno = 0; in cmd_unreg()
77 if (errno == ERANGE) { in cmd_unreg()
80 } else if (errno || endptr == argv[2] || *endptr) { in cmd_unreg()
82 return -errno; in cmd_unreg()
111 errno = 0; in cmd_open()
113 if (errno == ERANGE) { in cmd_open()
116 } else if (errno || endptr == argv[2] || *endptr) { in cmd_open()
118 return -errno; in cmd_open()
122 errno = 0; in cmd_open()
[all …]
/Zephyr-Core-3.4.0/samples/bluetooth/tmap_peripheral/src/
Dtmap_peripheral.h12 * @return 0 if success, errno on failure.
19 * @return 0 if success, errno on failure.
28 * @return 0 if on success, errno on error.
35 * @return 0 if success, errno on failure.
44 * @return 0 if success, errno on failure.
51 * @return 0 if success, errno on failure.
58 * @return 0 if success, errno on failure.
67 * @return 0 if success, errno on failure.
76 * @return 0 if on success, errno on error.
/Zephyr-Core-3.4.0/include/zephyr/arch/
Dcache.h55 * @retval -errno Negative errno for other failures.
68 * @retval -errno Negative errno for other failures.
81 * @retval -errno Negative errno for other failures.
97 * @retval -errno Negative errno for other failures.
113 * @retval -errno Negative errno for other failures.
129 * @retval -errno Negative errno for other failures.
187 * @retval -errno Negative errno for other failures.
200 * @retval -errno Negative errno for other failures.
213 * @retval -errno Negative errno for other failures.
229 * @retval -errno Negative errno for other failures.
[all …]
/Zephyr-Core-3.4.0/samples/bluetooth/tmap_central/src/
Dtmap_central.h12 * @return 0 if success, errno on failure.
19 * @return 0 if success, errno on failure.
26 * @return 0 if success, errno on failure.
33 * @return 0 if success, errno on failure.
40 * @return 0 if success, errno on failure.
47 * @return 0 if success, errno on failure.
54 * @return 0 if success, errno on failure.
61 * @return 0 if success, errno on failure.
/Zephyr-Core-3.4.0/include/zephyr/bluetooth/audio/
Dmcc.h42 * @param err Error value. 0 on success, GATT error or errno on fail
52 * @param err Error value. 0 on success, GATT error or errno on fail
64 * @param err Error value. 0 on success, GATT error or errno on fail
76 * @param err Error value. 0 on success, GATT error or errno on fail
90 * @param err Error value. 0 on success, GATT error or errno on fail
101 * @param err Error value. 0 on success, GATT error or errno on fail
112 * @param err Error value. 0 on success, GATT error or errno on fail
123 * @param err Error value. 0 on success, GATT error or errno on fail
134 * @param err Error value. 0 on success, GATT error or errno on fail
145 * @param err Error value. 0 on success, GATT error or errno on fail
[all …]
Dvcp.h100 * @return 0 if success, errno on failure.
112 * @return 0 if success, errno on failure.
125 * or errno on negative value.
139 * or errno on negative value.
155 * @return 0 if success, errno on failure.
162 * @return 0 if success, errno on failure.
169 * @return 0 if success, errno on failure.
176 * @return 0 if success, errno on failure.
183 * @return 0 if success, errno on failure.
190 * @return 0 if success, errno on failure.
[all …]
/Zephyr-Core-3.4.0/.github/workflows/
Derrno.yml5 - '.github/workflows/errno.yml'
6 - 'lib/libc/minimal/include/errno.h'
7 - 'scripts/ci/errno.py'
10 check-errno:
29 - name: Run errno.py
32 ./scripts/ci/errno.py
/Zephyr-Core-3.4.0/samples/bluetooth/hap_ha/src/
Dhap_ha.h12 * @return 0 if success, errno on failure.
19 * @return 0 if success, errno on failure.
28 * @return 0 if on success, errno on error.
35 * @return 0 if success, errno on failure.
42 * @return 0 if success, errno on failure.
49 * @return 0 if success, errno on failure.
58 * @return 0 if success, errno on failure.
/Zephyr-Core-3.4.0/subsys/usb/device_next/
Dusbd_ch9.c7 #include <errno.h>
71 errno = -ENOTSUP; in sreq_set_address()
76 errno = -ENOTSUP; in sreq_set_address()
81 errno = -EPERM; in sreq_set_address()
105 errno = -ENOTSUP; in sreq_set_configuration()
110 errno = -ENOTSUP; in sreq_set_configuration()
115 errno = -EPERM; in sreq_set_configuration()
120 errno = -EPERM; in sreq_set_configuration()
152 errno = -ENOTSUP; in sreq_set_interface()
158 errno = -ENOTSUP; in sreq_set_interface()
[all …]
/Zephyr-Core-3.4.0/include/zephyr/sys/
Derrno_private.h16 /* NOTE: located here to avoid include dependency loops between errno.h
21 #include <errno.h>
25 return &errno; in z_errno()
37 * return a pointer to a memory location containing errno
39 * errno is thread-specific, and can't just be a global. This pointer
42 * @return Memory location of errno data for current thread
/Zephyr-Core-3.4.0/include/zephyr/
Dcache.h105 * @retval -errno Negative errno for other failures.
122 * @retval -errno Negative errno for other failures.
139 * @retval -errno Negative errno for other failures.
156 * @retval -errno Negative errno for other failures.
173 * @retval -errno Negative errno for other failures.
190 * @retval -errno Negative errno for other failures.
210 * @retval -errno Negative errno for other failures.
235 * @retval -errno Negative errno for other failures.
258 * @retval -errno Negative errno for other failures.
283 * @retval -errno Negative errno for other failures.
[all …]
/Zephyr-Core-3.4.0/tests/posix/eventfd/src/
Dnonblocking.c18 zassert_true(errno == EAGAIN, "errno %d", errno); in ZTEST_F()
29 zassert_true(errno == EAGAIN, "errno %d", errno); in ZTEST_F()
57 zassert_equal(errno, EINVAL, "did not get EINVAL"); in ZTEST_F()
68 zassert_equal(errno, EAGAIN, "did not get EINVAL"); in ZTEST_F()
/Zephyr-Core-3.4.0/lib/posix/
Dfs.c7 #include <errno.h>
106 errno = EMFILE; in open()
117 errno = -rc; in open()
162 errno = EOPNOTSUPP; in fs_ioctl_vmeth()
167 errno = -rc; in fs_ioctl_vmeth()
186 errno = -rc; in fs_write_vmeth()
205 errno = -rc; in fs_read_vmeth()
231 errno = EMFILE; in opendir()
240 errno = -rc; in opendir()
258 errno = EBADF; in closedir()
[all …]
Dsemaphore.c7 #include <errno.h>
18 errno = EINVAL; in sem_destroy()
23 errno = EBUSY; in sem_destroy()
39 errno = EINVAL; in sem_getvalue()
55 errno = EINVAL; in sem_init()
78 errno = EINVAL; in sem_post()
100 errno = EINVAL; in sem_timedwait()
118 errno = ETIMEDOUT; in sem_timedwait()
133 errno = EAGAIN; in sem_trywait()
/Zephyr-Core-3.4.0/drivers/usb/device/
Dusb_dc_native_posix_adapt.c15 #include <errno.h>
105 LOG_ERR("send() failed: %s", strerror(errno)); in send_interfaces()
106 return errno; in send_interfaces()
151 LOG_ERR("send() device failed: %s", strerror(errno)); in send_device()
152 return errno; in send_device()
169 LOG_ERR("send() header failed: %s", strerror(errno)); in handle_device_list()
170 return errno; in handle_device_list()
177 LOG_ERR("send() ndev failed: %s", strerror(errno)); in handle_device_list()
178 return errno; in handle_device_list()
197 LOG_ERR("recv() failed: %s", strerror(errno)); in handle_usbip_submit()
[all …]

12345678910>>...44