diff options
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libc/net/getifaddrs.3 | 15 | ||||
| -rw-r--r-- | src/lib/libc/stdlib/qsort.3 | 13 | ||||
| -rw-r--r-- | src/lib/libc/stdlib/radixsort.3 | 12 |
3 files changed, 13 insertions, 27 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 |
diff --git a/src/lib/libc/stdlib/qsort.3 b/src/lib/libc/stdlib/qsort.3 index 4481a96ee4..36eaed879b 100644 --- a/src/lib/libc/stdlib/qsort.3 +++ b/src/lib/libc/stdlib/qsort.3 | |||
| @@ -29,9 +29,9 @@ | |||
| 29 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 29 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
| 30 | .\" SUCH DAMAGE. | 30 | .\" SUCH DAMAGE. |
| 31 | .\" | 31 | .\" |
| 32 | .\" $OpenBSD: qsort.3,v 1.17 2013/07/17 05:42:11 schwarze Exp $ | 32 | .\" $OpenBSD: qsort.3,v 1.18 2015/01/29 01:46:31 schwarze Exp $ |
| 33 | .\" | 33 | .\" |
| 34 | .Dd $Mdocdate: July 17 2013 $ | 34 | .Dd $Mdocdate: January 29 2015 $ |
| 35 | .Dt QSORT 3 | 35 | .Dt QSORT 3 |
| 36 | .Os | 36 | .Os |
| 37 | .Sh NAME | 37 | .Sh NAME |
| @@ -147,14 +147,7 @@ The | |||
| 147 | .Fn qsort | 147 | .Fn qsort |
| 148 | function returns no value. | 148 | function returns no value. |
| 149 | .Pp | 149 | .Pp |
| 150 | Upon successful completion, | 150 | .Rv -std heapsort mergesort |
| 151 | .Fn heapsort | ||
| 152 | and | ||
| 153 | .Fn mergesort | ||
| 154 | return 0. | ||
| 155 | Otherwise, they return \-1 and the global variable | ||
| 156 | .Va errno | ||
| 157 | is set to indicate the error. | ||
| 158 | .Sh ERRORS | 151 | .Sh ERRORS |
| 159 | The | 152 | The |
| 160 | .Fn heapsort | 153 | .Fn heapsort |
diff --git a/src/lib/libc/stdlib/radixsort.3 b/src/lib/libc/stdlib/radixsort.3 index e62f760270..e706b798b7 100644 --- a/src/lib/libc/stdlib/radixsort.3 +++ b/src/lib/libc/stdlib/radixsort.3 | |||
| @@ -25,9 +25,9 @@ | |||
| 25 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 25 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
| 26 | .\" SUCH DAMAGE. | 26 | .\" SUCH DAMAGE. |
| 27 | .\" | 27 | .\" |
| 28 | .\" $OpenBSD: radixsort.3,v 1.12 2013/06/05 03:39:23 tedu Exp $ | 28 | .\" $OpenBSD: radixsort.3,v 1.13 2015/01/29 01:46:31 schwarze Exp $ |
| 29 | .\" | 29 | .\" |
| 30 | .Dd $Mdocdate: June 5 2013 $ | 30 | .Dd $Mdocdate: January 29 2015 $ |
| 31 | .Dt RADIXSORT 3 | 31 | .Dt RADIXSORT 3 |
| 32 | .Os | 32 | .Os |
| 33 | .Sh NAME | 33 | .Sh NAME |
| @@ -78,8 +78,7 @@ If | |||
| 78 | is | 78 | is |
| 79 | .Dv NULL , | 79 | .Dv NULL , |
| 80 | the contents of the array are sorted in ascending order according to the | 80 | the contents of the array are sorted in ascending order according to the |
| 81 | .Tn ASCII | 81 | ASCII order of the byte strings they reference and |
| 82 | order of the byte strings they reference and | ||
| 83 | .Fa endbyte | 82 | .Fa endbyte |
| 84 | has a sorting weight of 0. | 83 | has a sorting weight of 0. |
| 85 | .Pp | 84 | .Pp |
| @@ -101,10 +100,7 @@ These functions are variants of most-significant-byte radix sorting; in | |||
| 101 | particular, see D.E. Knuth's Algorithm R and section 5.2.5, exercise 10. | 100 | particular, see D.E. Knuth's Algorithm R and section 5.2.5, exercise 10. |
| 102 | They take linear time relative to the number of bytes in the strings. | 101 | They take linear time relative to the number of bytes in the strings. |
| 103 | .Sh RETURN VALUES | 102 | .Sh RETURN VALUES |
| 104 | Upon successful completion 0 is returned. | 103 | .Rv -std |
| 105 | Otherwise, \-1 is returned and the global variable | ||
| 106 | .Va errno | ||
| 107 | is set to indicate the error. | ||
| 108 | .Sh ERRORS | 104 | .Sh ERRORS |
| 109 | .Bl -tag -width Er | 105 | .Bl -tag -width Er |
| 110 | .It Bq Er EINVAL | 106 | .It Bq Er EINVAL |
