Home
last modified time | relevance | path

Searched refs:iovlen (Results 1 – 25 of 41) sorted by relevance

12

/freebsd/sbin/mount_msdosfs/
H A Dmount_msdosfs.c61 static int set_charset(struct iovec **iov, int *iovlen, const char *, const char *);
67 int iovlen = 0; in main() local
84 build_iovec(&iov, &iovlen, "shortnames", NULL, (size_t)-1); in main()
87 build_iovec(&iov, &iovlen, "longnames", NULL, (size_t)-1); in main()
90 build_iovec_argf(&iov, &iovlen, "nowin95", "", (size_t)-1); in main()
116 build_iovec_argf(&iov, &iovlen, "cs_local", quirk); in main()
122 build_iovec_argf(&iov, &iovlen, "cs_dos", cs_dos, (size_t)-1); in main()
133 build_iovec(&iov, &iovlen, optarg, val, (size_t)-1); in main()
152 build_iovec(&iov, &iovlen, "cs_local", cs_local, (size_t)-1); in main()
153 build_iovec(&iov, &iovlen, "cs_dos", cs_dos, (size_t)-1); in main()
[all …]
/freebsd/sbin/mount_cd9660/
H A Dmount_cd9660.c69 static int set_charset(struct iovec **, int *iovlen, const char *);
76 int iovlen; in main() local
84 iovlen = 0; in main()
91 build_iovec(&iov, &iovlen, "brokenjoliet", NULL, (size_t)-1); in main()
94 build_iovec(&iov, &iovlen, "extatt", NULL, (size_t)-1); in main()
97 build_iovec(&iov, &iovlen, "gens", NULL, (size_t)-1); in main()
100 build_iovec_argf(&iov, &iovlen, "gid", "%d", a_gid(optarg)); in main()
103 build_iovec_argf(&iov, &iovlen, "mask", "%u", a_mask(optarg)); in main()
106 build_iovec_argf(&iov, &iovlen, "dirmask", "%u", a_mask(optarg)); in main()
109 build_iovec(&iov, &iovlen, "nojoliet", NULL, (size_t)-1); in main()
[all …]
/freebsd/sys/contrib/openzfs/lib/libzfs/os/freebsd/
H A Dlibzfs_zmount.c47 build_iovec(struct iovec **iov, int *iovlen, const char *name, void *val, in build_iovec() argument
52 if (*iovlen < 0) in build_iovec()
54 i = *iovlen; in build_iovec()
57 *iovlen = -1; in build_iovec()
71 *iovlen = ++i; in build_iovec()
79 int iovlen, rv; in do_mount() local
90 iovlen = 0; in do_mount()
92 build_iovec(&iov, &iovlen, "update", NULL, 0); in do_mount()
94 build_iovec(&iov, &iovlen, "ro", NULL, 0); in do_mount()
95 build_iovec(&iov, &iovlen, "fstype", __DECONST(char *, MNTTYPE_ZFS), in do_mount()
[all …]
/freebsd/lib/libutil/
H A Dmntopts.c226 int iovlen, error; variable
242 iovlen = 0;
244 build_iovec(&iov, &iovlen, "fstype", __DECONST(void *, "ffs"), 4);
245 build_iovec(&iov, &iovlen, "from", mntp->f_mntfromname, (size_t)-1);
246 build_iovec(&iov, &iovlen, "fspath", mntp->f_mntonname, (size_t)-1);
247 build_iovec(&iov, &iovlen, "errmsg", errmsg, sizeof(errmsg));
248 build_iovec(&iov, &iovlen, "update", NULL, 0);
249 build_iovec(&iov, &iovlen, "reload", NULL, 0);
254 build_iovec(&iov, &iovlen, "ro", NULL, 0);
255 error = nmount(iov, iovlen, mntp->f_flags);
[all …]
H A Dmntopts.h110 void build_iovec(struct iovec **iov, int *iovlen, const char *name, void *val, size_t len);
111 void build_iovec_argf(struct iovec **iov, int *iovlen, const char *name, const char *fmt, ...);
112 void free_iovec(struct iovec **iovec, int *iovlen);
/freebsd/sbin/mount_nfs/
H A Dmount_nfs.c130 static int getnfsargs(char **, char **, struct iovec **iov, int *iovlen);
138 char **errstr, struct iovec **iov, int *iovlen);
146 int num, iovlen; in main() local
155 iovlen = 0; in main()
170 build_iovec(&iov, &iovlen, "readahead", optarg, (size_t)-1); in main()
177 build_iovec(&iov, &iovlen, "noconn", NULL, 0); in main()
182 build_iovec(&iov, &iovlen, "deadthresh", optarg, (size_t)-1); in main()
186 build_iovec(&iov, &iovlen, "dumbtimer", NULL, 0); in main()
194 build_iovec(&iov, &iovlen, "maxgroups", optarg, (size_t)-1); in main()
198 build_iovec(&iov, &iovlen, "readdirsize", optarg, (size_t)-1); in main()
[all …]
/freebsd/contrib/smbfs/mount_smbfs/
H A Dmount_smbfs.c74 unsigned int iovlen; in main() local
91 iovlen = 0; in main()
185 build_iovec(&iov, &iovlen, in main()
202 build_iovec(&iov, &iovlen, optarg, val, (size_t)-1); in main()
277 build_iovec(&iov, &iovlen, "fstype", strdup("smbfs"), -1); in main()
278 build_iovec(&iov, &iovlen, "fspath", mount_point, -1); in main()
279 build_iovec_argf(&iov, &iovlen, "fd", "%d", fd); in main()
280 build_iovec(&iov, &iovlen, "mountpoint", mount_point, -1); in main()
281 build_iovec_argf(&iov, &iovlen, "uid", "%d", uid); in main()
282 build_iovec_argf(&iov, &iovlen, "gid", "%d", gid); in main()
[all …]
/freebsd/sbin/mount_udf/
H A Dmount_udf.c79 int ch, iovlen, mntflags, udf_flags, verbose; in main() local
81 iovlen = mntflags = udf_flags = verbose = 0; in main()
123 build_iovec(&iov, &iovlen, "fstype", fstype, (size_t)-1); in main()
124 build_iovec(&iov, &iovlen, "fspath", mntpath, (size_t)-1); in main()
125 build_iovec(&iov, &iovlen, "from", dev, (size_t)-1); in main()
126 build_iovec(&iov, &iovlen, "flags", &udf_flags, sizeof(udf_flags)); in main()
128 build_iovec(&iov, &iovlen, "cs_disk", cs_disk, (size_t)-1); in main()
129 build_iovec(&iov, &iovlen, "cs_local", cs_local, (size_t)-1); in main()
131 if (nmount(iov, iovlen, mntflags) < 0) in main()
/freebsd/contrib/netbsd-tests/net/bpf/
H A Dt_bpf.c111 size_t iovlen, sz; in ATF_TC_BODY() local
135 iovlen = 1; in ATF_TC_BODY()
138 iov[iovlen].iov_len = iov[0].iov_len; in ATF_TC_BODY()
139 iov[iovlen].iov_base = iov[0].iov_base; in ATF_TC_BODY()
141 iovlen++; in ATF_TC_BODY()
146 iov[iovlen].iov_len = total - sz; in ATF_TC_BODY()
147 iov[iovlen].iov_base = iov[0].iov_base; in ATF_TC_BODY()
148 iovlen++; in ATF_TC_BODY()
152 ATF_REQUIRE(iovlen >= 1 && iovlen <= (size_t)iov_max); in ATF_TC_BODY()
153 ATF_REQUIRE_EQ(iov[iovlen-1].iov_len, total % iov[0].iov_len); in ATF_TC_BODY()
[all …]
/freebsd/sbin/mount/
H A Dmount_fs.c66 int iovlen; in mount_fs() local
79 iovlen = 0; in mount_fs()
92 build_iovec(&iov, &iovlen, optarg, val, (size_t)-1); in mount_fs()
114 build_iovec(&iov, &iovlen, "fstype", fstype, (size_t)-1); in mount_fs()
115 build_iovec(&iov, &iovlen, "fspath", mntpath, (size_t)-1); in mount_fs()
116 build_iovec(&iov, &iovlen, "from", dev, (size_t)-1); in mount_fs()
117 build_iovec(&iov, &iovlen, "errmsg", errmsg, sizeof(errmsg)); in mount_fs()
119 if (nmount(iov, iovlen, mntflags) == -1) { in mount_fs()
/freebsd/sbin/mount_nullfs/
H A Dmount_nullfs.c66 int ch, iovlen; in main() local
72 iovlen = 0; in main()
84 build_iovec(&iov, &iovlen, optarg, val, (size_t)-1); in main()
110 build_iovec(&iov, &iovlen, "fstype", nullfs, (size_t)-1); in main()
111 build_iovec(&iov, &iovlen, "fspath", mountpoint, (size_t)-1); in main()
112 build_iovec(&iov, &iovlen, "target", target, (size_t)-1); in main()
113 build_iovec(&iov, &iovlen, "errmsg", errmsg, sizeof(errmsg)); in main()
114 if (nmount(iov, iovlen, 0) < 0) { in main()
/freebsd/usr.sbin/autofs/
H A Dautomount.c105 int error, iovlen = 0; in mount_autofs() local
113 build_iovec(&iov, &iovlen, "fstype", in mount_autofs()
115 build_iovec(&iov, &iovlen, "fspath", in mount_autofs()
117 build_iovec(&iov, &iovlen, "from", in mount_autofs()
119 build_iovec(&iov, &iovlen, "errmsg", in mount_autofs()
126 build_iovec(&iov, &iovlen, "master_options", in mount_autofs()
128 build_iovec(&iov, &iovlen, "master_prefix", in mount_autofs()
131 error = nmount(iov, iovlen, 0); in mount_autofs()
235 int error, iovlen = 0; in flush_autofs() local
240 build_iovec(&iov, &iovlen, "fstype", in flush_autofs()
[all …]
/freebsd/tests/sys/fs/fusefs/
H A Dmount.cc118 int iovlen = 0; in TEST_P() local
144 build_iovec(&iov, &iovlen, "fstype", (void*)statbuf.f_fstypename, -1); in TEST_P()
145 build_iovec(&iov, &iovlen, "fspath", (void*)statbuf.f_mntonname, -1); in TEST_P()
146 build_iovec(&iov, &iovlen, "from", __DECONST(void *, "/dev/fuse"), -1); in TEST_P()
147 ASSERT_EQ(0, nmount(iov, iovlen, newflags)) << strerror(errno); in TEST_P()
158 int iovlen = 0; in TEST_P() local
179 build_iovec(&iov, &iovlen, "fstype", (void*)statbuf.f_fstypename, -1); in TEST_P()
180 build_iovec(&iov, &iovlen, "fspath", (void*)statbuf.f_mntonname, -1); in TEST_P()
181 build_iovec(&iov, &iovlen, "from", __DECONST(void *, "/dev/fuse"), -1); in TEST_P()
187 (void)nmount(iov, iovlen, newflags); in TEST_P()
H A Dmockfs.cc448 int iovlen = 0; in MockFS() local
476 build_iovec(&iov, &iovlen, "fstype", __DECONST(void *, "fusefs"), -1); in MockFS()
477 build_iovec(&iov, &iovlen, "fspath", in MockFS()
479 build_iovec(&iov, &iovlen, "from", __DECONST(void *, "/dev/fuse"), -1); in MockFS()
481 build_iovec(&iov, &iovlen, "fd", fdstr, -1); in MockFS()
486 build_iovec(&iov, &iovlen, "max_read=", &val, -1); in MockFS()
489 build_iovec(&iov, &iovlen, "allow_other", in MockFS()
493 build_iovec(&iov, &iovlen, "default_permissions", in MockFS()
497 build_iovec(&iov, &iovlen, "push_symlinks_in", in MockFS()
501 build_iovec(&iov, &iovlen, "ro", in MockFS()
[all …]
H A Dfallocate.cc273 int iovlen = 0; in TEST_F() local
300 build_iovec(&iov, &iovlen, "fstype", (void*)statbuf.f_fstypename, -1); in TEST_F()
301 build_iovec(&iov, &iovlen, "fspath", (void*)statbuf.f_mntonname, -1); in TEST_F()
302 build_iovec(&iov, &iovlen, "from", __DECONST(void *, "/dev/fuse"), -1); in TEST_F()
303 ASSERT_EQ(0, nmount(iov, iovlen, newflags)) << strerror(errno); in TEST_F()
304 free_iovec(&iov, &iovlen); in TEST_F()
654 int iovlen = 0; in TEST_F() local
683 build_iovec(&iov, &iovlen, "fstype", (void*)statbuf.f_fstypename, -1); in TEST_F()
684 build_iovec(&iov, &iovlen, "fspath", (void*)statbuf.f_mntonname, -1); in TEST_F()
685 build_iovec(&iov, &iovlen, "from", __DECONST(void *, "/dev/fuse"), -1); in TEST_F()
[all …]
/freebsd/sbin/mount_unionfs/
H A Dmount_unionfs.c118 int ch, iovlen; in main() local
125 iovlen = 0; in main()
132 build_iovec(&iov, &iovlen, "below", NULL, 0); in main()
149 build_iovec(&iov, &iovlen, optarg, val, (size_t)-1); in main()
173 build_iovec(&iov, &iovlen, "fstype", fstype, (size_t)-1); in main()
174 build_iovec(&iov, &iovlen, "fspath", source, (size_t)-1); in main()
175 build_iovec(&iov, &iovlen, "from", target, (size_t)-1); in main()
176 build_iovec(&iov, &iovlen, "errmsg", errmsg, sizeof(errmsg)); in main()
178 if (nmount(iov, iovlen, 0)) in main()
/freebsd/sbin/mksnap_ffs/
H A Dmksnap_ffs.c100 int fd, iovlen; in main() local
163 iovlen = 0; in main()
164 build_iovec(&iov, &iovlen, "fstype", "ffs", 4); in main()
165 build_iovec(&iov, &iovlen, "from", snapname, (size_t)-1); in main()
166 build_iovec(&iov, &iovlen, "fspath", stfsbuf.f_mntonname, (size_t)-1); in main()
167 build_iovec(&iov, &iovlen, "errmsg", errmsg, sizeof(errmsg)); in main()
168 build_iovec(&iov, &iovlen, "update", NULL, 0); in main()
169 build_iovec(&iov, &iovlen, "snapshot", NULL, 0); in main()
172 if (nmount(iov, iovlen, stfsbuf.f_flags) < 0) { in main()
/freebsd/tests/sys/kern/
H A Djail_lookup_root.c37 int error, iovlen; in mount_nullfs() local
40 iovlen = 0; in mount_nullfs()
42 build_iovec(&iov, &iovlen, __DECONST(char *, "fstype"), in mount_nullfs()
44 build_iovec(&iov, &iovlen, __DECONST(char *, "fspath"), in mount_nullfs()
46 build_iovec(&iov, &iovlen, __DECONST(char *, "from"), in mount_nullfs()
48 build_iovec(&iov, &iovlen, __DECONST(char *, "errmsg"), in mount_nullfs()
52 error = nmount(iov, iovlen, 0); in mount_nullfs()
56 free_iovec(&iov, &iovlen); in mount_nullfs()
H A Dinotify_test.c143 int error, iovlen; in mount_nullfs() local
146 iovlen = 0; in mount_nullfs()
148 build_iovec(&iov, &iovlen, "fstype", "nullfs", (size_t)-1); in mount_nullfs()
149 build_iovec(&iov, &iovlen, "fspath", dir, (size_t)-1); in mount_nullfs()
150 build_iovec(&iov, &iovlen, "target", src, (size_t)-1); in mount_nullfs()
151 build_iovec(&iov, &iovlen, "errmsg", errmsg, sizeof(errmsg)); in mount_nullfs()
154 error = nmount(iov, iovlen, 0); in mount_nullfs()
159 free_iovec(&iov, &iovlen); in mount_nullfs()
167 int error, iovlen; in mount_tmpfs() local
170 iovlen = 0; in mount_tmpfs()
[all …]
/freebsd/sbin/mount_fusefs/
H A Dmount_fusefs.c122 int mntflags, iovlen, verbose = 0; in main() local
157 iovlen = 0; in main()
299 build_iovec(&iov, &iovlen, mo->m_option, mv->mv_value, mv->mv_len); in main()
305 build_iovec(&iov, &iovlen, mo->m_option, in main()
313 build_iovec(&iov, &iovlen, uscore_opt, in main()
423 build_iovec(&iov, &iovlen, "fstype", __DECONST(void *, "fusefs"), -1); in main()
424 build_iovec(&iov, &iovlen, "fspath", mntpath, -1); in main()
425 build_iovec(&iov, &iovlen, "from", dev, -1); in main()
426 build_iovec(&iov, &iovlen, "fd", fdstr, -1); in main()
431 if (nmount(iov, iovlen, mntflags) < 0) in main()
/freebsd/sys/kern/
H A Dsubr_uio.c388 u_int iovlen; in copyiniov() local
393 iovlen = iovcnt * sizeof(struct iovec); in copyiniov()
394 *iov = malloc(iovlen, M_IOV, M_WAITOK); in copyiniov()
395 error = copyin(iovp, *iov, iovlen); in copyiniov()
408 u_int iovlen; in copyinuio() local
414 iovlen = iovcnt * sizeof(struct iovec); in copyinuio()
417 error = copyin(iovp, iov, iovlen); in copyinuio()
442 int iovlen; in allocuio() local
446 iovlen = iovcnt * sizeof(struct iovec); in allocuio()
447 uio = malloc(iovlen + sizeof(*uio), M_IOV, M_WAITOK); in allocuio()
[all …]
/freebsd/sbin/fsck_ffs/
H A Dmain.c591 int iovlen; in setup_bkgrdchk() local
678 iovlen = 0; in setup_bkgrdchk()
682 build_iovec(&iov, &iovlen, "fstype", "ffs", 4); in setup_bkgrdchk()
683 build_iovec(&iov, &iovlen, "from", snapname, (size_t)-1); in setup_bkgrdchk()
684 build_iovec(&iov, &iovlen, "fspath", mntp->f_mntonname, (size_t)-1); in setup_bkgrdchk()
685 build_iovec(&iov, &iovlen, "errmsg", errmsg, sizeof(errmsg)); in setup_bkgrdchk()
686 build_iovec(&iov, &iovlen, "update", NULL, 0); in setup_bkgrdchk()
687 build_iovec(&iov, &iovlen, "snapshot", NULL, 0); in setup_bkgrdchk()
689 while (nmount(iov, iovlen, mntp->f_flags) < 0) { in setup_bkgrdchk()
/freebsd/sys/netinet/
H A Dsctp_syscalls.c346 uap->iovlen, &iov, EMSGSIZE); in sys_sctp_generic_sendmsg_iov()
349 error = copyiniov(uap->iov, uap->iovlen, &iov, EMSGSIZE); in sys_sctp_generic_sendmsg_iov()
369 auio.uio_iovcnt = uap->iovlen; in sys_sctp_generic_sendmsg_iov()
376 for (i = 0; i <uap->iovlen; i++, tiov++) { in sys_sctp_generic_sendmsg_iov()
448 uap->iovlen, &iov, EMSGSIZE); in sys_sctp_generic_recvmsg()
451 error = copyiniov(uap->iov, uap->iovlen, &iov, EMSGSIZE); in sys_sctp_generic_recvmsg()
481 auio.uio_iovcnt = uap->iovlen; in sys_sctp_generic_recvmsg()
488 for (i = 0; i <uap->iovlen; i++, tiov++) { in sys_sctp_generic_recvmsg()
/freebsd/crypto/openssl/ssl/quic/
H A Dquic_sstream.c407 size_t running = 0, i, iovlen; in ossl_quic_sstream_adjust_iov() local
410 iovlen = iov[i].buf_len; in ossl_quic_sstream_adjust_iov()
414 else if (running + iovlen > len) in ossl_quic_sstream_adjust_iov()
417 running += iovlen; in ossl_quic_sstream_adjust_iov()
/freebsd/sys/dev/hyperv/vmbus/
H A Dvmbus_br.c364 const struct iovec iov[], int iovlen, in vmbus_txbr_write_call() argument
374 for (i = 0; i < iovlen; i++) in vmbus_txbr_write_call()
397 for (i = 0; i < iovlen; i++) { in vmbus_txbr_write_call()
444 vmbus_txbr_write(struct vmbus_txbr *tbr, const struct iovec iov[], int iovlen, in vmbus_txbr_write() argument
452 for (i = 0; i < iovlen; i++) in vmbus_txbr_write()
477 for (i = 0; i < iovlen; i++) { in vmbus_txbr_write()

12