Searched refs:iov (Results 1 - 25 of 284) sorted by relevance

1234567891011>>

/freebsd-head/lib/libc/stdio/
H A Dputs.c58 struct __siov iov[2]; local
60 iov[0].iov_base = (void *)s;
61 iov[0].iov_len = c = strlen(s);
62 iov[1].iov_base = "\n";
63 iov[1].iov_len = 1;
65 uio.uio_iov = &iov[0];
H A Dputw.c53 struct __siov iov; local
55 iov.iov_base = &w;
56 uio.uio_resid = iov.iov_len = sizeof(w);
57 uio.uio_iov = &iov;
H A Dfputs.c58 struct __siov iov; local
60 iov.iov_base = (void *)s;
61 uio.uio_resid = iov.iov_len = strlen(s);
62 uio.uio_iov = &iov;
67 return (iov.iov_len > INT_MAX ? INT_MAX : iov.iov_len);
H A Dperror.c55 struct iovec iov[4]; local
57 v = iov;
74 (void)_writev(stderr->_file, iov, (v - iov) + 1);
/freebsd-head/usr.sbin/bhyve/
H A Diov.h38 void truncate_iov(struct iovec *iov, int *niov, size_t length);
39 size_t count_iov(const struct iovec *iov, int niov);
40 ssize_t iov_to_buf(const struct iovec *iov, int niov, void **buf);
41 ssize_t buf_to_iov(const void *buf, size_t buflen, const struct iovec *iov,
H A Diov.c40 #include "iov.h"
73 count_iov(const struct iovec *iov, int niov) argument
79 total += iov[i].iov_len;
85 truncate_iov(struct iovec *iov, int *niov, size_t length) argument
91 size_t toseek = MIN(length - done, iov[i].iov_len);
94 if (toseek <= iov[i].iov_len) {
95 iov[i].iov_len = toseek;
103 iov_to_buf(const struct iovec *iov, int niov, void **buf) argument
108 total = count_iov(iov, niov);
114 memcpy(*buf + ptr, iov[
122 buf_to_iov(const void *buf, size_t buflen, const struct iovec *iov, int niov, size_t seek) argument
[all...]
/freebsd-head/crypto/heimdal/lib/krb5/
H A Daes-test.c327 krb5_crypto_iov iov[4]; local
336 iov[0].flags = KRB5_CRYPTO_TYPE_HEADER;
337 krb5_crypto_length(context, crypto, iov[0].flags, &iov[0].data.length);
338 iov[0].data.data = emalloc(iov[0].data.length);
340 iov[1].flags = KRB5_CRYPTO_TYPE_DATA;
341 iov[1].data.length = len;
342 iov[1].data.data = emalloc(iov[
431 krb5_crypto_iov iov[3]; local
483 krb5_crypto_iov iov[4]; local
648 krb5_crypto_iov iov[6]; local
[all...]
/freebsd-head/cddl/compat/opensolaris/misc/
H A Dzmount.c45 build_iovec(struct iovec **iov, int *iovlen, const char *name, void *val, argument
53 *iov = realloc(*iov, sizeof(**iov) * (i + 2));
54 if (*iov == NULL) {
58 (*iov)[i].iov_base = strdup(name);
59 (*iov)[i].iov_len = strlen(name) + 1;
61 (*iov)[i].iov_base = val;
68 (*iov)[i].iov_len = (int)len;
76 struct iovec *iov; local
[all...]
/freebsd-head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/docsExamples/
H A Dksyms.d59 this->iov = args[3]->uio_iov;
61 printf("uiomove %u bytes to %p in pid %d\n", this->iov->iov_len,
62 this->iov->iov_base, pid);
/freebsd-head/contrib/sendmail/libsm/
H A Dfput.c44 struct sm_iov iov; local
47 iov.iov_base = (void *) s;
48 iov.iov_len = uio.uio_resid = strlen(s);
49 uio.uio_iov = &iov;
H A Dfwrite.c46 struct sm_iov iov; local
56 iov.iov_base = (void *) buf;
57 uio.uio_resid = iov.iov_len = size;
58 uio.uio_iov = &iov;
/freebsd-head/sys/dev/pci/
H A Dpci_iov.c39 #include <sys/iov.h>
71 .d_name = "iov",
88 pci_read_config((d)->cfg.dev, (d)->cfg.iov->iov_pos + r, w)
91 pci_write_config((d)->cfg.dev, (d)->cfg.iov->iov_pos + r, v, w)
122 struct pcicfg_iov *iov; local
147 iov = malloc(sizeof(*dinfo->cfg.iov), M_SRIOV, M_WAITOK | M_ZERO);
150 if (dinfo->cfg.iov != NULL) {
154 iov->iov_pos = iov_pos;
165 iov
194 struct pcicfg_iov *iov; local
337 struct pcicfg_iov *iov; local
365 pci_iov_add_bars(struct pcicfg_iov *iov, struct pci_devinfo *dinfo) argument
384 pci_iov_parse_config(struct pcicfg_iov *iov, struct pci_iov_arg *arg, nvlist_t **ret) argument
517 pci_iov_init_rman(device_t pf, struct pcicfg_iov *iov) argument
539 struct pcicfg_iov *iov; local
571 struct pcicfg_iov *iov; local
622 struct pcicfg_iov *iov; local
674 struct pcicfg_iov *iov; local
792 struct pcicfg_iov *iov; local
804 struct pcicfg_iov *iov; local
831 struct pcicfg_iov *iov; local
981 struct pcicfg_iov *iov; local
[all...]
/freebsd-head/crypto/heimdal/lib/gssapi/mech/
H A Dgss_aeap.c52 gss_iov_buffer_desc *iov,
64 if (iov == NULL && iov_count != 0)
74 iov, iov_count);
89 gss_iov_buffer_desc *iov,
103 if (iov == NULL && iov_count != 0)
113 iov, iov_count);
117 * Update the length fields in iov buffer for the types:
133 gss_iov_buffer_desc *iov,
145 if (iov == NULL && iov_count != 0)
155 iov, iov_coun
47 gss_wrap_iov(OM_uint32 * minor_status, gss_ctx_id_t context_handle, int conf_req_flag, gss_qop_t qop_req, int * conf_state, gss_iov_buffer_desc *iov, int iov_count) argument
85 gss_unwrap_iov(OM_uint32 *minor_status, gss_ctx_id_t context_handle, int *conf_state, gss_qop_t *qop_state, gss_iov_buffer_desc *iov, int iov_count) argument
128 gss_wrap_iov_length(OM_uint32 * minor_status, gss_ctx_id_t context_handle, int conf_req_flag, gss_qop_t qop_req, int *conf_state, gss_iov_buffer_desc *iov, int iov_count) argument
166 gss_release_iov_buffer(OM_uint32 *minor_status, gss_iov_buffer_desc *iov, int iov_count) argument
[all...]
/freebsd-head/crypto/heimdal/lib/roken/
H A Drecvmsg.c45 struct iovec *iov = msg->msg_iov; local
48 tot += iov[i].iov_len;
57 ssize_t cnt = min(nb, iov->iov_len);
59 memcpy (iov->iov_base, p, cnt);
62 ++iov;
H A Dwritev.c39 writev(int d, const struct iovec *iov, int iovcnt) argument
47 tot += iov[i].iov_len;
55 memcpy (p, iov[i].iov_base, iov[i].iov_len);
56 p += iov[i].iov_len;
H A Dreadv.c39 readv(int d, const struct iovec *iov, int iovcnt) argument
47 tot += iov[i].iov_len;
56 ssize_t cnt = min(nb, iov->iov_len);
58 memcpy (iov->iov_base, p, cnt);
/freebsd-head/lib/libsdp/
H A Dservice.c53 struct iovec iov[4]; local
75 iov[0].iov_base = (void *) &pdu;
76 iov[0].iov_len = sizeof(pdu);
78 iov[1].iov_base = (void *) &uuid;
79 iov[1].iov_len = sizeof(uuid);
81 iov[2].iov_base = (void *) bdaddr;
82 iov[2].iov_len = sizeof(*bdaddr);
84 iov[3].iov_base = (void *) data;
85 iov[3].iov_len = datalen;
88 len = writev(ss->s, iov, sizeo
118 struct iovec iov[2]; local
162 struct iovec iov[3]; local
[all...]
/freebsd-head/sbin/mount_cd9660/
H A Dmount_cd9660.c86 struct iovec *iov; local
94 iov = NULL;
102 build_iovec(&iov, &iovlen, "brokenjoliet", NULL, (size_t)-1);
105 build_iovec(&iov, &iovlen, "extatt", NULL, (size_t)-1);
108 build_iovec(&iov, &iovlen, "gens", NULL, (size_t)-1);
111 build_iovec(&iov, &iovlen, "nojoliet", NULL, (size_t)-1);
121 build_iovec(&iov, &iovlen, optarg, val, (size_t)-1);
124 build_iovec(&iov, &iovlen, "norrip", NULL, (size_t)-1);
133 if (set_charset(&iov, &iovlen, optarg) == -1)
135 build_iovec(&iov,
240 set_charset(struct iovec **iov, int *iovlen, const char *localcs) argument
[all...]
/freebsd-head/sys/compat/cloudabi/
H A Dcloudabi_random.c39 struct iovec iov = { local
44 .uio_iov = &iov,
46 .uio_resid = iov.iov_len,
/freebsd-head/usr.bin/wall/
H A Dttymsg.c62 ttymsg(struct iovec *iov, int iovcnt, const char *line, int tmout) argument
74 return ("too many iov's (change code in wall/ttymsg.c)");
100 left += iov[cnt].iov_len;
103 wret = writev(fd, iov, iovcnt);
108 if (iov != localiov) {
109 bcopy(iov, localiov,
111 iov = localiov;
113 for (cnt = 0; (size_t)wret >= iov->iov_len; ++cnt) {
114 wret -= iov->iov_len;
115 ++iov;
[all...]
/freebsd-head/sbin/mount_msdosfs/
H A Dmount_msdosfs.c67 static int set_charset(struct iovec **iov, int *iovlen, const char *, const char *);
72 struct iovec *iov = NULL; local
90 build_iovec(&iov, &iovlen, "shortnames", NULL, (size_t)-1);
93 build_iovec(&iov, &iovlen, "longnames", NULL, (size_t)-1);
96 build_iovec_argf(&iov, &iovlen, "nowin95", "", (size_t)-1);
122 build_iovec_argf(&iov, &iovlen, "cs_local", quirk);
128 build_iovec_argf(&iov, &iovlen, "cs_dos", cs_dos, (size_t)-1);
139 build_iovec(&iov, &iovlen, optarg, val, (size_t)-1);
158 build_iovec(&iov, &iovlen, "cs_local", cs_local, (size_t)-1);
159 build_iovec(&iov,
300 set_charset(struct iovec **iov, int *iovlen, const char *cs_local, const char *cs_dos) argument
[all...]
/freebsd-head/crypto/openssh/
H A Datomicio.c107 struct iovec iov_array[IOV_MAX], *iov = iov_array; local
114 /* Make a copy of the iov array because we may modify it below */
115 memcpy(iov, _iov, (size_t)iovcnt * sizeof(*_iov));
121 for (; iovcnt > 0 && iov[0].iov_len > 0;) {
122 res = (f) (fd, iov, iovcnt);
140 /* skip completed iov entries */
141 while (iovcnt > 0 && rem >= iov[0].iov_len) {
142 rem -= iov[0].iov_len;
143 iov++;
147 if (rem > 0 && (iovcnt <= 0 || rem > iov[
[all...]
/freebsd-head/lib/libc/sys/
H A Dreadv.c46 readv(int fd, const struct iovec *iov, int iovcnt) argument
50 __libc_interposing[INTERPOS_readv])(fd, iov, iovcnt));
H A Dwritev.c46 writev(int fd, const struct iovec *iov, int iovcnt) argument
50 __libc_interposing[INTERPOS_writev])(fd, iov, iovcnt));
/freebsd-head/sbin/mount/
H A Dmount_fs.c79 struct iovec *iov; local
92 iov = NULL;
106 build_iovec(&iov, &iovlen, optarg, val, (size_t)-1);
128 build_iovec(&iov, &iovlen, "fstype", fstype, (size_t)-1);
129 build_iovec(&iov, &iovlen, "fspath", mntpath, (size_t)-1);
130 build_iovec(&iov, &iovlen, "from", dev, (size_t)-1);
131 build_iovec(&iov, &iovlen, "errmsg", errmsg, sizeof(errmsg));
133 if (nmount(iov, iovlen, mntflags) == -1) {

Completed in 124 milliseconds

1234567891011>>