Debian Codegraph @

po/es/man3/readdir.3.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 msgid ""
6 msgstr ""
7 "Project-Id-Version: manpages-l10n\n"
8 "POT-Creation-Date: 2026-06-05 06:39+0200\n"
9 "PO-Revision-Date: 1998-03-05 19:53+0200\n"
10 "Last-Translator: Gerardo Aburruzaga García <[email protected]>\n"
11 "Language-Team: Spanish <[email protected]>\n"
12 "Language: es\n"
13 "MIME-Version: 1.0\n"
14 "Content-Type: text/plain; charset=UTF-8\n"
15 "Content-Transfer-Encoding: 8bit\n"
16 "Plural-Forms: nplurals=2; plural=(n != 1);\n"
17 "X-Generator: Lokalize 20.04.1\n"
18
19 #. type: TH
20 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
21 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
22 #, fuzzy, no-wrap
23 #| msgid "B<readdir>()"
24 msgid "readdir"
25 msgstr "B<readdir>()"
26
27 #. type: TH
28 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
29 #: opensuse-tumbleweed
30 #, no-wrap
31 msgid "2026-02-08"
32 msgstr "8 Febrero 2026"
33
34 #. type: TH
35 #: archlinux debian-unstable
36 #, fuzzy, no-wrap
37 #| msgid "Linux man-pages 6.17"
38 msgid "Linux man-pages 6.18"
39 msgstr "Páginas de Manual de Linux 6.17"
40
41 #. type: SH
42 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
43 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
44 #, no-wrap
45 msgid "NAME"
46 msgstr "NOMBRE"
47
48 #. type: Plain text
49 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
50 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
51 msgid "readdir - read a directory"
52 msgstr "readdir - lee un directorio"
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 "LIBRARY"
59 msgstr "BIBLIOTECA"
60
61 #. type: Plain text
62 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
63 #: opensuse-leap-16-1 opensuse-tumbleweed
64 msgid "Standard C library (I<libc>,\\ I<-lc>)"
65 msgstr "Biblioteca Estándar C (I<libc>,\\ I<-lc>)"
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 "SYNOPSIS"
72 msgstr "SINOPSIS"
73
74 #. type: Plain text
75 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
76 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
77 #, no-wrap
78 msgid "B<#include E<lt>dirent.hE<gt>>\n"
79 msgstr "B<#include E<lt>dirent.hE<gt>>\n"
80
81 #. type: Plain text
82 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
83 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
84 #, no-wrap
85 msgid "B<struct dirent *readdir(DIR *>I<dirp>B<);>\n"
86 msgstr "B<struct dirent *readdir(DIR *>I<dirp>B<);>\n"
87
88 #. type: SH
89 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
90 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
91 #, no-wrap
92 msgid "DESCRIPTION"
93 msgstr "DESCRIPCIÓN"
94
95 #. type: Plain text
96 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
97 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
98 #, fuzzy
99 #| msgid ""
100 #| "The B<readdir()> function returns a pointer to a dirent structure "
101 #| "representing the next directory entry in the directory stream pointed to "
102 #| "by I<dir>. It returns NULL on reaching the end-of-file or if an error "
103 #| "occurred."
104 msgid ""
105 "The B<readdir>() function returns a pointer to a I<dirent> structure "
106 "representing the next directory entry in the directory stream pointed to by "
107 "I<dirp>. It returns NULL on reaching the end of the directory stream or if "
108 "an error occurred."
109 msgstr ""
110 "La función B<readdir()> devuelve un puntero a una estructura dirent que "
111 "representa la siguiente entrada de directorio en el flujo de directorio al "
112 "que apunte I<dir>. Devuelve NULL cuando alcanza el fin-de-fichero o si hay "
113 "un error."
114
115 #. type: Plain text
116 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
117 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
118 msgid ""
119 "In the glibc implementation, the I<dirent> structure is defined as follows:"
120 msgstr ""
121
122 #. type: Plain text
123 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
124 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
125 #, no-wrap
126 msgid ""
127 "struct dirent {\n"
128 " ino_t d_ino; /* Inode number */\n"
129 " off_t d_off; /* Not an offset; see below */\n"
130 " unsigned short d_reclen; /* Length of this record */\n"
131 " unsigned char d_type; /* Type of file; not supported\n"
132 " by all filesystem types */\n"
133 " char d_name[256]; /* Null-terminated filename */\n"
134 "};\n"
135 msgstr ""
136
137 #. type: Plain text
138 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
139 #: opensuse-tumbleweed
140 msgid ""
141 "The only fields in the I<dirent> structure that are mandated by POSIX.1 are "
142 "I<.d_name> and I<.d_ino>. The other fields are unstandardized, and not "
143 "present on all systems; see VERSIONS."
144 msgstr ""
145
146 #. type: Plain text
147 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
148 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
149 msgid "The fields of the I<dirent> structure are as follows:"
150 msgstr ""
151
152 #. type: TP
153 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
154 #: opensuse-tumbleweed
155 #, fuzzy, no-wrap
156 #| msgid "I<d_ino>"
157 msgid "I<.d_ino>"
158 msgstr "I<d_ino>"
159
160 #. type: Plain text
161 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
162 #: opensuse-tumbleweed
163 msgid ""
164 "This is the inode number of the file in the filesystem containing the "
165 "directory on which B<readdir>() was called. If the directory entry is a "
166 "mount point, then I<.d_ino> differs from I<.st_ino> returned by B<stat>(2) "
167 "on this file: I<.d_ino> is the inode number of the mount point, while "
168 "I<.st_ino> is the inode number of the root directory of the mounted "
169 "filesystem."
170 msgstr ""
171
172 #. type: TP
173 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
174 #: opensuse-tumbleweed
175 #, fuzzy, no-wrap
176 #| msgid "I<d_off>"
177 msgid "I<.d_off>"
178 msgstr "I<d_off>"
179
180 #. https://lwn.net/Articles/544298/
181 #. type: Plain text
182 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
183 #: opensuse-tumbleweed
184 msgid ""
185 "The value returned in I<.d_off> is the same as would be returned by calling "
186 "B<telldir>(3) at the current position in the directory stream. Be aware "
187 "that despite its type and name, the I<.d_off> field is seldom any kind of "
188 "directory offset on modern filesystems. Applications should treat this "
189 "field as an opaque value, making no assumptions about its contents; see also "
190 "B<telldir>(3)."
191 msgstr ""
192
193 #. type: TP
194 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
195 #: opensuse-tumbleweed
196 #, fuzzy, no-wrap
197 #| msgid "I<d_reclen>"
198 msgid "I<.d_reclen>"
199 msgstr "I<d_reclen>"
200
201 #. type: Plain text
202 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
203 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
204 msgid ""
205 "This is the size (in bytes) of the returned record. This may not match the "
206 "size of the structure definition shown above; see VERSIONS."
207 msgstr ""
208
209 #. type: TP
210 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
211 #: opensuse-tumbleweed
212 #, fuzzy, no-wrap
213 #| msgid "I<d_type>"
214 msgid "I<.d_type>"
215 msgstr "I<d_type>"
216
217 #. type: Plain text
218 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
219 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
220 msgid ""
221 "This field contains a value indicating the file type, making it possible to "
222 "avoid the expense of calling B<lstat>(2) if further actions depend on the "
223 "type of the file."
224 msgstr ""
225
226 #. type: Plain text
227 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
228 #: opensuse-tumbleweed
229 msgid ""
230 "When a suitable feature test macro is defined (B<_DEFAULT_SOURCE> since "
231 "glibc 2.19, or B<_BSD_SOURCE> on glibc 2.19 and earlier), glibc defines the "
232 "following macro constants for the value returned in I<.d_type>:"
233 msgstr ""
234
235 #. type: TP
236 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
237 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
238 #, no-wrap
239 msgid "B<DT_BLK>"
240 msgstr "B<DT_BLK>"
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 msgid "This is a block device."
246 msgstr ""
247
248 #. type: TP
249 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
250 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
251 #, no-wrap
252 msgid "B<DT_CHR>"
253 msgstr "B<DT_CHR>"
254
255 #. type: Plain text
256 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
257 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
258 msgid "This is a character device."
259 msgstr ""
260
261 #. type: TP
262 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
263 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
264 #, no-wrap
265 msgid "B<DT_DIR>"
266 msgstr "B<DT_DIR>"
267
268 #. type: Plain text
269 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
270 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
271 #, fuzzy
272 #| msgid "readdir - read a directory"
273 msgid "This is a directory."
274 msgstr "readdir - lee un directorio"
275
276 #. type: TP
277 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
278 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
279 #, no-wrap
280 msgid "B<DT_FIFO>"
281 msgstr "B<DT_FIFO>"
282
283 #. type: Plain text
284 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
285 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
286 msgid "This is a named pipe (FIFO)."
287 msgstr ""
288
289 #. type: TP
290 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
291 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
292 #, no-wrap
293 msgid "B<DT_LNK>"
294 msgstr "B<DT_LNK>"
295
296 #. type: Plain text
297 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
298 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
299 msgid "This is a symbolic link."
300 msgstr ""
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<DT_REG>"
307 msgstr "B<DT_REG>"
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 "This is a regular file."
313 msgstr ""
314
315 #. type: TP
316 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
317 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
318 #, no-wrap
319 msgid "B<DT_SOCK>"
320 msgstr "B<DT_SOCK>"
321
322 #. type: Plain text
323 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
324 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
325 msgid "This is a UNIX domain socket."
326 msgstr ""
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<DT_UNKNOWN>"
333 msgstr "B<DT_UNKNOWN>"
334
335 #. type: Plain text
336 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
337 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
338 msgid "The file type could not be determined."
339 msgstr ""
340
341 #. kernel 2.6.27
342 #. The same sentence is in getdents.2
343 #. type: Plain text
344 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
345 #: opensuse-tumbleweed
346 msgid ""
347 "Currently, only some filesystems (among them: Btrfs, ext2, ext3, and ext4) "
348 "have full support for returning the file type in I<.d_type>. All "
349 "applications must properly handle a return of B<DT_UNKNOWN>."
350 msgstr ""
351
352 #. type: TP
353 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
354 #: opensuse-tumbleweed
355 #, fuzzy, no-wrap
356 #| msgid "I<d_name>"
357 msgid "I<.d_name>"
358 msgstr "I<d_name>"
359
360 #. type: Plain text
361 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
362 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
363 msgid "This field contains the null terminated filename; see VERSIONS."
364 msgstr ""
365
366 #. type: Plain text
367 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
368 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
369 msgid ""
370 "The data returned by B<readdir>() may be overwritten by subsequent calls to "
371 "B<readdir>() for the same directory stream."
372 msgstr ""
373 "Los datos devueltos por B<readdir>() pueden ser sobreescritos por llamadas "
374 "posteriores a B<readdir>() para el mismo flujo de directorio."
375
376 #. type: SH
377 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
378 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
379 #, no-wrap
380 msgid "RETURN VALUE"
381 msgstr "VALOR DEVUELTO"
382
383 #. type: Plain text
384 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
385 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
386 msgid ""
387 "On success, B<readdir>() returns a pointer to a I<dirent> structure. (This "
388 "structure may be statically allocated; do not attempt to B<free>(3) it.)"
389 msgstr ""
390
391 #. type: Plain text
392 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
393 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
394 msgid ""
395 "If the end of the directory stream is reached, NULL is returned and I<errno> "
396 "is not changed. If an error occurs, NULL is returned and I<errno> is set to "
397 "indicate the error. To distinguish end of stream from an error, set "
398 "I<errno> to zero before calling B<readdir>() and then check the value of "
399 "I<errno> if NULL is returned."
400 msgstr ""
401
402 #. type: SH
403 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
404 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
405 #, no-wrap
406 msgid "ERRORS"
407 msgstr "ERRORES"
408
409 #. type: TP
410 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
411 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
412 #, no-wrap
413 msgid "B<EBADF>"
414 msgstr "B<EBADF>"
415
416 #. type: Plain text
417 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
418 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
419 msgid "Invalid directory stream descriptor I<dirp>."
420 msgstr "Descriptor de flujo de directorio inválido I<dirp>."
421
422 #. type: SH
423 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
424 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
425 #, no-wrap
426 msgid "ATTRIBUTES"
427 msgstr "ATRIBUTOS"
428
429 #. type: Plain text
430 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
431 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
432 msgid ""
433 "For an explanation of the terms used in this section, see B<attributes>(7)."
434 msgstr ""
435 "Para obtener una explicación de los términos usados en esta sección, véase "
436 "B<attributes>(7)."
437
438 #. type: tbl table
439 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
440 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
441 #, no-wrap
442 msgid "Interface"
443 msgstr "Interfaz"
444
445 #. type: tbl table
446 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
447 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
448 #, no-wrap
449 msgid "Attribute"
450 msgstr "Atributo"
451
452 #. type: tbl table
453 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
454 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
455 #, no-wrap
456 msgid "Value"
457 msgstr "Valor"
458
459 #. type: tbl table
460 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
461 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
462 #, no-wrap
463 msgid ".na\n"
464 msgstr ".na\n"
465
466 #. type: tbl table
467 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
468 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
469 #, no-wrap
470 msgid ".nh\n"
471 msgstr ".nh\n"
472
473 #. type: tbl table
474 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
475 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
476 #, no-wrap
477 msgid "B<readdir>()"
478 msgstr "B<readdir>()"
479
480 #. type: tbl table
481 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
482 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
483 #, no-wrap
484 msgid "Thread safety"
485 msgstr "Seguridad del hilo"
486
487 #. type: tbl table
488 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
489 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
490 #, no-wrap
491 msgid "MT-Unsafe race:dirstream"
492 msgstr ""
493
494 #. FIXME .
495 #. http://www.austingroupbugs.net/view.php?id=696
496 #. type: Plain text
497 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
498 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
499 msgid ""
500 "In the current POSIX.1 specification (POSIX.1-2008), B<readdir>() is not "
501 "required to be thread-safe. However, in modern implementations (including "
502 "the glibc implementation), concurrent calls to B<readdir>() that specify "
503 "different directory streams are thread-safe. In cases where multiple "
504 "threads must read from the same directory stream, using B<readdir>() with "
505 "external synchronization is still preferable to the use of the deprecated "
506 "B<readdir_r>(3) function. It is expected that a future version of POSIX.1 "
507 "will require that B<readdir>() be thread-safe when concurrently employed on "
508 "different directory streams."
509 msgstr ""
510
511 #. type: SH
512 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
513 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
514 #, no-wrap
515 msgid "VERSIONS"
516 msgstr "VERSIONES"
517
518 #. POSIX.1-2001, POSIX.1-2008
519 #. type: Plain text
520 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
521 #: opensuse-tumbleweed
522 msgid ""
523 "Only the fields I<.d_name> and (as an XSI extension) I<.d_ino> are "
524 "specified in POSIX.1. Other than Linux, the I<.d_type> field is available "
525 "mainly only on BSD systems. The remaining fields are available on many, but "
526 "not all systems. Under glibc, programs can check for the availability of "
527 "the fields not defined in POSIX.1 by testing whether the macros "
528 "B<_DIRENT_HAVE_D_NAMLEN>, B<_DIRENT_HAVE_D_RECLEN>, B<_DIRENT_HAVE_D_OFF>, "
529 "or B<_DIRENT_HAVE_D_TYPE> are defined."
530 msgstr ""
531
532 #. type: SS
533 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
534 #: opensuse-tumbleweed
535 #, no-wrap
536 msgid "The \\f[I].d_name\\fB field"
537 msgstr ""
538
539 #. type: Plain text
540 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
541 #: opensuse-tumbleweed
542 msgid ""
543 "The I<dirent> structure definition shown above is taken from the glibc "
544 "headers, and shows the I<.d_name> field with a fixed size."
545 msgstr ""
546
547 #. type: Plain text
548 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
549 #: opensuse-tumbleweed
550 msgid ""
551 "I<Warning>: applications should avoid any dependence on the size of the "
552 "I<.d_name> field. POSIX defines it as I<char\\ d_name[]>, a character array "
553 "of unspecified size, with at most B<NAME_MAX> characters preceding the "
554 "terminating null byte (\\[aq]\\[rs]0\\[aq])."
555 msgstr ""
556
557 #. type: Plain text
558 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
559 #: opensuse-tumbleweed
560 msgid ""
561 "POSIX.1 explicitly notes that this field should not be used as an lvalue. "
562 "The standard also notes that the use of I<sizeof(.d_name)> is incorrect; use "
563 "I<strlen(.d_name)> instead. (On some systems, this field is defined as "
564 "I<char\\ d_name[1]>!) By implication, the use I<sizeof(struct dirent)> to "
565 "capture the size of the record including the size of I<.d_name> is also "
566 "incorrect."
567 msgstr ""
568
569 #. type: Plain text
570 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
571 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
572 msgid "Note that while the call"
573 msgstr ""
574
575 #. type: Plain text
576 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
577 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
578 #, fuzzy, no-wrap
579 #| msgid " fpathconf(fd, _PC_NAME_MAX)\n"
580 msgid "fpathconf(fd, _PC_NAME_MAX)\n"
581 msgstr " fpathconf(fd, _PC_NAME_MAX)\n"
582
583 #. type: Plain text
584 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
585 #: opensuse-tumbleweed
586 msgid ""
587 "returns the value 255 for most filesystems, on some filesystems (e.g., CIFS, "
588 "Windows SMB servers), the null-terminated filename that is (correctly) "
589 "returned in I<.d_name> can actually exceed this size. In such cases, the "
590 "I<.d_reclen> field will contain a value that exceeds the size of the glibc "
591 "I<dirent> structure shown above."
592 msgstr ""
593
594 #. type: SH
595 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
596 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
597 #, no-wrap
598 msgid "STANDARDS"
599 msgstr "ESTÁNDARES"
600
601 #. type: Plain text
602 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
603 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
604 msgid "POSIX.1-2008."
605 msgstr "POSIX.1-2008."
606
607 #. type: SH
608 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
609 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
610 #, no-wrap
611 msgid "HISTORY"
612 msgstr "HISTORIAL"
613
614 #. type: Plain text
615 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
616 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
617 msgid "POSIX.1-2001, SVr4, 4.3BSD."
618 msgstr "POSIX.1-2001, SVr4, 4.3BSD."
619
620 #. type: SH
621 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
622 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
623 #, no-wrap
624 msgid "NOTES"
625 msgstr "NOTAS"
626
627 #. type: Plain text
628 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
629 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
630 #, fuzzy
631 #| msgid "Invalid directory stream descriptor I<dir>."
632 msgid "A directory stream is opened using B<opendir>(3)."
633 msgstr "Descriptor de flujo de directorio inválido I<dir>."
634
635 #. type: Plain text
636 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
637 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
638 msgid ""
639 "The order in which filenames are read by successive calls to B<readdir>() "
640 "depends on the filesystem implementation; it is unlikely that the names will "
641 "be sorted in any fashion."
642 msgstr ""
643
644 #. type: SH
645 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
646 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
647 #, no-wrap
648 msgid "SEE ALSO"
649 msgstr "VÉASE TAMBIÉN"
650
651 #. type: Plain text
652 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
653 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
654 msgid ""
655 "B<getdents>(2), B<read>(2), B<closedir>(3), B<dirfd>(3), B<ftw>(3), "
656 "B<offsetof>(3), B<opendir>(3), B<readdir_r>(3), B<rewinddir>(3), "
657 "B<scandir>(3), B<seekdir>(3), B<telldir>(3)"
658 msgstr ""
659 "B<getdents>(2), B<read>(2), B<closedir>(3), B<dirfd>(3), B<ftw>(3), "
660 "B<offsetof>(3), B<opendir>(3), B<readdir_r>(3), B<rewinddir>(3), "
661 "B<scandir>(3), B<seekdir>(3), B<telldir>(3)"
662
663 #. type: TH
664 #: debian-trixie
665 #, no-wrap
666 msgid "2024-06-16"
667 msgstr "16 Junio 2024"
668
669 #. type: TH
670 #: debian-trixie
671 #, no-wrap
672 msgid "Linux man-pages 6.9.1"
673 msgstr "Páginas de Manual de Linux 6.9.1"
674
675 #. type: Plain text
676 #: debian-trixie
677 msgid "Standard C library (I<libc>, I<-lc>)"
678 msgstr "Biblioteca Estándar C (I<libc>, I<-lc>)"
679
680 #. type: Plain text
681 #: debian-trixie fedora-44 fedora-rawhide
682 msgid ""
683 "The only fields in the I<dirent> structure that are mandated by POSIX.1 are "
684 "I<d_name> and I<d_ino>. The other fields are unstandardized, and not "
685 "present on all systems; see VERSIONS."
686 msgstr ""
687
688 #. type: TP
689 #: debian-trixie fedora-44 fedora-rawhide
690 #, no-wrap
691 msgid "I<d_ino>"
692 msgstr "I<d_ino>"
693
694 #. type: Plain text
695 #: debian-trixie fedora-44 fedora-rawhide
696 msgid "This is the inode number of the file."
697 msgstr ""
698
699 #. type: TP
700 #: debian-trixie fedora-44 fedora-rawhide
701 #, no-wrap
702 msgid "I<d_off>"
703 msgstr "I<d_off>"
704
705 #. https://lwn.net/Articles/544298/
706 #. type: Plain text
707 #: debian-trixie fedora-44 fedora-rawhide
708 msgid ""
709 "The value returned in I<d_off> is the same as would be returned by calling "
710 "B<telldir>(3) at the current position in the directory stream. Be aware "
711 "that despite its type and name, the I<d_off> field is seldom any kind of "
712 "directory offset on modern filesystems. Applications should treat this "
713 "field as an opaque value, making no assumptions about its contents; see also "
714 "B<telldir>(3)."
715 msgstr ""
716
717 #. type: TP
718 #: debian-trixie fedora-44 fedora-rawhide
719 #, no-wrap
720 msgid "I<d_reclen>"
721 msgstr "I<d_reclen>"
722
723 #. type: TP
724 #: debian-trixie fedora-44 fedora-rawhide
725 #, no-wrap
726 msgid "I<d_type>"
727 msgstr "I<d_type>"
728
729 #. type: Plain text
730 #: debian-trixie fedora-44 fedora-rawhide
731 msgid ""
732 "When a suitable feature test macro is defined (B<_DEFAULT_SOURCE> since "
733 "glibc 2.19, or B<_BSD_SOURCE> on glibc 2.19 and earlier), glibc defines the "
734 "following macro constants for the value returned in I<d_type>:"
735 msgstr ""
736
737 #. kernel 2.6.27
738 #. The same sentence is in getdents.2
739 #. type: Plain text
740 #: debian-trixie fedora-44 fedora-rawhide
741 msgid ""
742 "Currently, only some filesystems (among them: Btrfs, ext2, ext3, and ext4) "
743 "have full support for returning the file type in I<d_type>. All "
744 "applications must properly handle a return of B<DT_UNKNOWN>."
745 msgstr ""
746
747 #. type: TP
748 #: debian-trixie fedora-44 fedora-rawhide
749 #, no-wrap
750 msgid "I<d_name>"
751 msgstr "I<d_name>"
752
753 #. POSIX.1-2001, POSIX.1-2008
754 #. type: Plain text
755 #: debian-trixie fedora-44 fedora-rawhide
756 msgid ""
757 "Only the fields I<d_name> and (as an XSI extension) I<d_ino> are specified "
758 "in POSIX.1. Other than Linux, the I<d_type> field is available mainly only "
759 "on BSD systems. The remaining fields are available on many, but not all "
760 "systems. Under glibc, programs can check for the availability of the fields "
761 "not defined in POSIX.1 by testing whether the macros "
762 "B<_DIRENT_HAVE_D_NAMLEN>, B<_DIRENT_HAVE_D_RECLEN>, B<_DIRENT_HAVE_D_OFF>, "
763 "or B<_DIRENT_HAVE_D_TYPE> are defined."
764 msgstr ""
765
766 #. type: SS
767 #: debian-trixie fedora-44 fedora-rawhide
768 #, no-wrap
769 msgid "The d_name field"
770 msgstr ""
771
772 #. type: Plain text
773 #: debian-trixie fedora-44 fedora-rawhide
774 msgid ""
775 "The I<dirent> structure definition shown above is taken from the glibc "
776 "headers, and shows the I<d_name> field with a fixed size."
777 msgstr ""
778
779 #. type: Plain text
780 #: debian-trixie fedora-44 fedora-rawhide
781 msgid ""
782 "I<Warning>: applications should avoid any dependence on the size of the "
783 "I<d_name> field. POSIX defines it as I<char\\ d_name[]>, a character array "
784 "of unspecified size, with at most B<NAME_MAX> characters preceding the "
785 "terminating null byte (\\[aq]\\[rs]0\\[aq])."
786 msgstr ""
787
788 #. type: Plain text
789 #: debian-trixie fedora-44 fedora-rawhide
790 msgid ""
791 "POSIX.1 explicitly notes that this field should not be used as an lvalue. "
792 "The standard also notes that the use of I<sizeof(d_name)> is incorrect; use "
793 "I<strlen(d_name)> instead. (On some systems, this field is defined as "
794 "I<char\\ d_name[1]>!) By implication, the use I<sizeof(struct dirent)> to "
795 "capture the size of the record including the size of I<d_name> is also "
796 "incorrect."
797 msgstr ""
798
799 #. type: Plain text
800 #: debian-trixie fedora-44 fedora-rawhide
801 msgid ""
802 "returns the value 255 for most filesystems, on some filesystems (e.g., CIFS, "
803 "Windows SMB servers), the null-terminated filename that is (correctly) "
804 "returned in I<d_name> can actually exceed this size. In such cases, the "
805 "I<d_reclen> field will contain a value that exceeds the size of the glibc "
806 "I<dirent> structure shown above."
807 msgstr ""
808
809 #. type: TH
810 #: fedora-44 fedora-rawhide
811 #, no-wrap
812 msgid "2024-07-23"
813 msgstr "23 ​​Julio 2024"
814
815 #. type: TH
816 #: fedora-44 fedora-rawhide
817 #, no-wrap
818 msgid "Linux man-pages 6.13"
819 msgstr "Páginas de Manual de Linux 6.13"
820
821 #. type: TH
822 #: mageia-cauldron
823 #, no-wrap
824 msgid "Linux man-pages 6.17"
825 msgstr "Páginas de Manual de Linux 6.17"
826
827 #. type: TH
828 #: opensuse-leap-16-1 opensuse-tumbleweed
829 #, no-wrap
830 msgid "Linux man-pages (unreleased)"
831 msgstr "Páginas de Manual de Linux (no publicadas)"