summaryrefslogtreecommitdiff
path: root/usr/src/man/man3c/insque.3c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/man/man3c/insque.3c')
-rw-r--r--usr/src/man/man3c/insque.3c62
1 files changed, 62 insertions, 0 deletions
diff --git a/usr/src/man/man3c/insque.3c b/usr/src/man/man3c/insque.3c
new file mode 100644
index 0000000000..6026373c49
--- /dev/null
+++ b/usr/src/man/man3c/insque.3c
@@ -0,0 +1,62 @@
+'\" te
+.\" Copyright (c) 2002, Sun Microsystems, Inc. All Rights Reserved. Copyright 1989 AT&T Copyright (c) 1983 Regents of the University of California. All rights reserved. The Berkeley software License Agreement specifies the terms and conditions for redistribution.
+.TH insque 3C "24 Jul 2002" "SunOS 5.11" "Standard C Library Functions"
+.SH NAME
+insque, remque \- insert/remove element from a queue
+.SH SYNOPSIS
+.LP
+.nf
+include <search.h>
+
+\fBvoid\fR \fBinsque\fR(\fBstruct qelem *\fR\fIelem\fR, \fBstruct qelem *\fR\fIpred\fR);
+.fi
+
+.LP
+.nf
+\fBvoid\fR \fBremque\fR(\fBstruct qelem *\fR\fIelem\fR);
+.fi
+
+.SH DESCRIPTION
+.sp
+.LP
+The \fBinsque()\fR and \fBremque()\fR functions manipulate queues built from
+doubly linked lists. Each element in the queue must be in the following form:
+.sp
+.in +2
+.nf
+struct qelem {
+ struct qelem *q_forw;
+ struct qelem *q_back;
+ char q_data[\|];
+};
+.fi
+.in -2
+
+.sp
+.LP
+The \fBinsque()\fR function inserts \fIelem\fR in a queue immediately after
+\fIpred\fR. The \fBremque()\fR function removes an entry \fIelem\fR from a
+queue.
+.SH ATTRIBUTES
+.sp
+.LP
+See \fBattributes\fR(5) for descriptions of the following attributes:
+.sp
+
+.sp
+.TS
+tab() box;
+cw(2.75i) |cw(2.75i)
+lw(2.75i) |lw(2.75i)
+.
+ATTRIBUTE TYPEATTRIBUTE VALUE
+_
+Interface StabilityStandard
+_
+MT-LevelUnsafe
+.TE
+
+.SH SEE ALSO
+.sp
+.LP
+\fBattributes\fR(5), \fBstandards\fR(5)