| /openbsd-src/gnu/usr.bin/binutils/gdb/testsuite/gdb.base/ |
| H A D | fileio.c | 77 errno = 0; in test_open() 79 printf ("open 1: ret = %d, errno = %d %s\n", ret, errno, in test_open() 84 errno = 0; in test_open() 86 printf ("open 2: ret = %d, errno = %d %s\n", ret, errno, in test_open() 87 strerrno (errno)); in test_open() 91 errno = 0; in test_open() 93 printf ("open 3: ret = %d, errno = %d %s\n", ret, errno, in test_open() 94 strerrno (errno)); in test_open() 98 errno = 0; in test_open() 100 printf ("open 4: ret = %d, errno = %d %s\n", ret, errno, in test_open() [all …]
|
| /openbsd-src/regress/sys/kern/pledge/generic/ |
| H A D | test_tty.c | 39 _exit(errno); in test_request_tty() 44 _exit(errno); in test_request_tty() 47 if ((tcsetpgrp(fd, 1) == -1) && (errno != ENOTTY)) in test_request_tty() 48 _exit(errno); in test_request_tty() 49 errno = 0; /* discard error */ in test_request_tty() 53 _exit(errno); in test_request_tty() 58 _exit(errno); in test_request_tty() 62 _exit(errno); in test_request_tty() 65 if ((ioctl(fd, TIOCSBRK, NULL) == -1) && (errno != ENOTTY)) in test_request_tty() 66 _exit(errno); in test_request_tty() [all …]
|
| /openbsd-src/regress/lib/libpthread/errno/ |
| H A D | errno.c | 63 ASSERT(&errno == main_errno); in act_handler() 64 ASSERTe(errno, == EXDEV); in act_handler() 68 ASSERT(&errno == t1_errno); in act_handler() 69 ASSERTe(errno, == EXDEV); in act_handler() 74 ASSERT(&errno == t2_errno); in act_handler() 75 ASSERTe(errno, == EXDEV); in act_handler() 85 t1_errno = &errno; in tmain() 90 errno = EXDEV; in tmain() 96 ASSERT(&errno == t1_errno); in tmain() 101 ASSERT(&errno == t1_errno); in tmain() [all …]
|
| /openbsd-src/lib/librthread/ |
| H A D | rthread_sem.c | 106 errno = EINVAL; in sem_init() 111 errno = EPERM; in sem_init() 125 if (errno == EEXIST) in sem_init() 127 if (errno != EPERM) in sem_init() 128 errno = ENOSPC; in sem_init() 135 errno = ENOSPC; in sem_init() 147 errno = ENOSPC; in sem_init() 165 errno = EINVAL; in sem_destroy() 173 errno = EBUSY; in sem_destroy() 192 errno = EINVAL; in sem_getvalue() [all …]
|
| H A D | rthread_sem_compat.c | 118 errno = EINVAL; in sem_init() 123 errno = EPERM; in sem_init() 137 if (errno == EEXIST) in sem_init() 139 if (errno != EPERM) in sem_init() 140 errno = ENOSPC; in sem_init() 147 errno = ENOSPC; in sem_init() 159 errno = ENOSPC; in sem_init() 178 errno = EINVAL; in sem_destroy() 186 errno = EBUSY; in sem_destroy() 205 errno = EINVAL; in sem_getvalue() [all …]
|
| /openbsd-src/gnu/usr.bin/cvs/src/ |
| H A D | mkmodules.c | 404 error (1, errno, "cannot chdir to %s", dir); 433 && !existence_error (errno)) 434 error (0, errno, "cannot remove %s", temp); 456 && !existence_error (errno)) 457 error (0, errno, "cannot remove %s", temp); 505 && !existence_error (errno)) 506 error (0, errno, "cannot remove %s", temp); 512 error (0, errno, "cannot read %s", CVSROOTADM_CHECKOUTLIST); 514 error (0, errno, "cannot close %s", CVSROOTADM_CHECKOUTLIST); 519 if (!existence_error (errno)) [all …]
|
| H A D | filesubr.c | 57 error (1, errno, "cannot stat %s", from); 67 error (1, errno, "cannot open %s for copying", from); 69 error (1, errno, "cannot fstat %s", from); 71 error (1, errno, "cannot create %s for copying", to); 83 if (errno == EINTR) 86 error (1, errno, "cannot read file %s for copying", from); 92 error (1, errno, "cannot write file %s for copying", to); 98 error (1, errno, "cannot fsync file %s after copying", to); 103 error (0, errno, "cannot close %s", from); 105 error (1, errno, "cannot close %s", to); [all …]
|
| H A D | run.c | 149 rerrno = errno; 150 error (0, errno, "cannot open %s for reading (prog %s)", 156 rerrno = errno; 157 error (0, errno, "cannot open %s for writing (prog %s)", 165 rerrno = errno; 166 error (0, errno, "cannot open %s for writing (prog %s)", 217 error (0, errno, "cannot set egid to gid"); 224 error (0, errno, "cannot exec %s", run_argv[0]); 229 rerrno = errno; 269 while ((w = waitpid (pid, &status, 0)) == -1 && errno == EINTR) [all …]
|
| /openbsd-src/regress/lib/libc/sys/ |
| H A D | t_mlock.c | 74 strerror(errno)); in ATF_TC_BODY() 79 buf, page - i, strerror(errno), err1?"failed":"ok"); in ATF_TC_BODY() 101 errno = 0; in ATF_TC_BODY() 104 errno = 0; in ATF_TC_BODY() 107 errno = 0; in ATF_TC_BODY() 114 errno = 0; in ATF_TC_BODY() 117 errno = 0; in ATF_TC_BODY() 120 errno = 0; in ATF_TC_BODY() 136 errno = 0; in ATF_TC_BODY() 147 errno, strerror(errno)); in ATF_TC_BODY() [all …]
|
| H A D | t_access.c | 71 errno = 0; in ATF_TC_BODY() 74 ATF_REQUIRE(errno == EACCES); in ATF_TC_BODY() 97 errno = 0; in ATF_TC_BODY() 100 ATF_REQUIRE(errno == EFAULT); in ATF_TC_BODY() 102 errno = 0; in ATF_TC_BODY() 105 ATF_REQUIRE(errno == EFAULT); in ATF_TC_BODY() 118 errno = 0; in ATF_TC_BODY() 121 ATF_REQUIRE(errno == EINVAL); in ATF_TC_BODY() 136 errno = 0; in ATF_TC_BODY() 149 ATF_REQUIRE(errno == ENOTDIR); in ATF_TC_BODY() [all …]
|
| /openbsd-src/gnu/lib/libstdc++/libstdc++/config/locale/generic/ |
| H A D | c_locale.cc | 53 errno = 0; in __convert_to_v() 55 if (__sanity != __s && *__sanity == '\0' && errno != ERANGE) in __convert_to_v() 70 errno = 0; in __convert_to_v() 72 if (__sanity != __s && *__sanity == '\0' && errno != ERANGE) in __convert_to_v() 88 errno = 0; in __convert_to_v() 90 if (__sanity != __s && *__sanity == '\0' && errno != ERANGE) in __convert_to_v() 105 errno = 0; in __convert_to_v() 107 if (__sanity != __s && *__sanity == '\0' && errno != ERANGE) in __convert_to_v() 126 errno = 0; in __convert_to_v() 134 errno = ERANGE; in __convert_to_v() [all …]
|
| /openbsd-src/gnu/usr.bin/cvs/windows-NT/ |
| H A D | filesubr.c | 54 error (1, errno, "cannot open %s for copying", from); 56 error (1, errno, "cannot fstat %s", from); 59 error (1, errno, "cannot create %s for copying", to); 71 if (errno == EINTR) 74 error (1, errno, "cannot read file %s for copying", from); 80 error (1, errno, "cannot write file %s for copying", to); 86 error (1, errno, "cannot fsync file %s after copying", to); 91 error (0, errno, "cannot close %s", from); 93 error (1, errno, "cannot close %s", to); 240 error (1, errno, "cannot open %s", name); [all …]
|
| /openbsd-src/gnu/usr.bin/binutils/gdb/ |
| H A D | infptrace.c | 75 errno = 0; in call_ptrace() 83 if (errno) in call_ptrace() 110 saved_errno = errno; in call_ptrace() 111 errno = 0; in call_ptrace() 122 if (errno) in call_ptrace() 123 printf (" [errno = %d]", errno); in call_ptrace() 125 errno = saved_errno; in call_ptrace() 219 errno = 0; in child_resume() 221 if (errno != 0) in child_resume() 233 errno = 0; in attach() [all …]
|
| /openbsd-src/gnu/usr.bin/perl/dist/Carp/t/ |
| H A D | errno.t | 11 my($m, $errno, $exterr); 17 $errno = 0+$!; $exterr = 0+$^E; 19 is $errno, 69; 25 $errno = 0+$!; $exterr = 0+$^E; 27 is $errno, 69; 30 $SIG{__WARN__} = sub { $m = $_[0]; $errno = 0+$!; $exterr = 0+$^E; }; 33 $m = $errno = $exterr = undef; 37 is $errno, 69; 41 $m = $errno = $exterr = undef; 45 is $errno, 69; [all …]
|
| /openbsd-src/gnu/usr.bin/cvs/os2/ |
| H A D | filesubr.c | 50 error (1, errno, "cannot open %s for copying", from); 52 error (1, errno, "cannot fstat %s", from); 55 error (1, errno, "cannot create %s for copying", to); 67 if (errno == EINTR) 70 error (1, errno, "cannot read file %s for copying", from); 76 error (1, errno, "cannot write file %s for copying", to); 82 error (1, errno, "cannot fsync file %s after copying", to); 87 error (0, errno, "cannot close %s", from); 89 error (1, errno, "cannot close %s", to); 195 error (1, errno, "cannot open %s", name); [all …]
|
| /openbsd-src/usr.bin/ssh/ |
| H A D | atomicio.c | 57 if (errno == EINTR) { in atomicio6() 60 errno = EINTR; in atomicio6() 64 } else if (errno == EAGAIN || errno == EWOULDBLOCK) { in atomicio6() 70 errno = EPIPE; in atomicio6() 75 errno = EINTR; in atomicio6() 103 errno = EINVAL; in atomiciov6() 115 if (errno == EINTR) { in atomiciov6() 118 errno = EINTR; in atomiciov6() 122 } else if (errno == EAGAIN || errno == EWOULDBLOCK) { in atomiciov6() 128 errno = EPIPE; in atomiciov6() [all …]
|
| H A D | sshpty.c | 52 error("openpty: %.100s", strerror(errno)); in pty_allocate() 65 error("chown %.100s 0 0 failed: %.100s", tty, strerror(errno)); in pty_release() 67 error("chmod %.100s 0666 failed: %.100s", tty, strerror(errno)); in pty_release() 86 error("setsid: %.100s", strerror(errno)); in pty_make_controlling_tty() 101 error("ioctl(TIOCSCTTY): %.100s", strerror(errno)); in pty_make_controlling_tty() 105 error("%.100s: %.100s", tty, strerror(errno)); in pty_make_controlling_tty() 113 strerror(errno)); in pty_make_controlling_tty() 156 strerror(errno)); in pty_setowner() 160 if (errno == EROFS && in pty_setowner() 164 strerror(errno)); in pty_setowner() [all …]
|
| /openbsd-src/gnu/usr.bin/cvs/emx/ |
| H A D | filesubr.c | 56 error (1, errno, "cannot open %s for copying", from); 58 error (1, errno, "cannot fstat %s", from); 61 error (1, errno, "cannot create %s for copying", to); 73 if (errno == EINTR) 76 error (1, errno, "cannot read file %s for copying", from); 82 error (1, errno, "cannot write file %s for copying", to); 88 error (1, errno, "cannot fsync file %s after copying", to); 93 error (0, errno, "cannot close %s", from); 95 error (1, errno, "cannot close %s", to); 242 error (1, errno, "cannot open %s", name); [all …]
|
| /openbsd-src/usr.bin/rsync/ |
| H A D | mktemp.c | 88 errno = EINVAL; in mktemp_internalat() 97 errno = EINVAL; in mktemp_internalat() 102 errno = EINVAL; in mktemp_internalat() 126 return(errno == ENOENT ? 0 : -1); in mktemp_internalat() 130 if (fd != -1 || errno != EEXIST) in mktemp_internalat() 136 if (errno != EEXIST) in mktemp_internalat() 142 else if (errno != EEXIST) in mktemp_internalat() 148 else if (errno != EEXIST) in mktemp_internalat() 153 errno = EINVAL; in mktemp_internalat() 159 else if (errno != EEXIST) in mktemp_internalat() [all …]
|
| /openbsd-src/usr.sbin/unbound/util/ |
| H A D | tube.c | 65 int err = errno; in tube_create() 67 errno = err; in tube_create() 73 int err = errno; in tube_create() 74 log_err("socketpair: %s", strerror(errno)); in tube_create() 76 errno = err; in tube_create() 82 int err = errno; in tube_create() 85 errno = err; in tube_create() 173 if(errno != EAGAIN && errno != EINTR) { in tube_handle_listen() 174 log_err("rpipe error: %s", strerror(errno)); in tube_handle_listen() 204 if(errno != EAGAIN && errno != EINTR) { in tube_handle_listen() [all …]
|
| /openbsd-src/sbin/unwind/libunbound/util/ |
| H A D | tube.c | 65 int err = errno; in tube_create() 67 errno = err; in tube_create() 73 int err = errno; in tube_create() 74 log_err("socketpair: %s", strerror(errno)); in tube_create() 76 errno = err; in tube_create() 82 int err = errno; in tube_create() 85 errno = err; in tube_create() 173 if(errno != EAGAIN && errno != EINTR) { in tube_handle_listen() 174 log_err("rpipe error: %s", strerror(errno)); in tube_handle_listen() 204 if(errno != EAGAIN && errno != EINTR) { in tube_handle_listen() [all …]
|
| /openbsd-src/regress/sys/kern/realpath/ |
| H A D | realpath3.c | 65 errno = EINVAL; in realpath3() 70 errno = ENOENT; in realpath3() 85 errno = ENOTDIR; in realpath3() 89 serrno = errno; in realpath3() 119 errno = ENAMETOOLONG; in realpath3() 147 errno = ENAMETOOLONG; in realpath3() 179 errno = ENAMETOOLONG; in realpath3() 184 switch (errno) { in realpath3() 190 errno = serrno; in realpath3() 198 errno = EINVAL; in realpath3() [all …]
|
| /openbsd-src/gnu/lib/libstdc++/libstdc++/config/locale/gnu/ |
| H A D | c_locale.cc | 51 errno = 0; in __convert_to_v() 53 if (__sanity != __s && *__sanity == '\0' && errno != ERANGE) in __convert_to_v() 69 errno = 0; in __convert_to_v() 71 if (__sanity != __s && *__sanity == '\0' && errno != ERANGE) in __convert_to_v() 87 errno = 0; in __convert_to_v() 89 if (__sanity != __s && *__sanity == '\0' && errno != ERANGE) in __convert_to_v() 105 errno = 0; in __convert_to_v() 108 if (__sanity != __s && *__sanity == '\0' && errno != ERANGE) in __convert_to_v() 124 errno = 0; in __convert_to_v() 126 if (__sanity != __s && *__sanity == '\0' && errno != ERANGE) in __convert_to_v() [all …]
|
| /openbsd-src/gnu/usr.bin/perl/cpan/IO-Compress/lib/IO/Uncompress/ |
| H A D | AnyUncompress.pm | 100 my ($obj, $errstr, $errno) = IO::Uncompress::Adapter::Inflate::mkUncompObject(); 102 return $self->saveErrorString(undef, $errstr, $errno) 123 my ($obj, $errstr, $errno) = IO::Uncompress::Adapter::UnLzma::mkUncompObject(); 125 return $self->saveErrorString(undef, $errstr, $errno) 145 my ($obj, $errstr, $errno) = 148 return $self->saveErrorString(undef, $errstr, $errno) 161 my ($obj, $errstr, $errno) = IO::Uncompress::Adapter::Bunzip2::mkUncompObject(); 163 return $self->saveErrorString(undef, $errstr, $errno) 177 my ($obj, $errstr, $errno) = IO::Uncompress::Adapter::LZO::mkUncompObject(); 179 return $self->saveErrorString(undef, $errstr, $errno) [all...] |
| /openbsd-src/lib/libpcap/ |
| H A D | pcap-bpf.c | 59 pcap_strerror(errno)); in pcap_stats() 94 switch (errno) { in pcap_read() 118 pcap_strerror(errno)); in pcap_read() 204 if (fd == -1 && errno == EACCES) in bpf_open() 208 if (errno == EACCES) in bpf_open() 215 pcap_strerror(errno)); in bpf_open() 229 pcap_strerror(errno)); in get_dlt_list() 235 "BIOCGDLTLIST: %s", pcap_strerror(errno)); in get_dlt_list() 244 if (errno != EINVAL) { in get_dlt_list() 246 "BIOCGDLTLIST: %s", pcap_strerror(errno)); in get_dlt_list() [all …]
|