Searched refs:iovlen (Results 1 - 25 of 34) sorted by relevance

12

/freebsd-10-stable/sbin/mount_cd9660/
H A Dmount_cd9660.c78 static int set_charset(struct iovec **, int *iovlen, const char *);
85 int iovlen; local
93 iovlen = 0;
100 build_iovec(&iov, &iovlen, "brokenjoliet", NULL, (size_t)-1);
103 build_iovec(&iov, &iovlen, "extatt", NULL, (size_t)-1);
106 build_iovec(&iov, &iovlen, "gens", NULL, (size_t)-1);
109 build_iovec(&iov, &iovlen, "nojoliet", NULL, (size_t)-1);
119 build_iovec(&iov, &iovlen, optarg, val, (size_t)-1);
122 build_iovec(&iov, &iovlen, "norrip", NULL, (size_t)-1);
131 if (set_charset(&iov, &iovlen, optar
238 set_charset(struct iovec **iov, int *iovlen, const char *localcs) argument
[all...]
/freebsd-10-stable/cddl/compat/opensolaris/misc/
H A Dzmount.c45 build_iovec(struct iovec **iov, int *iovlen, const char *name, void *val, argument
50 if (*iovlen < 0)
52 i = *iovlen;
55 *iovlen = -1;
69 *iovlen = ++i;
78 int iovlen, rv; local
94 iovlen = 0;
96 build_iovec(&iov, &iovlen, "ro", NULL, 0);
97 build_iovec(&iov, &iovlen, "fstype", fstype, (size_t)-1);
98 build_iovec(&iov, &iovlen, "fspat
[all...]
/freebsd-10-stable/sbin/mount_msdosfs/
H A Dmount_msdosfs.c65 static int set_charset(struct iovec **iov, int *iovlen, const char *, const char *);
71 int iovlen = 0; local
88 build_iovec(&iov, &iovlen, "shortnames", NULL, (size_t)-1);
91 build_iovec(&iov, &iovlen, "longnames", NULL, (size_t)-1);
94 build_iovec_argf(&iov, &iovlen, "nowin95", "", (size_t)-1);
120 build_iovec_argf(&iov, &iovlen, "cs_local", quirk);
126 build_iovec_argf(&iov, &iovlen, "cs_dos", cs_dos, (size_t)-1);
137 build_iovec(&iov, &iovlen, optarg, val, (size_t)-1);
156 build_iovec(&iov, &iovlen, "cs_local", cs_local, (size_t)-1);
157 build_iovec(&iov, &iovlen, "cs_do
298 set_charset(struct iovec **iov, int *iovlen, const char *cs_local, const char *cs_dos) argument
[all...]
/freebsd-10-stable/sbin/mount/
H A Dmount_fs.c78 int iovlen; local
91 iovlen = 0;
104 build_iovec(&iov, &iovlen, optarg, val, (size_t)-1);
126 build_iovec(&iov, &iovlen, "fstype", fstype, (size_t)-1);
127 build_iovec(&iov, &iovlen, "fspath", mntpath, (size_t)-1);
128 build_iovec(&iov, &iovlen, "from", dev, (size_t)-1);
129 build_iovec(&iov, &iovlen, "errmsg", errmsg, sizeof(errmsg));
131 if (nmount(iov, iovlen, mntflags) == -1) {
H A Dgetmntopts.c141 build_iovec(struct iovec **iov, int *iovlen, const char *name, void *val, argument
146 if (*iovlen < 0)
148 i = *iovlen;
151 *iovlen = -1;
165 *iovlen = ++i;
173 build_iovec_argf(struct iovec **iov, int *iovlen, const char *name, argument
182 build_iovec(iov, iovlen, name, strdup(val), (size_t)-1);
190 free_iovec(struct iovec **iov, int *iovlen) argument
194 for (i = 0; i < *iovlen; i++)
H A Dmntopts.h100 void build_iovec(struct iovec **iov, int *iovlen, const char *name, void *val, size_t len);
101 void build_iovec_argf(struct iovec **iov, int *iovlen, const char *name, const char *fmt, ...);
102 void free_iovec(struct iovec **iovec, int *iovlen);
/freebsd-10-stable/sbin/mount_nullfs/
H A Dmount_nullfs.c71 int ch, iovlen; local
75 iovlen = 0;
87 build_iovec(&iov, &iovlen, optarg, val, (size_t)-1);
109 build_iovec(&iov, &iovlen, "fstype", nullfs, (size_t)-1);
110 build_iovec(&iov, &iovlen, "fspath", source, (size_t)-1);
111 build_iovec(&iov, &iovlen, "target", target, (size_t)-1);
112 build_iovec(&iov, &iovlen, "errmsg", errmsg, sizeof(errmsg));
113 if (nmount(iov, iovlen, 0) < 0) {
/freebsd-10-stable/sbin/mksnap_ffs/
H A Dmksnap_ffs.c70 int fd, iovlen; local
116 iovlen = 0;
117 build_iovec(&iov, &iovlen, "fstype", "ffs", 4);
118 build_iovec(&iov, &iovlen, "from", snapname, (size_t)-1);
119 build_iovec(&iov, &iovlen, "fspath", stfsbuf.f_mntonname, (size_t)-1);
120 build_iovec(&iov, &iovlen, "errmsg", errmsg, sizeof(errmsg));
121 build_iovec(&iov, &iovlen, "update", NULL, 0);
122 build_iovec(&iov, &iovlen, "snapshot", NULL, 0);
125 if (nmount(iov, iovlen, stfsbuf.f_flags) < 0) {
/freebsd-10-stable/sbin/mount_udf/
H A Dmount_udf.c80 int ch, iovlen, mntflags, udf_flags, verbose; local
82 iovlen = mntflags = udf_flags = verbose = 0;
124 build_iovec(&iov, &iovlen, "fstype", fstype, (size_t)-1);
125 build_iovec(&iov, &iovlen, "fspath", mntpath, (size_t)-1);
126 build_iovec(&iov, &iovlen, "from", dev, (size_t)-1);
127 build_iovec(&iov, &iovlen, "flags", &udf_flags, sizeof(udf_flags));
129 build_iovec(&iov, &iovlen, "cs_disk", cs_disk, (size_t)-1);
130 build_iovec(&iov, &iovlen, "cs_local", cs_local, (size_t)-1);
132 if (nmount(iov, iovlen, mntflags) < 0)
/freebsd-10-stable/contrib/smbfs/mount_smbfs/
H A Dmount_smbfs.c75 unsigned int iovlen; local
92 iovlen = 0;
186 build_iovec(&iov, &iovlen,
203 build_iovec(&iov, &iovlen, optarg, val, (size_t)-1);
278 build_iovec(&iov, &iovlen, "fstype", strdup("smbfs"), -1);
279 build_iovec(&iov, &iovlen, "fspath", mount_point, -1);
280 build_iovec_argf(&iov, &iovlen, "fd", "%d", fd);
281 build_iovec(&iov, &iovlen, "mountpoint", mount_point, -1);
282 build_iovec_argf(&iov, &iovlen, "uid", "%d", uid);
283 build_iovec_argf(&iov, &iovlen, "gi
[all...]
/freebsd-10-stable/sbin/mount_unionfs/
H A Dmount_unionfs.c132 int ch, iovlen; local
139 iovlen = 0;
146 build_iovec(&iov, &iovlen, "below", NULL, 0);
163 build_iovec(&iov, &iovlen, optarg, val, (size_t)-1);
187 build_iovec(&iov, &iovlen, "fstype", fstype, (size_t)-1);
188 build_iovec(&iov, &iovlen, "fspath", source, (size_t)-1);
189 build_iovec(&iov, &iovlen, "from", target, (size_t)-1);
190 build_iovec(&iov, &iovlen, "errmsg", errmsg, sizeof(errmsg));
192 if (nmount(iov, iovlen, 0))
/freebsd-10-stable/usr.sbin/autofs/
H A Dautomount.c106 int error, iovlen = 0; local
114 build_iovec(&iov, &iovlen, "fstype",
116 build_iovec(&iov, &iovlen, "fspath",
118 build_iovec(&iov, &iovlen, "from",
120 build_iovec(&iov, &iovlen, "errmsg",
127 build_iovec(&iov, &iovlen, "master_options",
129 build_iovec(&iov, &iovlen, "master_prefix",
132 error = nmount(iov, iovlen, 0);
236 int error, iovlen = 0; local
241 build_iovec(&iov, &iovlen, "fstyp
[all...]
/freebsd-10-stable/contrib/netbsd-tests/net/bpf/
H A Dt_bpf.c111 size_t iovlen, sz; local
135 iovlen = 1;
138 iov[iovlen].iov_len = iov[0].iov_len;
139 iov[iovlen].iov_base = iov[0].iov_base;
141 iovlen++;
146 iov[iovlen].iov_len = total - sz;
147 iov[iovlen].iov_base = iov[0].iov_base;
148 iovlen++;
152 ATF_REQUIRE(iovlen >= 1 && iovlen <
[all...]
/freebsd-10-stable/sbin/mount_nfs/
H A Dmount_nfs.c136 static int getnfsargs(char *, struct iovec **iov, int *iovlen);
144 char **errstr, struct iovec **iov, int *iovlen);
152 int num, iovlen; local
159 iovlen = 0;
180 build_iovec(&iov, &iovlen, "readahead", optarg, (size_t)-1);
187 build_iovec(&iov, &iovlen, "noconn", NULL, 0);
192 build_iovec(&iov, &iovlen, "deadthresh", optarg, (size_t)-1);
196 build_iovec(&iov, &iovlen, "dumbtimer", NULL, 0);
204 build_iovec(&iov, &iovlen, "maxgroups", optarg, (size_t)-1);
208 build_iovec(&iov, &iovlen, "readdirsiz
515 getnfsargs(char *spec, struct iovec **iov, int *iovlen) argument
671 nfs_tryproto(struct addrinfo *ai, char *hostp, char *spec, char **errstr, struct iovec **iov, int *iovlen) argument
[all...]
/freebsd-10-stable/sbin/fsck_ffs/
H A Dmain.c235 int iovlen; local
241 iovlen = 0;
374 build_iovec(&iov, &iovlen, "fstype", "ffs", 4);
375 build_iovec(&iov, &iovlen, "from", snapname,
377 build_iovec(&iov, &iovlen, "fspath", mntp->f_mntonname,
379 build_iovec(&iov, &iovlen, "errmsg", errmsg,
381 build_iovec(&iov, &iovlen, "update", NULL, 0);
382 build_iovec(&iov, &iovlen, "snapshot", NULL, 0);
384 while (nmount(iov, iovlen, mntp->f_flags) < 0) {
593 int iovlen; local
[all...]
/freebsd-10-stable/sys/mips/cavium/cryptocteon/
H A Dcryptocteonvar.h37 typedef int octo_encrypt_t(struct octo_sess *od, struct iovec *iov, size_t iovcnt, size_t iovlen, int auth_off, int auth_len, int crypt_off, int crypt_len, int icv_off, uint8_t *ivp);
38 typedef int octo_decrypt_t(struct octo_sess *od, struct iovec *iov, size_t iovcnt, size_t iovlen, int auth_off, int auth_len, int crypt_off, int crypt_len, int icv_off, uint8_t *ivp);
H A Dcavium_crypto.c326 struct iovec *iov, size_t iovcnt, size_t iovlen,
336 if (__predict_false(od == NULL || iov==NULL || iovlen==0 || ivp==NULL ||
337 (crypt_off & 0x7) || (crypt_off + crypt_len > iovlen))) {
338 dprintf("%s: Bad parameters od=%p iov=%p iovlen=%jd "
340 "icv_off=%d ivp=%p\n", __func__, od, iov, iovlen,
385 struct iovec *iov, size_t iovcnt, size_t iovlen,
395 if (__predict_false(od == NULL || iov==NULL || iovlen==0 || ivp==NULL ||
396 (crypt_off & 0x7) || (crypt_off + crypt_len > iovlen))) {
397 dprintf("%s: Bad parameters od=%p iov=%p iovlen=%jd "
399 "icv_off=%d ivp=%p\n", __func__, od, iov, iovlen,
324 octo_des_cbc_encrypt( struct octo_sess *od, struct iovec *iov, size_t iovcnt, size_t iovlen, int auth_off, int auth_len, int crypt_off, int crypt_len, int icv_off, uint8_t *ivp) argument
383 octo_des_cbc_decrypt( struct octo_sess *od, struct iovec *iov, size_t iovcnt, size_t iovlen, int auth_off, int auth_len, int crypt_off, int crypt_len, int icv_off, uint8_t *ivp) argument
443 octo_aes_cbc_encrypt( struct octo_sess *od, struct iovec *iov, size_t iovcnt, size_t iovlen, int auth_off, int auth_len, int crypt_off, int crypt_len, int icv_off, uint8_t *ivp) argument
512 octo_aes_cbc_decrypt( struct octo_sess *od, struct iovec *iov, size_t iovcnt, size_t iovlen, int auth_off, int auth_len, int crypt_off, int crypt_len, int icv_off, uint8_t *ivp) argument
583 octo_null_md5_encrypt( struct octo_sess *od, struct iovec *iov, size_t iovcnt, size_t iovlen, int auth_off, int auth_len, int crypt_off, int crypt_len, int icv_off, uint8_t *ivp) argument
685 octo_null_sha1_encrypt( struct octo_sess *od, struct iovec *iov, size_t iovcnt, size_t iovlen, int auth_off, int auth_len, int crypt_off, int crypt_len, int icv_off, uint8_t *ivp) argument
790 octo_des_cbc_md5_encrypt( struct octo_sess *od, struct iovec *iov, size_t iovcnt, size_t iovlen, int auth_off, int auth_len, int crypt_off, int crypt_len, int icv_off, uint8_t *ivp) argument
938 octo_des_cbc_md5_decrypt( struct octo_sess *od, struct iovec *iov, size_t iovcnt, size_t iovlen, int auth_off, int auth_len, int crypt_off, int crypt_len, int icv_off, uint8_t *ivp) argument
1089 octo_des_cbc_sha1_encrypt( struct octo_sess *od, struct iovec *iov, size_t iovcnt, size_t iovlen, int auth_off, int auth_len, int crypt_off, int crypt_len, int icv_off, uint8_t *ivp) argument
1240 octo_des_cbc_sha1_decrypt( struct octo_sess *od, struct iovec *iov, size_t iovcnt, size_t iovlen, int auth_off, int auth_len, int crypt_off, int crypt_len, int icv_off, uint8_t *ivp) argument
1393 octo_aes_cbc_md5_encrypt( struct octo_sess *od, struct iovec *iov, size_t iovcnt, size_t iovlen, int auth_off, int auth_len, int crypt_off, int crypt_len, int icv_off, uint8_t *ivp) argument
1570 octo_aes_cbc_md5_decrypt( struct octo_sess *od, struct iovec *iov, size_t iovcnt, size_t iovlen, int auth_off, int auth_len, int crypt_off, int crypt_len, int icv_off, uint8_t *ivp) argument
1746 octo_aes_cbc_sha1_encrypt( struct octo_sess *od, struct iovec *iov, size_t iovcnt, size_t iovlen, int auth_off, int auth_len, int crypt_off, int crypt_len, int icv_off, uint8_t *ivp) argument
1942 octo_aes_cbc_sha1_decrypt( struct octo_sess *od, struct iovec *iov, size_t iovcnt, size_t iovlen, int auth_off, int auth_len, int crypt_off, int crypt_len, int icv_off, uint8_t *ivp) argument
[all...]
H A Dcryptocteon.c344 size_t iovcnt, iovlen; local
446 iovlen = 0;
453 iovlen += od->octo_iov[iovcnt++].iov_len;
456 iovlen = 0;
461 iovlen += od->octo_iov[iovcnt].iov_len;
464 iovlen = crp->crp_ilen;
495 (*od->octo_encrypt)(od, od->octo_iov, iovcnt, iovlen, local
498 (*od->octo_decrypt)(od, od->octo_iov, iovcnt, iovlen, local
/freebsd-10-stable/sbin/mount_fusefs/
H A Dmount_fusefs.c114 int mntflags, iovlen, verbose = 0; local
149 iovlen = 0;
289 build_iovec(&iov, &iovlen, mo->m_option, mv->mv_value, mv->mv_len);
295 build_iovec(&iov, &iovlen, mo->m_option,
303 build_iovec(&iov, &iovlen, uscore_opt,
419 build_iovec(&iov, &iovlen, "fstype", __DECONST(void *, "fusefs"), -1);
420 build_iovec(&iov, &iovlen, "fspath", mntpath, -1);
421 build_iovec(&iov, &iovlen, "from", dev, -1);
422 build_iovec(&iov, &iovlen, "fd", fdstr, -1);
427 if (nmount(iov, iovlen, mntflag
[all...]
/freebsd-10-stable/sys/kern/
H A Dsubr_uio.c385 u_int iovlen; local
390 iovlen = iovcnt * sizeof (struct iovec);
391 *iov = malloc(iovlen, M_IOV, M_WAITOK);
392 error = copyin(iovp, *iov, iovlen);
405 u_int iovlen; local
411 iovlen = iovcnt * sizeof (struct iovec);
412 uio = malloc(iovlen + sizeof *uio, M_IOV, M_WAITOK);
414 error = copyin(iovp, iov, iovlen);
440 int iovlen; local
442 iovlen
[all...]
/freebsd-10-stable/sys/netinet/
H A Dsctp_syscalls.c326 int iovlen,
371 uap->iovlen, &iov, EMSGSIZE);
374 error = copyiniov(uap->iov, uap->iovlen, &iov, EMSGSIZE);
394 auio.uio_iovcnt = uap->iovlen;
401 for (i = 0; i <uap->iovlen; i++, tiov++) {
456 int iovlen,
486 uap->iovlen, &iov, EMSGSIZE);
489 error = copyiniov(uap->iov, uap->iovlen, &iov, EMSGSIZE);
519 auio.uio_iovcnt = uap->iovlen;
526 for (i = 0; i <uap->iovlen;
[all...]
/freebsd-10-stable/sys/dev/hyperv/vmbus/
H A Dvmbus_brvar.h128 const struct iovec iov[], int iovlen, boolean_t *need_sig);
H A Dvmbus_br.c270 vmbus_txbr_write(struct vmbus_txbr *tbr, const struct iovec iov[], int iovlen, argument
278 for (i = 0; i < iovlen; i++)
303 for (i = 0; i < iovlen; i++) {
/freebsd-10-stable/bin/df/
H A Ddf.c129 int iovlen = 0; local
253 free_iovec(&iov, &iovlen);
254 build_iovec_argf(&iov, &iovlen, "fstype", "%s",
256 build_iovec_argf(&iov, &iovlen, "fspath", "%s",
258 build_iovec_argf(&iov, &iovlen, "from", "%s",
260 build_iovec(&iov, &iovlen, "errmsg", errmsg,
262 if (nmount(iov, iovlen,
/freebsd-10-stable/usr.sbin/mountd/
H A Dmountd.c1755 int iovlen; local
1765 iovlen = 0;
1810 build_iovec(&iov, &iovlen, "fstype", NULL, 0);
1811 build_iovec(&iov, &iovlen, "fspath", NULL, 0);
1812 build_iovec(&iov, &iovlen, "from", NULL, 0);
1813 build_iovec(&iov, &iovlen, "update", NULL, 0);
1814 build_iovec(&iov, &iovlen, "export", &export, sizeof(export));
1815 build_iovec(&iov, &iovlen, "errmsg", errmsg, sizeof(errmsg));
1852 if (nmount(iov, iovlen, fsp->f_flags) < 0 &&
1871 iovlen
2501 int i, iovlen; local
[all...]

Completed in 285 milliseconds

12