Home
last modified time | relevance | path

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

12

/freebsd-12.1/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-12.1/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()
74 if (atomicio(read, fd, buf, sizeof(buf)) != sizeof(buf)) { in ssh_msg_recv()
89 if (atomicio(read, fd, p, msg_len) != msg_len) { in ssh_msg_recv()
H A Dscp.c1135 if ((nr = atomicio(read, fd, in source()
1159 (void) atomicio(vwrite, remout, "", 1); in source()
1262 (void) atomicio(vwrite, remout, "", 1);
1275 if (atomicio(read, remin, cp, 1) != 1)
1292 (void) atomicio(vwrite, STDERR_FILENO,
1301 (void) atomicio(vwrite, remout, "", 1);
1335 (void) atomicio(vwrite, remout, "", 1);
1440 (void) atomicio(vwrite, remout, "", 1);
1473 if (atomicio(vwrite, ofd, bp->buf,
1537 (void) atomicio(vwrite, remout, "", 1);
[all …]
H A Dssh-pkcs11-client.c61 if (atomicio(vwrite, fd, buf, 4) != 4 || in send_msg()
62 atomicio(vwrite, fd, sshbuf_mutable_ptr(m), in send_msg()
76 if ((len = atomicio(read, fd, buf, 4)) != 4) { in recv_msg()
89 if (atomicio(read, fd, buf, l) != l) { in recv_msg()
H A Dloginrec.c887 if (atomicio(read, fd, &old_ut, sizeof(old_ut)) == sizeof(old_ut) && in utmp_write_direct()
904 if (atomicio(vwrite, fd, ut, sizeof(*ut)) != sizeof(*ut)) { in utmp_write_direct()
1098 if (atomicio(vwrite, fd, ut, sizeof(*ut)) != sizeof(*ut)) { in wtmp_write()
1206 if (atomicio(read, fd, &ut, sizeof(ut)) != sizeof(ut)) { in wtmp_get_entry()
1271 if (atomicio(vwrite, fd, utx, sizeof(*utx)) != sizeof(*utx)) { in wtmpx_write()
1371 if (atomicio(read, fd, &utx, sizeof(utx)) != sizeof(utx)) { in wtmpx_get_entry()
1549 if (atomicio(vwrite, fd, &last, sizeof(last)) != sizeof(last)) { in lastlog_write_entry()
1592 ret = atomicio(read, fd, &last, sizeof(last)); in lastlog_get_entry()
1717 if (atomicio(vwrite, fd, &ut, sizeof(ut)) != sizeof(ut)) in record_failed_login()
H A Dauthfd.c135 if (atomicio(vwrite, sock, buf, 4) != 4 || in ssh_request_reply()
136 atomicio(vwrite, sock, sshbuf_mutable_ptr(request), in ssh_request_reply()
143 if (atomicio(read, sock, buf, 4) != 4) in ssh_request_reply()
157 if (atomicio(read, sock, buf, l) != l) in ssh_request_reply()
H A Dentropy.c138 if (atomicio(vwrite, fd, msg, sizeof(msg)) != sizeof(msg)) { in get_random_bytes_prngd()
149 if (atomicio(read, fd, buf, len) != (size_t)len) { in get_random_bytes_prngd()
H A Dprogressmeter.c225 atomicio(vwrite, STDOUT_FILENO, buf, win_size - 1); in refresh_progress_meter()
282 atomicio(vwrite, STDOUT_FILENO, "\n", 1); in stop_progress_meter()
H A Datomicio.h38 size_t atomicio(ssize_t (*)(int, void *, size_t), int, void *, size_t);
H A Dmonitor_wrap.c105 if (atomicio(vwrite, mon->m_log_sendfd, in mm_log_handler()
133 if (atomicio(vwrite, sock, buf, sizeof(buf)) != sizeof(buf)) in mm_request_send()
135 if (atomicio(vwrite, sock, sshbuf_mutable_ptr(m), mlen) != mlen) in mm_request_send()
148 if (atomicio(read, sock, buf, sizeof(buf)) != sizeof(buf)) { in mm_request_receive()
159 if (atomicio(read, sock, p, msg_len) != msg_len) in mm_request_receive()
H A Dauthfile.c62 if (atomicio(vwrite, fd, sshbuf_mutable_ptr(keybuf), in sshkey_save_private_blob()
110 if ((len = atomicio(read, fd, buf, sizeof(buf))) == 0) { in sshkey_load_file()
H A Datomicio.c92 atomicio(ssize_t (*f) (int, void *, size_t), int fd, void *_s, size_t n) in atomicio() function
H A Dssh-keyscan.c460 if (atomicio(vwrite, s, buf, n) != (size_t)n) { in congreet()
471 (n = atomicio(read, s, cp, 1)) == 1 && *cp != '\n') { in congreet()
529 n = atomicio(read, s, c->c_data + c->c_off, c->c_len - c->c_off); in conread()
/freebsd-12.1/crypto/openssh/regress/
H A Dnetcat.c1081 if (atomicio(vwrite, nfd, obuf, 3) != 3) in atelnet()
1421 if (atomicio(read, fd, buf + off, 1) != 1) in proxy_read_line()
1491 cnt = atomicio(vwrite, proxyfd, buf, 3); in socks_connect()
1495 cnt = atomicio(read, proxyfd, buf, 2); in socks_connect()
1544 cnt = atomicio(vwrite, proxyfd, buf, wlen); in socks_connect()
1548 cnt = atomicio(read, proxyfd, buf, 4); in socks_connect()
1555 cnt = atomicio(read, proxyfd, buf + 4, 6); in socks_connect()
1560 cnt = atomicio(read, proxyfd, buf + 4, 18); in socks_connect()
1580 cnt = atomicio(vwrite, proxyfd, buf, wlen); in socks_connect()
1584 cnt = atomicio(read, proxyfd, buf, 8); in socks_connect()
[all …]
/freebsd-12.1/usr.bin/nc/
H A DMakefile6 SRCS= netcat.c atomicio.c socks.c
/freebsd-12.1/crypto/openssh/regress/unittests/bitmap/
H A DMakefile7 SRCS+=bitmap.c atomicio.c
/freebsd-12.1/crypto/openssh/regress/unittests/utf8/
H A DMakefile7 SRCS+=utf8.c atomicio.c
/freebsd-12.1/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-12.1/crypto/openssh/regress/unittests/sshbuf/
H A DMakefile17 SRCS+=atomicio.c
/freebsd-12.1/crypto/openssh/regress/unittests/match/
H A DMakefile9 SRCS+=cleanup.c atomicio.c
/freebsd-12.1/crypto/openssh/regress/unittests/hostkeys/
H A DMakefile8 SRCS+=atomicio.c sshkey.c authfile.c cipher.c log.c ssh-rsa.c ssh-dss.c
/freebsd-12.1/crypto/openssh/regress/unittests/sshkey/
H A DMakefile8 SRCS+=atomicio.c sshkey.c authfile.c cipher.c log.c ssh-rsa.c ssh-dss.c
/freebsd-12.1/crypto/openssh/regress/unittests/kex/
H A DMakefile8 SRCS+=atomicio.c sshkey.c authfile.c cipher.c log.c ssh-rsa.c ssh-dss.c

12