Home
last modified time | relevance | path

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

12

/external/openssh/
Dmsg.c54 if (atomicio(vwrite, fd, buf, sizeof(buf)) != sizeof(buf)) { in ssh_msg_send()
58 if (atomicio(vwrite, fd, (u_char *)sshbuf_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()
Dscp.c568 (void) atomicio(vwrite, fd, buf, strlen(buf)); in do_times()
806 (void) atomicio(vwrite, remout, buf, strlen(buf)); in source()
824 if ((nr = atomicio(read, fd, in source()
832 (void)atomicio(vwrite, remout, bp->buf, amt); in source()
850 (void) atomicio(vwrite, remout, "", 1); in source()
883 (void) atomicio(vwrite, remout, path, strlen(path)); in rsource()
902 (void) atomicio(vwrite, remout, "E\n", 2); in rsource()
941 (void) atomicio(vwrite, remout, "", 1);
946 if (atomicio(read, remin, cp, 1) != 1)
951 if (atomicio(read, remin, &ch, sizeof(ch)) != sizeof(ch))
[all …]
Droaming_common.c186 size_t ret = atomicio(f, fd, buf, count); in roaming_atomicio()
212 atomicio(vwrite, fd, out_buf + out_buf_size - chunkend, in resend_bytes()
214 atomicio(vwrite, fd, out_buf, out_last); in resend_bytes()
216 atomicio(vwrite, fd, out_buf + (out_last - needed), needed); in resend_bytes()
Dssh-pkcs11-client.c57 if (atomicio(vwrite, fd, buf, 4) != 4 || in send_msg()
58 atomicio(vwrite, fd, buffer_ptr(m), in send_msg()
70 if ((len = atomicio(read, fd, buf, 4)) != 4) { in recv_msg()
83 if (atomicio(read, fd, buf, l) != l) { in recv_msg()
Dloginrec.c889 if (atomicio(read, fd, &old_ut, sizeof(old_ut)) == sizeof(old_ut) && in utmp_write_direct()
906 if (atomicio(vwrite, fd, ut, sizeof(*ut)) != sizeof(*ut)) { in utmp_write_direct()
1100 if (atomicio(vwrite, fd, ut, sizeof(*ut)) != sizeof(*ut)) { in wtmp_write()
1208 if (atomicio(read, fd, &ut, sizeof(ut)) != sizeof(ut)) { in wtmp_get_entry()
1273 if (atomicio(vwrite, fd, utx, sizeof(*utx)) != sizeof(*utx)) { in wtmpx_write()
1373 if (atomicio(read, fd, &utx, sizeof(utx)) != sizeof(utx)) { in wtmpx_get_entry()
1551 if (atomicio(vwrite, fd, &last, sizeof(last)) != sizeof(last)) { in lastlog_write_entry()
1594 ret = atomicio(read, fd, &last, sizeof(last)); in lastlog_get_entry()
1719 if (atomicio(vwrite, fd, &ut, sizeof(ut)) != sizeof(ut)) in record_failed_login()
Dentropy.c137 if (atomicio(vwrite, fd, msg, sizeof(msg)) != sizeof(msg)) { in get_random_bytes_prngd()
148 if (atomicio(read, fd, buf, len) != (size_t)len) { in get_random_bytes_prngd()
Dprogressmeter.c226 atomicio(vwrite, STDOUT_FILENO, buf, win_size - 1); in refresh_progress_meter()
283 atomicio(vwrite, STDOUT_FILENO, "\n", 1); in stop_progress_meter()
Datomicio.h38 size_t atomicio(ssize_t (*)(int, void *, size_t), int, void *, size_t);
Dauthfd.c136 if (atomicio(vwrite, sock, buf, 4) != 4 || in ssh_request_reply()
137 atomicio(vwrite, sock, (u_char *)sshbuf_ptr(request), in ssh_request_reply()
144 if (atomicio(read, sock, buf, 4) != 4) in ssh_request_reply()
158 if (atomicio(read, sock, buf, l) != l) in ssh_request_reply()
Dmonitor_wrap.c115 if (atomicio(vwrite, mon->m_log_sendfd, buffer_ptr(&log_msg), in mm_log_handler()
141 if (atomicio(vwrite, sock, buf, sizeof(buf)) != sizeof(buf)) in mm_request_send()
143 if (atomicio(vwrite, sock, buffer_ptr(m), mlen) != mlen) in mm_request_send()
155 if (atomicio(read, sock, buf, sizeof(buf)) != sizeof(buf)) { in mm_request_receive()
167 if (atomicio(read, sock, buffer_ptr(m), msg_len) != msg_len) in mm_request_receive()
Datomicio.c92 atomicio(ssize_t (*f) (int, void *, size_t), int fd, void *_s, size_t n) in atomicio() function
Dauthfile.c63 if (atomicio(vwrite, fd, (u_char *)sshbuf_ptr(keybuf), in sshkey_save_private_blob()
111 if ((len = atomicio(read, fd, buf, sizeof(buf))) == 0) { in sshkey_load_file()
Dssh-keyscan.c443 (n = atomicio(read, s, cp, 1)) == 1 && *cp != '\n') { in congreet()
500 if (atomicio(vwrite, s, buf, n) != (size_t)n) { in congreet()
524 n = atomicio(read, s, c->c_data + c->c_off, c->c_len - c->c_off); in conread()
Dclientloop.c691 atomicio(vwrite, fileno(stdout), buffer_ptr(bout), in client_suspend_self()
694 atomicio(vwrite, fileno(stderr), buffer_ptr(berr), in client_suspend_self()
1707 len = atomicio(vwrite, fileno(stdout), in client_loop()
1717 len = atomicio(vwrite, fileno(stderr), in client_loop()
DAndroid.mk10 atomicio.c \
Dauth2.c124 n = atomicio(read, fd, banner, len); in auth2_read_banner()
Dmonitor.c518 if (atomicio(read, pmonitor->m_log_recvfd, in monitor_read_log()
536 if (atomicio(read, pmonitor->m_log_recvfd, in monitor_read_log()
Dsshd.c477 (void) atomicio(vwrite, sock_out, s, strlen(s)); in sshd_exchange_identification()
546 (void) atomicio(vwrite, sock_out, s, strlen(s)); in sshd_exchange_identification()
Dsftp-client.c1322 atomicio(vwrite, local_fd, data, len) != len) && in do_download()
Dssh-keygen.c2159 if (atomicio(vwrite, fd, (void *)sshbuf_ptr(kbuf), sshbuf_len(kbuf)) != in do_gen_krl()
/external/netcat/
Datomicio.h35 size_t atomicio(ssize_t (*)(int, void *, size_t), int, void *, size_t);
DAndroid.mk6 atomicio.c
Datomicio.c41 atomicio(ssize_t (*f) (int, void *, size_t), int fd, void *_s, size_t n) in atomicio() function
DNOTICE1 /* $OpenBSD: atomicio.c,v 1.10 2011/01/08 00:47:19 jeremy Exp $ */
29 /* $OpenBSD: atomicio.h,v 1.2 2007/09/07 14:50:44 tobias Exp $ */
Dnetcat.c800 if (atomicio(vwrite, lfd, buf, n) != n) in readwrite()
813 if (atomicio(vwrite, nfd, buf, n) != n) in readwrite()
846 if (atomicio(vwrite, nfd, obuf, 3) != 3) in atelnet()

12