Home
last modified time | relevance | path

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

12

/freebsd/sbin/mount_msdosfs/
H A Dmount_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/sbin/mount_cd9660/
H A Dmount_cd9660.c70 static int set_charset(struct iovec **, int *iovlen, const char *);
77 int iovlen; in main() local
85 iovlen = 0; in main()
92 build_iovec(&iov, &iovlen, "brokenjoliet", NULL, (size_t)-1); in main()
95 build_iovec(&iov, &iovlen, "extatt", NULL, (size_t)-1); in main()
98 build_iovec(&iov, &iovlen, "gens", NULL, (size_t)-1); in main()
101 build_iovec_argf(&iov, &iovlen, "gid", "%d", a_gid(optarg)); in main()
104 build_iovec_argf(&iov, &iovlen, "mask", "%u", a_mask(optarg)); in main()
107 build_iovec_argf(&iov, &iovlen, "dirmask", "%u", a_mask(optarg)); in main()
110 build_iovec(&iov, &iovlen, "nojoliet", NULL, (size_t)-1); in main()
[all …]
/freebsd/sys/contrib/openzfs/lib/libzfs/os/freebsd/
H A Dlibzfs_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/sbin/mount/
H A Dgetmntopts.c205 int iovlen, error; variable
221 iovlen = 0;
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);
[all …]
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()
H A Dmntopts.h107 void build_iovec(struct iovec **iov, int *iovlen, const char *name, void *val, size_t len);
108 void build_iovec_argf(struct iovec **iov, int *iovlen, const char *name, const char *fmt, ...);
109 void free_iovec(struct iovec **iovec, int *iovlen);
/freebsd/sbin/mount_nfs/
H A Dmount_nfs.c129 static int getnfsargs(char **, char **, struct iovec **iov, int *iovlen);
137 char **errstr, struct iovec **iov, int *iovlen);
145 int num, iovlen; in main() local
154 iovlen = 0; in main()
169 build_iovec(&iov, &iovlen, "readahead", optarg, (size_t)-1); in main()
176 build_iovec(&iov, &iovlen, "noconn", NULL, 0); in main()
181 build_iovec(&iov, &iovlen, "deadthresh", optarg, (size_t)-1); in main()
185 build_iovec(&iov, &iovlen, "dumbtimer", NULL, 0); in main()
193 build_iovec(&iov, &iovlen, "maxgroups", optarg, (size_t)-1); in main()
197 build_iovec(&iov, &iovlen, "readdirsize", optarg, (size_t)-1); in main()
[all …]
/freebsd/contrib/smbfs/mount_smbfs/
H A Dmount_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/sbin/mount_udf/
H A Dmount_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/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_nullfs/
H A Dmount_nullfs.c67 int ch, iovlen; in main() local
73 iovlen = 0; in main()
85 build_iovec(&iov, &iovlen, optarg, val, (size_t)-1); in main()
111 build_iovec(&iov, &iovlen, "fstype", nullfs, (size_t)-1); in main()
112 build_iovec(&iov, &iovlen, "fspath", mountpoint, (size_t)-1); in main()
113 build_iovec(&iov, &iovlen, "target", target, (size_t)-1); in main()
114 build_iovec(&iov, &iovlen, "errmsg", errmsg, sizeof(errmsg)); in main()
115 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.cc427 int iovlen = 0; in MockFS() local
472 build_iovec(&iov, &iovlen, "fstype", __DECONST(void *, "fusefs"), -1); in MockFS()
473 build_iovec(&iov, &iovlen, "fspath", in MockFS()
475 build_iovec(&iov, &iovlen, "from", __DECONST(void *, "/dev/fuse"), -1); in MockFS()
477 build_iovec(&iov, &iovlen, "fd", fdstr, -1); in MockFS()
479 build_iovec(&iov, &iovlen, "allow_other", in MockFS()
483 build_iovec(&iov, &iovlen, "default_permissions", in MockFS()
487 build_iovec(&iov, &iovlen, "push_symlinks_in", in MockFS()
491 build_iovec(&iov, &iovlen, "ro", in MockFS()
495 build_iovec(&iov, &iovlen, "async", __DECONST(void*, &trueval), in MockFS()
[all …]
H A Dfallocate.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/sbin/mount_unionfs/
H A Dmount_unionfs.c119 int ch, iovlen; in main() local
126 iovlen = 0; in main()
133 build_iovec(&iov, &iovlen, "below", NULL, 0); in main()
150 build_iovec(&iov, &iovlen, optarg, val, (size_t)-1); in main()
174 build_iovec(&iov, &iovlen, "fstype", fstype, (size_t)-1); in main()
175 build_iovec(&iov, &iovlen, "fspath", source, (size_t)-1); in main()
176 build_iovec(&iov, &iovlen, "from", target, (size_t)-1); in main()
177 build_iovec(&iov, &iovlen, "errmsg", errmsg, sizeof(errmsg)); in main()
179 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/sbin/mount_fusefs/
H A Dmount_fusefs.c121 int mntflags, iovlen, verbose = 0; in main() local
156 iovlen = 0; in main()
298 build_iovec(&iov, &iovlen, mo->m_option, mv->mv_value, mv->mv_len); in main()
304 build_iovec(&iov, &iovlen, mo->m_option, in main()
312 build_iovec(&iov, &iovlen, uscore_opt, in main()
422 build_iovec(&iov, &iovlen, "fstype", __DECONST(void *, "fusefs"), -1); in main()
423 build_iovec(&iov, &iovlen, "fspath", mntpath, -1); in main()
424 build_iovec(&iov, &iovlen, "from", dev, -1); in main()
425 build_iovec(&iov, &iovlen, "fd", fdstr, -1); in main()
430 if (nmount(iov, iovlen, mntflags) < 0) in main()
/freebsd/sys/kern/
H A Dsubr_uio.c357 u_int iovlen; in copyiniov() local
362 iovlen = iovcnt * sizeof(struct iovec); in copyiniov()
363 *iov = malloc(iovlen, M_IOV, M_WAITOK); in copyiniov()
364 error = copyin(iovp, *iov, iovlen); in copyiniov()
377 u_int iovlen; in copyinuio() local
383 iovlen = iovcnt * sizeof(struct iovec); in copyinuio()
386 error = copyin(iovp, iov, iovlen); in copyinuio()
411 int iovlen; in allocuio() local
415 iovlen = iovcnt * sizeof(struct iovec); in allocuio()
416 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.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/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()
H A Dvmbus_brvar.h147 const struct iovec iov[], int iovlen, boolean_t *need_sig);
149 const struct iovec iov[], int iovlen,
/freebsd/usr.sbin/mountd/
H A Dmountd.c1937 int iovlen; in get_exportlist() local
1978 iovlen = 0; in get_exportlist()
1992 build_iovec(&iov, &iovlen, "fstype", NULL, 0); in get_exportlist()
1993 build_iovec(&iov, &iovlen, "fspath", NULL, 0); in get_exportlist()
1994 build_iovec(&iov, &iovlen, "from", NULL, 0); in get_exportlist()
1995 build_iovec(&iov, &iovlen, "update", NULL, 0); in get_exportlist()
1996 build_iovec(&iov, &iovlen, "export", &export, in get_exportlist()
1998 build_iovec(&iov, &iovlen, "errmsg", errmsg, in get_exportlist()
2007 if (passno == 1 && compare_nmount_exportlist(iov, iovlen, errmsg) == in get_exportlist()
2057 delete_export(iov, iovlen, &mntbufp[i], errmsg); in get_exportlist()
[all …]
/freebsd/sbin/init/
H A Dinit.c715 int error, iovlen; in mount_tmpfs() local
718 iovlen = 0; in mount_tmpfs()
720 build_iovec(&iov, &iovlen, "fstype", in mount_tmpfs()
722 build_iovec(&iov, &iovlen, "fspath", in mount_tmpfs()
724 build_iovec(&iov, &iovlen, "errmsg", in mount_tmpfs()
727 error = nmount(iov, iovlen, 0); in mount_tmpfs()

12