Home
last modified time | relevance | path

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

12

/external/openssh/
Dmsg.c53 if (atomicio(vwrite, fd, buf, sizeof(buf)) != sizeof(buf)) { in ssh_msg_send()
57 if (atomicio(vwrite, fd, buffer_ptr(m), mlen) != mlen) { in ssh_msg_send()
72 if (atomicio(read, fd, buf, sizeof(buf)) != sizeof(buf)) { in ssh_msg_recv()
84 if (atomicio(read, fd, buffer_ptr(m), msg_len) != msg_len) { in ssh_msg_recv()
Dscp.c786 (void) atomicio(vwrite, remout, buf, strlen(buf)); in source()
797 (void) atomicio(vwrite, remout, buf, strlen(buf)); in source()
815 if (atomicio(read, fd, bp->buf, amt) != amt) in source()
820 (void)atomicio(vwrite, remout, bp->buf, amt); in source()
837 (void) atomicio(vwrite, remout, "", 1); in source()
864 (void) atomicio(vwrite, remout, path, strlen(path)); in rsource()
874 (void) atomicio(vwrite, remout, path, strlen(path)); in rsource()
893 (void) atomicio(vwrite, remout, "E\n", 2); in rsource()
931 (void) atomicio(vwrite, remout, "", 1);
936 if (atomicio(read, remin, cp, 1) != 1)
[all …]
Dssh-pkcs11-client.c55 if (atomicio(vwrite, fd, buf, 4) != 4 || in send_msg()
56 atomicio(vwrite, fd, buffer_ptr(m), in send_msg()
68 if ((len = atomicio(read, fd, buf, 4)) != 4) { in recv_msg()
81 if (atomicio(read, fd, buf, l) != l) { in recv_msg()
Dsandbox-systrace.c103 if (atomicio(vwrite, box->child_sock, &whatever, 1) != 1) in ssh_sandbox_child()
106 if (atomicio(read, box->child_sock, &whatever, 1) != 1) in ssh_sandbox_child()
124 if (atomicio(read, box->parent_sock, &whatever, 1) != 1) in ssh_sandbox_parent()
177 if (atomicio(vwrite, box->parent_sock, &whatever, 1) != 1) in ssh_sandbox_parent()
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()
Dentropy.c133 if (atomicio(vwrite, fd, msg, sizeof(msg)) != sizeof(msg)) { in get_random_bytes_prngd()
144 if (atomicio(read, fd, buf, len) != (size_t)len) { in get_random_bytes_prngd()
Dloginrec.c890 if (atomicio(read, fd, &old_ut, sizeof(old_ut)) == sizeof(old_ut) && in utmp_write_direct()
907 if (atomicio(vwrite, fd, ut, sizeof(*ut)) != sizeof(*ut)) { in utmp_write_direct()
1101 if (atomicio(vwrite, fd, ut, sizeof(*ut)) != sizeof(*ut)) { in wtmp_write()
1209 if (atomicio(read, fd, &ut, sizeof(ut)) != sizeof(ut)) { in wtmp_get_entry()
1274 if (atomicio(vwrite, fd, utx, sizeof(*utx)) != sizeof(*utx)) { in wtmpx_write()
1374 if (atomicio(read, fd, &utx, sizeof(utx)) != sizeof(utx)) { in wtmpx_get_entry()
1552 if (atomicio(vwrite, fd, &last, sizeof(last)) != sizeof(last)) { in lastlog_write_entry()
1595 ret = atomicio(read, fd, &last, sizeof(last)); in lastlog_get_entry()
1720 if (atomicio(vwrite, fd, &ut, sizeof(ut)) != sizeof(ut)) in record_failed_login()
Datomicio.h38 size_t atomicio(ssize_t (*)(int, void *, size_t), int, void *, size_t);
Dprogressmeter.c225 atomicio(vwrite, STDOUT_FILENO, buf, win_size - 1); in refresh_progress_meter()
281 atomicio(vwrite, STDOUT_FILENO, "\n", 1); in stop_progress_meter()
Dauthfd.c137 if (atomicio(vwrite, auth->fd, buf, 4) != 4 || in ssh_request_reply()
138 atomicio(vwrite, auth->fd, buffer_ptr(request), in ssh_request_reply()
147 if (atomicio(read, auth->fd, buf, 4) != 4) { in ssh_request_reply()
163 if (atomicio(read, auth->fd, buf, l) != l) { in ssh_request_reply()
Datomicio.c87 atomicio(ssize_t (*f) (int, void *, size_t), int fd, void *_s, size_t n) in atomicio() function
Dssh-keyscan.c411 (n = atomicio(read, s, cp, 1)) == 1 && *cp != '\n') { in congreet()
464 if (atomicio(vwrite, s, buf, n) != (size_t)n) { in congreet()
488 n = atomicio(read, s, c->c_data + c->c_off, c->c_len - c->c_off); in conread()
/external/dropbear/
Dscp.c646 (void) atomicio(vwrite, remout, buf, strlen(buf)); in source()
657 (void) atomicio(vwrite, remout, buf, strlen(buf)); in source()
677 result = atomicio(read, fd, bp->buf, amt); in source()
682 (void) atomicio(vwrite, remout, bp->buf, amt); in source()
684 result = atomicio(vwrite, remout, bp->buf, amt); in source()
705 (void) atomicio(vwrite, remout, "", 1); in source()
732 (void) atomicio(vwrite, remout, path, strlen(path)); in rsource()
742 (void) atomicio(vwrite, remout, path, strlen(path)); in rsource()
761 (void) atomicio(vwrite, remout, "E\n", 2); in rsource()
854 (void) atomicio(vwrite, remout, "", 1);
[all …]
DAndroid.mk9 atomicio.c compat.c fake-rfc2553.c
37 scp.c progressmeter.c atomicio.c scpmisc.c
Datomicio.h36 ssize_t atomicio(ssize_t (*)(), int, void *, size_t);
Dloginrec.c718 if (atomicio(read, fd, &old_ut, sizeof(old_ut)) == sizeof(old_ut) && in utmp_write_direct()
726 if (atomicio(write, fd, ut, sizeof(*ut)) != sizeof(*ut)) in utmp_write_direct()
915 if (atomicio(write, fd, ut, sizeof(*ut)) != sizeof(*ut)) { in wtmp_write()
1022 if (atomicio(read, fd, &ut, sizeof(ut)) != sizeof(ut)) { in wtmp_get_entry()
1082 if (atomicio(write, fd, utx, sizeof(*utx)) != sizeof(*utx)) { in wtmpx_write()
1178 if (atomicio(read, fd, &utx, sizeof(utx)) != sizeof(utx)) { in wtmpx_get_entry()
1371 if (atomicio(write, fd, &last, sizeof(last)) != sizeof(last)) { in lastlog_perform_login()
Datomicio.c36 atomicio(f, fd, _s, n)
DLICENSE52 atomicio.h
53 atomicio.c
57 loginrec is written primarily by Andre Lucas, atomicio.c by Theo de Raadt.
DNOTICE52 atomicio.h
53 atomicio.c
57 loginrec is written primarily by Andre Lucas, atomicio.c by Theo de Raadt.
Dprogressmeter.c215 atomicio(vwrite, STDOUT_FILENO, buf, win_size - 1); in refresh_progress_meter()
270 atomicio(vwrite, STDOUT_FILENO, "\n", 1); in stop_progress_meter()
DMakefile.in23 atomicio.o compat.o fake-rfc2553.o
43 SCPOBJS=scp.o progressmeter.o atomicio.o scpmisc.o
49 loginrec.h atomicio.h x11fwd.h agentfwd.h tcpfwd.h compat.h \
/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 $ */

12