Home
last modified time | relevance | path

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

12

/freebsd-14-stable/sbin/mount_msdosfs/
HDmount_msdosfs.c62 static int set_charset(struct iovec **iov, int *iovlen, const char *, const char *);
68 int iovlen = 0; in main() local
85 build_iovec(&iov, &iovlen, "shortnames", NULL, (size_t)-1); in main()
88 build_iovec(&iov, &iovlen, "longnames", NULL, (size_t)-1); in main()
91 build_iovec_argf(&iov, &iovlen, "nowin95", "", (size_t)-1); in main()
117 build_iovec_argf(&iov, &iovlen, "cs_local", quirk); in main()
123 build_iovec_argf(&iov, &iovlen, "cs_dos", cs_dos, (size_t)-1); in main()
134 build_iovec(&iov, &iovlen, optarg, val, (size_t)-1); in main()
153 build_iovec(&iov, &iovlen, "cs_local", cs_local, (size_t)-1); in main()
154 build_iovec(&iov, &iovlen, "cs_dos", cs_dos, (size_t)-1); in main()
[all …]
/freebsd-14-stable/sbin/mount_cd9660/
HDmount_cd9660.c84 static int set_charset(struct iovec **, int *iovlen, const char *);
91 int iovlen; in main() local
99 iovlen = 0; in main()
106 build_iovec(&iov, &iovlen, "brokenjoliet", NULL, (size_t)-1); in main()
109 build_iovec(&iov, &iovlen, "extatt", NULL, (size_t)-1); in main()
112 build_iovec(&iov, &iovlen, "gens", NULL, (size_t)-1); in main()
115 build_iovec_argf(&iov, &iovlen, "gid", "%d", a_gid(optarg)); in main()
118 build_iovec_argf(&iov, &iovlen, "mask", "%u", a_mask(optarg)); in main()
121 build_iovec_argf(&iov, &iovlen, "dirmask", "%u", a_mask(optarg)); in main()
124 build_iovec(&iov, &iovlen, "nojoliet", NULL, (size_t)-1); in main()
[all …]
/freebsd-14-stable/sys/contrib/openzfs/lib/libzfs/os/freebsd/
HDlibzfs_zmount.c46 build_iovec(struct iovec **iov, int *iovlen, const char *name, void *val, in build_iovec() argument
51 if (*iovlen < 0) in build_iovec()
53 i = *iovlen; in build_iovec()
56 *iovlen = -1; in build_iovec()
70 *iovlen = ++i; in build_iovec()
78 int iovlen, rv; in do_mount() local
89 iovlen = 0; in do_mount()
91 build_iovec(&iov, &iovlen, "update", NULL, 0); in do_mount()
93 build_iovec(&iov, &iovlen, "ro", NULL, 0); in do_mount()
94 build_iovec(&iov, &iovlen, "fstype", __DECONST(char *, MNTTYPE_ZFS), in do_mount()
[all …]
/freebsd-14-stable/sbin/mount/
HDgetmntopts.c211 int iovlen, error; variable
227 iovlen = 0;
229 build_iovec(&iov, &iovlen, "fstype", __DECONST(void *, "ffs"), 4);
230 build_iovec(&iov, &iovlen, "from", mntp->f_mntfromname, (size_t)-1);
231 build_iovec(&iov, &iovlen, "fspath", mntp->f_mntonname, (size_t)-1);
232 build_iovec(&iov, &iovlen, "errmsg", errmsg, sizeof(errmsg));
233 build_iovec(&iov, &iovlen, "update", NULL, 0);
234 build_iovec(&iov, &iovlen, "reload", NULL, 0);
239 build_iovec(&iov, &iovlen, "ro", NULL, 0);
240 error = nmount(iov, iovlen, mntp->f_flags);
[all …]
HDmount_fs.c78 int iovlen; in mount_fs() local
91 iovlen = 0; in mount_fs()
104 build_iovec(&iov, &iovlen, optarg, val, (size_t)-1); in mount_fs()
126 build_iovec(&iov, &iovlen, "fstype", fstype, (size_t)-1); in mount_fs()
127 build_iovec(&iov, &iovlen, "fspath", mntpath, (size_t)-1); in mount_fs()
128 build_iovec(&iov, &iovlen, "from", dev, (size_t)-1); in mount_fs()
129 build_iovec(&iov, &iovlen, "errmsg", errmsg, sizeof(errmsg)); in mount_fs()
131 if (nmount(iov, iovlen, mntflags) == -1) { in mount_fs()
HDmntopts.h109 void build_iovec(struct iovec **iov, int *iovlen, const char *name, void *val, size_t len);
110 void build_iovec_argf(struct iovec **iov, int *iovlen, const char *name, const char *fmt, ...);
111 void free_iovec(struct iovec **iovec, int *iovlen);
/freebsd-14-stable/sbin/mount_nfs/
HDmount_nfs.c142 static int getnfsargs(char **, char **, struct iovec **iov, int *iovlen);
150 char **errstr, struct iovec **iov, int *iovlen);
158 int num, iovlen; in main() local
167 iovlen = 0; in main()
182 build_iovec(&iov, &iovlen, "readahead", optarg, (size_t)-1); in main()
189 build_iovec(&iov, &iovlen, "noconn", NULL, 0); in main()
194 build_iovec(&iov, &iovlen, "deadthresh", optarg, (size_t)-1); in main()
198 build_iovec(&iov, &iovlen, "dumbtimer", NULL, 0); in main()
206 build_iovec(&iov, &iovlen, "maxgroups", optarg, (size_t)-1); in main()
210 build_iovec(&iov, &iovlen, "readdirsize", optarg, (size_t)-1); in main()
[all …]
/freebsd-14-stable/contrib/smbfs/mount_smbfs/
HDmount_smbfs.c75 unsigned int iovlen; in main() local
92 iovlen = 0; in main()
186 build_iovec(&iov, &iovlen, in main()
203 build_iovec(&iov, &iovlen, optarg, val, (size_t)-1); in main()
278 build_iovec(&iov, &iovlen, "fstype", strdup("smbfs"), -1); in main()
279 build_iovec(&iov, &iovlen, "fspath", mount_point, -1); in main()
280 build_iovec_argf(&iov, &iovlen, "fd", "%d", fd); in main()
281 build_iovec(&iov, &iovlen, "mountpoint", mount_point, -1); in main()
282 build_iovec_argf(&iov, &iovlen, "uid", "%d", uid); in main()
283 build_iovec_argf(&iov, &iovlen, "gid", "%d", gid); in main()
[all …]
/freebsd-14-stable/sbin/mount_udf/
HDmount_udf.c80 int ch, iovlen, mntflags, udf_flags, verbose; in main() local
82 iovlen = mntflags = udf_flags = verbose = 0; in main()
124 build_iovec(&iov, &iovlen, "fstype", fstype, (size_t)-1); in main()
125 build_iovec(&iov, &iovlen, "fspath", mntpath, (size_t)-1); in main()
126 build_iovec(&iov, &iovlen, "from", dev, (size_t)-1); in main()
127 build_iovec(&iov, &iovlen, "flags", &udf_flags, sizeof(udf_flags)); in main()
129 build_iovec(&iov, &iovlen, "cs_disk", cs_disk, (size_t)-1); in main()
130 build_iovec(&iov, &iovlen, "cs_local", cs_local, (size_t)-1); in main()
132 if (nmount(iov, iovlen, mntflags) < 0) in main()
/freebsd-14-stable/contrib/netbsd-tests/net/bpf/
HDt_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-14-stable/sbin/mount_nullfs/
HDmount_nullfs.c79 int ch, iovlen; in main() local
85 iovlen = 0; in main()
97 build_iovec(&iov, &iovlen, optarg, val, (size_t)-1); in main()
123 build_iovec(&iov, &iovlen, "fstype", nullfs, (size_t)-1); in main()
124 build_iovec(&iov, &iovlen, "fspath", mountpoint, (size_t)-1); in main()
125 build_iovec(&iov, &iovlen, "target", target, (size_t)-1); in main()
126 build_iovec(&iov, &iovlen, "errmsg", errmsg, sizeof(errmsg)); in main()
127 if (nmount(iov, iovlen, 0) < 0) { in main()
/freebsd-14-stable/usr.sbin/autofs/
HDautomount.c106 int error, iovlen = 0; in mount_autofs() local
114 build_iovec(&iov, &iovlen, "fstype", in mount_autofs()
116 build_iovec(&iov, &iovlen, "fspath", in mount_autofs()
118 build_iovec(&iov, &iovlen, "from", in mount_autofs()
120 build_iovec(&iov, &iovlen, "errmsg", in mount_autofs()
127 build_iovec(&iov, &iovlen, "master_options", in mount_autofs()
129 build_iovec(&iov, &iovlen, "master_prefix", in mount_autofs()
132 error = nmount(iov, iovlen, 0); in mount_autofs()
236 int error, iovlen = 0; in flush_autofs() local
241 build_iovec(&iov, &iovlen, "fstype", in flush_autofs()
[all …]
/freebsd-14-stable/tests/sys/fs/fusefs/
HDmount.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()
HDmockfs.cc441 int iovlen = 0; in MockFS() local
469 build_iovec(&iov, &iovlen, "fstype", __DECONST(void *, "fusefs"), -1); in MockFS()
470 build_iovec(&iov, &iovlen, "fspath", in MockFS()
472 build_iovec(&iov, &iovlen, "from", __DECONST(void *, "/dev/fuse"), -1); in MockFS()
474 build_iovec(&iov, &iovlen, "fd", fdstr, -1); in MockFS()
479 build_iovec(&iov, &iovlen, "max_read=", &val, -1); in MockFS()
482 build_iovec(&iov, &iovlen, "allow_other", in MockFS()
486 build_iovec(&iov, &iovlen, "default_permissions", in MockFS()
490 build_iovec(&iov, &iovlen, "push_symlinks_in", in MockFS()
494 build_iovec(&iov, &iovlen, "ro", in MockFS()
[all …]
HDfallocate.cc274 int iovlen = 0; in TEST_F() local
301 build_iovec(&iov, &iovlen, "fstype", (void*)statbuf.f_fstypename, -1); in TEST_F()
302 build_iovec(&iov, &iovlen, "fspath", (void*)statbuf.f_mntonname, -1); in TEST_F()
303 build_iovec(&iov, &iovlen, "from", __DECONST(void *, "/dev/fuse"), -1); in TEST_F()
304 ASSERT_EQ(0, nmount(iov, iovlen, newflags)) << strerror(errno); in TEST_F()
305 free_iovec(&iov, &iovlen); in TEST_F()
655 int iovlen = 0; in TEST_F() local
684 build_iovec(&iov, &iovlen, "fstype", (void*)statbuf.f_fstypename, -1); in TEST_F()
685 build_iovec(&iov, &iovlen, "fspath", (void*)statbuf.f_mntonname, -1); in TEST_F()
686 build_iovec(&iov, &iovlen, "from", __DECONST(void *, "/dev/fuse"), -1); in TEST_F()
[all …]
/freebsd-14-stable/sbin/mksnap_ffs/
HDmksnap_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-14-stable/sbin/mount_unionfs/
HDmount_unionfs.c131 int ch, iovlen; in main() local
138 iovlen = 0; in main()
145 build_iovec(&iov, &iovlen, "below", NULL, 0); in main()
162 build_iovec(&iov, &iovlen, optarg, val, (size_t)-1); in main()
186 build_iovec(&iov, &iovlen, "fstype", fstype, (size_t)-1); in main()
187 build_iovec(&iov, &iovlen, "fspath", source, (size_t)-1); in main()
188 build_iovec(&iov, &iovlen, "from", target, (size_t)-1); in main()
189 build_iovec(&iov, &iovlen, "errmsg", errmsg, sizeof(errmsg)); in main()
191 if (nmount(iov, iovlen, 0)) in main()
/freebsd-14-stable/sbin/mount_fusefs/
HDmount_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-14-stable/sys/kern/
HDsubr_uio.c360 u_int iovlen; in copyiniov() local
365 iovlen = iovcnt * sizeof(struct iovec); in copyiniov()
366 *iov = malloc(iovlen, M_IOV, M_WAITOK); in copyiniov()
367 error = copyin(iovp, *iov, iovlen); in copyiniov()
380 u_int iovlen; in copyinuio() local
386 iovlen = iovcnt * sizeof(struct iovec); in copyinuio()
389 error = copyin(iovp, iov, iovlen); in copyinuio()
414 int iovlen; in allocuio() local
418 iovlen = iovcnt * sizeof(struct iovec); in allocuio()
419 uio = malloc(iovlen + sizeof(*uio), M_IOV, M_WAITOK); in allocuio()
[all …]
/freebsd-14-stable/sbin/fsck_ffs/
HDmain.c604 int iovlen; in setup_bkgrdchk() local
691 iovlen = 0; in setup_bkgrdchk()
695 build_iovec(&iov, &iovlen, "fstype", "ffs", 4); in setup_bkgrdchk()
696 build_iovec(&iov, &iovlen, "from", snapname, (size_t)-1); in setup_bkgrdchk()
697 build_iovec(&iov, &iovlen, "fspath", mntp->f_mntonname, (size_t)-1); in setup_bkgrdchk()
698 build_iovec(&iov, &iovlen, "errmsg", errmsg, sizeof(errmsg)); in setup_bkgrdchk()
699 build_iovec(&iov, &iovlen, "update", NULL, 0); in setup_bkgrdchk()
700 build_iovec(&iov, &iovlen, "snapshot", NULL, 0); in setup_bkgrdchk()
702 while (nmount(iov, iovlen, mntp->f_flags) < 0) { in setup_bkgrdchk()
/freebsd-14-stable/sys/netinet/
HDsctp_syscalls.c347 uap->iovlen, &iov, EMSGSIZE); in sys_sctp_generic_sendmsg_iov()
350 error = copyiniov(uap->iov, uap->iovlen, &iov, EMSGSIZE); in sys_sctp_generic_sendmsg_iov()
370 auio.uio_iovcnt = uap->iovlen; in sys_sctp_generic_sendmsg_iov()
377 for (i = 0; i <uap->iovlen; i++, tiov++) { in sys_sctp_generic_sendmsg_iov()
449 uap->iovlen, &iov, EMSGSIZE); in sys_sctp_generic_recvmsg()
452 error = copyiniov(uap->iov, uap->iovlen, &iov, EMSGSIZE); in sys_sctp_generic_recvmsg()
482 auio.uio_iovcnt = uap->iovlen; in sys_sctp_generic_recvmsg()
489 for (i = 0; i <uap->iovlen; i++, tiov++) { in sys_sctp_generic_recvmsg()
/freebsd-14-stable/sys/dev/hyperv/vmbus/
HDvmbus_br.c365 const struct iovec iov[], int iovlen, in vmbus_txbr_write_call() argument
375 for (i = 0; i < iovlen; i++) in vmbus_txbr_write_call()
398 for (i = 0; i < iovlen; i++) { in vmbus_txbr_write_call()
445 vmbus_txbr_write(struct vmbus_txbr *tbr, const struct iovec iov[], int iovlen, in vmbus_txbr_write() argument
453 for (i = 0; i < iovlen; i++) in vmbus_txbr_write()
478 for (i = 0; i < iovlen; i++) { in vmbus_txbr_write()
HDvmbus_brvar.h147 const struct iovec iov[], int iovlen, boolean_t *need_sig);
149 const struct iovec iov[], int iovlen,
/freebsd-14-stable/usr.sbin/mountd/
HDmountd.c1963 int iovlen; in get_exportlist() local
2004 iovlen = 0; in get_exportlist()
2018 build_iovec(&iov, &iovlen, "fstype", NULL, 0); in get_exportlist()
2019 build_iovec(&iov, &iovlen, "fspath", NULL, 0); in get_exportlist()
2020 build_iovec(&iov, &iovlen, "from", NULL, 0); in get_exportlist()
2021 build_iovec(&iov, &iovlen, "update", NULL, 0); in get_exportlist()
2022 build_iovec(&iov, &iovlen, "export", &export, in get_exportlist()
2024 build_iovec(&iov, &iovlen, "errmsg", errmsg, in get_exportlist()
2033 if (passno == 1 && compare_nmount_exportlist(iov, iovlen, errmsg) == in get_exportlist()
2083 delete_export(iov, iovlen, &mntbufp[i], errmsg); in get_exportlist()
[all …]
/freebsd-14-stable/sbin/init/
HDinit.c727 int error, iovlen; in mount_tmpfs() local
730 iovlen = 0; in mount_tmpfs()
732 build_iovec(&iov, &iovlen, "fstype", in mount_tmpfs()
734 build_iovec(&iov, &iovlen, "fspath", in mount_tmpfs()
736 build_iovec(&iov, &iovlen, "errmsg", in mount_tmpfs()
739 error = nmount(iov, iovlen, 0); in mount_tmpfs()

12