1 .\" peter memishian -- meem@gnu.ai.mit.edu
2 .\" $Id: insque.3,v 1.2 1996/10/30 21:03:39 meem Exp meem $
4 .\" Permission is granted to make and distribute verbatim copies of this
5 .\" manual provided the copyright notice and this permission notice are
6 .\" preserved on all copies.
8 .\" Permission is granted to copy and distribute modified versions of this
9 .\" manual under the conditions for verbatim copying, provided that the
10 .\" entire resulting derived work is distributed under the terms of a
11 .\" permission notice identical to this one.
13 .\" Since the Linux kernel and libraries are constantly changing, this
14 .\" manual page may be incorrect or out-of-date. The author(s) assume no
15 .\" responsibility for errors or omissions, or for damages resulting from
16 .\" the use of the information contained herein. The author(s) may not
17 .\" have taken the same level of care in the production of this manual,
18 .\" which is licensed free of charge, as they might when working
21 .\" Formatted or processed versions of this manual, if unaccompanied by
22 .\" the source, must acknowledge the copyright and authors of this work.
24 .\" References consulted:
25 .\" Linux libc source code (5.4.7)
26 .\" Solaris 2.x, OSF/1, and HP-UX manpages
27 .\" Curry's "UNIX Systems Programming for SVR4" (O'Reilly & Associates 1996)
29 .\" Changed to POSIX, 2003-08-11, aeb+wh
31 .TH INSQUE 3 2008-07-11 "" "Linux Programmer's Manual"
33 insque, remque \- insert/remove an item from a queue
36 .B #include <search.h>
38 .BI "void insque(void *" elem ", void *" prev );
40 .BI "void remque(void *" elem );
44 Feature Test Macro Requirements for glibc (see
45 .BR feature_test_macros (7)):
50 _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 500
55 are functions for manipulating
57 Each element in the list is a structure of
58 which the first two structure elements are a forward and a
62 inserts the element pointed to by \fIelem\fP
63 immediately after the element pointed to by \fIprev\fP, which must
67 removes the element pointed to by \fIelem\fP from the
72 Traditionally (e.g., SunOS, Linux libc 4 and libc 5),
73 the arguments of these functions were of type \fIstruct qelem *\fP,
86 This is still what you will get if
89 including \fI<search.h>\fP.
91 The location of the prototypes for these functions differs among several
93 The above is the POSIX version.
94 Some systems place them in \fI<string.h>\fP.
95 Linux libc4 and libc 5 placed them