Lines Matching refs:iov
204 struct iovec *iov; variable
220 iov = NULL;
223 build_iovec(&iov, &iovlen, "fstype", __DECONST(void *, "ffs"), 4);
224 build_iovec(&iov, &iovlen, "from", mntp->f_mntfromname, (size_t)-1);
225 build_iovec(&iov, &iovlen, "fspath", mntp->f_mntonname, (size_t)-1);
226 build_iovec(&iov, &iovlen, "errmsg", errmsg, sizeof(errmsg));
227 build_iovec(&iov, &iovlen, "update", NULL, 0);
228 build_iovec(&iov, &iovlen, "reload", NULL, 0);
233 build_iovec(&iov, &iovlen, "ro", NULL, 0);
234 error = nmount(iov, iovlen, mntp->f_flags);
235 free_iovec(&iov, &iovlen);
245 build_iovec(struct iovec **iov, int *iovlen, const char *name, void *val, in build_iovec() argument
253 *iov = realloc(*iov, sizeof **iov * (i + 2)); in build_iovec()
254 if (*iov == NULL) { in build_iovec()
258 (*iov)[i].iov_base = strdup(name); in build_iovec()
259 (*iov)[i].iov_len = strlen(name) + 1; in build_iovec()
261 (*iov)[i].iov_base = val; in build_iovec()
268 (*iov)[i].iov_len = (int)len; in build_iovec()
277 build_iovec_argf(struct iovec **iov, int *iovlen, const char *name, in build_iovec_argf() argument
286 build_iovec(iov, iovlen, name, strdup(val), (size_t)-1); in build_iovec_argf()
294 free_iovec(struct iovec **iov, int *iovlen) in free_iovec() argument
299 free((*iov)[i].iov_base); in free_iovec()
300 free(*iov); in free_iovec()