Home
last modified time | relevance | path

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

12

/linux-4.1.27/arch/um/os-Linux/
Dfile.c43 return -errno; in os_stat_fd()
57 return -errno; in os_stat_file()
75 return -errno; in os_access()
87 return -errno; in os_ioctl_generic()
96 return -errno; in os_get_ifname()
107 return -errno; in os_set_slip()
111 return -errno; in os_set_slip()
122 return -errno; in os_mode_fd()
158 if (err && (errno != EACCES)) in os_file_mode()
159 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.c36 "errno = %d\n", proc_stat, errno); in os_process_pc()
42 "err = %d\n", proc_stat, errno); in os_process_pc()
71 errno); in os_process_parent()
80 errno); in os_process_parent()
144 return -errno; in os_map_memory()
154 return -errno; in os_protect_memory()
165 return -errno; in os_unmap_memory()
179 err = -errno; in os_drop_memory()
200 "err = %d\n", -errno); in can_drop_memory()
205 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.c31 int save_errno = errno; in sig_handler_common()
46 errno = save_errno; in sig_handler_common()
120 panic("enabling signal stack failed, errno = %d\n", errno); in set_sigstack()
202 panic("sigaction failed - errno = %d\n", errno); in set_handler()
207 panic("sigprocmask failed - errno = %d\n", errno); in set_handler()
217 return -errno; in change_sig()
Dtime.c22 return -errno; in set_interval()
37 return -errno; in timer_one_shot()
65 "errno = %d\n", errno); in disable_timer()
161 return -errno; in after_sleep_interval()
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()
Dmain.c77 sig, errno); in install_fatal_handler()
215 errno = ENOMEM; in __wrap_malloc()
/linux-4.1.27/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.1.27/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.1.27/tools/testing/selftests/timers/
Drtctest.c56 exit(errno); in main()
64 if (errno == ENOTTY) { 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.1.27/drivers/net/ethernet/intel/i40e/
Di40e_nvm.c466 u8 *bytes, int *errno);
469 u8 *bytes, int *errno);
472 u8 *bytes, int *errno);
475 int *errno);
478 int *errno);
481 u8 *bytes, int *errno);
484 u8 *bytes, int *errno);
521 u8 *bytes, int *errno) in i40e_nvmupd_command() argument
526 *errno = 0; in i40e_nvmupd_command()
530 status = i40e_nvmupd_state_init(hw, cmd, bytes, errno); in i40e_nvmupd_command()
[all …]
/linux-4.1.27/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 …]
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.c69 event, strerror(errno)); in load_and_attach()
77 printf("bpf_prog_load() err=%d\n%s", errno, bpf_log_buf); in load_and_attach()
99 printf("read from '%s' failed '%s'\n", event, strerror(errno)); in load_and_attach()
111 printf("event %d fd %d err %s\n", id, efd, strerror(errno)); in load_and_attach()
Dlibbpf.c122 printf("bind to %s: %s\n", name, strerror(errno)); in open_raw_sock()
/linux-4.1.27/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.1.27/fs/nfs/
Dmount_clnt.c85 int errno; member
87 { .status = MNT_OK, .errno = 0, },
88 { .status = MNT_EPERM, .errno = -EPERM, },
89 { .status = MNT_ENOENT, .errno = -ENOENT, },
90 { .status = MNT_EACCES, .errno = -EACCES, },
91 { .status = MNT_EINVAL, .errno = -EINVAL, },
112 int errno; member
114 { .status = MNT3_OK, .errno = 0, },
115 { .status = MNT3ERR_PERM, .errno = -EPERM, },
116 { .status = MNT3ERR_NOENT, .errno = -ENOENT, },
[all …]
/linux-4.1.27/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.1.27/arch/um/os-Linux/skas/
Dprocess.c35 return -errno; in ptrace_dump_regs()
68 "errno = %d\n", errno); in wait_stub_done()
82 "pid = %d, n = %d, errno = %d, status = 0x%x\n", pid, n, errno, in wait_stub_done()
103 "errno = %d\n", pid, errno); in get_skas_faultinfo()
149 "failed, errno = %d\n", errno); in handle_trap()
156 "syscall failed, errno = %d\n", errno); in handle_trap()
169 errno, status); in handle_trap()
205 "errno = %d\n", STUB_CODE, errno); in userspace_tramp()
217 STUB_DATA, errno); in userspace_tramp()
235 "handler failed - errno = %d\n", errno); in userspace_tramp()
[all …]
/linux-4.1.27/tools/hv/
Dhv_vss_daemon.c68 if ((cmd == FIFREEZE && errno == EBUSY) || in vss_do_freeze()
69 (cmd == FITHAW && errno == EINVAL)) { in vss_do_freeze()
129 save_errno = errno; in vss_operate()
230 errno, strerror(errno)); in main()
241 syslog(LOG_ERR, "bind failed; error:%d %s", errno, strerror(errno)); in main()
247 syslog(LOG_ERR, "setsockopt failed; error:%d %s", errno, strerror(errno)); in main()
265 syslog(LOG_ERR, "netlink_send failed; error:%d %s", errno, strerror(errno)); in main()
279 syslog(LOG_ERR, "poll failed; error:%d %s", errno, strerror(errno)); in main()
280 if (errno == EINVAL) { in main()
293 addr.nl_pid, errno, strerror(errno)); in main()
[all …]
Dhv_fcopy_daemon.c89 syslog(LOG_INFO, "Open Failed: %s", strerror(errno)); in hv_start_fcopy()
161 syslog(LOG_ERR, "daemon() failed; error: %s", strerror(errno)); in main()
172 errno, strerror(errno)); in main()
180 syslog(LOG_ERR, "Registration failed: %s", strerror(errno)); in main()
191 syslog(LOG_ERR, "pread failed: %s", strerror(errno)); in main()
217 syslog(LOG_ERR, "pwrite failed: %s", strerror(errno)); in main()
Dhv_kvp_daemon.c130 errno, strerror(errno)); in kvp_acquire_lock()
142 errno, strerror(errno)); in kvp_release_lock()
160 errno, strerror(errno)); in kvp_update_file()
191 errno, strerror(errno)); in kvp_update_mem_state()
244 errno, strerror(errno)); in kvp_file_init()
1285 errno, strerror(errno)); in kvp_set_ip_info()
1356 cmd, errno, strerror(errno)); in kvp_set_ip_info()
1494 syslog(LOG_ERR, "netlink socket creation failed; error: %d %s", errno, in main()
1495 strerror(errno)); in main()
1506 syslog(LOG_ERR, "bind failed; error: %d %s", errno, strerror(errno)); in main()
[all …]
/linux-4.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.c178 mic->name, strerror(errno)); in tap_configure()
184 mic->name, strerror(errno)); in tap_configure()
191 mic->name, strerror(errno)); in tap_configure()
210 mic->name, strerror(errno)); in tap_configure()
216 mic->name, strerror(errno)); in tap_configure()
223 mic->name, strerror(errno)); in tap_configure()
240 mpsslog("Could not open /dev/net/tun %s\n", strerror(errno)); in tun_alloc()
253 mic->name, __func__, __LINE__, strerror(errno)); in tun_alloc()
264 mic->name, __func__, __LINE__, strerror(errno)); in tun_alloc()
413 strerror(errno), ret); in mic_virtio_copy()
[all …]
/linux-4.1.27/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.1.27/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()
Drecord.c31 if (pid == -1 && errno == EACCES) { in perf_do_probe_api()
45 if (errno == EINVAL) in perf_do_probe_api()
229 if (pid == -1 && errno == EACCES) { in perf_evlist__can_select_event()
Dutil.c180 if (ret < 0 && errno == EINTR) in ion()
499 return -errno; in filename__read_str()
516 pr_warning("read failed %d: %s\n", errno, in filename__read_str()
517 strerror_r(errno, sbuf, sizeof(sbuf))); in filename__read_str()
520 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()
Dtrace-event-info.c71 return -errno; in record_file()
186 return -errno; in copy_event_system()
288 err = -errno; in record_event_files()
Dparse-events.l20 errno = 0; in __value()
22 if (errno) in __value()
Dbuild-id.c322 ret = -errno; in build_id_cache__list_build_ids()
373 } else if (link(realname, filename) && errno != EEXIST && in build_id_cache__add_s()
506 if (mkdir(buildid_dir, 0755) != 0 && errno != EEXIST) in perf_session__cache_build_ids()
Dprobe-event.c426 return -errno; in get_text_start_address()
684 strerror_r(errno, sbuf, sizeof(sbuf))); in __show_one_line()
764 strerror_r(errno, sbuf, sizeof(sbuf))); in __show_line_range()
765 return -errno; in __show_line_range()
974 errno = 0; in parse_line_num()
976 if (errno || *ptr == start) { in parse_line_num()
1962 ret = -errno; in open_probe_events()
2046 return -errno; in kprobe_blacklist__load()
2256 ret = -errno; in write_probe_trace_event()
2258 strerror_r(errno, sbuf, sizeof(sbuf))); in write_probe_trace_event()
[all …]
Dprobe-finder.c800 strerror_r(errno, sbuf, sizeof(sbuf))); in find_lazy_match_lines()
801 return -errno; in find_lazy_match_lines()
817 count = -errno; in find_lazy_match_lines()
1658 return -errno; in get_real_path()
1675 return -errno; in get_real_path()
1678 switch (errno) { in get_real_path()
1692 return -errno; in get_real_path()
/linux-4.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/tools/iio/
Diio_utils.c114 ret = -errno; in iioutils_get_type()
133 ret = -errno; in iioutils_get_type()
145 ret = -errno; in iioutils_get_type()
208 ret = -errno; in iioutils_get_param_float()
222 ret = -errno; in iioutils_get_param_float()
288 ret = -errno; in build_channel_array()
302 ret = -errno; in build_channel_array()
336 ret = -errno; in build_channel_array()
502 ret = -errno; in _write_sysfs_int()
511 ret = -errno; in _write_sysfs_int()
[all …]
Diio_event_monitor.c273 ret = -errno; in main()
283 ret = -errno; in main()
290 if (errno == EAGAIN) { in main()
295 ret = -errno; in main()
Dgeneric_buffer.c300 ret = -errno; in main()
324 if (errno == -EAGAIN) { in main()
Dlsiio.c52 return -errno; in dump_channels()
/linux-4.1.27/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.1.27/tools/perf/
Dbuiltin-buildid-cache.c257 if (errno == ENOENT) in dso__missing_buildid_cache()
370 if (errno == EEXIST) { in cmd_buildid_cache()
376 pos->s, strerror_r(errno, sbuf, sizeof(sbuf))); in cmd_buildid_cache()
388 if (errno == ENOENT) { in cmd_buildid_cache()
394 pos->s, strerror_r(errno, sbuf, sizeof(sbuf))); in cmd_buildid_cache()
406 if (errno == ENOENT) { in cmd_buildid_cache()
412 pos->s, strerror_r(errno, sbuf, sizeof(sbuf))); in cmd_buildid_cache()
427 if (errno == ENOENT) { in cmd_buildid_cache()
433 pos->s, strerror_r(errno, sbuf, sizeof(sbuf))); in cmd_buildid_cache()
Dbuiltin-record.c150 if (perf_evsel__fallback(pos, errno, msg, sizeof(msg))) { in record__open()
156 rc = -errno; in record__open()
158 errno, msg, sizeof(msg)); in record__open()
166 pos->filter, perf_evsel__name(pos), errno, in record__open()
167 strerror_r(errno, msg, sizeof(msg))); in record__open()
173 if (errno == EPERM) { in record__open()
179 rc = -errno; in record__open()
181 pr_err("failed to mmap with %d (%s)\n", errno, in record__open()
182 strerror_r(errno, msg, sizeof(msg))); in record__open()
183 rc = -errno; in record__open()
[all …]
Dperf.c279 int envchanged = 0, ret = 0, saved_errno = errno; in handle_alias()
335 errno = saved_errno; in handle_alias()
387 strerror_r(errno, sbuf, sizeof(sbuf))); in run_builtin()
396 strerror_r(errno, sbuf, sizeof(sbuf))); in run_builtin()
460 errno = ENOENT; /* as if we called execvp */ in execv_dashed_external()
590 if (errno != ENOENT) in main()
607 cmd, strerror_r(errno, sbuf, sizeof(sbuf))); in main()
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.c661 if (errno == EINVAL || errno == ENOSYS || in __run_perf_stat()
662 errno == ENOENT || errno == EOPNOTSUPP || in __run_perf_stat()
663 errno == ENXIO) { in __run_perf_stat()
672 errno, msg, sizeof(msg)); in __run_perf_stat()
689 counter->filter, perf_evsel__name(counter), errno, in __run_perf_stat()
690 strerror_r(errno, msg, sizeof(msg))); in __run_perf_stat()
1822 return -errno; in cmd_stat()
Dbuiltin-top.c628 if (errno == EINTR) in display_thread()
888 if (perf_evsel__fallback(counter, errno, msg, sizeof(msg))) { in perf_top__start_counters()
895 errno, msg, sizeof(msg)); in perf_top__start_counters()
903 errno, strerror_r(errno, msg, sizeof(msg))); in perf_top__start_counters()
1211 int saved_errno = errno; in cmd_top()
/linux-4.1.27/tools/perf/tests/
Dsw-clock.c64 err = -errno; in __test__sw_clock_freq()
66 strerror_r(errno, sbuf, sizeof(sbuf)), in __test__sw_clock_freq()
73 pr_debug("failed to mmap event: %d (%s)\n", errno, in __test__sw_clock_freq()
74 strerror_r(errno, sbuf, sizeof(sbuf))); in __test__sw_clock_freq()
Dmmap-basic.c53 cpus->map[0], strerror_r(errno, sbuf, sizeof(sbuf))); in test__basic_mmap()
83 strerror_r(errno, sbuf, sizeof(sbuf))); in test__basic_mmap()
92 pr_debug("failed to mmap events: %d (%s)\n", errno, in test__basic_mmap()
93 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()
Dtask-exit.c92 pr_debug("failed to mmap events: %d (%s)\n", errno, in test__task_exit()
93 strerror_r(errno, sbuf, sizeof(sbuf))); in test__task_exit()
Dopen-syscall-tp-fields.c53 strerror_r(errno, sbuf, sizeof(sbuf))); in test__syscall_open_tp_fields()
60 strerror_r(errno, sbuf, sizeof(sbuf))); in test__syscall_open_tp_fields()
Dopen-syscall-all-cpus.c44 strerror_r(errno, sbuf, sizeof(sbuf))); in test__open_syscall_event_on_all_cpus()
65 strerror_r(errno, sbuf, sizeof(sbuf))); in test__open_syscall_event_on_all_cpus()
Dattr.c133 int errno_saved = errno; in test_attr__open()
138 errno = errno_saved; in test_attr__open()
Drdpmc.c114 strerror_r(errno, sbuf, sizeof(sbuf))); in __test__rdpmc()
121 strerror_r(errno, sbuf, sizeof(sbuf))); in __test__rdpmc()
Dopen-syscall.c33 strerror_r(errno, sbuf, sizeof(sbuf))); in test__open_syscall_event()
/linux-4.1.27/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()
Dusbip_bind.c63 strerror(errno)); in bind_usbip()
/linux-4.1.27/scripts/dtc/
Dfstree.c35 die("Couldn't opendir() \"%s\": %s\n", dirname, strerror(errno)); in read_fstree()
49 die("stat(%s): %s\n", tmpnam, strerror(errno)); in read_fstree()
59 tmpnam, strerror(errno)); in read_fstree()
Dutil.c212 return errno; in utilfdt_read_err_len()
230 ret = errno; in utilfdt_read_err_len()
283 return errno; in utilfdt_write_err()
292 ret = -errno; in utilfdt_write_err()
Ddtc-parser.y236 strerror(errno));
493 errno = 0; in eval_literal()
500 if ((errno == ERANGE) in eval_literal()
503 else if (errno != 0) in eval_literal()
Ddtc.c210 strerror(errno)); in main()
243 outname, strerror(errno)); in main()
Dsrcpos.c129 strerror(errno)); in srcfile_relative_open()
172 strerror(errno)); in srcfile_pop()
/linux-4.1.27/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.1.27/arch/x86/um/
Dptrace_user.c12 return -errno; in ptrace_getregs()
19 return -errno; in ptrace_setregs()
/linux-4.1.27/net/ipv4/
Dicmp.c122 .errno = ENETUNREACH, /* ICMP_NET_UNREACH */
126 .errno = EHOSTUNREACH, /* ICMP_HOST_UNREACH */
130 .errno = ENOPROTOOPT /* ICMP_PROT_UNREACH */,
134 .errno = ECONNREFUSED, /* ICMP_PORT_UNREACH */
138 .errno = EMSGSIZE, /* ICMP_FRAG_NEEDED */
142 .errno = EOPNOTSUPP, /* ICMP_SR_FAILED */
146 .errno = ENETUNREACH, /* ICMP_NET_UNKNOWN */
150 .errno = EHOSTDOWN, /* ICMP_HOST_UNKNOWN */
154 .errno = ENONET, /* ICMP_HOST_ISOLATED */
158 .errno = ENETUNREACH, /* ICMP_NET_ANO */
[all …]
/linux-4.1.27/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.1.27/arch/tile/kernel/
Dptrace.c278 long errno; in do_syscall_trace_exit() local
293 errno = (long) regs->regs[0]; in do_syscall_trace_exit()
294 if (errno < 0 && errno > -4096) in do_syscall_trace_exit()
295 regs->regs[1] = -errno; in do_syscall_trace_exit()
/linux-4.1.27/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.1.27/arch/mips/boot/compressed/
Dcalc_vmlinuz_load_addr.c34 errno = 0; in main()
36 if (errno != 0) in main()
/linux-4.1.27/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.1.27/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.1.27/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 \
Dzconf.lex.c931 errno=0; \
934 if( errno != EINTR) \
939 errno=0; \
1864 int oerrno = errno; in zconf_init_buffer()
1882 errno = oerrno; in zconf_init_buffer()
/linux-4.1.27/tools/lib/traceevent/
Dparse-utils.c30 if (errno) in __vwarning()
32 errno = 0; in __vwarning()
/linux-4.1.27/tools/cgroup/
Dcgroup_event_listener.c63 if (errno == EINTR) in main()
70 if ((ret == -1) && (errno == ENOENT)) { in main()
/linux-4.1.27/drivers/usb/misc/sisusbvga/
Dsisusb.c2518 int errno = 0; in sisusb_read() local
2552 errno = -EIO; in sisusb_read()
2554 errno = -EFAULT; in sisusb_read()
2564 errno = -EIO; in sisusb_read()
2566 errno = -EFAULT; in sisusb_read()
2576 errno = -EIO; in sisusb_read()
2578 errno = -EFAULT; in sisusb_read()
2585 errno = -EIO; in sisusb_read()
2599 errno = sisusb_read_mem_bulk(sisusb, address, in sisusb_read()
2603 errno = bytes_read; in sisusb_read()
[all …]
/linux-4.1.27/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.1.27/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.1.27/tools/testing/selftests/kcmp/
Dkcmp_test.c78 ret, strerror(errno)); in main()
90 ret, strerror(errno)); in main()
/linux-4.1.27/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/
DUtil.py9 import errno, os
84 return errno.errorcode[abs(nr)]
/linux-4.1.27/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.1.27/fs/btrfs/
Dsuper.c72 static 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
148 if (errno == -EROFS && (sb->s_flags & MS_RDONLY)) in __btrfs_std_error()
151 errstr = btrfs_decode_error(errno); in __btrfs_std_error()
162 sb->s_id, function, line, errno, errstr, &vaf); in __btrfs_std_error()
166 sb->s_id, function, line, errno, errstr); in __btrfs_std_error()
218 unsigned int line, int errno, const char *fmt, ...) in __btrfs_std_error() argument
226 if (errno == -EROFS && (sb->s_flags & MS_RDONLY)) in __btrfs_std_error()
252 unsigned int line, int errno) in __btrfs_abort_transaction() argument
[all …]
/linux-4.1.27/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.1.27/include/uapi/asm-generic/
DKbuild4 header-y += errno-base.h
5 header-y += errno.h
DKbuild.asm14 header-y += errno.h
/linux-4.1.27/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.1.27/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.1.27/drivers/staging/i2o/
DREADME.ioctl51 errno is set appropriately:
77 is returned and errno is set appropriately:
106 is returned and errno is set appropriately:
141 and errno is set appropriately:
225 is returned and errno is set appropriately:
267 is returned and errno is set appropriately:
304 is returned and errno is set appropriately:
328 returned and errno is set appropriately:
363 is returned and errno is set appropriately:
389 are 0 and -1. All errors are reported through errno.
/linux-4.1.27/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()
Dfreefall.c153 if ((ret == -1) && (errno == EINTR)) { in main()
/linux-4.1.27/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.1.27/samples/uhid/
Duhid-example.c165 return -errno; in uhid_write()
236 return -errno; in event()
311 return -errno; in keyboard()
/linux-4.1.27/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.1.27/Documentation/x86/
Dmtrr.txt147 #include <errno.h>
152 #define ERRSTRING strerror (errno)
172 if (errno == ENOENT)
193 if (errno == EINVAL) exit (0);
244 #include <errno.h>
249 #define ERRSTRING strerror (errno)
285 if (errno == ENOENT)
/linux-4.1.27/scripts/selinux/genheaders/
Dgenheaders.c57 argv[1], strerror(errno)); in main()
117 argv[2], strerror(errno)); in main()
/linux-4.1.27/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.1.27/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.1.27/Documentation/serial/
Dserial-rs485.txt95 /* Error handling. See errno. */
123 /* Error handling. See errno. */
130 /* Error handling. See errno. */
/linux-4.1.27/arch/m68k/68000/
Dm68EZ328.c48 static int errno; variable
Dm68VZ328.c143 static int errno; variable
/linux-4.1.27/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.1.27/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()
2439 self->errno = -EHOSTUNREACH; in irda_getsockopt()
2459 if (self->errno) in irda_getsockopt()
2463 if((self->errno == IAS_CLASS_UNKNOWN) || in irda_getsockopt()
[all …]
/linux-4.1.27/tools/perf/bench/
Dfutex-hash.c81 (!ret || errno != EAGAIN || errno != EWOULDBLOCK)) in workerfn()
/linux-4.1.27/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.1.27/include/net/irda/
Daf_irda.h73 int errno; /* status of the IAS query */ member
/linux-4.1.27/include/net/
Dicmp.h27 int errno; member
/linux-4.1.27/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.1.27/arch/xtensa/platforms/iss/
Dsimdisk.c94 pr_err("SIMDISK: IO error %d\n", errno); in simdisk_transfer()
175 pr_err("SIMDISK: Can't open %s: %d\n", filename, errno); in simdisk_attach()
202 dev->filename, errno); in simdisk_detach()
/linux-4.1.27/firmware/
Dihex2fw.c103 strerror(errno)); in main()
122 strerror(errno)); in main()
/linux-4.1.27/arch/arm/kernel/
Dpsci.c49 static int psci_to_linux_errno(int errno) in psci_to_linux_errno() argument
51 switch (errno) { in psci_to_linux_errno()
/linux-4.1.27/tools/power/cpupower/utils/
Dcpufreq-set.c129 errno = 0; in string_to_frequency()
131 if (errno) in string_to_frequency()
/linux-4.1.27/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.1.27/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.1.27/sound/soc/intel/common/
Dsst-ipc.h44 int errno; member
Dsst-ipc.c77 ret = msg->errno; in tx_wait_done()
104 msg->errno = 0; in ipc_tx_message()
/linux-4.1.27/tools/testing/selftests/x86/
Dentry_from_vm86.c59 if (ret == -1 && errno == ENOSYS) { in do_test()
/linux-4.1.27/tools/usb/ffs-aio-example/simple/device_app/
Daio_simple.c253 strerror(errno)); in main()
287 if (errno == EINTR) in main()
/linux-4.1.27/drivers/media/platform/exynos4-is/
DMakefile7 exynos-fimc-is-objs += fimc-is-param.o fimc-is-errno.o fimc-is-i2c.o
/linux-4.1.27/drivers/staging/lustre/lustre/ptlrpc/
DMakefile20 ptlrpc-$(CONFIG_LUSTRE_TRANSLATE_ERRNOS) += errno.o
/linux-4.1.27/arch/parisc/include/uapi/asm/
DKbuild8 header-y += errno.h
/linux-4.1.27/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.1.27/arch/mn10300/include/uapi/asm/
DKbuild7 header-y += errno.h
/linux-4.1.27/arch/m32r/include/uapi/asm/
DKbuild7 header-y += errno.h
/linux-4.1.27/fs/nfsd/
Dexport.h99 __be32 nfserrno(int errno);
/linux-4.1.27/arch/score/include/uapi/asm/
DKbuild7 header-y += errno.h
/linux-4.1.27/arch/xtensa/include/asm/
DKbuild8 generic-y += errno.h
/linux-4.1.27/arch/frv/include/uapi/asm/
DKbuild7 header-y += errno.h
/linux-4.1.27/arch/avr32/include/uapi/asm/
DKbuild25 generic-y += errno.h
/linux-4.1.27/arch/m68k/68360/
Dconfig.c122 static int errno; variable
/linux-4.1.27/arch/microblaze/include/uapi/asm/
DKbuild10 header-y += errno.h
/linux-4.1.27/arch/um/include/shared/
Dos.h14 #define CATCH_EINTR(expr) while ((errno = 0, ((expr) < 0)) && (errno == EINTR))
/linux-4.1.27/tools/testing/selftests/powerpc/
Dharness.c53 if (errno != EINTR) { in run_test()
/linux-4.1.27/arch/arm/include/asm/
DKbuild7 generic-y += errno.h
/linux-4.1.27/arch/tile/include/asm/
DKbuild10 generic-y += errno.h
/linux-4.1.27/arch/cris/include/uapi/asm/
DKbuild9 header-y += errno.h
/linux-4.1.27/arch/sh/include/asm/
DKbuild8 generic-y += errno.h
/linux-4.1.27/arch/m68k/include/asm/
DKbuild7 generic-y += errno.h
/linux-4.1.27/arch/mips/include/uapi/asm/
DKbuild12 header-y += errno.h
/linux-4.1.27/sound/soc/intel/haswell/
Dsst-haswell-ipc.c588 msg->errno = -EBADMSG; in hsw_process_reply()
592 msg->errno = -ENOMEM; in hsw_process_reply()
596 msg->errno = -EBUSY; in hsw_process_reply()
600 msg->errno = -EINVAL; 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()
/linux-4.1.27/tools/perf/ui/tui/
Dsetup.c74 if (errno == EINTR) in ui__getch()
/linux-4.1.27/arch/alpha/include/uapi/asm/
DKbuild10 header-y += errno.h
/linux-4.1.27/arch/powerpc/include/uapi/asm/
DKbuild11 header-y += errno.h
/linux-4.1.27/Documentation/watchdog/
Dwatchdog-kernel-api.txt33 This routine returns zero on success and a negative errno code for failure.
125 parameter. It returns zero on success or a negative errno code for failure.
128 parameter. It returns zero on success or a negative errno code for failure.
140 parameter. It returns zero on success or a negative errno code for failure.
226 This routine returns zero on success and a negative errno code for failure.
/linux-4.1.27/arch/ia64/include/uapi/asm/
DKbuild11 header-y += errno.h
/linux-4.1.27/arch/sparc/include/uapi/asm/
DKbuild13 header-y += errno.h
/linux-4.1.27/include/linux/sunrpc/
Drpc_pipe_fs.h33 int errno; member
/linux-4.1.27/samples/hidraw/
Dhid-example.c141 printf("Error: %d\n", errno); in main()
/linux-4.1.27/arch/blackfin/include/asm/
DKbuild10 generic-y += errno.h
/linux-4.1.27/tools/testing/selftests/mqueue/
Dmq_perf_tests.c173 int errno_at_shutdown = errno; in shutdown()
647 errno = 0; in main()
649 if (errno) in main()
/linux-4.1.27/arch/arc/include/asm/
DKbuild10 generic-y += errno.h
/linux-4.1.27/arch/s390/include/uapi/asm/
DKbuild12 header-y += errno.h
/linux-4.1.27/tools/power/acpi/os_specific/service_layers/
Dosunixxf.c805 && (errno == EINTR)) { in acpi_os_wait_semaphore()
810 if (errno != ETIMEDOUT) { in acpi_os_wait_semaphore()

12