diff options
Diffstat (limited to 'src/lib/libc/net/getifaddrs.3')
-rw-r--r-- | src/lib/libc/net/getifaddrs.3 | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/src/lib/libc/net/getifaddrs.3 b/src/lib/libc/net/getifaddrs.3 index 0b3538302a..4abc01481a 100644 --- a/src/lib/libc/net/getifaddrs.3 +++ b/src/lib/libc/net/getifaddrs.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: getifaddrs.3,v 1.19 2014/04/07 17:57:56 schwarze Exp $ | 1 | .\" $OpenBSD: getifaddrs.3,v 1.20 2015/01/29 01:46:30 schwarze Exp $ |
2 | .\" BSDI getifaddrs.3,v 2.5 2000/02/23 14:51:59 dab Exp | 2 | .\" BSDI getifaddrs.3,v 2.5 2000/02/23 14:51:59 dab Exp |
3 | .\" | 3 | .\" |
4 | .\" Copyright (c) 1995, 1999 | 4 | .\" Copyright (c) 1995, 1999 |
@@ -21,7 +21,7 @@ | |||
21 | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | 21 | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
22 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 22 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
23 | .\" SUCH DAMAGE. | 23 | .\" SUCH DAMAGE. |
24 | .Dd $Mdocdate: April 7 2014 $ | 24 | .Dd $Mdocdate: January 29 2015 $ |
25 | .Dt GETIFADDRS 3 | 25 | .Dt GETIFADDRS 3 |
26 | .Os | 26 | .Os |
27 | .Sh NAME | 27 | .Sh NAME |
@@ -43,11 +43,11 @@ function stores a reference to a linked list of the network interfaces | |||
43 | on the local machine in the memory referenced by | 43 | on the local machine in the memory referenced by |
44 | .Fa ifap . | 44 | .Fa ifap . |
45 | The list consists of | 45 | The list consists of |
46 | .Nm ifaddrs | 46 | .Vt ifaddrs |
47 | structures, as defined in the include file | 47 | structures, as defined in the include file |
48 | .In ifaddrs.h . | 48 | .In ifaddrs.h . |
49 | The | 49 | The |
50 | .Nm ifaddrs | 50 | .Vt ifaddrs |
51 | structure contains at least the following entries: | 51 | structure contains at least the following entries: |
52 | .Bd -literal | 52 | .Bd -literal |
53 | struct ifaddrs *ifa_next; /* Pointer to next struct */ | 53 | struct ifaddrs *ifa_next; /* Pointer to next struct */ |
@@ -102,7 +102,7 @@ References address family specific data. | |||
102 | For | 102 | For |
103 | .Dv AF_LINK | 103 | .Dv AF_LINK |
104 | addresses it contains a pointer to the | 104 | addresses it contains a pointer to the |
105 | .Li struct if_data | 105 | .Vt struct if_data |
106 | (as defined in include file | 106 | (as defined in include file |
107 | .In net/if.h ) | 107 | .In net/if.h ) |
108 | which contains various interface attributes and statistics. | 108 | which contains various interface attributes and statistics. |
@@ -118,10 +118,7 @@ is dynamically allocated and should be freed using | |||
118 | .Fn freeifaddrs | 118 | .Fn freeifaddrs |
119 | when no longer needed. | 119 | when no longer needed. |
120 | .Sh RETURN VALUES | 120 | .Sh RETURN VALUES |
121 | Upon successful completion, a value of 0 is returned. | 121 | .Rv -std |
122 | Otherwise, a value of \-1 is returned and | ||
123 | .Va errno | ||
124 | is set to indicate the error. | ||
125 | .Sh ERRORS | 122 | .Sh ERRORS |
126 | The | 123 | The |
127 | .Fn getifaddrs | 124 | .Fn getifaddrs |