Debian Codegraph @

po/fr/man2/listxattr.2.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 # Jean-Philippe MENGUAL <[email protected]>, 2020-2024.
19 msgid ""
20 msgstr ""
21 "Project-Id-Version: manpages-l10n 4.24.0\n"
22 "POT-Creation-Date: 2026-06-05 06:29+0200\n"
23 "PO-Revision-Date: 2025-06-10 18:01+0100\n"
24 "Last-Translator: Jean-Philippe MENGUAL <[email protected]>\n"
25 "Language-Team: French <[email protected]>\n"
26 "Language: fr\n"
27 "MIME-Version: 1.0\n"
28 "Content-Type: text/plain; charset=UTF-8\n"
29 "Content-Transfer-Encoding: 8bit\n"
30 "Plural-Forms: nplurals=2; plural=n > 1;\n"
31 "X-Generator: Lokalize 22.12.3\n"
32
33 #. type: TH
34 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
35 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
36 #, no-wrap
37 msgid "listxattr"
38 msgstr "listxattr"
39
40 #. type: TH
41 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
42 #: opensuse-tumbleweed
43 #, no-wrap
44 msgid "2026-02-08"
45 msgstr "8 février 2026"
46
47 #. type: TH
48 #: archlinux debian-unstable
49 #, no-wrap
50 msgid "Linux man-pages 6.18"
51 msgstr "Pages du manuel de Linux 6.18"
52
53 #. type: SH
54 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
55 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
56 #, no-wrap
57 msgid "NAME"
58 msgstr "NOM"
59
60 #. type: Plain text
61 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
62 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
63 msgid "listxattr, llistxattr, flistxattr - list extended attribute names"
64 msgstr ""
65 "listxattr, llistxattr, flistxattr - Lister les noms des attributs étendus"
66
67 #. type: SH
68 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
69 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
70 #, no-wrap
71 msgid "LIBRARY"
72 msgstr "BIBLIOTHÈQUE"
73
74 #. type: Plain text
75 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
76 #: opensuse-leap-16-1 opensuse-tumbleweed
77 msgid "Standard C library (I<libc>,\\ I<-lc>)"
78 msgstr "Bibliothèque C standard (I<libc>,\\ I<-lc>)"
79
80 #. type: SH
81 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
82 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
83 #, no-wrap
84 msgid "SYNOPSIS"
85 msgstr "SYNOPSIS"
86
87 #. type: Plain text
88 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
89 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
90 #, no-wrap
91 msgid "B<#include E<lt>sys/xattr.hE<gt>>\n"
92 msgstr "B<#include E<lt>sys/xattr.hE<gt>>\n"
93
94 #. type: Plain text
95 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
96 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
97 #, no-wrap
98 msgid ""
99 "B<ssize_t listxattr(const char *>I<path>B<, char *_Nullable >I<list>B<, size_t >I<size>B<);>\n"
100 "B<ssize_t llistxattr(const char *>I<path>B<, char *_Nullable >I<list>B<, size_t >I<size>B<);>\n"
101 "B<ssize_t flistxattr(int >I<fd>B<, char *_Nullable >I<list>B<, size_t >I<size>B<);>\n"
102 msgstr ""
103 "B<ssize_t listxattr (const char *>I<chemin>B<, char *_Nullable >I<liste>B<, size_t >I<taille>B<);>\n"
104 "B<ssize_t llistxattr (const char *>I<chemin>B<, char *_Nullable >I<liste>B<, size_t >I<taille>B<);>\n"
105 "B<ssize_t flistxattr (int >I<descripteur>B<, char *_Nullable >I<liste>B<, size_t >I<taille>B<);>\n"
106
107 #. type: SH
108 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
109 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
110 #, no-wrap
111 msgid "DESCRIPTION"
112 msgstr "DESCRIPTION"
113
114 #. type: Plain text
115 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
116 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
117 msgid ""
118 "Extended attributes are I<name>:I<value> pairs associated with inodes "
119 "(files, directories, symbolic links, etc.). They are extensions to the "
120 "normal attributes which are associated with all inodes in the system (i.e., "
121 "the B<stat>(2) data). A complete overview of extended attributes concepts "
122 "can be found in B<xattr>(7)."
123 msgstr ""
124 "Les attributs étendus sont des paires I<nom>:I<valeur> associées aux inœuds "
125 "(fichiers, répertoires, liens symboliques, etc.). Ce sont des extensions des "
126 "attributs normaux qui sont associés avec tous les inœuds du système (les "
127 "informations renvoyées par B<stat>(2). Une description complète des concepts "
128 "d'attributs étendus est disponible dans B<xattr>(7)."
129
130 #. type: Plain text
131 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
132 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
133 msgid ""
134 "B<listxattr>() retrieves the list of extended attribute names associated "
135 "with the given I<path> in the filesystem. The retrieved list is placed in "
136 "I<list>, a caller-allocated buffer whose size (in bytes) is specified in the "
137 "argument I<size>. The list is the set of (null-terminated) names, one after "
138 "the other. Names of extended attributes to which the calling process does "
139 "not have access may be omitted from the list. The length of the attribute "
140 "name I<list> is returned."
141 msgstr ""
142 "B<listxattr>() récupère la liste des attributs étendus associés avec le "
143 "I<chemin> indiqué du système de fichier. La liste récupérée est placée dans "
144 "I<liste>, un tampon alloué par l'appelant, dont la taille (en octets) est "
145 "indiquée dans l'argument I<taille>. La liste est l'ensemble des noms "
146 "(terminés par NULL), l'un après l'autre. Les noms des attributs étendus "
147 "auxquels le processus appelant n'a pas accès peuvent être omis dans la "
148 "liste. La longueur de la I<liste> de noms d'attributs est renvoyée."
149
150 #. type: Plain text
151 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
152 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
153 msgid ""
154 "B<llistxattr>() is identical to B<listxattr>(), except in the case of a "
155 "symbolic link, where the list of names of extended attributes associated "
156 "with the link itself is retrieved, not the file that it refers to."
157 msgstr ""
158 "B<llistxattr>() est identique à B<listxattr>(), sauf dans le cas d'un lien "
159 "symbolique, où il renvoie la liste des noms des attributs associés au lien "
160 "lui-même et non au fichier auquel il se réfère."
161
162 #. type: Plain text
163 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
164 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
165 msgid ""
166 "B<flistxattr>() is identical to B<listxattr>(), only the open file referred "
167 "to by I<fd> (as returned by B<open>(2)) is interrogated in place of I<path>."
168 msgstr ""
169 "B<flistxattr>() est identique à B<listxattr>(), sauf que le fichier ouvert "
170 "associé au I<descripteur> (fourni par B<open>(2)) est interrogé à la place "
171 "du I<chemin>."
172
173 #. type: Plain text
174 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
175 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
176 msgid ""
177 "A single extended attribute I<name> is a null-terminated string. The name "
178 "includes a namespace prefix; there may be several, disjoint namespaces "
179 "associated with an individual inode."
180 msgstr ""
181 "Le I<nom> d'un attribut étendu est une simple chaîne terminée par un octet "
182 "NULL. Le nom inclut un préfixe d'espace de noms — il peut y avoir plusieurs "
183 "espaces de noms disjoints associés avec un inœud particulier."
184
185 #. type: Plain text
186 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
187 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
188 msgid ""
189 "If I<size> is specified as zero, these calls return the current size of the "
190 "list of extended attribute names (and leave I<list> unchanged). This can be "
191 "used to determine the size of the buffer that should be supplied in a "
192 "subsequent call. (But, bear in mind that there is a possibility that the "
193 "set of extended attributes may change between the two calls, so that it is "
194 "still necessary to check the return status from the second call.)"
195 msgstr ""
196 "Si I<taille> est indiqué comme étant de zéro, ces appels renvoient la taille "
197 "actuelle de la liste des noms d'attributs étendus (et ils laissent I<liste> "
198 "inchangée). Cela peut être utilisé pour déterminer la taille du tampon à "
199 "fournir dans un appel consécutif (mais il faut tenir compte qu'il est "
200 "possible que l'ensemble d'attributs étendus change entre deux appels et "
201 "qu’il est donc nécessaire de vérifier le code de retour de nouveau lors du "
202 "deuxième appel)."
203
204 #. type: SS
205 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
206 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
207 #, no-wrap
208 msgid "Example"
209 msgstr "Exemple"
210
211 #. type: Plain text
212 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
213 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
214 msgid ""
215 "The I<list> of names is returned as an unordered array of null-terminated "
216 "character strings (attribute names are separated by null bytes (\\[aq]\\"
217 "[rs]0\\[aq])), like this:"
218 msgstr ""
219 "La I<liste> des noms est renvoyée sous forme de table de chaînes de "
220 "caractères terminées par un octet NULL, sans ordre particulier, les noms des "
221 "attributs étant séparés par des octets NULL (\\[aq]\\[rs]0\\[aq])), comme "
222 "ceci\\ :"
223
224 #. type: Plain text
225 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
226 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
227 #, no-wrap
228 msgid "user.name1\\[rs]0system.name1\\[rs]0user.name2\\[rs]0\n"
229 msgstr "user.name1\\[rs]0system.name1\\[rs]0user.name2\\[rs]0\n"
230
231 #. type: Plain text
232 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
233 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
234 msgid ""
235 "Filesystems that implement POSIX ACLs using extended attributes might return "
236 "a I<list> like this:"
237 msgstr ""
238 "Les systèmes de fichiers qui implémentent les ACL (contrôles d'accès) POSIX "
239 "en utilisant les attributs étendus peuvent renvoyer une I<liste> comme celle-"
240 "ci :"
241
242 #. type: Plain text
243 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
244 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
245 #, no-wrap
246 msgid "system.posix_acl_access\\[rs]0system.posix_acl_default\\[rs]0\n"
247 msgstr "system.posix_acl_access\\[rs]0system.posix_acl_default\\[rs]0\n"
248
249 #. type: SH
250 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
251 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
252 #, no-wrap
253 msgid "RETURN VALUE"
254 msgstr "VALEUR RENVOYÉE"
255
256 #. type: Plain text
257 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
258 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
259 msgid ""
260 "On success, a nonnegative number is returned indicating the size of the "
261 "extended attribute name list. On failure, -1 is returned and I<errno> is "
262 "set to indicate the error."
263 msgstr ""
264 "S'ils réussissent, ces appels renvoient un nombre non négatif correspondant "
265 "à la taille de la liste de noms d'attributs. En cas d'échec, ils renvoient "
266 "B<-1> et I<errno> est défini pour indiquer l'erreur."
267
268 #. type: SH
269 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
270 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
271 #, no-wrap
272 msgid "ERRORS"
273 msgstr "ERREURS"
274
275 #. type: TP
276 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
277 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
278 #, no-wrap
279 msgid "B<E2BIG>"
280 msgstr "B<E2BIG>"
281
282 #. type: Plain text
283 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
284 #: opensuse-tumbleweed
285 #, fuzzy
286 #| msgid ""
287 #| "The size of the list of extended attribute names is larger than the "
288 #| "maximum size allowed; the list cannot be retrieved. This can happen on "
289 #| "filesystems that support an unlimited number of extended attributes per "
290 #| "file such as XFS, for example. See BUGS."
291 msgid ""
292 "The size of the list of extended attribute names is larger than the maximum "
293 "size allowed; the list cannot be retrieved. This can happen on filesystems "
294 "that support an unlimited number of extended attributes per file, such as "
295 "XFS, for example. See BUGS."
296 msgstr ""
297 "La taille de la liste de noms d'attributs étendus est supérieure à celle "
298 "maximale autorisée ; la liste ne peut pas être récupérée. Cela peut arriver "
299 "sur des systèmes de fichiers qui gèrent un nombre illimité d'attributs "
300 "étendus par fichier, tels que XFS par exemple. Voir BOGUES."
301
302 #. type: TP
303 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
304 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
305 #, no-wrap
306 msgid "B<ENOTSUP>"
307 msgstr "B<ENOTSUP>"
308
309 #. type: Plain text
310 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
311 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
312 msgid ""
313 "Extended attributes are not supported by the filesystem, or are disabled."
314 msgstr ""
315 "Les attributs étendus ne sont pas pris en charge par le système de fichiers "
316 "ou sont désactivés."
317
318 #. type: TP
319 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
320 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
321 #, no-wrap
322 msgid "B<ERANGE>"
323 msgstr "B<ERANGE>"
324
325 #. type: Plain text
326 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
327 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
328 msgid "The I<size> of the I<list> buffer is too small to hold the result."
329 msgstr ""
330 "La I<taille> du tampon de I<liste> est trop petite pour contenir le résultat."
331
332 #. type: Plain text
333 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
334 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
335 msgid "In addition, the errors documented in B<stat>(2) can also occur."
336 msgstr ""
337 "De plus, les erreurs documentées dans B<stat>(2) peuvent aussi survenir."
338
339 #. type: SH
340 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
341 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
342 #, no-wrap
343 msgid "STANDARDS"
344 msgstr "NORMES"
345
346 #. type: Plain text
347 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
348 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
349 msgid "Linux."
350 msgstr "Linux."
351
352 #. type: SH
353 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
354 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
355 #, no-wrap
356 msgid "HISTORY"
357 msgstr "HISTORIQUE"
358
359 #. .SH AUTHORS
360 #. Andreas Gruenbacher,
361 #. .RI < [email protected] >
362 #. and the SGI XFS development team,
363 #. .RI < [email protected] >.
364 #. Please send any bug reports or comments to these addresses.
365 #. type: Plain text
366 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
367 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
368 msgid "Linux 2.4, glibc 2.3."
369 msgstr "Linux 2.4, glibc 2.3."
370
371 #. type: SH
372 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
373 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
374 #, no-wrap
375 msgid "BUGS"
376 msgstr "BOGUES"
377
378 #. The xattr(7) page refers to this text:
379 #. type: Plain text
380 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
381 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
382 msgid ""
383 "As noted in B<xattr>(7), the VFS imposes a limit of 64\\ kB on the size of "
384 "the extended attribute name list returned by B<listxattr>(). If the total "
385 "size of attribute names attached to a file exceeds this limit, it is no "
386 "longer possible to retrieve the list of attribute names."
387 msgstr ""
388 "Comme indiqué dans B<xattr>(7), le VFS impose une limite de 64 Ko comme "
389 "taille de liste de noms d'attributs étendus renvoyée par B<listxattr>(). Si "
390 "la taille totale des noms d'attributs rattachés à un fichier dépasse cette "
391 "limite, il n'est plus possible de récupérer la liste des noms d'attributs."
392
393 #. type: SH
394 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
395 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
396 #, no-wrap
397 msgid "EXAMPLES"
398 msgstr "EXEMPLES"
399
400 #. type: Plain text
401 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
402 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
403 msgid ""
404 "The following program demonstrates the usage of B<listxattr>() and "
405 "B<getxattr>(2). For the file whose pathname is provided as a command-line "
406 "argument, it lists all extended file attributes and their values."
407 msgstr ""
408 "Le programme suivant montre l'utilisation de B<listxattr>() et de "
409 "B<getxattr>(2). Pour le fichier dont le chemin est fourni en paramètre de la "
410 "ligne de commande, il liste tous les attributs de fichier étendus et leur "
411 "valeur."
412
413 #. type: Plain text
414 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
415 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
416 msgid ""
417 "To keep the code simple, the program assumes that attribute keys and values "
418 "are constant during the execution of the program. A production program "
419 "should expect and handle changes during execution of the program. For "
420 "example, the number of bytes required for attribute keys might increase "
421 "between the two calls to B<listxattr>(). An application could handle this "
422 "possibility using a loop that retries the call (perhaps up to a "
423 "predetermined maximum number of attempts) with a larger buffer each time it "
424 "fails with the error B<ERANGE>. Calls to B<getxattr>(2) could be handled "
425 "similarly."
426 msgstr ""
427 "Pour garder un code simple, le programme suppose que les clés et les valeurs "
428 "des attributs sont constantes pendant l'exécution du programme. Un programme "
429 "réel devrait prévoir et gérer des changements pendant son exécution. Par "
430 "exemple, le nombre d'octets requis pour les clés d'attributs peut augmenter "
431 "entre les deux appels à B<listxattr>(). Une application pourrait gérer cette "
432 "éventualité en utilisant une boucle qui retente l'appel (peut-être un nombre "
433 "prédéterminé de fois) avec un tampon plus gros à chaque fois qu'il échoue "
434 "avec l'erreur B<ERANGE>. Les appels B<getxattr>(2) pourraient être gérés de "
435 "la même manière."
436
437 #. type: Plain text
438 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
439 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
440 msgid ""
441 "The following output was recorded by first creating a file, setting some "
442 "extended file attributes, and then listing the attributes with the example "
443 "program."
444 msgstr ""
445 "La sortie suivante a été enregistrée lors de la première création du "
446 "fichier, où certains attributs étendus ont été positionnés, puis les "
447 "attributs sont listés avec cet exemple de programme."
448
449 #. type: SS
450 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
451 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
452 #, no-wrap
453 msgid "Example output"
454 msgstr "Sortie de l’exemple"
455
456 #. type: Plain text
457 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
458 #: opensuse-tumbleweed
459 #, no-wrap
460 msgid ""
461 "$B< touch /tmp/foo>;\n"
462 "$B< setfattr -n user.fred -v chocolate /tmp/foo>;\n"
463 "$B< setfattr -n user.frieda -v bar /tmp/foo>;\n"
464 "$B< setfattr -n user.empty /tmp/foo>;\n"
465 "$B< ./listxattr /tmp/foo>;\n"
466 "user.fred: chocolate\n"
467 "user.frieda: bar\n"
468 "user.empty: E<lt>no valueE<gt>\n"
469 msgstr ""
470 "$B< touch /tmp/foo>;\n"
471 "$B< setfattr -n user.fred -v chocolate /tmp/foo>;\n"
472 "$B< setfattr -n user.frieda -v bar /tmp/foo>;\n"
473 "$B< setfattr -n user.empty /tmp/foo>;\n"
474 "$B< ./listxattr /tmp/foo>;\n"
475 "user.fred: chocolate\n"
476 "user.frieda: bar\n"
477 "user.empty: E<lt>no valueE<gt>\n"
478
479 #. type: SS
480 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
481 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
482 #, no-wrap
483 msgid "Program source (listxattr.c)"
484 msgstr "Source du programme (listxattr.c)"
485
486 #. type: Plain text
487 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
488 #: opensuse-tumbleweed
489 #, fuzzy, no-wrap
490 #| msgid ""
491 #| "#include E<lt>stdio.hE<gt>\n"
492 #| "#include E<lt>stdlib.hE<gt>\n"
493 #| "#include E<lt>string.hE<gt>\n"
494 #| "#include E<lt>sys/xattr.hE<gt>\n"
495 #| "\\&\n"
496 #| "int\n"
497 #| "main(int argc, char *argv[])\n"
498 #| "{\n"
499 #| " char *buf, *key, *val;\n"
500 #| " ssize_t buflen, keylen, vallen;\n"
501 #| "\\&\n"
502 #| " if (argc != 2) {\n"
503 #| " fprintf(stderr, \"Usage: %s path\\[rs]n\", argv[0]);\n"
504 #| " exit(EXIT_FAILURE);\n"
505 #| " }\n"
506 #| "\\&\n"
507 #| " /*\n"
508 #| " * Determine the length of the buffer needed.\n"
509 #| " */\n"
510 #| " buflen = listxattr(argv[1], NULL, 0);\n"
511 #| " if (buflen == -1) {\n"
512 #| " perror(\"listxattr\");\n"
513 #| " exit(EXIT_FAILURE);\n"
514 #| " }\n"
515 #| " if (buflen == 0) {\n"
516 #| " printf(\"%s has no attributes.\\[rs]n\", argv[1]);\n"
517 #| " exit(EXIT_SUCCESS);\n"
518 #| " }\n"
519 #| "\\&\n"
520 #| " /*\n"
521 #| " * Allocate the buffer.\n"
522 #| " */\n"
523 #| " buf = malloc(buflen);\n"
524 #| " if (buf == NULL) {\n"
525 #| " perror(\"malloc\");\n"
526 #| " exit(EXIT_FAILURE);\n"
527 #| " }\n"
528 #| "\\&\n"
529 #| " /*\n"
530 #| " * Copy the list of attribute keys to the buffer.\n"
531 #| " */\n"
532 #| " buflen = listxattr(argv[1], buf, buflen);\n"
533 #| " if (buflen == -1) {\n"
534 #| " perror(\"listxattr\");\n"
535 #| " exit(EXIT_FAILURE);\n"
536 #| " }\n"
537 #| "\\&\n"
538 #| " /*\n"
539 #| " * Loop over the list of zero terminated strings with the\n"
540 #| " * attribute keys. Use the remaining buffer length to determine\n"
541 #| " * the end of the list.\n"
542 #| " */\n"
543 #| " key = buf;\n"
544 #| " while (buflen E<gt> 0) {\n"
545 #| "\\&\n"
546 #| " /*\n"
547 #| " * Output attribute key.\n"
548 #| " */\n"
549 #| " printf(\"%s: \", key);\n"
550 #| "\\&\n"
551 #| " /*\n"
552 #| " * Determine length of the value.\n"
553 #| " */\n"
554 #| " vallen = getxattr(argv[1], key, NULL, 0);\n"
555 #| " if (vallen == -1)\n"
556 #| " perror(\"getxattr\");\n"
557 #| "\\&\n"
558 #| " if (vallen E<gt> 0) {\n"
559 #| "\\&\n"
560 #| " /*\n"
561 #| " * Allocate value buffer.\n"
562 #| " * One extra byte is needed to append 0x00.\n"
563 #| " */\n"
564 #| " val = malloc(vallen + 1);\n"
565 #| " if (val == NULL) {\n"
566 #| " perror(\"malloc\");\n"
567 #| " exit(EXIT_FAILURE);\n"
568 #| " }\n"
569 #| "\\&\n"
570 #| " /*\n"
571 #| " * Copy value to buffer.\n"
572 #| " */\n"
573 #| " vallen = getxattr(argv[1], key, val, vallen);\n"
574 #| " if (vallen == -1) {\n"
575 #| " perror(\"getxattr\");\n"
576 #| " } else {\n"
577 #| " /*\n"
578 #| " * Output attribute value.\n"
579 #| " */\n"
580 #| " val[vallen] = 0;\n"
581 #| " printf(\"%s\", val);\n"
582 #| " }\n"
583 #| "\\&\n"
584 #| " free(val);\n"
585 #| " } else if (vallen == 0) {\n"
586 #| " printf(\"E<lt>no valueE<gt>\");\n"
587 #| " }\n"
588 #| "\\&\n"
589 #| " printf(\"\\[rs]n\");\n"
590 #| "\\&\n"
591 #| " /*\n"
592 #| " * Forward to next attribute key.\n"
593 #| " */\n"
594 #| " keylen = strlen(key) + 1;\n"
595 #| " buflen -= keylen;\n"
596 #| " key += keylen;\n"
597 #| " }\n"
598 #| "\\&\n"
599 #| " free(buf);\n"
600 #| " exit(EXIT_SUCCESS);\n"
601 #| "}\n"
602 msgid ""
603 "#include E<lt>stdio.hE<gt>\n"
604 "#include E<lt>stdlib.hE<gt>\n"
605 "#include E<lt>string.hE<gt>\n"
606 "#include E<lt>sys/xattr.hE<gt>\n"
607 "\\&\n"
608 "int\n"
609 "main(int argc, char *argv[])\n"
610 "{\n"
611 " char *buf, *key, *val;\n"
612 " ssize_t buflen, keylen, vallen;\n"
613 "\\&\n"
614 " if (argc != 2) {\n"
615 " fprintf(stderr, \"Usage: %s path\\[rs]n\", argv[0]);\n"
616 " exit(EXIT_FAILURE);\n"
617 " }\n"
618 "\\&\n"
619 " /*\n"
620 " * Determine the length of the buffer needed.\n"
621 " */\n"
622 " buflen = listxattr(argv[1], NULL, 0);\n"
623 " if (buflen == -1) {\n"
624 " perror(\"listxattr\");\n"
625 " exit(EXIT_FAILURE);\n"
626 " }\n"
627 " if (buflen == 0) {\n"
628 " printf(\"%s has no attributes.\\[rs]n\", argv[1]);\n"
629 " exit(EXIT_SUCCESS);\n"
630 " }\n"
631 "\\&\n"
632 " /*\n"
633 " * Allocate the buffer.\n"
634 " */\n"
635 " buf = malloc(buflen);\n"
636 " if (buf == NULL) {\n"
637 " perror(\"malloc\");\n"
638 " exit(EXIT_FAILURE);\n"
639 " }\n"
640 "\\&\n"
641 " /*\n"
642 " * Copy the list of attribute keys to the buffer.\n"
643 " */\n"
644 " buflen = listxattr(argv[1], buf, buflen);\n"
645 " if (buflen == -1) {\n"
646 " perror(\"listxattr\");\n"
647 " exit(EXIT_FAILURE);\n"
648 " }\n"
649 "\\&\n"
650 " /*\n"
651 " * Loop over the list of zero terminated strings with the\n"
652 " * attribute keys. Use the remaining buffer length to determine\n"
653 " * the end of the list.\n"
654 " */\n"
655 " key = buf;\n"
656 " while (buflen E<gt> 0) {\n"
657 "\\&\n"
658 " /*\n"
659 " * Output attribute key.\n"
660 " */\n"
661 " printf(\"%s: \", key);\n"
662 "\\&\n"
663 " /*\n"
664 " * Determine length of the value.\n"
665 " */\n"
666 " vallen = getxattr(argv[1], key, NULL, 0);\n"
667 " if (vallen == -1)\n"
668 " perror(\"getxattr\");\n"
669 "\\&\n"
670 " if (vallen E<gt> 0) {\n"
671 "\\&\n"
672 " /*\n"
673 " * Allocate value buffer.\n"
674 " * One extra byte is needed to append 0x00.\n"
675 " */\n"
676 " val = malloc(vallen + 1);\n"
677 " if (val == NULL) {\n"
678 " perror(\"malloc\");\n"
679 " exit(EXIT_FAILURE);\n"
680 " }\n"
681 "\\&\n"
682 " /*\n"
683 " * Copy value to buffer.\n"
684 " */\n"
685 " vallen = getxattr(argv[1], key, val, vallen);\n"
686 " if (vallen == -1) {\n"
687 " perror(\"getxattr\");\n"
688 " } else {\n"
689 " /*\n"
690 " * Output attribute value.\n"
691 " */\n"
692 " val[vallen] = 0;\n"
693 " printf(\"%s\", val);\n"
694 " }\n"
695 "\\&\n"
696 " free(val);\n"
697 " } else if (vallen == 0) {\n"
698 " printf(\"E<lt>no valueE<gt>\");\n"
699 " }\n"
700 "\\&\n"
701 " printf(\"\\[rs]n\");\n"
702 "\\&\n"
703 " /*\n"
704 " * Forward to next attribute key.\n"
705 " */\n"
706 " keylen = strlen(key) + 1;\n"
707 " buflen -= keylen;\n"
708 " key += keylen;\n"
709 " }\n"
710 "\\&\n"
711 " free(buf);\n"
712 " exit(EXIT_SUCCESS);\n"
713 "}\n"
714 msgstr ""
715 "#include E<lt>stdio.hE<gt>\n"
716 "#include E<lt>stdlib.hE<gt>\n"
717 "#include E<lt>string.hE<gt>\n"
718 "#include E<lt>sys/xattr.hE<gt>\n"
719 "\\&\n"
720 "int\n"
721 "main(int argc, char *argv[])\n"
722 "{\n"
723 " char *buf, *key, *val;\n"
724 " ssize_t buflen, keylen, vallen;\n"
725 "\\&\n"
726 " if (argc != 2) {\n"
727 " fprintf(stderr, \"Usage : %s path\\[rs]n\", argv[0]);\n"
728 " exit(EXIT_FAILURE);\n"
729 " }\n"
730 "\\&\n"
731 " /*\n"
732 " * Déterminer la taille du tampon nécessaire.\n"
733 " */\n"
734 " buflen = listxattr(argv[1], NULL, 0);\n"
735 " if (buflen == -1) {\n"
736 " perror(\"listxattr\");\n"
737 " exit(EXIT_FAILURE);\n"
738 " }\n"
739 " if (buflen == 0) {\n"
740 " printf(\"%s n'a pas d'attributs.\\[rs]n\", argv[1]);\n"
741 " exit(EXIT_SUCCESS);\n"
742 " }\n"
743 "\\&\n"
744 " /*\n"
745 " * Allouer le tampon.\n"
746 " */\n"
747 " buf = malloc(buflen);\n"
748 " if (buf == NULL) {\n"
749 " perror(\"malloc\");\n"
750 " exit(EXIT_FAILURE);\n"
751 " }\n"
752 "\\&\n"
753 " /*\n"
754 " * Copier la liste des clés d'attributs dans le tampon.\n"
755 " */\n"
756 " buflen = listxattr(argv[1], buf, buflen);\n"
757 " if (buflen == -1) {\n"
758 " perror(\"listxattr\");\n"
759 " exit(EXIT_FAILURE);\n"
760 " }\n"
761 "\\&\n"
762 " /*\n"
763 " * Boucle dans la liste de chaînes finies par zéro avec les clés\n"
764 " * d'attribut. Utiliser le reste de la taille du tampon pour \n"
765 " * déterminer la fin de la liste.\n"
766 " */\n"
767 " key = buf;\n"
768 " while (buflen E<gt> 0) {\n"
769 "\\&\n"
770 " /*\n"
771 " * Afficher la clé d'attribut.\n"
772 " */\n"
773 " printf(\"%s: \", key);\n"
774 "\\&\n"
775 " /*\n"
776 " * Déterminer la longueur de la valeur.\n"
777 " */\n"
778 " vallen = getxattr(argv[1], key, NULL, 0);\n"
779 " if (vallen == -1)\n"
780 " perror(\"getxattr\");\n"
781 "\\&\n"
782 " if (vallen E<gt> 0) {\n"
783 "\\&\n"
784 " /*\n"
785 " * Allouer des tampons de valeur.\n"
786 " * Un octet supplémentaire est nécessaire pour compléter 0x00.\n"
787 " */\n"
788 " val = malloc(vallen + 1);\n"
789 " if (val == NULL) {\n"
790 " perror(\"malloc\");\n"
791 " exit(EXIT_FAILURE);\n"
792 " }\n"
793 "\\&\n"
794 " /*\n"
795 " * Copier la valeur dans le tampon.\n"
796 " */\n"
797 " vallen = getxattr(argv[1], key, val, vallen);\n"
798 " if (vallen == -1) {\n"
799 " perror(\"getxattr\");\n"
800 " } else {\n"
801 " /*\n"
802 " * Afficher la valeur de l'attribut.\n"
803 " */\n"
804 " val[vallen] = 0;\n"
805 " printf(\"%s\", val);\n"
806 " }\n"
807 "\\&\n"
808 " free(val);\n"
809 " } else if (vallen == 0) {\n"
810 " printf(\"E<lt>pas de valeurE<gt>\");\n"
811 " }\n"
812 "\\&\n"
813 " printf(\"\\[rs]n\");\n"
814 "\\&\n"
815 " /*\n"
816 " * Faire suivre à la prochaine clé d'attribut.\n"
817 " */\n"
818 " keylen = strlen(key) + 1;\n"
819 " buflen -= keylen;\n"
820 " key += keylen;\n"
821 " }\n"
822 "\\&\n"
823 " free(buf);\n"
824 " exit(EXIT_SUCCESS);\n"
825 "}\n"
826
827 #. SRC END
828 #. type: SH
829 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
830 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
831 #, no-wrap
832 msgid "SEE ALSO"
833 msgstr "VOIR AUSSI"
834
835 #. type: Plain text
836 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
837 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
838 msgid ""
839 "B<getfattr>(1), B<setfattr>(1), B<getxattr>(2), B<open>(2), "
840 "B<removexattr>(2), B<setxattr>(2), B<stat>(2), B<symlink>(7), B<xattr>(7)"
841 msgstr ""
842 "B<getfattr>(1), B<setfattr>(1), B<getxattr>(2), B<open>(2), "
843 "B<removexattr>(2), B<setxattr>(2), B<stat>(2), B<symlink>(7), B<xattr>(7)"
844
845 #. type: TH
846 #: debian-trixie
847 #, no-wrap
848 msgid "2024-06-15"
849 msgstr "15 juin 2024"
850
851 #. type: TH
852 #: debian-trixie
853 #, no-wrap
854 msgid "Linux man-pages 6.9.1"
855 msgstr "Pages du manuel de Linux 6.9.1"
856
857 #. type: Plain text
858 #: debian-trixie
859 msgid "Standard C library (I<libc>, I<-lc>)"
860 msgstr "Bibliothèque C standard (I<libc>, I<-lc>)"
861
862 #. type: Plain text
863 #: debian-trixie fedora-44 fedora-rawhide
864 msgid ""
865 "The size of the list of extended attribute names is larger than the maximum "
866 "size allowed; the list cannot be retrieved. This can happen on filesystems "
867 "that support an unlimited number of extended attributes per file such as "
868 "XFS, for example. See BUGS."
869 msgstr ""
870 "La taille de la liste de noms d'attributs étendus est supérieure à celle "
871 "maximale autorisée ; la liste ne peut pas être récupérée. Cela peut arriver "
872 "sur des systèmes de fichiers qui gèrent un nombre illimité d'attributs "
873 "étendus par fichier, tels que XFS par exemple. Voir BOGUES."
874
875 #. type: Plain text
876 #: debian-trixie fedora-44 fedora-rawhide
877 #, no-wrap
878 msgid ""
879 "$ B<touch /tmp/foo>\n"
880 "$ B<setfattr -n user.fred -v chocolate /tmp/foo>\n"
881 "$ B<setfattr -n user.frieda -v bar /tmp/foo>\n"
882 "$ B<setfattr -n user.empty /tmp/foo>\n"
883 "$ B<./listxattr /tmp/foo>\n"
884 "user.fred: chocolate\n"
885 "user.frieda: bar\n"
886 "user.empty: E<lt>no valueE<gt>\n"
887 msgstr ""
888 "$ B<touch /tmp/foo>\n"
889 "$ B<setfattr -n user.fred -v chocolate /tmp/foo>\n"
890 "$ B<setfattr -n user.frieda -v bar /tmp/foo>\n"
891 "$ B<setfattr -n user.empty /tmp/foo>\n"
892 "$ B<./listxattr /tmp/foo>\n"
893 "user.fred: chocolate\n"
894 "user.frieda: bar\n"
895 "user.empty: E<lt>no valueE<gt>\n"
896
897 #. type: Plain text
898 #: debian-trixie fedora-44 fedora-rawhide
899 #, no-wrap
900 msgid ""
901 "#include E<lt>stdio.hE<gt>\n"
902 "#include E<lt>stdlib.hE<gt>\n"
903 "#include E<lt>string.hE<gt>\n"
904 "#include E<lt>sys/xattr.hE<gt>\n"
905 "\\&\n"
906 "int\n"
907 "main(int argc, char *argv[])\n"
908 "{\n"
909 " char *buf, *key, *val;\n"
910 " ssize_t buflen, keylen, vallen;\n"
911 "\\&\n"
912 " if (argc != 2) {\n"
913 " fprintf(stderr, \"Usage: %s path\\[rs]n\", argv[0]);\n"
914 " exit(EXIT_FAILURE);\n"
915 " }\n"
916 "\\&\n"
917 " /*\n"
918 " * Determine the length of the buffer needed.\n"
919 " */\n"
920 " buflen = listxattr(argv[1], NULL, 0);\n"
921 " if (buflen == -1) {\n"
922 " perror(\"listxattr\");\n"
923 " exit(EXIT_FAILURE);\n"
924 " }\n"
925 " if (buflen == 0) {\n"
926 " printf(\"%s has no attributes.\\[rs]n\", argv[1]);\n"
927 " exit(EXIT_SUCCESS);\n"
928 " }\n"
929 "\\&\n"
930 " /*\n"
931 " * Allocate the buffer.\n"
932 " */\n"
933 " buf = malloc(buflen);\n"
934 " if (buf == NULL) {\n"
935 " perror(\"malloc\");\n"
936 " exit(EXIT_FAILURE);\n"
937 " }\n"
938 "\\&\n"
939 " /*\n"
940 " * Copy the list of attribute keys to the buffer.\n"
941 " */\n"
942 " buflen = listxattr(argv[1], buf, buflen);\n"
943 " if (buflen == -1) {\n"
944 " perror(\"listxattr\");\n"
945 " exit(EXIT_FAILURE);\n"
946 " }\n"
947 "\\&\n"
948 " /*\n"
949 " * Loop over the list of zero terminated strings with the\n"
950 " * attribute keys. Use the remaining buffer length to determine\n"
951 " * the end of the list.\n"
952 " */\n"
953 " key = buf;\n"
954 " while (buflen E<gt> 0) {\n"
955 "\\&\n"
956 " /*\n"
957 " * Output attribute key.\n"
958 " */\n"
959 " printf(\"%s: \", key);\n"
960 "\\&\n"
961 " /*\n"
962 " * Determine length of the value.\n"
963 " */\n"
964 " vallen = getxattr(argv[1], key, NULL, 0);\n"
965 " if (vallen == -1)\n"
966 " perror(\"getxattr\");\n"
967 "\\&\n"
968 " if (vallen E<gt> 0) {\n"
969 "\\&\n"
970 " /*\n"
971 " * Allocate value buffer.\n"
972 " * One extra byte is needed to append 0x00.\n"
973 " */\n"
974 " val = malloc(vallen + 1);\n"
975 " if (val == NULL) {\n"
976 " perror(\"malloc\");\n"
977 " exit(EXIT_FAILURE);\n"
978 " }\n"
979 "\\&\n"
980 " /*\n"
981 " * Copy value to buffer.\n"
982 " */\n"
983 " vallen = getxattr(argv[1], key, val, vallen);\n"
984 " if (vallen == -1) {\n"
985 " perror(\"getxattr\");\n"
986 " } else {\n"
987 " /*\n"
988 " * Output attribute value.\n"
989 " */\n"
990 " val[vallen] = 0;\n"
991 " printf(\"%s\", val);\n"
992 " }\n"
993 "\\&\n"
994 " free(val);\n"
995 " } else if (vallen == 0) {\n"
996 " printf(\"E<lt>no valueE<gt>\");\n"
997 " }\n"
998 "\\&\n"
999 " printf(\"\\[rs]n\");\n"
1000 "\\&\n"
1001 " /*\n"
1002 " * Forward to next attribute key.\n"
1003 " */\n"
1004 " keylen = strlen(key) + 1;\n"
1005 " buflen -= keylen;\n"
1006 " key += keylen;\n"
1007 " }\n"
1008 "\\&\n"
1009 " free(buf);\n"
1010 " exit(EXIT_SUCCESS);\n"
1011 "}\n"
1012 msgstr ""
1013 "#include E<lt>stdio.hE<gt>\n"
1014 "#include E<lt>stdlib.hE<gt>\n"
1015 "#include E<lt>string.hE<gt>\n"
1016 "#include E<lt>sys/xattr.hE<gt>\n"
1017 "\\&\n"
1018 "int\n"
1019 "main(int argc, char *argv[])\n"
1020 "{\n"
1021 " char *buf, *key, *val;\n"
1022 " ssize_t buflen, keylen, vallen;\n"
1023 "\\&\n"
1024 " if (argc != 2) {\n"
1025 " fprintf(stderr, \"Usage : %s path\\[rs]n\", argv[0]);\n"
1026 " exit(EXIT_FAILURE);\n"
1027 " }\n"
1028 "\\&\n"
1029 " /*\n"
1030 " * Déterminer la taille du tampon nécessaire.\n"
1031 " */\n"
1032 " buflen = listxattr(argv[1], NULL, 0);\n"
1033 " if (buflen == -1) {\n"
1034 " perror(\"listxattr\");\n"
1035 " exit(EXIT_FAILURE);\n"
1036 " }\n"
1037 " if (buflen == 0) {\n"
1038 " printf(\"%s n'a pas d'attributs.\\[rs]n\", argv[1]);\n"
1039 " exit(EXIT_SUCCESS);\n"
1040 " }\n"
1041 "\\&\n"
1042 " /*\n"
1043 " * Allouer le tampon.\n"
1044 " */\n"
1045 " buf = malloc(buflen);\n"
1046 " if (buf == NULL) {\n"
1047 " perror(\"malloc\");\n"
1048 " exit(EXIT_FAILURE);\n"
1049 " }\n"
1050 "\\&\n"
1051 " /*\n"
1052 " * Copier la liste des clés d'attributs dans le tampon.\n"
1053 " */\n"
1054 " buflen = listxattr(argv[1], buf, buflen);\n"
1055 " if (buflen == -1) {\n"
1056 " perror(\"listxattr\");\n"
1057 " exit(EXIT_FAILURE);\n"
1058 " }\n"
1059 "\\&\n"
1060 " /*\n"
1061 " * Boucle dans la liste de chaînes finies par zéro avec les clés\n"
1062 " * d'attribut. Utiliser le reste de la taille du tampon pour \n"
1063 " * déterminer la fin de la liste.\n"
1064 " */\n"
1065 " key = buf;\n"
1066 " while (buflen E<gt> 0) {\n"
1067 "\\&\n"
1068 " /*\n"
1069 " * Afficher la clé d'attribut.\n"
1070 " */\n"
1071 " printf(\"%s: \", key);\n"
1072 "\\&\n"
1073 " /*\n"
1074 " * Déterminer la longueur de la valeur.\n"
1075 " */\n"
1076 " vallen = getxattr(argv[1], key, NULL, 0);\n"
1077 " if (vallen == -1)\n"
1078 " perror(\"getxattr\");\n"
1079 "\\&\n"
1080 " if (vallen E<gt> 0) {\n"
1081 "\\&\n"
1082 " /*\n"
1083 " * Allouer des tampons de valeur.\n"
1084 " * Un octet supplémentaire est nécessaire pour compléter 0x00.\n"
1085 " */\n"
1086 " val = malloc(vallen + 1);\n"
1087 " if (val == NULL) {\n"
1088 " perror(\"malloc\");\n"
1089 " exit(EXIT_FAILURE);\n"
1090 " }\n"
1091 "\\&\n"
1092 " /*\n"
1093 " * Copier la valeur dans le tampon.\n"
1094 " */\n"
1095 " vallen = getxattr(argv[1], key, val, vallen);\n"
1096 " if (vallen == -1) {\n"
1097 " perror(\"getxattr\");\n"
1098 " } else {\n"
1099 " /*\n"
1100 " * Afficher la valeur de l'attribut.\n"
1101 " */\n"
1102 " val[vallen] = 0;\n"
1103 " printf(\"%s\", val);\n"
1104 " }\n"
1105 "\\&\n"
1106 " free(val);\n"
1107 " } else if (vallen == 0) {\n"
1108 " printf(\"E<lt>pas de valeurE<gt>\");\n"
1109 " }\n"
1110 "\\&\n"
1111 " printf(\"\\[rs]n\");\n"
1112 "\\&\n"
1113 " /*\n"
1114 " * Faire suivre à la prochaine clé d'attribut.\n"
1115 " */\n"
1116 " keylen = strlen(key) + 1;\n"
1117 " buflen -= keylen;\n"
1118 " key += keylen;\n"
1119 " }\n"
1120 "\\&\n"
1121 " free(buf);\n"
1122 " exit(EXIT_SUCCESS);\n"
1123 "}\n"
1124
1125 #. type: TH
1126 #: fedora-44 fedora-rawhide
1127 #, no-wrap
1128 msgid "2024-07-23"
1129 msgstr "23 juillet 2024"
1130
1131 #. type: TH
1132 #: fedora-44 fedora-rawhide
1133 #, no-wrap
1134 msgid "Linux man-pages 6.13"
1135 msgstr "Pages du manuel de Linux 6.13"
1136
1137 #. type: TH
1138 #: mageia-cauldron
1139 #, no-wrap
1140 msgid "Linux man-pages 6.17"
1141 msgstr "Pages du manuel de Linux 6.17"
1142
1143 #. type: TH
1144 #: opensuse-leap-16-1 opensuse-tumbleweed
1145 #, no-wrap
1146 msgid "Linux man-pages (unreleased)"
1147 msgstr "Pages du manuel de Linux (non publiées)"