Deleted Added
full compact
copy.9 (127583) copy.9 (130582)
1.\" $NetBSD: copy.9,v 1.2 1996/01/09 03:23:04 thorpej Exp $
2.\"
3.\" Copyright (c) 1996 Jason R. Thorpe.
4.\" All rights reserved.
5.\"
6.\" This code is derived from software contributed by Kenneth Stailey.
7.\"
8.\" Redistribution and use in source and binary forms, with or without

--- 18 unchanged lines hidden (view full) ---

27.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
28.\" BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
29.\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
30.\" AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
31.\" OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33.\" SUCH DAMAGE.
34.\"
1.\" $NetBSD: copy.9,v 1.2 1996/01/09 03:23:04 thorpej Exp $
2.\"
3.\" Copyright (c) 1996 Jason R. Thorpe.
4.\" All rights reserved.
5.\"
6.\" This code is derived from software contributed by Kenneth Stailey.
7.\"
8.\" Redistribution and use in source and binary forms, with or without

--- 18 unchanged lines hidden (view full) ---

27.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
28.\" BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
29.\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
30.\" AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
31.\" OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33.\" SUCH DAMAGE.
34.\"
35.\" $FreeBSD: head/share/man/man9/copy.9 127583 2004-03-29 19:42:21Z hmp $
35.\" $FreeBSD: head/share/man/man9/copy.9 130582 2004-06-16 08:33:57Z ru $
36.\"
37.Dd January 7, 1996
38.Dt COPY 9
39.Os
40.Sh NAME
41.Nm copy ,
42.Nm copyin ,
43.Nm copyout ,

--- 45 unchanged lines hidden (view full) ---

89.Fa len
90bytes long, from kernel-space address
91.Fa kfaddr
92to kernel-space address
93.Fa kdaddr .
94The number of bytes actually copied, including the terminating
95NUL, is returned in
96.Fa *done
36.\"
37.Dd January 7, 1996
38.Dt COPY 9
39.Os
40.Sh NAME
41.Nm copy ,
42.Nm copyin ,
43.Nm copyout ,

--- 45 unchanged lines hidden (view full) ---

89.Fa len
90bytes long, from kernel-space address
91.Fa kfaddr
92to kernel-space address
93.Fa kdaddr .
94The number of bytes actually copied, including the terminating
95NUL, is returned in
96.Fa *done
97.Po
98if
97(if
99.Fa done
100is
98.Fa done
99is
101.No non- Ns Dv NULL
102.Pc .
100.No non- Ns Dv NULL ) .
103.It Fn copyinstr
104Copies a NUL-terminated string, at most
105.Fa len
106bytes long, from user-space address
107.Fa uaddr
108to kernel-space address
109.Fa kaddr .
110The number of bytes actually copied, including the terminating
111NUL, is returned in
112.Fa *done
101.It Fn copyinstr
102Copies a NUL-terminated string, at most
103.Fa len
104bytes long, from user-space address
105.Fa uaddr
106to kernel-space address
107.Fa kaddr .
108The number of bytes actually copied, including the terminating
109NUL, is returned in
110.Fa *done
113.Po
114if
111(if
115.Fa done
116is
112.Fa done
113is
117.No non- Ns Dv NULL Ns
118.Pc .
114.No non- Ns Dv NULL ) .
119.\" .It Fn copyoutstr
120.\" Copies a NUL-terminated string, at most
121.\" bytes long, from kernel-space address
115.\" .It Fn copyoutstr
116.\" Copies a NUL-terminated string, at most
117.\" bytes long, from kernel-space address
122.\" .Pa kaddr
118.\" .Fa kaddr
123.\" to user-space address
119.\" to user-space address
124.\" .Pa uaddr .
120.\" .Fa uaddr .
125.\" The number of bytes actually copied, including the terminating
126.\" NUL, is returned in
121.\" The number of bytes actually copied, including the terminating
122.\" NUL, is returned in
127.\" .Pa *done .
123.\" .Fa *done .
128.El
129.Sh RETURN VALUES
130The
131.Nm
132functions return 0 on success or
133.Er EFAULT
134if a bad address is encountered.
135In addition, the

--- 14 unchanged lines hidden ---
124.El
125.Sh RETURN VALUES
126The
127.Nm
128functions return 0 on success or
129.Er EFAULT
130if a bad address is encountered.
131In addition, the

--- 14 unchanged lines hidden ---