Home
last modified time | relevance | path

Searched refs:atomicio (Results 1 – 25 of 46) 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.c51 if (atomicio(vwrite, fd, buf, sizeof(buf)) != sizeof(buf)) { in ssh_msg_send()
55 if (atomicio(vwrite, fd, sshbuf_mutable_ptr(m), mlen) != mlen) { in ssh_msg_send()
72 if (atomicio(read, fd, buf, sizeof(buf)) != sizeof(buf)) { in ssh_msg_recv()
87 if (atomicio(read, fd, p, msg_len) != msg_len) { in ssh_msg_recv()
H A Dscp.c729 (void) atomicio(vwrite, fd, buf, strlen(buf)); in do_times()
1441 (void) atomicio(vwrite, remout, buf, strlen(buf)); in source()
1459 if ((nr = atomicio(read, fd, in source()
1467 (void)atomicio(vwrite, remout, bp->buf, amt); in source()
1483 (void) atomicio(vwrite, remout, "", 1); in source()
1518 (void) atomicio(vwrite, remout, path, strlen(path)); in rsource()
1537 (void) atomicio(vwrite, remout, "E\n", 2); in rsource()
1693 (void) atomicio(vwrite, remout, "", 1);
1706 if (atomicio(read, remin, cp, 1) != 1)
1711 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.c882 if (atomicio(read, fd, &old_ut, sizeof(old_ut)) == sizeof(old_ut) && in utmp_write_direct()
899 if (atomicio(vwrite, fd, ut, sizeof(*ut)) != sizeof(*ut)) { in utmp_write_direct()
1093 if (atomicio(vwrite, fd, ut, sizeof(*ut)) != sizeof(*ut)) { in wtmp_write()
1201 if (atomicio(read, fd, &ut, sizeof(ut)) != sizeof(ut)) { in wtmp_get_entry()
1266 if (atomicio(vwrite, fd, utx, sizeof(*utx)) != sizeof(*utx)) { in wtmpx_write()
1366 if (atomicio(read, fd, &utx, sizeof(utx)) != sizeof(utx)) { in wtmpx_get_entry()
1602 if (atomicio(vwrite, fd, &last, sizeof(last)) != sizeof(last)) { in lastlog_write_entry()
1645 ret = atomicio(read, fd, &last, sizeof(last)); in lastlog_get_entry()
1751 if (atomicio(vwrite, fd, &ut, sizeof(ut)) != sizeof(ut)) { in record_failed_login()
H A Dssh-pkcs11-client.c167 if (atomicio(vwrite, fd, buf, 4) != 4 || in send_msg()
168 atomicio(vwrite, fd, sshbuf_mutable_ptr(m), in send_msg()
185 if ((len = atomicio(read, fd, buf, 4)) != 4) { in recv_msg()
197 if (atomicio(read, fd, buf, l) != l) { in recv_msg()
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.c148 if (atomicio(vwrite, sock, buf, 4) != 4 || in ssh_request_reply()
149 atomicio(vwrite, sock, sshbuf_mutable_ptr(request), in ssh_request_reply()
156 if (atomicio(read, sock, buf, 4) != 4) in ssh_request_reply()
170 if (atomicio(read, sock, buf, l) != l) in ssh_request_reply()
/freebsd/crypto/openssh/regress/
H A Dnetcat.c1086 if (atomicio(vwrite, nfd, obuf, 3) != 3) in atelnet()
1439 if (atomicio(read, fd, buf + off, 1) != 1) in proxy_read_line()
1509 cnt = atomicio(vwrite, proxyfd, buf, 3); in socks_connect()
1513 cnt = atomicio(read, proxyfd, buf, 2); in socks_connect()
1562 cnt = atomicio(vwrite, proxyfd, buf, wlen); in socks_connect()
1566 cnt = atomicio(read, proxyfd, buf, 4); in socks_connect()
1573 cnt = atomicio(read, proxyfd, buf + 4, 6); in socks_connect()
1578 cnt = atomicio(read, proxyfd, buf + 4, 18); in socks_connect()
1612 cnt = atomicio(vwrite, proxyfd, buf, wlen); in socks_connect()
1616 cnt = atomicio(read, proxyfd, buf, 8); in socks_connect()
[all …]
/freebsd/crypto/openssh/openbsd-compat/
H A Dport-prngd.c117 if (atomicio(vwrite, fd, msg, sizeof(msg)) != sizeof(msg)) { in get_random_bytes_prngd()
128 if (atomicio(read, fd, buf, len) != (size_t)len) { in get_random_bytes_prngd()
/freebsd/usr.bin/nc/
H A DMakefile6 SRCS= netcat.c atomicio.c socks.c
/freebsd/crypto/openssh/regress/unittests/bitmap/
H A DMakefile7 SRCS+=bitmap.c atomicio.c misc.c xmalloc.c fatal.c log.c cleanup.c match.c
/freebsd/crypto/openssh/regress/unittests/utf8/
H A DMakefile7 SRCS+=utf8.c atomicio.c misc.c xmalloc.c match.c ssherr.c cleanup.c fatal.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 ssherr-libcrypto.c
/freebsd/crypto/openssh/regress/unittests/sshbuf/
H A DMakefile15 SRCS+=sshbuf-io.c atomicio.c misc.c xmalloc.c log.c fatal.c ssherr.c cleanup.c
/freebsd/crypto/openssh/regress/unittests/misc/
H A DMakefile28 SRCS+= atomicio.c cleanup.c fatal.c ssherr-libcrypto.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/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/authopt/
H A DMakefile10 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/kex/
H A DMakefile8 SRCS+=sshbuf-io.c atomicio.c sshkey.c authfile.c cipher.c log.c ssh-rsa.c

12