summaryrefslogtreecommitdiff
path: root/share/man/man9
diff options
context:
space:
mode:
Diffstat (limited to 'share/man/man9')
-rw-r--r--share/man/man9/copy.928
-rw-r--r--share/man/man9/malloc.94
-rw-r--r--share/man/man9/pool.94
-rw-r--r--share/man/man9/vm_deallocate.93
-rw-r--r--share/man/man9/vm_map_inherit.93
5 files changed, 22 insertions, 20 deletions
diff --git a/share/man/man9/copy.9 b/share/man/man9/copy.9
index 53aa1e0585d..d73e868b889 100644
--- a/share/man/man9/copy.9
+++ b/share/man/man9/copy.9
@@ -1,4 +1,4 @@
-.\" $OpenBSD: copy.9,v 1.7 2000/12/22 00:13:34 avsm Exp $
+.\" $OpenBSD: copy.9,v 1.8 2001/03/01 16:11:24 aaron Exp $
.\" $NetBSD: copy.9,v 1.2 1996/01/09 03:23:04 thorpej Exp $
.\"
.\" Copyright (c) 1996 Jason R. Thorpe.
@@ -79,45 +79,49 @@ bytes of data from the kernel-space address
to the user-space address
.Fa uaddr .
.It Fn copystr
-Copies a NULL-terminated string, at most
+Copies a null-terminated string, at most
.Fa len
bytes long, from kernel-space address
.Fa kfaddr
to kernel-space address
.Fa kdaddr .
-The number of bytes actually copied, including the terminating
-NULL, is returned in
+The number of bytes actually copied, including the terminating null,
+is returned in
.Fa *done .
.It Fn copyinstr
-Copies a NULL-terminated string, at most
+Copies a null-terminated string, at most
.Fa len
bytes long, from user-space address
.Fa uaddr
to kernel-space address
.Fa kaddr .
-The number of bytes actually copied, including the terminating
-NULL, is returned in
+The number of bytes actually copied, including the terminating null,
+is returned in
.Fa *done .
.It Fn copyoutstr
-Copies a NULL-terminated string, at most
+Copies a null-terminated string, at most
bytes long, from kernel-space address
.Fa kaddr
to user-space address
.Fa uaddr .
-The number of bytes actually copied, including the terminating
-NULL, is returned in
+The number of bytes actually copied, including the terminating null,
+is returned in
.Fa *done .
.El
.Sh RETURN VALUES
The
.Nm
-functions return 0 on success or EFAULT if a bad address is encountered.
+functions return 0 on success or
+.Er EFAULT
+if a bad address is encountered.
In addition, the
.Fn copystr ,
.Fn copyinstr ,
and
.Fn copyoutstr
-functions return ENAMETOOLONG if the string is longer than
+functions return
+.Er ENAMETOOLONG
+if the string is longer than
.Fa len
bytes.
.Sh SEE ALSO
diff --git a/share/man/man9/malloc.9 b/share/man/man9/malloc.9
index 3cff0404152..04d7e6f6753 100644
--- a/share/man/man9/malloc.9
+++ b/share/man/man9/malloc.9
@@ -1,4 +1,4 @@
-.\" $OpenBSD: malloc.9,v 1.13 2000/10/12 18:06:00 aaron Exp $
+.\" $OpenBSD: malloc.9,v 1.14 2001/03/01 16:11:25 aaron Exp $
.\" $NetBSD: malloc.9,v 1.2 1996/10/30 05:29:54 lukem Exp $
.\"
.\" Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -348,7 +348,7 @@ any type of object.
A kernel compiled with the
.Dv DIAGNOSTIC
configuration option attempts to detect memory corruption caused by
-such things as writing outside the allocated area and imbalanced calls to the
+such things as writing outside the allocated area and unbalanced calls to the
.Fn malloc
and
.Fn free
diff --git a/share/man/man9/pool.9 b/share/man/man9/pool.9
index cf3060b4b47..af0bedaf3ec 100644
--- a/share/man/man9/pool.9
+++ b/share/man/man9/pool.9
@@ -1,4 +1,4 @@
-.\" $OpenBSD: pool.9,v 1.5 2000/12/22 00:13:34 avsm Exp $
+.\" $OpenBSD: pool.9,v 1.6 2001/03/01 16:11:25 aaron Exp $
.\" $NetBSD: pool.9,v 1.13 1999/04/03 14:50:21 msaitoh Exp $
.\"
.\" Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@@ -104,7 +104,7 @@ Specifies the memory address alignment of the items returned by
.Fn pool_get .
This argument must be a power of two.
If zero,
-the alignment defaults to a architecture-specific natural aligment.
+the alignment defaults to a architecture-specific natural alignment.
.It Fa align_offset
The offset within an item to which the
.Fa align
diff --git a/share/man/man9/vm_deallocate.9 b/share/man/man9/vm_deallocate.9
index 53ecac330b3..1ef2a7ac764 100644
--- a/share/man/man9/vm_deallocate.9
+++ b/share/man/man9/vm_deallocate.9
@@ -1,5 +1,4 @@
-.\"
-.\" $OpenBSD: vm_deallocate.9,v 1.3 2000/12/22 00:13:34 avsm Exp $
+.\" $OpenBSD: vm_deallocate.9,v 1.4 2001/03/01 16:11:25 aaron Exp $
.\"
.\" Mach Operating System
.\" Copyright (c) 1991,1990 Carnegie Mellon University
diff --git a/share/man/man9/vm_map_inherit.9 b/share/man/man9/vm_map_inherit.9
index eb697e3d84c..308bcdf184b 100644
--- a/share/man/man9/vm_map_inherit.9
+++ b/share/man/man9/vm_map_inherit.9
@@ -1,5 +1,4 @@
-.\"
-.\" $OpenBSD: vm_map_inherit.9,v 1.4 2000/12/22 00:13:34 avsm Exp $
+.\" $OpenBSD: vm_map_inherit.9,v 1.5 2001/03/01 16:11:26 aaron Exp $
.\"
.\" Mach Operating System
.\" Copyright (c) 1991,1990 Carnegie Mellon University