/freebsd-10.0-release/sbin/mount_cd9660/ |
H A D | mount_cd9660.c | 78 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.0-release/cddl/compat/opensolaris/misc/ |
H A D | zmount.c | 45 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.0-release/sbin/mount_msdosfs/ |
H A D | mount_msdosfs.c | 64 static int set_charset(struct iovec **iov, int *iovlen, const char *, const char *); 70 int iovlen = 0; local 87 build_iovec(&iov, &iovlen, "shortnames", NULL, (size_t)-1); 90 build_iovec(&iov, &iovlen, "longnames", NULL, (size_t)-1); 93 build_iovec_argf(&iov, &iovlen, "nowin95", "", (size_t)-1); 119 build_iovec_argf(&iov, &iovlen, "cs_local", quirk); 125 build_iovec_argf(&iov, &iovlen, "cs_dos", cs_dos, (size_t)-1); 136 build_iovec(&iov, &iovlen, optarg, val, (size_t)-1); 155 build_iovec(&iov, &iovlen, "cs_local", cs_local, (size_t)-1); 156 build_iovec(&iov, &iovlen, "cs_do 297 set_charset(struct iovec **iov, int *iovlen, const char *cs_local, const char *cs_dos) argument [all...] |
/freebsd-10.0-release/sbin/mount/ |
H A D | mount_fs.c | 78 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 D | getmntopts.c | 141 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);
|
H A D | mntopts.h | 98 void build_iovec(struct iovec **iov, int *iovlen, const char *name, void *val, size_t len); 99 void build_iovec_argf(struct iovec **iov, int *iovlen, const char *name, const char *fmt, ...);
|
/freebsd-10.0-release/sbin/mount_nullfs/ |
H A D | mount_nullfs.c | 71 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.0-release/sbin/mount_nfs/ |
H A D | mount_nfs.c | 133 static int fallback_mount(struct iovec *iov, int iovlen); 136 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, "maxgroup 440 findopt(struct iovec *iov, int iovlen, const char *name, char **valuep, int *lenp) argument 458 copyopt(struct iovec **newiov, int *newiovlen, struct iovec *iov, int iovlen, const char *name) argument 475 fallback_mount(struct iovec *iov, int iovlen) argument 699 getnfsargs(char *spec, struct iovec **iov, int *iovlen) argument 855 nfs_tryproto(struct addrinfo *ai, char *hostp, char *spec, char **errstr, struct iovec **iov, int *iovlen) argument [all...] |
/freebsd-10.0-release/sbin/mksnap_ffs/ |
H A D | mksnap_ffs.c | 70 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.0-release/sbin/mount_udf/ |
H A D | mount_udf.c | 80 int ch, i, iovlen, mntflags, udf_flags, verbose; local 82 i = 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);
|
/freebsd-10.0-release/sbin/mount_unionfs/ |
H A D | mount_unionfs.c | 132 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.0-release/contrib/smbfs/mount_smbfs/ |
H A D | mount_smbfs.c | 75 unsigned int iovlen; local 92 iovlen = 0; 186 build_iovec(&iov, &iovlen, 271 build_iovec(&iov, &iovlen, "fstype", strdup("smbfs"), -1); 272 build_iovec(&iov, &iovlen, "fspath", mount_point, -1); 273 build_iovec_argf(&iov, &iovlen, "fd", "%d", fd); 274 build_iovec(&iov, &iovlen, "mountpoint", mount_point, -1); 275 build_iovec_argf(&iov, &iovlen, "uid", "%d", uid); 276 build_iovec_argf(&iov, &iovlen, "gid", "%d", gid); 277 build_iovec_argf(&iov, &iovlen, "file_mod [all...] |
/freebsd-10.0-release/sbin/fsck_ffs/ |
H A D | main.c | 223 int iovlen; local 229 iovlen = 0; 360 build_iovec(&iov, &iovlen, "fstype", "ffs", 4); 361 build_iovec(&iov, &iovlen, "from", snapname, 363 build_iovec(&iov, &iovlen, "fspath", mntp->f_mntonname, 365 build_iovec(&iov, &iovlen, "errmsg", errmsg, 367 build_iovec(&iov, &iovlen, "update", NULL, 0); 368 build_iovec(&iov, &iovlen, "snapshot", NULL, 0); 370 while (nmount(iov, iovlen, mntp->f_flags) < 0) { 570 int iovlen; local [all...] |
/freebsd-10.0-release/sys/mips/cavium/cryptocteon/ |
H A D | cryptocteonvar.h | 37 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 D | cavium_crypto.c | 326 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 D | cryptocteon.c | 344 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.0-release/sbin/mount_fusefs/ |
H A D | mount_fusefs.c | 107 int mntflags, iovlen, verbose = 0; local 142 iovlen = 0; 282 build_iovec(&iov, &iovlen, mo->m_option, mv->mv_value, mv->mv_len); 288 build_iovec(&iov, &iovlen, mo->m_option, 296 build_iovec(&iov, &iovlen, uscore_opt, 412 build_iovec(&iov, &iovlen, "fstype", __DECONST(void *, "fusefs"), -1); 413 build_iovec(&iov, &iovlen, "fspath", mntpath, -1); 414 build_iovec(&iov, &iovlen, "from", dev, -1); 415 build_iovec(&iov, &iovlen, "fd", fdstr, -1); 420 if (nmount(iov, iovlen, mntflag [all...] |
/freebsd-10.0-release/sys/kern/ |
H A D | subr_uio.c | 326 u_int iovlen; local 331 iovlen = iovcnt * sizeof (struct iovec); 332 *iov = malloc(iovlen, M_IOV, M_WAITOK); 333 error = copyin(iovp, *iov, iovlen); 346 u_int iovlen; local 352 iovlen = iovcnt * sizeof (struct iovec); 353 uio = malloc(iovlen + sizeof *uio, M_IOV, M_WAITOK); 355 error = copyin(iovp, iov, iovlen); 381 int iovlen; local 383 iovlen [all...] |
H A D | uipc_syscalls.c | 2787 int iovlen, 2832 uap->iovlen, &iov, EMSGSIZE); 2835 error = copyiniov(uap->iov, uap->iovlen, &iov, EMSGSIZE); 2855 auio.uio_iovcnt = uap->iovlen; 2862 for (i = 0; i <uap->iovlen; i++, tiov++) { 2913 int iovlen, 2943 uap->iovlen, &iov, EMSGSIZE); 2946 error = copyiniov(uap->iov, uap->iovlen, &iov, EMSGSIZE); 2976 auio.uio_iovcnt = uap->iovlen; 2983 for (i = 0; i <uap->iovlen; [all...] |
/freebsd-10.0-release/usr.sbin/mountd/ |
H A D | mountd.c | 1662 int iovlen; local 1672 iovlen = 0; 1717 build_iovec(&iov, &iovlen, "fstype", NULL, 0); 1718 build_iovec(&iov, &iovlen, "fspath", NULL, 0); 1719 build_iovec(&iov, &iovlen, "from", NULL, 0); 1720 build_iovec(&iov, &iovlen, "update", NULL, 0); 1721 build_iovec(&iov, &iovlen, "export", &export, sizeof(export)); 1722 build_iovec(&iov, &iovlen, "errmsg", errmsg, sizeof(errmsg)); 1748 if (nmount(iov, iovlen, fsp->f_flags) < 0 && 1767 iovlen 2397 int i, iovlen; local [all...] |
/freebsd-10.0-release/sbin/growfs/ |
H A D | growfs.c | 1726 int iovlen; local 1729 iovlen = 0; 1731 build_iovec(&iov, &iovlen, "fstype", __DECONST(char *, "ffs"), 4); 1732 build_iovec(&iov, &iovlen, "fspath", __DECONST(char *, stfs->f_mntonname), (size_t)-1); 1733 build_iovec(&iov, &iovlen, "errmsg", errmsg, sizeof(errmsg)); 1734 build_iovec(&iov, &iovlen, "update", NULL, 0); 1735 build_iovec(&iov, &iovlen, "reload", NULL, 0); 1737 if (nmount(iov, iovlen, stfs->f_flags) < 0) {
|
/freebsd-10.0-release/sys/amd64/linux32/ |
H A D | linux32_machdep.c | 174 uint32_t iovlen; local 180 iovlen = iovcnt * sizeof(struct iovec); 181 uio = malloc(iovlen + sizeof(*uio), M_IOV, M_WAITOK); 215 uint32_t iovlen; local 221 iovlen = iovcnt * sizeof(struct iovec); 222 iov = malloc(iovlen, M_IOV, M_WAITOK);
|
/freebsd-10.0-release/lib/libc/net/ |
H A D | sctp_sys_calls.c | 837 int iovlen, 868 msg.msg_iovlen = iovlen; 835 sctp_recvv(int sd, const struct iovec *iov, int iovlen, struct sockaddr *from, socklen_t * fromlen, void *info, socklen_t * infolen, unsigned int *infotype, int *flags) argument
|
/freebsd-10.0-release/usr.sbin/syslogd/ |
H A D | syslogd.c | 336 static void wallmsg(struct filed *, struct iovec *, const int iovlen); 1349 wallmsg(struct filed *f, struct iovec *iov, const int iovlen) argument 1364 if ((p = ttymsg(iov, iovlen, ut->ut_line, 1376 if ((p = ttymsg(iov, iovlen, ut->ut_line,
|
/freebsd-10.0-release/sys/compat/freebsd32/ |
H A D | freebsd32_misc.c | 830 u_int iovlen; local 836 iovlen = iovcnt * sizeof(struct iovec); 837 uio = malloc(iovlen + sizeof *uio, M_IOV, M_WAITOK); 927 u_int iovlen; local 933 iovlen = iovcnt * sizeof(struct iovec); 934 iov = malloc(iovlen, M_IOV, M_WAITOK);
|