diff options
Diffstat (limited to 'lib/libkvm')
-rw-r--r-- | lib/libkvm/kvm_dump.3 | 6 | ||||
-rw-r--r-- | lib/libkvm/kvm_geterr.3 | 6 | ||||
-rw-r--r-- | lib/libkvm/kvm_getprocs.3 | 20 | ||||
-rw-r--r-- | lib/libkvm/kvm_open.3 | 22 | ||||
-rw-r--r-- | lib/libkvm/kvm_read.3 | 8 |
5 files changed, 31 insertions, 31 deletions
diff --git a/lib/libkvm/kvm_dump.3 b/lib/libkvm/kvm_dump.3 index ffddb95f4a2..fa51b1bc1c8 100644 --- a/lib/libkvm/kvm_dump.3 +++ b/lib/libkvm/kvm_dump.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: kvm_dump.3,v 1.2 1999/07/07 14:22:25 aaron Exp $ +.\" $OpenBSD: kvm_dump.3,v 1.3 1999/07/09 13:35:25 aaron Exp $ .\" $NetBSD: kvm_dump.3,v 1.1 1996/03/18 21:11:12 leo Exp $ .\" .\" Copyright (c) 1996 Leo Weppelman @@ -54,10 +54,10 @@ First note that the functions described here were designed to be used by .Pp The function .Fn kvm_dump_mkheader -checks if the physical memory file associated with +checks if the physical memory file associated with .Fa kd contains a valid crash-dump header as generated by a dumping kernel. When a -valid header is found, +valid header is found, .Fn kvm_dump_mkheader initializes the internal kvm data structures as if a crash-dump generated by the diff --git a/lib/libkvm/kvm_geterr.3 b/lib/libkvm/kvm_geterr.3 index 1d1899dc02f..d1977d8f1de 100644 --- a/lib/libkvm/kvm_geterr.3 +++ b/lib/libkvm/kvm_geterr.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: kvm_geterr.3,v 1.2 1996/05/05 14:57:02 deraadt Exp $ +.\" $OpenBSD: kvm_geterr.3,v 1.3 1999/07/09 13:35:25 aaron Exp $ .\" $NetBSD: kvm_geterr.3,v 1.2 1996/03/18 22:33:20 thorpej Exp $ .\" .\" Copyright (c) 1992, 1993 @@ -56,7 +56,7 @@ on the descriptor The results are undefined if the most recent .Xr kvm 3 library call did not produce an error. -The string returned is stored in memory owned by +The string returned is stored in memory owned by .Xr kvm 3 so the message should be copied out and saved elsewhere if necessary. .Sh BUGS @@ -66,7 +66,7 @@ call, since failure is indicated by returning a .Dv NULL descriptor. Therefore, errors on open are output to the special error buffer -passed to +passed to .Fn kvm_openfiles . This option is not available to .Fn kvm_open . diff --git a/lib/libkvm/kvm_getprocs.3 b/lib/libkvm/kvm_getprocs.3 index b983d307133..3b6b2d07b39 100644 --- a/lib/libkvm/kvm_getprocs.3 +++ b/lib/libkvm/kvm_getprocs.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: kvm_getprocs.3,v 1.5 1999/07/02 21:13:04 aaron Exp $ +.\" $OpenBSD: kvm_getprocs.3,v 1.6 1999/07/09 13:35:25 aaron Exp $ .\" $NetBSD: kvm_getprocs.3,v 1.3 1996/05/20 16:58:03 mrg Exp $ .\" .\" Copyright (c) 1992, 1993 @@ -44,7 +44,7 @@ .Sh NAME .Nm kvm_getprocs , .Nm kvm_getargv , -.Nm kvm_getenvv +.Nm kvm_getenvv .Nd access user process state .Sh SYNOPSIS .Fd #include <kvm.h> @@ -97,13 +97,13 @@ The number of processes found is returned in the reference parameter .Fa cnt . The processes are returned as a contiguous array of kinfo_proc structures. This memory is locally allocated, and subsequent calls to -.Fn kvm_getprocs -and +.Fn kvm_getprocs +and .Fn kvm_close will overwrite this storage. .Pp .Fn kvm_getargv -returns a null-terminated argument vector that corresponds to the +returns a null-terminated argument vector that corresponds to the command line arguments passed to process indicated by .Fa p . Most likely, these arguments correspond to the values passed to @@ -116,7 +116,7 @@ in the field of the process structure returned by .Fn kvm_getprocs . .Pp -The +The .Fa nchr argument indicates the maximum number of characters, including null bytes, to use in building the strings. If this amount is exceeded, the string @@ -129,13 +129,13 @@ that print only a one line summary of a command and should not copy out large amounts of text only to ignore it. If .Fa nchr -is zero, no limit is imposed and all argument strings are returned in +is zero, no limit is imposed and all argument strings are returned in their entirety. .Pp The memory allocated to the argv pointers and string storage -is owned by the kvm library. Subsequent -.Fn kvm_getprocs -and +is owned by the kvm library. Subsequent +.Fn kvm_getprocs +and .Xr kvm_close 3 calls will clobber this storage. .Pp diff --git a/lib/libkvm/kvm_open.3 b/lib/libkvm/kvm_open.3 index 7b2aba5aa06..56620ace6a8 100644 --- a/lib/libkvm/kvm_open.3 +++ b/lib/libkvm/kvm_open.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: kvm_open.3,v 1.4 1999/07/07 14:22:25 aaron Exp $ +.\" $OpenBSD: kvm_open.3,v 1.5 1999/07/09 13:35:25 aaron Exp $ .\" $NetBSD: kvm_open.3,v 1.2 1996/03/18 22:33:52 thorpej Exp $ .\" .\" Copyright (c) 1992, 1993 @@ -59,10 +59,10 @@ .Sh DESCRIPTION The functions .Fn kvm_open -and +and .Fn kvm_openfiles return a descriptor used to access kernel virtual memory -via the +via the .Xr kvm 3 library routines. Both active kernels and crash dumps are accessible through this interface. @@ -80,9 +80,9 @@ if it exists, otherwise is used. Both are defined in <paths.h>. .Pp -.Fa corefile +.Fa corefile is the kernel memory device file. It can be either /dev/mem -or a crash dump core generated by +or a crash dump core generated by .Xr savecore 8 . If .Fa corefile @@ -99,7 +99,7 @@ should indicate the swap device. If from <paths.h> is used. .Pp The -.Fa flags +.Fa flags argument indicates read/write access as in .Xr open 2 and applies only to the core file. @@ -110,7 +110,7 @@ and .Dv O_RDWR are permitted. .Pp -There are two open routines which differ only with respect to +There are two open routines which differ only with respect to the error mechanism. One provides backward compatibility with the SunOS kvm library, while the other provides an improved error reporting framework. @@ -121,11 +121,11 @@ function is the Sun kvm compatible open call. Here, the .Fa errstr argument indicates how errors should be handled. If it is .Dv NULL , -no errors are reported and the application cannot know the +no errors are reported and the application cannot know the specific nature of the failed kvm call. If it is not .Dv NULL , -errors are printed to stderr with +errors are printed to stderr with .Fa errstr prepended to the message, as in .Xr perror 3 . @@ -161,7 +161,7 @@ argument. This buffer should be _POSIX2_LINE_MAX characters large (from .Sh RETURN VALUES The .Fn kvm_open -and +and .Fn kvm_openfiles functions both return a descriptor to be used in all subsequent kvm library calls. @@ -170,7 +170,7 @@ On failure, .Dv NULL is returned, in which case .Fn kvm_openfiles -writes the error message into +writes the error message into .Fa errbuf . .Pp The diff --git a/lib/libkvm/kvm_read.3 b/lib/libkvm/kvm_read.3 index 8a296db375d..43017b7b835 100644 --- a/lib/libkvm/kvm_read.3 +++ b/lib/libkvm/kvm_read.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: kvm_read.3,v 1.3 1999/07/07 14:22:25 aaron Exp $ +.\" $OpenBSD: kvm_read.3,v 1.4 1999/07/09 13:35:26 aaron Exp $ .\" $NetBSD: kvm_read.3,v 1.2 1996/03/18 22:34:01 thorpej Exp $ .\" .\" Copyright (c) 1992, 1993 @@ -66,19 +66,19 @@ for information regarding opening kernel virtual memory and crash dumps. The .Fn kvm_read function transfers -.Fa nbytes +.Fa nbytes bytes of data from the kernel space address .Fa addr to .Fa buf . -Conversely, +Conversely, .Fn kvm_write transfers data from .Fa buf to .Fa addr . -Unlike their SunOS counterparts, these functions cannot be used to +Unlike their SunOS counterparts, these functions cannot be used to read or write process address spaces. .Sh RETURN VALUES Upon success, the number of bytes actually transferred is returned. |