diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2015-02-10 21:56:11 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2015-02-10 21:56:11 +0000 |
commit | fb06ed88b5810f53d16a2f3f90904ed7ea4de07a (patch) | |
tree | 0ad268ca945306e22e87692f6bb02fcd1220d0e4 /share | |
parent | 4ed4205fc6bdb404dcf67f9f19347eea957f5982 (diff) |
First step towards making uiomove() take a size_t size argument:
- rename uiomove() to uiomovei() and update all its users.
- introduce uiomove(), which is similar to uiomovei() but with a size_t.
- rewrite uiomovei() as an uiomove() wrapper.
ok kettenis@
Diffstat (limited to 'share')
-rw-r--r-- | share/man/man9/Makefile | 4 | ||||
-rw-r--r-- | share/man/man9/uiomove.9 | 19 |
2 files changed, 17 insertions, 6 deletions
diff --git a/share/man/man9/Makefile b/share/man/man9/Makefile index 906f4cf57f4..74d7cdd5a2a 100644 --- a/share/man/man9/Makefile +++ b/share/man/man9/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.229 2015/02/07 23:54:24 dlg Exp $ +# $OpenBSD: Makefile,v 1.230 2015/02/10 21:56:08 miod Exp $ # $NetBSD: Makefile,v 1.4 1996/01/09 03:23:01 thorpej Exp $ # Makefile for section 9 (kernel function and variable) manual pages. @@ -392,7 +392,7 @@ MLINKS+=timeout.9 timeout_add.9 timeout.9 timeout_set.9 \ MLINKS+=tsleep.9 wakeup.9 tsleep.9 wakeup_n.9 tsleep.9 wakeup_one.9 \ tsleep.9 msleep.9 MLINKS+=tvtohz.9 tstohz.9 -MLINKS+=uiomove.9 uio.9 +MLINKS+=uiomove.9 uio.9 uiomove.9 uiomovei.9 MLINKS+=usbd_transfer.9 usbd_setup_xfer.9 MLINKS+=uvm.9 uvm_init.9 uvm.9 uvm_init_limits.9 uvm.9 uvm_setpagesize.9 \ uvm.9 uvm_swap_init.9 uvm.9 uvm_map.9 uvm.9 uvm_map_pageable.9 \ diff --git a/share/man/man9/uiomove.9 b/share/man/man9/uiomove.9 index 58514105cad..8c257d6b7d7 100644 --- a/share/man/man9/uiomove.9 +++ b/share/man/man9/uiomove.9 @@ -1,4 +1,4 @@ -.\" $OpenBSD: uiomove.9,v 1.14 2014/01/21 03:15:46 schwarze Exp $ +.\" $OpenBSD: uiomove.9,v 1.15 2015/02/10 21:56:08 miod Exp $ .\" $NetBSD: uiomove.9,v 1.6 2001/12/26 00:16:30 wiz Exp $ .\" .\" Copyright (c) 1996 The NetBSD Foundation, Inc. @@ -25,7 +25,7 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE .\" POSSIBILITY OF SUCH DAMAGE. .\" -.Dd $Mdocdate: January 21 2014 $ +.Dd $Mdocdate: February 10 2015 $ .Dt UIOMOVE 9 .Os .Sh NAME @@ -34,7 +34,9 @@ .Sh SYNOPSIS .In sys/systm.h .Ft int -.Fn uiomove "void *buf" "int n" "struct uio *uio" +.Fn uiomove "void *buf" "size_t n" "struct uio *uio" +.Ft int +.Fn uiomovei "void *buf" "int n" "struct uio *uio" .Sh DESCRIPTION The .Nm @@ -130,8 +132,17 @@ to point that much farther into the region described. This allows multiple calls to .Nm to easily be used to fill or drain the region of data. +.Pp +The +.Nm uiomovei +function is a similar to +.Nm uiomove , +but uses a signed integer as the byte count. +It is a temporary legacy interface and should not be used in new code. .Sh RETURN VALUES .Nm -returns 0 on success or EFAULT if a bad address is encountered. +and +.Nm uiomovei +return 0 on success or EFAULT if a bad address is encountered. .Sh SEE ALSO .Xr copy 9 |