summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib
diff options
context:
space:
mode:
authordrochner <drochner@NetBSD.org>2005-07-06 17:02:56 +0000
committerdrochner <drochner@NetBSD.org>2005-07-06 17:02:56 +0000
commit45ec6e4557d4599d5227cc2f4beb02713e5d6f7d (patch)
tree33ee854a2ae9dcd41003eb1ed1678cd8bd2aa904 /lib/libc/stdlib
parent64df4b988eca4714304e18a6b5377365009eafbe (diff)
add some clarification, and refer to POSIX
partly borrowed from FreeBSD
Diffstat (limited to 'lib/libc/stdlib')
-rw-r--r--lib/libc/stdlib/insque.323
1 files changed, 20 insertions, 3 deletions
diff --git a/lib/libc/stdlib/insque.3 b/lib/libc/stdlib/insque.3
index 2e1f8b714c3..db0415e2ea9 100644
--- a/lib/libc/stdlib/insque.3
+++ b/lib/libc/stdlib/insque.3
@@ -24,7 +24,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $NetBSD: insque.3,v 1.1 2005/07/06 14:43:24 drochner Exp $
+.\" $NetBSD: insque.3,v 1.2 2005/07/06 17:02:56 drochner Exp $
.\"
.Dd July 6, 2005
.Dt INSQUE 3
@@ -46,7 +46,24 @@
and
.Fn remque
manipulate queues built from doubly linked lists.
-.Sh DIAGNOSTICS
-These functions are not atomic unless that machine architecture allows it.
+The queue can be either circular or linear.
+The functions expect their
+arguments to point to a structure whose first and second members are
+pointers to the next and previous element, respectively.
+The
+.Fn insque
+function also allows the
+.Fa pred
+argument to be a
+.Dv NULL
+pointer for the initialization of a new linear list's
+head element.
+.Sh STANDARDS
+The
+.Fn insque
+and
+.Fn remque
+functions conform to
+.St -p1003.1-2001 .
.Sh HISTORY
These are derived from the insque and remque instructions on a VAX.