Home
last modified time | relevance | path

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

12345678910>>...33

/Linux-v5.4/tools/testing/selftests/filesystems/binderfs/
Dbinderfs_test.c25 if (ret < 0 && errno == EINTR) in write_nointr()
40 strerror(errno), filename); in write_to_file()
44 if (allowed_errno && (errno == allowed_errno)) { in write_to_file()
59 saved_errno = errno; in write_to_file()
61 errno = saved_errno; in write_to_file()
65 strerror(errno), filename); in write_to_file()
84 strerror(errno)); in change_to_userns()
91 strerror(errno)); in change_to_userns()
98 strerror(errno)); in change_to_userns()
105 strerror(errno)); in change_to_userns()
[all …]
/Linux-v5.4/tools/testing/selftests/capabilities/
Dtest_execve.c43 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 …]
/Linux-v5.4/tools/testing/selftests/membarrier/
Dmembarrier_test_impl.h27 if (errno != EINVAL) { in test_membarrier_cmd_fail()
31 errno, strerror(errno)); 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()
59 test_name, flags, errno); in test_membarrier_flags_fail()
71 test_name, flags, errno); in test_membarrier_global_success()
89 if (errno != EPERM) { in test_membarrier_private_expedited_fail()
93 errno, strerror(errno)); in test_membarrier_private_expedited_fail()
98 test_name, flags, errno); in test_membarrier_private_expedited_fail()
[all …]
/Linux-v5.4/tools/iio/
Diio_utils.c115 ret = -errno; in iioutils_get_type()
132 ret = -errno; in iioutils_get_type()
145 ret = -errno; in iioutils_get_type()
165 ret = -errno; in iioutils_get_type()
240 ret = -errno; in iioutils_get_param_float()
257 ret = -errno; in iioutils_get_param_float()
261 errno = 0; in iioutils_get_param_float()
263 ret = errno ? -errno : -ENODATA; in iioutils_get_param_float()
330 ret = -errno; in build_channel_array()
346 ret = -errno; in build_channel_array()
[all …]
/Linux-v5.4/arch/um/os-Linux/
Dfile.c46 return -errno; in os_stat_fd()
60 return -errno; in os_stat_file()
78 return -errno; in os_access()
90 return -errno; in os_ioctl_generic()
99 return -errno; in os_get_ifname()
110 return -errno; in os_set_slip()
114 return -errno; in os_set_slip()
125 return -errno; in os_mode_fd()
161 if (err && (errno != EACCES)) in os_file_mode()
162 return -errno; in os_file_mode()
[all …]
Dumid.c55 __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 …]
/Linux-v5.4/tools/testing/selftests/pidfd/
Dpidfd_wait.c55 test_name, strerror(errno)); in test_pidfd_wait_simple()
61 test_name, strerror(errno)); in test_pidfd_wait_simple()
68 test_name, strerror(errno)); in test_pidfd_wait_simple()
74 test_name, strerror(errno)); in test_pidfd_wait_simple()
81 test_name, strerror(errno)); in test_pidfd_wait_simple()
90 test_name, parent_tid, pidfd, strerror(errno)); in test_pidfd_wait_simple()
95 test_name, parent_tid, pidfd, strerror(errno)); in test_pidfd_wait_simple()
102 strerror(errno)); in test_pidfd_wait_simple()
108 strerror(errno)); in test_pidfd_wait_simple()
114 strerror(errno)); in test_pidfd_wait_simple()
[all …]
/Linux-v5.4/tools/testing/selftests/bpf/map_tests/
Dsk_storage_map.c152 btf_fd, errno); in create_sk_storage_map()
159 "bpf_create_map_xattr()", "errno:%d\n", errno); in create_sk_storage_map()
189 err = -errno; in insert_close_thread()
190 fprintf(stderr, "socket(): errno:%d\n", errno); in insert_close_thread()
196 err = -errno; in insert_close_thread()
199 errno); in insert_close_thread()
243 err = -errno; in do_sk_storage_map_stress_free()
293 if (err && errno != EAGAIN) { in update_thread()
294 err = -errno; in update_thread()
296 err, errno); in update_thread()
[all …]
/Linux-v5.4/tools/testing/selftests/breakpoints/
Dstep_after_suspend_test.c32 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()
85 strerror(errno)); in run_test()
[all …]
/Linux-v5.4/fs/hostfs/
Dhostfs_user.c47 return -errno; in stat_file()
49 return -errno; in stat_file()
66 return -errno; in access_file()
86 return -errno; in open_file()
95 *err_out = errno; in open_dir()
130 return -errno; in read_file()
141 return -errno; in write_file()
152 return -errno; in lseek_file()
165 return -errno; in fsync_file()
190 return -errno; in file_create()
[all …]
/Linux-v5.4/drivers/media/usb/as102/
Das102_fw.c96 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 …]
/Linux-v5.4/tools/testing/selftests/bpf/
Dtest_maps.c45 printf("Failed to create hashmap '%s'!\n", strerror(errno)); in test_hashmap()
58 errno == EEXIST); in test_hashmap()
62 errno == EINVAL); in test_hashmap()
69 assert(bpf_map_lookup_elem(fd, &key, &value) == -1 && errno == ENOENT); in test_hashmap()
74 errno == ENOENT); in test_hashmap()
84 errno == E2BIG); in test_hashmap()
93 errno == E2BIG); in test_hashmap()
97 assert(bpf_map_delete_elem(fd, &key) == -1 && errno == ENOENT); in test_hashmap()
108 errno == ENOENT); in test_hashmap()
115 assert(bpf_map_delete_elem(fd, &key) == -1 && errno == ENOENT); in test_hashmap()
[all …]
Dtest_sock_fields.c132 "err:%d errno:%d", err, errno); in check_result()
137 "err:%d errno:%d", err, errno); in check_result()
141 "err:%d errno:%d", err, errno); in check_result()
144 "err:%d errno:%d", err, errno); in check_result()
148 "err:%d errno:%d", err, errno); in check_result()
151 "err:%d errno:%d", err, errno); in check_result()
155 "err:%d errno:%d", err, errno); in check_result()
158 "err:%d errno:%d", err, errno); in check_result()
269 err, errno, pkt_out_cnt.cnt, pkt_out_cnt10.cnt); in check_sk_pkt_out_cnt()
287 err, errno, pkt_out_cnt.cnt, pkt_out_cnt10.cnt); in check_sk_pkt_out_cnt()
[all …]
/Linux-v5.4/tools/hv/
Dhv_vss_daemon.c51 if ((cmd == FIFREEZE && errno == EBUSY) || in vss_do_freeze()
52 (cmd == FITHAW && errno == EINVAL)) { in vss_do_freeze()
79 } else if (errno != ENOENT) { in is_dev_loop()
81 buffer, errno, strerror(errno)); in is_dev_loop()
87 if (errno != ENOENT) in is_dev_loop()
89 buffer, errno, strerror(errno)); in is_dev_loop()
142 ent->mnt_fsname, errno, strerror(errno)); in vss_operate()
172 save_errno = errno; in vss_operate()
238 errno, strerror(errno)); in main()
249 errno, strerror(errno)); in main()
[all …]
/Linux-v5.4/tools/testing/selftests/exec/
Drecursion-depth.c30 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()
/Linux-v5.4/tools/testing/selftests/tmpfs/
Dbug-link-o-tmpfile.c31 if (errno == ENOSYS || errno == EPERM) { in main()
32 fprintf(stderr, "error: unshare, errno %d\n", errno); in main()
35 fprintf(stderr, "error: unshare, errno %d\n", errno); in main()
39 fprintf(stderr, "error: mount '/', errno %d\n", errno); in main()
45 fprintf(stderr, "error: mount tmpfs, errno %d\n", errno); in main()
51 fprintf(stderr, "error: open 1, errno %d\n", errno); in main()
55 fprintf(stderr, "error: linkat, errno %d\n", errno); in main()
62 fprintf(stderr, "error: open 2, errno %d\n", errno); in main()
/Linux-v5.4/tools/testing/selftests/net/
Dreuseport_addr_any.c46 error(1, errno, "inet_pton failed: %s", addr_str); in build_rcv_fd()
56 error(1, errno, "inet_pton failed: %s", addr_str); in build_rcv_fd()
73 error(1, errno, "failed to create receive socket"); in build_rcv_fd()
78 error(1, errno, "failed to set SO_REUSEPORT"); in build_rcv_fd()
81 error(1, errno, "failed to bind receive socket"); in build_rcv_fd()
84 error(1, errno, "tcp: failed to listen on receive port"); in build_rcv_fd()
89 error(1, errno, "failed to setsockopt"); in build_rcv_fd()
92 error(1, errno, "dccp: failed to listen on receive port"); in build_rcv_fd()
114 error(1, errno, "inet_pton failed: %s", IP4_ADDR); in connect_and_send()
127 error(1, errno, "inet_pton failed: %s", IP6_ADDR); in connect_and_send()
[all …]
Dreuseport_bpf.c124 error(1, errno, "ebpf error. log:\n%s\n", bpf_log_buf); in attach_ebpf()
128 error(1, errno, "failed to set SO_ATTACH_REUSEPORT_EBPF"); in attach_ebpf()
149 error(1, errno, "failed to set SO_ATTACH_REUSEPORT_CBPF"); in attach_cbpf()
162 error(1, errno, "failed to create recv %d", i); in build_recv_group()
167 error(1, errno, "failed to set SO_REUSEPORT on %d", i); in build_recv_group()
173 error(1, errno, "failed to bind recv socket %d", i); in build_recv_group()
179 error(1, errno, in build_recv_group()
182 error(1, errno, "failed to listen on socket"); in build_recv_group()
197 error(1, errno, "failed to create send socket"); in send_from()
200 error(1, errno, "failed to set reuseaddr"); in send_from()
[all …]
Dtcp_fastopen_backup_key.c58 error(1, errno, "Unable to get key"); in get_keys()
63 error(1, errno, "Unable to read %s", PROC_FASTOPEN_KEY); in get_keys()
76 error(1, errno, "Unable to set key"); in set_keys()
88 error(1, errno, "Unable to write %s", PROC_FASTOPEN_KEY); in set_keys()
128 error(1, errno, "failed to create receive socket"); in build_rcv_fd()
131 error(1, errno, "failed to set SO_REUSEPORT"); in build_rcv_fd()
133 error(1, errno, "failed to bind receive socket"); in build_rcv_fd()
136 error(1, errno, "failed to set TCP_FASTOPEN"); in build_rcv_fd()
139 error(1, errno, "failed to listen on receive port"); in build_rcv_fd()
161 error(1, errno, "inet_pton failed: %s", IP4_ADDR); in connect_and_send()
[all …]
/Linux-v5.4/arch/um/os-Linux/skas/
Dprocess.c37 return -errno; in ptrace_dump_regs()
70 "errno = %d\n", errno); in wait_stub_done()
84 "pid = %d, n = %d, errno = %d, status = 0x%x\n", pid, n, errno, in wait_stub_done()
104 "errno = %d\n", pid, errno); in get_skas_faultinfo()
147 "failed, errno = %d\n", errno); in handle_trap()
154 "syscall failed, errno = %d\n", errno); in handle_trap()
167 errno, status); in handle_trap()
212 "errno = %d\n", STUB_CODE, errno); in userspace_tramp()
224 STUB_DATA, errno); in userspace_tramp()
242 "handler failed - errno = %d\n", errno); in userspace_tramp()
[all …]
/Linux-v5.4/tools/testing/selftests/ipc/
Dmsgque.c43 return -errno; in restore_queue()
50 return -errno; in restore_queue()
56 return -errno; in restore_queue()
70 ret = -errno; in restore_queue()
78 printf("Failed to destroy queue: %d\n", -errno); in restore_queue()
91 if (errno == ENOMSG) in check_and_destroy_queue()
94 ret = -errno; in check_and_destroy_queue()
125 printf("Failed to destroy queue: %d\n", -errno); in check_and_destroy_queue()
126 return -errno; in check_and_destroy_queue()
140 if (errno == -EINVAL) in dump_queue()
[all …]
/Linux-v5.4/fs/nfs/
Dmount_clnt.c84 int errno; member
86 { .status = MNT_OK, .errno = 0, },
87 { .status = MNT_EPERM, .errno = -EPERM, },
88 { .status = MNT_ENOENT, .errno = -ENOENT, },
89 { .status = MNT_EACCES, .errno = -EACCES, },
90 { .status = MNT_EINVAL, .errno = -EINVAL, },
111 int errno; member
113 { .status = MNT3_OK, .errno = 0, },
114 { .status = MNT3ERR_PERM, .errno = -EPERM, },
115 { .status = MNT3ERR_NOENT, .errno = -ENOENT, },
[all …]
/Linux-v5.4/samples/binderfs/
Dbinderfs_example.c27 strerror(errno)); in main()
34 strerror(errno)); in main()
39 if (ret < 0 && errno != EEXIST) { in main()
41 strerror(errno)); in main()
48 strerror(errno)); in main()
57 strerror(errno)); in main()
62 saved_errno = errno; in main()
64 errno = saved_errno; in main()
67 strerror(errno)); in main()
77 strerror(errno)); in main()
/Linux-v5.4/tools/testing/selftests/mount/
Dunprivileged-remount-test.c67 strerror(errno)); in vmaybe_write_file()
75 if ((errno == ENOENT) && enoent_ok) in vmaybe_write_file()
78 filename, strerror(errno)); in vmaybe_write_file()
86 filename, strerror(errno)); in vmaybe_write_file()
91 filename, strerror(errno)); in vmaybe_write_file()
124 path, strerror(errno)); in read_mnt_flags()
164 strerror(errno)); in create_and_enter_userns()
173 strerror(errno)); in create_and_enter_userns()
177 strerror(errno)); in create_and_enter_userns()
190 strerror(errno)); in test_unpriv_remount()
[all …]
/Linux-v5.4/tools/testing/selftests/
Dkselftest.h85 int saved_errno = errno; in ksft_print_msg()
90 errno = saved_errno; in ksft_print_msg()
97 int saved_errno = errno; in ksft_test_result_pass()
104 errno = saved_errno; in ksft_test_result_pass()
111 int saved_errno = errno; in ksft_test_result_fail()
118 errno = saved_errno; in ksft_test_result_fail()
125 int saved_errno = errno; in ksft_test_result_skip()
132 errno = saved_errno; in ksft_test_result_skip()
139 int saved_errno = errno; in ksft_test_result_error()
146 errno = saved_errno; in ksft_test_result_error()
[all …]

12345678910>>...33