/openbmc/linux/tools/testing/selftests/capabilities/ |
H A D | test_execve.c | 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() 143 ksft_exit_fail_msg("getcwd - %s\n", strerror(errno)); in chdir_to_tmpfs() [all …]
|
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | pinning.c | 23 CHECK(err, "get map info", "err %d errno %d", err, errno); in get_map_id() 48 if (CHECK(err != -EINVAL, "invalid open", "err %d errno %d\n", err, errno)) { in test_pinning() 56 if (CHECK(err, "default open", "err %d errno %d\n", err, errno)) { in test_pinning() 62 if (CHECK(err, "default load", "err %d errno %d\n", err, errno)) in test_pinning() 67 if (CHECK(err, "stat pinpath", "err %d errno %d\n", err, errno)) in test_pinning() 72 if (CHECK(!err || errno != ENOENT, "stat nopinpath", in test_pinning() 73 "err %d errno %d\n", err, errno)) in test_pinning() 78 if (CHECK(!err || errno != ENOENT, "stat nopinpath2", in test_pinning() 79 "err %d errno %d\n", err, errno)) in test_pinning() 95 if (CHECK(err, "default load", "err %d errno %d\n", err, errno)) in test_pinning() [all …]
|
/openbmc/u-boot/arch/sandbox/cpu/ |
H A D | eth-raw-os.c | 46 return -errno; in sandbox_eth_raw_os_is_local() 51 ret = -errno; in sandbox_eth_raw_os_is_local() 63 return -errno; in sandbox_eth_raw_os_idx_to_name() 91 printf("Failed to open socket: %d %s\n", errno, in _raw_packet_start() 92 strerror(errno)); in _raw_packet_start() 93 return -errno; in _raw_packet_start() 100 errno, strerror(errno)); in _raw_packet_start() 101 return -errno; in _raw_packet_start() 118 errno, strerror(errno)); in _raw_packet_start() 126 printf("Failed to read flags: %d %s\n", errno, in _raw_packet_start() [all …]
|
/openbmc/linux/tools/testing/selftests/landlock/ |
H A D | base_test.c | 36 ASSERT_EQ(EINVAL, errno); in TEST() 38 ASSERT_EQ(EINVAL, errno); in TEST() 40 ASSERT_EQ(EINVAL, errno); in TEST() 44 ASSERT_EQ(EFAULT, errno); in TEST() 48 ASSERT_EQ(EFAULT, errno); in TEST() 51 ASSERT_EQ(E2BIG, errno); in TEST() 55 ASSERT_EQ(ENOMSG, errno); in TEST() 59 ASSERT_EQ(ENOMSG, errno); in TEST() 61 ASSERT_EQ(ENOMSG, errno); in TEST() 66 ASSERT_EQ(E2BIG, errno); in TEST() [all …]
|
/openbmc/linux/tools/iio/ |
H A D | iio_utils.c | 117 ret = -errno; in iioutils_get_type() 134 ret = -errno; in iioutils_get_type() 147 ret = -errno; in iioutils_get_type() 167 ret = -errno; in iioutils_get_type() 242 ret = -errno; in iioutils_get_param_float() 259 ret = -errno; in iioutils_get_param_float() 263 errno = 0; in iioutils_get_param_float() 265 ret = errno ? -errno : -ENODATA; in iioutils_get_param_float() 334 ret = -errno; in build_channel_array() 351 ret = -errno; in build_channel_array() [all …]
|
/openbmc/linux/tools/testing/selftests/membarrier/ |
H A D | membarrier_test_impl.h | 31 test_name, flags, errno); in test_membarrier_get_registrations() 54 if (errno != EINVAL) { in test_membarrier_cmd_fail() 58 errno, strerror(errno)); in test_membarrier_cmd_fail() 63 test_name, cmd, flags, errno); in test_membarrier_cmd_fail() 77 if (errno != EINVAL) { in test_membarrier_flags_fail() 81 errno, strerror(errno)); in test_membarrier_flags_fail() 86 test_name, flags, errno); in test_membarrier_flags_fail() 98 test_name, flags, errno); in test_membarrier_global_success() 116 if (errno != EPERM) { in test_membarrier_private_expedited_fail() 120 errno, strerror(errno)); in test_membarrier_private_expedited_fail() [all …]
|
/openbmc/linux/tools/testing/selftests/mincore/ |
H A D | mincore_selftest.c | 44 errno = 0; in TEST() 47 EXPECT_EQ(ENOMEM, errno); in TEST() 49 errno = 0; in TEST() 53 TH_LOG("mmap error: %s", strerror(errno)); in TEST() 57 errno = 0; in TEST() 60 EXPECT_EQ(EINVAL, errno); in TEST() 63 errno = 0; in TEST() 66 EXPECT_EQ(ENOMEM, errno); in TEST() 69 errno = 0; in TEST() 72 EXPECT_EQ(EFAULT, errno); in TEST() [all …]
|
/openbmc/linux/arch/um/os-Linux/ |
H A D | file.c | 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 != EACCES)) in os_file_mode() 166 return -errno; in os_file_mode() [all …]
|
H A D | umid.c | 55 __func__, errno); in make_uml_dir() 60 if ((mkdir(uml_dir, 0777) < 0) && (errno != EEXIST)) { in make_uml_dir() 62 uml_dir, strerror(errno)); in make_uml_dir() 63 err = -errno; in make_uml_dir() 91 if (errno != ENOENT) in remove_files_and_dir() 92 return -errno; in remove_files_and_dir() 107 if (unlink(file) < 0 && errno != ENOENT) { in remove_files_and_dir() 108 ret = -errno; in remove_files_and_dir() 113 if (rmdir(dir) < 0 && errno != ENOENT) { in remove_files_and_dir() 114 ret = -errno; in remove_files_and_dir() [all …]
|
/openbmc/linux/tools/testing/selftests/futex/functional/ |
H A D | futex_waitv.c | 44 error("gettime64 failed\n", errno); in waiterfn() 51 errno, strerror(errno)); in waiterfn() 98 error("pthread_create failed\n", errno); in main() 105 res ? errno : res, in main() 106 res ? strerror(errno) : ""); in main() 131 error("pthread_create failed\n", errno); in main() 138 res ? errno : res, in main() 139 res ? strerror(errno) : ""); in main() 152 error("gettime64 failed\n", errno); in main() 159 res ? errno : res, in main() [all …]
|
/openbmc/linux/tools/testing/selftests/mount/ |
H A D | nosymfollow-test.c | 50 die("vsnprintf failed: %s\n", strerror(errno)); in vmaybe_write_file() 57 if ((errno == ENOENT) && enoent_ok) in vmaybe_write_file() 59 die("open of %s failed: %s\n", filename, strerror(errno)); in vmaybe_write_file() 68 filename, strerror(errno)); in vmaybe_write_file() 73 die("close of %s failed: %s\n", filename, strerror(errno)); in vmaybe_write_file() 100 die("unshare(CLONE_NEWUSER) failed: %s\n", strerror(errno)); in create_and_enter_ns() 107 die("setgid(0) failed %s\n", strerror(errno)); in create_and_enter_ns() 109 die("setuid(0) failed %s\n", strerror(errno)); in create_and_enter_ns() 112 die("unshare(CLONE_NEWNS) failed: %s\n", strerror(errno)); in create_and_enter_ns() 121 die("creat failed: %s\n", strerror(errno)); in setup_symlink() [all …]
|
/openbmc/linux/tools/testing/selftests/bpf/ |
H A D | test_maps.c | 44 printf("Failed to create hashmap '%s'!\n", strerror(errno)); in test_hashmap() 57 errno == EEXIST); in test_hashmap() 61 errno == EINVAL); in test_hashmap() 75 assert(bpf_map_lookup_elem(fd, &key, &value) < 0 && errno == ENOENT); in test_hashmap() 80 errno == ENOENT); in test_hashmap() 90 errno == E2BIG); in test_hashmap() 99 errno == E2BIG); in test_hashmap() 103 assert(bpf_map_delete_elem(fd, &key) < 0 && errno == ENOENT); in test_hashmap() 114 errno == ENOENT); in test_hashmap() 121 assert(bpf_map_delete_elem(fd, &key) < 0 && errno == ENOENT); in test_hashmap() [all …]
|
/openbmc/linux/tools/testing/selftests/filesystems/binderfs/ |
H A D | binderfs_test.c | 33 int _e_ = errno; \ 35 errno = _e_; \ 46 strerror(errno)); in change_mountns() 52 strerror(errno)); in change_mountns() 74 strerror(errno)); in __do_binderfs_test() 80 if (errno == ENODEV) in __do_binderfs_test() 82 TH_LOG("%s - Failed to mount binderfs", strerror(errno)); in __do_binderfs_test() 94 strerror(errno)); in __do_binderfs_test() 99 saved_errno = errno; in __do_binderfs_test() 101 errno = saved_errno; in __do_binderfs_test() [all …]
|
/openbmc/openbmc/meta-openembedded/meta-networking/recipes-connectivity/ez-ipupdate/files/ |
H A D | cache_file.c.patch | 3 Dont assume errno type 11 -extern int errno; 12 +# include <errno.h> 13 # define error_string strerror(errno) 16 -extern int errno; 17 +# include <errno.h> 18 # define error_string (sys_errlist[errno]) 25 -extern int errno; 26 +# include <errno.h> 27 # define error_string strerror(errno) [all …]
|
/openbmc/linux/tools/testing/selftests/bpf/map_tests/ |
H A D | sk_storage_map.c | 148 btf_fd, errno); in create_sk_storage_map() 155 "bpf_map_create()", "errno:%d\n", errno); in create_sk_storage_map() 185 err = -errno; in insert_close_thread() 186 fprintf(stderr, "socket(): errno:%d\n", errno); in insert_close_thread() 192 err = -errno; in insert_close_thread() 195 errno); in insert_close_thread() 239 err = -errno; in do_sk_storage_map_stress_free() 289 if (err && errno != EAGAIN) { in update_thread() 290 err = -errno; in update_thread() 292 err, errno); in update_thread() [all …]
|
/openbmc/linux/drivers/media/usb/as102/ |
H A D | as102_fw.c | 96 int total_read_bytes = 0, errno = 0; in as102_firmware_upload() local 125 errno = bus_adap->ops->upload_fw_pkt(bus_adap, in as102_firmware_upload() 128 if (errno < 0) in as102_firmware_upload() 140 errno = bus_adap->ops->upload_fw_pkt(bus_adap, in as102_firmware_upload() 145 if (errno < 0) in as102_firmware_upload() 152 return (errno == 0) ? total_read_bytes : errno; in as102_firmware_upload() 157 int errno = -EFAULT; in as102_fw_upload() local 175 errno = -ENOMEM; in as102_fw_upload() 180 errno = request_firmware(&firmware, fw1, &dev->dev); in as102_fw_upload() 181 if (errno < 0) { in as102_fw_upload() [all …]
|
/openbmc/linux/tools/testing/selftests/breakpoints/ |
H A D | step_after_suspend_test.c | 32 strerror(errno)); in child() 38 strerror(errno)); in child() 43 ksft_print_msg("raise(SIGSTOP) failed: %s\n", strerror(errno)); in child() 57 ksft_print_msg("fork() failed: %s\n", strerror(errno)); in run_test() 65 ksft_print_msg("waitpid() failed: %s\n", strerror(errno)); in run_test() 69 ksft_print_msg("child did not stop: %s\n", strerror(errno)); in run_test() 74 strerror(errno)); in run_test() 79 if (errno == EIO) { in run_test() 82 strerror(errno)); in run_test() 86 strerror(errno)); in run_test() [all …]
|
/openbmc/linux/fs/hostfs/ |
H A D | hostfs_user.c | 49 return -errno; in stat_file() 51 return -errno; in stat_file() 68 return -errno; in access_file() 88 return -errno; in open_file() 97 *err_out = errno; in open_dir() 132 return -errno; in read_file() 143 return -errno; in write_file() 154 return -errno; in lseek_file() 167 return -errno; in fsync_file() 192 return -errno; in file_create() [all …]
|
/openbmc/linux/tools/hv/ |
H A D | hv_vss_daemon.c | 53 if ((cmd == FIFREEZE && errno == EBUSY) || in vss_do_freeze() 54 (cmd == FITHAW && errno == EINVAL)) { in vss_do_freeze() 81 } else if (errno != ENOENT) { in is_dev_loop() 83 buffer, errno, strerror(errno)); in is_dev_loop() 89 if (errno != ENOENT) in is_dev_loop() 91 buffer, errno, strerror(errno)); in is_dev_loop() 144 ent->mnt_fsname, errno, strerror(errno)); in vss_operate() 183 save_errno = errno; in vss_operate() 253 errno); in main() 262 errno, strerror(errno)); in main() [all …]
|
/openbmc/phosphor-debug-collector/ |
H A D | dump_offload.cpp | 60 "ERRNO", errno); in writeOnUnixSocket() 61 std::string msg = "select() failed " + std::string(strerror(errno)); in writeOnUnixSocket() 69 if (errno == EAGAIN || errno == EWOULDBLOCK || errno == EINTR) in writeOnUnixSocket() 75 "ERRNO", errno); in writeOnUnixSocket() 77 "write() on socket failed " + std::string(strerror(errno)); in writeOnUnixSocket() 103 "UNIX socket path is too long " + std::string(strerror(errno)); in socketInit() 115 errno); in socketInit() 116 std::string msg = "socket() failed " + std::string(strerror(errno)); in socketInit() 122 lg2::error("socketInit: bind() failed, errno: {ERRNO}", "ERRNO", errno); in socketInit() 124 std::string msg = "socket bind failed " + std::string(strerror(errno)); in socketInit() [all …]
|
/openbmc/linux/tools/testing/selftests/arm64/fp/ |
H A D | fp-stress.c | 68 strerror(errno), errno); in child_start() 73 strerror(errno), errno); in child_start() 82 printf("dup2() %d\n", errno); in child_start() 92 printf("dup2() %d\n", errno); in child_start() 111 strerror(errno), errno); in child_start() 118 program, errno, strerror(errno)); in child_start() 138 child->name, strerror(errno), errno); in child_start() 151 if (errno == EINTR) in child_output_read() 155 child->name, strerror(errno), in child_output_read() 156 errno); in child_output_read() [all …]
|
/openbmc/linux/tools/testing/selftests/exec/ |
H A D | recursion-depth.c | 30 if (errno == ENOSYS || errno == EPERM) { in main() 31 fprintf(stderr, "error: unshare, errno %d\n", errno); in main() 34 fprintf(stderr, "error: unshare, errno %d\n", errno); in main() 38 fprintf(stderr, "error: mount '/', errno %d\n", errno); in main() 43 fprintf(stderr, "error: mount ramfs, errno %d\n", errno); in main() 51 fprintf(stderr, "error: creat, errno %d\n", errno); in main() 56 fprintf(stderr, "error: write, errno %d\n", errno); in main() 62 if (rv == -1 && errno == ELOOP) { in main() 65 fprintf(stderr, "error: execve, rv %d, errno %d\n", rv, errno); in main()
|
/openbmc/linux/tools/testing/selftests/ |
H A D | kselftest.h | 150 int saved_errno = errno; in ksft_print_msg() 155 errno = saved_errno; in ksft_print_msg() 163 ksft_print_msg("%s: %s (%d)\n", msg, strerror(errno), errno); in ksft_perror() 169 ksft_print_msg("%s: %d)\n", msg, errno); in ksft_perror() 175 int saved_errno = errno; in ksft_test_result_pass() 182 errno = saved_errno; in ksft_test_result_pass() 189 int saved_errno = errno; in ksft_test_result_fail() 196 errno = saved_errno; in ksft_test_result_fail() 215 int saved_errno = errno; in ksft_test_result_xfail() 222 errno = saved_errno; in ksft_test_result_xfail() [all …]
|
/openbmc/linux/tools/testing/selftests/net/ |
H A D | reuseport_addr_any.c | 50 error(1, errno, "inet_pton failed: %s", addr_str); in build_rcv_fd() 60 error(1, errno, "inet_pton failed: %s", addr_str); in build_rcv_fd() 77 error(1, errno, "failed to create receive socket"); in build_rcv_fd() 82 error(1, errno, "failed to set SO_REUSEPORT"); in build_rcv_fd() 85 error(1, errno, "failed to bind receive socket"); in build_rcv_fd() 88 error(1, errno, "tcp: failed to listen on receive port"); in build_rcv_fd() 93 error(1, errno, "failed to setsockopt"); in build_rcv_fd() 96 error(1, errno, "dccp: failed to listen on receive port"); in build_rcv_fd() 118 error(1, errno, "inet_pton failed: %s", IP4_ADDR); in connect_and_send() 131 error(1, errno, "inet_pton failed: %s", IP6_ADDR); in connect_and_send() [all …]
|
/openbmc/linux/tools/testing/selftests/kvm/x86_64/ |
H A D | sev_migrate_tests.c | 47 cmd_id, ret, errno, fw_error); in sev_ioctl() 94 TEST_ASSERT(!ret, "Migration failed, ret: %d, errno: %d\n", ret, errno); in sev_migrate_from() 115 TEST_ASSERT(ret == -1 && errno == EIO, in test_sev_migrate_from() 117 errno); in test_sev_migrate_from() 174 TEST_ASSERT(ret == -1 && errno == EINVAL, in test_sev_migrate_parameters() 176 errno); in test_sev_migrate_parameters() 189 ret == -1 && errno == EINVAL, in test_sev_migrate_parameters() 191 ret, errno); in test_sev_migrate_parameters() 195 ret == -1 && errno == EINVAL, in test_sev_migrate_parameters() 197 ret, errno); in test_sev_migrate_parameters() [all …]
|