Debian Codegraph @

po/es/man2/readlink.2.po

raw
1 # Spanish translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Gerardo Aburruzaga García <[email protected]>, 1998.
5 # Juan Piernas <[email protected]>, 1998.
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: manpages-l10n\n"
9 "POT-Creation-Date: 2026-06-05 06:39+0200\n"
10 "PO-Revision-Date: 1998-04-21 19:53+0200\n"
11 "Last-Translator: Juan Piernas <[email protected]>\n"
12 "Language-Team: Spanish <[email protected]>\n"
13 "Language: es\n"
14 "MIME-Version: 1.0\n"
15 "Content-Type: text/plain; charset=UTF-8\n"
16 "Content-Transfer-Encoding: 8bit\n"
17 "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18 "X-Generator: Lokalize 20.04.1\n"
19
20 #. type: TH
21 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
22 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
23 #, fuzzy, no-wrap
24 #| msgid "readlinkat()"
25 msgid "readlink"
26 msgstr "readlinkat()"
27
28 #. type: TH
29 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
30 #: opensuse-tumbleweed
31 #, no-wrap
32 msgid "2026-02-08"
33 msgstr "8 Febrero 2026"
34
35 #. type: TH
36 #: archlinux debian-unstable
37 #, fuzzy, no-wrap
38 #| msgid "Linux man-pages 6.17"
39 msgid "Linux man-pages 6.18"
40 msgstr "Páginas de Manual de Linux 6.17"
41
42 #. type: SH
43 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
44 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
45 #, no-wrap
46 msgid "NAME"
47 msgstr "NOMBRE"
48
49 #. type: Plain text
50 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
51 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
52 msgid "readlink, readlinkat - read value of a symbolic link"
53 msgstr "readlink, readlinkat - lee el valor de un enlace simbólico"
54
55 #. type: SH
56 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
57 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
58 #, no-wrap
59 msgid "LIBRARY"
60 msgstr "BIBLIOTECA"
61
62 #. type: Plain text
63 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
64 #: opensuse-leap-16-1 opensuse-tumbleweed
65 msgid "Standard C library (I<libc>,\\ I<-lc>)"
66 msgstr "Biblioteca Estándar C (I<libc>,\\ I<-lc>)"
67
68 #. type: SH
69 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
70 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
71 #, no-wrap
72 msgid "SYNOPSIS"
73 msgstr "SINOPSIS"
74
75 #. type: Plain text
76 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
77 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
78 #, no-wrap
79 msgid "B<#include E<lt>unistd.hE<gt>>\n"
80 msgstr "B<#include E<lt>unistd.hE<gt>>\n"
81
82 #. type: Plain text
83 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
84 #: opensuse-tumbleweed
85 #, fuzzy, no-wrap
86 #| msgid "B<int readlink(const char *>I<path>B<, char *>I<buf>B<, size_t >I<bufsiz>B<);>"
87 msgid ""
88 "B<ssize_t readlink(>size_t bufsiz;\n"
89 "B< const char *restrict >I<path>B<,>\n"
90 "B< char >I<buf>B<[restrict >I<bufsiz>B<], size_t >I<bufsiz>B<);>\n"
91 msgstr "B<int readlink(const char *>I<camino>B<, char *>I<buf>B<, size_t >I<tambuf>B<);>"
92
93 #. type: Plain text
94 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
95 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
96 #, fuzzy, no-wrap
97 #| msgid ""
98 #| "B<#include E<lt>sys/types.hE<gt>> /* See NOTES */\n"
99 #| "B<#include E<lt>sys/socket.hE<gt>>\n"
100 msgid ""
101 "B<#include E<lt>fcntl.hE<gt> >/* Definition of B<AT_*> constants */\n"
102 "B<#include E<lt>unistd.hE<gt>>\n"
103 msgstr ""
104 "B<#include E<lt>sys/types.hE<gt>> /* Vea NOTAS */\n"
105 "B<#include E<lt>sys/socket.hE<gt>>\n"
106
107 #. type: Plain text
108 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
109 #: opensuse-tumbleweed
110 #, fuzzy, no-wrap
111 #| msgid "B<int readlink(const char *>I<path>B<, char *>I<buf>B<, size_t >I<bufsiz>B<);>"
112 msgid ""
113 "B<ssize_t readlinkat(>size_t bufsiz;\n"
114 "B< int >I<dirfd>B<, const char *restrict >I<path>B<,>\n"
115 "B< char >I<buf>B<[restrict >I<bufsiz>B<], size_t >I<bufsiz>B<);>\n"
116 msgstr "B<int readlink(const char *>I<camino>B<, char *>I<buf>B<, size_t >I<tambuf>B<);>"
117
118 #. type: Plain text
119 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
120 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
121 msgid ""
122 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
123 msgstr ""
124 "Requisitos de Macros de Prueba de Características para glibc (véase "
125 "B<feature_test_macros>(7)):"
126
127 #. type: Plain text
128 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
129 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
130 msgid "B<readlink>():"
131 msgstr "B<readlink>():"
132
133 #. || _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED
134 #. type: Plain text
135 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
136 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
137 #, fuzzy, no-wrap
138 #| msgid ""
139 #| " _XOPEN_SOURCE E<gt>= 500\n"
140 #| " || /* Since glibc 2.12: */ _POSIX_C_SOURCE E<gt>= 200809L\n"
141 #| " || /* Glibc E<lt>= 2.19: */ _BSD_SOURCE\n"
142 msgid ""
143 " _XOPEN_SOURCE E<gt>= 500 || _POSIX_C_SOURCE E<gt>= 200112L\n"
144 " || /* glibc E<lt>= 2.19: */ _BSD_SOURCE\n"
145 msgstr ""
146 " _XOPEN_SOURCE E<gt>= 500\n"
147 " || /* Desde glibc 2.12: */ _POSIX_C_SOURCE E<gt>= 200809L\n"
148 " || /* Glibc E<lt>= 2.19: */ _BSD_SOURCE\n"
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 "B<readlinkat>():"
154 msgstr "B<readlinkat>():"
155
156 #. type: Plain text
157 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
158 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
159 #, no-wrap
160 msgid ""
161 " Since glibc 2.10:\n"
162 " _POSIX_C_SOURCE E<gt>= 200809L\n"
163 " Before glibc 2.10:\n"
164 " _ATFILE_SOURCE\n"
165 msgstr ""
166 " Desde glibc 2.10:\n"
167 " _POSIX_C_SOURCE E<gt>= 200809L\n"
168 " Antes de glibc 2.10:\n"
169 " _ATFILE_SOURCE\n"
170
171 #. type: SH
172 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
173 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
174 #, no-wrap
175 msgid "DESCRIPTION"
176 msgstr "DESCRIPCIÓN"
177
178 #. type: Plain text
179 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
180 #: opensuse-tumbleweed
181 #, fuzzy
182 #| msgid ""
183 #| "B<readlink> places the contents of the symbolic link I<path> in the "
184 #| "buffer I<buf>, which has size I<bufsiz>. B<readlink> does not append a "
185 #| "B<NUL> character to I<buf>. It will truncate the contents (to a length "
186 #| "of I<bufsiz> characters), in case the buffer is too small to hold all of "
187 #| "the contents."
188 msgid ""
189 "B<readlink>() places the contents of the symbolic link I<path> in the "
190 "buffer I<buf>, which has size I<bufsiz>. B<readlink>() does not append a "
191 "terminating null byte to I<buf>. It will (silently) truncate the contents "
192 "(to a length of I<bufsiz> characters), in case the buffer is too small to "
193 "hold all of the contents."
194 msgstr ""
195 "B<readlink> pone los contenidos del enlace simbólico I<camino> en el búfer "
196 "I<buf>, que tiene de tamaño I<tambuf>. B<readlink> no añade un carácter "
197 "B<NUL> a I<buf>. Truncará los contenidos (hasta una longitud de I<tambuf> "
198 "caracteres), en caso de que el búfer sea demasiado pequeño para alojar todo "
199 "el contenido."
200
201 #. type: SS
202 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
203 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
204 #, no-wrap
205 msgid "readlinkat()"
206 msgstr "readlinkat()"
207
208 #. type: Plain text
209 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
210 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
211 msgid ""
212 "The B<readlinkat>() system call operates in exactly the same way as "
213 "B<readlink>(), except for the differences described here."
214 msgstr ""
215
216 #. type: Plain text
217 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
218 #: opensuse-tumbleweed
219 msgid ""
220 "If I<path> is relative, then it is interpreted relative to the directory "
221 "referred to by the file descriptor I<dirfd> (rather than relative to the "
222 "current working directory of the calling process, as is done by "
223 "B<readlink>() for a relative pathname)."
224 msgstr ""
225
226 #. type: Plain text
227 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
228 #: opensuse-tumbleweed
229 msgid ""
230 "If I<path> is relative and I<dirfd> is the special value B<AT_FDCWD>, then "
231 "I<path> is interpreted relative to the current working directory of the "
232 "calling process (like B<readlink>())."
233 msgstr ""
234
235 #. type: Plain text
236 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
237 #: opensuse-tumbleweed
238 msgid "If I<path> is absolute, then I<dirfd> is ignored."
239 msgstr ""
240
241 #. commit 65cfc6722361570bfe255698d9cd4dccaf47570d
242 #. type: Plain text
243 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
244 #: opensuse-tumbleweed
245 msgid ""
246 "Since Linux 2.6.39, I<path> can be an empty string, in which case the call "
247 "operates on the symbolic link referred to by I<dirfd> (which should have "
248 "been obtained using B<open>(2) with the B<O_PATH> and B<O_NOFOLLOW> flags)."
249 msgstr ""
250
251 #. type: Plain text
252 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
253 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
254 msgid "See B<openat>(2) for an explanation of the need for B<readlinkat>()."
255 msgstr ""
256
257 #. type: SH
258 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
259 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
260 #, no-wrap
261 msgid "RETURN VALUE"
262 msgstr "VALOR DEVUELTO"
263
264 #. type: Plain text
265 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
266 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
267 msgid ""
268 "On success, these calls return the number of bytes placed in I<buf>. (If "
269 "the returned value equals I<bufsiz>, then truncation may have occurred.) On "
270 "error, -1 is returned and I<errno> is set to indicate the error."
271 msgstr ""
272
273 #. type: SH
274 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
275 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
276 #, no-wrap
277 msgid "ERRORS"
278 msgstr "ERRORES"
279
280 #. type: TP
281 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
282 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
283 #, no-wrap
284 msgid "B<EACCES>"
285 msgstr "B<EACCES>"
286
287 #. type: Plain text
288 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
289 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
290 #, fuzzy
291 #| msgid "Search permission is denied for a component of the path prefix."
292 msgid ""
293 "Search permission is denied for a component of the path prefix. (See also "
294 "B<path_resolution>(7).)"
295 msgstr ""
296 "Se deniega el permiso de búsqueda para un componente del prefijo del camino."
297
298 #. type: TP
299 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
300 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
301 #, no-wrap
302 msgid "B<EBADF>"
303 msgstr "B<EBADF>"
304
305 #. type: Plain text
306 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
307 #: opensuse-tumbleweed
308 msgid ""
309 "(B<readlinkat>()) I<path> is relative but I<dirfd> is neither B<AT_FDCWD> "
310 "nor a valid file descriptor."
311 msgstr ""
312
313 #. type: TP
314 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
315 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
316 #, no-wrap
317 msgid "B<EFAULT>"
318 msgstr "B<EFAULT>"
319
320 #. type: Plain text
321 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
322 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
323 msgid "I<buf> extends outside the process's allocated address space."
324 msgstr ""
325 "I<buf> se extiende afuera del espacio de direcciones reservado por el "
326 "proceso."
327
328 #. type: TP
329 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
330 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
331 #, no-wrap
332 msgid "B<EINVAL>"
333 msgstr "B<EINVAL>"
334
335 #. At the glibc level, bufsiz is unsigned, so this error can only occur
336 #. if bufsiz==0. However, the in the kernel syscall, bufsiz is signed,
337 #. and this error can also occur if bufsiz < 0.
338 #. See: http://thread.gmane.org/gmane.linux.man/380
339 #. Subject: [patch 0/3] [RFC] kernel/glibc mismatch of "readlink" syscall?
340 #. type: Plain text
341 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
342 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
343 msgid "I<bufsiz> is not positive."
344 msgstr "I<tambuf> no es positivo."
345
346 #. type: Plain text
347 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
348 #: opensuse-tumbleweed
349 msgid ""
350 "The named file (i.e., the final filename component of I<path>) is not a "
351 "symbolic link."
352 msgstr ""
353
354 #. type: TP
355 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
356 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
357 #, no-wrap
358 msgid "B<EIO>"
359 msgstr "B<EIO>"
360
361 #. type: Plain text
362 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
363 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
364 msgid "An I/O error occurred while reading from the filesystem."
365 msgstr "Se ha producido un error de E/S al leer del sistema de archivos."
366
367 #. type: TP
368 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
369 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
370 #, no-wrap
371 msgid "B<ELOOP>"
372 msgstr "B<ELOOP>"
373
374 #. type: Plain text
375 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
376 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
377 msgid "Too many symbolic links were encountered in translating the pathname."
378 msgstr ""
379 "Se encontraron demasiados enlaces simbólicos al traducir el nombre del "
380 "archivo."
381
382 #. type: TP
383 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
384 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
385 #, no-wrap
386 msgid "B<ENAMETOOLONG>"
387 msgstr "B<ENAMETOOLONG>"
388
389 #. type: Plain text
390 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
391 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
392 msgid "A pathname, or a component of a pathname, was too long."
393 msgstr "El camino o un componente del camino es demasiado largo."
394
395 #. type: TP
396 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
397 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
398 #, no-wrap
399 msgid "B<ENOENT>"
400 msgstr "B<ENOENT>"
401
402 #. type: Plain text
403 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
404 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
405 msgid "The named file does not exist."
406 msgstr "El archivo especificado no existe."
407
408 #. type: TP
409 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
410 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
411 #, no-wrap
412 msgid "B<ENOMEM>"
413 msgstr "B<ENOMEM>"
414
415 #. type: Plain text
416 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
417 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
418 msgid "Insufficient kernel memory was available."
419 msgstr "No hay disponible suficiente memoria del núcleo."
420
421 #. type: TP
422 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
423 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
424 #, no-wrap
425 msgid "B<ENOTDIR>"
426 msgstr "B<ENOTDIR>"
427
428 #. type: Plain text
429 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
430 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
431 msgid "A component of the path prefix is not a directory."
432 msgstr "Un componente del prefijo de la ruta no es un directorio."
433
434 #. type: Plain text
435 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
436 #: opensuse-tumbleweed
437 msgid ""
438 "(B<readlinkat>()) I<path> is relative and I<dirfd> is a file descriptor "
439 "referring to a file other than a directory."
440 msgstr ""
441
442 #. type: SH
443 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
444 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
445 #, no-wrap
446 msgid "STANDARDS"
447 msgstr "ESTÁNDARES"
448
449 #. type: Plain text
450 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
451 #: opensuse-tumbleweed
452 msgid "POSIX.1-2024."
453 msgstr "POSIX.1-2024."
454
455 #. type: SH
456 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
457 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
458 #, no-wrap
459 msgid "HISTORY"
460 msgstr "HISTORIAL"
461
462 #. type: TP
463 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
464 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
465 #, fuzzy, no-wrap
466 #| msgid "B<readlink>():"
467 msgid "B<readlink>()"
468 msgstr "B<readlink>():"
469
470 #. type: Plain text
471 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
472 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
473 #, fuzzy
474 #| msgid "C99, POSIX.1-2001, POSIX.1-2008."
475 msgid "4.4BSD (first appeared in 4.2BSD), POSIX.1-2001, POSIX.1-2008."
476 msgstr "C99, POSIX.1-2001, POSIX.1-2008."
477
478 #. type: TP
479 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
480 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
481 #, fuzzy, no-wrap
482 #| msgid "B<readlinkat>():"
483 msgid "B<readlinkat>()"
484 msgstr "B<readlinkat>():"
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 "POSIX.1-2008. Linux 2.6.16, glibc 2.4."
490 msgstr "POSIX.1-2008. Linux 2.6.16, glibc 2.4."
491
492 #. type: Plain text
493 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
494 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
495 msgid ""
496 "Up to and including glibc 2.4, the return type of B<readlink>() was "
497 "declared as I<int>. Nowadays, the return type is declared as I<ssize_t>, as "
498 "(newly) required in POSIX.1-2001."
499 msgstr ""
500
501 #. type: SS
502 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
503 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
504 #, no-wrap
505 msgid "glibc"
506 msgstr "glibc"
507
508 #. type: Plain text
509 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
510 #: opensuse-tumbleweed
511 msgid ""
512 "On older kernels where B<readlinkat>() is unavailable, the glibc wrapper "
513 "function falls back to the use of B<readlink>(). When I<path> is relative, "
514 "glibc constructs a pathname based on the symbolic link in I</proc/self/fd> "
515 "that corresponds to the I<dirfd> argument."
516 msgstr ""
517
518 #. type: SH
519 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
520 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
521 #, no-wrap
522 msgid "NOTES"
523 msgstr "NOTAS"
524
525 #. type: Plain text
526 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
527 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
528 msgid ""
529 "Using a statically sized buffer might not provide enough room for the "
530 "symbolic link contents. The required size for the buffer can be obtained "
531 "from the I<stat.st_size> value returned by a call to B<lstat>(2) on the "
532 "link. However, the number of bytes written by B<readlink>() and "
533 "B<readlinkat>() should be checked to make sure that the size of the "
534 "symbolic link did not increase between the calls. Dynamically allocating "
535 "the buffer for B<readlink>() and B<readlinkat>() also addresses a common "
536 "portability problem when using B<PATH_MAX> for the buffer size, as this "
537 "constant is not guaranteed to be defined per POSIX if the system does not "
538 "have such limit."
539 msgstr ""
540
541 #. type: SH
542 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
543 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
544 #, no-wrap
545 msgid "EXAMPLES"
546 msgstr "EJEMPLOS"
547
548 #. type: Plain text
549 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
550 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
551 msgid ""
552 "The following program allocates the buffer needed by B<readlink>() "
553 "dynamically from the information provided by B<lstat>(2), falling back to a "
554 "buffer of size B<PATH_MAX> in cases where B<lstat>(2) reports a size of "
555 "zero."
556 msgstr ""
557
558 #. type: Plain text
559 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
560 #: opensuse-tumbleweed
561 #, no-wrap
562 msgid ""
563 "#include E<lt>limits.hE<gt>\n"
564 "#include E<lt>stdio.hE<gt>\n"
565 "#include E<lt>stdlib.hE<gt>\n"
566 "#include E<lt>sys/stat.hE<gt>\n"
567 "#include E<lt>sys/types.hE<gt>\n"
568 "#include E<lt>unistd.hE<gt>\n"
569 "\\&\n"
570 "int\n"
571 "main(int argc, char *argv[])\n"
572 "{\n"
573 " char *buf;\n"
574 " ssize_t nbytes, bufsiz;\n"
575 " struct stat sb;\n"
576 "\\&\n"
577 " if (argc != 2) {\n"
578 " fprintf(stderr, \"Usage: %s E<lt>pathE<gt>\\[rs]n\", argv[0]);\n"
579 " exit(EXIT_FAILURE);\n"
580 " }\n"
581 "\\&\n"
582 " if (lstat(argv[1], &sb) == -1) {\n"
583 " perror(\"lstat\");\n"
584 " exit(EXIT_FAILURE);\n"
585 " }\n"
586 "\\&\n"
587 " /* Add one to the link size, so that we can determine whether\n"
588 " the buffer returned by readlink() was truncated. */\n"
589 "\\&\n"
590 " bufsiz = sb.st_size + 1;\n"
591 "\\&\n"
592 " /* Some magic symlinks under (for example) /proc and /sys\n"
593 " report \\[aq]st_size\\[aq] as zero. In that case, take PATH_MAX as\n"
594 " a \"good enough\" estimate. */\n"
595 "\\&\n"
596 " if (sb.st_size == 0)\n"
597 " bufsiz = PATH_MAX;\n"
598 "\\&\n"
599 " buf = malloc(bufsiz);\n"
600 " if (buf == NULL) {\n"
601 " perror(\"malloc\");\n"
602 " exit(EXIT_FAILURE);\n"
603 " }\n"
604 "\\&\n"
605 " nbytes = readlink(argv[1], buf, bufsiz);\n"
606 " if (nbytes == -1) {\n"
607 " perror(\"readlink\");\n"
608 " exit(EXIT_FAILURE);\n"
609 " }\n"
610 "\\&\n"
611 " /* Print only \\[aq]nbytes\\[aq] of \\[aq]buf\\[aq], as it doesn't contain a terminating\n"
612 " null byte (\\[aq]\\[rs]0\\[aq]). */\n"
613 " printf(\"\\[aq]%s\\[aq] points to \\[aq]%.*s\\[aq]\\[rs]n\", argv[1], (int) nbytes, buf);\n"
614 "\\&\n"
615 " /* If the return value was equal to the buffer size, then\n"
616 " the link target was larger than expected (perhaps because the\n"
617 " target was changed between the call to lstat() and the call to\n"
618 " readlink()). Warn the user that the returned target may have\n"
619 " been truncated. */\n"
620 "\\&\n"
621 " if (nbytes == bufsiz)\n"
622 " printf(\"(Returned buffer may have been truncated)\\[rs]n\");\n"
623 "\\&\n"
624 " free(buf);\n"
625 " exit(EXIT_SUCCESS);\n"
626 "}\n"
627 msgstr ""
628
629 #. SRC END
630 #. type: SH
631 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
632 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
633 #, no-wrap
634 msgid "SEE ALSO"
635 msgstr "VÉASE TAMBIÉN"
636
637 #. type: Plain text
638 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
639 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
640 msgid ""
641 "B<readlink>(1), B<lstat>(2), B<stat>(2), B<symlink>(2), B<realpath>(3), "
642 "B<path_resolution>(7), B<symlink>(7)"
643 msgstr ""
644 "B<readlink>(1), B<lstat>(2), B<stat>(2), B<symlink>(2), B<realpath>(3), "
645 "B<path_resolution>(7), B<symlink>(7)"
646
647 #. type: TH
648 #: debian-trixie
649 #, no-wrap
650 msgid "2024-06-15"
651 msgstr "15 Junio 2024"
652
653 #. type: TH
654 #: debian-trixie
655 #, no-wrap
656 msgid "Linux man-pages 6.9.1"
657 msgstr "Páginas de Manual de Linux 6.9.1"
658
659 #. type: Plain text
660 #: debian-trixie
661 msgid "Standard C library (I<libc>, I<-lc>)"
662 msgstr "Biblioteca Estándar C (I<libc>, I<-lc>)"
663
664 #. type: Plain text
665 #: debian-trixie
666 #, fuzzy, no-wrap
667 #| msgid "B<ssize_t readlink(const char *>I<pathname>B<, char *>I<buf>B<, size_t >I<bufsiz>B<);>\n"
668 msgid ""
669 "B<ssize_t readlink(const char *restrict >I<pathname>B<, char *restrict >I<buf>B<,>\n"
670 "B< size_t >I<bufsiz>B<);>\n"
671 msgstr "B<ssize_t readlink(const char *>I<camino>B<, char *>I<buf>B<, size_t >I<tambuf>B<);>\n"
672
673 #. type: Plain text
674 #: debian-trixie
675 #, fuzzy, no-wrap
676 #| msgid "B<int readlink(const char *>I<path>B<, char *>I<buf>B<, size_t >I<bufsiz>B<);>"
677 msgid ""
678 "B<ssize_t readlinkat(int >I<dirfd>B<, const char *restrict >I<pathname>B<,>\n"
679 "B< char *restrict >I<buf>B<, size_t >I<bufsiz>B<);>\n"
680 msgstr "B<int readlink(const char *>I<camino>B<, char *>I<buf>B<, size_t >I<tambuf>B<);>"
681
682 #. type: Plain text
683 #: debian-trixie fedora-44 fedora-rawhide
684 #, fuzzy
685 #| msgid ""
686 #| "B<readlink> places the contents of the symbolic link I<path> in the "
687 #| "buffer I<buf>, which has size I<bufsiz>. B<readlink> does not append a "
688 #| "B<NUL> character to I<buf>. It will truncate the contents (to a length "
689 #| "of I<bufsiz> characters), in case the buffer is too small to hold all of "
690 #| "the contents."
691 msgid ""
692 "B<readlink>() places the contents of the symbolic link I<pathname> in the "
693 "buffer I<buf>, which has size I<bufsiz>. B<readlink>() does not append a "
694 "terminating null byte to I<buf>. It will (silently) truncate the contents "
695 "(to a length of I<bufsiz> characters), in case the buffer is too small to "
696 "hold all of the contents."
697 msgstr ""
698 "B<readlink> pone los contenidos del enlace simbólico I<camino> en el búfer "
699 "I<buf>, que tiene de tamaño I<tambuf>. B<readlink> no añade un carácter "
700 "B<NUL> a I<buf>. Truncará los contenidos (hasta una longitud de I<tambuf> "
701 "caracteres), en caso de que el búfer sea demasiado pequeño para alojar todo "
702 "el contenido."
703
704 #. type: Plain text
705 #: debian-trixie fedora-44 fedora-rawhide
706 msgid ""
707 "If the pathname given in I<pathname> is relative, then it is interpreted "
708 "relative to the directory referred to by the file descriptor I<dirfd> "
709 "(rather than relative to the current working directory of the calling "
710 "process, as is done by B<readlink>() for a relative pathname)."
711 msgstr ""
712
713 #. type: Plain text
714 #: debian-trixie fedora-44 fedora-rawhide
715 msgid ""
716 "If I<pathname> is relative and I<dirfd> is the special value B<AT_FDCWD>, "
717 "then I<pathname> is interpreted relative to the current working directory of "
718 "the calling process (like B<readlink>())."
719 msgstr ""
720
721 #. type: Plain text
722 #: debian-trixie fedora-44 fedora-rawhide
723 msgid "If I<pathname> is absolute, then I<dirfd> is ignored."
724 msgstr ""
725
726 #. commit 65cfc6722361570bfe255698d9cd4dccaf47570d
727 #. type: Plain text
728 #: debian-trixie fedora-44 fedora-rawhide
729 msgid ""
730 "Since Linux 2.6.39, I<pathname> can be an empty string, in which case the "
731 "call operates on the symbolic link referred to by I<dirfd> (which should "
732 "have been obtained using B<open>(2) with the B<O_PATH> and B<O_NOFOLLOW> "
733 "flags)."
734 msgstr ""
735
736 #. type: Plain text
737 #: debian-trixie fedora-44 fedora-rawhide
738 msgid ""
739 "(B<readlinkat>()) I<pathname> is relative but I<dirfd> is neither "
740 "B<AT_FDCWD> nor a valid file descriptor."
741 msgstr ""
742
743 #. type: Plain text
744 #: debian-trixie fedora-44 fedora-rawhide
745 msgid ""
746 "The named file (i.e., the final filename component of I<pathname>) is not a "
747 "symbolic link."
748 msgstr ""
749
750 #. type: Plain text
751 #: debian-trixie fedora-44 fedora-rawhide
752 msgid ""
753 "(B<readlinkat>()) I<pathname> is relative and I<dirfd> is a file descriptor "
754 "referring to a file other than a directory."
755 msgstr ""
756
757 #. type: Plain text
758 #: debian-trixie fedora-44 fedora-rawhide
759 msgid "POSIX.1-2008."
760 msgstr "POSIX.1-2008."
761
762 #. type: Plain text
763 #: debian-trixie fedora-44 fedora-rawhide
764 msgid ""
765 "On older kernels where B<readlinkat>() is unavailable, the glibc wrapper "
766 "function falls back to the use of B<readlink>(). When I<pathname> is a "
767 "relative pathname, glibc constructs a pathname based on the symbolic link in "
768 "I</proc/self/fd> that corresponds to the I<dirfd> argument."
769 msgstr ""
770
771 #. type: Plain text
772 #: debian-trixie fedora-44 fedora-rawhide
773 #, no-wrap
774 msgid ""
775 "#include E<lt>limits.hE<gt>\n"
776 "#include E<lt>stdio.hE<gt>\n"
777 "#include E<lt>stdlib.hE<gt>\n"
778 "#include E<lt>sys/stat.hE<gt>\n"
779 "#include E<lt>sys/types.hE<gt>\n"
780 "#include E<lt>unistd.hE<gt>\n"
781 "\\&\n"
782 "int\n"
783 "main(int argc, char *argv[])\n"
784 "{\n"
785 " char *buf;\n"
786 " ssize_t nbytes, bufsiz;\n"
787 " struct stat sb;\n"
788 "\\&\n"
789 " if (argc != 2) {\n"
790 " fprintf(stderr, \"Usage: %s E<lt>pathnameE<gt>\\[rs]n\", argv[0]);\n"
791 " exit(EXIT_FAILURE);\n"
792 " }\n"
793 "\\&\n"
794 " if (lstat(argv[1], &sb) == -1) {\n"
795 " perror(\"lstat\");\n"
796 " exit(EXIT_FAILURE);\n"
797 " }\n"
798 "\\&\n"
799 " /* Add one to the link size, so that we can determine whether\n"
800 " the buffer returned by readlink() was truncated. */\n"
801 "\\&\n"
802 " bufsiz = sb.st_size + 1;\n"
803 "\\&\n"
804 " /* Some magic symlinks under (for example) /proc and /sys\n"
805 " report \\[aq]st_size\\[aq] as zero. In that case, take PATH_MAX as\n"
806 " a \"good enough\" estimate. */\n"
807 "\\&\n"
808 " if (sb.st_size == 0)\n"
809 " bufsiz = PATH_MAX;\n"
810 "\\&\n"
811 " buf = malloc(bufsiz);\n"
812 " if (buf == NULL) {\n"
813 " perror(\"malloc\");\n"
814 " exit(EXIT_FAILURE);\n"
815 " }\n"
816 "\\&\n"
817 " nbytes = readlink(argv[1], buf, bufsiz);\n"
818 " if (nbytes == -1) {\n"
819 " perror(\"readlink\");\n"
820 " exit(EXIT_FAILURE);\n"
821 " }\n"
822 "\\&\n"
823 " /* Print only \\[aq]nbytes\\[aq] of \\[aq]buf\\[aq], as it doesn't contain a terminating\n"
824 " null byte (\\[aq]\\[rs]0\\[aq]). */\n"
825 " printf(\"\\[aq]%s\\[aq] points to \\[aq]%.*s\\[aq]\\[rs]n\", argv[1], (int) nbytes, buf);\n"
826 "\\&\n"
827 " /* If the return value was equal to the buffer size, then\n"
828 " the link target was larger than expected (perhaps because the\n"
829 " target was changed between the call to lstat() and the call to\n"
830 " readlink()). Warn the user that the returned target may have\n"
831 " been truncated. */\n"
832 "\\&\n"
833 " if (nbytes == bufsiz)\n"
834 " printf(\"(Returned buffer may have been truncated)\\[rs]n\");\n"
835 "\\&\n"
836 " free(buf);\n"
837 " exit(EXIT_SUCCESS);\n"
838 "}\n"
839 msgstr ""
840
841 #. type: TH
842 #: fedora-44 fedora-rawhide
843 #, no-wrap
844 msgid "2024-11-28"
845 msgstr "28 Noviembre 2024"
846
847 #. type: TH
848 #: fedora-44 fedora-rawhide
849 #, no-wrap
850 msgid "Linux man-pages 6.13"
851 msgstr "Páginas de Manual de Linux 6.13"
852
853 #. type: Plain text
854 #: fedora-44 fedora-rawhide
855 #, fuzzy, no-wrap
856 #| msgid "B<int readlink(const char *>I<path>B<, char *>I<buf>B<, size_t >I<bufsiz>B<);>"
857 msgid ""
858 "B<ssize_t readlink(const char *restrict >I<pathname>B<,>\n"
859 "B< char >I<buf>B<[restrict .>I<bufsiz>B<], size_t >I<bufsiz>B<);>\n"
860 msgstr "B<int readlink(const char *>I<camino>B<, char *>I<buf>B<, size_t >I<tambuf>B<);>"
861
862 #. type: Plain text
863 #: fedora-44 fedora-rawhide
864 #, fuzzy, no-wrap
865 #| msgid "B<int readlink(const char *>I<path>B<, char *>I<buf>B<, size_t >I<bufsiz>B<);>"
866 msgid ""
867 "B<ssize_t readlinkat(int >I<dirfd>B<, const char *restrict >I<pathname>B<,>\n"
868 "B< char >I<buf>B<[restrict .>I<bufsiz>B<], size_t >I<bufsiz>B<);>\n"
869 msgstr "B<int readlink(const char *>I<camino>B<, char *>I<buf>B<, size_t >I<tambuf>B<);>"
870
871 #. type: TH
872 #: mageia-cauldron
873 #, no-wrap
874 msgid "Linux man-pages 6.17"
875 msgstr "Páginas de Manual de Linux 6.17"
876
877 #. type: TH
878 #: opensuse-leap-16-1 opensuse-tumbleweed
879 #, no-wrap
880 msgid "Linux man-pages (unreleased)"
881 msgstr "Páginas de Manual de Linux (no publicadas)"