Debian Codegraph @

po/ko/man2/stat.2.po

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