/dragonfly/crypto/openssh/ |
H A D | atomicio.c | 106 const struct iovec *_iov, int iovcnt, in atomiciov6() argument 114 if (iovcnt < 0 || iovcnt > IOV_MAX) { in atomiciov6() 119 memcpy(iov, _iov, (size_t)iovcnt * sizeof(*_iov)); in atomiciov6() 127 for (; iovcnt > 0 && iov[0].iov_len > 0;) { in atomiciov6() 128 res = (f) (fd, iov, iovcnt); in atomiciov6() 150 while (iovcnt > 0 && rem >= iov[0].iov_len) { in atomiciov6() 153 iovcnt--; in atomiciov6() 156 if (rem > 0 && (iovcnt <= 0 || rem > iov[0].iov_len)) { in atomiciov6() 160 if (iovcnt == 0) in atomiciov6() 176 const struct iovec *_iov, int iovcnt) in atomiciov() argument [all …]
|
H A D | atomicio.h | 49 const struct iovec *_iov, int iovcnt, int (*cb)(void *, size_t), void *);
|
/dragonfly/usr.bin/wall/ |
H A D | ttymsg.c | 56 ttymsg(struct iovec *iov, int iovcnt, const char *line, int tmout) in ttymsg() argument 67 if (iovcnt > (int)(sizeof(localiov) / sizeof(localiov[0]))) in ttymsg() 93 for (cnt = 0, left = 0; cnt < iovcnt; ++cnt) in ttymsg() 97 wret = writev(fd, iov, iovcnt); in ttymsg() 104 iovcnt * sizeof(struct iovec)); in ttymsg() 110 --iovcnt; in ttymsg()
|
/dragonfly/usr.sbin/clog/ |
H A D | clog.c | 129 int iovcnt = 0; in read_log() local 157 iovcnt = 0; in read_log() 159 iov[iovcnt].iov_base = pbuffer + start; in read_log() 160 iov[iovcnt++].iov_len = pcf->cf_max - start; in read_log() 163 iov[iovcnt].iov_base = pbuffer + start; in read_log() 164 iov[iovcnt++].iov_len = next - start; in read_log() 165 if (writev(1,iov,iovcnt)==-1) { in read_log()
|
/dragonfly/sbin/dhclient/ |
H A D | errwarn.c | 211 size_t iovcnt; in parse_warn() local 235 iovcnt = 4; in parse_warn() 241 iovcnt += 2; in parse_warn() 243 writev(STDERR_FILENO, iov, iovcnt); in parse_warn()
|
/dragonfly/lib/libc/sys/ |
H A D | preadv.c | 43 preadv(int fd, const struct iovec *iovp, int iovcnt, off_t offset) in preadv() argument 45 return (extpreadv(fd, iovp, iovcnt, 0, offset)); in preadv()
|
H A D | pwritev.c | 43 pwritev(int fd, const struct iovec *iovp, int iovcnt, off_t offset) in pwritev() argument 45 return (extpwritev(fd, iovp, iovcnt, 0, offset)); in pwritev()
|
/dragonfly/contrib/tnftp/src/ |
H A D | ssl.c | 102 fetch_writev(struct fetch_connect *conn, struct iovec *iov, int iovcnt) in fetch_writev() argument 117 while (iovcnt > 0) { in fetch_writev() 145 len = writev(fd, iov, iovcnt); in fetch_writev() 158 while (iovcnt > 0 && len >= (ssize_t)iov->iov_len) { in fetch_writev() 161 iovcnt--; in fetch_writev() 163 if (iovcnt > 0) { in fetch_writev()
|
/dragonfly/usr.sbin/rtadvd/ |
H A D | control.c | 175 int iovcnt; in cm_send() local 184 iovcnt = 1; in cm_send() 189 iovcnt++; in cm_send() 197 cm->cm_type, iovcnt, iov_len_total); in cm_send() 199 len = writev(fd, iov, iovcnt); in cm_send()
|
/dragonfly/lib/libdmsg/ |
H A D | msg.c | 1266 int iovcnt; in dmsg_iocom_flush2() local 1281 iovcnt = 0; in dmsg_iocom_flush2() 1297 iov[iovcnt].iov_len = maxlen; in dmsg_iocom_flush2() 1299 ++iovcnt; in dmsg_iocom_flush2() 1300 if (iovcnt == DMSG_IOQ_MAXIOVEC || in dmsg_iocom_flush2() 1312 iov[iovcnt].iov_len = maxlen; in dmsg_iocom_flush2() 1314 ++iovcnt; in dmsg_iocom_flush2() 1315 if (iovcnt == DMSG_IOQ_MAXIOVEC || in dmsg_iocom_flush2() 1378 iovcnt = dmsg_crypto_encrypt(iocom, ioq, iov, iovcnt, &nact); in dmsg_iocom_flush2() 1379 n = writev(iocom->sock_fd, iov, iovcnt); in dmsg_iocom_flush2() [all …]
|
/dragonfly/lib/libthread_xu/thread/ |
H A D | thr_syscalls.c | 518 __readv(int fd, const struct iovec *iov, int iovcnt) in __readv() argument 525 ret = __sys_readv(fd, iov, iovcnt); in __readv() 745 __writev(int fd, const struct iovec *iov, int iovcnt) in __writev() argument 752 ret = __sys_writev(fd, iov, iovcnt); in __writev()
|
/dragonfly/sys/kern/ |
H A D | sys_generic.c | 192 error = iovec_copyin(uap->iovp, &iov, aiov, uap->iovcnt, in sys_readv() 197 auio.uio_iovcnt = uap->iovcnt; in sys_readv() 224 error = iovec_copyin(uap->iovp, &iov, aiov, uap->iovcnt, in sys_extpreadv() 229 auio.uio_iovcnt = uap->iovcnt; in sys_extpreadv() 396 error = iovec_copyin(uap->iovp, &iov, aiov, uap->iovcnt, in sys_writev() 401 auio.uio_iovcnt = uap->iovcnt; in sys_writev() 428 error = iovec_copyin(uap->iovp, &iov, aiov, uap->iovcnt, in sys_extpwritev() 433 auio.uio_iovcnt = uap->iovcnt; in sys_extpwritev()
|
/dragonfly/lib/libfetch/ |
H A D | common.c | 1475 fetch_writev(conn_t *conn, struct iovec *iov, int iovcnt) in fetch_writev() argument 1491 while (iovcnt > 0) { in fetch_writev() 1520 wlen = writev(conn->sd, iov, iovcnt); in fetch_writev() 1534 while (iovcnt > 0 && wlen >= (ssize_t)iov->iov_len) { in fetch_writev() 1537 iovcnt--; in fetch_writev() 1539 if (iovcnt > 0) { in fetch_writev()
|
/dragonfly/sys/sys/ |
H A D | sysproto.h | 381 u_int iovcnt; char iovcnt_[PAD_(u_int)]; member 386 u_int iovcnt; char iovcnt_[PAD_(u_int)]; member 696 int iovcnt; char iovcnt_[PAD_(int)]; member 703 int iovcnt; char iovcnt_[PAD_(int)]; member
|