summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2001-08-08 08:51:03 +0000
committerru <ru@FreeBSD.org>2001-08-08 08:51:03 +0000
commite3bc6bb329cef60aa666e5c0d2661bdfa2face41 (patch)
tree9483f88700f3279825f47bc18aa5e503e01e6234 /lib/libc
parentde3730f6b744379f40efa04005490bfdee4e566b (diff)
downloadFreeBSD-src-e3bc6bb329cef60aa666e5c0d2661bdfa2face41.zip
FreeBSD-src-e3bc6bb329cef60aa666e5c0d2661bdfa2face41.tar.gz
mdoc(7) police: markup nits.
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/sys/kldsym.227
1 files changed, 11 insertions, 16 deletions
diff --git a/lib/libc/sys/kldsym.2 b/lib/libc/sys/kldsym.2
index 4ee5c33..a67c502 100644
--- a/lib/libc/sys/kldsym.2
+++ b/lib/libc/sys/kldsym.2
@@ -1,6 +1,6 @@
.\" Copyright (c) 2001 Chris Costello <chris@FreeBSD.org>
.\" All rights reserved.
-.\"
+.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
@@ -9,7 +9,7 @@
.\" 2. Redistributions in binary form must reproduce the above copyright
.\" notice, this list of conditions and the following disclaimer in the
.\" documentation and/or other materials provided with the distribution.
-.\"
+.\"
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -21,20 +21,20 @@
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
-.\"
-.\" $FreeBSD$
-.\"
+.\"
+.\" $FreeBSD$
+.\"
.Dd July 26, 2001
.Dt KLDSYM 2
-.Os FreeBSD
+.Os
.Sh NAME
.Nm kldsym
.Nd look up address by symbol name in a KLD
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <sys/param.h>
-.Fd #include <sys/linker.h>
+.In sys/param.h
+.In sys/linker.h
.Ft int
.Fn kldsym "int fileid" "int command" "void *data"
.Sh DESCRIPTION
@@ -68,7 +68,7 @@ member is to be set
by the code calling
.Fn kldsym
to
-.Li sizeof(struct kld_sym_lookup) .
+.Fn sizeof "struct kld_sym_lookup" .
The next two members,
.Va version
and
@@ -84,12 +84,7 @@ and contain the address associated with
.Va symname
and the size of the data it points to, respectively.
.Sh RETURN VALUES
-The
-.Fn kldsym
-function returns 0 on success
-and -1 on failure, and sets
-.Va errno
-to indicate the error.
+.Rv -std kldsym
.Sh ERRORS
The
.Fn kldsym
@@ -101,7 +96,7 @@ Invalid value in
or
.Fa command .
.It Bq Er ENOENT
-.Fa Fileid
+.Fa fileid
is invalid,
or the specified symbol could not be found.
.El
OpenPOWER on IntegriCloud