/freebsd-11.0-release/contrib/netcat/ |
H A D | atomicio.h | 1 /* $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 D | socks.c | 42 #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 D | atomicio.c | 1 /* $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-11.0-release/crypto/openssh/ |
H A D | msg.c | 40 #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 D | atomicio.h | 1 /* $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 D | scp.c | 112 #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 D | ssh-pkcs11-client.c | 42 #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 D | entropy.c | 53 #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 D | atomicio.c | 1 /* $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 D | loginrec.c | 176 #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 D | progressmeter.c | 40 #include "atomicio.h" 226 atomicio(vwrite, STDOUT_FILENO, buf, win_size - 1); 283 atomicio(vwrite, STDOUT_FILENO, "\n", 1);
|
H A D | authfd.c | 61 #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 D | monitor_wrap.c | 75 #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 D | authfile.c | 47 #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 D | ssh-keyscan.c | 45 #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 D | auth2.c | 39 #include "atomicio.h" 126 n = atomicio(read, fd, banner, len);
|
H A D | clientloop.c | 110 #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 D | sshd.c | 120 #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 D | sshconnect.c | 62 #include "atomicio.h" 536 if (atomicio(vwrite, connection_out, client_version_string, 596 len = atomicio(read, connection_in, &buf[i], 1);
|
H A D | monitor.c | 67 #include "atomicio.h" 512 if (atomicio(read, pmonitor->m_log_recvfd, 530 if (atomicio(read, pmonitor->m_log_recvfd,
|
/freebsd-11.0-release/usr.bin/nc/ |
H A D | Makefile | 6 SRCS= netcat.c atomicio.c socks.c
|
/freebsd-11.0-release/crypto/openssh/regress/ |
H A D | netcat.c | 55 #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-11.0-release/secure/lib/libssh/ |
H A D | Makefile | 16 atomicio.c key.c dispatch.c mac.c uidswap.c uuencode.c misc.c \
|
/freebsd-11.0-release/crypto/openssh/regress/unittests/test_helper/ |
H A D | fuzz.c | 37 #include "atomicio.h" 208 atomicio(vwrite, STDERR_FILENO, buf, strlen(buf)); 211 atomicio(vwrite, STDERR_FILENO, buf, strlen(buf));
|
H A D | test_helper.c | 44 #include "atomicio.h" 201 atomicio(vwrite, STDERR_FILENO, buf, strlen(buf));
|