summaryrefslogtreecommitdiffstats
path: root/lib/libc/net/if_indextoname.3
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2001-02-01 16:38:02 +0000
committerru <ru@FreeBSD.org>2001-02-01 16:38:02 +0000
commit8a6f8b5fe456b5b3a8f1d86173f81cfcae6cfe19 (patch)
treeb428fc12404c6d6be2c1fce52490993ab3744097 /lib/libc/net/if_indextoname.3
parent4923ae6c3fe2f82d94fec60b85ed2a6272b2fd67 (diff)
downloadFreeBSD-src-8a6f8b5fe456b5b3a8f1d86173f81cfcae6cfe19.zip
FreeBSD-src-8a6f8b5fe456b5b3a8f1d86173f81cfcae6cfe19.tar.gz
mdoc(7) police: split punctuation characters + misc fixes.
Diffstat (limited to 'lib/libc/net/if_indextoname.3')
-rw-r--r--lib/libc/net/if_indextoname.318
1 files changed, 7 insertions, 11 deletions
diff --git a/lib/libc/net/if_indextoname.3 b/lib/libc/net/if_indextoname.3
index a0d4beb..adf82cb 100644
--- a/lib/libc/net/if_indextoname.3
+++ b/lib/libc/net/if_indextoname.3
@@ -57,11 +57,9 @@
.Fn if_freenameindex "struct if_nameindex *ptr"
.Sh DESCRIPTION
The functions map interface index to readable interface name
-.Po
-such as
-.Li ``lo0''
-.Pc
-, and vice versa.
+(such as
+.Dq Li lo0 ) ,
+and vice versa.
.Pp
.Fn if_nametoindex
converts readable interface name to interface index
@@ -76,13 +74,11 @@ argument must point to a buffer of at least
.Dv IF_NAMESIZE
bytes into which the interface name corresponding to the specified index is
returned.
-.Po
-.Dv IF_NAMESIZE
+.Dv ( IF_NAMESIZE
is also defined in
-.Li <net/if.h>
+.Aq Pa net/if.h
and its value includes a terminating null byte at the end of the
-interface name.
-.Pc
+interface name.)
This pointer is also the return value of the function.
If there is no interface corresponding to the specified index,
.Dv NULL
@@ -94,7 +90,7 @@ returns an array of
structures.
.Fa if_nametoindex
is also defined in
-.Li <net/if.h> ,
+.Aq Pa net/if.h ,
and is as follows:
.Bd -literal -offset
struct if_nameindex {
OpenPOWER on IntegriCloud