Debian Codegraph @

po/es/man2/getdents.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 # Miguel Angel Sepulveda <[email protected]>, 1996.
5 # Gerardo Aburruzaga García <[email protected]>, 1998.
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: manpages-l10n\n"
9 "POT-Creation-Date: 2026-06-05 06:25+0200\n"
10 "PO-Revision-Date: 2021-01-30 16:17+0100\n"
11 "Last-Translator: Gerardo Aburruzaga García <[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 "getdents()"
25 msgid "getdents"
26 msgstr "getdents()"
27
28 #. type: TH
29 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
30 #, no-wrap
31 msgid "2026-04-08"
32 msgstr "8 Abril 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 "getdents, getdents64 - get directory entries"
52 msgstr "getdents, getdents64 - obtiene las entradas de 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 ""
79 "B<#include E<lt>sys/syscall.hE<gt>> /* Definition of B<SYS_*> constants */\n"
80 "B<#include E<lt>unistd.hE<gt>>\n"
81 msgstr ""
82 "B<#include E<lt>sys/syscall.hE<gt>> /* Definición de las constantes B<SYS_*> */\n"
83 "B<#include E<lt>unistd.hE<gt>>\n"
84
85 #. type: Plain text
86 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
87 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
88 #, fuzzy, no-wrap
89 #| msgid ""
90 #| "B<long getdents(unsigned int >I<fd>B<, struct linux_dirent *>I<dirp>B<,>\n"
91 #| "B< unsigned int >I<count>B<);>\n"
92 msgid ""
93 "B<long syscall(SYS_getdents, unsigned int >I<fd>B<, struct linux_dirent *>I<dirp>B<,>\n"
94 "B< unsigned int >I<count>B<);>\n"
95 msgstr ""
96 "B<long getdents(unsigned int >I<fd>B<, struct linux_dirent *>I<dirp>B<,>\n"
97 "B< unsigned int >I<count>B<);>\n"
98
99 #. type: Plain text
100 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
101 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
102 #, fuzzy, no-wrap
103 #| msgid ""
104 #| "B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n"
105 #| "B<#include E<lt>dirent.hE<gt>>\n"
106 msgid ""
107 "B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n"
108 "B<#include E<lt>dirent.hE<gt>>\n"
109 msgstr ""
110 "B<#define _GNU_SOURCE> /* Vea feature_test_macros(7) */\n"
111 "B<#include E<lt>dirent.hE<gt>>\n"
112
113 #. type: Plain text
114 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
115 #: opensuse-tumbleweed
116 #, fuzzy, no-wrap
117 #| msgid "B<ssize_t getdents64(int >I<fd>B<, void *>I<dirp>B<, size_t >I<count>B<);>\n"
118 msgid ""
119 "B<ssize_t getdents64(>size_t count;\n"
120 "B< int >I<fd>B<, void >I<dirp>B<[>I<count>B<], size_t >I<count>B<);>\n"
121 msgstr "B<ssize_t getdents64(int >I<fd>B<, void *>I<dirp>B<, size_t >I<count>B<);>\n"
122
123 #. type: Plain text
124 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
125 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
126 msgid ""
127 "I<Note>: glibc provides no wrapper for B<getdents>(), necessitating the use "
128 "of B<syscall>(2)."
129 msgstr ""
130
131 #. type: Plain text
132 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
133 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
134 #, fuzzy
135 #| msgid "I<Note>: There is no glibc wrapper for B<getdents>(); see NOTES."
136 msgid ""
137 "I<Note>: There is no definition of I<struct linux_dirent> in glibc; see "
138 "NOTES."
139 msgstr "I<Nota>: No hay envoltorio glibc para B<getdents>(); véase NOTAS."
140
141 #. type: SH
142 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
143 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
144 #, no-wrap
145 msgid "DESCRIPTION"
146 msgstr "DESCRIPCIÓN"
147
148 #. type: Plain text
149 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
150 msgid ""
151 "These are not the interfaces you are interested in. Look at B<readdir>(3) "
152 "for the POSIX-conforming C library interface."
153 msgstr ""
154
155 #. type: SS
156 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
157 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
158 #, no-wrap
159 msgid "getdents()"
160 msgstr "getdents()"
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 #, fuzzy
166 #| msgid ""
167 #| "B<getdents> reads several I<dirent> structures from the directory pointed "
168 #| "at by I<fd> into the memory area pointed to by I<dirp>. The parameter "
169 #| "I<count> is the size of the memory area."
170 msgid ""
171 "The system call B<getdents>() reads several I<linux_dirent> structures from "
172 "the directory referred to by the open file descriptor I<fd> into the buffer "
173 "pointed to by I<dirp>. The argument I<count> specifies the size of that "
174 "buffer."
175 msgstr ""
176 "B<getdents> lee varias estructuras I<dirent> del directorio señalado por el "
177 "puntero I<fd> en el área de memoria señalada por I<dirp>. El parámetro "
178 "I<count> es el tamaño del área de memoria."
179
180 #. type: Plain text
181 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
182 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
183 msgid "The I<linux_dirent> structure is declared as follows:"
184 msgstr "La estructura I<linux_dirent> se declara de la siguente manera:"
185
186 #. type: Plain text
187 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
188 #: opensuse-tumbleweed
189 #, no-wrap
190 msgid ""
191 "struct linux_dirent {\n"
192 " unsigned long d_ino; /* Inode number */\n"
193 " unsigned long d_off; /* Not an offset; see below */\n"
194 " unsigned short d_reclen; /* Length of this \\f[I]linux_dirent\\fR */\n"
195 " char d_name[]; /* Filename (null-terminated) */\n"
196 " /* length is actually (d_reclen - 2 -\n"
197 " offsetof(struct linux_dirent, d_name)) */\n"
198 " /*\n"
199 " char pad; // Zero padding byte\n"
200 " char d_type; // File type (only since Linux\n"
201 " // 2.6.4); offset is (d_reclen - 1)\n"
202 " */\n"
203 "}\n"
204 msgstr ""
205
206 #. type: Plain text
207 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
208 #: opensuse-leap-16-1 opensuse-tumbleweed
209 #, fuzzy
210 #| msgid ""
211 #| "I<d_ino> is an inode number. I<d_off> is the distance from the start of "
212 #| "the directory to the start of the next I<linux_dirent>. I<d_reclen> is "
213 #| "the size of this entire I<linux_dirent>. I<d_name> is a null-terminated "
214 #| "filename."
215 msgid ""
216 "I<d_ino> is an inode number. I<d_off> is a filesystem-specific value with "
217 "no specific meaning to user space, though on older filesystems it used to be "
218 "the distance from the start of the directory to the start of the next "
219 "I<linux_dirent>; see B<readdir>(3). I<d_reclen> is the size of this entire "
220 "I<linux_dirent>. I<d_name> is a null-terminated filename."
221 msgstr ""
222 "I<d_ino> es un número de nodo-i. I<d_off> es la distancia desde el "
223 "principio del directorio al comienzo del próximo I<linux_dirent>. "
224 "I<d_reclen> es el tamaño de todo el I<linux_dirent>. I<d_name> es un nombre "
225 "de fichero terminado en NUL (el carácter de código 0)."
226
227 #. type: Plain text
228 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
229 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
230 msgid ""
231 "I<d_type> is a byte at the end of the structure that indicates the file "
232 "type. It contains one of the following values (defined in "
233 "I<E<lt>dirent.hE<gt>>):"
234 msgstr ""
235
236 #. type: TP
237 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
238 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
239 #, no-wrap
240 msgid "B<DT_BLK>"
241 msgstr "B<DT_BLK>"
242
243 #. type: Plain text
244 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
245 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
246 msgid "This is a block device."
247 msgstr ""
248
249 #. type: TP
250 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
251 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
252 #, no-wrap
253 msgid "B<DT_CHR>"
254 msgstr "B<DT_CHR>"
255
256 #. type: Plain text
257 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
258 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
259 msgid "This is a character device."
260 msgstr ""
261
262 #. type: TP
263 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
264 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
265 #, no-wrap
266 msgid "B<DT_DIR>"
267 msgstr "B<DT_DIR>"
268
269 #. type: Plain text
270 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
271 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
272 #, fuzzy
273 #| msgid "No such directory."
274 msgid "This is a directory."
275 msgstr "El directorio no existe."
276
277 #. type: TP
278 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
279 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
280 #, no-wrap
281 msgid "B<DT_FIFO>"
282 msgstr "B<DT_FIFO>"
283
284 #. type: Plain text
285 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
286 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
287 msgid "This is a named pipe (FIFO)."
288 msgstr ""
289
290 #. type: TP
291 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
292 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
293 #, no-wrap
294 msgid "B<DT_LNK>"
295 msgstr "B<DT_LNK>"
296
297 #. type: Plain text
298 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
299 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
300 msgid "This is a symbolic link."
301 msgstr ""
302
303 #. type: TP
304 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
305 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
306 #, no-wrap
307 msgid "B<DT_REG>"
308 msgstr "B<DT_REG>"
309
310 #. type: Plain text
311 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
312 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
313 msgid "This is a regular file."
314 msgstr ""
315
316 #. type: TP
317 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
318 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
319 #, no-wrap
320 msgid "B<DT_SOCK>"
321 msgstr "B<DT_SOCK>"
322
323 #. type: Plain text
324 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
325 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
326 msgid "This is a UNIX domain socket."
327 msgstr ""
328
329 #. type: TP
330 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
331 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
332 #, no-wrap
333 msgid "B<DT_UNKNOWN>"
334 msgstr "B<DT_UNKNOWN>"
335
336 #. type: Plain text
337 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
338 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
339 msgid "The file type is unknown."
340 msgstr ""
341
342 #. type: Plain text
343 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
344 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
345 msgid ""
346 "The I<d_type> field is implemented since Linux 2.6.4. It occupies a space "
347 "that was previously a zero-filled padding byte in the I<linux_dirent> "
348 "structure. Thus, on kernels up to and including Linux 2.6.3, attempting to "
349 "access this field always provides the value 0 (B<DT_UNKNOWN>)."
350 msgstr ""
351
352 #. kernel 2.6.27
353 #. The same sentence is in readdir.2
354 #. type: Plain text
355 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
356 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
357 msgid ""
358 "Currently, only some filesystems (among them: Btrfs, ext2, ext3, and ext4) "
359 "have full support for returning the file type in I<d_type>. All "
360 "applications must properly handle a return of B<DT_UNKNOWN>."
361 msgstr ""
362
363 #. type: SS
364 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
365 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
366 #, no-wrap
367 msgid "getdents64()"
368 msgstr "getdents64()"
369
370 #. type: Plain text
371 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
372 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
373 msgid ""
374 "The original Linux B<getdents>() system call did not handle large "
375 "filesystems and large file offsets. Consequently, Linux 2.4 added "
376 "B<getdents64>(), with wider types for the I<d_ino> and I<d_off> fields. In "
377 "addition, B<getdents64>() supports an explicit I<d_type> field."
378 msgstr ""
379
380 #. type: Plain text
381 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
382 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
383 msgid ""
384 "The B<getdents64>() system call is like B<getdents>(), except that its "
385 "second argument is a pointer to a buffer containing structures of the "
386 "following type:"
387 msgstr ""
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 #, fuzzy, no-wrap
393 #| msgid ""
394 #| "struct dirent\n"
395 #| "{\n"
396 #| " long d_ino; /* inode number */\n"
397 #| " off_t d_off; /* offset to next I<dirent> */\n"
398 #| " unsigned short d_reclen; /* length of this I<dirent> */\n"
399 #| " char d_name [NAME_MAX+1]; /* file name (null-terminated) */\n"
400 #| "}\n"
401 msgid ""
402 "struct linux_dirent64 {\n"
403 " ino64_t d_ino; /* 64-bit inode number */\n"
404 " off64_t d_off; /* Not an offset; see getdents() */\n"
405 " unsigned short d_reclen; /* Size of this dirent */\n"
406 " unsigned char d_type; /* File type */\n"
407 " char d_name[]; /* Filename (null-terminated) */\n"
408 "};\n"
409 msgstr ""
410 "struct dirent\n"
411 "{\n"
412 " long d_ino; /* número de nodo-i */\n"
413 " off_t d_off; /* desplazamiento al próximo I<dirent> */\n"
414 " unsigned short d_reclen; /* longitud de este I<dirent> */\n"
415 " char d_name [NAME_MAX+1]; /* Nombre del fichero (terminado en NUL) */\n"
416 "}\n"
417
418 #. type: SH
419 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
420 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
421 #, no-wrap
422 msgid "RETURN VALUE"
423 msgstr "VALOR DEVUELTO"
424
425 #. type: Plain text
426 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
427 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
428 #, fuzzy
429 #| msgid ""
430 #| "On success, the number of bytes read is returned. On end of directory, 0 "
431 #| "is returned. On error, -1 is returned, and I<errno> is set appropriately."
432 msgid ""
433 "On success, the number of bytes read is returned. On end of directory, 0 is "
434 "returned. On error, -1 is returned, and I<errno> is set to indicate the "
435 "error."
436 msgstr ""
437 "En caso de éxito de regresa el número de bytes leídos. Si se llega al final "
438 "del directorio se devuelve 0. En caso de error se devuelve -1, y en la "
439 "variable I<errno> se pone un valor apropiado."
440
441 #. type: SH
442 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
443 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
444 #, no-wrap
445 msgid "ERRORS"
446 msgstr "ERRORES"
447
448 #. type: TP
449 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
450 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
451 #, no-wrap
452 msgid "B<EBADF>"
453 msgstr "B<EBADF>"
454
455 #. type: Plain text
456 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
457 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
458 msgid "Invalid file descriptor I<fd>."
459 msgstr "Descriptor de fichero inválido I<fd>."
460
461 #. type: TP
462 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
463 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
464 #, no-wrap
465 msgid "B<EFAULT>"
466 msgstr "B<EFAULT>"
467
468 #. type: Plain text
469 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
470 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
471 msgid "Argument points outside the calling process's address space."
472 msgstr ""
473 "El argumento apunta afuera del espacio de direcciones del proceso llamador."
474
475 #. type: TP
476 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
477 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
478 #, no-wrap
479 msgid "B<EINVAL>"
480 msgstr "B<EINVAL>"
481
482 #. type: Plain text
483 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
484 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
485 msgid "Result buffer is too small."
486 msgstr "El búfer del resultado es demasiado pequeño."
487
488 #. type: TP
489 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
490 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
491 #, no-wrap
492 msgid "B<ENOENT>"
493 msgstr "B<ENOENT>"
494
495 #. type: Plain text
496 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
497 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
498 msgid "No such directory."
499 msgstr "El directorio no existe."
500
501 #. type: TP
502 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
503 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
504 #, no-wrap
505 msgid "B<ENOTDIR>"
506 msgstr "B<ENOTDIR>"
507
508 #. type: Plain text
509 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
510 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
511 msgid "File descriptor does not refer to a directory."
512 msgstr "El descriptor de fichero no se refiere a un directorio."
513
514 #. type: SH
515 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
516 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
517 #, no-wrap
518 msgid "STANDARDS"
519 msgstr "ESTÁNDARES"
520
521 #. type: Plain text
522 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
523 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
524 msgid "None."
525 msgstr ""
526
527 #. type: SH
528 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
529 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
530 #, no-wrap
531 msgid "HISTORY"
532 msgstr "HISTORIAL"
533
534 #. type: TP
535 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
536 #, fuzzy, no-wrap
537 #| msgid "getdents64()"
538 msgid "B<getdents>()"
539 msgstr "getdents64()"
540
541 #. SVr4 documents additional ENOLINK, EIO error conditions.
542 #. type: Plain text
543 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
544 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
545 msgid "SVr4."
546 msgstr "SVr4."
547
548 #. type: TP
549 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
550 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
551 #, fuzzy, no-wrap
552 #| msgid "getdents64()"
553 msgid "B<getdents64>()"
554 msgstr "getdents64()"
555
556 #. type: Plain text
557 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
558 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
559 #, fuzzy
560 #| msgid "Since glibc 2.20:"
561 msgid "glibc 2.30."
562 msgstr "Desde glibc 2.20:"
563
564 #. type: SH
565 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
566 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
567 #, no-wrap
568 msgid "NOTES"
569 msgstr "NOTAS"
570
571 #. type: Plain text
572 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
573 msgid ""
574 "glibc does not provide a wrapper for B<getdents>(); call B<getdents>() "
575 "using B<syscall>(2). In that case you will need to define the "
576 "I<linux_dirent> structure yourself."
577 msgstr ""
578
579 #. type: Plain text
580 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
581 msgid ""
582 "The B<getdents64>() system call accepts an B<unsigned int> argument "
583 "I<count> and assumes that I<count> does not exceed B<INT_MAX>. The glibc "
584 "wrapper function sets I<count> to B<INT_MAX> if it exceeds B<INT_MAX>. "
585 "glibc defines a I<dirent64> structure, which is similar to I<linux_dirent64> "
586 "but with a 256-byte I<d_name>."
587 msgstr ""
588
589 #. type: Plain text
590 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
591 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
592 msgid "Probably, you want to use B<readdir>(3) instead of these system calls."
593 msgstr ""
594
595 #. type: Plain text
596 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
597 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
598 #, fuzzy
599 #| msgid "This call supersedes B<readdir>(2)."
600 msgid "These calls supersede B<readdir>(2)."
601 msgstr "Esta llamada sustituye a B<readdir>(2)."
602
603 #. type: SH
604 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
605 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
606 #, no-wrap
607 msgid "EXAMPLES"
608 msgstr "EJEMPLOS"
609
610 #. FIXME The example program needs to be revised, since it uses the older
611 #. getdents() system call and the structure with smaller field widths.
612 #. type: Plain text
613 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
614 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
615 msgid ""
616 "The program below demonstrates the use of B<getdents>(). The following "
617 "output shows an example of what we see when running this program on an ext2 "
618 "directory:"
619 msgstr ""
620
621 #. type: Plain text
622 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
623 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
624 #, no-wrap
625 msgid ""
626 "$B< ./a.out /testfs/>\n"
627 "--------------- nread=120 ---------------\n"
628 "inode# file type d_reclen d_off d_name\n"
629 " 2 directory 16 12 .\n"
630 " 2 directory 16 24 ..\n"
631 " 11 directory 24 44 lost+found\n"
632 " 12 regular 16 56 a\n"
633 " 228929 directory 16 68 sub\n"
634 " 16353 directory 16 80 sub2\n"
635 " 130817 directory 16 4096 sub3\n"
636 msgstr ""
637
638 #. type: SS
639 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
640 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
641 #, no-wrap
642 msgid "Program source"
643 msgstr "Código fuente"
644
645 #. type: Plain text
646 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
647 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
648 #, fuzzy, no-wrap
649 #| msgid ""
650 #| " printf(\"--------------- nread=%d ---------------\\en\", nread);\n"
651 #| " printf(\"inode# file type d_reclen d_off d_name\\en\");\n"
652 #| " for (bpos = 0; bpos E<lt> nread;) {\n"
653 #| " d = (struct linux_dirent *) (buf + bpos);\n"
654 #| " printf(\"%8ld \", d-E<gt>d_ino);\n"
655 #| " d_type = *(buf + bpos + d-E<gt>d_reclen - 1);\n"
656 #| " printf(\"%-10s \", (d_type == DT_REG) ? \"regular\" :\n"
657 #| " (d_type == DT_DIR) ? \"directory\" :\n"
658 #| " (d_type == DT_FIFO) ? \"FIFO\" :\n"
659 #| " (d_type == DT_SOCK) ? \"socket\" :\n"
660 #| " (d_type == DT_LNK) ? \"symlink\" :\n"
661 #| " (d_type == DT_BLK) ? \"block dev\" :\n"
662 #| " (d_type == DT_CHR) ? \"char dev\" : \"???\");\n"
663 #| " printf(\"%4d %10lld %s\\en\", d-E<gt>d_reclen,\n"
664 #| " (long long) d-E<gt>d_off, d-E<gt>d_name);\n"
665 #| " bpos += d-E<gt>d_reclen;\n"
666 #| " }\n"
667 #| " }\n"
668 msgid ""
669 "#define _GNU_SOURCE\n"
670 "#include E<lt>dirent.hE<gt> /* Defines DT_* constants */\n"
671 "#include E<lt>err.hE<gt>\n"
672 "#include E<lt>fcntl.hE<gt>\n"
673 "#include E<lt>stdint.hE<gt>\n"
674 "#include E<lt>stdio.hE<gt>\n"
675 "#include E<lt>stdlib.hE<gt>\n"
676 "#include E<lt>sys/syscall.hE<gt>\n"
677 "#include E<lt>sys/types.hE<gt>\n"
678 "#include E<lt>unistd.hE<gt>\n"
679 "\\&\n"
680 "struct linux_dirent {\n"
681 " unsigned long d_ino;\n"
682 " off_t d_off;\n"
683 " unsigned short d_reclen;\n"
684 " char d_name[];\n"
685 "};\n"
686 "\\&\n"
687 "#define BUF_SIZE 1024\n"
688 "\\&\n"
689 "int\n"
690 "main(int argc, char *argv[])\n"
691 "{\n"
692 " int fd;\n"
693 " char d_type;\n"
694 " char buf[BUF_SIZE];\n"
695 " long nread;\n"
696 " struct linux_dirent *d;\n"
697 "\\&\n"
698 " fd = open(argc E<gt> 1 ? argv[1] : \".\", O_RDONLY | O_DIRECTORY);\n"
699 " if (fd == -1)\n"
700 " err(EXIT_FAILURE, \"open\");\n"
701 "\\&\n"
702 " for (;;) {\n"
703 " nread = syscall(SYS_getdents, fd, buf, BUF_SIZE);\n"
704 " if (nread == -1)\n"
705 " err(EXIT_FAILURE, \"getdents\");\n"
706 "\\&\n"
707 " if (nread == 0)\n"
708 " break;\n"
709 "\\&\n"
710 " printf(\"--------------- nread=%ld ---------------\\[rs]n\", nread);\n"
711 " printf(\"inode# file type d_reclen d_off d_name\\[rs]n\");\n"
712 " for (size_t bpos = 0; bpos E<lt> nread;) {\n"
713 " d = (struct linux_dirent *) (buf + bpos);\n"
714 " printf(\"%8lu \", d-E<gt>d_ino);\n"
715 " d_type = *(buf + bpos + d-E<gt>d_reclen - 1);\n"
716 " printf(\"%-10s \", (d_type == DT_REG) ? \"regular\" :\n"
717 " (d_type == DT_DIR) ? \"directory\" :\n"
718 " (d_type == DT_FIFO) ? \"FIFO\" :\n"
719 " (d_type == DT_SOCK) ? \"socket\" :\n"
720 " (d_type == DT_LNK) ? \"symlink\" :\n"
721 " (d_type == DT_BLK) ? \"block dev\" :\n"
722 " (d_type == DT_CHR) ? \"char dev\" : \"???\");\n"
723 " printf(\"%4d %10jd %s\\[rs]n\", d-E<gt>d_reclen,\n"
724 " (intmax_t) d-E<gt>d_off, d-E<gt>d_name);\n"
725 " bpos += d-E<gt>d_reclen;\n"
726 " }\n"
727 " }\n"
728 "\\&\n"
729 " exit(EXIT_SUCCESS);\n"
730 "}\n"
731 msgstr ""
732 " printf(\"--------------- nread=%d ---------------\\en\", nread);\n"
733 " printf(\"inode# file type d_reclen d_off d_name\\en\");\n"
734 " for (bpos = 0; bpos E<lt> nread;) {\n"
735 " d = (struct linux_dirent *) (buf + bpos);\n"
736 " printf(\"%8ld \", d-E<gt>d_ino);\n"
737 " d_type = *(buf + bpos + d-E<gt>d_reclen - 1);\n"
738 " printf(\"%-10s \", (d_type == DT_REG) ? \"regular\" :\n"
739 " (d_type == DT_DIR) ? \"directory\" :\n"
740 " (d_type == DT_FIFO) ? \"FIFO\" :\n"
741 " (d_type == DT_SOCK) ? \"socket\" :\n"
742 " (d_type == DT_LNK) ? \"symlink\" :\n"
743 " (d_type == DT_BLK) ? \"block dev\" :\n"
744 " (d_type == DT_CHR) ? \"char dev\" : \"???\");\n"
745 " printf(\"%4d %10lld %s\\en\", d-E<gt>d_reclen,\n"
746 " (long long) d-E<gt>d_off, d-E<gt>d_name);\n"
747 " bpos += d-E<gt>d_reclen;\n"
748 " }\n"
749 " }\n"
750
751 #. SRC END
752 #. type: SH
753 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
754 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
755 #, no-wrap
756 msgid "SEE ALSO"
757 msgstr "VÉASE TAMBIÉN"
758
759 #. type: Plain text
760 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
761 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
762 msgid "B<readdir>(2), B<readdir>(3), B<inode>(7)"
763 msgstr "B<readdir>(2), B<readdir>(3), B<inode>(7)"
764
765 #. type: TH
766 #: debian-trixie
767 #, no-wrap
768 msgid "2024-06-15"
769 msgstr "15 Junio 2024"
770
771 #. type: TH
772 #: debian-trixie
773 #, no-wrap
774 msgid "Linux man-pages 6.9.1"
775 msgstr "Páginas de Manual de Linux 6.9.1"
776
777 #. type: Plain text
778 #: debian-trixie
779 msgid "Standard C library (I<libc>, I<-lc>)"
780 msgstr "Biblioteca Estándar C (I<libc>, I<-lc>)"
781
782 #. type: Plain text
783 #: debian-trixie fedora-44 fedora-rawhide
784 #, fuzzy, no-wrap
785 #| msgid "B<ssize_t getdents64(int >I<fd>B<, void *>I<dirp>B<, size_t >I<count>B<);>\n"
786 msgid "B<ssize_t getdents64(int >I<fd>B<, void >I<dirp>B<[.>I<count>B<], size_t >I<count>B<);>\n"
787 msgstr "B<ssize_t getdents64(int >I<fd>B<, void *>I<dirp>B<, size_t >I<count>B<);>\n"
788
789 #. type: Plain text
790 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
791 msgid ""
792 "These are not the interfaces you are interested in. Look at B<readdir>(3) "
793 "for the POSIX-conforming C library interface. This page documents the bare "
794 "kernel system call interfaces."
795 msgstr ""
796
797 #. type: Plain text
798 #: debian-trixie fedora-44 fedora-rawhide
799 #, no-wrap
800 msgid ""
801 "struct linux_dirent {\n"
802 " unsigned long d_ino; /* Inode number */\n"
803 " unsigned long d_off; /* Not an offset; see below */\n"
804 " unsigned short d_reclen; /* Length of this I<linux_dirent> */\n"
805 " char d_name[]; /* Filename (null-terminated) */\n"
806 " /* length is actually (d_reclen - 2 -\n"
807 " offsetof(struct linux_dirent, d_name)) */\n"
808 " /*\n"
809 " char pad; // Zero padding byte\n"
810 " char d_type; // File type (only since Linux\n"
811 " // 2.6.4); offset is (d_reclen - 1)\n"
812 " */\n"
813 "}\n"
814 msgstr ""
815
816 #. type: Plain text
817 #: debian-trixie
818 #, fuzzy
819 #| msgid ""
820 #| "I<d_ino> is an inode number. I<d_off> is the distance from the start of "
821 #| "the directory to the start of the next I<linux_dirent>. I<d_reclen> is "
822 #| "the size of this entire I<linux_dirent>. I<d_name> is a null-terminated "
823 #| "filename."
824 msgid ""
825 "I<d_ino> is an inode number. I<d_off> is a filesystem-specific value with "
826 "no specific meaning to user space, though on older filesystems it used to be "
827 "the distance from the start of the directory to the start of the next "
828 "I<linux_dirent>; see B<readdir>(3)B<.> I<d_reclen> is the size of this "
829 "entire I<linux_dirent>. I<d_name> is a null-terminated filename."
830 msgstr ""
831 "I<d_ino> es un número de nodo-i. I<d_off> es la distancia desde el "
832 "principio del directorio al comienzo del próximo I<linux_dirent>. "
833 "I<d_reclen> es el tamaño de todo el I<linux_dirent>. I<d_name> es un nombre "
834 "de fichero terminado en NUL (el carácter de código 0)."
835
836 #. type: Plain text
837 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
838 msgid ""
839 "glibc does not provide a wrapper for B<getdents>(); call B<getdents>() "
840 "using B<syscall>(2). In that case you will need to define the "
841 "I<linux_dirent> or I<linux_dirent64> structure yourself."
842 msgstr ""
843
844 #. type: TH
845 #: fedora-44 fedora-rawhide
846 #, no-wrap
847 msgid "2024-11-17"
848 msgstr "17 Noviembre 2024"
849
850 #. type: TH
851 #: fedora-44 fedora-rawhide
852 #, no-wrap
853 msgid "Linux man-pages 6.13"
854 msgstr "Páginas de Manual de Linux 6.13"
855
856 #. type: TH
857 #: mageia-cauldron
858 #, no-wrap
859 msgid "2026-02-08"
860 msgstr "8 Febrero 2026"
861
862 #. type: TH
863 #: mageia-cauldron
864 #, no-wrap
865 msgid "Linux man-pages 6.17"
866 msgstr "Páginas de Manual de Linux 6.17"
867
868 #. type: TH
869 #: opensuse-leap-16-1 opensuse-tumbleweed
870 #, no-wrap
871 msgid "Linux man-pages (unreleased)"
872 msgstr "Páginas de Manual de Linux (no publicadas)"