Debian Codegraph @

po/fr/man2/readlink.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 # Frédéric Hantrais <[email protected]>, 2013, 2014.
19 # Jean-Philippe MENGUAL <[email protected]>, 2021-2024.
20 msgid ""
21 msgstr ""
22 "Project-Id-Version: manpages-l10n 4.22.0\n"
23 "POT-Creation-Date: 2026-06-05 06:39+0200\n"
24 "PO-Revision-Date: 2024-06-02 11:07+0200\n"
25 "Last-Translator: Jean-Philippe MENGUAL <[email protected]>\n"
26 "Language-Team: French <[email protected]>\n"
27 "Language: fr\n"
28 "MIME-Version: 1.0\n"
29 "Content-Type: text/plain; charset=UTF-8\n"
30 "Content-Transfer-Encoding: 8bit\n"
31 "Plural-Forms: nplurals=2; plural=n > 1;\n"
32 "X-Generator: Lokalize 22.12.3\n"
33
34 #. type: TH
35 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
36 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
37 #, no-wrap
38 msgid "readlink"
39 msgstr "readlink"
40
41 #. type: TH
42 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
43 #: opensuse-tumbleweed
44 #, no-wrap
45 msgid "2026-02-08"
46 msgstr "8 février 2026"
47
48 #. type: TH
49 #: archlinux debian-unstable
50 #, no-wrap
51 msgid "Linux man-pages 6.18"
52 msgstr "Pages du manuel de Linux 6.18"
53
54 #. type: SH
55 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
56 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
57 #, no-wrap
58 msgid "NAME"
59 msgstr "NOM"
60
61 #. type: Plain text
62 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
63 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
64 msgid "readlink, readlinkat - read value of a symbolic link"
65 msgstr "readlink, readlinkat - Lire le contenu d'un lien symbolique"
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>unistd.hE<gt>>\n"
92 msgstr "B<#include E<lt>unistd.hE<gt>>\n"
93
94 #. type: Plain text
95 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
96 #: opensuse-tumbleweed
97 #, fuzzy, no-wrap
98 #| msgid ""
99 #| "B<ssize_t readlinkat(int >I<dirfd>B<, const char *restrict >I<pathname>B<,>\n"
100 #| "B< char >I<buf>B<[restrict .>I<bufsiz>B<], size_t >I<bufsiz>B<);>\n"
101 msgid ""
102 "B<ssize_t readlink(>size_t bufsiz;\n"
103 "B< const char *restrict >I<path>B<,>\n"
104 "B< char >I<buf>B<[restrict >I<bufsiz>B<], size_t >I<bufsiz>B<);>\n"
105 msgstr ""
106 "B<ssize_t readlinkat(int >I<dirfd>B<, const char *restrict >I<pathname>B<,>\n"
107 "B< char >I<buf>B<[restrict .>I<bufsiz>B<], size_t >I<bufsiz>B<);>\n"
108
109 #. type: Plain text
110 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
111 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
112 #, no-wrap
113 msgid ""
114 "B<#include E<lt>fcntl.hE<gt> >/* Definition of B<AT_*> constants */\n"
115 "B<#include E<lt>unistd.hE<gt>>\n"
116 msgstr ""
117 "B<#include E<lt>fcntl.hE<gt> >/* Définition des constantes B<AT_*> */\n"
118 "B<#include E<lt>unistd.hE<gt>>\n"
119
120 #. type: Plain text
121 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
122 #: opensuse-tumbleweed
123 #, fuzzy, no-wrap
124 #| msgid ""
125 #| "B<ssize_t readlinkat(int >I<dirfd>B<, const char *restrict >I<pathname>B<,>\n"
126 #| "B< char >I<buf>B<[restrict .>I<bufsiz>B<], size_t >I<bufsiz>B<);>\n"
127 msgid ""
128 "B<ssize_t readlinkat(>size_t bufsiz;\n"
129 "B< int >I<dirfd>B<, const char *restrict >I<path>B<,>\n"
130 "B< char >I<buf>B<[restrict >I<bufsiz>B<], size_t >I<bufsiz>B<);>\n"
131 msgstr ""
132 "B<ssize_t readlinkat(int >I<dirfd>B<, const char *restrict >I<pathname>B<,>\n"
133 "B< char >I<buf>B<[restrict .>I<bufsiz>B<], size_t >I<bufsiz>B<);>\n"
134
135 #. type: Plain text
136 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
137 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
138 msgid ""
139 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
140 msgstr ""
141 "Exigences de macros de test de fonctionnalités pour la glibc (consulter "
142 "B<feature_test_macros>(7)) :"
143
144 #. type: Plain text
145 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
146 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
147 msgid "B<readlink>():"
148 msgstr "B<readlink>():"
149
150 #. || _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED
151 #. type: Plain text
152 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
153 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
154 #, no-wrap
155 msgid ""
156 " _XOPEN_SOURCE E<gt>= 500 || _POSIX_C_SOURCE E<gt>= 200112L\n"
157 " || /* glibc E<lt>= 2.19: */ _BSD_SOURCE\n"
158 msgstr ""
159 " _XOPEN_SOURCE E<gt>= 500 || _POSIX_C_SOURCE E<gt>= 200112L\n"
160 " || /* glibc E<lt>= 2.19 : */ _BSD_SOURCE\n"
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 "B<readlinkat>():"
166 msgstr "B<readlinkat>():"
167
168 #. type: Plain text
169 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
170 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
171 #, no-wrap
172 msgid ""
173 " Since glibc 2.10:\n"
174 " _POSIX_C_SOURCE E<gt>= 200809L\n"
175 " Before glibc 2.10:\n"
176 " _ATFILE_SOURCE\n"
177 msgstr ""
178 " Depuis la glibc 2.10 :\n"
179 " _POSIX_C_SOURCE E<gt>= 200809L\n"
180 " avant la glibc 2.10 :\n"
181 " _ATFILE_SOURCE\n"
182
183 #. type: SH
184 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
185 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
186 #, no-wrap
187 msgid "DESCRIPTION"
188 msgstr "DESCRIPTION"
189
190 #. type: Plain text
191 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
192 #: opensuse-tumbleweed
193 #, fuzzy
194 #| msgid ""
195 #| "B<readlink>() places the contents of the symbolic link I<pathname> in "
196 #| "the buffer I<buf>, which has size I<bufsiz>. B<readlink>() does not "
197 #| "append a terminating null byte to I<buf>. It will (silently) truncate "
198 #| "the contents (to a length of I<bufsiz> characters), in case the buffer is "
199 #| "too small to hold all of the contents."
200 msgid ""
201 "B<readlink>() places the contents of the symbolic link I<path> in the "
202 "buffer I<buf>, which has size I<bufsiz>. B<readlink>() does not append a "
203 "terminating null byte to I<buf>. It will (silently) truncate the contents "
204 "(to a length of I<bufsiz> characters), in case the buffer is too small to "
205 "hold all of the contents."
206 msgstr ""
207 "B<readlink>() place le contenu du lien symbolique I<pathname> dans le tampon "
208 "I<buf>, dont la taille est I<bufsiz>. B<readlink>() n'ajoute pas d’octet "
209 "NULL final dans le tampon I<buf>. Il tronquera (silencieusement) le contenu "
210 "(à la longueur I<bufsiz>) si le tampon est trop petit pour recevoir tout le "
211 "contenu."
212
213 #. type: SS
214 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
215 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
216 #, no-wrap
217 msgid "readlinkat()"
218 msgstr "readlinkat()"
219
220 #. type: Plain text
221 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
222 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
223 msgid ""
224 "The B<readlinkat>() system call operates in exactly the same way as "
225 "B<readlink>(), except for the differences described here."
226 msgstr ""
227 "L'appel système B<readlinkat>() fonctionne exactement comme B<readlink>(), "
228 "les seules différences étant décrites ici."
229
230 #. type: Plain text
231 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
232 #: opensuse-tumbleweed
233 #, fuzzy
234 #| msgid ""
235 #| "If the pathname given in I<pathname> is relative, then it is interpreted "
236 #| "relative to the directory referred to by the file descriptor I<dirfd> "
237 #| "(rather than relative to the current working directory of the calling "
238 #| "process, as is done by B<readlink>() for a relative pathname)."
239 msgid ""
240 "If I<path> is relative, then it is interpreted relative to the directory "
241 "referred to by the file descriptor I<dirfd> (rather than relative to the "
242 "current working directory of the calling process, as is done by "
243 "B<readlink>() for a relative pathname)."
244 msgstr ""
245 "Si I<pathname> est un chemin relatif, il est interprété par rapport au "
246 "répertoire référencé par le descripteur de fichier I<dirfd> (plutôt que par "
247 "rapport au répertoire courant du processus appelant, comme cela est fait par "
248 "B<readlink>() pour un chemin relatif)."
249
250 #. type: Plain text
251 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
252 #: opensuse-tumbleweed
253 #, fuzzy
254 #| msgid ""
255 #| "If I<pathname> is relative and I<dirfd> is the special value B<AT_FDCWD>, "
256 #| "then I<pathname> is interpreted relative to the current working directory "
257 #| "of the calling process (like B<readlink>())."
258 msgid ""
259 "If I<path> is relative and I<dirfd> is the special value B<AT_FDCWD>, then "
260 "I<path> is interpreted relative to the current working directory of the "
261 "calling process (like B<readlink>())."
262 msgstr ""
263 "Si I<pathname> est relatif et si I<dirfd> a la valeur spéciale B<AT_FDCWD>, "
264 "alors I<pathname> est interprété relativement au répertoire de travail du "
265 "processus appelant, comme pour B<readlink>()."
266
267 #. type: Plain text
268 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
269 #: opensuse-tumbleweed
270 msgid "If I<path> is absolute, then I<dirfd> is ignored."
271 msgstr "Si I<path> est absolu, alors I<dirfd> est ignoré."
272
273 #. commit 65cfc6722361570bfe255698d9cd4dccaf47570d
274 #. type: Plain text
275 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
276 #: opensuse-tumbleweed
277 #, fuzzy
278 #| msgid ""
279 #| "Since Linux 2.6.39, I<pathname> can be an empty string, in which case the "
280 #| "call operates on the symbolic link referred to by I<dirfd> (which should "
281 #| "have been obtained using B<open>(2) with the B<O_PATH> and B<O_NOFOLLOW> "
282 #| "flags)."
283 msgid ""
284 "Since Linux 2.6.39, I<path> can be an empty string, in which case the call "
285 "operates on the symbolic link referred to by I<dirfd> (which should have "
286 "been obtained using B<open>(2) with the B<O_PATH> and B<O_NOFOLLOW> flags)."
287 msgstr ""
288 "Depuis Linux 2.6.39, I<pathname> peut être une chaîne vide, auquel cas "
289 "l'appel opère sur le lien symbolique référencé par I<dirfd> (qui peut avoir "
290 "été obtenu par B<open>(2) avec les drapeaux B<O_PATH> et B<O_NOFOLLOW>)."
291
292 #. type: Plain text
293 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
294 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
295 msgid "See B<openat>(2) for an explanation of the need for B<readlinkat>()."
296 msgstr ""
297 "Consultez B<openat>(2) pour une explication de la nécessité de "
298 "B<readlinkat>()."
299
300 #. type: SH
301 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
302 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
303 #, no-wrap
304 msgid "RETURN VALUE"
305 msgstr "VALEUR RENVOYÉE"
306
307 #. type: Plain text
308 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
309 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
310 msgid ""
311 "On success, these calls return the number of bytes placed in I<buf>. (If "
312 "the returned value equals I<bufsiz>, then truncation may have occurred.) On "
313 "error, -1 is returned and I<errno> is set to indicate the error."
314 msgstr ""
315 "S'il réussit, ces appels renvoient le nombre d'octets placés dans I<buf> (si "
316 "la valeur renvoyée est égale à I<bufsiz>, il se peut qu'il y ait eu une "
317 "troncature). S'il échoue, il renvoie B<-1> et écrit I<errno> pour indiquer "
318 "l'erreur."
319
320 #. type: SH
321 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
322 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
323 #, no-wrap
324 msgid "ERRORS"
325 msgstr "ERREURS"
326
327 #. type: TP
328 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
329 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
330 #, no-wrap
331 msgid "B<EACCES>"
332 msgstr "B<EACCES>"
333
334 #. type: Plain text
335 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
336 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
337 msgid ""
338 "Search permission is denied for a component of the path prefix. (See also "
339 "B<path_resolution>(7).)"
340 msgstr ""
341 "Un élément du chemin d'accès ne permet pas la recherche. (Consultez aussi "
342 "B<path_resolution>(7).)"
343
344 #. type: TP
345 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
346 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
347 #, no-wrap
348 msgid "B<EBADF>"
349 msgstr "B<EBADF>"
350
351 #. type: Plain text
352 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
353 #: opensuse-tumbleweed
354 #, fuzzy
355 #| msgid ""
356 #| "(B<readlinkat>()) I<pathname> is relative but I<dirfd> is neither "
357 #| "B<AT_FDCWD> nor a valid file descriptor."
358 msgid ""
359 "(B<readlinkat>()) I<path> is relative but I<dirfd> is neither B<AT_FDCWD> "
360 "nor a valid file descriptor."
361 msgstr ""
362 "(B<readlinkat>()) I<pathname> est relatif mais I<dirfd> n'est ni "
363 "B<AT_FDCWD>, ni un descripteur de fichier valable."
364
365 #. type: TP
366 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
367 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
368 #, no-wrap
369 msgid "B<EFAULT>"
370 msgstr "B<EFAULT>"
371
372 #. type: Plain text
373 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
374 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
375 msgid "I<buf> extends outside the process's allocated address space."
376 msgstr "I<buf> pointe en dehors de l'espace d'adressage accessible."
377
378 #. type: TP
379 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
380 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
381 #, no-wrap
382 msgid "B<EINVAL>"
383 msgstr "B<EINVAL>"
384
385 #. At the glibc level, bufsiz is unsigned, so this error can only occur
386 #. if bufsiz==0. However, the in the kernel syscall, bufsiz is signed,
387 #. and this error can also occur if bufsiz < 0.
388 #. See: http://thread.gmane.org/gmane.linux.man/380
389 #. Subject: [patch 0/3] [RFC] kernel/glibc mismatch of "readlink" syscall?
390 #. type: Plain text
391 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
392 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
393 msgid "I<bufsiz> is not positive."
394 msgstr "I<bufsiz> n'est pas un nombre positif."
395
396 #. type: Plain text
397 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
398 #: opensuse-tumbleweed
399 #, fuzzy
400 #| msgid ""
401 #| "The named file (i.e., the final filename component of I<pathname>) is "
402 #| "not a symbolic link."
403 msgid ""
404 "The named file (i.e., the final filename component of I<path>) is not a "
405 "symbolic link."
406 msgstr ""
407 "Le fichier nommé (à savoir le composant final du nom de fichier dans "
408 "I<pathname>) n'est pas un lien symbolique."
409
410 #. type: TP
411 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
412 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
413 #, no-wrap
414 msgid "B<EIO>"
415 msgstr "B<EIO>"
416
417 #. type: Plain text
418 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
419 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
420 msgid "An I/O error occurred while reading from the filesystem."
421 msgstr ""
422 "Une erreur d'entrée-sortie s'est produite durant la lecture du système de "
423 "fichiers."
424
425 #. type: TP
426 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
427 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
428 #, no-wrap
429 msgid "B<ELOOP>"
430 msgstr "B<ELOOP>"
431
432 #. type: Plain text
433 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
434 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
435 msgid "Too many symbolic links were encountered in translating the pathname."
436 msgstr "Trop de liens symboliques ont été rencontrés en parcourant le chemin."
437
438 #. type: TP
439 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
440 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
441 #, no-wrap
442 msgid "B<ENAMETOOLONG>"
443 msgstr "B<ENAMETOOLONG>"
444
445 #. type: Plain text
446 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
447 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
448 msgid "A pathname, or a component of a pathname, was too long."
449 msgstr ""
450 "Un nom de chemin d'accès ou l'un des composants d'un nom de chemin d'accès "
451 "est trop long."
452
453 #. type: TP
454 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
455 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
456 #, no-wrap
457 msgid "B<ENOENT>"
458 msgstr "B<ENOENT>"
459
460 #. type: Plain text
461 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
462 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
463 msgid "The named file does not exist."
464 msgstr "Le fichier indiqué n'existe pas."
465
466 #. type: TP
467 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
468 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
469 #, no-wrap
470 msgid "B<ENOMEM>"
471 msgstr "B<ENOMEM>"
472
473 #. type: Plain text
474 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
475 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
476 msgid "Insufficient kernel memory was available."
477 msgstr "La mémoire disponible du noyau n'était pas suffisante."
478
479 #. type: TP
480 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
481 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
482 #, no-wrap
483 msgid "B<ENOTDIR>"
484 msgstr "B<ENOTDIR>"
485
486 #. type: Plain text
487 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
488 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
489 msgid "A component of the path prefix is not a directory."
490 msgstr "Un élément du chemin d'accès n'est pas un répertoire."
491
492 #. type: Plain text
493 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
494 #: opensuse-tumbleweed
495 #, fuzzy
496 #| msgid ""
497 #| "(B<readlinkat>()) I<pathname> is relative and I<dirfd> is a file "
498 #| "descriptor referring to a file other than a directory."
499 msgid ""
500 "(B<readlinkat>()) I<path> is relative and I<dirfd> is a file descriptor "
501 "referring to a file other than a directory."
502 msgstr ""
503 "(B<readlinkat>()) I<pathname> est relatif et I<dirfd> est un descripteur de "
504 "fichier faisant référence à un fichier qui n'est pas un dossier."
505
506 #. type: SH
507 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
508 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
509 #, no-wrap
510 msgid "STANDARDS"
511 msgstr "NORMES"
512
513 #. type: Plain text
514 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
515 #: opensuse-tumbleweed
516 msgid "POSIX.1-2024."
517 msgstr "POSIX.1-2024."
518
519 #. type: SH
520 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
521 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
522 #, no-wrap
523 msgid "HISTORY"
524 msgstr "HISTORIQUE"
525
526 #. type: TP
527 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
528 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
529 #, no-wrap
530 msgid "B<readlink>()"
531 msgstr "B<readlink>()"
532
533 #. type: Plain text
534 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
535 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
536 msgid "4.4BSD (first appeared in 4.2BSD), POSIX.1-2001, POSIX.1-2008."
537 msgstr "4.4BSD (apparue dans 4.2BSD), POSIX.1-2001, POSIX.1-2008."
538
539 #. type: TP
540 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
541 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
542 #, no-wrap
543 msgid "B<readlinkat>()"
544 msgstr "B<readlinkat>()"
545
546 #. type: Plain text
547 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
548 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
549 msgid "POSIX.1-2008. Linux 2.6.16, glibc 2.4."
550 msgstr "POSIX.1-2008. Linux 2.6.16, glibc 2.4."
551
552 #. type: Plain text
553 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
554 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
555 msgid ""
556 "Up to and including glibc 2.4, the return type of B<readlink>() was "
557 "declared as I<int>. Nowadays, the return type is declared as I<ssize_t>, as "
558 "(newly) required in POSIX.1-2001."
559 msgstr ""
560 "Jusqu'à la glibc 2.4 incluse, le type de retour de B<readlink>() était "
561 "déclaré comme I<int>. À présent, le type de retour est déclaré comme "
562 "I<ssize_t>, ainsi que le prescrit POSIX.1-2001."
563
564 #. type: SS
565 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
566 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
567 #, no-wrap
568 msgid "glibc"
569 msgstr "glibc"
570
571 #. type: Plain text
572 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
573 #: opensuse-tumbleweed
574 #, fuzzy
575 #| msgid ""
576 #| "On older kernels where B<readlinkat>() is unavailable, the glibc wrapper "
577 #| "function falls back to the use of B<readlink>(). When I<pathname> is a "
578 #| "relative pathname, glibc constructs a pathname based on the symbolic link "
579 #| "in I</proc/self/fd> that corresponds to the I<dirfd> argument."
580 msgid ""
581 "On older kernels where B<readlinkat>() is unavailable, the glibc wrapper "
582 "function falls back to the use of B<readlink>(). When I<path> is relative, "
583 "glibc constructs a pathname based on the symbolic link in I</proc/self/fd> "
584 "that corresponds to the I<dirfd> argument."
585 msgstr ""
586 "Sur les anciens noyaux où B<readlinkat>() n'était pas disponible, la "
587 "fonction enveloppe de la glibc se rabat sur l'utilisation de B<readlink>(). "
588 "Quand I<pathname> est un chemin relatif, la glibc construit un chemin à "
589 "partir du lien symbolique dans I</proc/self/fd> correspondant au paramètre "
590 "I<dirfd>."
591
592 #. type: SH
593 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
594 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
595 #, no-wrap
596 msgid "NOTES"
597 msgstr "NOTES"
598
599 #. type: Plain text
600 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
601 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
602 msgid ""
603 "Using a statically sized buffer might not provide enough room for the "
604 "symbolic link contents. The required size for the buffer can be obtained "
605 "from the I<stat.st_size> value returned by a call to B<lstat>(2) on the "
606 "link. However, the number of bytes written by B<readlink>() and "
607 "B<readlinkat>() should be checked to make sure that the size of the "
608 "symbolic link did not increase between the calls. Dynamically allocating "
609 "the buffer for B<readlink>() and B<readlinkat>() also addresses a common "
610 "portability problem when using B<PATH_MAX> for the buffer size, as this "
611 "constant is not guaranteed to be defined per POSIX if the system does not "
612 "have such limit."
613 msgstr ""
614 "L'utilisation d'un tampon de taille statique risque de ne pas fournir assez "
615 "de place pour le contenu du lien symbolique. La taille nécessaire au tampon "
616 "peut être lue dans la valeur I<stat.st_size> renvoyée par un appel à "
617 "B<lstat>(2) sur le lien. Cependant, le nombre d'octets écrits par "
618 "B<readlink>() et par B<readlinkat>() devrait être vérifié pour s'assurer que "
619 "la taille du lien symbolique n'a pas augmenté entre les appels. L'allocation "
620 "dynamique du tampon pour B<readlink>() et pour B<readlinkat>() résout aussi "
621 "un problème habituel de portabilité si B<PATH_MAX> est utilisé comme taille "
622 "de tampon, car la définition de cette constante n'est pas garantie selon les "
623 "POSIX si le système n'a pas ce genre de limite."
624
625 #. type: SH
626 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
627 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
628 #, no-wrap
629 msgid "EXAMPLES"
630 msgstr "EXEMPLES"
631
632 #. type: Plain text
633 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
634 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
635 msgid ""
636 "The following program allocates the buffer needed by B<readlink>() "
637 "dynamically from the information provided by B<lstat>(2), falling back to a "
638 "buffer of size B<PATH_MAX> in cases where B<lstat>(2) reports a size of "
639 "zero."
640 msgstr ""
641 "Le programme suivant alloue le tampon nécessaire à B<readlink>() "
642 "dynamiquement à partir des données fournies par B<lstat>(), en se rabattant "
643 "sur un tampon de taille B<PATH_MAX> si B<lstat>(2) signale une taille de "
644 "zéro."
645
646 #. type: Plain text
647 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
648 #: opensuse-tumbleweed
649 #, fuzzy, no-wrap
650 #| msgid ""
651 #| "#include E<lt>limits.hE<gt>\n"
652 #| "#include E<lt>stdio.hE<gt>\n"
653 #| "#include E<lt>stdlib.hE<gt>\n"
654 #| "#include E<lt>sys/stat.hE<gt>\n"
655 #| "#include E<lt>sys/types.hE<gt>\n"
656 #| "#include E<lt>unistd.hE<gt>\n"
657 #| "\\&\n"
658 #| "int\n"
659 #| "main(int argc, char *argv[])\n"
660 #| "{\n"
661 #| " char *buf;\n"
662 #| " ssize_t nbytes, bufsiz;\n"
663 #| " struct stat sb;\n"
664 #| "\\&\n"
665 #| " if (argc != 2) {\n"
666 #| " fprintf(stderr, \"Usage: %s E<lt>pathnameE<gt>\\[rs]n\", argv[0]);\n"
667 #| " exit(EXIT_FAILURE);\n"
668 #| " }\n"
669 #| "\\&\n"
670 #| " if (lstat(argv[1], &sb) == -1) {\n"
671 #| " perror(\"lstat\");\n"
672 #| " exit(EXIT_FAILURE);\n"
673 #| " }\n"
674 #| "\\&\n"
675 #| " /* Add one to the link size, so that we can determine whether\n"
676 #| " the buffer returned by readlink() was truncated. */\n"
677 #| "\\&\n"
678 #| " bufsiz = sb.st_size + 1;\n"
679 #| "\\&\n"
680 #| " /* Some magic symlinks under (for example) /proc and /sys\n"
681 #| " report \\[aq]st_size\\[aq] as zero. In that case, take PATH_MAX as\n"
682 #| " a \"good enough\" estimate. */\n"
683 #| "\\&\n"
684 #| " if (sb.st_size == 0)\n"
685 #| " bufsiz = PATH_MAX;\n"
686 #| "\\&\n"
687 #| " buf = malloc(bufsiz);\n"
688 #| " if (buf == NULL) {\n"
689 #| " perror(\"malloc\");\n"
690 #| " exit(EXIT_FAILURE);\n"
691 #| " }\n"
692 #| "\\&\n"
693 #| " nbytes = readlink(argv[1], buf, bufsiz);\n"
694 #| " if (nbytes == -1) {\n"
695 #| " perror(\"readlink\");\n"
696 #| " exit(EXIT_FAILURE);\n"
697 #| " }\n"
698 #| "\\&\n"
699 #| " /* Print only \\[aq]nbytes\\[aq] of \\[aq]buf\\[aq], as it doesn't contain a terminating\n"
700 #| " null byte (\\[aq]\\[rs]0\\[aq]). */\n"
701 #| " printf(\"\\[aq]%s\\[aq] points to \\[aq]%.*s\\[aq]\\[rs]n\", argv[1], (int) nbytes, buf);\n"
702 #| "\\&\n"
703 #| " /* If the return value was equal to the buffer size, then\n"
704 #| " the link target was larger than expected (perhaps because the\n"
705 #| " target was changed between the call to lstat() and the call to\n"
706 #| " readlink()). Warn the user that the returned target may have\n"
707 #| " been truncated. */\n"
708 #| "\\&\n"
709 #| " if (nbytes == bufsiz)\n"
710 #| " printf(\"(Returned buffer may have been truncated)\\[rs]n\");\n"
711 #| "\\&\n"
712 #| " free(buf);\n"
713 #| " exit(EXIT_SUCCESS);\n"
714 #| "}\n"
715 msgid ""
716 "#include E<lt>limits.hE<gt>\n"
717 "#include E<lt>stdio.hE<gt>\n"
718 "#include E<lt>stdlib.hE<gt>\n"
719 "#include E<lt>sys/stat.hE<gt>\n"
720 "#include E<lt>sys/types.hE<gt>\n"
721 "#include E<lt>unistd.hE<gt>\n"
722 "\\&\n"
723 "int\n"
724 "main(int argc, char *argv[])\n"
725 "{\n"
726 " char *buf;\n"
727 " ssize_t nbytes, bufsiz;\n"
728 " struct stat sb;\n"
729 "\\&\n"
730 " if (argc != 2) {\n"
731 " fprintf(stderr, \"Usage: %s E<lt>pathE<gt>\\[rs]n\", argv[0]);\n"
732 " exit(EXIT_FAILURE);\n"
733 " }\n"
734 "\\&\n"
735 " if (lstat(argv[1], &sb) == -1) {\n"
736 " perror(\"lstat\");\n"
737 " exit(EXIT_FAILURE);\n"
738 " }\n"
739 "\\&\n"
740 " /* Add one to the link size, so that we can determine whether\n"
741 " the buffer returned by readlink() was truncated. */\n"
742 "\\&\n"
743 " bufsiz = sb.st_size + 1;\n"
744 "\\&\n"
745 " /* Some magic symlinks under (for example) /proc and /sys\n"
746 " report \\[aq]st_size\\[aq] as zero. In that case, take PATH_MAX as\n"
747 " a \"good enough\" estimate. */\n"
748 "\\&\n"
749 " if (sb.st_size == 0)\n"
750 " bufsiz = PATH_MAX;\n"
751 "\\&\n"
752 " buf = malloc(bufsiz);\n"
753 " if (buf == NULL) {\n"
754 " perror(\"malloc\");\n"
755 " exit(EXIT_FAILURE);\n"
756 " }\n"
757 "\\&\n"
758 " nbytes = readlink(argv[1], buf, bufsiz);\n"
759 " if (nbytes == -1) {\n"
760 " perror(\"readlink\");\n"
761 " exit(EXIT_FAILURE);\n"
762 " }\n"
763 "\\&\n"
764 " /* Print only \\[aq]nbytes\\[aq] of \\[aq]buf\\[aq], as it doesn't contain a terminating\n"
765 " null byte (\\[aq]\\[rs]0\\[aq]). */\n"
766 " printf(\"\\[aq]%s\\[aq] points to \\[aq]%.*s\\[aq]\\[rs]n\", argv[1], (int) nbytes, buf);\n"
767 "\\&\n"
768 " /* If the return value was equal to the buffer size, then\n"
769 " the link target was larger than expected (perhaps because the\n"
770 " target was changed between the call to lstat() and the call to\n"
771 " readlink()). Warn the user that the returned target may have\n"
772 " been truncated. */\n"
773 "\\&\n"
774 " if (nbytes == bufsiz)\n"
775 " printf(\"(Returned buffer may have been truncated)\\[rs]n\");\n"
776 "\\&\n"
777 " free(buf);\n"
778 " exit(EXIT_SUCCESS);\n"
779 "}\n"
780 msgstr ""
781 "#include E<lt>limits.hE<gt>\n"
782 "#include E<lt>stdio.hE<gt>\n"
783 "#include E<lt>stdlib.hE<gt>\n"
784 "#include E<lt>sys/stat.hE<gt>\n"
785 "#include E<lt>sys/types.hE<gt>\n"
786 "#include E<lt>unistd.hE<gt>\n"
787 "\\&\n"
788 "int\n"
789 "main(int argc, char *argv[])\n"
790 "{\n"
791 " char *buf;\n"
792 " ssize_t nbytes, bufsiz;\n"
793 " struct stat sb;\n"
794 "\\&\n"
795 " if (argc != 2) {\n"
796 " fprintf(stderr, \"Utilisation : %s E<lt>pathnameE<gt>\\[rs]n\", argv[0]);\n"
797 " exit(EXIT_FAILURE);\n"
798 " }\n"
799 "\\&\n"
800 " if (lstat(argv[1], &sb) == -1) {\n"
801 " perror(\"lstat\");\n"
802 " exit(EXIT_FAILURE);\n"
803 " }\n"
804 "\\&\n"
805 " /* Ajouter un à la taille du lien, pour pouvoir déterminer si le tampon\n"
806 " renvoyé par readlink() a été tronqué. */\n"
807 "\\&\n"
808 " bufsiz = sb.st_size + 1;\n"
809 "\\&\n"
810 " /* Certains liens symboliques magiques dans (par exemple) /proc et /sys\n"
811 " indiquent \\[aq]st_size\\[aq] comme zéro. Dans ce cas, prendre PATH_MAX\n"
812 " comme estimation « acceptable ». */\n"
813 "\\&\n"
814 " if (sb.st_size == 0)\n"
815 " bufsiz = PATH_MAX;\n"
816 "\\&\n"
817 " buf = malloc(bufsiz);\n"
818 " if (buf == NULL) {\n"
819 " perror(\"malloc\");\n"
820 " exit(EXIT_FAILURE);\n"
821 " }\n"
822 "\\&\n"
823 " nbytes = readlink(argv[1], buf, bufsiz);\n"
824 " if (nbytes == -1) {\n"
825 " perror(\"readlink\");\n"
826 " exit(EXIT_FAILURE);\n"
827 " }\n"
828 "\\&\n"
829 " /* Print only \\[aq]nbytes\\[aq] of \\[aq]buf\\[aq], as it doesn't contain a terminating\n"
830 " null byte (\\[aq]\\[rs]0\\[aq]). */\n"
831 " printf(\"\\[aq]%s\\[aq] pointe vers \\[aq]%.*s\\[aq]\\[rs]n\", argv[1], (int) nbytes, buf);\n"
832 "\\&\n"
833 " /* Si la valeur renvoyée était égale à la taille du tampon, la cible du\n"
834 " lien était plus grande que prévu (peut-être parce que la cible\n"
835 " a changé entre l'appel à lstat() et l'appel à readlink()).\n"
836 " Avertir l'utilisateur que la cible renvoyée peut avoir\n"
837 " été tronquée. */\n"
838 "\\&\n"
839 " if (nbytes == bufsiz)\n"
840 " printf(\"(Il se peut que le tampon renvoyé ait été tronqué)\\[rs]n\");\n"
841 "\\&\n"
842 " free(buf);\n"
843 " exit(EXIT_SUCCESS);\n"
844 "}\n"
845
846 #. SRC END
847 #. type: SH
848 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
849 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
850 #, no-wrap
851 msgid "SEE ALSO"
852 msgstr "VOIR AUSSI"
853
854 #. type: Plain text
855 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
856 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
857 msgid ""
858 "B<readlink>(1), B<lstat>(2), B<stat>(2), B<symlink>(2), B<realpath>(3), "
859 "B<path_resolution>(7), B<symlink>(7)"
860 msgstr ""
861 "B<readlink>(1), B<lstat>(2), B<stat>(2), B<symlink>(2), B<realpath>(3), "
862 "B<path_resolution>(7), B<symlink>(7)"
863
864 #. type: TH
865 #: debian-trixie
866 #, no-wrap
867 msgid "2024-06-15"
868 msgstr "15 juin 2024"
869
870 #. type: TH
871 #: debian-trixie
872 #, no-wrap
873 msgid "Linux man-pages 6.9.1"
874 msgstr "Pages du manuel de Linux 6.9.1"
875
876 #. type: Plain text
877 #: debian-trixie
878 msgid "Standard C library (I<libc>, I<-lc>)"
879 msgstr "Bibliothèque C standard (I<libc>, I<-lc>)"
880
881 #. type: Plain text
882 #: debian-trixie
883 #, no-wrap
884 msgid ""
885 "B<ssize_t readlink(const char *restrict >I<pathname>B<, char *restrict >I<buf>B<,>\n"
886 "B< size_t >I<bufsiz>B<);>\n"
887 msgstr ""
888 "B<ssize_t readlink(const char *restrict >I<pathname>B<, char *restrict >I<buf>B<,>\n"
889 "B< size_t >I<bufsiz>B<);>\n"
890
891 #. type: Plain text
892 #: debian-trixie
893 #, no-wrap
894 msgid ""
895 "B<ssize_t readlinkat(int >I<dirfd>B<, const char *restrict >I<pathname>B<,>\n"
896 "B< char *restrict >I<buf>B<, size_t >I<bufsiz>B<);>\n"
897 msgstr ""
898 "B<ssize_t readlinkat(int >I<dirfd>B<, const char *restrict >I<pathname>B<,>\n"
899 "B< char *restrict >I<buf>B<, size_t >I<bufsiz>B<);>\n"
900
901 #. type: Plain text
902 #: debian-trixie fedora-44 fedora-rawhide
903 msgid ""
904 "B<readlink>() places the contents of the symbolic link I<pathname> in the "
905 "buffer I<buf>, which has size I<bufsiz>. B<readlink>() does not append a "
906 "terminating null byte to I<buf>. It will (silently) truncate the contents "
907 "(to a length of I<bufsiz> characters), in case the buffer is too small to "
908 "hold all of the contents."
909 msgstr ""
910 "B<readlink>() place le contenu du lien symbolique I<pathname> dans le tampon "
911 "I<buf>, dont la taille est I<bufsiz>. B<readlink>() n'ajoute pas d’octet "
912 "NULL final dans le tampon I<buf>. Il tronquera (silencieusement) le contenu "
913 "(à la longueur I<bufsiz>) si le tampon est trop petit pour recevoir tout le "
914 "contenu."
915
916 #. type: Plain text
917 #: debian-trixie fedora-44 fedora-rawhide
918 msgid ""
919 "If the pathname given in I<pathname> is relative, then it is interpreted "
920 "relative to the directory referred to by the file descriptor I<dirfd> "
921 "(rather than relative to the current working directory of the calling "
922 "process, as is done by B<readlink>() for a relative pathname)."
923 msgstr ""
924 "Si I<pathname> est un chemin relatif, il est interprété par rapport au "
925 "répertoire référencé par le descripteur de fichier I<dirfd> (plutôt que par "
926 "rapport au répertoire courant du processus appelant, comme cela est fait par "
927 "B<readlink>() pour un chemin relatif)."
928
929 #. type: Plain text
930 #: debian-trixie fedora-44 fedora-rawhide
931 msgid ""
932 "If I<pathname> is relative and I<dirfd> is the special value B<AT_FDCWD>, "
933 "then I<pathname> is interpreted relative to the current working directory of "
934 "the calling process (like B<readlink>())."
935 msgstr ""
936 "Si I<pathname> est relatif et si I<dirfd> a la valeur spéciale B<AT_FDCWD>, "
937 "alors I<pathname> est interprété relativement au répertoire de travail du "
938 "processus appelant, comme pour B<readlink>()."
939
940 #. type: Plain text
941 #: debian-trixie fedora-44 fedora-rawhide
942 msgid "If I<pathname> is absolute, then I<dirfd> is ignored."
943 msgstr "Si I<pathname> est absolu, alors I<dirfd> est ignoré."
944
945 #. commit 65cfc6722361570bfe255698d9cd4dccaf47570d
946 #. type: Plain text
947 #: debian-trixie fedora-44 fedora-rawhide
948 msgid ""
949 "Since Linux 2.6.39, I<pathname> can be an empty string, in which case the "
950 "call operates on the symbolic link referred to by I<dirfd> (which should "
951 "have been obtained using B<open>(2) with the B<O_PATH> and B<O_NOFOLLOW> "
952 "flags)."
953 msgstr ""
954 "Depuis Linux 2.6.39, I<pathname> peut être une chaîne vide, auquel cas "
955 "l'appel opère sur le lien symbolique référencé par I<dirfd> (qui peut avoir "
956 "été obtenu par B<open>(2) avec les drapeaux B<O_PATH> et B<O_NOFOLLOW>)."
957
958 #. type: Plain text
959 #: debian-trixie fedora-44 fedora-rawhide
960 msgid ""
961 "(B<readlinkat>()) I<pathname> is relative but I<dirfd> is neither "
962 "B<AT_FDCWD> nor a valid file descriptor."
963 msgstr ""
964 "(B<readlinkat>()) I<pathname> est relatif mais I<dirfd> n'est ni "
965 "B<AT_FDCWD>, ni un descripteur de fichier valable."
966
967 #. type: Plain text
968 #: debian-trixie fedora-44 fedora-rawhide
969 msgid ""
970 "The named file (i.e., the final filename component of I<pathname>) is not a "
971 "symbolic link."
972 msgstr ""
973 "Le fichier nommé (à savoir le composant final du nom de fichier dans "
974 "I<pathname>) n'est pas un lien symbolique."
975
976 #. type: Plain text
977 #: debian-trixie fedora-44 fedora-rawhide
978 msgid ""
979 "(B<readlinkat>()) I<pathname> is relative and I<dirfd> is a file descriptor "
980 "referring to a file other than a directory."
981 msgstr ""
982 "(B<readlinkat>()) I<pathname> est relatif et I<dirfd> est un descripteur de "
983 "fichier faisant référence à un fichier qui n'est pas un dossier."
984
985 #. type: Plain text
986 #: debian-trixie fedora-44 fedora-rawhide
987 msgid "POSIX.1-2008."
988 msgstr "POSIX.1-2008."
989
990 #. type: Plain text
991 #: debian-trixie fedora-44 fedora-rawhide
992 msgid ""
993 "On older kernels where B<readlinkat>() is unavailable, the glibc wrapper "
994 "function falls back to the use of B<readlink>(). When I<pathname> is a "
995 "relative pathname, glibc constructs a pathname based on the symbolic link in "
996 "I</proc/self/fd> that corresponds to the I<dirfd> argument."
997 msgstr ""
998 "Sur les anciens noyaux où B<readlinkat>() n'était pas disponible, la "
999 "fonction enveloppe de la glibc se rabat sur l'utilisation de B<readlink>(). "
1000 "Quand I<pathname> est un chemin relatif, la glibc construit un chemin à "
1001 "partir du lien symbolique dans I</proc/self/fd> correspondant au paramètre "
1002 "I<dirfd>."
1003
1004 #. type: Plain text
1005 #: debian-trixie fedora-44 fedora-rawhide
1006 #, no-wrap
1007 msgid ""
1008 "#include E<lt>limits.hE<gt>\n"
1009 "#include E<lt>stdio.hE<gt>\n"
1010 "#include E<lt>stdlib.hE<gt>\n"
1011 "#include E<lt>sys/stat.hE<gt>\n"
1012 "#include E<lt>sys/types.hE<gt>\n"
1013 "#include E<lt>unistd.hE<gt>\n"
1014 "\\&\n"
1015 "int\n"
1016 "main(int argc, char *argv[])\n"
1017 "{\n"
1018 " char *buf;\n"
1019 " ssize_t nbytes, bufsiz;\n"
1020 " struct stat sb;\n"
1021 "\\&\n"
1022 " if (argc != 2) {\n"
1023 " fprintf(stderr, \"Usage: %s E<lt>pathnameE<gt>\\[rs]n\", argv[0]);\n"
1024 " exit(EXIT_FAILURE);\n"
1025 " }\n"
1026 "\\&\n"
1027 " if (lstat(argv[1], &sb) == -1) {\n"
1028 " perror(\"lstat\");\n"
1029 " exit(EXIT_FAILURE);\n"
1030 " }\n"
1031 "\\&\n"
1032 " /* Add one to the link size, so that we can determine whether\n"
1033 " the buffer returned by readlink() was truncated. */\n"
1034 "\\&\n"
1035 " bufsiz = sb.st_size + 1;\n"
1036 "\\&\n"
1037 " /* Some magic symlinks under (for example) /proc and /sys\n"
1038 " report \\[aq]st_size\\[aq] as zero. In that case, take PATH_MAX as\n"
1039 " a \"good enough\" estimate. */\n"
1040 "\\&\n"
1041 " if (sb.st_size == 0)\n"
1042 " bufsiz = PATH_MAX;\n"
1043 "\\&\n"
1044 " buf = malloc(bufsiz);\n"
1045 " if (buf == NULL) {\n"
1046 " perror(\"malloc\");\n"
1047 " exit(EXIT_FAILURE);\n"
1048 " }\n"
1049 "\\&\n"
1050 " nbytes = readlink(argv[1], buf, bufsiz);\n"
1051 " if (nbytes == -1) {\n"
1052 " perror(\"readlink\");\n"
1053 " exit(EXIT_FAILURE);\n"
1054 " }\n"
1055 "\\&\n"
1056 " /* Print only \\[aq]nbytes\\[aq] of \\[aq]buf\\[aq], as it doesn't contain a terminating\n"
1057 " null byte (\\[aq]\\[rs]0\\[aq]). */\n"
1058 " printf(\"\\[aq]%s\\[aq] points to \\[aq]%.*s\\[aq]\\[rs]n\", argv[1], (int) nbytes, buf);\n"
1059 "\\&\n"
1060 " /* If the return value was equal to the buffer size, then\n"
1061 " the link target was larger than expected (perhaps because the\n"
1062 " target was changed between the call to lstat() and the call to\n"
1063 " readlink()). Warn the user that the returned target may have\n"
1064 " been truncated. */\n"
1065 "\\&\n"
1066 " if (nbytes == bufsiz)\n"
1067 " printf(\"(Returned buffer may have been truncated)\\[rs]n\");\n"
1068 "\\&\n"
1069 " free(buf);\n"
1070 " exit(EXIT_SUCCESS);\n"
1071 "}\n"
1072 msgstr ""
1073 "#include E<lt>limits.hE<gt>\n"
1074 "#include E<lt>stdio.hE<gt>\n"
1075 "#include E<lt>stdlib.hE<gt>\n"
1076 "#include E<lt>sys/stat.hE<gt>\n"
1077 "#include E<lt>sys/types.hE<gt>\n"
1078 "#include E<lt>unistd.hE<gt>\n"
1079 "\\&\n"
1080 "int\n"
1081 "main(int argc, char *argv[])\n"
1082 "{\n"
1083 " char *buf;\n"
1084 " ssize_t nbytes, bufsiz;\n"
1085 " struct stat sb;\n"
1086 "\\&\n"
1087 " if (argc != 2) {\n"
1088 " fprintf(stderr, \"Utilisation : %s E<lt>pathnameE<gt>\\[rs]n\", argv[0]);\n"
1089 " exit(EXIT_FAILURE);\n"
1090 " }\n"
1091 "\\&\n"
1092 " if (lstat(argv[1], &sb) == -1) {\n"
1093 " perror(\"lstat\");\n"
1094 " exit(EXIT_FAILURE);\n"
1095 " }\n"
1096 "\\&\n"
1097 " /* Ajouter un à la taille du lien, pour pouvoir déterminer si le tampon\n"
1098 " renvoyé par readlink() a été tronqué. */\n"
1099 "\\&\n"
1100 " bufsiz = sb.st_size + 1;\n"
1101 "\\&\n"
1102 " /* Certains liens symboliques magiques dans (par exemple) /proc et /sys\n"
1103 " indiquent \\[aq]st_size\\[aq] comme zéro. Dans ce cas, prendre PATH_MAX\n"
1104 " comme estimation « acceptable ». */\n"
1105 "\\&\n"
1106 " if (sb.st_size == 0)\n"
1107 " bufsiz = PATH_MAX;\n"
1108 "\\&\n"
1109 " buf = malloc(bufsiz);\n"
1110 " if (buf == NULL) {\n"
1111 " perror(\"malloc\");\n"
1112 " exit(EXIT_FAILURE);\n"
1113 " }\n"
1114 "\\&\n"
1115 " nbytes = readlink(argv[1], buf, bufsiz);\n"
1116 " if (nbytes == -1) {\n"
1117 " perror(\"readlink\");\n"
1118 " exit(EXIT_FAILURE);\n"
1119 " }\n"
1120 "\\&\n"
1121 " /* Print only \\[aq]nbytes\\[aq] of \\[aq]buf\\[aq], as it doesn't contain a terminating\n"
1122 " null byte (\\[aq]\\[rs]0\\[aq]). */\n"
1123 " printf(\"\\[aq]%s\\[aq] pointe vers \\[aq]%.*s\\[aq]\\[rs]n\", argv[1], (int) nbytes, buf);\n"
1124 "\\&\n"
1125 " /* Si la valeur renvoyée était égale à la taille du tampon, la cible du\n"
1126 " lien était plus grande que prévu (peut-être parce que la cible\n"
1127 " a changé entre l'appel à lstat() et l'appel à readlink()).\n"
1128 " Avertir l'utilisateur que la cible renvoyée peut avoir\n"
1129 " été tronquée. */\n"
1130 "\\&\n"
1131 " if (nbytes == bufsiz)\n"
1132 " printf(\"(Il se peut que le tampon renvoyé ait été tronqué)\\[rs]n\");\n"
1133 "\\&\n"
1134 " free(buf);\n"
1135 " exit(EXIT_SUCCESS);\n"
1136 "}\n"
1137
1138 #. type: TH
1139 #: fedora-44 fedora-rawhide
1140 #, no-wrap
1141 msgid "2024-11-28"
1142 msgstr "28 novembre 2024"
1143
1144 #. type: TH
1145 #: fedora-44 fedora-rawhide
1146 #, no-wrap
1147 msgid "Linux man-pages 6.13"
1148 msgstr "Pages du manuel de Linux 6.13"
1149
1150 #. type: Plain text
1151 #: fedora-44 fedora-rawhide
1152 #, no-wrap
1153 msgid ""
1154 "B<ssize_t readlink(const char *restrict >I<pathname>B<,>\n"
1155 "B< char >I<buf>B<[restrict .>I<bufsiz>B<], size_t >I<bufsiz>B<);>\n"
1156 msgstr ""
1157 "B<ssize_t readlink(const char *restrict >I<pathname>B<,>\n"
1158 "B< char >I<buf>B<[restrict .>I<bufsiz>B<], size_t >I<bufsiz>B<);>\n"
1159
1160 #. type: Plain text
1161 #: fedora-44 fedora-rawhide
1162 #, no-wrap
1163 msgid ""
1164 "B<ssize_t readlinkat(int >I<dirfd>B<, const char *restrict >I<pathname>B<,>\n"
1165 "B< char >I<buf>B<[restrict .>I<bufsiz>B<], size_t >I<bufsiz>B<);>\n"
1166 msgstr ""
1167 "B<ssize_t readlinkat(int >I<dirfd>B<, const char *restrict >I<pathname>B<,>\n"
1168 "B< char >I<buf>B<[restrict .>I<bufsiz>B<], size_t >I<bufsiz>B<);>\n"
1169
1170 #. type: TH
1171 #: mageia-cauldron
1172 #, no-wrap
1173 msgid "Linux man-pages 6.17"
1174 msgstr "Pages du manuel de Linux 6.17"
1175
1176 #. type: TH
1177 #: opensuse-leap-16-1 opensuse-tumbleweed
1178 #, no-wrap
1179 msgid "Linux man-pages (unreleased)"
1180 msgstr "Pages du manuel de Linux (non publiées)"