OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / LDP_man-pages / release / man3 / insque.3
1 .\" peter memishian -- meem@gnu.ai.mit.edu
2 .\" $Id: insque.3,v 1.2 1996/10/30 21:03:39 meem Exp meem $
3 .\"
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.
7 .\"
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
12 .\"
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
19 .\" professionally.
20 .\"
21 .\" Formatted or processed versions of this manual, if unaccompanied by
22 .\" the source, must acknowledge the copyright and authors of this work.
23 .\"
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)
28 .\"
29 .\" Changed to POSIX, 2003-08-11, aeb+wh
30 .\"
31 .\" Japanese Version Copyright (c) 1998 AKAMATSU Kazuo
32 .\"         all rights reserved.
33 .\" Translated Thu Jan 7 16:00 JST 1999
34 .\"         by AKAMATSU Kazuo
35 .\" Updated Sun Sep 14 JST 2003 by Kentaro Shirakata <argrath@ub32.org>
36 .\"
37 .TH INSQUE 3  2008-07-11 "" "Linux Programmer's Manual"
38 .SH Ì¾Á°
39 insque, remque \- ¥­¥å¡¼¤Ë¥¢¥¤¥Æ¥à¤òÁÞÆþ/ºï½ü¤¹¤ë
40 .SH ½ñ¼°
41 .nf
42 .B #include <search.h>
43 .sp
44 .BI "void insque(void *" elem ", void *" prev );
45
46 .BI "void remque(void *" elem );
47 .fi
48 .sp
49 .in -4n
50 glibc ¸þ¤±¤Îµ¡Ç½¸¡ºº¥Þ¥¯¥í¤ÎÍ×·ï
51 .RB ( feature_test_macros (7)
52 »²¾È):
53 .in
54 .sp
55 .BR insque (),
56 .BR remque ():
57 _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 500
58 .SH ÀâÌÀ
59 .BR insque ()
60 ¤È
61 .BR remque ()
62 ¤ÏÁÐÊý¸þÏ¢·ë¥ê¥¹¥È (doubly-linked list) ¤òÁàºî¤¹¤ë´Ø¿ô¤Ç¤¢¤ë¡£
63 ¥ê¥¹¥ÈÃæ¤Î¤½¤ì¤¾¤ì¤ÎÍ×ÁǤϡ¢ºÇ½é¤ÎÆó¤Ä¤Î¹½Â¤ÂÎÍ×ÁǤ¬
64 ¼¡¤ÈÁ°¤Ø¤Î¥Ý¥¤¥ó¥¿¤Ç¤¢¤ë¤è¤¦¤Ê¹½Â¤ÂΤǤ¢¤ë¡£
65
66 .BR insque ()
67 ¤Ï \fIelem\fP ¤Ç¼¨¤µ¤ì¤ëÍ×ÁǤò \fIprev\fP ¤Ç¼¨¤µ¤ì¤ë
68 Í×ÁǤÎľ¸å¤ËÁÞÆþ¤¹¤ë¡£ \fIprev\fP ¤Ï NULL ¤Ç¤¢¤Ã¤Æ¤Ï¤Ê¤é¤Ê¤¤¡£
69
70 .BR remque ()
71 ¤Ï \fIelem\fP ¤Ç¼¨¤µ¤ì¤ëÍ×ÁǤòÁÐÊý¸þÏ¢·ë¥ê¥¹¥È¤«¤é¼è¤ê½ü¤¯¡£
72 .SH ½àµò
73 POSIX.1-2001.
74 .SH Ãí°Õ
75 ÅÁÅýŪ¤Ë (SunOS, Linux libc 4,5 ¤Ç¤Ï) ¤³¤ì¤é¤Î´Ø¿ô¤Î°ú¿ô¤Ï
76 \fIstruct qelem *\fP·¿¤Ç¤¢¤ê¡¢¤³¤ì¤Ï°Ê²¼¤Î¤è¤¦¤ËÄêµÁ¤µ¤ì¤Æ¤¤¤ë¡£
77
78 .in +4n
79 .nf
80 struct qelem {
81     struct qelem *q_forw;
82     struct qelem *q_back;
83     char          q_data[1];
84 };
85 .fi
86 .in
87
88 ¤³¤ÎÄêµÁ¤Ï \fI<search.h>\fP ¤ò¥¤¥ó¥¯¥ë¡¼¥É¤¹¤ëÁ°¤Ë
89 .B _GNU_SOURCE
90 ¤òÄêµÁ¤¹¤ë¤³¤È¤ÇÆÀ¤é¤ì¤ë¡£
91
92 ¤³¤ì¤é¤Î´Ø¿ô¤Î¥×¥í¥È¥¿¥¤¥×¤ÎÃÖ¤«¤ì¤ë¾ì½ê¤Ï¡¢Unix ¤Î¼ïÎà¤Ë¤è¤ê°Û¤Ê¤ë¡£
93 ¾åµ­¤Ï POSIX ÈǤǤ¢¤ë¡£
94 \fI<string.h>\fP ¤Ë¤¢¤ë¥·¥¹¥Æ¥à¤â¤¢¤ë¡£
95 Linux libc4 ¤È libc5 ¤Ï \fI<stdlib.h>\fP ¤Ë¥×¥í¥È¥¿¥¤¥×¤òÃÖ¤¤¤Æ¤¤¤ë¡£