OSDN Git Service

(split) LDP: Translation snapshots for ja.po.
[linuxjm/LDP_man-pages.git] / draft / 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 .\"O Feature Test Macro Requirements for glibc (see
51 .\"O .BR feature_test_macros (7)):
52 glibc 向けの機能検査マクロの要件
53 .RB ( feature_test_macros (7)
54 参照):
55 .in
56 .sp
57 .BR insque (),
58 .BR remque ():
59 _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 500
60 .SH 説明
61 .\"O .BR insque ()
62 .\"O and
63 .\"O .BR remque ()
64 .\"O are functions for manipulating
65 .\"O doubly-linked lists.
66 .\"O Each element in the list is a structure of
67 .\"O which the first two structure elements are a forward and a
68 .\"O backward pointer.
69 .BR insque ()
70
71 .BR remque ()
72 は双方向連結リスト (doubly-linked list) を操作する関数である。
73 リスト中のそれぞれの要素は、最初の二つの構造体要素が
74 次と前へのポインタであるような構造体である。
75
76 .BR insque ()
77 は \fIelem\fP で示される要素を \fIprev\fP で示される
78 要素の直後に挿入する。 \fIprev\fP は NULL であってはならない。
79
80 .BR remque ()
81 は \fIelem\fP で示される要素を双方向連結リストから取り除く。
82 .\"O .SH "CONFORMING TO"
83 .SH 準拠
84 POSIX.1-2001.
85 .\"O .SH "NOTES"
86 .SH 注意
87 .\"O Traditionally (e.g., SunOS, Linux libc 4 and libc 5),
88 .\"O the arguments of these functions were of type \fIstruct qelem *\fP,
89 .\"O defined as:
90 伝統的に (SunOS, Linux libc 4,5 では) これらの関数の引数は
91 \fIstruct qelem *\fP型であり、これは以下のように定義されている。
92
93 .in +4n
94 .nf
95 struct qelem {
96     struct qelem *q_forw;
97     struct qelem *q_back;
98     char          q_data[1];
99 };
100 .fi
101 .in
102
103 .\"O This is still what you will get if
104 .\"O .B _GNU_SOURCE
105 .\"O is defined before
106 .\"O including \fI<search.h>\fP.
107 この定義は \fI<search.h>\fP をインクルードする前に
108 .B _GNU_SOURCE
109 を定義することで得られる。
110
111 .\"O The location of the prototypes for these functions differs among several
112 .\"O versions of Unix.
113 .\"O The above is the POSIX version.
114 .\"O Some systems place them in \fI<string.h>\fP.
115 .\"O Linux libc4 and libc 5 placed them
116 .\"O in \fI<stdlib.h>\fP.
117 これらの関数のプロトタイプの置かれる場所は、Unix の種類により異なる。
118 上記は POSIX 版である。
119 \fI<string.h>\fP にあるシステムもある。
120 Linux libc4 と libc5 は \fI<stdlib.h>\fP にプロトタイプを置いている。