Home
last modified time | relevance | path

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

12345678910>>...127

/freebsd-12-stable/cddl/lib/libdtrace/
Derrno.d247 inline string strerror[int errno] =
248 errno == 0 ? "Success" :
249 errno == EPERM ? "Operation not permitted" :
250 errno == ENOENT ? "No such file or directory" :
251 errno == ESRCH ? "No such process" :
252 errno == EINTR ? "Interrupted system call" :
253 errno == EIO ? "Input/output error" :
254 errno == ENXIO ? "Device not configured" :
255 errno == E2BIG ? "Argument list too long" :
256 errno == ENOEXEC ? "Exec format error" :
[all …]
/freebsd-12-stable/tools/regression/sockets/accf_data_attach/
Daccf_data_attach.c76 _mod_name, strerror(errno)); in main()
88 errx(-1, "not ok 1 - socket: %s", strerror(errno)); in main()
100 if (errno != EINVAL) in main()
102 "%d (%s)", errno, strerror(errno)); in main()
115 errx(-1, "not ok 3 - bind %s", strerror(errno)); in main()
126 if (errno != EINVAL) in main()
128 errno, strerror(errno)); in main()
151 if (errno != EINVAL) in main()
153 errno, strerror(errno)); in main()
160 errx(-1, "not ok 7 - listen: %s", strerror(errno)); in main()
[all …]
/freebsd-12-stable/lib/libutil/
Dpidfile.c70 return (errno); in pidfile_verify()
84 return (errno); in pidfile_read()
87 error = errno; /* Remember errno in case close() wants to change it. */ in pidfile_read()
124 errno = ENAMETOOLONG; in pidfile_open()
137 errno = ENAMETOOLONG; in pidfile_open()
143 error = errno; in pidfile_open()
145 errno = error; in pidfile_open()
158 if (errno == EWOULDBLOCK) { in pidfile_open()
160 errno = EEXIST; in pidfile_open()
166 errno = pidfile_read(dirfd, in pidfile_open()
[all …]
/freebsd-12-stable/cddl/contrib/opensolaris/lib/pyzfs/common/
Dutil.py29 import errno
35 errno.ECANCELED = 47
36 errno.ENOTSUP = 48
74 self.errno = eno
89 errno.EPERM: _("permission denied"),
90 errno.ECANCELED:
92 errno.EINTR: _("signal received"),
93 errno.EIO: _("I/O error"),
94 errno.ENOENT: _("dataset does not exist"),
95 errno.ENOSPC: _("out of space"),
[all …]
/freebsd-12-stable/tests/sys/posixshm/
Dposixshm_test.c58 "mkstemp failed; errno=%d", errno); in gen_test_path()
60 "unlink failed; errno=%d", errno); in gen_test_path()
73 ATF_CHECK_MSG(error == errno, in shm_open_should_fail()
75 "errno=%d", errno, error); in shm_open_should_fail()
86 ATF_CHECK_MSG(error == errno, in shm_unlink_should_fail()
88 "errno=%d", errno, error); in shm_unlink_should_fail()
106 if (fd < 0 && errno == EEXIST) { in scribble_object()
112 atf_tc_fail("shm_open failed; errno=%d", errno); in scribble_object()
114 atf_tc_fail("ftruncate failed; errno=%d", errno); in scribble_object()
118 atf_tc_fail("mmap failed; errno=%d", errno); in scribble_object()
[all …]
/freebsd-12-stable/crypto/openssh/openbsd-compat/
Dbsd-setres_id.c34 errno = ENOSYS; in setresgid()
39 saved_errno = errno; in setresgid()
40 error("setregid %lu: %.100s", (u_long)rgid, strerror(errno)); in setresgid()
41 errno = saved_errno; in setresgid()
46 saved_errno = errno; in setresgid()
47 error("setegid %lu: %.100s", (u_long)egid, strerror(errno)); in setresgid()
48 errno = saved_errno; in setresgid()
52 saved_errno = errno; in setresgid()
53 error("setgid %lu: %.100s", (u_long)rgid, strerror(errno)); in setresgid()
54 errno = saved_errno; in setresgid()
[all …]
Dport-solaris.c54 "contract: %s", __func__, strerror(errno)); in get_active_process_contract_id()
59 "status: %s", __func__, strerror(errno)); in get_active_process_contract_id()
64 __func__, strerror(errno)); in get_active_process_contract_id()
79 CT_TEMPLATE, strerror(errno)); in solaris_contract_pre_fork()
89 "(pgrponly): %s", __func__, strerror(errno)); in solaris_contract_pre_fork()
94 "fatal events: %s", __func__, strerror(errno)); in solaris_contract_pre_fork()
99 "critical events: %s", __func__, strerror(errno)); in solaris_contract_pre_fork()
104 "informative events: %s", __func__, strerror(errno)); in solaris_contract_pre_fork()
111 "template: %s", __func__, strerror(errno)); in solaris_contract_pre_fork()
132 "template: %s", __func__, strerror(errno)); in solaris_contract_post_fork_child()
[all …]
/freebsd-12-stable/usr.sbin/bsnmpd/tools/libbsnmptools/
Dbsnmptc.c170 syslog(LOG_ERR, "malloc failed - %s", strerror(errno)); in snmp_oct2tc()
271 syslog(LOG_ERR, "malloc failed: %s", strerror(errno)); in parse_octetstring()
350 saved_errno = errno; in snmp_date2asn_oid()
351 errno = 0; in snmp_date2asn_oid()
356 errno = saved_errno; in snmp_date2asn_oid()
366 saved_errno = errno; in snmp_date2asn_oid()
367 errno = 0; in snmp_date2asn_oid()
369 if (errno != 0) in snmp_date2asn_oid()
372 errno = saved_errno; in snmp_date2asn_oid()
380 saved_errno = errno; in snmp_date2asn_oid()
[all …]
/freebsd-12-stable/tools/regression/sockets/kqueue/
Dkqueue.c114 fail(errno, "kevent", socktype, "EVFILT_READ, EV_ADD"); in test_evfilt_read()
124 fail(errno, "kevent", socktype, "EVFILT_READ"); in test_evfilt_read()
137 fail(errno, "write", socktype, NULL); in test_evfilt_read()
150 fail(errno, "kevent", socktype, "EVFILT_READ"); in test_evfilt_read()
162 fail(errno, "read", socktype, NULL); in test_evfilt_read()
175 fail(errno, "kevent", socktype, "EVFILT_READ"); in test_evfilt_read()
184 fail(errno, "kevent", socktype, "EVFILT_READ, EV_DELETE"); in test_evfilt_read()
199 fail(errno, "kevent", socktype, "EVFILT_WRITE, EV_ADD"); in test_evfilt_write()
209 fail(errno, "kevent", socktype, "EVFILT_WRITE"); in test_evfilt_write()
221 if (len == -1 && errno != EAGAIN && errno != ENOBUFS) in test_evfilt_write()
[all …]
/freebsd-12-stable/contrib/openbsm/compat/
Dpidfile.h64 return (errno); in pidfile_verify()
78 return (errno); in pidfile_read()
81 error = errno; /* Remember errno in case close() wants to change it. */ in pidfile_read()
118 errno = ENAMETOOLONG; in pidfile_open()
135 if (errno == EWOULDBLOCK && pidptr != NULL) { in pidfile_open()
140 errno = pidfile_read(pfh->pf_path, pidptr); in pidfile_open()
141 if (errno != EAGAIN || --count == 0) in pidfile_open()
145 if (errno == EAGAIN) in pidfile_open()
147 if (errno == 0 || errno == EAGAIN) in pidfile_open()
148 errno = EEXIST; in pidfile_open()
[all …]
/freebsd-12-stable/usr.sbin/bluetooth/hcseriald/
Dhcseriald.c108 strerror(errno), errno); in main()
117 p, strerror(errno), errno); in main()
129 strerror(errno), errno); in main()
135 strerror(errno), errno); in main()
141 strerror(errno), errno); in main()
171 device, strerror(errno), errno); in open_device()
179 device, strerror(errno), errno); in open_device()
194 device, strerror(errno), errno); in open_device()
202 device, strerror(errno), errno); in open_device()
208 device, strerror(errno), errno); in open_device()
[all …]
/freebsd-12-stable/usr.sbin/bluetooth/bcmfw/
Dbcmfw.c129 path, strerror(errno), errno); in bcmfw_check_device()
136 strerror(errno), errno); in bcmfw_check_device()
169 buf, strerror(errno), errno); in bcmfw_load_firmware()
177 buf, strerror(errno), errno); in bcmfw_load_firmware()
187 md, strerror(errno), errno); in bcmfw_load_firmware()
195 md, strerror(errno), errno); in bcmfw_load_firmware()
204 name, BCMFW_BULK_EP, strerror(errno), in bcmfw_load_firmware()
205 errno); in bcmfw_load_firmware()
221 name, BCMFW_BULK_EP, strerror(errno), errno); in bcmfw_load_firmware()
227 name, BCMFW_INTR_EP, strerror(errno), errno); in bcmfw_load_firmware()
[all …]
/freebsd-12-stable/stand/efi/libefi/
Derrno.c34 errno_to_efi_status(int errno) in errno_to_efi_status() argument
38 switch (errno) { in errno_to_efi_status()
99 int errno; in efi_status_to_errno() local
103 errno = EPERM; in efi_status_to_errno()
107 errno = EOVERFLOW; in efi_status_to_errno()
112 errno = EIO; in efi_status_to_errno()
116 errno = EINVAL; in efi_status_to_errno()
120 errno = ESTALE; in efi_status_to_errno()
124 errno = ENXIO; in efi_status_to_errno()
128 errno = ENOENT; in efi_status_to_errno()
[all …]
/freebsd-12-stable/tools/regression/capsicum/syscalls/
Dcap_fcntls_limit.c68 errno = 0; in fcntl_tests_0()
70 CHECK(errno == EINVAL); in fcntl_tests_0()
96 errno = 0; in fcntl_tests_0()
98 CHECK(errno == ENOTCAPABLE); in fcntl_tests_0()
110 errno = 0; in fcntl_tests_0()
112 CHECK(errno == ENOTCAPABLE); in fcntl_tests_0()
114 errno = 0; in fcntl_tests_0()
116 CHECK(errno == ENOTCAPABLE); in fcntl_tests_0()
123 errno = 0; in fcntl_tests_0()
125 CHECK(errno == ENOTCAPABLE); in fcntl_tests_0()
[all …]
/freebsd-12-stable/contrib/openbsm/libbsm/
Dbsm_wrappers.c83 if (errno == ENOSYS) in audit_submit()
85 error = errno; in audit_submit()
87 strerror(errno)); in audit_submit()
88 errno = error; in audit_submit()
95 error = errno; in audit_submit()
97 strerror(errno)); in audit_submit()
98 errno = error; in audit_submit()
107 if (error < 0 && errno == ENOSYS) { in audit_submit()
110 error = errno; in audit_submit()
112 strerror(errno)); in audit_submit()
[all …]
/freebsd-12-stable/lib/libc/nameser/
Dns_name.c116 errno = EMSGSIZE; in ns_name_ntop()
121 errno = EMSGSIZE; in ns_name_ntop()
127 errno = EMSGSIZE; /*%< XXX */ in ns_name_ntop()
131 errno = EMSGSIZE; in ns_name_ntop()
139 errno = EINVAL; in ns_name_ntop()
144 errno = EMSGSIZE; in ns_name_ntop()
154 errno = EMSGSIZE; in ns_name_ntop()
161 errno = EMSGSIZE; in ns_name_ntop()
170 errno = EMSGSIZE; in ns_name_ntop()
179 errno = EMSGSIZE; in ns_name_ntop()
[all …]
/freebsd-12-stable/lib/libcasper/services/cap_sysctl/tests/
Dsysctl_test.c212 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
216 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
279 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
283 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
287 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
290 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
317 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
323 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
327 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
351 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
[all …]
/freebsd-12-stable/usr.sbin/bluetooth/rfcomm_pppd/
Drfcomm_pppd.c173 strerror(errno), errno); in main()
180 strerror(errno), errno); in main()
195 strerror(errno), errno); in main()
201 strerror(errno), errno); in main()
207 strerror(errno), errno); in main()
216 strerror(errno), errno); in main()
230 strerror(errno), errno); in main()
236 strerror(errno), errno); in main()
332 "on socket. %s (%d)", strerror(errno), in main()
333 errno); in main()
[all …]
/freebsd-12-stable/tests/sys/fs/fusefs/
Dwrite.cc223 ASSERT_LE(0, fd) << strerror(errno); in TEST_F()
230 ASSERT_EQ(0, aio_write(&iocb)) << strerror(errno); in TEST_F()
231 ASSERT_EQ(bufsize, aio_waitcomplete(&piocb, NULL)) << strerror(errno); in TEST_F()
265 ASSERT_LE(0, fd) << strerror(errno); in TEST_F()
267 ASSERT_EQ(BUFSIZE, write(fd, CONTENTS, BUFSIZE)) << strerror(errno); in TEST_F()
287 ASSERT_NE(nullptr, oldcontents) << strerror(errno); in TEST_F()
289 ASSERT_NE(nullptr, oldbuf) << strerror(errno); in TEST_F()
298 ASSERT_LE(0, fd) << strerror(errno); in TEST_F()
302 << strerror(errno); in TEST_F()
305 ASSERT_EQ(BUFSIZE, write(fd, CONTENTS, BUFSIZE)) << strerror(errno); in TEST_F()
[all …]
Dreaddir.cc94 errno = 0; in TEST_F()
96 ASSERT_NE(nullptr, dir) << strerror(errno); in TEST_F()
98 errno = 0; in TEST_F()
100 ASSERT_NE(nullptr, de) << strerror(errno); in TEST_F()
106 errno = 0; in TEST_F()
108 ASSERT_NE(nullptr, de) << strerror(errno); in TEST_F()
115 ASSERT_EQ(0, errno); in TEST_F()
139 errno = 0; in TEST_F()
141 ASSERT_NE(nullptr, dir) << strerror(errno); in TEST_F()
143 errno = 0; in TEST_F()
[all …]
/freebsd-12-stable/lib/libc/posix1e/
Dacl_set.c60 errno = EINVAL; in acl_set_file()
65 errno = EINVAL; in acl_set_file()
81 errno = EINVAL; in acl_set_link_np()
86 errno = EINVAL; in acl_set_link_np()
112 errno = EINVAL; in acl_set_fd_np()
117 errno = EINVAL; in acl_set_fd_np()
137 errno = EINVAL; in acl_set_permset()
143 errno = EINVAL; in acl_set_permset()
147 errno = EINVAL; in acl_set_permset()
167 errno = EINVAL; in acl_set_qualifier()
[all …]
/freebsd-12-stable/tools/regression/netinet/tcpdrop/
Dtcpdrop.c79 error = errno; in tcp_server()
81 errno = error; in tcp_server()
93 error = errno; in tcp_server()
95 errno = error; in tcp_server()
110 } else if (errno != EPIPE) { in tcp_server()
111 error = errno; in tcp_server()
113 errno = error; in tcp_server()
134 error = errno; in tcp_client()
136 errno = error; in tcp_client()
147 error = errno; in tcp_client()
[all …]
/freebsd-12-stable/contrib/netbsd-tests/kernel/
Dt_mqueue.c35 "mq_send 1 failed: %d", errno); in send_msgs()
39 "mq_send 2 failed: %d", errno); in send_msgs()
43 "mq_send 3 failed: %d", errno); in send_msgs()
47 "mq_send 4 failed: %d", errno); in send_msgs()
51 "mq_send 5 failed: %d", errno); in send_msgs()
55 "mq_send 6 failed: %d", errno); in send_msgs()
67 errno); in receive_msgs()
74 "mq_receive 1 failed: %d", errno); in receive_msgs()
79 "mq_receive 2 failed: %d", errno); in receive_msgs()
84 "mq_receive 3 failed: %d", errno); in receive_msgs()
[all …]
/freebsd-12-stable/lib/libc/gen/
D__xuname.c62 oerrno = errno; in __xuname()
64 if (errno == ENOMEM) in __xuname()
65 errno = oerrno; in __xuname()
75 oerrno = errno; in __xuname()
77 if (errno == ENOMEM) in __xuname()
78 errno = oerrno; in __xuname()
90 oerrno = errno; in __xuname()
92 if (errno == ENOMEM) in __xuname()
93 errno = oerrno; in __xuname()
111 oerrno = errno; in __xuname()
[all …]
/freebsd-12-stable/lib/libutil/tests/
Dpidfile_test.c72 return (strerror(errno)); in test_pidfile_uncontested()
99 return (strerror(errno)); in test_pidfile_self()
101 serrno = errno; in test_pidfile_self()
139 return (strerror(errno)); in common_test_pidfile_child()
146 return (strerror(errno)); in common_test_pidfile_child()
151 return (strerror(errno)); in common_test_pidfile_child()
161 return (strerror(errno)); in common_test_pidfile_child()
164 serrno = errno; in common_test_pidfile_child()
195 serrno = errno; in common_test_pidfile_child()
198 errno = serrno; in common_test_pidfile_child()
[all …]

12345678910>>...127