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

12

/freebsd-10.0-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
H A Dnetcat.c64 #include "atomicio.h"
832 if (atomicio(vwrite, lfd, buf, n) != n)
846 if (atomicio(vwrite, nfd, buf, n) != n)
879 if (atomicio(vwrite, nfd, obuf, 3) != 3)
/freebsd-10.0-release/crypto/openssh/
H A Dmsg.c39 #include "atomicio.h"
53 if (atomicio(vwrite, fd, buf, sizeof(buf)) != sizeof(buf)) {
57 if (atomicio(vwrite, fd, buffer_ptr(m), mlen) != mlen) {
72 if (atomicio(read, fd, buf, sizeof(buf)) != sizeof(buf)) {
84 if (atomicio(read, fd, buffer_ptr(m), 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.c111 #include "atomicio.h"
567 (void) atomicio(vwrite, fd, buf, strlen(buf));
805 (void) atomicio(vwrite, remout, buf, strlen(buf));
823 if (atomicio(read, fd, bp->buf, amt) != amt)
828 (void)atomicio(vwrite, remout, bp->buf, amt);
845 (void) atomicio(vwrite, remout, "", 1);
878 (void) atomicio(vwrite, remout, path, strlen(path));
897 (void) atomicio(vwrite, remout, "E\n", 2);
936 (void) atomicio(vwrite, remout, "", 1);
941 if (atomicio(rea
[all...]
H A Droaming_common.c32 #include "atomicio.h"
188 size_t ret = atomicio(f, fd, buf, count);
214 atomicio(vwrite, fd, out_buf + out_buf_size - chunkend,
216 atomicio(vwrite, fd, out_buf, out_last);
218 atomicio(vwrite, fd, out_buf + (out_last - needed), needed);
H A Dssh-pkcs11-client.c40 #include "atomicio.h"
55 if (atomicio(vwrite, fd, buf, 4) != 4 ||
56 atomicio(vwrite, fd, buffer_ptr(m),
68 if ((len = atomicio(read, fd, buf, 4)) != 4) {
81 if (atomicio(read, fd, buf, l) != l) {
H A Dentropy.c49 #include "atomicio.h"
133 if (atomicio(vwrite, fd, msg, sizeof(msg)) != sizeof(msg)) {
144 if (atomicio(read, fd, buf, len) != (size_t)len) {
H A Datomicio.c1 /* $OpenBSD: atomicio.c,v 1.26 2010/09/22 22:58:51 djm Exp $ */
45 #include "atomicio.h"
87 atomicio(ssize_t (*f) (int, void *, size_t), int fd, void *_s, size_t n) function
H A Dloginrec.c173 #include "atomicio.h"
886 if (atomicio(read, fd, &old_ut, sizeof(old_ut)) == sizeof(old_ut) &&
903 if (atomicio(vwrite, fd, ut, sizeof(*ut)) != sizeof(*ut)) {
1097 if (atomicio(vwrite, fd, ut, sizeof(*ut)) != sizeof(*ut)) {
1205 if (atomicio(read, fd, &ut, sizeof(ut)) != sizeof(ut)) {
1270 if (atomicio(vwrite, fd, utx, sizeof(*utx)) != sizeof(*utx)) {
1370 if (atomicio(read, fd, &utx, sizeof(utx)) != sizeof(utx)) {
1548 if (atomicio(vwrite, fd, &last, sizeof(last)) != sizeof(last)) {
1591 ret = atomicio(read, fd, &last, sizeof(last));
1716 if (atomicio(vwrit
[all...]
H A Dprogressmeter.c40 #include "atomicio.h"
225 atomicio(vwrite, STDOUT_FILENO, buf, win_size - 1);
281 atomicio(vwrite, STDOUT_FILENO, "\n", 1);
H A Dauthfd.c64 #include "atomicio.h"
137 if (atomicio(vwrite, auth->fd, buf, 4) != 4 ||
138 atomicio(vwrite, auth->fd, buffer_ptr(request),
147 if (atomicio(read, auth->fd, buf, 4) != 4) {
163 if (atomicio(read, auth->fd, buf, l) != l) {
H A Dssh-keyscan.c45 #include "atomicio.h"
411 (n = atomicio(read, s, cp, 1)) == 1 && *cp != '\n') {
464 if (atomicio(vwrite, s, buf, n) != (size_t)n) {
488 n = atomicio(read, s, c->c_data + c->c_off, c->c_len - c->c_off);
H A Dmonitor_wrap.c71 #include "atomicio.h"
111 if (atomicio(vwrite, mon->m_log_sendfd, buffer_ptr(&log_msg),
137 if (atomicio(vwrite, sock, buf, sizeof(buf)) != sizeof(buf))
139 if (atomicio(vwrite, sock, buffer_ptr(m), mlen) != mlen)
151 if (atomicio(read, sock, buf, sizeof(buf)) != sizeof(buf)) {
161 if (atomicio(read, sock, buffer_ptr(m), msg_len) != msg_len)
H A Dauth2.c39 #include "atomicio.h"
131 n = atomicio(read, fd, banner, len);
H A Dclientloop.c108 #include "atomicio.h"
691 atomicio(vwrite, fileno(stdout), buffer_ptr(bout),
694 atomicio(vwrite, fileno(stderr), buffer_ptr(berr),
1718 len = atomicio(vwrite, fileno(stdout),
1728 len = atomicio(vwrite, fileno(stderr),
H A Dauthfile.c70 #include "atomicio.h"
227 if (atomicio(vwrite, fd, buffer_ptr(keybuf),
345 if ((len = atomicio(read, fd, buf, sizeof(buf))) == 0) {
H A Dssh_namespace.h21 #define atomicio ssh_atomicio macro
H A Dsshd.c117 #include "atomicio.h"
495 (void) atomicio(vwrite, sock_out, s, strlen(s));
556 (void) atomicio(vwrite, sock_out, s, strlen(s));
H A Dmonitor.c62 #include "atomicio.h"
523 if (atomicio(read, pmonitor->m_log_recvfd,
541 if (atomicio(read, pmonitor->m_log_recvfd,
H A Dsftp-client.c51 #include "atomicio.h"
1152 atomicio(vwrite, local_fd, data, len) != len) &&
1449 * Can't use atomicio here because it returns 0 on EOF,
/freebsd-10.0-release/usr.bin/nc/
H A DMakefile6 SRCS= netcat.c atomicio.c socks.c
/freebsd-10.0-release/secure/lib/libssh/
H A DMakefile14 atomicio.c key.c dispatch.c kex.c mac.c uidswap.c uuencode.c misc.c \

Completed in 607 milliseconds

12