diff options
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libc/stdlib/insque.3 | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/lib/libc/stdlib/insque.3 b/src/lib/libc/stdlib/insque.3 index 16b679b67b..136c08bad8 100644 --- a/src/lib/libc/stdlib/insque.3 +++ b/src/lib/libc/stdlib/insque.3 | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | .\" $OpenBSD: insque.3,v 1.11 2020/04/26 13:59:56 jmc Exp $ | 1 | .\" $OpenBSD: insque.3,v 1.12 2020/04/26 16:36:14 schwarze Exp $ |
| 2 | .\" Copyright (c) 1993 John Brezak | 2 | .\" Copyright (c) 1993 John Brezak |
| 3 | .\" All rights reserved. | 3 | .\" All rights reserved. |
| 4 | .\" | 4 | .\" |
| @@ -32,7 +32,7 @@ | |||
| 32 | .Sh NAME | 32 | .Sh NAME |
| 33 | .Nm insque , | 33 | .Nm insque , |
| 34 | .Nm remque | 34 | .Nm remque |
| 35 | .Nd insert/remove element from a queue | 35 | .Nd legacy doubly linked lists |
| 36 | .Sh SYNOPSIS | 36 | .Sh SYNOPSIS |
| 37 | .In search.h | 37 | .In search.h |
| 38 | .Ft void | 38 | .Ft void |
| @@ -49,9 +49,9 @@ macros and are provided for compatibility with legacy code. | |||
| 49 | .Fn insque | 49 | .Fn insque |
| 50 | and | 50 | and |
| 51 | .Fn remque | 51 | .Fn remque |
| 52 | manipulate queues built from doubly linked lists. | 52 | manipulate a legacy variety of intrusive doubly linked lists. |
| 53 | The queue can be either circular or linear. | 53 | A list can be either circular or linear. |
| 54 | Each element in the queue must be of the following form: | 54 | Each element in the list must be of the following form: |
| 55 | .Bd -literal -offset indent | 55 | .Bd -literal -offset indent |
| 56 | struct qelem { | 56 | struct qelem { |
| 57 | struct qelem *q_forw; | 57 | struct qelem *q_forw; |
| @@ -60,25 +60,25 @@ struct qelem { | |||
| 60 | }; | 60 | }; |
| 61 | .Ed | 61 | .Ed |
| 62 | .Pp | 62 | .Pp |
| 63 | The first two elements in the struct must be pointers of the | 63 | The first two members of the struct must be pointers of the |
| 64 | same type that point to the next and previous elements in | 64 | same type that point to the next and previous elements in |
| 65 | the queue respectively. | 65 | the list, respectively. |
| 66 | Any subsequent data in the struct is application-dependent. | 66 | Any subsequent data in the struct is application-dependent. |
| 67 | .Pp | 67 | .Pp |
| 68 | The | 68 | The |
| 69 | .Fn insque | 69 | .Fn insque |
| 70 | function inserts | 70 | function inserts |
| 71 | .Fa elem | 71 | .Fa elem |
| 72 | into a queue immediately after | 72 | into a list immediately after |
| 73 | .Fa pred . | 73 | .Fa pred . |
| 74 | .Pp | 74 | .Pp |
| 75 | The | 75 | The |
| 76 | .Fn remque | 76 | .Fn remque |
| 77 | function removes | 77 | function removes |
| 78 | .Fa elem | 78 | .Fa elem |
| 79 | from the queue. | 79 | from the list. |
| 80 | .Pp | 80 | .Pp |
| 81 | These functions are not atomic unless that machine architecture allows it. | 81 | These functions are not atomic. |
| 82 | .Sh SEE ALSO | 82 | .Sh SEE ALSO |
| 83 | .Xr queue 3 | 83 | .Xr queue 3 |
| 84 | .Sh STANDARDS | 84 | .Sh STANDARDS |
