Home
last modified time | relevance | path

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

12345678910>>...12

/Zephyr-latest/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()
33 if (fd >= 0 || errno != ENOENT) { in test_file_open_flags()
34 TC_PRINT("Expected fail; fd = %d, errno = %d\n", fd, errno); in test_file_open_flags()
42 if (fd >= 0 || errno != ENOENT) { in test_file_open_flags()
43 TC_PRINT("Expected fail; fd = %d, errno = %d\n", fd, errno); in test_file_open_flags()
52 if (fd >= 0 || errno != ENOENT) { in test_file_open_flags()
53 TC_PRINT("Expected fail; fd = %d, errno = %d\n", fd, errno); in test_file_open_flags()
65 TC_PRINT("Expected success; fd = %d, errno = %d\n", fd, errno); in test_file_open_flags()
71 if (ret > 0 || errno != EACCES) { in test_file_open_flags()
[all …]
/Zephyr-latest/subsys/sip_svc/
Dsip_svc_shell.c75 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()
124 if (errno == ERANGE) { in cmd_open()
[all …]
/Zephyr-latest/tests/posix/xsi_streams/src/
Dmain.c18 zassert_equal(errno, ENOSYS, "Expected errno ENOSYS, got %d", errno); in ZTEST()
27 zassert_equal(errno, ENOSYS, "Expected errno ENOSYS, got %d", errno); in ZTEST()
37 zassert_equal(errno, ENOSYS, "Expected errno ENOSYS, got %d", errno); in ZTEST()
48 zassert_equal(errno, ENOSYS, "Expected errno ENOSYS, got %d", errno); in ZTEST()
59 zassert_equal(errno, ENOSYS, "Expected errno ENOSYS, got %d", errno); in ZTEST()
68 zassert_equal(errno, ENOSYS, "Expected errno ENOSYS, got %d", errno); in ZTEST()
/Zephyr-latest/tests/net/socket/socketpair/src/
Dnonblock.c18 zassert_equal(res, 1, "send() failed: %d", errno); in ZTEST_USER_F()
23 zassert_not_equal(res, -1, "fcntl() failed: %d", i, errno); in ZTEST_USER_F()
26 zassert_not_equal(res, -1, "fcntl() failed: %d", i, errno); in ZTEST_USER_F()
31 zassert_equal(errno, EAGAIN, "errno: expected: EAGAIN " in ZTEST_USER_F()
32 "actual: %d", errno); in ZTEST_USER_F()
44 zassert_not_equal(res, -1, "fcntl() failed: %d", i, errno); in ZTEST_USER_F()
47 zassert_not_equal(res, -1, "fcntl() failed: %d", i, errno); in ZTEST_USER_F()
52 zassert_equal(errno, EAGAIN, "errno: expected: EAGAIN " in ZTEST_USER_F()
53 "actual: %d", errno); in ZTEST_USER_F()
Dclosed_ends.c14 zassert_equal(res, 0, "close(fixture->sv[%u]) failed: %d", i, errno); in ZTEST_USER_F()
20 errno); in ZTEST_USER_F()
23 zassert_equal(res, 0, "close(fixture->sv[%u]) failed: %d", i, errno); in ZTEST_USER_F()
27 zassert_equal(res, 0, "socketpair() failed: %d", errno); in ZTEST_USER_F()
43 zassert_not_equal(res, -1, "send() failed: %d", errno); in ZTEST_USER_F()
47 zassert_equal(res, 0, "close(fixture->sv[%u]) failed: %d", i, errno); in ZTEST_USER_F()
52 zassert_not_equal(res, -1, "read() failed: %d", errno); in ZTEST_USER_F()
60 zassert_equal(res, 0, "close(fixture->sv[%u]) failed: %d", i, errno); in ZTEST_USER_F()
64 zassert_equal(res, 0, "socketpair() failed: %d", errno); in ZTEST_USER_F()
/Zephyr-latest/lib/posix/options/
Daio.c17 errno = ENOSYS; in aio_cancel()
25 errno = ENOSYS; in aio_error()
34 errno = ENOSYS; in aio_fsync()
42 errno = ENOSYS; in aio_read()
50 errno = ENOSYS; in aio_return()
60 errno = ENOSYS; in aio_suspend()
68 errno = ENOSYS; in aio_write()
80 errno = ENOSYS; in lio_listio()
Dsemaphore.c87 errno = EINVAL; in sem_destroy()
92 errno = EBUSY; in sem_destroy()
108 errno = EINVAL; in sem_getvalue()
124 errno = EINVAL; in sem_init()
147 errno = EINVAL; in sem_post()
169 errno = EINVAL; in sem_timedwait()
187 errno = ETIMEDOUT; in sem_timedwait()
202 errno = EAGAIN; in sem_trywait()
236 errno = EINVAL; in sem_open()
241 errno = EINVAL; in sem_open()
[all …]
Dsignal.c47 errno = EINVAL; in sigaddset()
59 errno = EINVAL; in sigdelset()
71 errno = EINVAL; in sigismember()
84 errno = EINVAL; in strsignal()
118 errno = ENOSYS; in sigprocmask()
137 errno = ENOSYS; in kill()
146 errno = ENOSYS; in pause()
155 errno = ENOSYS; in sigaction()
162 errno = ENOSYS; in sigpending()
169 errno = ENOSYS; in sigsuspend()
[all …]
Dfs.c133 errno = -rc; in zvfs_open()
181 errno = -rc; in fs_ioctl_vmeth()
187 errno = EOPNOTSUPP; in fs_ioctl_vmeth()
192 errno = -rc; in fs_ioctl_vmeth()
211 errno = -rc; in fs_write_vmeth()
230 errno = -rc; in fs_read_vmeth()
256 errno = EMFILE; in opendir()
265 errno = -rc; in opendir()
283 errno = EBADF; in closedir()
292 errno = -rc; in closedir()
[all …]
Dshm.c112 errno = EINVAL; in shm_ftruncate()
119 errno = EBUSY; in shm_ftruncate()
133 errno = ENOMEM; in shm_ftruncate()
158 errno = EINVAL; in shm_lseek()
163 errno = EOVERFLOW; in shm_lseek()
169 errno = EINVAL; in shm_lseek()
185 errno = EINVAL; in shm_mmap()
190 errno = ENOTSUP; in shm_mmap()
195 errno = ENOMEM; in shm_mmap()
285 errno = ENOTSUP; in shm_ioctl()
[all …]
Dstropts.c20 errno = ENOSYS; in putmsg()
33 errno = ENOSYS; in putpmsg()
41 errno = ENOSYS; in fdetach()
49 errno = ENOSYS; in fattach()
61 errno = ENOSYS; in getmsg()
73 errno = ENOSYS; in getpmsg()
81 errno = ENOSYS; in isastream()
Dgetentropy.c20 errno = EFAULT; in getentropy()
25 errno = EIO; in getentropy()
30 errno = EIO; in getentropy()
40 errno = EIO; in getentropy()
/Zephyr-latest/tests/net/socket/af_packet/src/
Dmain.c111 zassert_true(sock >= 0, "Cannot create packet socket (%d)", -errno); in setup_socket()
189 zassert_equal(ret, 0, "Cannot bind DGRAM (UDP) socket (%d)", -errno); in prepare_udp_socket()
211 zassert_equal(ret, 0, "Cannot bind 1st socket (%d)", -errno); in __test_packet_sockets()
214 zassert_equal(ret, 0, "Cannot bind 2nd socket (%d)", -errno); in __test_packet_sockets()
252 errno = 0; in ZTEST()
259 -errno); in ZTEST()
268 errno = 0; in ZTEST()
278 ret, sizeof(data_to_send), -errno); in ZTEST()
321 zassert_equal(ret, 0, "Cannot bind 1st socket (%d)", -errno); in ZTEST()
324 zassert_equal(ret, 0, "Cannot bind 2nd socket (%d)", -errno); in ZTEST()
[all …]
/Zephyr-latest/tests/posix/timers/src/
Dclock.c72 errno = 0; in ZTEST()
74 zassert_equal(errno, EINVAL); in ZTEST()
78 errno = 0; in ZTEST()
80 zassert_equal(errno, EINVAL); in ZTEST()
100 errno = 0; in ZTEST()
102 zassert_equal(errno, EINVAL); in ZTEST()
106 errno = 0; in ZTEST()
108 zassert_equal(errno, EINVAL); in ZTEST()
112 errno = 0; in ZTEST()
115 zassert_equal(errno, EINVAL); in ZTEST()
[all …]
Dnanosleep.c44 zassert_equal(errno, EFAULT); in common_errors()
47 errno = 0; in common_errors()
49 zassert_equal(errno, EFAULT); in common_errors()
55 errno = 0; in common_errors()
58 zassert_equal(errno, EINVAL); in common_errors()
60 errno = 0; in common_errors()
63 zassert_equal(errno, EINVAL); in common_errors()
65 errno = 0; in common_errors()
68 zassert_equal(errno, EINVAL); in common_errors()
71 errno = 0; in common_errors()
[all …]
/Zephyr-latest/tests/net/socket/misc/src/
Dmain.c215 zassert_equal(ret, 0, "bind failed, %d", errno); in test_so_bindtodevice()
222 zassert_equal(ret, 0, "SO_BINDTODEVICE failed, %d", errno); in test_so_bindtodevice()
233 zassert_equal(ret, 0, "SO_BINDTODEVICE failed, %d", errno); in test_so_bindtodevice()
237 zassert_equal(ret, strlen(send_buf) + 1, "sendto failed, %d", errno); in test_so_bindtodevice()
258 zassert_equal(ret, 0, "SO_BINDTODEVICE failed, %d", errno); in test_so_bindtodevice()
262 zassert_equal(ret, strlen(send_buf) + 1, "sendto failed, %d", errno); in test_so_bindtodevice()
277 zassert_true(ret > 0, "recv failed, %d", errno); in test_so_bindtodevice()
286 zassert_equal(ret, 0, "SO_BINDTODEVICE failed, %d", errno); in test_so_bindtodevice()
296 zassert_equal(ret, 0, "SO_BINDTODEVICE failed, %d", errno); in test_so_bindtodevice()
300 zassert_equal(ret, strlen(send_buf) + 1, "sendto failed, %d", errno); in test_so_bindtodevice()
[all …]
/Zephyr-latest/drivers/usb/device/
Dusb_dc_native_posix_adapt.c105 LOG_ERR("send() failed: %s", strerror(errno)); in send_interfaces()
106 return errno; in send_interfaces()
155 LOG_ERR("send() device failed: %s", strerror(errno)); in send_device()
156 return errno; in send_device()
173 LOG_ERR("send() header failed: %s", strerror(errno)); in handle_device_list()
174 return errno; in handle_device_list()
181 LOG_ERR("send() ndev failed: %s", strerror(errno)); in handle_device_list()
182 return errno; in handle_device_list()
201 LOG_ERR("recv() failed: %s", strerror(errno)); in handle_usbip_submit()
223 LOG_ERR("recv() failed: %s", strerror(errno)); in handle_usbip_unlink()
[all …]
/Zephyr-latest/tests/posix/single_process/src/
Dconfstr.c42 errno = 0; in ZTEST()
44 zassert_equal(errno, EINVAL); in ZTEST()
48 errno = 0; in ZTEST()
51 zassert_equal(errno, 0); in ZTEST()
56 errno = 0; in ZTEST()
58 zassert_equal(errno, 0); in ZTEST()
/Zephyr-latest/subsys/net/lib/sockets/
Dsockets_net_mgmt.c68 errno = ENOENT; in znet_mgmt_socket()
74 errno = ENOSPC; in znet_mgmt_socket()
102 errno = ENOENT; in znet_mgmt_bind()
129 errno = ENOTSUP; in znet_mgmt_sendto()
137 errno = EINVAL; in znet_mgmt_sendto()
176 errno = EAGAIN; in znet_mgmt_recvfrom()
181 errno = -ret; in znet_mgmt_recvfrom()
190 errno = EAGAIN; in znet_mgmt_recvfrom()
209 errno = EMSGSIZE; in znet_mgmt_recvfrom()
230 errno = EINVAL; in znet_mgmt_getsockopt()
[all …]
Dsockets_inet.c108 errno = -res; in zsock_socket_internal()
171 errno = -ret; in zsock_close_ctx()
175 SYS_PORT_TRACING_OBJ_FUNC_EXIT(socket, close, sock, ret < 0 ? -errno : ret); in zsock_close_ctx()
278 errno = -ret; in zsock_shutdown_ctx()
284 errno = -ret; in zsock_shutdown_ctx()
297 errno = ENOTSUP; in zsock_shutdown_ctx()
301 errno = EINVAL; in zsock_shutdown_ctx()
312 errno = -ret; in zsock_bind_ctx()
324 errno = -ret; in zsock_bind_ctx()
351 errno = -ret; in zsock_connect_ctx()
[all …]
/Zephyr-latest/samples/net/sockets/echo_service/src/
Dmain.c68 LOG_ERR("recv: %d", -errno); in receive_data()
98 LOG_ERR("sendto: %d", -errno); in receive_data()
114 LOG_ERR("socket: %d", -errno); in setup_tcp_socket()
115 return -errno; in setup_tcp_socket()
132 LOG_ERR("bind: %d", -errno); in setup_tcp_socket()
133 return -errno; in setup_tcp_socket()
137 LOG_ERR("listen: %d", -errno); in setup_tcp_socket()
138 return -errno; in setup_tcp_socket()
151 LOG_ERR("socket: %d", -errno); in setup_udp_socket()
152 return -errno; in setup_udp_socket()
[all …]
/Zephyr-latest/tests/kernel/common/src/
Derrno.c51 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()
129 errno = ERROR_ANY; in thread_entry_user()
134 zassert_equal(errno, got_errno, "errno is not corresponding."); in thread_entry_user()
/Zephyr-latest/tests/net/lib/http_server/crime/src/
Dmain.c77 zassert_not_equal(ret, -1, "failed to create client socket (%d)", errno); in test_crime()
84 zassert_not_equal(-1, ret, "inet_pton() failed (%d)", errno); in test_crime()
90 zassert_not_equal(ptr, NULL, "inet_ntop() failed (%d)", errno); in test_crime()
93 zassert_not_equal(ret, -1, "failed to connect (%s/%d)", strerror(errno), errno); in test_crime()
102 zassert_not_equal(ret, -1, "send() failed (%d)", errno); in test_crime()
106 zassert_not_equal(recv_len, -1, "recv() failed (%d)", errno); in test_crime()
112 zassert_not_equal(ret, -1, "recv() failed (%d)", errno); in test_crime()
129 zassert_not_equal(-1, ret, "close() failed on the client fd (%d)", errno); in test_crime()
/Zephyr-latest/subsys/usb/device_next/
Dusbd_ch9.c91 errno = -ENOTSUP; in sreq_set_address()
96 errno = -ENOTSUP; in sreq_set_address()
101 errno = -EPERM; in sreq_set_address()
137 errno = -ENOTSUP; in sreq_set_configuration()
142 errno = -ENOTSUP; in sreq_set_configuration()
147 errno = -EPERM; in sreq_set_configuration()
152 errno = -EPERM; in sreq_set_configuration()
188 errno = -ENOTSUP; in sreq_set_interface()
194 errno = -ENOTSUP; in sreq_set_interface()
199 errno = -ENOTSUP; in sreq_set_interface()
[all …]
/Zephyr-latest/tests/net/socket/tls_ext/src/
Dmain.c174 zassert_not_equal(addrstrp, NULL, "inet_ntop() failed (%d)", errno); in server_thread_fn()
181 zassert_not_equal(r, -1, "recv() failed (%d)", errno); in server_thread_fn()
186 zassert_not_equal(r, -1, "send() failed (%d)", errno); in server_thread_fn()
191 zassert_not_equal(r, -1, "close() failed on the server fd (%d)", errno); in server_thread_fn()
219 zassert_not_equal(r, -1, "failed to create server socket (%d)", errno); in test_common()
223 zassert_not_equal(r, -1, "failed to set SO_REUSEADDR (%d)", errno); in test_common()
253 "failed to set TLS_PEER_VERIFY (%d)", errno); in test_common()
265 errno); in test_common()
270 errno); in test_common()
280 zassert_not_equal(r, -1, "failed to bind (%d)", errno); in test_common()
[all …]

12345678910>>...12