Home
last modified time | relevance | path

Searched refs:iov (Results 1 – 11 of 11) sorted by relevance

/bionic/libc/stdio/
Dputs.c47 struct __siov iov[2]; in puts() local
50 iov[0].iov_base = (void *)s; in puts()
51 iov[0].iov_len = c; in puts()
52 iov[1].iov_base = "\n"; in puts()
53 iov[1].iov_len = 1; in puts()
55 uio.uio_iov = &iov[0]; in puts()
Dputw.c41 struct __siov iov; in putw() local
43 iov.iov_base = &w; in putw()
44 iov.iov_len = uio.uio_resid = sizeof(w); in putw()
45 uio.uio_iov = &iov; in putw()
Dfputs.c46 struct __siov iov; in fputs() local
49 iov.iov_base = (void *)s; in fputs()
50 iov.iov_len = uio.uio_resid = strlen(s); in fputs()
51 uio.uio_iov = &iov; in fputs()
Dfwrite.c47 struct __siov iov; in fwrite() local
50 iov.iov_base = (void *)buf; in fwrite()
51 uio.uio_resid = iov.iov_len = n = count * size; in fwrite()
52 uio.uio_iov = &iov; in fwrite()
Dfvwrite.c52 struct __siov *iov; in __sfvwrite() local
68 iov = uio->uio_iov; in __sfvwrite()
69 p = iov->iov_base; in __sfvwrite()
70 len = iov->iov_len; in __sfvwrite()
71 iov++; in __sfvwrite()
75 p = iov->iov_base; \ in __sfvwrite()
76 len = iov->iov_len; \ in __sfvwrite()
77 iov++; \ in __sfvwrite()
Dvfprintf.c203 struct __siov iov[NIOV];/* ... and individual io vectors */ in __vfprintf() local
233 iovp = iov; \ in __vfprintf()
249 iovp = iov; \ in __vfprintf()
325 uio.uio_iov = iovp = iov; in __vfprintf()
/bionic/libc/netbsd/resolv/
Dherror.c99 struct iovec iov[4], *v = iov; in herror() local
119 writev(STDERR_FILENO, iov, (v - iov) + 1); in herror()
Dres_send.c727 struct iovec iov[2]; in send_vc() local
803 iov[0] = evConsIovec(&len, INT16SZ); in send_vc()
805 iov[1] = evConsIovec(tmp, (size_t)buflen); in send_vc()
806 if (writev(statp->_vcsock, iov, 2) != (INT16SZ + buflen)) { in send_vc()
/bionic/libc/unistd/
Dsyslog.c230 struct iovec iov[2]; in vsyslog_r() local
232 iov[0].iov_base = stdp; in vsyslog_r()
233 iov[0].iov_len = cnt - (stdp - tbuf); in vsyslog_r()
234 iov[1].iov_base = "\n"; in vsyslog_r()
235 iov[1].iov_len = 1; in vsyslog_r()
236 (void)writev(STDERR_FILENO, iov, 2); in vsyslog_r()
271 struct iovec iov[2]; in vsyslog_r() local
274 iov[0].iov_base = p; in vsyslog_r()
275 iov[0].iov_len = cnt - (p - tbuf); in vsyslog_r()
276 iov[1].iov_base = "\r\n"; in vsyslog_r()
[all …]
Dexec.c187 struct iovec iov[3]; in execvp() local
189 iov[0].iov_base = "execvp: "; in execvp()
190 iov[0].iov_len = 8; in execvp()
191 iov[1].iov_base = p; in execvp()
192 iov[1].iov_len = lp; in execvp()
193 iov[2].iov_base = ": path too long\n"; in execvp()
194 iov[2].iov_len = 16; in execvp()
195 (void)writev(STDERR_FILENO, iov, 3); in execvp()
/bionic/libc/netbsd/isc/
Dev_streams.c42 static int copyvec(evStream *str, const struct iovec *iov, int iocnt);
61 evWrite(evContext opaqueCtx, int fd, const struct iovec *iov, int iocnt, in evWrite() argument
75 if (copyvec(new, iov, iocnt) < 0) in evWrite()
95 evRead(evContext opaqueCtx, int fd, const struct iovec *iov, int iocnt, in evRead() argument
109 if (copyvec(new, iov, iocnt) < 0) in evRead()
205 copyvec(evStream *str, const struct iovec *iov, int iocnt) { in copyvec() argument
215 str->iovOrig[i] = iov[i]; in copyvec()
216 str->ioTotal += iov[i].iov_len; in copyvec()