Home
last modified time | relevance | path

Searched refs:errno (Results 1 – 200 of 371) sorted by relevance

12

/linux-4.4.14/tools/iio/
Diio_utils.c118 ret = -errno; in iioutils_get_type()
139 ret = -errno; in iioutils_get_type()
152 ret = -errno; in iioutils_get_type()
172 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 …]
Dgeneric_buffer.c235 errno = 0; in main()
237 if (errno) in main()
238 return -errno; in main()
248 errno = 0; in main()
250 if (errno) in main()
251 return -errno; in main()
262 errno = 0; in main()
264 if (errno) in main()
265 return -errno; in main()
398 ret = -errno; in main()
[all …]
Diio_event_monitor.c279 ret = -errno; in main()
286 ret = -errno; in main()
299 ret = -errno; in main()
306 if (errno == EAGAIN) { in main()
310 ret = -errno; in main()
Dlsiio.c50 return -errno; in dump_channels()
57 return (closedir(dp) == -1) ? -errno : 0; in dump_channels()
157 return (closedir(dp) == -1) ? -errno : 0; in dump_devices()
/linux-4.4.14/arch/um/os-Linux/
Dfile.c44 return -errno; in os_stat_fd()
58 return -errno; in os_stat_file()
76 return -errno; in os_access()
88 return -errno; in os_ioctl_generic()
97 return -errno; in os_get_ifname()
108 return -errno; in os_set_slip()
112 return -errno; in os_set_slip()
123 return -errno; in os_mode_fd()
159 if (err && (errno != EACCES)) in os_file_mode()
160 return -errno; in os_file_mode()
[all …]
Dumid.c53 printf("make_uml_dir : malloc failed, errno = %d\n", errno); in make_uml_dir()
58 if ((mkdir(uml_dir, 0777) < 0) && (errno != EEXIST)) { in make_uml_dir()
59 printf("Failed to mkdir '%s': %s\n", uml_dir, strerror(errno)); in make_uml_dir()
60 err = -errno; in make_uml_dir()
88 if (errno != ENOENT) in remove_files_and_dir()
89 return -errno; in remove_files_and_dir()
104 if (unlink(file) < 0 && errno != ENOENT) { in remove_files_and_dir()
105 ret = -errno; in remove_files_and_dir()
110 if (rmdir(dir) < 0 && errno != ENOENT) { in remove_files_and_dir()
111 ret = -errno; in remove_files_and_dir()
[all …]
Dprocess.c37 "errno = %d\n", proc_stat, errno); in os_process_pc()
43 "err = %d\n", proc_stat, errno); in os_process_pc()
72 errno); in os_process_parent()
81 errno); in os_process_parent()
150 return -errno; in os_map_memory()
160 return -errno; in os_protect_memory()
171 return -errno; in os_unmap_memory()
185 err = -errno; in os_drop_memory()
206 "err = %d\n", -errno); in can_drop_memory()
211 printk(UM_KERN_ERR "MADV_REMOVE failed, err = %d\n", -errno); in can_drop_memory()
[all …]
Dhelper.c54 ret = -errno; in run_helper()
56 errno); in run_helper()
76 ret = -errno; in run_helper()
78 errno); in run_helper()
94 n = -errno; in run_helper()
126 err = -errno; in run_helper_thread()
128 "errno = %d\n", errno); in run_helper_thread()
134 err = -errno; in run_helper_thread()
136 "errno = %d\n", errno); in run_helper_thread()
156 "errno = %d\n", pid, errno); in helper_wait()
[all …]
Daio.c95 return (io_submit(ctx, 1, &iocbp) > 0) ? 0 : -errno; in do_aio()
111 if (errno == EINTR) in aio_thread()
114 "errno = %d\n", errno); in aio_thread()
124 "fd = %d, err = %d\n", reply_fd, errno); in aio_thread()
140 return -errno; in do_not_aio()
159 return -errno; in do_not_aio()
183 errno); in not_aio_thread()
197 "fd = %d, err = %d\n", req.aio->reply_fd, errno); in not_aio_thread()
248 err = -errno; in init_aio_26()
250 "err = %d\n", errno); in init_aio_26()
[all …]
Dtty.c24 info->err = errno; in grantpt_cb()
34 err = -errno; in get_pty()
36 "err = %d\n", errno); in get_pty()
51 err = -errno; in get_pty()
53 "errno = %d\n", errno); in get_pty()
Dsigio.c63 if (errno == EINTR) in write_sigio_thread()
66 "%d, errno = %d\n", n, errno); in write_sigio_thread()
79 "err = %d\n", errno); in write_sigio_thread()
96 errno); in write_sigio_thread()
139 errno); in update_thread()
146 errno); in update_thread()
408 info->err = -errno; in openpty_cb()
417 return -errno; in async_pty()
421 return -errno; in async_pty()
424 return -errno; in async_pty()
[all …]
Dexecvp.c90 switch (errno) { in execvp_noalloc()
118 return -errno; in execvp_noalloc()
130 return -errno; in execvp_noalloc()
144 errno = -ret; in main()
Dmem.c30 printf("%s\n", strerror(errno)); in check_tmpfs()
104 strerror(errno)); in make_tempfile()
118 strerror(errno)); in make_tempfile()
179 errno = -err; in create_mem_file()
194 err = errno; in check_tmpexec()
Dregisters.c20 return -errno; in save_registers()
30 return -errno; in restore_registers()
45 return -errno; in init_registers()
Dsignal.c33 int save_errno = errno; in sig_handler_common()
48 errno = save_errno; in sig_handler_common()
126 panic("enabling signal stack failed, errno = %d\n", errno); in set_sigstack()
207 panic("sigaction failed - errno = %d\n", errno); in set_handler()
212 panic("sigprocmask failed - errno = %d\n", errno); in set_handler()
222 return -errno; in change_sig()
Dutil.c22 panic("protecting stack failed, errno = %d", errno); in stack_protections()
32 return -errno; in raw()
38 return -errno; in raw()
Dirq.c30 err = -errno; in os_waiting_for_events()
31 if (errno != EINTR) in os_waiting_for_events()
33 " poll returned %d, errno = %d\n", n, errno); in os_waiting_for_events()
Dtime.c85 return -errno; in os_timer_set_interval()
110 return -errno; in os_timer_remain()
Dmain.c78 sig, errno); in install_fatal_handler()
216 errno = ENOMEM; in __wrap_malloc()
/linux-4.4.14/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-4.4.14/drivers/media/usb/as102/
Das102_fw.c105 int total_read_bytes = 0, errno = 0; in as102_firmware_upload() local
129 errno = bus_adap->ops->upload_fw_pkt(bus_adap, in as102_firmware_upload()
132 if (errno < 0) in as102_firmware_upload()
144 errno = bus_adap->ops->upload_fw_pkt(bus_adap, in as102_firmware_upload()
149 if (errno < 0) in as102_firmware_upload()
155 return (errno == 0) ? total_read_bytes : errno; in as102_firmware_upload()
160 int errno = -EFAULT; in as102_fw_upload() local
178 errno = -ENOMEM; in as102_fw_upload()
183 errno = request_firmware(&firmware, fw1, &dev->dev); in as102_fw_upload()
184 if (errno < 0) { in as102_fw_upload()
[all …]
/linux-4.4.14/tools/testing/selftests/timers/
Drtctest.c56 exit(errno); in main()
64 if (errno == EINVAL) { in main()
70 exit(errno); in main()
81 exit(errno); in main()
100 exit(errno); in main()
106 exit(errno); in main()
117 exit(errno); in main()
125 exit(errno); in main()
147 if (errno == ENOTTY) { in main()
153 exit(errno); in main()
[all …]
Dmqueue-lat.c96 if (ret < 0 && errno != ETIMEDOUT) { in mqueue_lat_test()
/linux-4.4.14/samples/bpf/
Dtest_maps.c28 printf("failed to create hashmap '%s'\n", strerror(errno)); in test_hashmap_sanity()
41 errno == EEXIST); in test_hashmap_sanity()
43 assert(bpf_update_elem(map_fd, &key, &value, -1) == -1 && errno == EINVAL); in test_hashmap_sanity()
50 assert(bpf_lookup_elem(map_fd, &key, &value) == -1 && errno == ENOENT); in test_hashmap_sanity()
55 errno == ENOENT); in test_hashmap_sanity()
65 errno == E2BIG); in test_hashmap_sanity()
68 assert(bpf_delete_elem(map_fd, &key) == -1 && errno == ENOENT); in test_hashmap_sanity()
76 errno == ENOENT); in test_hashmap_sanity()
83 assert(bpf_delete_elem(map_fd, &key) == -1 && errno == ENOENT); in test_hashmap_sanity()
88 errno == ENOENT); in test_hashmap_sanity()
[all …]
Dfds_example.c73 printf("bpf: map fd:%d (%s)\n", fd, strerror(errno)); in bpf_do_map()
77 printf("bpf: pin ret:(%d,%s)\n", ret, strerror(errno)); in bpf_do_map()
81 printf("bpf: get fd:%d (%s)\n", fd, strerror(errno)); in bpf_do_map()
88 ret, strerror(errno)); in bpf_do_map()
93 ret, strerror(errno)); in bpf_do_map()
106 printf("bpf: prog fd:%d (%s)\n", fd, strerror(errno)); in bpf_do_prog()
110 printf("bpf: pin ret:(%d,%s)\n", ret, strerror(errno)); in bpf_do_prog()
114 printf("bpf: get fd:%d (%s)\n", fd, strerror(errno)); in bpf_do_prog()
123 ret, strerror(errno)); in bpf_do_prog()
Dsock_example.c39 printf("failed to create map '%s'\n", strerror(errno)); in test_sock()
61 printf("failed to load prog '%s'\n", strerror(errno)); in test_sock()
69 printf("setsockopt %s\n", strerror(errno)); in test_sock()
Dbpf_load.c73 printf("bpf_prog_load() err=%d\n%s", errno, bpf_log_buf); in load_and_attach()
111 event, strerror(errno)); in load_and_attach()
129 printf("read from '%s' failed '%s'\n", event, strerror(errno)); in load_and_attach()
141 printf("event %d fd %d err %s\n", id, efd, strerror(errno)); in load_and_attach()
/linux-4.4.14/tools/testing/selftests/ipc/
Dmsgque.c41 return -errno; in restore_queue()
48 return -errno; in restore_queue()
54 return -errno; in restore_queue()
68 ret = -errno; in restore_queue()
76 printf("Failed to destroy queue: %d\n", -errno); in restore_queue()
89 if (errno == ENOMSG) in check_and_destroy_queue()
92 ret = -errno; in check_and_destroy_queue()
123 printf("Failed to destroy queue: %d\n", -errno); in check_and_destroy_queue()
124 return -errno; in check_and_destroy_queue()
138 if (errno == -EINVAL) in dump_queue()
[all …]
/linux-4.4.14/fs/nfs/
Dmount_clnt.c83 int errno; member
85 { .status = MNT_OK, .errno = 0, },
86 { .status = MNT_EPERM, .errno = -EPERM, },
87 { .status = MNT_ENOENT, .errno = -ENOENT, },
88 { .status = MNT_EACCES, .errno = -EACCES, },
89 { .status = MNT_EINVAL, .errno = -EINVAL, },
110 int errno; member
112 { .status = MNT3_OK, .errno = 0, },
113 { .status = MNT3ERR_PERM, .errno = -EPERM, },
114 { .status = MNT3ERR_NOENT, .errno = -ENOENT, },
[all …]
/linux-4.4.14/tools/testing/selftests/mount/
Dunprivileged-remount-test.c66 strerror(errno)); in vmaybe_write_file()
74 if ((errno == ENOENT) && enoent_ok) in vmaybe_write_file()
77 filename, strerror(errno)); in vmaybe_write_file()
85 filename, strerror(errno)); in vmaybe_write_file()
90 filename, strerror(errno)); in vmaybe_write_file()
123 path, strerror(errno)); in read_mnt_flags()
163 strerror(errno)); in create_and_enter_userns()
172 strerror(errno)); in create_and_enter_userns()
176 strerror(errno)); in create_and_enter_userns()
189 strerror(errno)); in test_unpriv_remount()
[all …]
/linux-4.4.14/arch/um/os-Linux/skas/
Dprocess.c36 return -errno; in ptrace_dump_regs()
69 "errno = %d\n", errno); in wait_stub_done()
83 "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()
204 "errno = %d\n", STUB_CODE, errno); in userspace_tramp()
216 STUB_DATA, errno); in userspace_tramp()
234 "handler failed - errno = %d\n", errno); in userspace_tramp()
[all …]
/linux-4.4.14/tools/hv/
Dhv_vss_daemon.c57 if ((cmd == FIFREEZE && errno == EBUSY) || in vss_do_freeze()
58 (cmd == FITHAW && errno == EINVAL)) { in vss_do_freeze()
118 save_errno = errno; in vss_operate()
182 errno, strerror(errno)); in main()
193 errno, strerror(errno)); in main()
205 syslog(LOG_ERR, "poll failed; error:%d %s", errno, strerror(errno)); in main()
206 if (errno == EINVAL) { in main()
230 errno, strerror(errno)); in main()
259 syslog(LOG_ERR, "write failed; error: %d %s", errno, in main()
260 strerror(errno)); in main()
Dhv_fcopy_daemon.c89 syslog(LOG_INFO, "Open Failed: %s", strerror(errno)); in hv_start_fcopy()
163 syslog(LOG_ERR, "daemon() failed; error: %s", strerror(errno)); in main()
174 errno, strerror(errno)); in main()
182 syslog(LOG_ERR, "Registration failed: %s", strerror(errno)); in main()
193 syslog(LOG_ERR, "pread failed: %s", strerror(errno)); in main()
232 syslog(LOG_ERR, "pwrite failed: %s", strerror(errno)); in main()
Dhv_kvp_daemon.c128 errno, strerror(errno)); in kvp_acquire_lock()
140 errno, strerror(errno)); in kvp_release_lock()
158 errno, strerror(errno)); in kvp_update_file()
189 errno, strerror(errno)); in kvp_update_mem_state()
242 errno, strerror(errno)); in kvp_file_init()
1283 errno, strerror(errno)); in kvp_set_ip_info()
1354 cmd, errno, strerror(errno)); in kvp_set_ip_info()
1440 errno, strerror(errno)); in main()
1466 errno, strerror(errno)); in main()
1478 syslog(LOG_ERR, "poll failed; error: %d %s", errno, strerror(errno)); in main()
[all …]
/linux-4.4.14/arch/um/drivers/
Dumcast_user.c81 err = -errno; in umcast_open()
83 "errno = %d\n", errno); in umcast_open()
88 err = -errno; in umcast_open()
90 "errno = %d\n", errno); in umcast_open()
98 err = -errno; in umcast_open()
100 "failed, error = %d\n", errno); in umcast_open()
107 err = -errno; in umcast_open()
109 "failed, error = %d\n", errno); in umcast_open()
116 err = -errno; in umcast_open()
118 "errno = %d\n", errno); in umcast_open()
[all …]
Dchan_user.c29 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()
178 errno); in winch_thread()
184 "fd %d err = %d\n", pty_fd, errno); in winch_thread()
190 "fd %d err = %d\n", pty_fd, errno); in winch_thread()
[all …]
Dnet_user.c66 ret = -errno; in read_output()
77 ret = -errno; in read_output()
101 if ((n < 0) && (errno == EAGAIN)) in net_read()
114 if (errno == EAGAIN) in net_recvfrom()
116 return -errno; in net_recvfrom()
129 if ((n < 0) && (errno == EAGAIN)) in net_write()
142 if (errno == EAGAIN) in net_send()
144 return -errno; in net_send()
158 if (errno == EAGAIN) in net_sendto()
160 return -errno; in net_sendto()
Ddaemon_user.c57 err = -errno; in connect_to_switch()
65 err = -errno; in connect_to_switch()
73 err = -errno; in connect_to_switch()
79 err = -errno; in connect_to_switch()
100 "failed, err = %d\n", -errno); in connect_to_switch()
108 "err = %d\n", -errno); in connect_to_switch()
Dvde_user.c24 err = -errno; in vde_user_init()
26 "errno = %d\n", errno); in vde_user_init()
106 if (errno == EAGAIN) in vde_user_read()
108 return -errno; in vde_user_read()
Dport_user.c118 return -errno; in port_listen_fd()
122 err = -errno; in port_listen_fd()
130 err = -errno; in port_listen_fd()
135 err = -errno; in port_listen_fd()
176 return -errno; in port_connection()
Dmconsole_user.c160 return -errno; in mconsole_reply_len()
189 err = -errno; in mconsole_notify()
191 "errno = %d\n", errno); in mconsole_notify()
214 err = -errno; in mconsole_notify()
216 "errno = %d\n", errno); in mconsole_notify()
Dxterm.c114 err = -errno; in xterm_open()
116 errno); in xterm_open()
121 err = -errno; in xterm_open()
123 errno); in xterm_open()
Dubd_user.c45 err = -errno; in start_io_thread()
46 printk("start_io_thread - clone failed : errno = %d\n", errno); in start_io_thread()
Dharddog_user.c87 "err = %d\n", errno); in start_watchdog()
120 n, errno); in ping_watchdog()
Dcow_user.c152 errno); in absolutize()
161 "errno = %d\n", from, errno); in absolutize()
167 "errno = %d\n", from, errno); in absolutize()
190 "errno = %d\n", save_cwd, errno); in absolutize()
Dpty.c49 err = -errno; in pts_open()
89 if ((stat(line, &buf) < 0) && (errno == ENOENT)) in getmaster()
Dnull.c28 return (fd < 0) ? -errno : fd; in null_open()
Dtty.c54 return -errno; in tty_open()
Dslirp_user.c96 "(%d)\n", pri->pid, errno); in slirp_close()
/linux-4.4.14/fs/ncpfs/
Dfile.c174 int errno; in ncp_file_write_iter() local
179 errno = generic_write_checks(iocb, from); in ncp_file_write_iter()
180 if (errno <= 0) in ncp_file_write_iter()
181 return errno; in ncp_file_write_iter()
183 errno = ncp_make_open(inode, O_WRONLY); in ncp_file_write_iter()
184 if (errno) { in ncp_file_write_iter()
185 ncp_dbg(1, "open failed, error=%d\n", errno); in ncp_file_write_iter()
186 return errno; in ncp_file_write_iter()
190 errno = file_update_time(file); in ncp_file_write_iter()
191 if (errno) in ncp_file_write_iter()
[all …]
/linux-4.4.14/include/trace/events/
Dsignal.h15 __entry->errno = 0; \
18 __entry->errno = 0; \
21 __entry->errno = info->si_errno; \
59 __field( int, errno )
77 __entry->sig, __entry->errno, __entry->code,
104 __field( int, errno )
118 __entry->sig, __entry->errno, __entry->code,
Dkvm.h20 TP_PROTO(__u32 reason, int errno),
21 TP_ARGS(reason, errno),
25 __field( int, errno )
30 __entry->errno = errno;
34 __entry->errno < 0 ?
35 (__entry->errno == -EINTR ? "restart" : "error") :
37 __entry->errno < 0 ? -__entry->errno : __entry->reason)
/linux-4.4.14/arch/x86/um/os-Linux/
Dregisters.c18 return -errno; in save_fp_registers()
25 return -errno; in restore_fp_registers()
34 return -errno; in save_fpx_registers()
41 return -errno; in restore_fpx_registers()
70 if (errno != EIO) in arch_init_registers()
72 errno); in arch_init_registers()
Dtls.c36 if (errno == EINVAL) in check_host_supports_tls()
38 else if (errno == ENOSYS) in check_host_supports_tls()
54 ret = -errno; in os_set_thread_area()
65 ret = -errno; in os_get_thread_area()
/linux-4.4.14/tools/testing/selftests/futex/functional/
Dfutex_requeue_pi_mismatched_ops.c50 child_ret = -errno; in blocking_child()
51 error("futex_wait\n", errno); in blocking_child()
83 error("pthread_create\n", errno); in main()
98 if (errno == EINVAL) { in main()
108 error("futex_wake\n", errno); in main()
115 error("futex_cmp_requeue_pi\n", errno); in main()
Dfutex_wait_private_mapped_file.c61 if (ret && errno != EWOULDBLOCK && errno != ETIMEDOUT) { in thr_futex_wait()
62 error("futex error.\n", errno); in thr_futex_wait()
67 if (ret && errno == ETIMEDOUT) in thr_futex_wait()
70 info("futex_wait: ret = %d, errno = %d\n", ret, errno); in thr_futex_wait()
Dfutex_wait_uninitialized_heap.c62 if (res != 0 && errno != EWOULDBLOCK) { in wait_thread()
63 error("futex failure\n", errno); in wait_thread()
97 error("mmap\n", errno); in main()
107 error("pthread_create\n", errno); in main()
Dfutex_requeue_pi.c130 args->ret < 0 ? strerror(errno) : ""); in waiterfn()
133 if (args->timeout && errno == ETIMEDOUT) in waiterfn()
137 error("futex_wait_requeue_pi\n", errno); in waiterfn()
172 error("FUTEX_CMP_REQUEUE_PI failed\n", errno); in broadcast_wakerfn()
224 args->ret = -errno; in signal_wakerfn()
233 error("FUTEX_CMP_REQUEUE_PI failed\n", errno); in signal_wakerfn()
312 errno); in unit_test()
325 error("Creating waiting thread failed\n", errno); in unit_test()
333 error("Creating waker thread failed\n", errno); in unit_test()
Dfutex_wait_wouldblock.c71 if (!res || errno != EWOULDBLOCK) { in main()
73 res ? errno : res, res ? strerror(errno) : ""); in main()
Dfutex_requeue_pi_signal_restart.c107 if (!requeued.val || errno != EWOULDBLOCK) { in waiterfn()
109 res, strerror(errno)); in waiterfn()
153 error("sigaction\n", errno); in main()
195 error("FUTEX_CMP_REQUEUE_PI failed\n", errno); in main()
Dfutex_wait_timeout.c79 if (!res || errno != ETIMEDOUT) { in main()
80 fail("futex_wait returned %d\n", ret < 0 ? errno : ret); in main()
/linux-4.4.14/Documentation/mic/mpssd/
Dsysfs.c43 filename, strerror(errno)); in readsysfs()
50 filename, strerror(errno)); in readsysfs()
84 ret = errno; in setsysfs()
86 filename, strerror(errno)); in setsysfs()
92 ret = errno; in setsysfs()
94 filename, strerror(errno)); in setsysfs()
Dmpssd.c177 mic->name, strerror(errno)); in tap_configure()
183 mic->name, strerror(errno)); in tap_configure()
190 mic->name, strerror(errno)); in tap_configure()
209 mic->name, strerror(errno)); in tap_configure()
215 mic->name, strerror(errno)); in tap_configure()
222 mic->name, strerror(errno)); in tap_configure()
239 mpsslog("Could not open /dev/net/tun %s\n", strerror(errno)); in tun_alloc()
252 mic->name, __func__, __LINE__, strerror(errno)); in tun_alloc()
262 mic->name, __func__, __LINE__, strerror(errno)); in tun_alloc()
410 strerror(errno), ret); in mic_virtio_copy()
[all …]
/linux-4.4.14/tools/testing/selftests/efivarfs/
Dopen-unlink.c25 error = errno; in set_immutable()
27 errno = error; in set_immutable()
37 error = errno; in set_immutable()
39 errno = error; in set_immutable()
56 error = errno; in get_immutable()
58 errno = error; in get_immutable()
/linux-4.4.14/tools/perf/util/
Dcloexec.c14 errno = ENOSYS; in sched_getcpu()
46 if (fd < 0 && pid == -1 && errno == EACCES) { in perf_flag_probe()
52 err = errno; in perf_flag_probe()
66 if (fd < 0 && pid == -1 && errno == EACCES) { in perf_flag_probe()
72 err = errno; in perf_flag_probe()
Dvdso.c167 return -errno; in vdso__do_copy_compat()
171 return -errno; in vdso__do_copy_compat()
184 return -errno; in vdso__copy_compat()
189 return -errno; in vdso__copy_compat()
200 return -errno; in vdso__create_compat_file()
205 return -errno; in vdso__create_compat_file()
Dlzma.c40 input, strerror(errno)); in lzma_decompress_to_file()
62 pr_err("lzma: read error: %s\n", strerror(errno)); in lzma_decompress_to_file()
76 pr_err("lzma: write error: %s\n", strerror(errno)); in lzma_decompress_to_file()
Dpmu.l13 errno = 0; in value()
15 if (errno) in value()
Drun-command.c104 cmd->dir, strerror_r(errno, sbuf, sizeof(sbuf))); in start_command()
124 int err = errno; in start_command()
165 if (errno == EINTR) in wait_or_whine()
168 strerror_r(errno, sbuf, sizeof(sbuf))); in wait_or_whine()
Dprobe-file.c88 ret = -errno; in open_probe_events()
225 ret = -errno; in probe_file__add_event()
227 strerror_r(errno, sbuf, sizeof(sbuf))); in probe_file__add_event()
258 ret = -errno; in __del_trace_probe_event()
Drecord.c31 if (pid == -1 && errno == EACCES) { in perf_do_probe_api()
45 if (errno == EINVAL) in perf_do_probe_api()
272 if (pid == -1 && errno == EACCES) { in perf_evlist__can_select_event()
Dutil.c158 if (ret < 0 && errno == EINTR) in copyfile_offset()
258 if (ret < 0 && errno == EINTR) in ion()
550 return -errno; in filename__read_str()
567 pr_warning("read failed %d: %s\n", errno, in filename__read_str()
568 strerror_r(errno, sbuf, sizeof(sbuf))); in filename__read_str()
571 err = -errno; in filename__read_str()
Ddata.c57 int err = errno; in open_file_read()
102 strerror_r(errno, sbuf, sizeof(sbuf))); in open_file_write()
Dllvm-utils.c105 strerror(errno)); in read_from_pipe()
139 strerror(errno)); in read_from_pipe()
365 " \tUse 128 instead.\n", strerror(errno)); in llvm__compile_bpf()
Dtrace-event-info.c71 return -errno; in record_file()
186 return -errno; in copy_event_system()
288 err = -errno; in record_event_files()
Ddso.c334 strerror_r(errno, sbuf, sizeof(sbuf))); in do_open()
335 if (!dso__data_open_cnt || errno != EMFILE) in do_open()
666 ret = -errno; in dso_cache__read()
767 ret = -errno; in data_file_size()
773 ret = -errno; in data_file_size()
775 strerror_r(errno, sbuf, sizeof(sbuf))); in data_file_size()
Dbuild-id.c337 ret = -errno; in build_id_cache__list_build_ids()
388 } else if (link(realname, filename) && errno != EEXIST && in build_id_cache__add_s()
519 if (mkdir(buildid_dir, 0755) != 0 && errno != EEXIST) in perf_session__cache_build_ids()
/linux-4.4.14/tools/testing/selftests/exec/
Dexecveat.c33 errno = ENOSYS; in execveat_()
38 #define check_execveat_fail(fd, path, flags, errno) \ argument
39 _check_execveat_fail(fd, path, flags, errno, #errno)
45 errno = 0; in _check_execveat_fail()
54 if (errno != expected_errno) { in _check_execveat_fail()
57 errno, strerror(errno)); in _check_execveat_fail()
87 rc, errno, strerror(errno)); in check_execveat_invoked_rc()
188 strlen(longpath), errno, strerror(errno)); in check_execveat_pathmax()
238 errno = 0; in run_tests()
240 if (errno == ENOSYS) { in run_tests()
/linux-4.4.14/arch/arm/vdso/
Dvdsomunge.c153 fail("Cannot open %s: %s\n", infile, strerror(errno)); in main()
156 fail("Failed stat for %s: %s\n", infile, strerror(errno)); in main()
160 fail("Failed to map %s: %s\n", infile, strerror(errno)); in main()
194 fail("Cannot open %s: %s\n", outfile, strerror(errno)); in main()
197 fail("Cannot truncate %s: %s\n", outfile, strerror(errno)); in main()
202 fail("Failed to map %s: %s\n", outfile, strerror(errno)); in main()
217 fail("Failed to sync %s: %s\n", outfile, strerror(errno)); in main()
/linux-4.4.14/arch/cris/include/arch-v32/arch/
Dunistd.h23 errno = -__a; \
41 errno = -__a; \
60 errno = -__a; \
80 errno = -__a; \
102 errno = -__a; \
126 errno = -__a; \
151 errno = -__a; \
/linux-4.4.14/arch/cris/include/arch-v10/arch/
Dunistd.h22 errno = -__a; \
39 errno = -__a; \
57 errno = -__a; \
76 errno = -__a; \
97 errno = -__a; \
120 errno = -__a; \
144 errno = -__a; \
/linux-4.4.14/net/9p/
Derror.c223 int errno; in p9_errstr2errno() local
227 errno = 0; in p9_errstr2errno()
232 errno = c->val; in p9_errstr2errno()
237 if (errno == 0) { in p9_errstr2errno()
242 errno = ESERVERFAULT; in p9_errstr2errno()
245 return -errno; in p9_errstr2errno()
/linux-4.4.14/Documentation/pti/
Dpti_intel_mid.txt50 #include <errno.h>
69 printf("Error on open(). errno: %d\n",errno);
70 return errno;
75 printf("Error on ioctl(). errno: %d\n", errno);
76 return errno;
81 printf("Error on ioctl(). errno: %d\n", errno);
82 return errno;
/linux-4.4.14/arch/um/os-Linux/drivers/
Dethertap_user.c49 errno); in etap_change()
125 err = -errno; in etap_tramp()
149 err = -errno; in etap_open()
151 "err = %d\n", errno); in etap_open()
157 err = -errno; in etap_open()
159 "err = %d\n", errno); in etap_open()
205 "errno = %d\n", errno); in etap_close()
209 "failed, errno = %d\n", errno); in etap_close()
Dtuntap_user.c104 err = -errno; in tuntap_open_tramp()
106 "errno = %d\n", errno); in tuntap_open_tramp()
151 err = -errno; in tuntap_open()
153 errno); in tuntap_open()
161 err = -errno; in tuntap_open()
163 "errno = %d\n", errno); in tuntap_open()
/linux-4.4.14/Documentation/networking/timestamping/
Dtimestamping.c87 printf("%s: %s\n", error, strerror(errno)); in bail()
146 printf("%s: %s\n", "send", strerror(errno)); in sendpacket()
262 printf(" %s: %s\n", "SIOCGSTAMP", strerror(errno)); in printpacket()
270 printf(" %s: %s\n", "SIOCGSTAMPNS", strerror(errno)); in printpacket()
306 strerror(errno)); in recvpacket()
388 if ((errno == EINVAL || errno == ENOTSUP) && in main()
448 printf("%s: %s\n", "setsockopt IP_PKTINFO", strerror(errno)); in main()
453 printf("%s: %s\n", "getsockopt SO_TIMESTAMP", strerror(errno)); in main()
459 strerror(errno)); in main()
465 strerror(errno)); in main()
[all …]
Dtxtimestamp.c176 error(1, errno, "poll"); in __poll()
257 if (ret == -1 && errno != EAGAIN) in recv_errmsg()
258 error(1, errno, "recvmsg"); in recv_errmsg()
294 error(1, errno, "socket"); in do_test()
303 error(1, errno, "connect ipv4"); in do_test()
306 error(1, errno, "connect ipv6"); in do_test()
314 error(1, errno, "setsockopt pktinfo ipv6"); in do_test()
318 error(1, errno, "setsockopt pktinfo ipv4"); in do_test()
371 error(1, errno, "send"); in do_test()
382 error(1, errno, "close"); in do_test()
[all …]
/linux-4.4.14/tools/testing/selftests/net/
Dsocket.c50 errno == EAFNOSUPPORT) in run_tests()
54 errno == -s->expect) in run_tests()
58 strerror_r(errno, err_string2, ERR_STRING_SZ); in run_tests()
71 strerror_r(errno, err_string1, ERR_STRING_SZ); in run_tests()
/linux-4.4.14/tools/testing/selftests/powerpc/syscalls/
Dipc_unmuxed.c27 errno = 0; \
29 printf("\treturned %d, errno %d\n", rc, errno); \
30 return errno == ENOSYS; \
/linux-4.4.14/tools/perf/
Dbuiltin-buildid-cache.c247 if (errno == ENOENT) in dso__missing_buildid_cache()
360 if (errno == EEXIST) { in cmd_buildid_cache()
366 pos->s, strerror_r(errno, sbuf, sizeof(sbuf))); in cmd_buildid_cache()
378 if (errno == ENOENT) { in cmd_buildid_cache()
384 pos->s, strerror_r(errno, sbuf, sizeof(sbuf))); in cmd_buildid_cache()
396 if (errno == ENOENT) { in cmd_buildid_cache()
402 pos->s, strerror_r(errno, sbuf, sizeof(sbuf))); in cmd_buildid_cache()
417 if (errno == ENOENT) { in cmd_buildid_cache()
423 pos->s, strerror_r(errno, sbuf, sizeof(sbuf))); in cmd_buildid_cache()
Dperf.c295 int envchanged = 0, ret = 0, saved_errno = errno; in handle_alias()
351 errno = saved_errno; in handle_alias()
405 strerror_r(errno, sbuf, sizeof(sbuf))); in run_builtin()
414 strerror_r(errno, sbuf, sizeof(sbuf))); in run_builtin()
478 errno = ENOENT; /* as if we called execvp */ in execv_dashed_external()
610 if (errno != ENOENT) in main()
627 cmd, strerror_r(errno, sbuf, sizeof(sbuf))); in main()
Dbuiltin-record.c286 if (perf_evsel__fallback(pos, errno, msg, sizeof(msg))) { in record__open()
292 rc = -errno; in record__open()
294 errno, msg, sizeof(msg)); in record__open()
302 pos->filter, perf_evsel__name(pos), errno, in record__open()
303 strerror_r(errno, msg, sizeof(msg))); in record__open()
311 if (errno == EPERM) { in record__open()
318 rc = -errno; in record__open()
320 pr_err("failed to mmap with %d (%s)\n", errno, in record__open()
321 strerror_r(errno, msg, sizeof(msg))); in record__open()
322 rc = -errno; in record__open()
[all …]
Dbuiltin-help.c117 strerror_r(errno, sbuf, sizeof(sbuf))); in exec_woman_emacs()
148 strerror_r(errno, sbuf, sizeof(sbuf))); in exec_man_konqueror()
160 strerror_r(errno, sbuf, sizeof(sbuf))); in exec_man_man()
171 strerror_r(errno, sbuf, sizeof(sbuf))); in exec_man_cmd()
Dbuiltin-stat.c311 if (errno == EINVAL || errno == ENOSYS || in __run_perf_stat()
312 errno == ENOENT || errno == EOPNOTSUPP || in __run_perf_stat()
313 errno == ENXIO) { in __run_perf_stat()
325 errno, msg, sizeof(msg)); in __run_perf_stat()
342 counter->filter, perf_evsel__name(counter), errno, in __run_perf_stat()
343 strerror_r(errno, msg, sizeof(msg))); in __run_perf_stat()
1293 return -errno; in cmd_stat()
Dbuiltin-top.c637 if (errno == EINTR) in display_thread()
903 if (perf_evsel__fallback(counter, errno, msg, sizeof(msg))) { in perf_top__start_counters()
910 errno, msg, sizeof(msg)); in perf_top__start_counters()
918 errno, strerror_r(errno, msg, sizeof(msg))); in perf_top__start_counters()
1270 int saved_errno = errno; in cmd_top()
/linux-4.4.14/tools/perf/tests/
Dsw-clock.c71 err = -errno; in __test__sw_clock_freq()
73 strerror_r(errno, sbuf, sizeof(sbuf)), in __test__sw_clock_freq()
80 pr_debug("failed to mmap event: %d (%s)\n", errno, in __test__sw_clock_freq()
81 strerror_r(errno, sbuf, sizeof(sbuf))); in __test__sw_clock_freq()
Dmmap-basic.c52 cpus->map[0], strerror_r(errno, sbuf, sizeof(sbuf))); in test__basic_mmap()
82 strerror_r(errno, sbuf, sizeof(sbuf))); in test__basic_mmap()
91 pr_debug("failed to mmap events: %d (%s)\n", errno, in test__basic_mmap()
92 strerror_r(errno, sbuf, sizeof(sbuf))); in test__basic_mmap()
Dperf-record.c15 if (errno == EINVAL && nrcpus < (1024 << 8)) { in sched__get_first_possible_cpu()
105 strerror_r(errno, sbuf, sizeof(sbuf))); in test__PERF_RECORD()
116 strerror_r(errno, sbuf, sizeof(sbuf))); in test__PERF_RECORD()
127 strerror_r(errno, sbuf, sizeof(sbuf))); in test__PERF_RECORD()
139 strerror_r(errno, sbuf, sizeof(sbuf))); in test__PERF_RECORD()
Dopenat-syscall-all-cpus.c36 tracing_path__strerror_open_tp(errno, errbuf, sizeof(errbuf), "syscalls", "sys_enter_openat"); in test__openat_syscall_event_on_all_cpus()
44 strerror_r(errno, sbuf, sizeof(sbuf))); in test__openat_syscall_event_on_all_cpus()
65 strerror_r(errno, sbuf, sizeof(sbuf))); in test__openat_syscall_event_on_all_cpus()
Dopenat-syscall.c24 tracing_path__strerror_open_tp(errno, errbuf, sizeof(errbuf), "syscalls", "sys_enter_openat"); in test__openat_syscall_event()
32 strerror_r(errno, sbuf, sizeof(sbuf))); in test__openat_syscall_event()
Dtask-exit.c99 pr_debug("failed to mmap events: %d (%s)\n", errno, in test__task_exit()
100 strerror_r(errno, sbuf, sizeof(sbuf))); in test__task_exit()
Dopenat-syscall-tp-fields.c54 strerror_r(errno, sbuf, sizeof(sbuf))); in test__syscall_openat_tp_fields()
61 strerror_r(errno, sbuf, sizeof(sbuf))); in test__syscall_openat_tp_fields()
Dattr.c133 int errno_saved = errno; in test_attr__open()
138 errno = errno_saved; in test_attr__open()
Dbpf.c100 strerror_r(errno, sbuf, sizeof(sbuf))); in do_test()
107 strerror_r(errno, sbuf, sizeof(sbuf))); in do_test()
/linux-4.4.14/arch/mips/vdso/
Dgenvdso.c122 path, strerror(errno)); in map_vdso()
128 path, strerror(errno)); in map_vdso()
136 path, strerror(errno)); in map_vdso()
239 dbg_vdso_path, strerror(errno)); in main()
243 vdso_path, strerror(errno)); in main()
250 out_path, strerror(errno)); in main()
/linux-4.4.14/tools/usb/usbip/src/
Dusbipd.c379 ai_buf, errno, strerror(errno)); in listen_all_addrinfo()
399 ai_buf, errno, strerror(errno)); in listen_all_addrinfo()
407 ai_buf, errno, strerror(errno)); in listen_all_addrinfo()
468 pid_file, errno, strerror(errno)); in write_pid_file()
502 err("daemonizing failed: %s", strerror(errno)); in do_standalone_mode()
560 dbg("%s", strerror(errno)); in do_standalone_mode()
Dutils.c47 dbg("failed to write match_busid: %s", strerror(errno)); in modify_match_busid()
/linux-4.4.14/tools/testing/selftests/x86/
Dldt_gdt.c122 errno = -ret; in install_valid_mode()
129 } else if (errno == ENOSYS) { in install_valid_mode()
135 errno); in install_valid_mode()
155 errno = -ret; in install_invalid()
158 } else if (errno == ENOSYS) { in install_invalid()
163 errno); in install_invalid()
176 errno = -ret; in safe_modify_ldt()
185 } else if (errno == ENOSYS) { in fail_install()
188 printf("[OK]\tmodify_ldt failure %d\n", errno); in fail_install()
472 if (errno != ENOSYS) in do_multicpu_tests()
Dentry_from_vm86.c119 if (ret == -1 && (errno == ENOSYS || errno == EPERM)) { in do_test()
121 errno == ENOSYS ? "not supported" : "not allowed"); in do_test()
/linux-4.4.14/tools/testing/selftests/membarrier/
Dmembarrier_test.c49 strerror(errno)); in test_membarrier_success()
80 printf("failed. %s.\n", strerror(errno)); in test_membarrier_query()
81 switch (errno) { in test_membarrier_query()
/linux-4.4.14/scripts/dtc/
Dfstree.c35 die("Couldn't opendir() \"%s\": %s\n", dirname, strerror(errno)); in read_fstree()
49 die("stat(%s): %s\n", tmpname, strerror(errno)); in read_fstree()
59 tmpname, strerror(errno)); in read_fstree()
Ddtc-lexer.l153 errno = 0;
158 if (errno == ERANGE)
164 assert(errno == 0);
Dutil.c212 return errno; in utilfdt_read_err_len()
226 ret = errno; in utilfdt_read_err_len()
279 return errno; in utilfdt_write_err()
288 ret = -errno; in utilfdt_write_err()
Ddtc.c212 strerror(errno)); in main()
245 outname, strerror(errno)); in main()
Dsrcpos.c129 strerror(errno)); in srcfile_relative_open()
172 strerror(errno)); in srcfile_pop()
/linux-4.4.14/tools/usb/
Dtestusb.c323 if (status < 0 && errno == EOPNOTSUPP) in handle_testdev()
331 int err = errno; in handle_testdev()
333 if (strerror_r (errno, buf, sizeof buf)) { in handle_testdev()
335 errno = err; in handle_testdev()
338 dev->name, i, errno, buf); in handle_testdev()
368 errno = 0; in parse_num()
370 if (errno || *end || val > UINT_MAX) in parse_num()
Dffs-test.c76 int _errno = errno; in _msg()
355 if (errno != ENODEV) in cleanup_thread()
401 } else if (errno == EINTR || errno == EAGAIN) { in start_thread_helper()
520 errno = EILSEQ; in empty_out_buf()
592 if (ret < 0 && errno == EINVAL) { in ep0_init()
/linux-4.4.14/arch/x86/um/
Dptrace_user.c12 return -errno; in ptrace_getregs()
19 return -errno; in ptrace_setregs()
/linux-4.4.14/net/ipv4/
Dicmp.c123 .errno = ENETUNREACH, /* ICMP_NET_UNREACH */
127 .errno = EHOSTUNREACH, /* ICMP_HOST_UNREACH */
131 .errno = ENOPROTOOPT /* ICMP_PROT_UNREACH */,
135 .errno = ECONNREFUSED, /* ICMP_PORT_UNREACH */
139 .errno = EMSGSIZE, /* ICMP_FRAG_NEEDED */
143 .errno = EOPNOTSUPP, /* ICMP_SR_FAILED */
147 .errno = ENETUNREACH, /* ICMP_NET_UNKNOWN */
151 .errno = EHOSTDOWN, /* ICMP_HOST_UNKNOWN */
155 .errno = ENONET, /* ICMP_HOST_ISOLATED */
159 .errno = ENETUNREACH, /* ICMP_NET_ANO */
[all …]
/linux-4.4.14/drivers/scsi/
Dch.c127 int errno; member
135 .errno = EBADSLT, /* Invalid element address */
140 .errno = EBADE, /* Import or export element accessed */
145 .errno = EXFULL, /* Medium destination element full */
150 .errno = EBADE, /* Medium source element empty */
155 .errno = EBADRQC, /* Invalid command operation code */
165 int i,errno = 0; in ch_find_errno() local
170 for (i = 0; ch_err[i].errno != 0; i++) { in ch_find_errno()
174 errno = -ch_err[i].errno; in ch_find_errno()
179 if (errno == 0) in ch_find_errno()
[all …]
/linux-4.4.14/arch/tile/kernel/
Dptrace.c281 long errno; in do_syscall_trace_exit() local
296 errno = (long) regs->regs[0]; in do_syscall_trace_exit()
297 if (errno < 0 && errno > -4096) in do_syscall_trace_exit()
298 regs->regs[1] = -errno; in do_syscall_trace_exit()
/linux-4.4.14/Documentation/connector/
Ducon.c87 strerror(errno), errno); in netlink_send()
145 argv[1], strerror(errno)); in main()
212 if (errno != EINTR) { in main()
/linux-4.4.14/arch/mips/boot/compressed/
Dcalc_vmlinuz_load_addr.c34 errno = 0; in main()
36 if (errno != 0) in main()
/linux-4.4.14/tools/testing/selftests/ptrace/
Dpeeksiginfo.c73 if (ret != -1 || errno != EINVAL) { in check_error_paths()
76 ret, errno, EINVAL); in check_error_paths()
91 if (ret != -1 && errno != EFAULT) { in check_error_paths()
94 ret, errno, EFAULT); in check_error_paths()
/linux-4.4.14/scripts/
D.docproc.cmd64 /usr/include/errno.h \
65 /usr/include/i386-linux-gnu/bits/errno.h \
66 /usr/include/linux/errno.h \
67 /usr/include/i386-linux-gnu/asm/errno.h \
68 /usr/include/asm-generic/errno.h \
69 /usr/include/asm-generic/errno-base.h \
Dpnmtologo.c135 die("Cannot open file %s: %s\n", filename, strerror(errno)); in read_image()
165 die("%s\n", strerror(errno)); in read_image()
169 die("%s\n", strerror(errno)); in read_image()
234 die("Cannot create file %s: %s\n", outputname, strerror(errno)); in write_header()
/linux-4.4.14/scripts/kconfig/
D.conf.o.cmd65 /usr/include/errno.h \
66 /usr/include/i386-linux-gnu/bits/errno.h \
67 /usr/include/linux/errno.h \
68 /usr/include/i386-linux-gnu/asm/errno.h \
69 /usr/include/asm-generic/errno.h \
70 /usr/include/asm-generic/errno-base.h \
D.zconf.tab.o.cmd66 /usr/include/errno.h \
67 /usr/include/i386-linux-gnu/bits/errno.h \
68 /usr/include/linux/errno.h \
69 /usr/include/i386-linux-gnu/asm/errno.h \
70 /usr/include/asm-generic/errno.h \
71 /usr/include/asm-generic/errno-base.h \
/linux-4.4.14/tools/testing/selftests/seccomp/
Dseccomp_bpf.c150 EXPECT_EQ(EFAULT, errno) { in TEST()
170 errno = 0; in TEST()
176 EXPECT_EQ(EACCES, errno); in TEST()
280 EXPECT_EQ(EINVAL, errno); in TEST()
342 EXPECT_EQ(EINVAL, errno); in TEST()
541 EXPECT_EQ(EINVAL, errno); in TEST()
568 EXPECT_EQ(E2BIG, errno); in TEST()
622 EXPECT_EQ(4095, errno); in TEST()
1036 errno = 0; in tracer()
1037 while (ret == -1 && errno != EINVAL) in tracer()
[all …]
/linux-4.4.14/tools/cgroup/
Dcgroup_event_listener.c63 if (errno == EINTR) in main()
70 if ((ret == -1) && (errno == ENOENT)) { in main()
/linux-4.4.14/tools/lib/traceevent/
Dparse-utils.c30 if (errno) in __vwarning()
32 errno = 0; in __vwarning()
/linux-4.4.14/drivers/usb/misc/sisusbvga/
Dsisusb.c2524 int errno = 0; in sisusb_read() local
2559 errno = -EIO; in sisusb_read()
2561 errno = -EFAULT; in sisusb_read()
2571 errno = -EIO; in sisusb_read()
2573 errno = -EFAULT; in sisusb_read()
2583 errno = -EIO; in sisusb_read()
2585 errno = -EFAULT; in sisusb_read()
2592 errno = -EIO; in sisusb_read()
2606 errno = sisusb_read_mem_bulk(sisusb, address, in sisusb_read()
2610 errno = bytes_read; in sisusb_read()
[all …]
/linux-4.4.14/arch/x86/tools/
Drelocs_common.c68 die("Cannot open %s: %s\n", fname, strerror(errno)); in main()
71 die("Cannot read %s: %s", fname, strerror(errno)); in main()
Drelocs.c337 strerror(errno)); in read_ehdr()
401 ehdr.e_shoff, strerror(errno)); in read_shdrs()
407 i, ehdr.e_shnum, strerror(errno)); in read_shdrs()
439 sec->shdr.sh_offset, strerror(errno)); in read_strtabs()
444 strerror(errno)); in read_strtabs()
464 sec->shdr.sh_offset, strerror(errno)); in read_symtabs()
469 strerror(errno)); in read_symtabs()
497 sec->shdr.sh_offset, strerror(errno)); in read_relocs()
502 strerror(errno)); in read_relocs()
/linux-4.4.14/net/irda/irnet/
Dirnet_irda.c182 self->errno = 0; in irnet_ias_to_tsap()
191 self->errno = -EADDRNOTAVAIL; in irnet_ias_to_tsap()
197 self->errno = -EHOSTUNREACH; in irnet_ias_to_tsap()
217 self->errno = -EADDRNOTAVAIL; in irnet_ias_to_tsap()
220 self->errno = -EADDRNOTAVAIL; in irnet_ias_to_tsap()
231 if(!(self->errno)) in irnet_ias_to_tsap()
235 self->errno = -EHOSTUNREACH; in irnet_ias_to_tsap()
269 self->errno = -EHOSTUNREACH; in irnet_find_lsap_sel()
1508 if(self->errno) in irnet_getvalue_confirm()
1511 DERROR(IRDA_OCB_ERROR, "IAS connect failed ! (0x%X)\n", self->errno); in irnet_getvalue_confirm()
[all …]
/linux-4.4.14/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/
DUtil.py9 import errno, os
84 return errno.errorcode[abs(nr)]
/linux-4.4.14/arch/xtensa/platforms/iss/include/platform/
Dsimcall.h60 static int errno; variable
73 : "=a" (ret), "=a" (errno), "+r"(a1), "+r"(b1) in __simc()
/linux-4.4.14/tools/testing/selftests/kcmp/
Dkcmp_test.c78 ret, strerror(errno)); in main()
90 ret, strerror(errno)); in main()
/linux-4.4.14/tools/testing/selftests/capabilities/
Dtest_execve.c48 if ((errno == ENOENT) && enoent_ok) in vmaybe_write_file()
273 …if (prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_RAISE, CAP_NET_BIND_SERVICE, 0, 0, 0) != -1 || errno != E… in do_tests()
274 if (errno == EINVAL) in do_tests()
287 if (prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_RAISE, CAP_NET_RAW, 0, 0, 0) != -1 || errno != EPERM) { in do_tests()
/linux-4.4.14/arch/ia64/kernel/
Dsignal.c420 long errno = scr->pt.r8; in ia64_do_signal() local
449 switch (errno) { in ia64_do_signal()
479 if (errno == ERESTARTNOHAND || errno == ERESTARTSYS || errno == ERESTARTNOINTR in ia64_do_signal()
480 || errno == ERESTART_RESTARTBLOCK) in ia64_do_signal()
488 if (errno == ERESTART_RESTARTBLOCK) in ia64_do_signal()
/linux-4.4.14/include/uapi/asm-generic/
DKbuild4 header-y += errno-base.h
5 header-y += errno.h
DKbuild.asm14 header-y += errno.h
/linux-4.4.14/arch/mips/boot/
Delf2ecoff.c85 count ? strerror(errno) : in copy()
137 fprintf(stderr, "%s: fseek: %s\n", name, strerror(errno)); in saveRead()
149 count ? strerror(errno) : "End of file reached"); in saveRead()
300 argv[1], strerror(errno)); in main()
309 i ? strerror(errno) : "End of file reached"); in main()
507 strerror(errno)); in main()
589 strerror(errno)); in main()
613 strerror(errno)); in main()
/linux-4.4.14/drivers/video/fbdev/
Dsticore.h142 s32 errno; /* error number on failure */ member
168 s32 errno; /* error number on failure */ member
277 s32 errno; /* error number on failure */ member
305 s32 errno; /* error number on failure */ member
/linux-4.4.14/tools/testing/selftests/vm/
Dmlock2-tests.c27 errno = ENOSYS; in mlock2_()
364 if (errno == ENOSYS) { in test_mlock_lock()
473 if (errno == ENOSYS) { in test_mlock_onfault()
486 if (errno == ENOSYS) { in test_mlock_onfault()
518 if (errno == ENOSYS) { in test_lock_onfault_of_present()
644 if (errno == ENOSYS) { in test_vma_management()
/linux-4.4.14/Documentation/laptops/
Ddslm.c37 if (errno != EIO || args[0] != 0 || args[1] != 0) { in check_powermode()
148 printf("Can't open %s, because: %s\n", disk, strerror(errno)); in main()
/linux-4.4.14/kernel/
Dsys.c1143 int errno = 0; in SYSCALL_DEFINE1() local
1147 errno = -EFAULT; in SYSCALL_DEFINE1()
1150 if (!errno && override_release(name->release, sizeof(name->release))) in SYSCALL_DEFINE1()
1151 errno = -EFAULT; in SYSCALL_DEFINE1()
1152 if (!errno && override_architecture(name)) in SYSCALL_DEFINE1()
1153 errno = -EFAULT; in SYSCALL_DEFINE1()
1154 return errno; in SYSCALL_DEFINE1()
1217 int errno; in SYSCALL_DEFINE2() local
1226 errno = -EFAULT; in SYSCALL_DEFINE2()
1232 errno = 0; in SYSCALL_DEFINE2()
[all …]
/linux-4.4.14/samples/uhid/
Duhid-example.c165 return -errno; in uhid_write()
236 return -errno; in event()
311 return -errno; in keyboard()
/linux-4.4.14/fs/btrfs/
Dsuper.c72 const char *btrfs_decode_error(int errno) in btrfs_decode_error() argument
76 switch (errno) { in btrfs_decode_error()
139 unsigned int line, int errno, const char *fmt, ...) in __btrfs_std_error() argument
150 if (errno == -EROFS && (sb->s_flags & MS_RDONLY)) in __btrfs_std_error()
154 errstr = btrfs_decode_error(errno); in __btrfs_std_error()
165 sb->s_id, function, line, errno, errstr, &vaf); in __btrfs_std_error()
169 sb->s_id, function, line, errno, errstr); in __btrfs_std_error()
237 unsigned int line, int errno) in __btrfs_abort_transaction() argument
239 trans->aborted = errno; in __btrfs_abort_transaction()
245 errstr = btrfs_decode_error(errno); in __btrfs_abort_transaction()
[all …]
/linux-4.4.14/tools/perf/arch/x86/tests/
Drdpmc.c113 strerror_r(errno, sbuf, sizeof(sbuf))); in __test__rdpmc()
120 strerror_r(errno, sbuf, sizeof(sbuf))); in __test__rdpmc()
Dintel-cqm.c106 pr_debug("failed to mmap %d\n", errno); in test__intel_cqm_count_nmi_context()
/linux-4.4.14/fs/gfs2/
Dtrace_gfs2.h436 sector_t lblock, int create, int errno),
438 TP_ARGS(ip, bh, lblock, create, errno),
448 __field( int, errno )
459 __entry->errno = errno;
469 __entry->errno)
/linux-4.4.14/Documentation/serial/
Dserial-rs485.txt55 /* Error handling. See errno. */
83 /* Error handling. See errno. */
90 /* Error handling. See errno. */
/linux-4.4.14/scripts/selinux/genheaders/
Dgenheaders.c57 argv[1], strerror(errno)); in main()
117 argv[2], strerror(errno)); in main()
/linux-4.4.14/Documentation/filesystems/
Dspufs.txt78 sets errno to EINVAL. If there is no data available in the mail
79 box, the return value is set to -1 and errno becomes EAGAIN.
92 sets errno to EINVAL. If there is no data available in the mail
94 return value is set to -1 and errno becomes EAGAIN.
112 four is requested, write returns -1 and sets errno to EINVAL. If there
114 opened with O_NONBLOCK, the return value is set to -1 and errno becomes
139 sets errno to EINVAL. Otherwise, a four byte value is placed in
199 sets errno to EINVAL. Otherwise, a four byte value is placed in
205 sets errno to EINVAL. Otherwise, a four byte value is copied
221 sets errno to EINVAL. Otherwise, a four byte value is placed in
[all …]
/linux-4.4.14/scripts/mod/
Dsumversion.c353 p, strerror(errno)); in parse_source_files()
381 line, strerror(errno)); in parse_source_files()
463 filename, strerror(errno)); in write_version()
469 filename, offset, strerror(errno)); in write_version()
475 filename, strerror(errno)); in write_version()
/linux-4.4.14/arch/m68k/68000/
Dm68EZ328.c48 static int errno; variable
Dm68VZ328.c143 static int errno; variable
/linux-4.4.14/Documentation/usb/
Dgadget_hid.txt130 #include <errno.h>
265 errno = 0;
267 if (errno != 0) {
317 errno = 0;
319 if (errno != 0) {
400 if (retval == -1 && errno == EINTR)
/linux-4.4.14/Documentation/x86/
Dmtrr.txt171 #include <errno.h>
176 #define ERRSTRING strerror (errno)
196 if (errno == ENOENT)
217 if (errno == EINVAL) exit (0);
268 #include <errno.h>
273 #define ERRSTRING strerror (errno)
309 if (errno == ENOENT)
/linux-4.4.14/net/irda/
Daf_irda.c380 self->errno = result; /* We really need it later */ in irda_getvalue_confirm()
390 self->errno = 0; in irda_getvalue_confirm()
441 self->errno = -ETIME; in irda_discovery_timeout()
545 self->errno = -EHOSTUNREACH; in irda_find_lsap_sel()
557 if (self->errno) in irda_find_lsap_sel()
560 if((self->errno == IAS_CLASS_UNKNOWN) || in irda_find_lsap_sel()
561 (self->errno == IAS_ATTRIB_UNKNOWN)) in irda_find_lsap_sel()
2438 self->errno = -EHOSTUNREACH; in irda_getsockopt()
2458 if (self->errno) in irda_getsockopt()
2462 if((self->errno == IAS_CLASS_UNKNOWN) || in irda_getsockopt()
[all …]
/linux-4.4.14/tools/perf/bench/
Dfutex-hash.c81 (!ret || errno != EAGAIN || errno != EWOULDBLOCK)) in workerfn()
/linux-4.4.14/include/net/
Dicmp.h27 int errno; member
/linux-4.4.14/include/net/irda/
Daf_irda.h73 int errno; /* status of the IAS query */ member
/linux-4.4.14/arch/xtensa/platforms/iss/
Dsimdisk.c94 pr_err("SIMDISK: IO error %d\n", errno); in simdisk_transfer()
170 pr_err("SIMDISK: Can't open %s: %d\n", filename, errno); in simdisk_attach()
197 dev->filename, errno); in simdisk_detach()
/linux-4.4.14/Documentation/misc-devices/mei/
Dmei-amt-version.c164 rc, strerror(errno)); in mei_recv_msg()
187 rc = -errno; in mei_send_msg()
189 written, strerror(errno)); in mei_send_msg()
/linux-4.4.14/firmware/
Dihex2fw.c103 strerror(errno)); in main()
122 strerror(errno)); in main()
/linux-4.4.14/include/linux/
Dsuspend.h69 int errno[REC_FAILED_NUM]; member
87 suspend_stats.errno[suspend_stats.last_failed_errno] = err; in dpm_save_failed_errno()
/linux-4.4.14/tools/power/cpupower/utils/
Dcpufreq-set.c130 errno = 0; in string_to_frequency()
132 if (errno) in string_to_frequency()
/linux-4.4.14/Documentation/accounting/
Dgetdelays.c151 } else if (errno != EAGAIN) in send_cmd()
385 fprintf(stderr, "Error getting family id, errno %d\n", errno); in main()
449 errno); in main()
/linux-4.4.14/net/sunrpc/auth_gss/
Dauth_gss.c382 rpc_wake_up_status(&gss_msg->rpc_waitqueue, gss_msg->msg.errno); in __gss_unhash_msg()
403 switch (gss_msg->msg.errno) { in gss_handle_downcall_result()
415 rpc_wake_up_status(&gss_msg->rpc_waitqueue, gss_msg->msg.errno); in gss_handle_downcall_result()
429 task->tk_status = gss_msg->msg.errno; in gss_upcall_callback()
588 else if (gss_msg->ctx == NULL && gss_msg->msg.errno >= 0) { in gss_refresh_upcall()
596 err = gss_msg->msg.errno; in gss_refresh_upcall()
647 if (gss_msg->ctx != NULL || gss_msg->msg.errno < 0) { in gss_create_upcall()
660 err = gss_msg->msg.errno; in gss_create_upcall()
731 gss_msg->msg.errno = err; in gss_pipe_downcall()
738 gss_msg->msg.errno = -EAGAIN; in gss_pipe_downcall()
[all …]
/linux-4.4.14/sound/soc/intel/common/
Dsst-ipc.h44 int errno; member
/linux-4.4.14/tools/usb/ffs-aio-example/simple/device_app/
Daio_simple.c253 strerror(errno)); in main()
287 if (errno == EINTR) in main()
/linux-4.4.14/arch/h8300/include/uapi/asm/
DKbuild6 header-y += errno.h
/linux-4.4.14/drivers/staging/lustre/lustre/ptlrpc/
DMakefile19 ptlrpc-$(CONFIG_LUSTRE_TRANSLATE_ERRNOS) += errno.o
/linux-4.4.14/drivers/media/platform/exynos4-is/
DMakefile7 exynos-fimc-is-objs += fimc-is-param.o fimc-is-errno.o fimc-is-i2c.o
/linux-4.4.14/arch/parisc/include/uapi/asm/
DKbuild8 header-y += errno.h
/linux-4.4.14/tools/power/cpupower/utils/helpers/
Dsysfs.c73 return -errno; in sysfs_is_cpu_online()
224 if (endp == linebuf || errno == ERANGE) in sysfs_idlestate_get_one_value()
Dtopology.c34 if (endp == linebuf || errno == ERANGE) in sysfs_topology_read_file()
/linux-4.4.14/drivers/firmware/
Dpsci.c110 static int psci_to_linux_errno(int errno) in psci_to_linux_errno() argument
112 switch (errno) { in psci_to_linux_errno()
Darm_scpi.c256 static inline int scpi_to_linux_errno(int errno) in scpi_to_linux_errno() argument
258 if (errno >= SCPI_SUCCESS && errno < SCPI_ERR_MAX) in scpi_to_linux_errno()
259 return scpi_linux_errmap[errno]; in scpi_to_linux_errno()
/linux-4.4.14/arch/mn10300/include/uapi/asm/
DKbuild7 header-y += errno.h
/linux-4.4.14/arch/score/include/uapi/asm/
DKbuild7 header-y += errno.h
/linux-4.4.14/arch/m32r/include/uapi/asm/
DKbuild7 header-y += errno.h
/linux-4.4.14/arch/xtensa/include/asm/
DKbuild7 generic-y += errno.h
/linux-4.4.14/fs/nfsd/
Dexport.h100 __be32 nfserrno(int errno);
/linux-4.4.14/arch/m68k/68360/
Dconfig.c122 static int errno; variable
/linux-4.4.14/arch/microblaze/include/uapi/asm/
DKbuild10 header-y += errno.h
/linux-4.4.14/arch/avr32/include/uapi/asm/
DKbuild25 generic-y += errno.h
/linux-4.4.14/arch/frv/include/uapi/asm/
DKbuild7 header-y += errno.h
/linux-4.4.14/arch/um/include/shared/
Dos.h16 #define CATCH_EINTR(expr) while ((errno = 0, ((expr) < 0)) && (errno == EINTR))
/linux-4.4.14/arch/arm/include/asm/
DKbuild7 generic-y += errno.h
/linux-4.4.14/tools/testing/selftests/powerpc/
Dharness.c53 if (errno != EINTR) { in run_test()
/linux-4.4.14/arch/mips/include/uapi/asm/
DKbuild12 header-y += errno.h
/linux-4.4.14/arch/tile/include/asm/
DKbuild10 generic-y += errno.h
/linux-4.4.14/tools/laptop/freefall/
Dfreefall.c153 if ((ret == -1) && (errno == EINTR)) { in main()
/linux-4.4.14/arch/m68k/include/asm/
DKbuild7 generic-y += errno.h
/linux-4.4.14/arch/sh/include/asm/
DKbuild8 generic-y += errno.h
/linux-4.4.14/sound/soc/intel/haswell/
Dsst-haswell-ipc.c592 msg->errno = -EBADMSG; in hsw_process_reply()
596 msg->errno = -ENOMEM; in hsw_process_reply()
600 msg->errno = -EBUSY; in hsw_process_reply()
604 msg->errno = -EINVAL; in hsw_process_reply()
608 msg->errno = -EINVAL; in hsw_process_reply()
612 msg->errno = -EINVAL; in hsw_process_reply()
616 msg->errno = -EINVAL; in hsw_process_reply()
620 msg->errno = -EINVAL; in hsw_process_reply()
624 msg->errno = -EINVAL; in hsw_process_reply()
628 msg->errno = -EINVAL; in hsw_process_reply()
/linux-4.4.14/tools/perf/ui/tui/
Dsetup.c74 if (errno == EINTR) in ui__getch()

12