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 .\" Japanese Version Copyright (c) 1998 AKAMATSU Kazuo
32 .\" all rights reserved.
33 .\" Translated Thu Jan 7 16:00 JST 1999
35 .\" Updated Sun Sep 14 JST 2003 by Kentaro Shirakata <argrath@ub32.org>
37 .TH INSQUE 3 2008-07-11 "" "Linux Programmer's Manual"
39 insque, remque \- ¥¥å¡¼¤Ë¥¢¥¤¥Æ¥à¤òÁÞÆþ/ºï½ü¤¹¤ë
42 .B #include <search.h>
44 .BI "void insque(void *" elem ", void *" prev );
46 .BI "void remque(void *" elem );
50 glibc ¸þ¤±¤Îµ¡Ç½¸¡ºº¥Þ¥¯¥í¤ÎÍ×·ï
51 .RB ( feature_test_macros (7)
57 _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 500
62 ¤ÏÁÐÊý¸þÏ¢·ë¥ê¥¹¥È (doubly-linked list) ¤òÁàºî¤¹¤ë´Ø¿ô¤Ç¤¢¤ë¡£
63 ¥ê¥¹¥ÈÃæ¤Î¤½¤ì¤¾¤ì¤ÎÍ×ÁǤϡ¢ºÇ½é¤ÎÆó¤Ä¤Î¹½Â¤ÂÎÍ×ÁǤ¬
64 ¼¡¤ÈÁ°¤Ø¤Î¥Ý¥¤¥ó¥¿¤Ç¤¢¤ë¤è¤¦¤Ê¹½Â¤ÂΤǤ¢¤ë¡£
67 ¤Ï \fIelem\fP ¤Ç¼¨¤µ¤ì¤ëÍ×ÁǤò \fIprev\fP ¤Ç¼¨¤µ¤ì¤ë
68 Í×ÁǤÎľ¸å¤ËÁÞÆþ¤¹¤ë¡£ \fIprev\fP ¤Ï NULL ¤Ç¤¢¤Ã¤Æ¤Ï¤Ê¤é¤Ê¤¤¡£
71 ¤Ï \fIelem\fP ¤Ç¼¨¤µ¤ì¤ëÍ×ÁǤòÁÐÊý¸þÏ¢·ë¥ê¥¹¥È¤«¤é¼è¤ê½ü¤¯¡£
75 ÅÁÅýŪ¤Ë (SunOS, Linux libc 4,5 ¤Ç¤Ï) ¤³¤ì¤é¤Î´Ø¿ô¤Î°ú¿ô¤Ï
76 \fIstruct qelem *\fP·¿¤Ç¤¢¤ê¡¢¤³¤ì¤Ï°Ê²¼¤Î¤è¤¦¤ËÄêµÁ¤µ¤ì¤Æ¤¤¤ë¡£
88 ¤³¤ÎÄêµÁ¤Ï \fI<search.h>\fP ¤ò¥¤¥ó¥¯¥ë¡¼¥É¤¹¤ëÁ°¤Ë
90 ¤òÄêµÁ¤¹¤ë¤³¤È¤ÇÆÀ¤é¤ì¤ë¡£
92 ¤³¤ì¤é¤Î´Ø¿ô¤Î¥×¥í¥È¥¿¥¤¥×¤ÎÃÖ¤«¤ì¤ë¾ì½ê¤Ï¡¢Unix ¤Î¼ïÎà¤Ë¤è¤ê°Û¤Ê¤ë¡£
93 ¾åµ¤Ï POSIX ÈǤǤ¢¤ë¡£
94 \fI<string.h>\fP ¤Ë¤¢¤ë¥·¥¹¥Æ¥à¤â¤¢¤ë¡£
95 Linux libc4 ¤È libc5 ¤Ï \fI<stdlib.h>\fP ¤Ë¥×¥í¥È¥¿¥¤¥×¤òÃÖ¤¤¤Æ¤¤¤ë¡£