/titanic_50/usr/src/cmd/cmd-inet/usr.bin/nc/ |
H A D | socks.c | 114 if (atomicio(read, fd, buf + off, 1) != 1) in proxy_read_line() 192 cnt = atomicio(vwrite, proxyfd, buf, 3); in socks_connect() 196 cnt = atomicio(read, proxyfd, buf, 2); in socks_connect() 251 cnt = atomicio(vwrite, proxyfd, buf, wlen); in socks_connect() 260 cnt = atomicio(read, proxyfd, buf, 10); in socks_connect() 278 cnt = atomicio(vwrite, proxyfd, buf, wlen); in socks_connect() 286 cnt = atomicio(read, proxyfd, buf, 8); in socks_connect() 312 cnt = atomicio(vwrite, proxyfd, buf, r); in socks_connect() 332 if ((cnt = atomicio(vwrite, proxyfd, buf, r)) != r) in socks_connect() 337 if ((r = atomicio(vwrite, proxyfd, "\r\n", 2)) != 2) in socks_connect()
|
H A D | atomicio.h | 37 size_t atomicio(ssize_t (*)(int, void *, size_t), int, void *, size_t);
|
H A D | Makefile | 27 OBJS= atomicio.o netcat.o socks.o strtonum.o
|
H A D | atomicio.c | 44 atomicio(ssize_t (*f) (int, void *, size_t), int fd, void *_s, size_t n) in atomicio() function
|
H A D | netcat.c | 708 if (atomicio(vwrite, lfd, buf, n) != n) in readwrite() 728 if (atomicio(vwrite, nfd, buf, n) != n) in readwrite() 761 if (atomicio(vwrite, nfd, obuf, 3) != 3) in atelnet()
|
/titanic_50/usr/src/cmd/ssh/libssh/common/ |
H A D | msg.c | 45 if (atomicio(write, fd, buf, sizeof(buf)) != sizeof(buf)) in ssh_msg_send() 47 if (atomicio(write, fd, buffer_ptr(m), mlen) != mlen) in ssh_msg_send() 60 res = atomicio(read, fd, buf, sizeof(buf)); in ssh_msg_recv() 71 res = atomicio(read, fd, buffer_ptr(m), msg_len); in ssh_msg_recv()
|
H A D | progressmeter.c | 228 atomicio(vwrite, STDOUT_FILENO, buf, win_size - 1); in refresh_progress_meter() 284 atomicio(vwrite, STDOUT_FILENO, "\n", 1); in stop_progress_meter()
|
H A D | atomicio.c | 39 atomicio(f, fd, _s, n)
|
H A D | entropy.c | 109 ret = atomicio(read, p[0], buf, sizeof(buf)); in seed_rng()
|
H A D | authfd.c | 125 if (atomicio(write, auth->fd, buf, 4) != 4 || in ssh_request_reply() 126 atomicio(write, auth->fd, buffer_ptr(request), in ssh_request_reply()
|
H A D | llib-lssh | 30 #include <atomicio.h>
|
/titanic_50/usr/src/cmd/ssh/scp/ |
H A D | scp.c | 637 (void) atomicio(write, remout, buf, strlen(buf)); 656 (void) atomicio(write, remout, buf, strlen(buf)); 673 result = atomicio(read, fd, bp->buf, amt); 678 (void) atomicio(write, remout, bp->buf, amt); 680 result = atomicio(write, remout, bp->buf, amt); 692 (void) atomicio(write, remout, "", 1); 721 (void) atomicio(write, remout, path, strlen(path)); 731 (void) atomicio(write, remout, path, strlen(path)); 752 (void) atomicio(write, remout, "E\n", 2); 790 (void) atomicio(write, remout, "", 1); [all …]
|
/titanic_50/usr/src/cmd/ssh/sshd/ |
H A D | loginrec.c | 803 if (atomicio(read, fd, &old_ut, sizeof(old_ut)) == sizeof(old_ut) && in utmp_write_direct() 811 if (atomicio(write, fd, ut, sizeof(*ut)) != sizeof(*ut)) in utmp_write_direct() 1012 if (atomicio(write, fd, ut, sizeof(*ut)) != sizeof(*ut)) { in wtmp_write() 1119 if (atomicio(read, fd, &ut, sizeof(ut)) != sizeof(ut)) { in wtmp_get_entry() 1179 if (atomicio(write, fd, utx, sizeof(*utx)) != sizeof(*utx)) { in wtmpx_write() 1276 if (atomicio(read, fd, &utx, sizeof(utx)) != sizeof(utx)) { 1469 if (atomicio(write, fd, &last, sizeof(last)) != sizeof(last)) { in lastlog_perform_login() 1510 ret = atomicio(read, fd, &last, sizeof(last)); in lastlog_get_entry()
|
H A D | altprivsep.c | 904 len = atomicio(write, pipe_fd, plen_buf, sizeof (plen)); in altprivsep_packet_send() 910 len = atomicio(write, pipe_fd, &padlen, sizeof (padlen)); in altprivsep_packet_send() 915 len = atomicio(write, pipe_fd, buffer_ptr(&to_monitor), plen - 1); in altprivsep_packet_send() 969 len = atomicio(read, pipe_fd, plen_buf, sizeof (plen)); in altprivsep_packet_read() 977 len = atomicio(read, pipe_fd, &padlen, sizeof (padlen)); in altprivsep_packet_read() 988 len = atomicio(read, pipe_fd, buffer_ptr(&from_monitor), plen); in altprivsep_packet_read()
|
H A D | auth2-none.c | 64 n = atomicio(read, fd, banner, len); in auth2_read_banner()
|
H A D | sshd.c | 531 if (atomicio(write, sock_out, server_version_string, in sshd_exchange_identification() 541 if (atomicio(read, sock_in, &buf[i], 1) != 1) { in sshd_exchange_identification() 570 (void) atomicio(write, sock_out, s, strlen(s)); in sshd_exchange_identification() 631 (void) atomicio(write, sock_out, s, strlen(s)); in sshd_exchange_identification()
|
/titanic_50/usr/src/cmd/ssh/include/ |
H A D | atomicio.h | 41 ssize_t atomicio(ssize_t (*)(), int, void *, size_t);
|
/titanic_50/usr/src/cmd/ssh/libssh/ |
H A D | Makefile.com | 30 atomicio.o \
|
/titanic_50/usr/src/cmd/ssh/libopenbsd-compat/common/ |
H A D | llib-lopenbsd-compat | 29 #include <atomicio.h>
|
/titanic_50/usr/src/cmd/ssh/sftp/ |
H A D | sftp-client.c | 100 if (atomicio(read, fd, buffer_ptr(m), 4) != 4) { in get_msg() 112 if (atomicio(read, fd, buffer_ptr(m), msg_len) != msg_len) { in get_msg() 908 atomicio(vwrite, local_fd, data, len) != len) && in do_download()
|
/titanic_50/usr/src/cmd/ssh/ssh/ |
H A D | sshconnect.c | 459 int len = atomicio(read, connection_in, &buf[i], 1); in ssh_exchange_identification() 537 if (atomicio(write, connection_out, buf, strlen(buf)) != strlen(buf)) in ssh_exchange_identification()
|
H A D | clientloop.c | 568 atomicio(write, fileno(stdout), buffer_ptr(bout), buffer_len(bout)); in client_suspend_self() 570 atomicio(write, fileno(stderr), buffer_ptr(berr), buffer_len(berr)); in client_suspend_self()
|
/titanic_50/usr/src/cmd/ssh/doc/ |
H A D | ChangeLog | 46 [atomicio.c] 49 [atomicio.c] 53 replace atomicio(read,...) with read(); ok deraadt@ 103 - (djm) Don't rely on atomicio's retval to determine length of askpass 815 - (djm) Handle EWOULDBLOCK returns from read() and write() in atomicio.c 840 - (djm) Use atomicio in loginrec 870 missing atomicio; report from Steve.Marquess@DET.AMEDD.ARMY.MIL 890 [atomicio.c auth-options.c auth-passwd.c auth-rh-rsa.c auth-rhosts.c] 929 missing atomicio, typo 1182 - more atomicio [all …]
|
/titanic_50/usr/src/cmd/ssh/ssh-keyscan/ |
H A D | ssh-keyscan.c | 556 if (atomicio(write, s, buf, n) != n) { in congreet()
|