/kernel/liteos_a/testsuites/unittest/extended/signal/smoke/ |
H A D | signal_test_042.cpp | 40 errno = 0; in SigtimedwaitFailTest() 44 printf("err: line %d, errno %d\n", __LINE__, errno); in SigtimedwaitFailTest() 45 return errno; in SigtimedwaitFailTest() 54 if (errno != expectErrno) { in SigtimedwaitFailTest() 56 return errno; in SigtimedwaitFailTest() 73 ICUNIT_ASSERT_EQUAL(errno, EINVAL, errno); in TestCase() 76 ICUNIT_ASSERT_EQUAL(errno, EINVAL, errno); in TestCase() [all...] |
/third_party/ltp/testcases/kernel/syscalls/munmap/ |
H A D | munmap01.c | 45 * Log the errno and Issue a FAIL message. 53 * Print errno log and/or timing stats if options given 71 #include <errno.h> 113 tst_resm(TFAIL, "munmap() fails, errno=%d : %s", in main() 177 tst_brkm(TBROK, cleanup, "open() on %s Failed, errno=%d : %s", in setup() 178 TEMPFILE, errno, strerror(errno)); in setup() 189 tst_brkm(TBROK, cleanup, "write() on %s Failed, errno=%d : %s", in setup() 190 TEMPFILE, errno, strerror(errno)); in setup() [all...] |
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/fork/ |
H A D | 21-1.c | 32 #include <errno.h> 57 } while (ret != 0 && errno == EINTR); in threaded() 60 UNRESOLVED(errno, "failed to wait for the semaphore in child"); in threaded() 82 UNRESOLVED(errno, "Failed to open the semaphore"); in main() 96 UNRESOLVED(errno, "Failed to fork"); in main() 101 } while (ret != 0 && errno == EINTR); in main() 104 UNRESOLVED(errno, "Failed to post the semaphore"); in main() 119 UNRESOLVED(errno, "Waitpid returned the wrong PID"); in main() 128 UNRESOLVED(errno, "Failed to close the semaphore"); in main()
|
H A D | 13-1.c | 38 #include <errno.h> 69 UNRESOLVED(errno, in main() 76 UNRESOLVED(errno, in main() 83 UNRESOLVED(errno, in main() 95 UNRESOLVED(errno, "Failed to fork"); in main() 104 UNRESOLVED(errno, in main() 115 UNRESOLVED(errno, in main() 126 UNRESOLVED(errno, in main() 142 UNRESOLVED(errno, "Waitpid returned the wrong PID"); in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_unlink/ |
H A D | 5-1.c | 19 * sem_unlink will return -1 and set errno to ENAMETOOLONG when the semaphore 48 #include <errno.h> 119 UNRESOLVED(errno, in main() 135 error = errno; in main() 152 errno, strerror(errno)); in main() 172 UNRESOLVED(errno, in main() 188 error = errno; in main() 205 errno, strerror(errno)); in main() [all...] |
/third_party/selinux/libselinux/src/ |
H A D | fgetfilecon.c | 5 #include <errno.h> 13 int fd_flag, saved_errno = errno; in fgetxattr_wrapper() 17 if (ret != -1 || errno != EBADF) in fgetxattr_wrapper() 23 errno = EBADF; in fgetxattr_wrapper() 28 errno = saved_errno; in fgetxattr_wrapper() 30 if (ret < 0 && errno == ENOENT) in fgetxattr_wrapper() 31 errno = EBADF; in fgetxattr_wrapper() 48 if (ret < 0 && errno == ERANGE) { in fgetfilecon_raw() 67 errno = ENOTSUP; in fgetfilecon_raw()
|
/kernel/linux/linux-5.10/arch/um/drivers/ |
H A D | chan_user.c | 8 #include <errno.h> 31 else if (errno == EAGAIN) in generic_read() 33 return -errno; in generic_read() 45 else if (errno == EAGAIN) in generic_write() 49 return -errno; in generic_write() 59 return -errno; in generic_window_size() 112 return -errno; in generic_console_write() 170 "errno = %d\n", errno); in winch_thread() 177 printk(UM_KERN_ERR "winch_thread : setsid failed, errno in winch_thread() [all...] |
/kernel/linux/linux-5.10/tools/testing/vsock/ |
H A D | util.c | 10 #include <errno.h> 40 errno = 0; in parse_cid() 42 if (errno || *endptr != '\0') { in parse_cid() 110 } while (ret < 0 && errno == EINTR); in vsock_stream_connect() 114 int old_errno = errno; in vsock_stream_connect() 118 errno = old_errno; in vsock_stream_connect() 166 } while (client_fd < 0 && errno == EINTR); in vsock_stream_accept() 169 old_errno = errno; in vsock_stream_accept() 171 errno = old_errno; in vsock_stream_accept() 195 * <0 Negative errno (fo [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/net/ |
H A D | reuseport_dualstack.c | 17 #include <errno.h> 58 error(1, errno, "failed to create receive socket"); in build_rcv_fd() 63 error(1, errno, "failed to set SO_REUSEPORT"); in build_rcv_fd() 66 error(1, errno, "failed to bind receive socket"); in build_rcv_fd() 69 error(1, errno, "failed to listen on receive port"); in build_rcv_fd() 88 error(1, errno, "failed to create send socket"); in send_from_v4() 91 error(1, errno, "failed to bind send socket"); in send_from_v4() 94 error(1, errno, "failed to connect send socket"); in send_from_v4() 97 error(1, errno, "failed to send message"); in send_from_v4() 110 error(1, errno, "epoll_wai in receive_once() [all...] |
H A D | so_txtime.c | 14 #include <errno.h> 59 error(1, errno, "gettime"); in gettime_ns() 95 error(1, errno, "write"); in do_send_one() 108 if (ret == -1 && errno == EAGAIN) in do_recv_one() 111 error(1, errno, "read"); in do_recv_one() 136 if (ret != -1 || errno != EAGAIN) in do_recv_verify_empty() 137 error(1, 0, "recv: not empty as expected (%d, %d)", ret, errno); in do_recv_verify_empty() 166 if (ret == -1 && errno == EAGAIN) in do_recv_errqueue_timeout() 169 error(1, errno, "errqueue"); in do_recv_errqueue_timeout() 197 error(1, 0, "errqueue: errno in do_recv_errqueue_timeout() [all...] |
H A D | psock_snd.c | 6 #include <errno.h> 178 error(1, errno, "if_nametoindex"); in do_bind() 181 error(1, errno, "bind"); in do_bind() 205 error(1, errno, "if_nametoindex"); in do_send() 211 error(1, errno, "write"); in do_send() 225 error(1, errno, "socket t"); in do_tx() 232 error(1, errno, "setsockopt qdisc bypass"); in do_tx() 236 error(1, errno, "setsockopt vnet"); in do_tx() 246 error(1, errno, "close t"); in do_tx() 259 error(1, errno, "socke in setup_rx() [all...] |
/kernel/linux/linux-6.6/arch/um/drivers/ |
H A D | chan_user.c | 8 #include <errno.h> 31 else if (errno == EAGAIN) in generic_read() 33 return -errno; in generic_read() 45 else if (errno == EAGAIN) in generic_write() 49 return -errno; in generic_write() 59 return -errno; in generic_window_size() 112 return -errno; in generic_console_write() 170 "errno = %d\n", errno); in winch_thread() 177 printk(UM_KERN_ERR "winch_thread : setsid failed, errno in winch_thread() [all...] |
/kernel/linux/linux-5.10/tools/gpio/ |
H A D | gpio-utils.c | 12 #include <errno.h> 56 * On failure return the errno. 75 ret = -errno; in gpiotools_request_linehandle() 77 chrdev_name, strerror(errno)); in gpiotools_request_linehandle() 92 ret = -errno; in gpiotools_request_linehandle() 94 "GPIO_GET_LINEHANDLE_IOCTL", ret, strerror(errno)); in gpiotools_request_linehandle() 123 * On failure return the errno. 142 ret = -errno; in gpiotools_request_line() 144 chrdev_name, strerror(errno)); in gpiotools_request_line() 158 ret = -errno; in gpiotools_request_line() [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/net/ |
H A D | reuseport_dualstack.c | 17 #include <errno.h> 58 error(1, errno, "failed to create receive socket"); in build_rcv_fd() 63 error(1, errno, "failed to set SO_REUSEPORT"); in build_rcv_fd() 66 error(1, errno, "failed to bind receive socket"); in build_rcv_fd() 69 error(1, errno, "failed to listen on receive port"); in build_rcv_fd() 88 error(1, errno, "failed to create send socket"); in send_from_v4() 91 error(1, errno, "failed to bind send socket"); in send_from_v4() 94 error(1, errno, "failed to connect send socket"); in send_from_v4() 97 error(1, errno, "failed to send message"); in send_from_v4() 110 error(1, errno, "epoll_wai in receive_once() [all...] |
H A D | ipv6_flowlabel.c | 9 #include <errno.h> 89 error(1, errno, "send"); in do_send() 119 error(1, errno, "recv"); in do_recv() 161 error(1, errno, "open sysctl"); in get_autoflowlabel_enabled() 165 error(1, errno, "read sysctl"); in get_autoflowlabel_enabled() 170 error(1, errno, "close sysctl"); in get_autoflowlabel_enabled() 189 error(1, errno, "setsockopt flowlabel get"); in flowlabel_get() 230 error(1, errno, "socket t"); in main() 234 error(1, errno, "socket r"); in main() 237 error(1, errno, "connec in main() [all...] |
/kernel/liteos_m/testsuites/unittest/posix/src/semaphore/ |
H A D | semaphore_func_test.c | 35 #include <errno.h> 114 ICUNIT_ASSERT_EQUAL(errno, ETIMEDOUT, errno); 162 ICUNIT_ASSERT_EQUAL(errno, ETIMEDOUT, errno); 186 ICUNIT_ASSERT_EQUAL(errno, EINVAL, errno); 195 ICUNIT_ASSERT_EQUAL(errno, EINVAL, errno); 201 ICUNIT_ASSERT_EQUAL(errno, EINVA [all...] |
/test/xts/acts/kernel_lite/ipc_posix/pipe_fifo/ |
H A D | FifoTest.cpp | 66 EXPECT_EQ(ret, 0) << "> parent: mkfifo errno = " << errno;
in HWTEST_F() 68 EXPECT_NE(fd, -1) << "> open faild errno = " << errno;
in HWTEST_F() 69 EXPECT_NE(read(fd, buffer, sizeof(buffer)), -1) << "> read errno = " << errno;
in HWTEST_F() 93 EXPECT_EQ(mkfifo(fifoPath, 0666), 0) << "> mkfifo errno = " << errno;
in HWTEST_F() local 96 EXPECT_NE(remove(fifoPath), -1) << "> remove errno = " << errno;
in HWTEST_F() [all...] |
/third_party/ntfs-3g/libntfs-3g/ |
H A D | efs.c | 33 #include <errno.h> 87 errno = EFAULT; in ntfs_get_efs_info() 92 errno = ERANGE; in ntfs_get_efs_info() 106 errno = EIO; in ntfs_get_efs_info() 110 errno = ENODATA; in ntfs_get_efs_info() 115 return (attr_size ? (int)attr_size : -errno); in ntfs_get_efs_info() 176 errno = EIO; in fixup_loop() 224 errno = EEXIST; in ntfs_set_efs_info() 234 errno = EIO; in ntfs_set_efs_info() 241 errno in ntfs_set_efs_info() [all...] |
/foundation/communication/netmanager_base/services/netmanagernative/src/netsys/dnsresolv/ |
H A D | dns_resolv_listen.cpp | 102 DNS_CONFIG_PRINT("read errno %{public}d", errno);
in ProcGetKeyForCache() 112 DNS_CONFIG_PRINT("read errno %{public}d", errno);
in ProcGetKeyForCache() 142 DNS_CONFIG_PRINT("send errno %{public}d", errno);
in ProcGetCacheCommand() 158 DNS_CONFIG_PRINT("send errno %{public}d", errno);
in ProcGetCacheCommand() 182 DNS_CONFIG_PRINT("read errno %{public}d", errno);
in ProcSetCacheCommand() [all...] |
/foundation/communication/dsoftbus/adapter/common/kernel/posix/ |
H A D | softbus_adapter_file.c | 18 #include <errno.h> 59 COMM_LOGE(COMM_ADAPTER, "create file failed, errno=%{public}d", errno); in SoftBusCreateFile() 74 COMM_LOGE(COMM_ADAPTER, "softbus read file fail. errno=%{public}s", strerror(errno)); in SoftBusReadFile() 88 COMM_LOGE(COMM_ADAPTER, "ReadFile open file fail, errno=%{public}s", strerror(errno)); in ReadFullFile() 93 COMM_LOGE(COMM_ADAPTER, "ReadFile len error, fileLen=%{public}d, errno=%{public}s", fileLen, strerror(errno)); in ReadFullFile() 104 COMM_LOGE(COMM_ADAPTER, "ReadFile lseek file fail, ret=%{public}d, errno in ReadFullFile() [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/ |
H A D | cgroup_attach_multi.c | 20 printf("failed to create map '%s'\n", strerror(errno)); in prog_load_cnt() 27 printf("failed to create map '%s'\n", strerror(errno)); in prog_load_cnt() 35 printf("failed to create map '%s'\n", strerror(errno)); in prog_load_cnt() 118 "prog0_attach_to_cg1_multi", "errno=%d\n", errno)) in test_cgroup_attach_multi() 128 "prog1_attach_to_cg1_multi", "errno=%d\n", errno)) in test_cgroup_attach_multi() 133 "prog2_attach_to_cg2_override", "errno=%d\n", errno)) in test_cgroup_attach_multi() 138 "prog3_attach_to_cg3_multi", "errno in test_cgroup_attach_multi() [all...] |
/kernel/linux/linux-5.10/tools/bootconfig/ |
H A D | main.c | 12 #include <errno.h> 125 return -errno; in load_xbc_fd() 131 /* Return the read size or -errno */ 139 return -errno; in load_xbc_file() 142 return -errno; in load_xbc_file() 167 return -errno; in load_xbc_from_initrd() 173 return pr_errno("Failed to lseek for magic", -errno); in load_xbc_from_initrd() 176 return pr_errno("Failed to read", -errno); in load_xbc_from_initrd() 183 return pr_errno("Failed to lseek for size", -errno); in load_xbc_from_initrd() 186 return pr_errno("Failed to read size", -errno); in load_xbc_from_initrd() [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/ |
H A D | cgroup_attach_multi.c | 20 printf("failed to create map '%s'\n", strerror(errno)); in prog_load_cnt() 27 printf("failed to create map '%s'\n", strerror(errno)); in prog_load_cnt() 35 printf("failed to create map '%s'\n", strerror(errno)); in prog_load_cnt() 118 "prog0_attach_to_cg1_multi", "errno=%d\n", errno)) in serial_test_cgroup_attach_multi() 128 "prog1_attach_to_cg1_multi", "errno=%d\n", errno)) in serial_test_cgroup_attach_multi() 133 "prog2_attach_to_cg2_override", "errno=%d\n", errno)) in serial_test_cgroup_attach_multi() 138 "prog3_attach_to_cg3_multi", "errno in serial_test_cgroup_attach_multi() [all...] |
/kernel/linux/linux-6.6/tools/bootconfig/ |
H A D | main.c | 12 #include <errno.h> 144 return -errno; in load_xbc_fd() 150 /* Return the read size or -errno */ 158 return -errno; in load_xbc_file() 161 return -errno; in load_xbc_file() 186 return -errno; in load_xbc_from_initrd() 192 return pr_errno("Failed to lseek for magic", -errno); in load_xbc_from_initrd() 195 return pr_errno("Failed to read", -errno); in load_xbc_from_initrd() 202 return pr_errno("Failed to lseek for size", -errno); in load_xbc_from_initrd() 205 return pr_errno("Failed to read size", -errno); in load_xbc_from_initrd() [all...] |
/third_party/ltp/pan/ |
H A D | zoolib.c | 96 if (errno == ENOENT) { in zoo_open() 102 "Could not open zoo as \"%s\", errno:%d %s", in zoo_open() 103 zooname, errno, strerror(errno)); in zoo_open() 110 "Could not open zoo as \"%s\", errno:%d %s", in zoo_open() 111 zooname, errno, strerror(errno)); in zoo_open() 124 "closing zoo caused error, errno:%d %s", in zoo_close() 125 errno, strerror(errno)); in zoo_close() [all...] |