Debian Codegraph @

po/fr/archive/man3/queue.3.po

raw
1 # French translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Christophe Blaess <https://www.blaess.fr/christophe/>, 1996-2003.
5 # Stéphan Rafin <[email protected]>, 2002.
6 # Thierry Vignaud <[email protected]>, 1999, 2002.
7 # François Micaux, 2002.
8 # Alain Portal <[email protected]>, 2003-2008.
9 # Jean-Philippe Guérard <[email protected]>, 2005-2006.
10 # Jean-Luc Coulon (f5ibh) <[email protected]>, 2006-2007.
11 # Julien Cristau <[email protected]>, 2006-2007.
12 # Thomas Huriaux <[email protected]>, 2006-2008.
13 # Nicolas François <[email protected]>, 2006-2008.
14 # Florentin Duneau <[email protected]>, 2006-2010.
15 # Simon Paillard <[email protected]>, 2006.
16 # Denis Barbier <[email protected]>, 2006, 2010.
17 # David Prévot <[email protected]>, 2010-2014.
18 msgid ""
19 msgstr ""
20 "Project-Id-Version: perkamon\n"
21 "POT-Creation-Date: 2023-08-27 17:15+0200\n"
22 "PO-Revision-Date: 2018-09-10 20:55+0000\n"
23 "Last-Translator: Weblate Admin <[email protected]>\n"
24 "Language-Team: French <[email protected]>\n"
25 "Language: fr\n"
26 "MIME-Version: 1.0\n"
27 "Content-Type: text/plain; charset=UTF-8\n"
28 "Content-Transfer-Encoding: 8bit\n"
29 "Plural-Forms: nplurals=2; plural=n > 1;\n"
30 "X-Generator: Weblate 3.1.1\n"
31
32 #. type: Dd
33 #: opensuse-leap-15-6
34 #, no-wrap
35 msgid "February 7, 2015"
36 msgstr ""
37
38 #. type: Dt
39 #: opensuse-leap-15-6
40 #, fuzzy, no-wrap
41 msgid "QUEUE 3"
42 msgstr "QUEUE"
43
44 #. type: Sh
45 #: opensuse-leap-15-6
46 #, no-wrap
47 msgid "NAME"
48 msgstr "NOM"
49
50 #. .Nm SLIST_FOREACH_FROM ,
51 #. .Nm SLIST_FOREACH_SAFE ,
52 #. .Nm SLIST_FOREACH_FROM_SAFE ,
53 #. .Nm SLIST_REMOVE_AFTER ,
54 #. .Nm SLIST_SWAP ,
55 #. .Nm STAILQ_FOREACH_FROM ,
56 #. .Nm STAILQ_FOREACH_SAFE ,
57 #. .Nm STAILQ_FOREACH_FROM_SAFE ,
58 #. .Nm STAILQ_LAST ,
59 #. .Nm STAILQ_REMOVE_AFTER ,
60 #. .Nm STAILQ_SWAP ,
61 #. .Nm LIST_FOREACH_FROM ,
62 #. .Nm LIST_FOREACH_SAFE ,
63 #. .Nm LIST_FOREACH_FROM_SAFE ,
64 #. .Nm LIST_PREV ,
65 #. .Nm LIST_SWAP ,
66 #. .Nm TAILQ_FOREACH_FROM ,
67 #. .Nm TAILQ_FOREACH_SAFE ,
68 #. .Nm TAILQ_FOREACH_FROM_SAFE ,
69 #. .Nm TAILQ_FOREACH_REVERSE_FROM ,
70 #. .Nm TAILQ_FOREACH_REVERSE_SAFE ,
71 #. .Nm TAILQ_FOREACH_REVERSE_FROM_SAFE ,
72 #. type: Plain text
73 #: opensuse-leap-15-6
74 msgid ""
75 "E<.Nm SLIST_EMPTY>, E<.Nm SLIST_ENTRY>, E<.Nm SLIST_FIRST>, E<.Nm "
76 "SLIST_FOREACH>, E<.Nm SLIST_HEAD>, E<.Nm SLIST_HEAD_INITIALIZER>, E<.Nm "
77 "SLIST_INIT>, E<.Nm SLIST_INSERT_AFTER>, E<.Nm SLIST_INSERT_HEAD>, E<.Nm "
78 "SLIST_NEXT>, E<.Nm SLIST_REMOVE_HEAD>, E<.Nm SLIST_REMOVE>, E<.Nm "
79 "STAILQ_CONCAT>, E<.Nm STAILQ_EMPTY>, E<.Nm STAILQ_ENTRY>, E<.Nm "
80 "STAILQ_FIRST>, E<.Nm STAILQ_FOREACH>, E<.Nm STAILQ_HEAD>, E<.Nm "
81 "STAILQ_HEAD_INITIALIZER>, E<.Nm STAILQ_INIT>, E<.Nm STAILQ_INSERT_AFTER>, E<."
82 "Nm STAILQ_INSERT_HEAD>, E<.Nm STAILQ_INSERT_TAIL>, E<.Nm STAILQ_NEXT>, E<.Nm "
83 "STAILQ_REMOVE_HEAD>, E<.Nm STAILQ_REMOVE>, E<.Nm LIST_EMPTY>, E<.Nm "
84 "LIST_ENTRY>, E<.Nm LIST_FIRST>, E<.Nm LIST_FOREACH>, E<.Nm LIST_HEAD>, E<.Nm "
85 "LIST_HEAD_INITIALIZER>, E<.Nm LIST_INIT>, E<.Nm LIST_INSERT_AFTER>, E<.Nm "
86 "LIST_INSERT_BEFORE>, E<.Nm LIST_INSERT_HEAD>, E<.Nm LIST_NEXT>, E<.Nm "
87 "LIST_REMOVE>, E<.Nm TAILQ_CONCAT>, E<.Nm TAILQ_EMPTY>, E<.Nm TAILQ_ENTRY>, "
88 "E<.Nm TAILQ_FIRST>, E<.Nm TAILQ_FOREACH>, E<.Nm TAILQ_FOREACH_REVERSE>, E<."
89 "Nm TAILQ_HEAD>, E<.Nm TAILQ_HEAD_INITIALIZER>, E<.Nm TAILQ_INIT>, E<.Nm "
90 "TAILQ_INSERT_AFTER>, E<.Nm TAILQ_INSERT_BEFORE>, E<.Nm TAILQ_INSERT_HEAD>, "
91 "E<.Nm TAILQ_INSERT_TAIL>, E<.Nm TAILQ_LAST>, E<.Nm TAILQ_NEXT>, E<.Nm "
92 "TAILQ_PREV>, E<.Nm TAILQ_REMOVE>, E<.Nm TAILQ_SWAP>"
93 msgstr ""
94
95 #. type: Nd
96 #: opensuse-leap-15-6
97 #, no-wrap
98 msgid "implementations of singly-linked lists, singly-linked tail queues,"
99 msgstr ""
100
101 #. type: Plain text
102 #: opensuse-leap-15-6
103 #, fuzzy
104 msgid "lists and tail queues"
105 msgstr "Listes doubles"
106
107 #. type: Sh
108 #: opensuse-leap-15-6
109 #, no-wrap
110 msgid "SYNOPSIS"
111 msgstr "SYNOPSIS"
112
113 #. type: In
114 #: opensuse-leap-15-6
115 #, no-wrap
116 msgid "sys/queue.h"
117 msgstr ""
118
119 #
120 #
121 #
122 #
123 #. .Fn SLIST_FOREACH_FROM "TYPE *var" "SLIST_HEAD *head" "SLIST_ENTRY NAME"
124 #. .Fn SLIST_FOREACH_SAFE "TYPE *var" "SLIST_HEAD *head" "SLIST_ENTRY NAME" "TYPE *temp_var"
125 #. .Fn SLIST_FOREACH_FROM_SAFE "TYPE *var" "SLIST_HEAD *head" "SLIST_ENTRY NAME" "TYPE *temp_var"
126 #. .Fn SLIST_REMOVE_AFTER "TYPE *elm" "SLIST_ENTRY NAME"
127 #. .Fn SLIST_SWAP "SLIST_HEAD *head1" "SLIST_HEAD *head2" "SLIST_ENTRY NAME"
128 #. .Fn STAILQ_FOREACH_FROM "TYPE *var" "STAILQ_HEAD *head" "STAILQ_ENTRY NAME"
129 #. .Fn STAILQ_FOREACH_SAFE "TYPE *var" "STAILQ_HEAD *head" "STAILQ_ENTRY NAME" "TYPE *temp_var"
130 #. .Fn STAILQ_FOREACH_FROM_SAFE "TYPE *var" "STAILQ_HEAD *head" "STAILQ_ENTRY NAME" "TYPE *temp_var"
131 #. .Fn STAILQ_LAST "STAILQ_HEAD *head" "TYPE" "STAILQ_ENTRY NAME"
132 #. .Fn STAILQ_REMOVE_AFTER "STAILQ_HEAD *head" "TYPE *elm" "STAILQ_ENTRY NAME"
133 #. .Fn STAILQ_SWAP "STAILQ_HEAD *head1" "STAILQ_HEAD *head2" "STAILQ_ENTRY NAME"
134 #. .Fn LIST_FOREACH_FROM "TYPE *var" "LIST_HEAD *head" "LIST_ENTRY NAME"
135 #. .Fn LIST_FOREACH_SAFE "TYPE *var" "LIST_HEAD *head" "LIST_ENTRY NAME" "TYPE *temp_var"
136 #. .Fn LIST_FOREACH_FROM_SAFE "TYPE *var" "LIST_HEAD *head" "LIST_ENTRY NAME" "TYPE *temp_var"
137 #. .Fn LIST_PREV "TYPE *elm" "LIST_HEAD *head" "TYPE" "LIST_ENTRY NAME"
138 #. .Fn TAILQ_FOREACH_FROM "TYPE *var" "TAILQ_HEAD *head" "TAILQ_ENTRY NAME"
139 #. .Fn TAILQ_FOREACH_SAFE "TYPE *var" "TAILQ_HEAD *head" "TAILQ_ENTRY NAME" "TYPE *temp_var"
140 #. .Fn TAILQ_FOREACH_FROM_SAFE "TYPE *var" "TAILQ_HEAD *head" "TAILQ_ENTRY NAME" "TYPE *temp_var"
141 #. .Fn TAILQ_FOREACH_REVERSE_FROM "TYPE *var" "TAILQ_HEAD *head" "HEADNAME" "TAILQ_ENTRY NAME"
142 #. .Fn TAILQ_FOREACH_REVERSE_SAFE "TYPE *var" "TAILQ_HEAD *head" "HEADNAME" "TAILQ_ENTRY NAME" "TYPE *temp_var"
143 #. .Fn TAILQ_FOREACH_REVERSE_FROM_SAFE "TYPE *var" "TAILQ_HEAD *head" "HEADNAME" "TAILQ_ENTRY NAME" "TYPE *temp_var"
144 #. type: Plain text
145 #: opensuse-leap-15-6
146 msgid ""
147 "E<.Fn SLIST_EMPTY \"SLIST_HEAD *head\"> E<.Fn SLIST_ENTRY \"TYPE\"> E<.Fn "
148 "SLIST_FIRST \"SLIST_HEAD *head\"> E<.Fn SLIST_FOREACH \"TYPE *var\" "
149 "\"SLIST_HEAD *head\" \"SLIST_ENTRY NAME\"> E<.Fn SLIST_HEAD \"HEADNAME\" "
150 "\"TYPE\"> E<.Fn SLIST_HEAD_INITIALIZER \"SLIST_HEAD head\"> E<.Fn SLIST_INIT "
151 "\"SLIST_HEAD *head\"> E<.Fn SLIST_INSERT_AFTER \"TYPE *listelm\" \"TYPE "
152 "*elm\" \"SLIST_ENTRY NAME\"> E<.Fn SLIST_INSERT_HEAD \"SLIST_HEAD *head\" "
153 "\"TYPE *elm\" \"SLIST_ENTRY NAME\"> E<.Fn SLIST_NEXT \"TYPE *elm\" "
154 "\"SLIST_ENTRY NAME\"> E<.Fn SLIST_REMOVE_HEAD \"SLIST_HEAD *head\" "
155 "\"SLIST_ENTRY NAME\"> E<.Fn SLIST_REMOVE \"SLIST_HEAD *head\" \"TYPE *elm\" "
156 "\"TYPE\" \"SLIST_ENTRY NAME\"> E<.Fn STAILQ_CONCAT \"STAILQ_HEAD *head1\" "
157 "\"STAILQ_HEAD *head2\"> E<.Fn STAILQ_EMPTY \"STAILQ_HEAD *head\"> E<.Fn "
158 "STAILQ_ENTRY \"TYPE\"> E<.Fn STAILQ_FIRST \"STAILQ_HEAD *head\"> E<.Fn "
159 "STAILQ_FOREACH \"TYPE *var\" \"STAILQ_HEAD *head\" \"STAILQ_ENTRY NAME\"> E<."
160 "Fn STAILQ_HEAD \"HEADNAME\" \"TYPE\"> E<.Fn STAILQ_HEAD_INITIALIZER "
161 "\"STAILQ_HEAD head\"> E<.Fn STAILQ_INIT \"STAILQ_HEAD *head\"> E<.Fn "
162 "STAILQ_INSERT_AFTER \"STAILQ_HEAD *head\" \"TYPE *listelm\" \"TYPE *elm\" "
163 "\"STAILQ_ENTRY NAME\"> E<.Fn STAILQ_INSERT_HEAD \"STAILQ_HEAD *head\" \"TYPE "
164 "*elm\" \"STAILQ_ENTRY NAME\"> E<.Fn STAILQ_INSERT_TAIL \"STAILQ_HEAD *head\" "
165 "\"TYPE *elm\" \"STAILQ_ENTRY NAME\"> E<.Fn STAILQ_NEXT \"TYPE *elm\" "
166 "\"STAILQ_ENTRY NAME\"> E<.Fn STAILQ_REMOVE_HEAD \"STAILQ_HEAD *head\" "
167 "\"STAILQ_ENTRY NAME\"> E<.Fn STAILQ_REMOVE \"STAILQ_HEAD *head\" \"TYPE "
168 "*elm\" \"TYPE\" \"STAILQ_ENTRY NAME\"> E<.Fn LIST_EMPTY \"LIST_HEAD *head\"> "
169 "E<.Fn LIST_ENTRY \"TYPE\"> E<.Fn LIST_FIRST \"LIST_HEAD *head\"> E<.Fn "
170 "LIST_FOREACH \"TYPE *var\" \"LIST_HEAD *head\" \"LIST_ENTRY NAME\"> E<.Fn "
171 "LIST_HEAD \"HEADNAME\" \"TYPE\"> E<.Fn LIST_HEAD_INITIALIZER \"LIST_HEAD "
172 "head\"> E<.Fn LIST_INIT \"LIST_HEAD *head\"> E<.Fn LIST_INSERT_AFTER \"TYPE "
173 "*listelm\" \"TYPE *elm\" \"LIST_ENTRY NAME\"> E<.Fn LIST_INSERT_BEFORE "
174 "\"TYPE *listelm\" \"TYPE *elm\" \"LIST_ENTRY NAME\"> E<.Fn LIST_INSERT_HEAD "
175 "\"LIST_HEAD *head\" \"TYPE *elm\" \"LIST_ENTRY NAME\"> E<.Fn LIST_NEXT "
176 "\"TYPE *elm\" \"LIST_ENTRY NAME\"> E<.Fn LIST_REMOVE \"TYPE *elm\" "
177 "\"LIST_ENTRY NAME\"> E<.Fn LIST_SWAP \"LIST_HEAD *head1\" \"LIST_HEAD "
178 "*head2\" \"TYPE\" \"LIST_ENTRY NAME\"> E<.Fn TAILQ_CONCAT \"TAILQ_HEAD "
179 "*head1\" \"TAILQ_HEAD *head2\" \"TAILQ_ENTRY NAME\"> E<.Fn TAILQ_EMPTY "
180 "\"TAILQ_HEAD *head\"> E<.Fn TAILQ_ENTRY \"TYPE\"> E<.Fn TAILQ_FIRST "
181 "\"TAILQ_HEAD *head\"> E<.Fn TAILQ_FOREACH \"TYPE *var\" \"TAILQ_HEAD *head\" "
182 "\"TAILQ_ENTRY NAME\"> E<.Fn TAILQ_FOREACH_REVERSE \"TYPE *var\" \"TAILQ_HEAD "
183 "*head\" \"HEADNAME\" \"TAILQ_ENTRY NAME\"> E<.Fn TAILQ_HEAD \"HEADNAME\" "
184 "\"TYPE\"> E<.Fn TAILQ_HEAD_INITIALIZER \"TAILQ_HEAD head\"> E<.Fn TAILQ_INIT "
185 "\"TAILQ_HEAD *head\"> E<.Fn TAILQ_INSERT_AFTER \"TAILQ_HEAD *head\" \"TYPE "
186 "*listelm\" \"TYPE *elm\" \"TAILQ_ENTRY NAME\"> E<.Fn TAILQ_INSERT_BEFORE "
187 "\"TYPE *listelm\" \"TYPE *elm\" \"TAILQ_ENTRY NAME\"> E<.Fn "
188 "TAILQ_INSERT_HEAD \"TAILQ_HEAD *head\" \"TYPE *elm\" \"TAILQ_ENTRY NAME\"> "
189 "E<.Fn TAILQ_INSERT_TAIL \"TAILQ_HEAD *head\" \"TYPE *elm\" \"TAILQ_ENTRY "
190 "NAME\"> E<.Fn TAILQ_LAST \"TAILQ_HEAD *head\" \"HEADNAME\"> E<.Fn TAILQ_NEXT "
191 "\"TYPE *elm\" \"TAILQ_ENTRY NAME\"> E<.Fn TAILQ_PREV \"TYPE *elm\" "
192 "\"HEADNAME\" \"TAILQ_ENTRY NAME\"> E<.Fn TAILQ_REMOVE \"TAILQ_HEAD *head\" "
193 "\"TYPE *elm\" \"TAILQ_ENTRY NAME\"> E<.Fn TAILQ_SWAP \"TAILQ_HEAD *head1\" "
194 "\"TAILQ_HEAD *head2\" \"TYPE\" \"TAILQ_ENTRY NAME\">"
195 msgstr ""
196
197 #. type: Sh
198 #: opensuse-leap-15-6
199 #, no-wrap
200 msgid "DESCRIPTION"
201 msgstr "DESCRIPTION"
202
203 #. type: Plain text
204 #: opensuse-leap-15-6
205 #, fuzzy
206 msgid ""
207 "These macros define and operate on four types of data structures: singly-"
208 "linked lists, singly-linked tail queues, lists, and tail queues. All four "
209 "structures support the following functionality:"
210 msgstr ""
211 "Ces macros définissent et manipulent trois types de structures de "
212 "données\\ : les listes simples, les listes doubles et les listes "
213 "circulaires. Ces trois structures supportent les fonctionnalités "
214 "suivantes\\ :"
215
216 #. type: Plain text
217 #: opensuse-leap-15-6
218 msgid "Insertion of a new entry at the head of the list."
219 msgstr "Insertion d'un élément en tête de liste\\ ;"
220
221 #. type: Plain text
222 #: opensuse-leap-15-6
223 msgid "Insertion of a new entry after any element in the list."
224 msgstr "Insertion d'un élément après n'importe quel élément existant\\ ;"
225
226 #. type: Plain text
227 #: opensuse-leap-15-6
228 #, fuzzy
229 msgid "O(1) removal of an entry from the head of the list."
230 msgstr "Insertion d'un élément en tête de liste\\ ;"
231
232 #. type: Plain text
233 #: opensuse-leap-15-6
234 msgid "Forward traversal through the list."
235 msgstr "Traversée séquentielle de la liste."
236
237 #. type: Plain text
238 #: opensuse-leap-15-6
239 msgid "Swapping the contents of two lists."
240 msgstr ""
241
242 #. type: Plain text
243 #: opensuse-leap-15-6
244 msgid ""
245 "Singly-linked lists are the simplest of the four data structures and support "
246 "only the above functionality. Singly-linked lists are ideal for "
247 "applications with large datasets and few or no removals, or for implementing "
248 "a LIFO queue. Singly-linked lists add the following functionality:"
249 msgstr ""
250
251 #. type: Plain text
252 #: opensuse-leap-15-6
253 #, fuzzy
254 msgid "O(n) removal of any entry in the list."
255 msgstr "Suppression de n'importe quel élément\\ ;"
256
257 #. type: Plain text
258 #: opensuse-leap-15-6
259 #, fuzzy
260 msgid "Singly-linked tail queues add the following functionality:"
261 msgstr "Les listes doubles ajoutent la fonctionnalité suivante\\ :"
262
263 #. type: Plain text
264 #: opensuse-leap-15-6
265 msgid "Entries can be added at the end of a list."
266 msgstr "Un élément peut être ajouté en fin de liste."
267
268 #. type: Plain text
269 #: opensuse-leap-15-6
270 msgid "They may be concatenated."
271 msgstr ""
272
273 #. type: Plain text
274 #: opensuse-leap-15-6
275 msgid "However:"
276 msgstr "Cependant\\ :"
277
278 #. type: Plain text
279 #: opensuse-leap-15-6
280 #, fuzzy
281 msgid "All list insertions must specify the head of the list."
282 msgstr ""
283 "Toutes les insertions et suppressions doivent mentionner la tête de la "
284 "liste\\ ;"
285
286 #. type: Plain text
287 #: opensuse-leap-15-6
288 msgid "Each head entry requires two pointers rather than one."
289 msgstr "L'élément de tête nécessite deux pointeurs au lieu d'un seul\\ ;"
290
291 #. type: Plain text
292 #: opensuse-leap-15-6
293 #, fuzzy
294 msgid ""
295 "Code size is about 15% greater and operations run about 20% slower than "
296 "singly-linked lists."
297 msgstr ""
298 "La taille du code est environ 15% plus grande, et l'exécution environ 20% "
299 "plus lente que les listes."
300
301 #. type: Plain text
302 #: opensuse-leap-15-6
303 msgid ""
304 "Singly-linked tail queues are ideal for applications with large datasets and "
305 "few or no removals, or for implementing a FIFO queue."
306 msgstr ""
307
308 #. type: Plain text
309 #: opensuse-leap-15-6
310 msgid ""
311 "All doubly linked types of data structures (lists and tail queues) "
312 "additionally allow:"
313 msgstr ""
314
315 #. type: Plain text
316 #: opensuse-leap-15-6
317 #, fuzzy
318 msgid "Insertion of a new entry before any element in the list."
319 msgstr "Insertion d'un élément après n'importe quel élément existant\\ ;"
320
321 #. type: Plain text
322 #: opensuse-leap-15-6
323 #, fuzzy
324 msgid "O(1) removal of any entry in the list."
325 msgstr "Suppression de n'importe quel élément\\ ;"
326
327 #. type: Plain text
328 #: opensuse-leap-15-6
329 #, fuzzy
330 msgid "Each element requires two pointers rather than one."
331 msgstr "L'élément de tête nécessite deux pointeurs au lieu d'un seul\\ ;"
332
333 #. type: Plain text
334 #: opensuse-leap-15-6
335 msgid ""
336 "Code size and execution time of operations (except for removal) is about "
337 "twice that of the singly-linked data-structures."
338 msgstr ""
339
340 #. type: Plain text
341 #: opensuse-leap-15-6
342 #, fuzzy
343 msgid ""
344 "Linked lists are the simplest of the doubly linked data structures. They "
345 "add the following functionality over the above:"
346 msgstr ""
347 "Les listes sont les plus simples de ces trois structures de données et ne "
348 "supportent que les fonctionnalités ci-dessus."
349
350 #. type: Plain text
351 #: opensuse-leap-15-6
352 #, fuzzy
353 msgid "They may be traversed backwards."
354 msgstr "Elles peuvent être traversées à l'envers, de la queue à la tête\\ ;"
355
356 #. type: Plain text
357 #: opensuse-leap-15-6
358 msgid ""
359 "To traverse backwards, an entry to begin the traversal and the list in which "
360 "it is contained must be specified."
361 msgstr ""
362
363 #. type: Plain text
364 #: opensuse-leap-15-6
365 msgid "Tail queues add the following functionality:"
366 msgstr "Les listes doubles ajoutent la fonctionnalité suivante\\ :"
367
368 #. type: Plain text
369 #: opensuse-leap-15-6
370 #, fuzzy
371 msgid "They may be traversed backwards, from tail to head."
372 msgstr "Elles peuvent être traversées à l'envers, de la queue à la tête\\ ;"
373
374 #. type: Plain text
375 #: opensuse-leap-15-6
376 msgid "All list insertions and removals must specify the head of the list."
377 msgstr ""
378 "Toutes les insertions et suppressions doivent mentionner la tête de la "
379 "liste\\ ;"
380
381 #. type: Plain text
382 #: opensuse-leap-15-6
383 #, fuzzy
384 msgid ""
385 "In the macro definitions, E<.Fa TYPE> is the name of a user defined "
386 "structure, that must contain a field of type E<.Li SLIST_ENTRY>, E<.Li "
387 "STAILQ_ENTRY>, E<.Li LIST_ENTRY>, or E<.Li TAILQ_ENTRY>, named E<.Fa NAME>. "
388 "The argument E<.Fa HEADNAME> is the name of a user defined structure that "
389 "must be declared using the macros E<.Li SLIST_HEAD>, E<.Li STAILQ_HEAD>, E<."
390 "Li LIST_HEAD>, or E<.Li TAILQ_HEAD>. See the examples below for further "
391 "explanation of how these macros are used."
392 msgstr ""
393 "Dans les définitions de macros, I<TYPE> est le nom d'une structure définie "
394 "par l'utilisateur, qui doit contenir un champ de type B<LIST_ENTRY>, "
395 "B<TAILQ_ENTRY> ou B<CIRCLEQ_ENTRY>, appelé I<NAME>. L'argument I<HEADNAME> "
396 "est le nom d'une structure définie par l'utilisateur qui doit être déclarée "
397 "en utilisant les macros B<LIST_HEAD>, B<TAILQ_HEAD> ou B<CIRCLEQ_HEAD>. "
398 "Consultez les exemples plus bas pour une explication sur l'utilisation de "
399 "ces macros."
400
401 #. type: Ss
402 #: opensuse-leap-15-6
403 #, no-wrap
404 msgid "Singly-linked lists"
405 msgstr ""
406
407 #. type: Plain text
408 #: opensuse-leap-15-6
409 #, fuzzy
410 msgid ""
411 "A singly-linked list is headed by a structure defined by the E<.Nm "
412 "SLIST_HEAD> macro. This structure contains a single pointer to the first "
413 "element on the list. The elements are singly linked for minimum space and "
414 "pointer manipulation overhead at the expense of O(n) removal for arbitrary "
415 "elements. New elements can be added to the list after an existing element "
416 "or at the head of the list. An E<.Fa SLIST_HEAD> structure is declared as "
417 "follows:"
418 msgstr ""
419 "Une liste débute par une structure définie par la macro B<LIST_HEAD>. Cette "
420 "structure contient un pointeur simple sur le premier élément de la liste. "
421 "Les éléments sont doublement chaînés afin qu'un élément puisse être supprimé "
422 "sans parcourir toute la liste. Des éléments peuvent être ajoutés après un "
423 "élément existant ou en tête de liste. Une structure B<LIST_HEAD> est "
424 "déclarée ainsi\\ :"
425
426 #. type: Plain text
427 #: opensuse-leap-15-6
428 #, fuzzy, no-wrap
429 msgid "SLIST_HEAD(HEADNAME, TYPE) head;\n"
430 msgstr "LIST_HEAD(HEADNAME, TYPE) head;\n"
431
432 #. type: Plain text
433 #: opensuse-leap-15-6
434 #, fuzzy
435 msgid ""
436 "where E<.Fa HEADNAME> is the name of the structure to be defined, and E<.Fa "
437 "TYPE> is the type of the elements to be linked into the list. A pointer to "
438 "the head of the list can later be declared as:"
439 msgstr ""
440 "où I<HEADNAME> est le nom de la structure à définir, et I<TYPE> le type "
441 "d'élément à lier dans la liste. Un pointeur sur la tête de la liste peut "
442 "ensuite être déclaré ainsi\\ :"
443
444 #. type: Plain text
445 #: opensuse-leap-15-6
446 #, no-wrap
447 msgid "struct HEADNAME *headp;\n"
448 msgstr "struct HEADNAME *headp;\n"
449
450 #. type: Plain text
451 #: opensuse-leap-15-6
452 #, fuzzy
453 msgid "(The names E<.Li head> and E<.Li headp> are user selectable.)"
454 msgstr "(les noms I<head> et I<headp> sont choisis par l'utilisateur)"
455
456 #. type: Plain text
457 #: opensuse-leap-15-6
458 #, fuzzy
459 msgid ""
460 "The macro E<.Nm SLIST_HEAD_INITIALIZER> evaluates to an initializer for the "
461 "list E<.Fa head>."
462 msgstr "La macro B<LIST_INIT> initialise la liste référencée par I<head>."
463
464 #. type: Plain text
465 #: opensuse-leap-15-6
466 #, fuzzy
467 msgid ""
468 "The macro E<.Nm SLIST_EMPTY> evaluates to true if there are no elements in "
469 "the list."
470 msgstr ""
471 "La macro B<LIST_ENTRY> déclare une structure qui connecte les éléments dans "
472 "la liste."
473
474 #. type: Plain text
475 #: opensuse-leap-15-6
476 #, fuzzy
477 msgid ""
478 "The macro E<.Nm SLIST_ENTRY> declares a structure that connects the elements "
479 "in the list."
480 msgstr ""
481 "La macro B<LIST_ENTRY> déclare une structure qui connecte les éléments dans "
482 "la liste."
483
484 #. type: Plain text
485 #: opensuse-leap-15-6
486 #, fuzzy
487 msgid ""
488 "The macro E<.Nm SLIST_FIRST> returns the first element in the list or NULL "
489 "if the list is empty."
490 msgstr ""
491 "La macro B<LIST_INSERT_HEAD> insère le nouvel élément I<elm> à la tête de la "
492 "liste."
493
494 #. .Pp
495 #. The macro
496 #. .Nm SLIST_FOREACH_FROM
497 #. behaves identically to
498 #. .Nm SLIST_FOREACH
499 #. when
500 #. .Fa var
501 #. is NULL, else it treats
502 #. .Fa var
503 #. as a previously found SLIST element and begins the loop at
504 #. .Fa var
505 #. instead of the first element in the SLIST referenced by
506 #. .Fa head .
507 #. .Pp
508 #. The macro
509 #. .Nm SLIST_FOREACH_SAFE
510 #. traverses the list referenced by
511 #. .Fa head
512 #. in the forward direction, assigning each element in
513 #. turn to
514 #. .Fa var .
515 #. However, unlike
516 #. .Fn SLIST_FOREACH
517 #. here it is permitted to both remove
518 #. .Fa var
519 #. as well as free it from within the loop safely without interfering with the
520 #. traversal.
521 #. .Pp
522 #. The macro
523 #. .Nm SLIST_FOREACH_FROM_SAFE
524 #. behaves identically to
525 #. .Nm SLIST_FOREACH_SAFE
526 #. when
527 #. .Fa var
528 #. is NULL, else it treats
529 #. .Fa var
530 #. as a previously found SLIST element and begins the loop at
531 #. .Fa var
532 #. instead of the first element in the SLIST referenced by
533 #. .Fa head .
534 #. type: Plain text
535 #: opensuse-leap-15-6
536 msgid ""
537 "The macro E<.Nm SLIST_FOREACH> traverses the list referenced by E<.Fa head> "
538 "in the forward direction, assigning each element in turn to E<.Fa var>."
539 msgstr ""
540
541 #. type: Plain text
542 #: opensuse-leap-15-6
543 #, fuzzy
544 msgid ""
545 "The macro E<.Nm SLIST_INIT> initializes the list referenced by E<.Fa head>."
546 msgstr "La macro B<LIST_INIT> initialise la liste référencée par I<head>."
547
548 #. type: Plain text
549 #: opensuse-leap-15-6
550 #, fuzzy
551 msgid ""
552 "The macro E<.Nm SLIST_INSERT_HEAD> inserts the new element E<.Fa elm> at the "
553 "head of the list."
554 msgstr ""
555 "La macro B<LIST_INSERT_HEAD> insère le nouvel élément I<elm> à la tête de la "
556 "liste."
557
558 #. type: Plain text
559 #: opensuse-leap-15-6
560 #, fuzzy
561 msgid ""
562 "The macro E<.Nm SLIST_INSERT_AFTER> inserts the new element E<.Fa elm> after "
563 "the element E<.Fa listelm>."
564 msgstr ""
565 "La macro B<LIST_INSERT_AFTER> insère le nouvel élément I<elm> après "
566 "l'élément I<listelm>."
567
568 #. .Pp
569 #. The macro
570 #. .Nm SLIST_REMOVE_AFTER
571 #. removes the element after
572 #. .Fa elm
573 #. from the list.
574 #. Unlike
575 #. .Fa SLIST_REMOVE ,
576 #. this macro does not traverse the entire list.
577 #. type: Plain text
578 #: opensuse-leap-15-6
579 #, fuzzy
580 msgid "The macro E<.Nm SLIST_NEXT> returns the next element in the list."
581 msgstr ""
582 "La macro B<LIST_ENTRY> déclare une structure qui connecte les éléments dans "
583 "la liste."
584
585 #. type: Plain text
586 #: opensuse-leap-15-6
587 msgid ""
588 "The macro E<.Nm SLIST_REMOVE_HEAD> removes the element E<.Fa elm> from the "
589 "head of the list. For optimum efficiency, elements being removed from the "
590 "head of the list should explicitly use this macro instead of the generic E<."
591 "Fa SLIST_REMOVE> macro."
592 msgstr ""
593
594 #. .Pp
595 #. The macro
596 #. .Nm SLIST_SWAP
597 #. swaps the contents of
598 #. .Fa head1
599 #. and
600 #. .Fa head2 .
601 #. type: Plain text
602 #: opensuse-leap-15-6
603 #, fuzzy
604 msgid ""
605 "The macro E<.Nm SLIST_REMOVE> removes the element E<.Fa elm> from the list."
606 msgstr "La macro B<LIST_REMOVE> supprime l'élément I<elm> de la liste."
607
608 #. type: Ss
609 #: opensuse-leap-15-6
610 #, no-wrap
611 msgid "Singly-linked list example"
612 msgstr ""
613
614 #. type: Plain text
615 #: opensuse-leap-15-6
616 #, fuzzy, no-wrap
617 msgid ""
618 "SLIST_HEAD(slisthead, entry) head =\n"
619 " SLIST_HEAD_INITIALIZER(head);\n"
620 "struct slisthead *headp;\t\t/* Singly-linked List\n"
621 " head. */\n"
622 "struct entry {\n"
623 "\t...\n"
624 "\tSLIST_ENTRY(entry) entries;\t/* Singly-linked List. */\n"
625 "\t...\n"
626 "} *n1, *n2, *n3, *np;\n"
627 msgstr ""
628 "LIST_HEAD(listhead, entry) head;\n"
629 "struct listhead *headp; /* Tête de la liste */\n"
630 "struct entry {\n"
631 " ...\n"
632 " LIST_ENTRY(entry) entries; /* Liste */\n"
633 " ...\n"
634 "} *n1, *n2, *np;\n"
635
636 #. type: Plain text
637 #: opensuse-leap-15-6
638 #, fuzzy, no-wrap
639 msgid "SLIST_INIT(&head);\t\t\t/* Initialize the list. */\n"
640 msgstr "LIST_INIT(&head); /* Initialisation de liste */\n"
641
642 #. type: Plain text
643 #: opensuse-leap-15-6
644 #, fuzzy, no-wrap
645 msgid ""
646 "n1 = malloc(sizeof(struct entry));\t/* Insert at the head. */\n"
647 "SLIST_INSERT_HEAD(&head, n1, entries);\n"
648 msgstr ""
649 "n1 = malloc(sizeof(struct entry)); /* Insertion en tête */\n"
650 "LIST_INSERT_HEAD(&head, n1, entries);\n"
651
652 #. type: Plain text
653 #: opensuse-leap-15-6
654 #, fuzzy, no-wrap
655 msgid ""
656 "n2 = malloc(sizeof(struct entry));\t/* Insert after. */\n"
657 "SLIST_INSERT_AFTER(n1, n2, entries);\n"
658 msgstr ""
659 "n2 = malloc(sizeof(struct entry)); /* Insertion après */\n"
660 "CIRCLEQ_INSERT_AFTER(&head, n1, n2, entries);\n"
661
662 #. type: Plain text
663 #: opensuse-leap-15-6
664 #, no-wrap
665 msgid ""
666 "SLIST_REMOVE(&head, n2, entry, entries);/* Deletion. */\n"
667 "free(n2);\n"
668 msgstr ""
669
670 #. /* Safe forward traversal. */
671 #. SLIST_FOREACH_SAFE(np, &head, entries, np_temp) {
672 #. np\->do_stuff();
673 #. ...
674 #. SLIST_REMOVE(&head, np, entry, entries);
675 #. free(np);
676 #. }
677 #. type: Plain text
678 #: opensuse-leap-15-6
679 #, no-wrap
680 msgid ""
681 "n3 = SLIST_FIRST(&head);\n"
682 "SLIST_REMOVE_HEAD(&head, entries);\t/* Deletion from the head. */\n"
683 "free(n3);\n"
684 "\t\t\t\t\t/* Forward traversal. */\n"
685 "SLIST_FOREACH(np, &head, entries)\n"
686 "\tnp\\-E<gt> ...\n"
687 msgstr ""
688
689 #. type: Plain text
690 #: opensuse-leap-15-6
691 #, no-wrap
692 msgid ""
693 "while (!SLIST_EMPTY(&head)) {\t\t/* List Deletion. */\n"
694 "\tn1 = SLIST_FIRST(&head);\n"
695 "\tSLIST_REMOVE_HEAD(&head, entries);\n"
696 "\tfree(n1);\n"
697 "}\n"
698 msgstr ""
699
700 #. type: Ss
701 #: opensuse-leap-15-6
702 #, no-wrap
703 msgid "Singly-linked tail queues"
704 msgstr ""
705
706 #. type: Plain text
707 #: opensuse-leap-15-6
708 #, fuzzy
709 msgid ""
710 "A singly-linked tail queue is headed by a structure defined by the E<.Nm "
711 "STAILQ_HEAD> macro. This structure contains a pair of pointers, one to the "
712 "first element in the tail queue and the other to the last element in the "
713 "tail queue. The elements are singly linked for minimum space and pointer "
714 "manipulation overhead at the expense of O(n) removal for arbitrary "
715 "elements. New elements can be added to the tail queue after an existing "
716 "element, at the head of the tail queue, or at the end of the tail queue. A "
717 "E<.Fa STAILQ_HEAD> structure is declared as follows:"
718 msgstr ""
719 "La tête d'une liste double est désignée par une structure définie par la "
720 "macro B<TAILQ_HEAD>. Cette structure contient deux pointeurs, l'un sur le "
721 "premier élément et l'autre sur le dernier élément. Les éléments sont "
722 "doublement chaînés, ainsi un élément quelconque peut être supprimé sans "
723 "reparcourir toute la liste. Les nouveaux éléments peuvent être ajoutés après "
724 "un élément existant, en tête ou en queue de liste. Une structure "
725 "B<TAILQ_HEAD> est déclarée ainsi\\ :"
726
727 #. type: Plain text
728 #: opensuse-leap-15-6
729 #, fuzzy, no-wrap
730 msgid "STAILQ_HEAD(HEADNAME, TYPE) head;\n"
731 msgstr "TAILQ_HEAD(HEADNAME, TYPE) head;\n"
732
733 #. type: Plain text
734 #: opensuse-leap-15-6
735 #, fuzzy
736 msgid ""
737 "where E<.Li HEADNAME> is the name of the structure to be defined, and E<.Li "
738 "TYPE> is the type of the elements to be linked into the tail queue. A "
739 "pointer to the head of the tail queue can later be declared as:"
740 msgstr ""
741 "où I<HEADNAME> est le nom de la structure à définir, et I<TYPE> représente "
742 "le type des éléments à lier dans la liste. Un pointeur sur la tête de la "
743 "liste peut être déclaré ainsi\\ :"
744
745 #. type: Plain text
746 #: opensuse-leap-15-6
747 #, fuzzy
748 msgid ""
749 "The macro E<.Nm STAILQ_HEAD_INITIALIZER> evaluates to an initializer for the "
750 "tail queue E<.Fa head>."
751 msgstr ""
752 "La macro B<TAILQ_INIT> initialise la liste double référencée par I<head>."
753
754 #. type: Plain text
755 #: opensuse-leap-15-6
756 msgid ""
757 "The macro E<.Nm STAILQ_CONCAT> concatenates the tail queue headed by E<.Fa "
758 "head2> onto the end of the one headed by E<.Fa head1> removing all entries "
759 "from the former."
760 msgstr ""
761
762 #. type: Plain text
763 #: opensuse-leap-15-6
764 #, fuzzy
765 msgid ""
766 "The macro E<.Nm STAILQ_EMPTY> evaluates to true if there are no items on the "
767 "tail queue."
768 msgstr ""
769 "La macro B<TAILQ_ENTRY> déclare une structure qui connecte les éléments dans "
770 "la liste double."
771
772 #. type: Plain text
773 #: opensuse-leap-15-6
774 #, fuzzy
775 msgid ""
776 "The macro E<.Nm STAILQ_ENTRY> declares a structure that connects the "
777 "elements in the tail queue."
778 msgstr ""
779 "La macro B<TAILQ_ENTRY> déclare une structure qui connecte les éléments dans "
780 "la liste double."
781
782 #. type: Plain text
783 #: opensuse-leap-15-6
784 #, fuzzy
785 msgid ""
786 "The macro E<.Nm STAILQ_FIRST> returns the first item on the tail queue or "
787 "NULL if the tail queue is empty."
788 msgstr ""
789 "La macro B<TAILQ_INSERT_TAIL> insère le nouvel élément I<elm> à la fin de la "
790 "liste double."
791
792 #. .Pp
793 #. The macro
794 #. .Nm STAILQ_FOREACH_FROM
795 #. behaves identically to
796 #. .Nm STAILQ_FOREACH
797 #. when
798 #. .Fa var
799 #. is NULL, else it treats
800 #. .Fa var
801 #. as a previously found STAILQ element and begins the loop at
802 #. .Fa var
803 #. instead of the first element in the STAILQ referenced by
804 #. .Fa head .
805 #. .Pp
806 #. The macro
807 #. .Nm STAILQ_FOREACH_SAFE
808 #. traverses the tail queue referenced by
809 #. .Fa head
810 #. in the forward direction, assigning each element
811 #. in turn to
812 #. .Fa var .
813 #. However, unlike
814 #. .Fn STAILQ_FOREACH
815 #. here it is permitted to both remove
816 #. .Fa var
817 #. as well as free it from within the loop safely without interfering with the
818 #. traversal.
819 #. .Pp
820 #. The macro
821 #. .Nm STAILQ_FOREACH_FROM_SAFE
822 #. behaves identically to
823 #. .Nm STAILQ_FOREACH_SAFE
824 #. when
825 #. .Fa var
826 #. is NULL, else it treats
827 #. .Fa var
828 #. as a previously found STAILQ element and begins the loop at
829 #. .Fa var
830 #. instead of the first element in the STAILQ referenced by
831 #. .Fa head .
832 #. type: Plain text
833 #: opensuse-leap-15-6
834 msgid ""
835 "The macro E<.Nm STAILQ_FOREACH> traverses the tail queue referenced by E<.Fa "
836 "head> in the forward direction, assigning each element in turn to E<.Fa var>."
837 msgstr ""
838
839 #. type: Plain text
840 #: opensuse-leap-15-6
841 #, fuzzy
842 msgid ""
843 "The macro E<.Nm STAILQ_INIT> initializes the tail queue referenced by E<.Fa "
844 "head>."
845 msgstr ""
846 "La macro B<TAILQ_INIT> initialise la liste double référencée par I<head>."
847
848 #. type: Plain text
849 #: opensuse-leap-15-6
850 #, fuzzy
851 msgid ""
852 "The macro E<.Nm STAILQ_INSERT_HEAD> inserts the new element E<.Fa elm> at "
853 "the head of the tail queue."
854 msgstr ""
855 "La macro B<TAILQ_INSERT_HEAD> insère le nouvel élément I<elm> à la fin de la "
856 "liste double."
857
858 #. type: Plain text
859 #: opensuse-leap-15-6
860 #, fuzzy
861 msgid ""
862 "The macro E<.Nm STAILQ_INSERT_TAIL> inserts the new element E<.Fa elm> at "
863 "the end of the tail queue."
864 msgstr ""
865 "La macro B<TAILQ_INSERT_TAIL> insère le nouvel élément I<elm> à la fin de la "
866 "liste double."
867
868 #. .Pp
869 #. The macro
870 #. .Nm STAILQ_LAST
871 #. returns the last item on the tail queue.
872 #. If the tail queue is empty the return value is
873 #. .Dv NULL .
874 #. type: Plain text
875 #: opensuse-leap-15-6
876 #, fuzzy
877 msgid ""
878 "The macro E<.Nm STAILQ_INSERT_AFTER> inserts the new element E<.Fa elm> "
879 "after the element E<.Fa listelm>."
880 msgstr ""
881 "La macro B<TAILQ_INSERT_AFTER> insère le nouvel élément I<elm> après "
882 "l'élément I<listelm>."
883
884 #. .Pp
885 #. The macro
886 #. .Nm STAILQ_REMOVE_AFTER
887 #. removes the element after
888 #. .Fa elm
889 #. from the tail queue.
890 #. Unlike
891 #. .Fa STAILQ_REMOVE ,
892 #. this macro does not traverse the entire tail queue.
893 #. type: Plain text
894 #: opensuse-leap-15-6
895 msgid ""
896 "The macro E<.Nm STAILQ_NEXT> returns the next item on the tail queue, or "
897 "NULL this item is the last."
898 msgstr ""
899
900 #. type: Plain text
901 #: opensuse-leap-15-6
902 msgid ""
903 "The macro E<.Nm STAILQ_REMOVE_HEAD> removes the element at the head of the "
904 "tail queue. For optimum efficiency, elements being removed from the head of "
905 "the tail queue should use this macro explicitly rather than the generic E<."
906 "Fa STAILQ_REMOVE> macro."
907 msgstr ""
908
909 #. .Pp
910 #. The macro
911 #. .Nm STAILQ_SWAP
912 #. swaps the contents of
913 #. .Fa head1
914 #. and
915 #. .Fa head2 .
916 #. type: Plain text
917 #: opensuse-leap-15-6
918 #, fuzzy
919 msgid ""
920 "The macro E<.Nm STAILQ_REMOVE> removes the element E<.Fa elm> from the tail "
921 "queue."
922 msgstr "La macro B<TAILQ_REMOVE> supprime l'élément I<elm> de la liste double."
923
924 #. type: Ss
925 #: opensuse-leap-15-6
926 #, fuzzy, no-wrap
927 msgid "Singly-linked tail queue example"
928 msgstr "Exemple de liste double"
929
930 #. type: Plain text
931 #: opensuse-leap-15-6
932 #, fuzzy, no-wrap
933 msgid ""
934 "STAILQ_HEAD(stailhead, entry) head =\n"
935 " STAILQ_HEAD_INITIALIZER(head);\n"
936 "struct stailhead *headp;\t\t/* Singly-linked tail queue head. */\n"
937 "struct entry {\n"
938 "\t...\n"
939 "\tSTAILQ_ENTRY(entry) entries;\t/* Tail queue. */\n"
940 "\t...\n"
941 "} *n1, *n2, *n3, *np;\n"
942 msgstr ""
943 "TAILQ_HEAD(tailhead, entry) head;\n"
944 "struct tailhead *headp; /* Tête de liste double */\n"
945 "struct entry {\n"
946 " ...\n"
947 " TAILQ_ENTRY(entry) entries; /* Liste double */\n"
948 " ...\n"
949 "} *n1, *n2, *np;\n"
950
951 #. type: Plain text
952 #: opensuse-leap-15-6
953 #, fuzzy, no-wrap
954 msgid "STAILQ_INIT(&head);\t\t\t/* Initialize the queue. */\n"
955 msgstr "TAILQ_INIT(&head); /* Initialisation de liste */\n"
956
957 #. type: Plain text
958 #: opensuse-leap-15-6
959 #, fuzzy, no-wrap
960 msgid ""
961 "n1 = malloc(sizeof(struct entry));\t/* Insert at the head. */\n"
962 "STAILQ_INSERT_HEAD(&head, n1, entries);\n"
963 msgstr ""
964 "n1 = malloc(sizeof(struct entry)); /* Insertion au début */\n"
965 "TAILQ_INSERT_HEAD(&head, n1, entries);\n"
966
967 #. type: Plain text
968 #: opensuse-leap-15-6
969 #, fuzzy, no-wrap
970 msgid ""
971 "n1 = malloc(sizeof(struct entry));\t/* Insert at the tail. */\n"
972 "STAILQ_INSERT_TAIL(&head, n1, entries);\n"
973 msgstr ""
974 "n1 = malloc(sizeof(struct entry)); /* Insertion à la fin */\n"
975 "TAILQ_INSERT_TAIL(&head, n1, entries);\n"
976
977 #. /* Safe forward traversal. */
978 #. STAILQ_FOREACH_SAFE(np, &head, entries, np_temp) {
979 #. np\->do_stuff();
980 #. ...
981 #. STAILQ_REMOVE(&head, np, entry, entries);
982 #. free(np);
983 #. }
984 #. type: Plain text
985 #: opensuse-leap-15-6
986 #, no-wrap
987 msgid ""
988 "n2 = malloc(sizeof(struct entry));\t/* Insert after. */\n"
989 "STAILQ_INSERT_AFTER(&head, n1, n2, entries);\n"
990 "\t\t\t\t\t/* Deletion. */\n"
991 "STAILQ_REMOVE(&head, n2, entry, entries);\n"
992 "free(n2);\n"
993 "\t\t\t\t\t/* Deletion from the head. */\n"
994 "n3 = STAILQ_FIRST(&head);\n"
995 "STAILQ_REMOVE_HEAD(&head, entries);\n"
996 "free(n3);\n"
997 "\t\t\t\t\t/* Forward traversal. */\n"
998 "STAILQ_FOREACH(np, &head, entries)\n"
999 "\tnp\\-E<gt> ...\n"
1000 "\t\t\t\t\t/* TailQ Deletion. */\n"
1001 "while (!STAILQ_EMPTY(&head)) {\n"
1002 "\tn1 = STAILQ_FIRST(&head);\n"
1003 "\tSTAILQ_REMOVE_HEAD(&head, entries);\n"
1004 "\tfree(n1);\n"
1005 "}\n"
1006 "\t\t\t\t\t/* Faster TailQ Deletion. */\n"
1007 "n1 = STAILQ_FIRST(&head);\n"
1008 "while (n1 != NULL) {\n"
1009 "\tn2 = STAILQ_NEXT(n1, entries);\n"
1010 "\tfree(n1);\n"
1011 "\tn1 = n2;\n"
1012 "}\n"
1013 "STAILQ_INIT(&head);\n"
1014 msgstr ""
1015
1016 #. type: Ss
1017 #: opensuse-leap-15-6
1018 #, no-wrap
1019 msgid "Lists"
1020 msgstr "Listes"
1021
1022 #. type: Plain text
1023 #: opensuse-leap-15-6
1024 #, fuzzy
1025 msgid ""
1026 "A list is headed by a structure defined by the E<.Nm LIST_HEAD> macro. This "
1027 "structure contains a single pointer to the first element on the list. The "
1028 "elements are doubly linked so that an arbitrary element can be removed "
1029 "without traversing the list. New elements can be added to the list after an "
1030 "existing element, before an existing element, or at the head of the list. A "
1031 "E<.Fa LIST_HEAD> structure is declared as follows:"
1032 msgstr ""
1033 "Une liste débute par une structure définie par la macro B<LIST_HEAD>. Cette "
1034 "structure contient un pointeur simple sur le premier élément de la liste. "
1035 "Les éléments sont doublement chaînés afin qu'un élément puisse être supprimé "
1036 "sans parcourir toute la liste. Des éléments peuvent être ajoutés après un "
1037 "élément existant ou en tête de liste. Une structure B<LIST_HEAD> est "
1038 "déclarée ainsi\\ :"
1039
1040 #. type: Plain text
1041 #: opensuse-leap-15-6
1042 #, no-wrap
1043 msgid "LIST_HEAD(HEADNAME, TYPE) head;\n"
1044 msgstr "LIST_HEAD(HEADNAME, TYPE) head;\n"
1045
1046 #. type: Plain text
1047 #: opensuse-leap-15-6
1048 #, fuzzy
1049 msgid ""
1050 "The macro E<.Nm LIST_HEAD_INITIALIZER> evaluates to an initializer for the "
1051 "list E<.Fa head>."
1052 msgstr "La macro B<LIST_INIT> initialise la liste référencée par I<head>."
1053
1054 #. type: Plain text
1055 #: opensuse-leap-15-6
1056 #, fuzzy
1057 msgid ""
1058 "The macro E<.Nm LIST_EMPTY> evaluates to true if there are no elements in "
1059 "the list."
1060 msgstr ""
1061 "La macro B<LIST_ENTRY> déclare une structure qui connecte les éléments dans "
1062 "la liste."
1063
1064 #. type: Plain text
1065 #: opensuse-leap-15-6
1066 #, fuzzy
1067 msgid ""
1068 "The macro E<.Nm LIST_ENTRY> declares a structure that connects the elements "
1069 "in the list."
1070 msgstr ""
1071 "La macro B<LIST_ENTRY> déclare une structure qui connecte les éléments dans "
1072 "la liste."
1073
1074 #. type: Plain text
1075 #: opensuse-leap-15-6
1076 #, fuzzy
1077 msgid ""
1078 "The macro E<.Nm LIST_FIRST> returns the first element in the list or NULL if "
1079 "the list is empty."
1080 msgstr ""
1081 "La macro B<LIST_INSERT_HEAD> insère le nouvel élément I<elm> à la tête de la "
1082 "liste."
1083
1084 #. .Pp
1085 #. The macro
1086 #. .Nm LIST_FOREACH_FROM
1087 #. behaves identically to
1088 #. .Nm LIST_FOREACH
1089 #. when
1090 #. .Fa var
1091 #. is NULL, else it treats
1092 #. .Fa var
1093 #. as a previously found LIST element and begins the loop at
1094 #. .Fa var
1095 #. instead of the first element in the LIST referenced by
1096 #. .Fa head .
1097 #. .Pp
1098 #. The macro
1099 #. .Nm LIST_FOREACH_SAFE
1100 #. traverses the list referenced by
1101 #. .Fa head
1102 #. in the forward direction, assigning each element in turn to
1103 #. .Fa var .
1104 #. However, unlike
1105 #. .Fn LIST_FOREACH
1106 #. here it is permitted to both remove
1107 #. .Fa var
1108 #. as well as free it from within the loop safely without interfering with the
1109 #. traversal.
1110 #. .Pp
1111 #. The macro
1112 #. .Nm LIST_FOREACH_FROM_SAFE
1113 #. behaves identically to
1114 #. .Nm LIST_FOREACH_SAFE
1115 #. when
1116 #. .Fa var
1117 #. is NULL, else it treats
1118 #. .Fa var
1119 #. as a previously found LIST element and begins the loop at
1120 #. .Fa var
1121 #. instead of the first element in the LIST referenced by
1122 #. .Fa head .
1123 #. type: Plain text
1124 #: opensuse-leap-15-6
1125 msgid ""
1126 "The macro E<.Nm LIST_FOREACH> traverses the list referenced by E<.Fa head> "
1127 "in the forward direction, assigning each element in turn to E<.Fa var>."
1128 msgstr ""
1129
1130 #. type: Plain text
1131 #: opensuse-leap-15-6
1132 #, fuzzy
1133 msgid ""
1134 "The macro E<.Nm LIST_INIT> initializes the list referenced by E<.Fa head>."
1135 msgstr "La macro B<LIST_INIT> initialise la liste référencée par I<head>."
1136
1137 #. type: Plain text
1138 #: opensuse-leap-15-6
1139 #, fuzzy
1140 msgid ""
1141 "The macro E<.Nm LIST_INSERT_HEAD> inserts the new element E<.Fa elm> at the "
1142 "head of the list."
1143 msgstr ""
1144 "La macro B<LIST_INSERT_HEAD> insère le nouvel élément I<elm> à la tête de la "
1145 "liste."
1146
1147 #. type: Plain text
1148 #: opensuse-leap-15-6
1149 #, fuzzy
1150 msgid ""
1151 "The macro E<.Nm LIST_INSERT_AFTER> inserts the new element E<.Fa elm> after "
1152 "the element E<.Fa listelm>."
1153 msgstr ""
1154 "La macro B<LIST_INSERT_AFTER> insère le nouvel élément I<elm> après "
1155 "l'élément I<listelm>."
1156
1157 #. type: Plain text
1158 #: opensuse-leap-15-6
1159 #, fuzzy
1160 msgid ""
1161 "The macro E<.Nm LIST_INSERT_BEFORE> inserts the new element E<.Fa elm> "
1162 "before the element E<.Fa listelm>."
1163 msgstr ""
1164 "La macro B<CIRCLEQ_INSERT_BEFORE> insère le nouvel élément I<elm> avant "
1165 "l'élément I<listelm>."
1166
1167 #. .Pp
1168 #. The macro
1169 #. .Nm LIST_PREV
1170 #. returns the previous element in the list, or NULL if this is the first.
1171 #. List
1172 #. .Fa head
1173 #. must contain element
1174 #. .Fa elm .
1175 #. type: Plain text
1176 #: opensuse-leap-15-6
1177 #, fuzzy
1178 msgid ""
1179 "The macro E<.Nm LIST_NEXT> returns the next element in the list, or NULL if "
1180 "this is the last."
1181 msgstr ""
1182 "La macro B<LIST_INSERT_HEAD> insère le nouvel élément I<elm> à la tête de la "
1183 "liste."
1184
1185 #. .Pp
1186 #. The macro
1187 #. .Nm LIST_SWAP
1188 #. swaps the contents of
1189 #. .Fa head1
1190 #. and
1191 #. .Fa head2 .
1192 #. type: Plain text
1193 #: opensuse-leap-15-6
1194 #, fuzzy
1195 msgid ""
1196 "The macro E<.Nm LIST_REMOVE> removes the element E<.Fa elm> from the list."
1197 msgstr "La macro B<LIST_REMOVE> supprime l'élément I<elm> de la liste."
1198
1199 #. type: Ss
1200 #: opensuse-leap-15-6
1201 #, no-wrap
1202 msgid "List example"
1203 msgstr "Exemple de liste"
1204
1205 #. type: Plain text
1206 #: opensuse-leap-15-6
1207 #, fuzzy, no-wrap
1208 msgid ""
1209 "LIST_HEAD(listhead, entry) head =\n"
1210 " LIST_HEAD_INITIALIZER(head);\n"
1211 "struct listhead *headp;\t\t\t/* List head. */\n"
1212 "struct entry {\n"
1213 "\t...\n"
1214 "\tLIST_ENTRY(entry) entries;\t/* List. */\n"
1215 "\t...\n"
1216 "} *n1, *n2, *n3, *np, *np_temp;\n"
1217 msgstr ""
1218 "LIST_HEAD(listhead, entry) head;\n"
1219 "struct listhead *headp; /* Tête de la liste */\n"
1220 "struct entry {\n"
1221 " ...\n"
1222 " LIST_ENTRY(entry) entries; /* Liste */\n"
1223 " ...\n"
1224 "} *n1, *n2, *np;\n"
1225
1226 #. type: Plain text
1227 #: opensuse-leap-15-6
1228 #, fuzzy, no-wrap
1229 msgid "LIST_INIT(&head);\t\t\t/* Initialize the list. */\n"
1230 msgstr "LIST_INIT(&head); /* Initialisation de liste */\n"
1231
1232 #. type: Plain text
1233 #: opensuse-leap-15-6
1234 #, fuzzy, no-wrap
1235 msgid ""
1236 "n1 = malloc(sizeof(struct entry));\t/* Insert at the head. */\n"
1237 "LIST_INSERT_HEAD(&head, n1, entries);\n"
1238 msgstr ""
1239 "n1 = malloc(sizeof(struct entry)); /* Insertion en tête */\n"
1240 "LIST_INSERT_HEAD(&head, n1, entries);\n"
1241
1242 #. type: Plain text
1243 #: opensuse-leap-15-6
1244 #, fuzzy, no-wrap
1245 msgid ""
1246 "n2 = malloc(sizeof(struct entry));\t/* Insert after. */\n"
1247 "LIST_INSERT_AFTER(n1, n2, entries);\n"
1248 msgstr ""
1249 "n2 = malloc(sizeof(struct entry)); /* Insertion après */\n"
1250 "CIRCLEQ_INSERT_AFTER(&head, n1, n2, entries);\n"
1251
1252 #. type: Plain text
1253 #: opensuse-leap-15-6
1254 #, fuzzy, no-wrap
1255 msgid ""
1256 "n3 = malloc(sizeof(struct entry));\t/* Insert before. */\n"
1257 "LIST_INSERT_BEFORE(n2, n3, entries);\n"
1258 msgstr ""
1259 "n1 = malloc(sizeof(struct entry)); /* Insertion en tête */\n"
1260 "LIST_INSERT_HEAD(&head, n1, entries);\n"
1261
1262 #. type: Plain text
1263 #: opensuse-leap-15-6
1264 #, no-wrap
1265 msgid ""
1266 "LIST_REMOVE(n2, entries);\t\t/* Deletion. */\n"
1267 "free(n2);\n"
1268 "\t\t\t\t\t/* Forward traversal. */\n"
1269 "LIST_FOREACH(np, &head, entries)\n"
1270 "\tnp\\-E<gt> ...\n"
1271 msgstr ""
1272
1273 #. /* Safe forward traversal. */
1274 #. LIST_FOREACH_SAFE(np, &head, entries, np_temp) {
1275 #. np\->do_stuff();
1276 #. ...
1277 #. LIST_REMOVE(np, entries);
1278 #. free(np);
1279 #. }
1280 #. type: Plain text
1281 #: opensuse-leap-15-6
1282 #, no-wrap
1283 msgid ""
1284 "while (!LIST_EMPTY(&head)) {\t\t/* List Deletion. */\n"
1285 "\tn1 = LIST_FIRST(&head);\n"
1286 "\tLIST_REMOVE(n1, entries);\n"
1287 "\tfree(n1);\n"
1288 "}\n"
1289 msgstr ""
1290
1291 #. type: Plain text
1292 #: opensuse-leap-15-6
1293 #, no-wrap
1294 msgid ""
1295 "n1 = LIST_FIRST(&head);\t\t\t/* Faster List Deletion. */\n"
1296 "while (n1 != NULL) {\n"
1297 "\tn2 = LIST_NEXT(n1, entries);\n"
1298 "\tfree(n1);\n"
1299 "\tn1 = n2;\n"
1300 "}\n"
1301 "LIST_INIT(&head);\n"
1302 msgstr ""
1303
1304 #. type: Ss
1305 #: opensuse-leap-15-6
1306 #, no-wrap
1307 msgid "Tail queues"
1308 msgstr "Listes doubles"
1309
1310 #. type: Plain text
1311 #: opensuse-leap-15-6
1312 #, fuzzy
1313 msgid ""
1314 "A tail queue is headed by a structure defined by the E<.Nm TAILQ_HEAD> "
1315 "macro. This structure contains a pair of pointers, one to the first element "
1316 "in the tail queue and the other to the last element in the tail queue. The "
1317 "elements are doubly linked so that an arbitrary element can be removed "
1318 "without traversing the tail queue. New elements can be added to the tail "
1319 "queue after an existing element, before an existing element, at the head of "
1320 "the tail queue, or at the end of the tail queue. A E<.Fa TAILQ_HEAD> "
1321 "structure is declared as follows:"
1322 msgstr ""
1323 "La tête d'une liste double est désignée par une structure définie par la "
1324 "macro B<TAILQ_HEAD>. Cette structure contient deux pointeurs, l'un sur le "
1325 "premier élément et l'autre sur le dernier élément. Les éléments sont "
1326 "doublement chaînés, ainsi un élément quelconque peut être supprimé sans "
1327 "reparcourir toute la liste. Les nouveaux éléments peuvent être ajoutés après "
1328 "un élément existant, en tête ou en queue de liste. Une structure "
1329 "B<TAILQ_HEAD> est déclarée ainsi\\ :"
1330
1331 #. type: Plain text
1332 #: opensuse-leap-15-6
1333 #, no-wrap
1334 msgid "TAILQ_HEAD(HEADNAME, TYPE) head;\n"
1335 msgstr "TAILQ_HEAD(HEADNAME, TYPE) head;\n"
1336
1337 #. type: Plain text
1338 #: opensuse-leap-15-6
1339 #, fuzzy
1340 msgid ""
1341 "The macro E<.Nm TAILQ_HEAD_INITIALIZER> evaluates to an initializer for the "
1342 "tail queue E<.Fa head>."
1343 msgstr ""
1344 "La macro B<TAILQ_INIT> initialise la liste double référencée par I<head>."
1345
1346 #. type: Plain text
1347 #: opensuse-leap-15-6
1348 msgid ""
1349 "The macro E<.Nm TAILQ_CONCAT> concatenates the tail queue headed by E<.Fa "
1350 "head2> onto the end of the one headed by E<.Fa head1> removing all entries "
1351 "from the former."
1352 msgstr ""
1353
1354 #. type: Plain text
1355 #: opensuse-leap-15-6
1356 #, fuzzy
1357 msgid ""
1358 "The macro E<.Nm TAILQ_EMPTY> evaluates to true if there are no items on the "
1359 "tail queue."
1360 msgstr ""
1361 "La macro B<TAILQ_ENTRY> déclare une structure qui connecte les éléments dans "
1362 "la liste double."
1363
1364 #. type: Plain text
1365 #: opensuse-leap-15-6
1366 #, fuzzy
1367 msgid ""
1368 "The macro E<.Nm TAILQ_ENTRY> declares a structure that connects the elements "
1369 "in the tail queue."
1370 msgstr ""
1371 "La macro B<TAILQ_ENTRY> déclare une structure qui connecte les éléments dans "
1372 "la liste double."
1373
1374 #. type: Plain text
1375 #: opensuse-leap-15-6
1376 #, fuzzy
1377 msgid ""
1378 "The macro E<.Nm TAILQ_FIRST> returns the first item on the tail queue or "
1379 "NULL if the tail queue is empty."
1380 msgstr ""
1381 "La macro B<TAILQ_INSERT_TAIL> insère le nouvel élément I<elm> à la fin de la "
1382 "liste double."
1383
1384 #. .Pp
1385 #. The macro
1386 #. .Nm TAILQ_FOREACH_FROM
1387 #. behaves identically to
1388 #. .Nm TAILQ_FOREACH
1389 #. when
1390 #. .Fa var
1391 #. is NULL, else it treats
1392 #. .Fa var
1393 #. as a previously found TAILQ element and begins the loop at
1394 #. .Fa var
1395 #. instead of the first element in the TAILQ referenced by
1396 #. .Fa head .
1397 #. type: Plain text
1398 #: opensuse-leap-15-6
1399 msgid ""
1400 "The macro E<.Nm TAILQ_FOREACH> traverses the tail queue referenced by E<.Fa "
1401 "head> in the forward direction, assigning each element in turn to E<.Fa "
1402 "var>. E<.Fa var> is set to E<.Dv NULL> if the loop completes normally, or "
1403 "if there were no elements."
1404 msgstr ""
1405
1406 #. .Pp
1407 #. The macro
1408 #. .Nm TAILQ_FOREACH_REVERSE_FROM
1409 #. behaves identically to
1410 #. .Nm TAILQ_FOREACH_REVERSE
1411 #. when
1412 #. .Fa var
1413 #. is NULL, else it treats
1414 #. .Fa var
1415 #. as a previously found TAILQ element and begins the reverse loop at
1416 #. .Fa var
1417 #. instead of the last element in the TAILQ referenced by
1418 #. .Fa head .
1419 #. .Pp
1420 #. The macros
1421 #. .Nm TAILQ_FOREACH_SAFE
1422 #. and
1423 #. .Nm TAILQ_FOREACH_REVERSE_SAFE
1424 #. traverse the list referenced by
1425 #. .Fa head
1426 #. in the forward or reverse direction respectively,
1427 #. assigning each element in turn to
1428 #. .Fa var .
1429 #. However, unlike their unsafe counterparts,
1430 #. .Nm TAILQ_FOREACH
1431 #. and
1432 #. .Nm TAILQ_FOREACH_REVERSE
1433 #. permit to both remove
1434 #. .Fa var
1435 #. as well as free it from within the loop safely without interfering with the
1436 #. traversal.
1437 #. .Pp
1438 #. The macro
1439 #. .Nm TAILQ_FOREACH_FROM_SAFE
1440 #. behaves identically to
1441 #. .Nm TAILQ_FOREACH_SAFE
1442 #. when
1443 #. .Fa var
1444 #. is NULL, else it treats
1445 #. .Fa var
1446 #. as a previously found TAILQ element and begins the loop at
1447 #. .Fa var
1448 #. instead of the first element in the TAILQ referenced by
1449 #. .Fa head .
1450 #. .Pp
1451 #. The macro
1452 #. .Nm TAILQ_FOREACH_REVERSE_FROM_SAFE
1453 #. behaves identically to
1454 #. .Nm TAILQ_FOREACH_REVERSE_SAFE
1455 #. when
1456 #. .Fa var
1457 #. is NULL, else it treats
1458 #. .Fa var
1459 #. as a previously found TAILQ element and begins the reverse loop at
1460 #. .Fa var
1461 #. instead of the last element in the TAILQ referenced by
1462 #. .Fa head .
1463 #. type: Plain text
1464 #: opensuse-leap-15-6
1465 msgid ""
1466 "The macro E<.Nm TAILQ_FOREACH_REVERSE> traverses the tail queue referenced "
1467 "by E<.Fa head> in the reverse direction, assigning each element in turn to "
1468 "E<.Fa var>."
1469 msgstr ""
1470
1471 #. type: Plain text
1472 #: opensuse-leap-15-6
1473 #, fuzzy
1474 msgid ""
1475 "The macro E<.Nm TAILQ_INIT> initializes the tail queue referenced by E<.Fa "
1476 "head>."
1477 msgstr ""
1478 "La macro B<TAILQ_INIT> initialise la liste double référencée par I<head>."
1479
1480 #. type: Plain text
1481 #: opensuse-leap-15-6
1482 #, fuzzy
1483 msgid ""
1484 "The macro E<.Nm TAILQ_INSERT_HEAD> inserts the new element E<.Fa elm> at the "
1485 "head of the tail queue."
1486 msgstr ""
1487 "La macro B<TAILQ_INSERT_HEAD> insère le nouvel élément I<elm> à la fin de la "
1488 "liste double."
1489
1490 #. type: Plain text
1491 #: opensuse-leap-15-6
1492 #, fuzzy
1493 msgid ""
1494 "The macro E<.Nm TAILQ_INSERT_TAIL> inserts the new element E<.Fa elm> at the "
1495 "end of the tail queue."
1496 msgstr ""
1497 "La macro B<TAILQ_INSERT_TAIL> insère le nouvel élément I<elm> à la fin de la "
1498 "liste double."
1499
1500 #. type: Plain text
1501 #: opensuse-leap-15-6
1502 #, fuzzy
1503 msgid ""
1504 "The macro E<.Nm TAILQ_INSERT_AFTER> inserts the new element E<.Fa elm> after "
1505 "the element E<.Fa listelm>."
1506 msgstr ""
1507 "La macro B<TAILQ_INSERT_AFTER> insère le nouvel élément I<elm> après "
1508 "l'élément I<listelm>."
1509
1510 #. type: Plain text
1511 #: opensuse-leap-15-6
1512 #, fuzzy
1513 msgid ""
1514 "The macro E<.Nm TAILQ_INSERT_BEFORE> inserts the new element E<.Fa elm> "
1515 "before the element E<.Fa listelm>."
1516 msgstr ""
1517 "La macro B<CIRCLEQ_INSERT_BEFORE> insère le nouvel élément I<elm> avant "
1518 "l'élément I<listelm>."
1519
1520 #. type: Plain text
1521 #: opensuse-leap-15-6
1522 msgid ""
1523 "The macro E<.Nm TAILQ_LAST> returns the last item on the tail queue. If the "
1524 "tail queue is empty the return value is E<.Dv NULL>."
1525 msgstr ""
1526
1527 #. type: Plain text
1528 #: opensuse-leap-15-6
1529 msgid ""
1530 "The macro E<.Nm TAILQ_NEXT> returns the next item on the tail queue, or NULL "
1531 "if this item is the last."
1532 msgstr ""
1533
1534 #. type: Plain text
1535 #: opensuse-leap-15-6
1536 msgid ""
1537 "The macro E<.Nm TAILQ_PREV> returns the previous item on the tail queue, or "
1538 "NULL if this item is the first."
1539 msgstr ""
1540
1541 #. type: Plain text
1542 #: opensuse-leap-15-6
1543 #, fuzzy
1544 msgid ""
1545 "The macro E<.Nm TAILQ_REMOVE> removes the element E<.Fa elm> from the tail "
1546 "queue."
1547 msgstr "La macro B<TAILQ_REMOVE> supprime l'élément I<elm> de la liste double."
1548
1549 #. type: Plain text
1550 #: opensuse-leap-15-6
1551 msgid ""
1552 "The macro E<.Nm TAILQ_SWAP> swaps the contents of E<.Fa head1> and E<.Fa "
1553 "head2>."
1554 msgstr ""
1555
1556 #. type: Ss
1557 #: opensuse-leap-15-6
1558 #, no-wrap
1559 msgid "Tail queue example"
1560 msgstr "Exemple de liste double"
1561
1562 #. type: Plain text
1563 #: opensuse-leap-15-6
1564 #, fuzzy, no-wrap
1565 msgid ""
1566 "TAILQ_HEAD(tailhead, entry) head =\n"
1567 " TAILQ_HEAD_INITIALIZER(head);\n"
1568 "struct tailhead *headp;\t\t\t/* Tail queue head. */\n"
1569 "struct entry {\n"
1570 "\t...\n"
1571 "\tTAILQ_ENTRY(entry) entries;\t/* Tail queue. */\n"
1572 "\t...\n"
1573 "} *n1, *n2, *n3, *np;\n"
1574 msgstr ""
1575 "TAILQ_HEAD(tailhead, entry) head;\n"
1576 "struct tailhead *headp; /* Tête de liste double */\n"
1577 "struct entry {\n"
1578 " ...\n"
1579 " TAILQ_ENTRY(entry) entries; /* Liste double */\n"
1580 " ...\n"
1581 "} *n1, *n2, *np;\n"
1582
1583 #. type: Plain text
1584 #: opensuse-leap-15-6
1585 #, fuzzy, no-wrap
1586 msgid "TAILQ_INIT(&head);\t\t\t/* Initialize the queue. */\n"
1587 msgstr "TAILQ_INIT(&head); /* Initialisation de liste */\n"
1588
1589 #. type: Plain text
1590 #: opensuse-leap-15-6
1591 #, fuzzy, no-wrap
1592 msgid ""
1593 "n1 = malloc(sizeof(struct entry));\t/* Insert at the head. */\n"
1594 "TAILQ_INSERT_HEAD(&head, n1, entries);\n"
1595 msgstr ""
1596 "n1 = malloc(sizeof(struct entry)); /* Insertion au début */\n"
1597 "TAILQ_INSERT_HEAD(&head, n1, entries);\n"
1598
1599 #. type: Plain text
1600 #: opensuse-leap-15-6
1601 #, fuzzy, no-wrap
1602 msgid ""
1603 "n1 = malloc(sizeof(struct entry));\t/* Insert at the tail. */\n"
1604 "TAILQ_INSERT_TAIL(&head, n1, entries);\n"
1605 msgstr ""
1606 "n1 = malloc(sizeof(struct entry)); /* Insertion à la fin */\n"
1607 "TAILQ_INSERT_TAIL(&head, n1, entries);\n"
1608
1609 #. type: Plain text
1610 #: opensuse-leap-15-6
1611 #, fuzzy, no-wrap
1612 msgid ""
1613 "n2 = malloc(sizeof(struct entry));\t/* Insert after. */\n"
1614 "TAILQ_INSERT_AFTER(&head, n1, n2, entries);\n"
1615 msgstr ""
1616 "n2 = malloc(sizeof(struct entry)); /* Insertion après */\n"
1617 "CIRCLEQ_INSERT_AFTER(&head, n1, n2, entries);\n"
1618
1619 #. type: Plain text
1620 #: opensuse-leap-15-6
1621 #, fuzzy, no-wrap
1622 msgid ""
1623 "n3 = malloc(sizeof(struct entry));\t/* Insert before. */\n"
1624 "TAILQ_INSERT_BEFORE(n2, n3, entries);\n"
1625 msgstr ""
1626 "n2 = malloc(sizeof(struct entry)); /* Insertion après */\n"
1627 "CIRCLEQ_INSERT_AFTER(&head, n1, n2, entries);\n"
1628
1629 #. /* Safe forward traversal. */
1630 #. TAILQ_FOREACH_SAFE(np, &head, entries, np_temp) {
1631 #. np\->do_stuff();
1632 #. ...
1633 #. TAILQ_REMOVE(&head, np, entries);
1634 #. free(np);
1635 #. }
1636 #. type: Plain text
1637 #: opensuse-leap-15-6
1638 #, no-wrap
1639 msgid ""
1640 "TAILQ_REMOVE(&head, n2, entries);\t/* Deletion. */\n"
1641 "free(n2);\n"
1642 "\t\t\t\t\t/* Forward traversal. */\n"
1643 "TAILQ_FOREACH(np, &head, entries)\n"
1644 "\tnp\\-E<gt> ...\n"
1645 "\t\t\t\t\t/* Reverse traversal. */\n"
1646 "TAILQ_FOREACH_REVERSE(np, &head, tailhead, entries)\n"
1647 "\tnp\\-E<gt> ...\n"
1648 "\t\t\t\t\t/* TailQ Deletion. */\n"
1649 "while (!TAILQ_EMPTY(&head)) {\n"
1650 "\tn1 = TAILQ_FIRST(&head);\n"
1651 "\tTAILQ_REMOVE(&head, n1, entries);\n"
1652 "\tfree(n1);\n"
1653 "}\n"
1654 "\t\t\t\t\t/* Faster TailQ Deletion. */\n"
1655 "n1 = TAILQ_FIRST(&head);\n"
1656 "while (n1 != NULL) {\n"
1657 "\tn2 = TAILQ_NEXT(n1, entries);\n"
1658 "\tfree(n1);\n"
1659 "\tn1 = n2;\n"
1660 "}\n"
1661 msgstr ""
1662
1663 #. type: Plain text
1664 #: opensuse-leap-15-6
1665 #, fuzzy, no-wrap
1666 msgid ""
1667 "TAILQ_INIT(&head);\n"
1668 "n2 = malloc(sizeof(struct entry)); /* Insert before. */\n"
1669 "CIRCLEQ_INSERT_BEFORE(&head, n1, n2, entries);\n"
1670 " /* Forward traversal. */\n"
1671 "for (np = head.cqh_first; np != (void *)&head;\n"
1672 " np = np\\-E<gt>entries.cqe_next)\n"
1673 " np\\-E<gt> ...\n"
1674 " /* Reverse traversal. */\n"
1675 "for (np = head.cqh_last; np != (void *)&head; np = np\\-E<gt>entries.cqe_prev)\n"
1676 " np\\-E<gt> ...\n"
1677 " /* Delete. */\n"
1678 "while (head.cqh_first != (void *)&head)\n"
1679 " CIRCLEQ_REMOVE(&head, head.cqh_first, entries);\n"
1680 msgstr ""
1681 "n2 = malloc(sizeof(struct entry)); /* Insertion avant */\n"
1682 "CIRCLEQ_INSERT_BEFORE(&head, n1, n2, entries);\n"
1683 " /* Parcours en avant */\n"
1684 "for (np = head.cqh_first; np != (void *)&head;\n"
1685 " np = np-E<gt>entries.cqe_next)\n"
1686 " np-E<gt> ...\n"
1687 " /* Parcours en arrière */\n"
1688 "for (np = head.cqh_last; np != (void *)&head; np = np-E<gt>entries.cqe_prev)\n"
1689 " np-E<gt> ...\n"
1690 " /* Suppression */\n"
1691 "while (head.cqh_first != (void *)&head)\n"
1692 " CIRCLEQ_REMOVE(&head, head.cqh_first, entries);\n"
1693
1694 #. type: Sh
1695 #: opensuse-leap-15-6
1696 #, no-wrap
1697 msgid "CONFORMING TO"
1698 msgstr "CONFORMITÉ"
1699
1700 #. type: Plain text
1701 #: opensuse-leap-15-6
1702 #, fuzzy
1703 msgid ""
1704 "Not in POSIX.1, POSIX.1-2001 or POSIX.1-2008. Present on the BSDs. E<.Nm "
1705 "queue> functions first appeared in E<.Bx 4.4>."
1706 msgstr ""
1707 "Pas dans POSIX.1-2001. Présentes sur les BSD. Les fonctions de liste queue "
1708 "sont apparues dans BSD 4.4."
1709
1710 #. type: Sh
1711 #: opensuse-leap-15-6
1712 #, no-wrap
1713 msgid "SEE ALSO"
1714 msgstr "VOIR AUSSI"
1715
1716 #. .Xr tree 3
1717 #. type: Plain text
1718 #: opensuse-leap-15-6
1719 msgid "E<.Xr insque 3>"
1720 msgstr ""
1721
1722 #. type: Sh
1723 #: opensuse-leap-15-6
1724 #, no-wrap
1725 msgid "COLOPHON"
1726 msgstr "COLOPHON"
1727
1728 #. type: Plain text
1729 #: opensuse-leap-15-6
1730 #, fuzzy
1731 msgid ""
1732 "This page is part of release 4.16 of the Linux E<.Em man-pages> project. A "
1733 "description of the project, information about reporting bugs, and the latest "
1734 "version of this page, can be found at \\%https://www.kernel.org/doc/man\\-"
1735 "pages/."
1736 msgstr ""
1737 "Cette page fait partie de la publication 4.16 du projet I<man-pages> Linux. "
1738 "Une description du projet et des instructions pour signaler des anomalies "
1739 "peuvent être trouvées à l'adresse \\%https://www.kernel.org/doc/man-pages/."