1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-20 02:38:43 +00:00

Rename iov_to_uio to uiofromiov to be more consistent with other

uio* functions.

Suggested by:	bde
This commit is contained in:
Mike Silbersack 2004-02-04 08:43:21 +00:00
parent 8d719eb22e
commit ff5e43a3fd
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=125423
3 changed files with 3 additions and 3 deletions

View File

@ -485,7 +485,7 @@ copyinstrfrom(const void * __restrict src, void * __restrict dst, size_t len,
} }
int int
iov_to_uio(struct iovec *iovp, u_int iovcnt, struct uio *uio) uiofromiov(struct iovec *iovp, u_int iovcnt, struct uio *uio)
{ {
struct iovec *iov; struct iovec *iov;
u_int iovlen; u_int iovlen;

View File

@ -1738,7 +1738,7 @@ do_sendfile(struct thread *td, struct sendfile_args *uap, int compat)
if (hdtr.headers != NULL) { if (hdtr.headers != NULL) {
hdr_uio.uio_td = td; hdr_uio.uio_td = td;
hdr_uio.uio_rw = UIO_WRITE; hdr_uio.uio_rw = UIO_WRITE;
error = iov_to_uio(hdtr.headers, hdtr.hdr_cnt, error = uiofromiov(hdtr.headers, hdtr.hdr_cnt,
&hdr_uio); &hdr_uio);
if (error) if (error)
goto done; goto done;

View File

@ -90,13 +90,13 @@ int copyinfrom(const void * __restrict src, void * __restrict dst,
int copyinstrfrom(const void * __restrict src, void * __restrict dst, int copyinstrfrom(const void * __restrict src, void * __restrict dst,
size_t len, size_t * __restrict copied, int seg); size_t len, size_t * __restrict copied, int seg);
void uio_yield(void); void uio_yield(void);
int uiofromiov(struct iovec *iovp, u_int iovcnt, struct uio *auio);
int uiomove(void *cp, int n, struct uio *uio); int uiomove(void *cp, int n, struct uio *uio);
int uiomove_frombuf(void *buf, int buflen, struct uio *uio); int uiomove_frombuf(void *buf, int buflen, struct uio *uio);
int uiomoveco(void *cp, int n, struct uio *uio, struct vm_object *obj, int uiomoveco(void *cp, int n, struct uio *uio, struct vm_object *obj,
int disposable); int disposable);
struct mbuf * struct mbuf *
m_uiotombuf(struct uio *uio, int how, int len); m_uiotombuf(struct uio *uio, int how, int len);
int iov_to_uio(struct iovec *iovp, u_int iovcnt, struct uio *auio);
#else /* !_KERNEL */ #else /* !_KERNEL */