Debian Codegraph @

po/es/man2/stat.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 # Vicente Pastor Gómez <[email protected]>, 1998.
5 # Juan Piernas <[email protected]>, 1998-2000.
6 # Miguel Pérez Ibars <[email protected]>, 2004.
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: manpages-l10n\n"
10 "POT-Creation-Date: 2026-06-05 06:44+0200\n"
11 "PO-Revision-Date: 2021-01-30 16:50+0100\n"
12 "Last-Translator: Miguel Pérez Ibars <[email protected]>\n"
13 "Language-Team: Spanish <[email protected]>\n"
14 "Language: es\n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18 "Plural-Forms: nplurals=2; plural=(n != 1);\n"
19 "X-Generator: Lokalize 20.04.1\n"
20
21 #. type: TH
22 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
23 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
24 #, no-wrap
25 msgid "stat"
26 msgstr "stat"
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 "stat, fstat, lstat, fstatat - get file status"
53 msgstr "stat, fstat, lstat, fstatat - obtiene el estado de un fichero"
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>sys/stat.hE<gt>>\n"
80 msgstr "B<#include E<lt>sys/stat.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 ""
87 #| "B<int stat(const char *>I<pathname>B<, struct stat *>I<statbuf>B<);>\n"
88 #| "B<int fstat(int >I<fd>B<, struct stat *>I<statbuf>B<);>\n"
89 #| "B<int lstat(const char *>I<pathname>B<, struct stat *>I<statbuf>B<);>\n"
90 msgid ""
91 "B<int stat(const char *restrict >I<path>B<,>\n"
92 "B< struct stat *restrict >I<statbuf>B<);>\n"
93 "B<int fstat(int >I<fd>B<, struct stat *>I<statbuf>B<);>\n"
94 "B<int lstat(const char *restrict >I<path>B<,>\n"
95 "B< struct stat *restrict >I<statbuf>B<);>\n"
96 msgstr ""
97 "B<int stat(const char *>I<pathname>B<, struct stat *>I<statbuf>B<);>\n"
98 "B<int fstat(int >I<fd>B<, struct stat *>I<statbuf>B<);>\n"
99 "B<int lstat(const char *>I<pathname>B<, struct stat *>I<statbuf>B<);>\n"
100
101 #. type: Plain text
102 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
103 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
104 #, fuzzy, no-wrap
105 #| msgid ""
106 #| "B<#include E<lt>sys/types.hE<gt>> /* See NOTES */\n"
107 #| "B<#include E<lt>sys/socket.hE<gt>>\n"
108 msgid ""
109 "B<#include E<lt>fcntl.hE<gt> >/* Definition of B<AT_*> constants */\n"
110 "B<#include E<lt>sys/stat.hE<gt>>\n"
111 msgstr ""
112 "B<#include E<lt>sys/types.hE<gt>> /* Vea NOTAS */\n"
113 "B<#include E<lt>sys/socket.hE<gt>>\n"
114
115 #. type: Plain text
116 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
117 #: opensuse-tumbleweed
118 #, fuzzy, no-wrap
119 #| msgid ""
120 #| "B<int fstatat(int >I<dirfd>B<, const char *>I<pathname>B<, struct stat *>I<statbuf>B<,>\n"
121 #| "B< int >I<flags>B<);>\n"
122 msgid ""
123 "B<int fstatat(int >I<dirfd>B<, const char *restrict >I<path>B<,>\n"
124 "B< struct stat *restrict >I<statbuf>B<, int >I<flags>B<);>\n"
125 msgstr ""
126 "B<int fstatat(int >I<dirfd>B<, const char *>I<pathname>B<, struct stat *>I<statbuf>B<,>\n"
127 "B< int >I<flags>B<);>\n"
128
129 #. type: Plain text
130 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
131 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
132 msgid ""
133 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
134 msgstr ""
135 "Requisitos de Macros de Prueba de Características para glibc (véase "
136 "B<feature_test_macros>(7)):"
137
138 #. type: Plain text
139 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
140 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
141 msgid "B<lstat>():"
142 msgstr "B<lstat>():"
143
144 #. _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED
145 #. type: Plain text
146 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
147 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
148 #, fuzzy, no-wrap
149 #| msgid ""
150 #| " _XOPEN_SOURCE E<gt>= 500\n"
151 #| " || /* Since glibc 2.12: */ _POSIX_C_SOURCE E<gt>= 200809L\n"
152 #| " || /* Glibc E<lt>= 2.19: */ _BSD_SOURCE\n"
153 msgid ""
154 " /* Since glibc 2.20 */ _DEFAULT_SOURCE\n"
155 " || _XOPEN_SOURCE E<gt>= 500\n"
156 " || /* Since glibc 2.10: */ _POSIX_C_SOURCE E<gt>= 200112L\n"
157 " || /* glibc 2.19 and earlier */ _BSD_SOURCE\n"
158 msgstr ""
159 " _XOPEN_SOURCE E<gt>= 500\n"
160 " || /* Desde glibc 2.12: */ _POSIX_C_SOURCE E<gt>= 200809L\n"
161 " || /* Glibc E<lt>= 2.19: */ _BSD_SOURCE\n"
162
163 #. type: Plain text
164 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
165 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
166 msgid "B<fstatat>():"
167 msgstr "B<fstatat>():"
168
169 #. type: Plain text
170 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
171 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
172 #, no-wrap
173 msgid ""
174 " Since glibc 2.10:\n"
175 " _POSIX_C_SOURCE E<gt>= 200809L\n"
176 " Before glibc 2.10:\n"
177 " _ATFILE_SOURCE\n"
178 msgstr ""
179 " Desde glibc 2.10:\n"
180 " _POSIX_C_SOURCE E<gt>= 200809L\n"
181 " Antes de glibc 2.10:\n"
182 " _ATFILE_SOURCE\n"
183
184 #. type: SH
185 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
186 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
187 #, no-wrap
188 msgid "DESCRIPTION"
189 msgstr "DESCRIPCIÓN"
190
191 #. type: Plain text
192 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
193 #: opensuse-tumbleweed
194 msgid ""
195 "These functions return information about a file, in the buffer pointed to by "
196 "I<statbuf>. No permissions are required on the file itself, but\\[em]in the "
197 "case of B<stat>(), B<fstatat>(), and B<lstat>()\\[em]execute (search) "
198 "permission is required on all of the directories in I<path> that lead to the "
199 "file."
200 msgstr ""
201
202 #. type: Plain text
203 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
204 #: opensuse-tumbleweed
205 msgid ""
206 "B<stat>() and B<fstatat>() retrieve information about the file pointed to "
207 "by I<path>; the differences for B<fstatat>() are described below."
208 msgstr ""
209
210 #. type: Plain text
211 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
212 #: opensuse-tumbleweed
213 #, fuzzy
214 #| msgid ""
215 #| "B<lstat> is identical to B<stat>, except in the case of a symbolic link, "
216 #| "where the link itself is stat-ed, not the file that it refers to."
217 msgid ""
218 "B<lstat>() is identical to B<stat>(), except that if I<path> is a symbolic "
219 "link, then it returns information about the link itself, not the file that "
220 "the link refers to."
221 msgstr ""
222 "B<lstat> es idéntico a B<stat>, salvo en caso de que se trate de un enlace "
223 "simbólico, en cuyo caso se examina el enlace mismo, no el fichero al que "
224 "hace referencia."
225
226 #. type: Plain text
227 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
228 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
229 #, fuzzy
230 #| msgid ""
231 #| "B<lstat> is identical to B<stat>, except in the case of a symbolic link, "
232 #| "where the link itself is stat-ed, not the file that it refers to."
233 msgid ""
234 "B<fstat>() is identical to B<stat>(), except that the file about which "
235 "information is to be retrieved is specified by the file descriptor I<fd>."
236 msgstr ""
237 "B<lstat> es idéntico a B<stat>, salvo en caso de que se trate de un enlace "
238 "simbólico, en cuyo caso se examina el enlace mismo, no el fichero al que "
239 "hace referencia."
240
241 #. type: SS
242 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
243 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
244 #, no-wrap
245 msgid "The stat structure"
246 msgstr ""
247
248 #. type: Plain text
249 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
250 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
251 #, fuzzy
252 #| msgid ""
253 #| "They all return a I<stat> structure, which contains the following fields:"
254 msgid ""
255 "All of these system calls return a I<stat> structure (see B<stat>(3type))."
256 msgstr ""
257 "Todos devuelven una estructura I<stat>, que contien los siguientes campos:"
258
259 #. Background: inode attributes are modified with i_mutex held, but
260 #. read by stat() without taking the mutex.
261 #. type: Plain text
262 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
263 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
264 msgid ""
265 "I<Note>: for performance and simplicity reasons, different fields in the "
266 "I<stat> structure may contain state information from different moments "
267 "during the execution of the system call. For example, if I<st_mode> or "
268 "I<st_uid> is changed by another process by calling B<chmod>(2) or "
269 "B<chown>(2), B<stat>() might return the old I<st_mode> together with the "
270 "new I<st_uid>, or the old I<st_uid> together with the new I<st_mode>."
271 msgstr ""
272
273 #. type: SS
274 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
275 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
276 #, no-wrap
277 msgid "fstatat()"
278 msgstr "fstatat()"
279
280 #. type: Plain text
281 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
282 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
283 msgid ""
284 "The B<fstatat>() system call is a more general interface for accessing file "
285 "information which can still provide exactly the behavior of each of "
286 "B<stat>(), B<lstat>(), and B<fstat>()."
287 msgstr ""
288
289 #. type: Plain text
290 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
291 #: opensuse-tumbleweed
292 msgid ""
293 "If I<path> is relative, then it is interpreted relative to the directory "
294 "referred to by the file descriptor I<dirfd> (rather than relative to the "
295 "current working directory of the calling process, as is done by B<stat>() "
296 "and B<lstat>() for a relative pathname)."
297 msgstr ""
298
299 #. type: Plain text
300 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
301 #: opensuse-tumbleweed
302 msgid ""
303 "If I<path> is relative and I<dirfd> is the special value B<AT_FDCWD>, then "
304 "I<path> is interpreted relative to the current working directory of the "
305 "calling process (like B<stat>() and B<lstat>())."
306 msgstr ""
307
308 #. type: Plain text
309 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
310 #: opensuse-tumbleweed
311 msgid "If I<path> is absolute, then I<dirfd> is ignored."
312 msgstr ""
313
314 #. type: Plain text
315 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
316 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
317 msgid ""
318 "I<flags> can either be 0, or include one or more of the following flags ORed:"
319 msgstr ""
320
321 #. type: TP
322 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
323 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
324 #, no-wrap
325 msgid "B<AT_EMPTY_PATH> (since Linux 2.6.39)"
326 msgstr "B<AT_EMPTY_PATH> (desde Linux 2.6.39)"
327
328 #. commit 65cfc6722361570bfe255698d9cd4dccaf47570d
329 #. Before glibc 2.16, defining _ATFILE_SOURCE sufficed
330 #. type: Plain text
331 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
332 #: opensuse-tumbleweed
333 msgid ""
334 "If I<path> is an empty string (or NULL, since Linux 6.11) operate on the "
335 "file referred to by I<dirfd> (which may have been obtained using the "
336 "B<open>(2) B<O_PATH> flag). In this case, I<dirfd> can refer to any type "
337 "of file, not just a directory, and the behavior of B<fstatat>() is similar "
338 "to that of B<fstat>(). If I<dirfd> is B<AT_FDCWD>, the call operates on the "
339 "current working directory. This flag is Linux-specific; define "
340 "B<_GNU_SOURCE> to obtain its definition."
341 msgstr ""
342
343 #. type: TP
344 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
345 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
346 #, no-wrap
347 msgid "B<AT_NO_AUTOMOUNT> (since Linux 2.6.38)"
348 msgstr "B<AT_NO_AUTOMOUNT> (desde Linux 2.6.38)"
349
350 #. type: Plain text
351 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
352 #: opensuse-tumbleweed
353 msgid ""
354 "Don't automount the terminal (\"basename\") component of I<path.> Since "
355 "Linux 3.1 this flag is ignored. Since Linux 4.11 this flag is implied."
356 msgstr ""
357
358 #. type: TP
359 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
360 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
361 #, no-wrap
362 msgid "B<AT_SYMLINK_NOFOLLOW>"
363 msgstr "B<AT_SYMLINK_NOFOLLOW>"
364
365 #. type: Plain text
366 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
367 #: opensuse-tumbleweed
368 msgid ""
369 "If I<path> is a symbolic link, do not dereference it: instead return "
370 "information about the link itself, like B<lstat>(). (By default, "
371 "B<fstatat>() dereferences symbolic links, like B<stat>().)"
372 msgstr ""
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 "See B<openat>(2) for an explanation of the need for B<fstatat>()."
378 msgstr ""
379
380 #. type: SH
381 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
382 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
383 #, no-wrap
384 msgid "RETURN VALUE"
385 msgstr "VALOR DEVUELTO"
386
387 #. type: Plain text
388 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
389 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
390 msgid ""
391 "On success, zero is returned. On error, -1 is returned, and I<errno> is set "
392 "to indicate the error."
393 msgstr ""
394 "En caso de éxito se devuelve cero. En caso de error se devuelve -1, y "
395 "I<errno> se configura para indicar el error."
396
397 #. type: SH
398 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
399 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
400 #, no-wrap
401 msgid "ERRORS"
402 msgstr "ERRORES"
403
404 #. type: TP
405 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
406 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
407 #, no-wrap
408 msgid "B<EACCES>"
409 msgstr "B<EACCES>"
410
411 #. type: Plain text
412 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
413 #: opensuse-tumbleweed
414 msgid ""
415 "Search permission is denied for one of the directories in the path prefix of "
416 "I<path>. (See also B<path_resolution>(7).)"
417 msgstr ""
418
419 #. type: TP
420 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
421 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
422 #, no-wrap
423 msgid "B<EBADF>"
424 msgstr "B<EBADF>"
425
426 #. type: Plain text
427 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
428 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
429 msgid "I<fd> is not a valid open file descriptor."
430 msgstr "I<fd> no es un descriptor de fichero válido."
431
432 #. type: Plain text
433 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
434 #: opensuse-tumbleweed
435 msgid ""
436 "(B<fstatat>()) I<path> is relative but I<dirfd> is neither B<AT_FDCWD> nor "
437 "a valid file descriptor."
438 msgstr ""
439
440 #. type: TP
441 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
442 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
443 #, no-wrap
444 msgid "B<EFAULT>"
445 msgstr "B<EFAULT>"
446
447 #. type: Plain text
448 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
449 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
450 msgid "Bad address."
451 msgstr "Dirección errónea."
452
453 #. type: TP
454 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
455 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
456 #, no-wrap
457 msgid "B<EINVAL>"
458 msgstr "B<EINVAL>"
459
460 #. type: Plain text
461 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
462 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
463 msgid "(B<fstatat>()) Invalid flag specified in I<flags>."
464 msgstr ""
465
466 #. type: TP
467 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
468 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
469 #, no-wrap
470 msgid "B<ELOOP>"
471 msgstr "B<ELOOP>"
472
473 #. type: Plain text
474 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
475 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
476 msgid "Too many symbolic links encountered while traversing the path."
477 msgstr "Se han encontrado demasiados enlaces simbólicos al recorrer el camino."
478
479 #. type: TP
480 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
481 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
482 #, no-wrap
483 msgid "B<ENAMETOOLONG>"
484 msgstr "B<ENAMETOOLONG>"
485
486 #. type: Plain text
487 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
488 #: opensuse-tumbleweed
489 #, fuzzy
490 #| msgid "File name too long."
491 msgid "I<path> is too long."
492 msgstr "Nombre de fichero demasiado largo."
493
494 #. type: TP
495 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
496 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
497 #, no-wrap
498 msgid "B<ENOENT>"
499 msgstr "B<ENOENT>"
500
501 #. type: Plain text
502 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
503 #: opensuse-tumbleweed
504 #, fuzzy
505 #| msgid ""
506 #| "A component of the path I<file_name> does not exist, or the path is an "
507 #| "empty string."
508 msgid "A component of I<path> does not exist or is a dangling symbolic link."
509 msgstr ""
510 "No existe un componente del camino I<file_name> o el camino es una cadena "
511 "vacía."
512
513 #. type: Plain text
514 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
515 #: opensuse-tumbleweed
516 msgid ""
517 "I<path> is an empty string and B<AT_EMPTY_PATH> was not specified in "
518 "I<flags>."
519 msgstr ""
520
521 #. type: TP
522 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
523 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
524 #, no-wrap
525 msgid "B<ENOMEM>"
526 msgstr "B<ENOMEM>"
527
528 #. type: Plain text
529 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
530 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
531 msgid "Out of memory (i.e., kernel memory)."
532 msgstr "Fuera de memoria (es decir, memoria del núcleo)."
533
534 #. type: TP
535 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
536 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
537 #, no-wrap
538 msgid "B<ENOTDIR>"
539 msgstr "B<ENOTDIR>"
540
541 #. type: Plain text
542 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
543 #: opensuse-tumbleweed
544 #, fuzzy
545 #| msgid "A component of the path is not a directory."
546 msgid "A component of the path prefix of I<path> is not a directory."
547 msgstr "Un componente del camino no es un directorio."
548
549 #. type: Plain text
550 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
551 #: opensuse-tumbleweed
552 msgid ""
553 "(B<fstatat>()) I<path> is relative and I<dirfd> is a file descriptor "
554 "referring to a file other than a directory."
555 msgstr ""
556
557 #. type: TP
558 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
559 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
560 #, no-wrap
561 msgid "B<EOVERFLOW>"
562 msgstr "B<EOVERFLOW>"
563
564 #. type: Plain text
565 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
566 #: opensuse-tumbleweed
567 msgid ""
568 "I<path> or I<fd> refers to a file whose size, inode number, or number of "
569 "blocks cannot be represented in, respectively, the types I<off_t>, I<ino_t>, "
570 "or I<blkcnt_t>. This error can occur when, for example, an application "
571 "compiled on a 32-bit platform without I<-D_FILE_OFFSET_BITS=64> calls "
572 "B<stat>() on a file whose size exceeds I<(1E<lt>E<lt>31)-1> bytes."
573 msgstr ""
574
575 #. type: SH
576 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
577 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
578 #, no-wrap
579 msgid "STANDARDS"
580 msgstr "ESTÁNDARES"
581
582 #. type: Plain text
583 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
584 #: opensuse-tumbleweed
585 msgid "POSIX.1-2024."
586 msgstr "POSIX.1-2024."
587
588 #. type: SH
589 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
590 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
591 #, no-wrap
592 msgid "HISTORY"
593 msgstr "HISTORIAL"
594
595 #. type: TP
596 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
597 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
598 #, fuzzy, no-wrap
599 #| msgid "B<lstat>():"
600 msgid "B<stat>()"
601 msgstr "B<lstat>():"
602
603 #. type: TQ
604 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
605 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
606 #, fuzzy, no-wrap
607 #| msgid "B<fstat>(2)"
608 msgid "B<fstat>()"
609 msgstr "B<fstat>(2)"
610
611 #. type: TQ
612 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
613 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
614 #, fuzzy, no-wrap
615 #| msgid "B<lstat>():"
616 msgid "B<lstat>()"
617 msgstr "B<lstat>():"
618
619 #. SVr4 documents additional
620 #. .BR fstat ()
621 #. error conditions EINTR, ENOLINK, and EOVERFLOW. SVr4
622 #. documents additional
623 #. .BR stat ()
624 #. and
625 #. .BR lstat ()
626 #. error conditions EINTR, EMULTIHOP, ENOLINK, and EOVERFLOW.
627 #. type: Plain text
628 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
629 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
630 msgid "SVr4, 4.3BSD, POSIX.1-2001."
631 msgstr "SVr4, 4.3BSD, POSIX.1-2001."
632
633 #. type: TP
634 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
635 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
636 #, fuzzy, no-wrap
637 #| msgid "B<fstatat>():"
638 msgid "B<fstatat>()"
639 msgstr "B<fstatat>():"
640
641 #. type: Plain text
642 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
643 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
644 msgid "POSIX.1-2008. Linux 2.6.16, glibc 2.4."
645 msgstr "POSIX.1-2008. Linux 2.6.16, glibc 2.4."
646
647 #. type: Plain text
648 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
649 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
650 msgid ""
651 "According to POSIX.1-2001, B<lstat>() on a symbolic link need return valid "
652 "information only in the I<st_size> field and the file type of the I<st_mode> "
653 "field of the I<stat> structure. POSIX.1-2008 tightens the specification, "
654 "requiring B<lstat>() to return valid information in all fields except the "
655 "mode bits in I<st_mode>."
656 msgstr ""
657
658 #. type: Plain text
659 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
660 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
661 msgid ""
662 "Use of the I<st_blocks> and I<st_blksize> fields may be less portable. "
663 "(They were introduced in BSD. The interpretation differs between systems, "
664 "and possibly on a single system when NFS mounts are involved.)"
665 msgstr ""
666
667 #. type: SS
668 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
669 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
670 #, no-wrap
671 msgid "C library/kernel differences"
672 msgstr "Diferencias núcleo / biblioteca C"
673
674 #. See include/asm-i386/stat.h in the Linux 2.4 source code for the
675 #. various versions of the structure definitions
676 #. type: Plain text
677 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
678 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
679 msgid ""
680 "Over time, increases in the size of the I<stat> structure have led to three "
681 "successive versions of B<stat>(): I<sys_stat>() (slot I<__NR_oldstat>), "
682 "I<sys_newstat>() (slot I<__NR_stat>), and I<sys_stat64()> (slot "
683 "I<__NR_stat64>) on 32-bit platforms such as i386. The first two versions "
684 "were already present in Linux 1.0 (albeit with different names); the last "
685 "was added in Linux 2.4. Similar remarks apply for B<fstat>() and "
686 "B<lstat>()."
687 msgstr ""
688
689 #. type: Plain text
690 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
691 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
692 msgid ""
693 "The kernel-internal versions of the I<stat> structure dealt with by the "
694 "different versions are, respectively:"
695 msgstr ""
696
697 #. type: TP
698 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
699 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
700 #, no-wrap
701 msgid "I<__old_kernel_stat>"
702 msgstr "I<__old_kernel_stat>"
703
704 #. type: Plain text
705 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
706 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
707 msgid "The original structure, with rather narrow fields, and no padding."
708 msgstr ""
709
710 #. type: TP
711 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
712 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
713 #, no-wrap
714 msgid "I<stat>"
715 msgstr "I<stat>"
716
717 #. type: Plain text
718 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
719 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
720 msgid ""
721 "Larger I<st_ino> field and padding added to various parts of the structure "
722 "to allow for future expansion."
723 msgstr ""
724
725 #. type: TP
726 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
727 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
728 #, no-wrap
729 msgid "I<stat64>"
730 msgstr "I<stat64>"
731
732 #. type: Plain text
733 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
734 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
735 msgid ""
736 "Even larger I<st_ino> field, larger I<st_uid> and I<st_gid> fields to "
737 "accommodate the Linux-2.4 expansion of UIDs and GIDs to 32 bits, and various "
738 "other enlarged fields and further padding in the structure. (Various "
739 "padding bytes were eventually consumed in Linux 2.6, with the advent of 32-"
740 "bit device IDs and nanosecond components for the timestamp fields.)"
741 msgstr ""
742
743 #
744 #
745 #
746 #
747 #
748 #
749 #. #-#-#-#-# archlinux: stat.2.pot (PACKAGE VERSION) #-#-#-#-#
750 #. A note from Andries Brouwer, July 2007
751 #. > Is the story not rather more complicated for some calls like
752 #. > stat(2)?
753 #. Yes and no, mostly no. See "/usr/include/sys/stat.h".
754 #. The idea is here not so much that syscalls change, but that
755 #. the definitions of struct stat and of the types dev_t and mode_t change.
756 #. This means that libc (even if it does not call the kernel
757 #. but only calls some internal function) must know what the
758 #. format of dev_t or of struct stat is.
759 #. The communication between the application and libc goes via
760 #. the include file <sys/stat.h> that defines a _STAT_VER and
761 #. _MKNOD_VER describing the layout of the data that user space
762 #. uses. Each (almost each) occurrence of stat() is replaced by
763 #. an occurrence of xstat() where the first parameter of xstat()
764 #. is this version number _STAT_VER.
765 #. Now, also the definitions used by the kernel change.
766 #. But glibc copes with this in the standard way, and the
767 #. struct stat as returned by the kernel is repacked into
768 #. the struct stat as expected by the application.
769 #. Thus, _STAT_VER and this setup cater for the application-libc
770 #. interface, rather than the libc-kernel interface.
771 #. (Note that the details depend on gcc being used as c compiler.)
772 #. type: Plain text
773 #. #-#-#-#-# debian-trixie: stat.2.pot (PACKAGE VERSION) #-#-#-#-#
774 #. A note from Andries Brouwer, July 2007
775 #. > Is the story not rather more complicated for some calls like
776 #. > stat(2)?
777 #. Yes and no, mostly no. See /usr/include/sys/stat.h .
778 #. The idea is here not so much that syscalls change, but that
779 #. the definitions of struct stat and of the types dev_t and mode_t change.
780 #. This means that libc (even if it does not call the kernel
781 #. but only calls some internal function) must know what the
782 #. format of dev_t or of struct stat is.
783 #. The communication between the application and libc goes via
784 #. the include file <sys/stat.h> that defines a _STAT_VER and
785 #. _MKNOD_VER describing the layout of the data that user space
786 #. uses. Each (almost each) occurrence of stat() is replaced by
787 #. an occurrence of xstat() where the first parameter of xstat()
788 #. is this version number _STAT_VER.
789 #. Now, also the definitions used by the kernel change.
790 #. But glibc copes with this in the standard way, and the
791 #. struct stat as returned by the kernel is repacked into
792 #. the struct stat as expected by the application.
793 #. Thus, _STAT_VER and this setup cater for the application-libc
794 #. interface, rather than the libc-kernel interface.
795 #. (Note that the details depend on gcc being used as c compiler.)
796 #. type: Plain text
797 #. #-#-#-#-# debian-unstable: stat.2.pot (PACKAGE VERSION) #-#-#-#-#
798 #. A note from Andries Brouwer, July 2007
799 #. > Is the story not rather more complicated for some calls like
800 #. > stat(2)?
801 #. Yes and no, mostly no. See "/usr/include/sys/stat.h".
802 #. The idea is here not so much that syscalls change, but that
803 #. the definitions of struct stat and of the types dev_t and mode_t change.
804 #. This means that libc (even if it does not call the kernel
805 #. but only calls some internal function) must know what the
806 #. format of dev_t or of struct stat is.
807 #. The communication between the application and libc goes via
808 #. the include file <sys/stat.h> that defines a _STAT_VER and
809 #. _MKNOD_VER describing the layout of the data that user space
810 #. uses. Each (almost each) occurrence of stat() is replaced by
811 #. an occurrence of xstat() where the first parameter of xstat()
812 #. is this version number _STAT_VER.
813 #. Now, also the definitions used by the kernel change.
814 #. But glibc copes with this in the standard way, and the
815 #. struct stat as returned by the kernel is repacked into
816 #. the struct stat as expected by the application.
817 #. Thus, _STAT_VER and this setup cater for the application-libc
818 #. interface, rather than the libc-kernel interface.
819 #. (Note that the details depend on gcc being used as c compiler.)
820 #. type: Plain text
821 #. #-#-#-#-# fedora-44: stat.2.pot (PACKAGE VERSION) #-#-#-#-#
822 #. A note from Andries Brouwer, July 2007
823 #. > Is the story not rather more complicated for some calls like
824 #. > stat(2)?
825 #. Yes and no, mostly no. See /usr/include/sys/stat.h .
826 #. The idea is here not so much that syscalls change, but that
827 #. the definitions of struct stat and of the types dev_t and mode_t change.
828 #. This means that libc (even if it does not call the kernel
829 #. but only calls some internal function) must know what the
830 #. format of dev_t or of struct stat is.
831 #. The communication between the application and libc goes via
832 #. the include file <sys/stat.h> that defines a _STAT_VER and
833 #. _MKNOD_VER describing the layout of the data that user space
834 #. uses. Each (almost each) occurrence of stat() is replaced by
835 #. an occurrence of xstat() where the first parameter of xstat()
836 #. is this version number _STAT_VER.
837 #. Now, also the definitions used by the kernel change.
838 #. But glibc copes with this in the standard way, and the
839 #. struct stat as returned by the kernel is repacked into
840 #. the struct stat as expected by the application.
841 #. Thus, _STAT_VER and this setup cater for the application-libc
842 #. interface, rather than the libc-kernel interface.
843 #. (Note that the details depend on gcc being used as c compiler.)
844 #. type: Plain text
845 #. #-#-#-#-# fedora-rawhide: stat.2.pot (PACKAGE VERSION) #-#-#-#-#
846 #. A note from Andries Brouwer, July 2007
847 #. > Is the story not rather more complicated for some calls like
848 #. > stat(2)?
849 #. Yes and no, mostly no. See /usr/include/sys/stat.h .
850 #. The idea is here not so much that syscalls change, but that
851 #. the definitions of struct stat and of the types dev_t and mode_t change.
852 #. This means that libc (even if it does not call the kernel
853 #. but only calls some internal function) must know what the
854 #. format of dev_t or of struct stat is.
855 #. The communication between the application and libc goes via
856 #. the include file <sys/stat.h> that defines a _STAT_VER and
857 #. _MKNOD_VER describing the layout of the data that user space
858 #. uses. Each (almost each) occurrence of stat() is replaced by
859 #. an occurrence of xstat() where the first parameter of xstat()
860 #. is this version number _STAT_VER.
861 #. Now, also the definitions used by the kernel change.
862 #. But glibc copes with this in the standard way, and the
863 #. struct stat as returned by the kernel is repacked into
864 #. the struct stat as expected by the application.
865 #. Thus, _STAT_VER and this setup cater for the application-libc
866 #. interface, rather than the libc-kernel interface.
867 #. (Note that the details depend on gcc being used as c compiler.)
868 #. type: Plain text
869 #. #-#-#-#-# mageia-cauldron: stat.2.pot (PACKAGE VERSION) #-#-#-#-#
870 #. A note from Andries Brouwer, July 2007
871 #. > Is the story not rather more complicated for some calls like
872 #. > stat(2)?
873 #. Yes and no, mostly no. See "/usr/include/sys/stat.h".
874 #. The idea is here not so much that syscalls change, but that
875 #. the definitions of struct stat and of the types dev_t and mode_t change.
876 #. This means that libc (even if it does not call the kernel
877 #. but only calls some internal function) must know what the
878 #. format of dev_t or of struct stat is.
879 #. The communication between the application and libc goes via
880 #. the include file <sys/stat.h> that defines a _STAT_VER and
881 #. _MKNOD_VER describing the layout of the data that user space
882 #. uses. Each (almost each) occurrence of stat() is replaced by
883 #. an occurrence of xstat() where the first parameter of xstat()
884 #. is this version number _STAT_VER.
885 #. Now, also the definitions used by the kernel change.
886 #. But glibc copes with this in the standard way, and the
887 #. struct stat as returned by the kernel is repacked into
888 #. the struct stat as expected by the application.
889 #. Thus, _STAT_VER and this setup cater for the application-libc
890 #. interface, rather than the libc-kernel interface.
891 #. (Note that the details depend on gcc being used as c compiler.)
892 #. type: Plain text
893 #. #-#-#-#-# opensuse-leap-16-1: stat.2.pot (PACKAGE VERSION) #-#-#-#-#
894 #. A note from Andries Brouwer, July 2007
895 #. > Is the story not rather more complicated for some calls like
896 #. > stat(2)?
897 #. Yes and no, mostly no. See "/usr/include/sys/stat.h".
898 #. The idea is here not so much that syscalls change, but that
899 #. the definitions of struct stat and of the types dev_t and mode_t change.
900 #. This means that libc (even if it does not call the kernel
901 #. but only calls some internal function) must know what the
902 #. format of dev_t or of struct stat is.
903 #. The communication between the application and libc goes via
904 #. the include file <sys/stat.h> that defines a _STAT_VER and
905 #. _MKNOD_VER describing the layout of the data that user space
906 #. uses. Each (almost each) occurrence of stat() is replaced by
907 #. an occurrence of xstat() where the first parameter of xstat()
908 #. is this version number _STAT_VER.
909 #. Now, also the definitions used by the kernel change.
910 #. But glibc copes with this in the standard way, and the
911 #. struct stat as returned by the kernel is repacked into
912 #. the struct stat as expected by the application.
913 #. Thus, _STAT_VER and this setup cater for the application-libc
914 #. interface, rather than the libc-kernel interface.
915 #. (Note that the details depend on gcc being used as c compiler.)
916 #. type: Plain text
917 #. #-#-#-#-# opensuse-tumbleweed: stat.2.pot (PACKAGE VERSION) #-#-#-#-#
918 #. A note from Andries Brouwer, July 2007
919 #. > Is the story not rather more complicated for some calls like
920 #. > stat(2)?
921 #. Yes and no, mostly no. See "/usr/include/sys/stat.h".
922 #. The idea is here not so much that syscalls change, but that
923 #. the definitions of struct stat and of the types dev_t and mode_t change.
924 #. This means that libc (even if it does not call the kernel
925 #. but only calls some internal function) must know what the
926 #. format of dev_t or of struct stat is.
927 #. The communication between the application and libc goes via
928 #. the include file <sys/stat.h> that defines a _STAT_VER and
929 #. _MKNOD_VER describing the layout of the data that user space
930 #. uses. Each (almost each) occurrence of stat() is replaced by
931 #. an occurrence of xstat() where the first parameter of xstat()
932 #. is this version number _STAT_VER.
933 #. Now, also the definitions used by the kernel change.
934 #. But glibc copes with this in the standard way, and the
935 #. struct stat as returned by the kernel is repacked into
936 #. the struct stat as expected by the application.
937 #. Thus, _STAT_VER and this setup cater for the application-libc
938 #. interface, rather than the libc-kernel interface.
939 #. (Note that the details depend on gcc being used as c compiler.)
940 #. type: Plain text
941 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
942 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
943 msgid ""
944 "The glibc B<stat>() wrapper function hides these details from applications, "
945 "invoking the most recent version of the system call provided by the kernel, "
946 "and repacking the returned information if required for old binaries."
947 msgstr ""
948
949 #. type: Plain text
950 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
951 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
952 msgid ""
953 "On modern 64-bit systems, life is simpler: there is a single B<stat>() "
954 "system call and the kernel deals with a I<stat> structure that contains "
955 "fields of a sufficient size."
956 msgstr ""
957
958 #. strace(1) shows the name "newfstatat" on x86-64
959 #. type: Plain text
960 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
961 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
962 msgid ""
963 "The underlying system call employed by the glibc B<fstatat>() wrapper "
964 "function is actually called B<fstatat64>() or, on some architectures, "
965 "B<newfstatat>()."
966 msgstr ""
967
968 #. type: SH
969 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
970 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
971 #, no-wrap
972 msgid "EXAMPLES"
973 msgstr "EJEMPLOS"
974
975 #. type: Plain text
976 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
977 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
978 msgid ""
979 "The following program calls B<lstat>() and displays selected fields in the "
980 "returned I<stat> structure."
981 msgstr ""
982
983 #. type: Plain text
984 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
985 #: opensuse-tumbleweed
986 #, no-wrap
987 msgid ""
988 "#include E<lt>stdint.hE<gt>\n"
989 "#include E<lt>stdio.hE<gt>\n"
990 "#include E<lt>stdlib.hE<gt>\n"
991 "#include E<lt>sys/stat.hE<gt>\n"
992 "#include E<lt>sys/sysmacros.hE<gt>\n"
993 "#include E<lt>time.hE<gt>\n"
994 "\\&\n"
995 "int\n"
996 "main(int argc, char *argv[])\n"
997 "{\n"
998 " struct stat sb;\n"
999 "\\&\n"
1000 " if (argc != 2) {\n"
1001 " fprintf(stderr, \"Usage: %s E<lt>pathE<gt>\\[rs]n\", argv[0]);\n"
1002 " exit(EXIT_FAILURE);\n"
1003 " }\n"
1004 "\\&\n"
1005 " if (lstat(argv[1], &sb) == -1) {\n"
1006 " perror(\"lstat\");\n"
1007 " exit(EXIT_FAILURE);\n"
1008 " }\n"
1009 "\\&\n"
1010 " printf(\"ID of containing device: [%x,%x]\\[rs]n\",\n"
1011 " major(sb.st_dev),\n"
1012 " minor(sb.st_dev));\n"
1013 "\\&\n"
1014 " printf(\"File type: \");\n"
1015 "\\&\n"
1016 " switch (sb.st_mode & S_IFMT) {\n"
1017 " case S_IFBLK: printf(\"block device\\[rs]n\"); break;\n"
1018 " case S_IFCHR: printf(\"character device\\[rs]n\"); break;\n"
1019 " case S_IFDIR: printf(\"directory\\[rs]n\"); break;\n"
1020 " case S_IFIFO: printf(\"FIFO/pipe\\[rs]n\"); break;\n"
1021 " case S_IFLNK: printf(\"symlink\\[rs]n\"); break;\n"
1022 " case S_IFREG: printf(\"regular file\\[rs]n\"); break;\n"
1023 " case S_IFSOCK: printf(\"socket\\[rs]n\"); break;\n"
1024 " default: printf(\"unknown?\\[rs]n\"); break;\n"
1025 " }\n"
1026 "\\&\n"
1027 " printf(\"I-node number: %ju\\[rs]n\", (uintmax_t) sb.st_ino);\n"
1028 "\\&\n"
1029 " printf(\"Mode: %jo (octal)\\[rs]n\",\n"
1030 " (uintmax_t) sb.st_mode);\n"
1031 "\\&\n"
1032 " printf(\"Link count: %ju\\[rs]n\", (uintmax_t) sb.st_nlink);\n"
1033 " printf(\"Ownership: UID=%ju GID=%ju\\[rs]n\",\n"
1034 " (uintmax_t) sb.st_uid, (uintmax_t) sb.st_gid);\n"
1035 "\\&\n"
1036 " printf(\"Preferred I/O block size: %jd bytes\\[rs]n\",\n"
1037 " (intmax_t) sb.st_blksize);\n"
1038 " printf(\"File size: %jd bytes\\[rs]n\",\n"
1039 " (intmax_t) sb.st_size);\n"
1040 " printf(\"Blocks allocated: %jd\\[rs]n\",\n"
1041 " (intmax_t) sb.st_blocks);\n"
1042 "\\&\n"
1043 " printf(\"Last status change: %s\", ctime(&sb.st_ctime));\n"
1044 " printf(\"Last file access: %s\", ctime(&sb.st_atime));\n"
1045 " printf(\"Last file modification: %s\", ctime(&sb.st_mtime));\n"
1046 "\\&\n"
1047 " exit(EXIT_SUCCESS);\n"
1048 "}\n"
1049 msgstr ""
1050
1051 #. SRC END
1052 #. type: SH
1053 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1054 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1055 #, no-wrap
1056 msgid "SEE ALSO"
1057 msgstr "VÉASE TAMBIÉN"
1058
1059 #. type: Plain text
1060 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1061 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1062 #, fuzzy
1063 #| msgid ""
1064 #| "B<ls>(1), B<stat>(1), B<access>(2), B<chmod>(2), B<chown>(2), "
1065 #| "B<readlink>(2), B<statx>(2), B<utime>(2), B<capabilities>(7), "
1066 #| "B<inode>(7), B<symlink>(7)"
1067 msgid ""
1068 "B<ls>(1), B<stat>(1), B<access>(2), B<chmod>(2), B<chown>(2), "
1069 "B<readlink>(2), B<statx>(2), B<utime>(2), B<stat>(3type), "
1070 "B<capabilities>(7), B<inode>(7), B<symlink>(7)"
1071 msgstr ""
1072 "B<ls>(1), B<stat>(1), B<access>(2), B<chmod>(2), B<chown>(2), "
1073 "B<readlink>(2), B<statx>(2), B<utime>(2), B<capabilities>(7), B<inode>(7), "
1074 "B<symlink>(7)"
1075
1076 #. type: TH
1077 #: debian-trixie
1078 #, no-wrap
1079 msgid "2024-06-15"
1080 msgstr "15 Junio 2024"
1081
1082 #. type: TH
1083 #: debian-trixie
1084 #, no-wrap
1085 msgid "Linux man-pages 6.9.1"
1086 msgstr "Páginas de Manual de Linux 6.9.1"
1087
1088 #. type: Plain text
1089 #: debian-trixie
1090 msgid "Standard C library (I<libc>, I<-lc>)"
1091 msgstr "Biblioteca Estándar C (I<libc>, I<-lc>)"
1092
1093 #. type: Plain text
1094 #: debian-trixie fedora-44 fedora-rawhide
1095 #, fuzzy, no-wrap
1096 #| msgid ""
1097 #| "B<int stat(const char *>I<pathname>B<, struct stat *>I<statbuf>B<);>\n"
1098 #| "B<int fstat(int >I<fd>B<, struct stat *>I<statbuf>B<);>\n"
1099 #| "B<int lstat(const char *>I<pathname>B<, struct stat *>I<statbuf>B<);>\n"
1100 msgid ""
1101 "B<int stat(const char *restrict >I<pathname>B<,>\n"
1102 "B< struct stat *restrict >I<statbuf>B<);>\n"
1103 "B<int fstat(int >I<fd>B<, struct stat *>I<statbuf>B<);>\n"
1104 "B<int lstat(const char *restrict >I<pathname>B<,>\n"
1105 "B< struct stat *restrict >I<statbuf>B<);>\n"
1106 msgstr ""
1107 "B<int stat(const char *>I<pathname>B<, struct stat *>I<statbuf>B<);>\n"
1108 "B<int fstat(int >I<fd>B<, struct stat *>I<statbuf>B<);>\n"
1109 "B<int lstat(const char *>I<pathname>B<, struct stat *>I<statbuf>B<);>\n"
1110
1111 #. type: Plain text
1112 #: debian-trixie fedora-44 fedora-rawhide
1113 #, fuzzy, no-wrap
1114 #| msgid ""
1115 #| "B<int fstatat(int >I<dirfd>B<, const char *>I<pathname>B<, struct stat *>I<statbuf>B<,>\n"
1116 #| "B< int >I<flags>B<);>\n"
1117 msgid ""
1118 "B<int fstatat(int >I<dirfd>B<, const char *restrict >I<pathname>B<,>\n"
1119 "B< struct stat *restrict >I<statbuf>B<, int >I<flags>B<);>\n"
1120 msgstr ""
1121 "B<int fstatat(int >I<dirfd>B<, const char *>I<pathname>B<, struct stat *>I<statbuf>B<,>\n"
1122 "B< int >I<flags>B<);>\n"
1123
1124 #. type: Plain text
1125 #: debian-trixie fedora-44 fedora-rawhide
1126 msgid ""
1127 "These functions return information about a file, in the buffer pointed to by "
1128 "I<statbuf>. No permissions are required on the file itself, but\\[em]in the "
1129 "case of B<stat>(), B<fstatat>(), and B<lstat>()\\[em]execute (search) "
1130 "permission is required on all of the directories in I<pathname> that lead to "
1131 "the file."
1132 msgstr ""
1133
1134 #. type: Plain text
1135 #: debian-trixie fedora-44 fedora-rawhide
1136 msgid ""
1137 "B<stat>() and B<fstatat>() retrieve information about the file pointed to "
1138 "by I<pathname>; the differences for B<fstatat>() are described below."
1139 msgstr ""
1140
1141 #. type: Plain text
1142 #: debian-trixie fedora-44 fedora-rawhide
1143 #, fuzzy
1144 #| msgid ""
1145 #| "B<lstat> is identical to B<stat>, except in the case of a symbolic link, "
1146 #| "where the link itself is stat-ed, not the file that it refers to."
1147 msgid ""
1148 "B<lstat>() is identical to B<stat>(), except that if I<pathname> is a "
1149 "symbolic link, then it returns information about the link itself, not the "
1150 "file that the link refers to."
1151 msgstr ""
1152 "B<lstat> es idéntico a B<stat>, salvo en caso de que se trate de un enlace "
1153 "simbólico, en cuyo caso se examina el enlace mismo, no el fichero al que "
1154 "hace referencia."
1155
1156 #. type: Plain text
1157 #: debian-trixie fedora-44 fedora-rawhide
1158 msgid ""
1159 "If the pathname given in I<pathname> is relative, then it is interpreted "
1160 "relative to the directory referred to by the file descriptor I<dirfd> "
1161 "(rather than relative to the current working directory of the calling "
1162 "process, as is done by B<stat>() and B<lstat>() for a relative pathname)."
1163 msgstr ""
1164
1165 #. type: Plain text
1166 #: debian-trixie fedora-44 fedora-rawhide
1167 msgid ""
1168 "If I<pathname> is relative and I<dirfd> is the special value B<AT_FDCWD>, "
1169 "then I<pathname> is interpreted relative to the current working directory of "
1170 "the calling process (like B<stat>() and B<lstat>())."
1171 msgstr ""
1172
1173 #. type: Plain text
1174 #: debian-trixie fedora-44 fedora-rawhide
1175 msgid "If I<pathname> is absolute, then I<dirfd> is ignored."
1176 msgstr ""
1177
1178 #. commit 65cfc6722361570bfe255698d9cd4dccaf47570d
1179 #. Before glibc 2.16, defining _ATFILE_SOURCE sufficed
1180 #. type: Plain text
1181 #: debian-trixie
1182 msgid ""
1183 "If I<pathname> is an empty string, operate on the file referred to by "
1184 "I<dirfd> (which may have been obtained using the B<open>(2) B<O_PATH> "
1185 "flag). In this case, I<dirfd> can refer to any type of file, not just a "
1186 "directory, and the behavior of B<fstatat>() is similar to that of "
1187 "B<fstat>(). If I<dirfd> is B<AT_FDCWD>, the call operates on the current "
1188 "working directory. This flag is Linux-specific; define B<_GNU_SOURCE> to "
1189 "obtain its definition."
1190 msgstr ""
1191
1192 #. type: Plain text
1193 #: debian-trixie fedora-44 fedora-rawhide
1194 msgid ""
1195 "Don't automount the terminal (\"basename\") component of I<pathname.> Since "
1196 "Linux 3.1 this flag is ignored. Since Linux 4.11 this flag is implied."
1197 msgstr ""
1198
1199 #. type: Plain text
1200 #: debian-trixie fedora-44 fedora-rawhide
1201 msgid ""
1202 "If I<pathname> is a symbolic link, do not dereference it: instead return "
1203 "information about the link itself, like B<lstat>(). (By default, "
1204 "B<fstatat>() dereferences symbolic links, like B<stat>().)"
1205 msgstr ""
1206
1207 #. type: Plain text
1208 #: debian-trixie fedora-44 fedora-rawhide
1209 msgid ""
1210 "Search permission is denied for one of the directories in the path prefix of "
1211 "I<pathname>. (See also B<path_resolution>(7).)"
1212 msgstr ""
1213
1214 #. type: Plain text
1215 #: debian-trixie fedora-44 fedora-rawhide
1216 msgid ""
1217 "(B<fstatat>()) I<pathname> is relative but I<dirfd> is neither B<AT_FDCWD> "
1218 "nor a valid file descriptor."
1219 msgstr ""
1220
1221 #. type: Plain text
1222 #: debian-trixie fedora-44 fedora-rawhide
1223 #, fuzzy
1224 #| msgid "File name too long."
1225 msgid "I<pathname> is too long."
1226 msgstr "Nombre de fichero demasiado largo."
1227
1228 #. type: Plain text
1229 #: debian-trixie fedora-44 fedora-rawhide
1230 #, fuzzy
1231 #| msgid ""
1232 #| "A component of the path I<file_name> does not exist, or the path is an "
1233 #| "empty string."
1234 msgid ""
1235 "A component of I<pathname> does not exist or is a dangling symbolic link."
1236 msgstr ""
1237 "No existe un componente del camino I<file_name> o el camino es una cadena "
1238 "vacía."
1239
1240 #. type: Plain text
1241 #: debian-trixie fedora-44 fedora-rawhide
1242 msgid ""
1243 "I<pathname> is an empty string and B<AT_EMPTY_PATH> was not specified in "
1244 "I<flags>."
1245 msgstr ""
1246
1247 #. type: Plain text
1248 #: debian-trixie fedora-44 fedora-rawhide
1249 #, fuzzy
1250 #| msgid "A component of the path is not a directory."
1251 msgid "A component of the path prefix of I<pathname> is not a directory."
1252 msgstr "Un componente del camino no es un directorio."
1253
1254 #. type: Plain text
1255 #: debian-trixie fedora-44 fedora-rawhide
1256 msgid ""
1257 "(B<fstatat>()) I<pathname> is relative and I<dirfd> is a file descriptor "
1258 "referring to a file other than a directory."
1259 msgstr ""
1260
1261 #. type: Plain text
1262 #: debian-trixie fedora-44 fedora-rawhide
1263 msgid ""
1264 "I<pathname> or I<fd> refers to a file whose size, inode number, or number of "
1265 "blocks cannot be represented in, respectively, the types I<off_t>, I<ino_t>, "
1266 "or I<blkcnt_t>. This error can occur when, for example, an application "
1267 "compiled on a 32-bit platform without I<-D_FILE_OFFSET_BITS=64> calls "
1268 "B<stat>() on a file whose size exceeds I<(1E<lt>E<lt>31)-1> bytes."
1269 msgstr ""
1270
1271 #. type: Plain text
1272 #: debian-trixie fedora-44 fedora-rawhide
1273 msgid "POSIX.1-2008."
1274 msgstr "POSIX.1-2008."
1275
1276 #. type: Plain text
1277 #: debian-trixie fedora-44 fedora-rawhide
1278 #, no-wrap
1279 msgid ""
1280 "#include E<lt>stdint.hE<gt>\n"
1281 "#include E<lt>stdio.hE<gt>\n"
1282 "#include E<lt>stdlib.hE<gt>\n"
1283 "#include E<lt>sys/stat.hE<gt>\n"
1284 "#include E<lt>sys/sysmacros.hE<gt>\n"
1285 "#include E<lt>time.hE<gt>\n"
1286 "\\&\n"
1287 "int\n"
1288 "main(int argc, char *argv[])\n"
1289 "{\n"
1290 " struct stat sb;\n"
1291 "\\&\n"
1292 " if (argc != 2) {\n"
1293 " fprintf(stderr, \"Usage: %s E<lt>pathnameE<gt>\\[rs]n\", argv[0]);\n"
1294 " exit(EXIT_FAILURE);\n"
1295 " }\n"
1296 "\\&\n"
1297 " if (lstat(argv[1], &sb) == -1) {\n"
1298 " perror(\"lstat\");\n"
1299 " exit(EXIT_FAILURE);\n"
1300 " }\n"
1301 "\\&\n"
1302 " printf(\"ID of containing device: [%x,%x]\\[rs]n\",\n"
1303 " major(sb.st_dev),\n"
1304 " minor(sb.st_dev));\n"
1305 "\\&\n"
1306 " printf(\"File type: \");\n"
1307 "\\&\n"
1308 " switch (sb.st_mode & S_IFMT) {\n"
1309 " case S_IFBLK: printf(\"block device\\[rs]n\"); break;\n"
1310 " case S_IFCHR: printf(\"character device\\[rs]n\"); break;\n"
1311 " case S_IFDIR: printf(\"directory\\[rs]n\"); break;\n"
1312 " case S_IFIFO: printf(\"FIFO/pipe\\[rs]n\"); break;\n"
1313 " case S_IFLNK: printf(\"symlink\\[rs]n\"); break;\n"
1314 " case S_IFREG: printf(\"regular file\\[rs]n\"); break;\n"
1315 " case S_IFSOCK: printf(\"socket\\[rs]n\"); break;\n"
1316 " default: printf(\"unknown?\\[rs]n\"); break;\n"
1317 " }\n"
1318 "\\&\n"
1319 " printf(\"I-node number: %ju\\[rs]n\", (uintmax_t) sb.st_ino);\n"
1320 "\\&\n"
1321 " printf(\"Mode: %jo (octal)\\[rs]n\",\n"
1322 " (uintmax_t) sb.st_mode);\n"
1323 "\\&\n"
1324 " printf(\"Link count: %ju\\[rs]n\", (uintmax_t) sb.st_nlink);\n"
1325 " printf(\"Ownership: UID=%ju GID=%ju\\[rs]n\",\n"
1326 " (uintmax_t) sb.st_uid, (uintmax_t) sb.st_gid);\n"
1327 "\\&\n"
1328 " printf(\"Preferred I/O block size: %jd bytes\\[rs]n\",\n"
1329 " (intmax_t) sb.st_blksize);\n"
1330 " printf(\"File size: %jd bytes\\[rs]n\",\n"
1331 " (intmax_t) sb.st_size);\n"
1332 " printf(\"Blocks allocated: %jd\\[rs]n\",\n"
1333 " (intmax_t) sb.st_blocks);\n"
1334 "\\&\n"
1335 " printf(\"Last status change: %s\", ctime(&sb.st_ctime));\n"
1336 " printf(\"Last file access: %s\", ctime(&sb.st_atime));\n"
1337 " printf(\"Last file modification: %s\", ctime(&sb.st_mtime));\n"
1338 "\\&\n"
1339 " exit(EXIT_SUCCESS);\n"
1340 "}\n"
1341 msgstr ""
1342
1343 #. type: TH
1344 #: fedora-44 fedora-rawhide
1345 #, no-wrap
1346 msgid "2025-01-09"
1347 msgstr "9 Enero 2025"
1348
1349 #. type: TH
1350 #: fedora-44 fedora-rawhide
1351 #, no-wrap
1352 msgid "Linux man-pages 6.13"
1353 msgstr "Páginas de Manual de Linux 6.13"
1354
1355 #. commit 65cfc6722361570bfe255698d9cd4dccaf47570d
1356 #. Before glibc 2.16, defining _ATFILE_SOURCE sufficed
1357 #. type: Plain text
1358 #: fedora-44 fedora-rawhide
1359 msgid ""
1360 "If I<pathname> is an empty string (or NULL, since Linux 6.11) operate on "
1361 "the file referred to by I<dirfd> (which may have been obtained using the "
1362 "B<open>(2) B<O_PATH> flag). In this case, I<dirfd> can refer to any type "
1363 "of file, not just a directory, and the behavior of B<fstatat>() is similar "
1364 "to that of B<fstat>(). If I<dirfd> is B<AT_FDCWD>, the call operates on the "
1365 "current working directory. This flag is Linux-specific; define "
1366 "B<_GNU_SOURCE> to obtain its definition."
1367 msgstr ""
1368
1369 #. type: TH
1370 #: mageia-cauldron
1371 #, no-wrap
1372 msgid "Linux man-pages 6.17"
1373 msgstr "Páginas de Manual de Linux 6.17"
1374
1375 #. type: TH
1376 #: opensuse-leap-16-1 opensuse-tumbleweed
1377 #, no-wrap
1378 msgid "Linux man-pages (unreleased)"
1379 msgstr "Páginas de Manual de Linux (no publicadas)"