| /freebsd-9-stable/sbin/mount_udf/ |
| D | mount_udf.c | 76 struct iovec iov[12]; in main() local 122 iov[i].iov_base = "fstype"; in main() 123 iov[i++].iov_len = sizeof("fstype"); in main() 124 iov[i].iov_base = "udf"; in main() 125 iov[i].iov_len = strlen(iov[i].iov_base) + 1; in main() 127 iov[i].iov_base = "fspath"; in main() 128 iov[i++].iov_len = sizeof("fspath"); in main() 129 iov[i].iov_base = mntpath; in main() 130 iov[i++].iov_len = strlen(mntpath) + 1; in main() 131 iov[i].iov_base = "from"; in main() [all …]
|
| /freebsd-9-stable/sys/kern/ |
| D | subr_uio.c | 161 struct iovec iov[1]; in physcopyin() local 165 iov[0].iov_base = src; in physcopyin() 166 iov[0].iov_len = len; in physcopyin() 167 uio.uio_iov = iov; in physcopyin() 182 struct iovec iov[1]; in physcopyout() local 186 iov[0].iov_base = dst; in physcopyout() 187 iov[0].iov_len = len; in physcopyout() 188 uio.uio_iov = iov; in physcopyout() 219 struct iovec *iov; in uiomove_faultflag() local 245 iov = uio->uio_iov; in uiomove_faultflag() [all …]
|
| /freebsd-9-stable/lib/libsdp/ |
| D | service.c | 50 struct iovec iov[4]; in sdp_register_service() local 72 iov[0].iov_base = (void *) &pdu; in sdp_register_service() 73 iov[0].iov_len = sizeof(pdu); in sdp_register_service() 75 iov[1].iov_base = (void *) &uuid; in sdp_register_service() 76 iov[1].iov_len = sizeof(uuid); in sdp_register_service() 78 iov[2].iov_base = (void *) bdaddr; in sdp_register_service() 79 iov[2].iov_len = sizeof(*bdaddr); in sdp_register_service() 81 iov[3].iov_base = (void *) data; in sdp_register_service() 82 iov[3].iov_len = datalen; in sdp_register_service() 85 len = writev(ss->s, iov, sizeof(iov)/sizeof(iov[0])); in sdp_register_service() [all …]
|
| /freebsd-9-stable/sys/opencrypto/ |
| D | criov.c | 53 if (off < iov->iov_len) \ 55 off -= iov->iov_len; \ 57 iov++; \ 64 struct iovec *iov = uio->uio_iov; in cuio_copydata() local 71 count = min(iov->iov_len - off, len); in cuio_copydata() 72 bcopy(((caddr_t)iov->iov_base) + off, cp, count); in cuio_copydata() 77 iov++; in cuio_copydata() 84 struct iovec *iov = uio->uio_iov; in cuio_copyback() local 91 count = min(iov->iov_len - off, len); in cuio_copyback() 92 bcopy(cp, ((caddr_t)iov->iov_base) + off, count); in cuio_copyback() [all …]
|
| /freebsd-9-stable/sbin/mount_nfs/ |
| D | mount_nfs.c | 133 static int fallback_mount(struct iovec *iov, int iovlen, int mntflags); 136 static int getnfsargs(char *, struct iovec **iov, int *iovlen); 144 char **errstr, struct iovec **iov, int *iovlen); 151 struct iovec *iov; in main() local 159 iov = NULL; in main() 181 build_iovec(&iov, &iovlen, "readahead", optarg, (size_t)-1); in main() 188 build_iovec(&iov, &iovlen, "noconn", NULL, 0); in main() 193 build_iovec(&iov, &iovlen, "deadthresh", optarg, (size_t)-1); in main() 197 build_iovec(&iov, &iovlen, "dumbtimer", NULL, 0); in main() 205 build_iovec(&iov, &iovlen, "maxgroups", optarg, (size_t)-1); in main() [all …]
|
| /freebsd-9-stable/cddl/compat/opensolaris/misc/ |
| D | zmount.c | 45 build_iovec(struct iovec **iov, int *iovlen, const char *name, void *val, in build_iovec() argument 53 *iov = realloc(*iov, sizeof(**iov) * (i + 2)); in build_iovec() 54 if (*iov == NULL) { in build_iovec() 58 (*iov)[i].iov_base = strdup(name); in build_iovec() 59 (*iov)[i].iov_len = strlen(name) + 1; in build_iovec() 61 (*iov)[i].iov_base = val; in build_iovec() 68 (*iov)[i].iov_len = (int)len; in build_iovec() 76 struct iovec *iov; in zmount() local 93 iov = NULL; in zmount() 96 build_iovec(&iov, &iovlen, "ro", NULL, 0); in zmount() [all …]
|
| /freebsd-9-stable/sbin/mount_msdosfs/ |
| D | mount_msdosfs.c | 64 static int set_charset(struct iovec **iov, int *iovlen, const char *, const char *); 69 struct iovec *iov = NULL; in main() local 88 build_iovec(&iov, &iovlen, "shortnames", NULL, (size_t)-1); in main() 91 build_iovec(&iov, &iovlen, "longnames", NULL, (size_t)-1); in main() 94 build_iovec_argf(&iov, &iovlen, "nowin95", "", (size_t)-1); in main() 120 build_iovec_argf(&iov, &iovlen, "cs_local", quirk); in main() 126 build_iovec_argf(&iov, &iovlen, "cs_dos", cs_dos, (size_t)-1); in main() 137 build_iovec(&iov, &iovlen, optarg, val, (size_t)-1); in main() 156 build_iovec(&iov, &iovlen, "cs_local", cs_local, (size_t)-1); in main() 157 build_iovec(&iov, &iovlen, "cs_dos", cs_dos, (size_t)-1); in main() [all …]
|
| /freebsd-9-stable/sys/mips/cavium/cryptocteon/ |
| D | cavium_crypto.c | 62 #define IOV_INIT(iov, ptr, idx, len) \ argument 65 (ptr) = (iov)[(idx)].iov_base; \ 66 (len) = (iov)[(idx)].iov_len; \ 76 #define IOV_CONSUME(iov, ptr, idx, len) \ argument 85 (ptr) = (iov)[(idx)].iov_base; \ 86 (len) = (iov)[(idx)].iov_len; \ 345 struct iovec *iov, size_t iovcnt, size_t iovlen, in octo_des_cbc_encrypt() argument 356 if (__predict_false(od == NULL || iov==NULL || iovlen==0 || ivp==NULL || in octo_des_cbc_encrypt() 360 "icv_off=%d ivp=%p\n", __func__, od, iov, iovlen, in octo_des_cbc_encrypt() 365 IOV_INIT(iov, data, data_i, data_l); in octo_des_cbc_encrypt() [all …]
|
| /freebsd-9-stable/sbin/mount_cd9660/ |
| D | mount_cd9660.c | 84 struct iovec *iov; in main() local 92 iov = NULL; in main() 100 build_iovec(&iov, &iovlen, "brokenjoliet", NULL, (size_t)-1); in main() 103 build_iovec(&iov, &iovlen, "extatt", NULL, (size_t)-1); in main() 106 build_iovec(&iov, &iovlen, "gens", NULL, (size_t)-1); in main() 109 build_iovec(&iov, &iovlen, "nojoliet", NULL, (size_t)-1); in main() 119 build_iovec(&iov, &iovlen, optarg, val, (size_t)-1); in main() 122 build_iovec(&iov, &iovlen, "norrip", NULL, (size_t)-1); in main() 131 if (set_charset(&iov, &iovlen, optarg) == -1) in main() 133 build_iovec(&iov, &iovlen, "kiconv", NULL, (size_t)-1); in main() [all …]
|
| /freebsd-9-stable/sbin/mount_std/ |
| D | mount_std.c | 79 struct iovec iov[4]; in main() local 117 iov[0].iov_base = "fstype"; in main() 118 iov[0].iov_len = sizeof("fstype"); in main() 119 iov[1].iov_base = fsname; in main() 120 iov[1].iov_len = strlen(iov[1].iov_base) + 1; in main() 121 iov[2].iov_base = "fspath"; in main() 122 iov[2].iov_len = sizeof("fspath"); in main() 123 iov[3].iov_base = mntpath; in main() 124 iov[3].iov_len = strlen(mntpath) + 1; in main() 136 error = nmount(iov, 4, mntflags); in main()
|
| /freebsd-9-stable/usr.bin/wall/ |
| D | ttymsg.c | 60 ttymsg(struct iovec *iov, int iovcnt, const char *line, int tmout) in ttymsg() argument 98 left += iov[cnt].iov_len; in ttymsg() 101 wret = writev(fd, iov, iovcnt); in ttymsg() 106 if (iov != localiov) { in ttymsg() 107 bcopy(iov, localiov, in ttymsg() 109 iov = localiov; in ttymsg() 111 for (cnt = 0; (size_t)wret >= iov->iov_len; ++cnt) { in ttymsg() 112 wret -= iov->iov_len; in ttymsg() 113 ++iov; in ttymsg() 117 iov->iov_base = (char *)iov->iov_base + wret; in ttymsg() [all …]
|
| /freebsd-9-stable/contrib/sendmail/libmilter/ |
| D | comm.c | 241 retry_writev(fd, iov, iovcnt, timeout) in retry_writev() argument 243 struct iovec *iov; 254 while (iovcnt > 0 && iov[0].iov_len == 0) 256 iov++; 280 n = writev(fd, iov, iovcnt); 291 if (iov[i].iov_len > (unsigned int) n) 293 iov[i].iov_base = (char *)iov[i].iov_base + n; 294 iov[i].iov_len -= (unsigned int) n; 297 n -= (int) iov[i].iov_len; 298 iov[i].iov_len = 0; [all …]
|
| /freebsd-9-stable/usr.sbin/lpr/common_source/ |
| D | rmjob.c | 310 struct iovec *iov; in rmremote() local 335 iov = malloc(niov * sizeof *iov); in rmremote() 336 if (iov == 0) in rmremote() 338 iov[0].iov_base = "\5"; in rmremote() 339 iov[1].iov_base = pp->remote_queue; in rmremote() 340 iov[2].iov_base = " "; in rmremote() 341 iov[3].iov_base = all ? "-all" : person; in rmremote() 344 iov[elem].iov_base = " "; in rmremote() 345 iov[elem + 1].iov_base = user[i]; in rmremote() 350 asprintf((char **)&iov[elem].iov_base, " %d", requ[i]); in rmremote() [all …]
|
| /freebsd-9-stable/sys/amd64/amd64/ |
| D | uio_machdep.c | 62 struct iovec *iov; in uiomove_fromphys() local 76 iov = uio->uio_iov; in uiomove_fromphys() 77 cnt = iov->iov_len; in uiomove_fromphys() 93 error = copyout(cp, iov->iov_base, cnt); in uiomove_fromphys() 95 error = copyin(iov->iov_base, cp, cnt); in uiomove_fromphys() 101 bcopy(cp, iov->iov_base, cnt); in uiomove_fromphys() 103 bcopy(iov->iov_base, cp, cnt); in uiomove_fromphys() 108 iov->iov_base = (char *)iov->iov_base + cnt; in uiomove_fromphys() 109 iov->iov_len -= cnt; in uiomove_fromphys()
|
| /freebsd-9-stable/sys/ia64/ia64/ |
| D | uio_machdep.c | 62 struct iovec *iov; in uiomove_fromphys() local 76 iov = uio->uio_iov; in uiomove_fromphys() 77 cnt = iov->iov_len; in uiomove_fromphys() 94 error = copyout(cp, iov->iov_base, cnt); in uiomove_fromphys() 96 error = copyin(iov->iov_base, cp, cnt); in uiomove_fromphys() 102 bcopy(cp, iov->iov_base, cnt); in uiomove_fromphys() 104 bcopy(iov->iov_base, cp, cnt); in uiomove_fromphys() 109 iov->iov_base = (char *)iov->iov_base + cnt; in uiomove_fromphys() 110 iov->iov_len -= cnt; in uiomove_fromphys()
|
| /freebsd-9-stable/sys/arm/arm/ |
| D | uio_machdep.c | 67 struct iovec *iov; in uiomove_fromphys() local 82 iov = uio->uio_iov; in uiomove_fromphys() 83 cnt = iov->iov_len; in uiomove_fromphys() 99 error = copyout(cp, iov->iov_base, cnt); in uiomove_fromphys() 101 error = copyin(iov->iov_base, cp, cnt); in uiomove_fromphys() 109 bcopy(cp, iov->iov_base, cnt); in uiomove_fromphys() 111 bcopy(iov->iov_base, cp, cnt); in uiomove_fromphys() 117 iov->iov_base = (char *)iov->iov_base + cnt; in uiomove_fromphys() 118 iov->iov_len -= cnt; in uiomove_fromphys()
|
| /freebsd-9-stable/sys/powerpc/powerpc/ |
| D | uio_machdep.c | 65 struct iovec *iov; in uiomove_fromphys() local 82 iov = uio->uio_iov; in uiomove_fromphys() 83 cnt = iov->iov_len; in uiomove_fromphys() 102 error = copyout(cp, iov->iov_base, cnt); in uiomove_fromphys() 104 error = copyin(iov->iov_base, cp, cnt); in uiomove_fromphys() 112 bcopy(cp, iov->iov_base, cnt); in uiomove_fromphys() 114 bcopy(iov->iov_base, cp, cnt); in uiomove_fromphys() 120 iov->iov_base = (char *)iov->iov_base + cnt; in uiomove_fromphys() 121 iov->iov_len -= cnt; in uiomove_fromphys()
|
| /freebsd-9-stable/sys/i386/i386/ |
| D | uio_machdep.c | 63 struct iovec *iov; in uiomove_fromphys() local 77 iov = uio->uio_iov; in uiomove_fromphys() 78 cnt = iov->iov_len; in uiomove_fromphys() 95 error = copyout(cp, iov->iov_base, cnt); in uiomove_fromphys() 97 error = copyin(iov->iov_base, cp, cnt); in uiomove_fromphys() 106 bcopy(cp, iov->iov_base, cnt); in uiomove_fromphys() 108 bcopy(iov->iov_base, cp, cnt); in uiomove_fromphys() 115 iov->iov_base = (char *)iov->iov_base + cnt; in uiomove_fromphys() 116 iov->iov_len -= cnt; in uiomove_fromphys()
|
| /freebsd-9-stable/sbin/mount/ |
| D | getmntopts.c | 140 build_iovec(struct iovec **iov, int *iovlen, const char *name, void *val, in build_iovec() argument 148 *iov = realloc(*iov, sizeof **iov * (i + 2)); in build_iovec() 149 if (*iov == NULL) { in build_iovec() 153 (*iov)[i].iov_base = strdup(name); in build_iovec() 154 (*iov)[i].iov_len = strlen(name) + 1; in build_iovec() 156 (*iov)[i].iov_base = val; in build_iovec() 163 (*iov)[i].iov_len = (int)len; in build_iovec() 172 build_iovec_argf(struct iovec **iov, int *iovlen, const char *name, in build_iovec_argf() argument 181 build_iovec(iov, iovlen, name, strdup(val), (size_t)-1); in build_iovec_argf()
|
| /freebsd-9-stable/crypto/openssh/ |
| D | atomicio.c | 106 struct iovec iov_array[IOV_MAX], *iov = iov_array; in atomiciov6() local 114 memcpy(iov, _iov, iovcnt * sizeof(*_iov)); in atomiciov6() 120 for (; iovcnt > 0 && iov[0].iov_len > 0;) { in atomiciov6() 121 res = (f) (fd, iov, iovcnt); in atomiciov6() 140 while (iovcnt > 0 && rem >= iov[0].iov_len) { in atomiciov6() 141 rem -= iov[0].iov_len; in atomiciov6() 142 iov++; in atomiciov6() 146 if (rem > 0 && (iovcnt <= 0 || rem > iov[0].iov_len)) { in atomiciov6() 153 iov[0].iov_base = ((char *)iov[0].iov_base) + rem; in atomiciov6() 154 iov[0].iov_len -= rem; in atomiciov6()
|
| /freebsd-9-stable/contrib/smbfs/mount_smbfs/ |
| D | mount_smbfs.c | 74 struct iovec *iov; in main() local 91 iov = NULL; in main() 186 build_iovec(&iov, &iovlen, in main() 271 build_iovec(&iov, &iovlen, "fstype", strdup("smbfs"), -1); in main() 272 build_iovec(&iov, &iovlen, "fspath", mount_point, -1); in main() 273 build_iovec_argf(&iov, &iovlen, "dev", "%d", dev); in main() 274 build_iovec(&iov, &iovlen, "mountpoint", mount_point, -1); in main() 275 build_iovec_argf(&iov, &iovlen, "uid", "%d", uid); in main() 276 build_iovec_argf(&iov, &iovlen, "gid", "%d", gid); in main() 277 build_iovec_argf(&iov, &iovlen, "file_mode", "%d", file_mode); in main() [all …]
|
| /freebsd-9-stable/sys/mips/mips/ |
| D | uio_machdep.c | 66 struct iovec *iov; in uiomove_fromphys() local 82 iov = uio->uio_iov; in uiomove_fromphys() 83 cnt = iov->iov_len; in uiomove_fromphys() 112 error = copyout(cp, iov->iov_base, cnt); in uiomove_fromphys() 114 error = copyin(iov->iov_base, cp, cnt); in uiomove_fromphys() 123 bcopy(cp, iov->iov_base, cnt); in uiomove_fromphys() 125 bcopy(iov->iov_base, cp, cnt); in uiomove_fromphys() 134 iov->iov_base = (char *)iov->iov_base + cnt; in uiomove_fromphys() 135 iov->iov_len -= cnt; in uiomove_fromphys()
|
| /freebsd-9-stable/sys/sparc64/sparc64/ |
| D | uio_machdep.c | 67 struct iovec *iov; in uiomove_fromphys() local 83 iov = uio->uio_iov; in uiomove_fromphys() 84 cnt = iov->iov_len; in uiomove_fromphys() 108 error = copyout(cp, iov->iov_base, cnt); in uiomove_fromphys() 110 error = copyin(iov->iov_base, cp, cnt); in uiomove_fromphys() 119 bcopy(cp, iov->iov_base, cnt); in uiomove_fromphys() 121 bcopy(iov->iov_base, cp, cnt); in uiomove_fromphys() 128 iov->iov_base = (char *)iov->iov_base + cnt; in uiomove_fromphys() 129 iov->iov_len -= cnt; in uiomove_fromphys()
|
| /freebsd-9-stable/usr.sbin/bluetooth/btpand/ |
| D | tap.c | 133 struct iovec iov[4]; in tap_send() local 136 iov[0].iov_base = pkt->dst; in tap_send() 137 iov[0].iov_len = ETHER_ADDR_LEN; in tap_send() 138 iov[1].iov_base = pkt->src; in tap_send() 139 iov[1].iov_len = ETHER_ADDR_LEN; in tap_send() 140 iov[2].iov_base = pkt->type; in tap_send() 141 iov[2].iov_len = ETHER_TYPE_LEN; in tap_send() 142 iov[3].iov_base = pkt->ptr; in tap_send() 143 iov[3].iov_len = pkt->len; in tap_send() 146 nw = writev(chan->fd, iov, __arraycount(iov)); in tap_send()
|
| /freebsd-9-stable/sbin/mksnap_ffs/ |
| D | mksnap_ffs.c | 69 struct iovec *iov; in main() local 115 iov = NULL; in main() 117 build_iovec(&iov, &iovlen, "fstype", "ffs", 4); in main() 118 build_iovec(&iov, &iovlen, "from", snapname, (size_t)-1); in main() 119 build_iovec(&iov, &iovlen, "fspath", stfsbuf.f_mntonname, (size_t)-1); in main() 120 build_iovec(&iov, &iovlen, "errmsg", errmsg, sizeof(errmsg)); in main() 121 build_iovec(&iov, &iovlen, "update", NULL, 0); in main() 122 build_iovec(&iov, &iovlen, "snapshot", NULL, 0); in main() 125 if (nmount(iov, iovlen, stfsbuf.f_flags) < 0) { in main()
|