Searched refs:atomicio (Results 1 - 25 of 29) sorted by relevance

12

/freebsd-10.3-release/contrib/netcat/
H A Datomicio.h1 /* $OpenBSD: atomicio.h,v 1.2 2007/09/07 14:50:44 tobias Exp $ */
35 size_t atomicio(ssize_t (*)(int, void *, size_t), int, void *, size_t);
H A Dsocks.c42 #include "atomicio.h"
98 if (atomicio(read, fd, buf + off, 1) != 1)
168 cnt = atomicio(vwrite, proxyfd, buf, 3);
172 cnt = atomicio(read, proxyfd, buf, 2);
221 cnt = atomicio(vwrite, proxyfd, buf, wlen);
225 cnt = atomicio(read, proxyfd, buf, 4);
232 cnt = atomicio(read, proxyfd, buf + 4, 6);
237 cnt = atomicio(read, proxyfd, buf + 4, 18);
257 cnt = atomicio(vwrite, proxyfd, buf, wlen);
261 cnt = atomicio(rea
[all...]
H A Datomicio.c1 /* $OpenBSD: atomicio.c,v 1.11 2012/12/04 02:24:47 deraadt Exp $ */
33 #include "atomicio.h"
39 atomicio(ssize_t (*f) (int, void *, size_t), int fd, void *_s, size_t n) function
/freebsd-10.3-release/crypto/openssh/
H A Dmsg.c40 #include "atomicio.h"
54 if (atomicio(vwrite, fd, buf, sizeof(buf)) != sizeof(buf)) {
58 if (atomicio(vwrite, fd, (u_char *)sshbuf_ptr(m), mlen) != mlen) {
74 if (atomicio(read, fd, buf, sizeof(buf)) != sizeof(buf)) {
89 if (atomicio(read, fd, p, msg_len) != msg_len) {
H A Datomicio.h1 /* $OpenBSD: atomicio.h,v 1.11 2010/09/22 22:58:51 djm Exp $ */
38 size_t atomicio(ssize_t (*)(int, void *, size_t), int, void *, size_t);
H A Dscp.c112 #include "atomicio.h"
578 (void) atomicio(vwrite, fd, buf, strlen(buf));
816 (void) atomicio(vwrite, remout, buf, strlen(buf));
834 if ((nr = atomicio(read, fd,
842 (void)atomicio(vwrite, remout, bp->buf, amt);
860 (void) atomicio(vwrite, remout, "", 1);
893 (void) atomicio(vwrite, remout, path, strlen(path));
912 (void) atomicio(vwrite, remout, "E\n", 2);
951 (void) atomicio(vwrite, remout, "", 1);
956 if (atomicio(rea
[all...]
H A Dssh-pkcs11-client.c42 #include "atomicio.h"
57 if (atomicio(vwrite, fd, buf, 4) != 4 ||
58 atomicio(vwrite, fd, buffer_ptr(m),
70 if ((len = atomicio(read, fd, buf, 4)) != 4) {
83 if (atomicio(read, fd, buf, l) != l) {
H A Dentropy.c53 #include "atomicio.h"
137 if (atomicio(vwrite, fd, msg, sizeof(msg)) != sizeof(msg)) {
148 if (atomicio(read, fd, buf, len) != (size_t)len) {
H A Datomicio.c1 /* $OpenBSD: atomicio.c,v 1.27 2015/01/16 06:40:12 deraadt Exp $ */
46 #include "atomicio.h"
92 atomicio(ssize_t (*f) (int, void *, size_t), int fd, void *_s, size_t n) function
H A Dloginrec.c176 #include "atomicio.h"
892 if (atomicio(read, fd, &old_ut, sizeof(old_ut)) == sizeof(old_ut) &&
909 if (atomicio(vwrite, fd, ut, sizeof(*ut)) != sizeof(*ut)) {
1103 if (atomicio(vwrite, fd, ut, sizeof(*ut)) != sizeof(*ut)) {
1211 if (atomicio(read, fd, &ut, sizeof(ut)) != sizeof(ut)) {
1276 if (atomicio(vwrite, fd, utx, sizeof(*utx)) != sizeof(*utx)) {
1376 if (atomicio(read, fd, &utx, sizeof(utx)) != sizeof(utx)) {
1554 if (atomicio(vwrite, fd, &last, sizeof(last)) != sizeof(last)) {
1597 ret = atomicio(read, fd, &last, sizeof(last));
1722 if (atomicio(vwrit
[all...]
H A Dprogressmeter.c40 #include "atomicio.h"
226 atomicio(vwrite, STDOUT_FILENO, buf, win_size - 1);
283 atomicio(vwrite, STDOUT_FILENO, "\n", 1);
H A Dauthfd.c61 #include "atomicio.h"
136 if (atomicio(vwrite, sock, buf, 4) != 4 ||
137 atomicio(vwrite, sock, (u_char *)sshbuf_ptr(request),
144 if (atomicio(read, sock, buf, 4) != 4)
158 if (atomicio(read, sock, buf, l) != l)
H A Dmonitor_wrap.c75 #include "atomicio.h"
114 if (atomicio(vwrite, mon->m_log_sendfd, buffer_ptr(&log_msg),
140 if (atomicio(vwrite, sock, buf, sizeof(buf)) != sizeof(buf))
142 if (atomicio(vwrite, sock, buffer_ptr(m), mlen) != mlen)
154 if (atomicio(read, sock, buf, sizeof(buf)) != sizeof(buf)) {
164 if (atomicio(read, sock, buffer_ptr(m), msg_len) != msg_len)
H A Dauthfile.c47 #include "atomicio.h"
63 if (atomicio(vwrite, fd, (u_char *)sshbuf_ptr(keybuf),
111 if ((len = atomicio(read, fd, buf, sizeof(buf))) == 0) {
H A Dssh-keyscan.c45 #include "atomicio.h"
485 (n = atomicio(read, s, cp, 1)) == 1 && *cp != '\n') {
542 if (atomicio(vwrite, s, buf, n) != (size_t)n) {
566 n = atomicio(read, s, c->c_data + c->c_off, c->c_len - c->c_off);
H A Dauth2.c39 #include "atomicio.h"
126 n = atomicio(read, fd, banner, len);
H A Dclientloop.c110 #include "atomicio.h"
724 atomicio(vwrite, fileno(stdout), buffer_ptr(bout),
727 atomicio(vwrite, fileno(stderr), buffer_ptr(berr),
1758 len = atomicio(vwrite, fileno(stdout),
1768 len = atomicio(vwrite, fileno(stderr),
H A Dsshd.c120 #include "atomicio.h"
457 if (atomicio(vwrite, sock_out, server_version_string,
467 if (atomicio(read, sock_in, &buf[i], 1) != 1) {
495 (void) atomicio(vwrite, sock_out, s, strlen(s));
564 (void) atomicio(vwrite, sock_out, s, strlen(s));
H A Dsshconnect.c62 #include "atomicio.h"
536 if (atomicio(vwrite, connection_out, client_version_string,
596 len = atomicio(read, connection_in, &buf[i], 1);
H A Dmonitor.c67 #include "atomicio.h"
512 if (atomicio(read, pmonitor->m_log_recvfd,
530 if (atomicio(read, pmonitor->m_log_recvfd,
/freebsd-10.3-release/usr.bin/nc/
H A DMakefile6 SRCS= netcat.c atomicio.c socks.c
/freebsd-10.3-release/crypto/openssh/regress/
H A Dnetcat.c55 #include "atomicio.h"
1113 if (atomicio(vwrite, nfd, obuf, 3) != 3)
1453 if (atomicio(read, fd, buf + off, 1) != 1)
1523 cnt = atomicio(vwrite, proxyfd, buf, 3);
1527 cnt = atomicio(read, proxyfd, buf, 2);
1576 cnt = atomicio(vwrite, proxyfd, buf, wlen);
1580 cnt = atomicio(read, proxyfd, buf, 4);
1587 cnt = atomicio(read, proxyfd, buf + 4, 6);
1592 cnt = atomicio(read, proxyfd, buf + 4, 18);
1612 cnt = atomicio(vwrit
[all...]
/freebsd-10.3-release/secure/lib/libssh/
H A DMakefile16 atomicio.c key.c dispatch.c mac.c uidswap.c uuencode.c misc.c \
/freebsd-10.3-release/crypto/openssh/regress/unittests/test_helper/
H A Dfuzz.c37 #include "atomicio.h"
208 atomicio(vwrite, STDERR_FILENO, buf, strlen(buf));
211 atomicio(vwrite, STDERR_FILENO, buf, strlen(buf));
H A Dtest_helper.c44 #include "atomicio.h"
201 atomicio(vwrite, STDERR_FILENO, buf, strlen(buf));

Completed in 241 milliseconds

12