Home
last modified time | relevance | path

Searched refs:atomicio (Results 1 – 25 of 43) sorted by relevance

12

/freebsd/contrib/netcat/
H A Dsocks.c98 if (atomicio(read, fd, buf + off, 1) != 1) in proxy_read_line()
168 cnt = atomicio(vwrite, proxyfd, buf, 3); in socks_connect()
172 cnt = atomicio(read, proxyfd, buf, 2); in socks_connect()
221 cnt = atomicio(vwrite, proxyfd, buf, wlen); in socks_connect()
225 cnt = atomicio(read, proxyfd, buf, 4); in socks_connect()
232 cnt = atomicio(read, proxyfd, buf + 4, 6); in socks_connect()
237 cnt = atomicio(read, proxyfd, buf + 4, 18); in socks_connect()
257 cnt = atomicio(vwrite, proxyfd, buf, wlen); in socks_connect()
261 cnt = atomicio(read, proxyfd, buf, 8); in socks_connect()
287 cnt = atomicio(vwrite, proxyfd, buf, r); in socks_connect()
[all …]
H A Datomicio.h35 size_t atomicio(ssize_t (*)(int, void *, size_t), int, void *, size_t);
H A Datomicio.c39 atomicio(ssize_t (*f) (int, void *, size_t), int fd, void *_s, size_t n) in atomicio() function
/freebsd/crypto/openssh/
H A Dmsg.c54 if (atomicio(vwrite, fd, buf, sizeof(buf)) != sizeof(buf)) { in ssh_msg_send()
58 if (atomicio(vwrite, fd, sshbuf_mutable_ptr(m), mlen) != mlen) { in ssh_msg_send()
75 if (atomicio(read, fd, buf, sizeof(buf)) != sizeof(buf)) { in ssh_msg_recv()
90 if (atomicio(read, fd, p, msg_len) != msg_len) { in ssh_msg_recv()
H A Dscp.c749 (void) atomicio(vwrite, fd, buf, strlen(buf)); in do_times()
1451 (void) atomicio(vwrite, remout, buf, strlen(buf)); in source()
1469 if ((nr = atomicio(read, fd, in source()
1477 (void)atomicio(vwrite, remout, bp->buf, amt); in source()
1493 (void) atomicio(vwrite, remout, "", 1); in source()
1528 (void) atomicio(vwrite, remout, path, strlen(path)); in rsource()
1547 (void) atomicio(vwrite, remout, "E\n", 2); in rsource()
1697 (void) atomicio(vwrite, remout, "", 1);
1710 if (atomicio(read, remin, cp, 1) != 1)
1715 if (atomicio(read, remin, &ch, sizeof(ch)) != sizeof(ch))
[all …]
H A Dsshbuf-io.c52 if ((len = atomicio(read, fd, buf, sizeof(buf))) == 0) { in sshbuf_load_fd()
107 if (atomicio(vwrite, fd, sshbuf_mutable_ptr(buf), in sshbuf_write_file()
H A Dloginrec.c875 if (atomicio(read, fd, &old_ut, sizeof(old_ut)) == sizeof(old_ut) && in utmp_write_direct()
892 if (atomicio(vwrite, fd, ut, sizeof(*ut)) != sizeof(*ut)) { in utmp_write_direct()
1086 if (atomicio(vwrite, fd, ut, sizeof(*ut)) != sizeof(*ut)) { in wtmp_write()
1194 if (atomicio(read, fd, &ut, sizeof(ut)) != sizeof(ut)) { in wtmp_get_entry()
1259 if (atomicio(vwrite, fd, utx, sizeof(*utx)) != sizeof(*utx)) { in wtmpx_write()
1359 if (atomicio(read, fd, &utx, sizeof(utx)) != sizeof(utx)) { in wtmpx_get_entry()
1537 if (atomicio(vwrite, fd, &last, sizeof(last)) != sizeof(last)) { in lastlog_write_entry()
1580 ret = atomicio(read, fd, &last, sizeof(last)); in lastlog_get_entry()
1686 if (atomicio(vwrite, fd, &ut, sizeof(ut)) != sizeof(ut)) { in record_failed_login()
H A Dprogressmeter.c234 atomicio(vwrite, STDOUT_FILENO, obuf, strlen(obuf)); in refresh_progress_meter()
279 atomicio(vwrite, STDOUT_FILENO, "\n", 1); in stop_progress_meter()
H A Datomicio.h40 size_t atomicio(ssize_t (*)(int, void *, size_t), int, void *, size_t);
H A Dauthfd.c149 if (atomicio(vwrite, sock, buf, 4) != 4 || in ssh_request_reply()
150 atomicio(vwrite, sock, sshbuf_mutable_ptr(request), in ssh_request_reply()
157 if (atomicio(read, sock, buf, 4) != 4) in ssh_request_reply()
171 if (atomicio(read, sock, buf, l) != l) in ssh_request_reply()
H A Dssh-pkcs11-client.c193 if (atomicio(vwrite, fd, buf, 4) != 4 || in send_msg()
194 atomicio(vwrite, fd, sshbuf_mutable_ptr(m), in send_msg()
211 if ((len = atomicio(read, fd, buf, 4)) != 4) { in recv_msg()
223 if (atomicio(read, fd, buf, l) != l) { in recv_msg()
H A Dmonitor_wrap.c108 if (atomicio(vwrite, mon->m_log_sendfd, in mm_log_handler()
167 if (atomicio(vwrite, sock, buf, sizeof(buf)) != sizeof(buf) || in mm_request_send()
168 atomicio(vwrite, sock, sshbuf_mutable_ptr(m), mlen) != mlen) { in mm_request_send()
187 if (atomicio(read, sock, buf, sizeof(buf)) != sizeof(buf)) { in mm_request_receive()
201 if (atomicio(read, sock, p, msg_len) != msg_len) { in mm_request_receive()
H A Datomicio.c96 atomicio(ssize_t (*f) (int, void *, size_t), int fd, void *_s, size_t n) in atomicio() function
/freebsd/crypto/openssh/regress/
H A Dnetcat.c1090 if (atomicio(vwrite, nfd, obuf, 3) != 3) in atelnet()
1443 if (atomicio(read, fd, buf + off, 1) != 1) in proxy_read_line()
1513 cnt = atomicio(vwrite, proxyfd, buf, 3); in socks_connect()
1517 cnt = atomicio(read, proxyfd, buf, 2); in socks_connect()
1566 cnt = atomicio(vwrite, proxyfd, buf, wlen); in socks_connect()
1570 cnt = atomicio(read, proxyfd, buf, 4); in socks_connect()
1577 cnt = atomicio(read, proxyfd, buf + 4, 6); in socks_connect()
1582 cnt = atomicio(read, proxyfd, buf + 4, 18); in socks_connect()
1602 cnt = atomicio(vwrite, proxyfd, buf, wlen); in socks_connect()
1606 cnt = atomicio(read, proxyfd, buf, 8); in socks_connect()
[all …]
/freebsd/crypto/openssh/openbsd-compat/
H A Dport-prngd.c119 if (atomicio(vwrite, fd, msg, sizeof(msg)) != sizeof(msg)) { in get_random_bytes_prngd()
130 if (atomicio(read, fd, buf, len) != (size_t)len) { in get_random_bytes_prngd()
/freebsd/crypto/openssh/regress/unittests/utf8/
H A DMakefile7 SRCS+=utf8.c atomicio.c
/freebsd/crypto/openssh/regress/unittests/bitmap/
H A DMakefile7 SRCS+=bitmap.c atomicio.c
/freebsd/usr.bin/nc/
H A DMakefile6 SRCS= netcat.c atomicio.c socks.c
/freebsd/crypto/openssh/regress/unittests/conversion/
H A DMakefile8 SRCS+=atomicio.c misc.c xmalloc.c log.c uidswap.c cleanup.c fatal.c ssherr.c
/freebsd/crypto/openssh/regress/unittests/match/
H A DMakefile9 SRCS+=cleanup.c atomicio.c addr.c
/freebsd/crypto/openssh/regress/unittests/sshbuf/
H A DMakefile17 SRCS+=sshbuf-io.c atomicio.c misc.c xmalloc.c log.c fatal.c ssherr.c cleanup.c
/freebsd/crypto/openssh/regress/unittests/sshsig/
H A DMakefile8 SRCS+=sshbuf-io.c atomicio.c sshkey.c authfile.c cipher.c log.c ssh-rsa.c
/freebsd/crypto/openssh/regress/unittests/hostkeys/
H A DMakefile8 SRCS+=sshbuf-io.c atomicio.c sshkey.c authfile.c cipher.c log.c ssh-rsa.c
/freebsd/crypto/openssh/regress/unittests/sshkey/
H A DMakefile8 SRCS+=sshbuf-io.c atomicio.c sshkey.c authfile.c cipher.c log.c ssh-rsa.c
/freebsd/crypto/openssh/regress/unittests/kex/
H A DMakefile8 SRCS+=sshbuf-io.c atomicio.c sshkey.c authfile.c cipher.c log.c ssh-rsa.c

12