Searched refs:errno (Results 26 - 50 of 4351) sorted by relevance

1234567891011>>

/freebsd-11.0-release/lib/libc/stdio/
H A Drewind.c40 #include <errno.h>
49 int serrno = errno;
57 errno = serrno;
/freebsd-11.0-release/lib/libthr/sys/
H A Dthr_error.c42 #undef errno macro
43 extern int errno;
56 return (&errno);
/freebsd-11.0-release/tools/regression/mlock/
H A Dmlock.c33 #include <errno.h>
57 errno = 0;
59 if (pwd == NULL && errno == 0)
62 errx(-1, "getpwnam: %s", strerror(errno));
69 errx(-1, "mmap: %s", strerror(errno));
72 errx(-1, "mlock privileged: %s", strerror(errno));
75 errx(-1, "munlock privileged: %s", strerror(errno));
78 errx(-1, "seteuid: %s", strerror(errno));
82 if (errno != EPERM)
83 errx(-1, "mlock unprivileged: %s", strerror(errno));
[all...]
/freebsd-11.0-release/contrib/openbsm/bin/auditdistd/
H A Dfaccessat.h43 errno = EINVAL;
52 error = errno;
54 errno = error;
60 error = errno;
63 errno = error;
H A Drenameat.h42 errno = EINVAL;
51 error = errno;
53 errno = error;
59 error = errno;
62 errno = error;
/freebsd-11.0-release/tests/sys/aio/
H A Dlocal.h35 #include <errno.h>
49 if (errno != ENOENT) \
50 atf_libc_error(errno, \
63 if (errno != ENOENT) { \
65 strerror(errno)); \
/freebsd-11.0-release/tools/regression/p1003_1b/
H A Dmemlock.c36 #include <errno.h>
47 errno = 0;
49 if (errno != 0) {
65 e = errno;
69 e = errno;
/freebsd-11.0-release/lib/libc/stdlib/
H A Dstrtonum.c23 #include <errno.h>
48 ev[0].err = errno;
49 errno = 0;
54 if (errno == EINVAL || numstr == ep || *ep != '\0')
56 else if ((ll == LLONG_MIN && errno == ERANGE) || ll < minval)
58 else if ((ll == LLONG_MAX && errno == ERANGE) || ll > maxval)
63 errno = ev[error].err;
/freebsd-11.0-release/usr.sbin/pw/
H A Dstrtounum.c30 #include <errno.h>
46 errno = EINVAL;
51 errno = 0;
54 errno = EINVAL;
60 errno = ERANGE;
65 if (errno == ERANGE || ret > maxval) {
66 errno = ERANGE;
/freebsd-11.0-release/tools/regression/sockets/accf_data_attach/
H A Daccf_data_attach.c36 #include <errno.h>
74 _mod_name, strerror(errno));
86 errx(-1, "not ok 1 - socket: %s", strerror(errno));
98 if (errno != EINVAL)
100 "%d (%s)", errno, strerror(errno));
112 errx(-1, "not ok 3 - bind %s", strerror(errno));
123 if (errno != EINVAL)
125 errno, strerror(errno));
[all...]
/freebsd-11.0-release/lib/libc/posix1e/
H A Dacl_flag.c31 #include <errno.h>
43 errno = EINVAL;
53 errno = EINVAL;
70 errno = EINVAL;
84 errno = EINVAL;
101 errno = EINVAL;
119 errno = EINVAL;
124 errno = EINVAL;
138 errno = EINVAL;
143 errno
[all...]
H A Dacl_perm.c35 #include <errno.h>
47 errno = EINVAL;
61 errno = EINVAL;
82 errno = EINVAL;
100 errno = EINVAL;
117 errno = EINVAL;
/freebsd-11.0-release/contrib/elftoolchain/libpe/
H A Dpe_coff.c27 #include <errno.h>
40 errno = ENOENT;
52 errno = ENOENT;
64 errno = ENOENT;
76 errno = EINVAL;
81 errno = EACCES;
87 errno = ENOMEM;
108 errno = EINVAL;
113 errno = EACCES;
119 errno
[all...]
/freebsd-11.0-release/tools/regression/sockets/socketpair/
H A Dsocketpair.c32 #include <errno.h>
60 strerror(errno));
66 strerror(errno));
72 strerror(errno));
82 strerror(errno));
88 strerror(errno));
94 "%s\n", strerror(errno));
107 if (errno != EOPNOTSUPP) {
109 strerror(errno));
121 if (errno !
[all...]
/freebsd-11.0-release/crypto/openssh/openbsd-compat/
H A Dstrtonum.c27 #include <errno.h>
50 ev[0].err = errno;
51 errno = 0;
58 else if ((ll == LLONG_MIN && errno == ERANGE) || ll < minval)
60 else if ((ll == LLONG_MAX && errno == ERANGE) || ll > maxval)
65 errno = ev[error].err;
/freebsd-11.0-release/crypto/openssh/
H A Dsshconnect.h64 int save_errno = errno; \
67 strerror(errno)); \
68 errno = save_errno; \
72 int save_errno = errno; \
75 strerror(errno)); \
76 errno = save_errno; \
/freebsd-11.0-release/contrib/mdocml/
H A Dcompat_strtonum.c29 #include <errno.h>
54 ev[0].err = errno;
55 errno = 0;
62 else if ((ll == LLONG_MIN && errno == ERANGE) || ll < minval)
64 else if ((ll == LLONG_MAX && errno == ERANGE) || ll > maxval)
69 errno = ev[error].err;
/freebsd-11.0-release/tools/regression/sockets/kqueue/
H A Dkqueue.c34 #include <errno.h>
114 fail(errno, "kevent", socktype, "EVFILT_READ, EV_ADD");
124 fail(errno, "kevent", socktype, "EVFILT_READ");
137 fail(errno, "write", socktype, NULL);
150 fail(errno, "kevent", socktype, "EVFILT_READ");
162 fail(errno, "read", socktype, NULL);
175 fail(errno, "kevent", socktype, "EVFILT_READ");
184 fail(errno, "kevent", socktype, "EVFILT_READ, EV_DELETE");
199 fail(errno, "kevent", socktype, "EVFILT_WRITE, EV_ADD");
209 fail(errno, "keven
[all...]
/freebsd-11.0-release/lib/libc/gen/
H A Ddup3.c35 #include <errno.h>
46 errno = EINVAL;
51 errno = EINVAL;
H A Dgethostname.c39 #include <errno.h>
50 if (errno == ENOMEM)
51 errno = ENAMETOOLONG;
/freebsd-11.0-release/crypto/openssh/regress/
H A Dsetuid-allowed.c27 #include <errno.h>
49 if (errno == ENOSYS)
52 path, strerror(errno));
/freebsd-11.0-release/contrib/netbsd-tests/fs/psshfs/
H A Dh_have_puffs.c28 #include <errno.h>
45 if (errno == ENXIO) {
48 } else if (errno == EACCES) {
/freebsd-11.0-release/tools/regression/sockets/shutdown/
H A Dshutdown.c35 #include <errno.h>
51 if ((shutdown(listen_sock, SHUT_RDWR) != -1) && (errno != EBADF))
59 strerror(errno));
69 inet_ntoa(sock.sin_addr), sock.sin_port, strerror(errno));
74 strerror(errno));
78 errx(-1, "listen() for listen socket: %s", strerror(errno));
83 "socket: %s", strerror(errno));
92 errx(-1, "connect() for connect socket: %s", strerror(errno));
94 if ((shutdown(connect_sock, SHUT_RD - 1) != -1) && (errno != EINVAL))
96 if ((shutdown(connect_sock, SHUT_RDWR + 1) != -1) && (errno !
[all...]
/freebsd-11.0-release/contrib/tcpdump/missing/
H A Dinet_pton.c45 errno = EAFNOSUPPORT;
/freebsd-11.0-release/contrib/sendmail/libsm/
H A Dmemstat.c13 #include <errno.h>
29 ** errno as error code, 0: ok
37 return (errno != 0) ? errno : -1;
48 ** errno as error code, 0: ok
79 return (errno != 0) ? errno : -1;
101 ** errno as error code, 0: ok
111 return (errno != 0) ? errno
[all...]

Completed in 233 milliseconds

1234567891011>>