Debian Codegraph @

po/ko/man2/getdents.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 # 정강훈 <[email protected]>, 2000.
5 msgid ""
6 msgstr ""
7 "Project-Id-Version: manpages-l10n\n"
8 "POT-Creation-Date: 2026-06-05 06:25+0200\n"
9 "PO-Revision-Date: 2000-05-02 08:57+0900\n"
10 "Last-Translator: 정강훈 <[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 "getdents"
23 msgstr "getdents"
24
25 #. type: TH
26 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
27 #, no-wrap
28 msgid "2026-04-08"
29 msgstr "2026년 4월 8일"
30
31 #. type: TH
32 #: archlinux debian-unstable
33 #, no-wrap
34 msgid "Linux man-pages 6.18"
35 msgstr "Linux man-pages 6.18"
36
37 #. type: SH
38 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
39 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
40 #, no-wrap
41 msgid "NAME"
42 msgstr "이름"
43
44 #. type: Plain text
45 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
46 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
47 msgid "getdents, getdents64 - get directory entries"
48 msgstr "getdents, getdents64 - 디렉토리 엔트리를 가져온다"
49
50 #. type: SH
51 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
52 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
53 #, no-wrap
54 msgid "LIBRARY"
55 msgstr "라이브러리"
56
57 #. type: Plain text
58 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
59 #: opensuse-leap-16-1 opensuse-tumbleweed
60 msgid "Standard C library (I<libc>,\\ I<-lc>)"
61 msgstr "표준 C 라이브러리 (I<libc>,\\ I<-lc>)"
62
63 #. type: SH
64 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
65 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
66 #, no-wrap
67 msgid "SYNOPSIS"
68 msgstr "요약"
69
70 #. type: Plain text
71 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
72 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
73 #, no-wrap
74 msgid ""
75 "B<#include E<lt>sys/syscall.hE<gt>> /* Definition of B<SYS_*> constants */\n"
76 "B<#include E<lt>unistd.hE<gt>>\n"
77 msgstr ""
78 "B<#include E<lt>sys/syscall.hE<gt>> /* B<SYS_*> 상수의 정의 */\n"
79 "B<#include E<lt>unistd.hE<gt>>\n"
80
81 #. type: Plain text
82 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
83 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
84 #, no-wrap
85 msgid ""
86 "B<long syscall(SYS_getdents, unsigned int >I<fd>B<, struct linux_dirent *>I<dirp>B<,>\n"
87 "B< unsigned int >I<count>B<);>\n"
88 msgstr ""
89 "B<long syscall(SYS_getdents, unsigned int >I<fd>B<, struct linux_dirent *>I<dirp>B<,>\n"
90 "B< unsigned int >I<count>B<);>\n"
91
92 #. type: Plain text
93 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
94 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
95 #, no-wrap
96 msgid ""
97 "B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n"
98 "B<#include E<lt>dirent.hE<gt>>\n"
99 msgstr ""
100
101 #. type: Plain text
102 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
103 #: opensuse-tumbleweed
104 #, fuzzy, no-wrap
105 #| msgid "B<ssize_t getdents64(int >I<fd>B<, void >I<dirp>B<[.>I<count>B<], size_t >I<count>B<);>\n"
106 msgid ""
107 "B<ssize_t getdents64(>size_t count;\n"
108 "B< int >I<fd>B<, void >I<dirp>B<[>I<count>B<], size_t >I<count>B<);>\n"
109 msgstr "B<ssize_t getdents64(int >I<fd>B<, void >I<dirp>B<[.>I<count>B<], size_t >I<count>B<);>\n"
110
111 #. type: Plain text
112 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
113 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
114 msgid ""
115 "I<Note>: glibc provides no wrapper for B<getdents>(), necessitating the use "
116 "of B<syscall>(2)."
117 msgstr ""
118
119 #. type: Plain text
120 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
121 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
122 msgid ""
123 "I<Note>: There is no definition of I<struct linux_dirent> in glibc; see "
124 "NOTES."
125 msgstr ""
126
127 #. type: SH
128 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
129 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
130 #, no-wrap
131 msgid "DESCRIPTION"
132 msgstr "설명"
133
134 #. type: Plain text
135 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
136 msgid ""
137 "These are not the interfaces you are interested in. Look at B<readdir>(3) "
138 "for the POSIX-conforming C library interface."
139 msgstr ""
140
141 #. type: SS
142 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
143 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
144 #, no-wrap
145 msgid "getdents()"
146 msgstr "getdents()"
147
148 #. type: Plain text
149 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
150 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
151 #, fuzzy
152 #| msgid ""
153 #| "B<getdents> reads several I<dirent> structures from the directory pointed "
154 #| "at by I<fd> into the memory area pointed to by I<dirp>. The parameter "
155 #| "I<count> is the size of the memory area."
156 msgid ""
157 "The system call B<getdents>() reads several I<linux_dirent> structures from "
158 "the directory referred to by the open file descriptor I<fd> into the buffer "
159 "pointed to by I<dirp>. The argument I<count> specifies the size of that "
160 "buffer."
161 msgstr ""
162 "B<getdents>는 I<fd>가 가리키는 디렉토리에서 여러 I<dirent> 구조체을 읽어와 "
163 "I<dirp>가 가리키는 메모리 공간에 저장한다. I<count> 인자는 메모리 공간의 크"
164 "기이다."
165
166 #. type: Plain text
167 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
168 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
169 msgid "The I<linux_dirent> structure is declared as follows:"
170 msgstr "I<linux_dirent> 구조체는 다음과 같다:"
171
172 #. type: Plain text
173 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
174 #: opensuse-tumbleweed
175 #, no-wrap
176 msgid ""
177 "struct linux_dirent {\n"
178 " unsigned long d_ino; /* Inode number */\n"
179 " unsigned long d_off; /* Not an offset; see below */\n"
180 " unsigned short d_reclen; /* Length of this \\f[I]linux_dirent\\fR */\n"
181 " char d_name[]; /* Filename (null-terminated) */\n"
182 " /* length is actually (d_reclen - 2 -\n"
183 " offsetof(struct linux_dirent, d_name)) */\n"
184 " /*\n"
185 " char pad; // Zero padding byte\n"
186 " char d_type; // File type (only since Linux\n"
187 " // 2.6.4); offset is (d_reclen - 1)\n"
188 " */\n"
189 "}\n"
190 msgstr ""
191
192 #. type: Plain text
193 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
194 #: opensuse-leap-16-1 opensuse-tumbleweed
195 #, fuzzy
196 #| msgid ""
197 #| "I<d_ino> is an inode number. I<d_off> is the distance from the start of "
198 #| "the directory to the start of the next I<linux_dirent>. I<d_reclen> is "
199 #| "the size of this entire I<linux_dirent>. I<d_name> is a null-terminated "
200 #| "filename."
201 msgid ""
202 "I<d_ino> is an inode number. I<d_off> is a filesystem-specific value with "
203 "no specific meaning to user space, though on older filesystems it used to be "
204 "the distance from the start of the directory to the start of the next "
205 "I<linux_dirent>; see B<readdir>(3). I<d_reclen> is the size of this entire "
206 "I<linux_dirent>. I<d_name> is a null-terminated filename."
207 msgstr ""
208 "I<d_ino>는 inode 번호이다. I<d_off>는 현재 디렉토리 시작부터 다음 "
209 "I<linux_dirent> 시작 까지의 옵셋(offset)이다. I<d_reclen>는 이 "
210 "I<linux_dirent>의 전체 크기이다. I<d_name>는 null로 끝나는 파일 이름이다."
211
212 #. type: Plain text
213 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
214 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
215 msgid ""
216 "I<d_type> is a byte at the end of the structure that indicates the file "
217 "type. It contains one of the following values (defined in "
218 "I<E<lt>dirent.hE<gt>>):"
219 msgstr ""
220
221 #. type: TP
222 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
223 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
224 #, no-wrap
225 msgid "B<DT_BLK>"
226 msgstr "B<DT_BLK>"
227
228 #. type: Plain text
229 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
230 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
231 msgid "This is a block device."
232 msgstr ""
233
234 #. type: TP
235 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
236 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
237 #, no-wrap
238 msgid "B<DT_CHR>"
239 msgstr "B<DT_CHR>"
240
241 #. type: Plain text
242 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
243 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
244 msgid "This is a character device."
245 msgstr ""
246
247 #. type: TP
248 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
249 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
250 #, no-wrap
251 msgid "B<DT_DIR>"
252 msgstr "B<DT_DIR>"
253
254 #. type: Plain text
255 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
256 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
257 #, fuzzy
258 #| msgid "No such directory."
259 msgid "This is a directory."
260 msgstr "그런 디렉토리가 없다."
261
262 #. type: TP
263 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
264 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
265 #, no-wrap
266 msgid "B<DT_FIFO>"
267 msgstr "B<DT_FIFO>"
268
269 #. type: Plain text
270 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
271 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
272 msgid "This is a named pipe (FIFO)."
273 msgstr ""
274
275 #. type: TP
276 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
277 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
278 #, no-wrap
279 msgid "B<DT_LNK>"
280 msgstr "B<DT_LNK>"
281
282 #. type: Plain text
283 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
284 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
285 msgid "This is a symbolic link."
286 msgstr ""
287
288 #. type: TP
289 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
290 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
291 #, no-wrap
292 msgid "B<DT_REG>"
293 msgstr "B<DT_REG>"
294
295 #. type: Plain text
296 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
297 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
298 msgid "This is a regular file."
299 msgstr ""
300
301 #. type: TP
302 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
303 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
304 #, no-wrap
305 msgid "B<DT_SOCK>"
306 msgstr "B<DT_SOCK>"
307
308 #. type: Plain text
309 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
310 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
311 msgid "This is a UNIX domain socket."
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<DT_UNKNOWN>"
319 msgstr "B<DT_UNKNOWN>"
320
321 #. type: Plain text
322 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
323 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
324 #, fuzzy
325 #| msgid "The file does not exist."
326 msgid "The file type is unknown."
327 msgstr "파일이 존재하지 않는다."
328
329 #. type: Plain text
330 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
331 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
332 msgid ""
333 "The I<d_type> field is implemented since Linux 2.6.4. It occupies a space "
334 "that was previously a zero-filled padding byte in the I<linux_dirent> "
335 "structure. Thus, on kernels up to and including Linux 2.6.3, attempting to "
336 "access this field always provides the value 0 (B<DT_UNKNOWN>)."
337 msgstr ""
338
339 #. kernel 2.6.27
340 #. The same sentence is in readdir.2
341 #. type: Plain text
342 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
343 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
344 msgid ""
345 "Currently, only some filesystems (among them: Btrfs, ext2, ext3, and ext4) "
346 "have full support for returning the file type in I<d_type>. All "
347 "applications must properly handle a return of B<DT_UNKNOWN>."
348 msgstr ""
349
350 #. type: SS
351 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
352 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
353 #, no-wrap
354 msgid "getdents64()"
355 msgstr "getdents64()"
356
357 #. type: Plain text
358 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
359 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
360 msgid ""
361 "The original Linux B<getdents>() system call did not handle large "
362 "filesystems and large file offsets. Consequently, Linux 2.4 added "
363 "B<getdents64>(), with wider types for the I<d_ino> and I<d_off> fields. In "
364 "addition, B<getdents64>() supports an explicit I<d_type> field."
365 msgstr ""
366
367 #. type: Plain text
368 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
369 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
370 msgid ""
371 "The B<getdents64>() system call is like B<getdents>(), except that its "
372 "second argument is a pointer to a buffer containing structures of the "
373 "following type:"
374 msgstr ""
375
376 #. type: Plain text
377 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
378 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
379 #, fuzzy, no-wrap
380 #| msgid ""
381 #| "struct dirent\n"
382 #| "{\n"
383 #| " long d_ino; /* inode number */\n"
384 #| " off_t d_off; /* offset to next I<dirent> */\n"
385 #| " unsigned short d_reclen; /* length of this I<dirent> */\n"
386 #| " char d_name [NAME_MAX+1]; /* file name (null-terminated) */\n"
387 #| "}\n"
388 msgid ""
389 "struct linux_dirent64 {\n"
390 " ino64_t d_ino; /* 64-bit inode number */\n"
391 " off64_t d_off; /* Not an offset; see getdents() */\n"
392 " unsigned short d_reclen; /* Size of this dirent */\n"
393 " unsigned char d_type; /* File type */\n"
394 " char d_name[]; /* Filename (null-terminated) */\n"
395 "};\n"
396 msgstr ""
397 "struct dirent\n"
398 "{\n"
399 " long d_ino; /* inode 번호 */\n"
400 " off_t d_off; /* 다음 I<dirent>에 대한 옵셋 */\n"
401 " unsigned short d_reclen; /* 이 I<dirent>의 길이 */\n"
402 " char d_name [NAME_MAX+1]; /* (null로 끝나는) 파일 이름 */\n"
403 "}\n"
404
405 #. type: SH
406 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
407 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
408 #, no-wrap
409 msgid "RETURN VALUE"
410 msgstr "반환값"
411
412 #. type: Plain text
413 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
414 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
415 #, fuzzy
416 #| msgid ""
417 #| "On success, the number of bytes read is returned. On end of directory, 0 "
418 #| "is returned. On error, -1 is returned, and I<errno> is set appropriately."
419 msgid ""
420 "On success, the number of bytes read is returned. On end of directory, 0 is "
421 "returned. On error, -1 is returned, and I<errno> is set to indicate the "
422 "error."
423 msgstr ""
424 "성공시, 읽은 바이트의 수가 리턴된다. 디렉토리의 끝에서, 0이 리턴된다. 에러"
425 "시, -1이 리턴되며, I<errno>는 적당한 값으로 설정된다."
426
427 #. type: SH
428 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
429 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
430 #, no-wrap
431 msgid "ERRORS"
432 msgstr "에러"
433
434 #. type: TP
435 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
436 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
437 #, no-wrap
438 msgid "B<EBADF>"
439 msgstr "B<EBADF>"
440
441 #. type: Plain text
442 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
443 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
444 msgid "Invalid file descriptor I<fd>."
445 msgstr "유효 하지 않은 파일 기술자 I<fd>."
446
447 #. type: TP
448 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
449 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
450 #, no-wrap
451 msgid "B<EFAULT>"
452 msgstr "B<EFAULT>"
453
454 #. type: Plain text
455 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
456 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
457 msgid "Argument points outside the calling process's address space."
458 msgstr "인자가 호출 프로세스의 주소 공간외를 가리키고 있다."
459
460 #. type: TP
461 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
462 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
463 #, no-wrap
464 msgid "B<EINVAL>"
465 msgstr "B<EINVAL>"
466
467 #. type: Plain text
468 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
469 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
470 msgid "Result buffer is too small."
471 msgstr "결과 버퍼가 너무 작다."
472
473 #. type: TP
474 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
475 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
476 #, no-wrap
477 msgid "B<ENOENT>"
478 msgstr "B<ENOENT>"
479
480 #. type: Plain text
481 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
482 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
483 msgid "No such directory."
484 msgstr "해당 디렉토리가 없다."
485
486 #. type: TP
487 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
488 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
489 #, no-wrap
490 msgid "B<ENOTDIR>"
491 msgstr "B<ENOTDIR>"
492
493 #. type: Plain text
494 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
495 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
496 msgid "File descriptor does not refer to a directory."
497 msgstr "파일 기술자가 디렉토리를 가리키지 않는다."
498
499 #. type: SH
500 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
501 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
502 #, no-wrap
503 msgid "STANDARDS"
504 msgstr "표준"
505
506 #. type: Plain text
507 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
508 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
509 msgid "None."
510 msgstr ""
511
512 #. type: SH
513 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
514 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
515 #, no-wrap
516 msgid "HISTORY"
517 msgstr "이력"
518
519 #. type: TP
520 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
521 #, fuzzy, no-wrap
522 #| msgid "B<getdents64>()"
523 msgid "B<getdents>()"
524 msgstr "B<getdents64>()"
525
526 #. SVr4 documents additional ENOLINK, EIO error conditions.
527 #. type: Plain text
528 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
529 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
530 msgid "SVr4."
531 msgstr "SVr4."
532
533 #. type: TP
534 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
535 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
536 #, no-wrap
537 msgid "B<getdents64>()"
538 msgstr "B<getdents64>()"
539
540 #. type: Plain text
541 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
542 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
543 msgid "glibc 2.30."
544 msgstr "glibc 2.30."
545
546 #. type: SH
547 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
548 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
549 #, no-wrap
550 msgid "NOTES"
551 msgstr "주의"
552
553 #. type: Plain text
554 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
555 msgid ""
556 "glibc does not provide a wrapper for B<getdents>(); call B<getdents>() "
557 "using B<syscall>(2). In that case you will need to define the "
558 "I<linux_dirent> structure yourself."
559 msgstr ""
560
561 #. type: Plain text
562 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
563 msgid ""
564 "The B<getdents64>() system call accepts an B<unsigned int> argument "
565 "I<count> and assumes that I<count> does not exceed B<INT_MAX>. The glibc "
566 "wrapper function sets I<count> to B<INT_MAX> if it exceeds B<INT_MAX>. "
567 "glibc defines a I<dirent64> structure, which is similar to I<linux_dirent64> "
568 "but with a 256-byte I<d_name>."
569 msgstr ""
570
571 #. type: Plain text
572 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
573 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
574 msgid "Probably, you want to use B<readdir>(3) instead of these system calls."
575 msgstr ""
576
577 #. type: Plain text
578 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
579 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
580 #, fuzzy
581 #| msgid "This call supersedes B<readdir>(2)."
582 msgid "These calls supersede B<readdir>(2)."
583 msgstr "이 시스템 콜은 B<readdir>(2)를 대체한다."
584
585 #. type: SH
586 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
587 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
588 #, no-wrap
589 msgid "EXAMPLES"
590 msgstr "폐제"
591
592 #. FIXME The example program needs to be revised, since it uses the older
593 #. getdents() system call and the structure with smaller field widths.
594 #. type: Plain text
595 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
596 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
597 msgid ""
598 "The program below demonstrates the use of B<getdents>(). The following "
599 "output shows an example of what we see when running this program on an ext2 "
600 "directory:"
601 msgstr ""
602
603 #. type: Plain text
604 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
605 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
606 #, no-wrap
607 msgid ""
608 "$B< ./a.out /testfs/>\n"
609 "--------------- nread=120 ---------------\n"
610 "inode# file type d_reclen d_off d_name\n"
611 " 2 directory 16 12 .\n"
612 " 2 directory 16 24 ..\n"
613 " 11 directory 24 44 lost+found\n"
614 " 12 regular 16 56 a\n"
615 " 228929 directory 16 68 sub\n"
616 " 16353 directory 16 80 sub2\n"
617 " 130817 directory 16 4096 sub3\n"
618 msgstr ""
619 "$B< ./a.out /testfs/>\n"
620 "--------------- nread=120 ---------------\n"
621 "inode# file type d_reclen d_off d_name\n"
622 " 2 directory 16 12 .\n"
623 " 2 directory 16 24 ..\n"
624 " 11 directory 24 44 lost+found\n"
625 " 12 regular 16 56 a\n"
626 " 228929 directory 16 68 sub\n"
627 " 16353 directory 16 80 sub2\n"
628 " 130817 directory 16 4096 sub3\n"
629
630 #. type: SS
631 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
632 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
633 #, no-wrap
634 msgid "Program source"
635 msgstr ""
636
637 #. type: Plain text
638 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
639 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
640 #, fuzzy, no-wrap
641 #| msgid ""
642 #| " printf(\"--------------- nread=%ld ---------------\\en\", nread);\n"
643 #| " printf(\"inode# file type d_reclen d_off d_name\\en\");\n"
644 #| " for (size_t bpos = 0; bpos E<lt> nread;) {\n"
645 #| " d = (struct linux_dirent *) (buf + bpos);\n"
646 #| " printf(\"%8lu \", d-E<gt>d_ino);\n"
647 #| " d_type = *(buf + bpos + d-E<gt>d_reclen - 1);\n"
648 #| " printf(\"%-10s \", (d_type == DT_REG) ? \"regular\" :\n"
649 #| " (d_type == DT_DIR) ? \"directory\" :\n"
650 #| " (d_type == DT_FIFO) ? \"FIFO\" :\n"
651 #| " (d_type == DT_SOCK) ? \"socket\" :\n"
652 #| " (d_type == DT_LNK) ? \"symlink\" :\n"
653 #| " (d_type == DT_BLK) ? \"block dev\" :\n"
654 #| " (d_type == DT_CHR) ? \"char dev\" : \"???\");\n"
655 #| " printf(\"%4d %10jd %s\\en\", d-E<gt>d_reclen,\n"
656 #| " (intmax_t) d-E<gt>d_off, d-E<gt>d_name);\n"
657 #| " bpos += d-E<gt>d_reclen;\n"
658 #| " }\n"
659 #| " }\n"
660 msgid ""
661 "#define _GNU_SOURCE\n"
662 "#include E<lt>dirent.hE<gt> /* Defines DT_* constants */\n"
663 "#include E<lt>err.hE<gt>\n"
664 "#include E<lt>fcntl.hE<gt>\n"
665 "#include E<lt>stdint.hE<gt>\n"
666 "#include E<lt>stdio.hE<gt>\n"
667 "#include E<lt>stdlib.hE<gt>\n"
668 "#include E<lt>sys/syscall.hE<gt>\n"
669 "#include E<lt>sys/types.hE<gt>\n"
670 "#include E<lt>unistd.hE<gt>\n"
671 "\\&\n"
672 "struct linux_dirent {\n"
673 " unsigned long d_ino;\n"
674 " off_t d_off;\n"
675 " unsigned short d_reclen;\n"
676 " char d_name[];\n"
677 "};\n"
678 "\\&\n"
679 "#define BUF_SIZE 1024\n"
680 "\\&\n"
681 "int\n"
682 "main(int argc, char *argv[])\n"
683 "{\n"
684 " int fd;\n"
685 " char d_type;\n"
686 " char buf[BUF_SIZE];\n"
687 " long nread;\n"
688 " struct linux_dirent *d;\n"
689 "\\&\n"
690 " fd = open(argc E<gt> 1 ? argv[1] : \".\", O_RDONLY | O_DIRECTORY);\n"
691 " if (fd == -1)\n"
692 " err(EXIT_FAILURE, \"open\");\n"
693 "\\&\n"
694 " for (;;) {\n"
695 " nread = syscall(SYS_getdents, fd, buf, BUF_SIZE);\n"
696 " if (nread == -1)\n"
697 " err(EXIT_FAILURE, \"getdents\");\n"
698 "\\&\n"
699 " if (nread == 0)\n"
700 " break;\n"
701 "\\&\n"
702 " printf(\"--------------- nread=%ld ---------------\\[rs]n\", nread);\n"
703 " printf(\"inode# file type d_reclen d_off d_name\\[rs]n\");\n"
704 " for (size_t bpos = 0; bpos E<lt> nread;) {\n"
705 " d = (struct linux_dirent *) (buf + bpos);\n"
706 " printf(\"%8lu \", d-E<gt>d_ino);\n"
707 " d_type = *(buf + bpos + d-E<gt>d_reclen - 1);\n"
708 " printf(\"%-10s \", (d_type == DT_REG) ? \"regular\" :\n"
709 " (d_type == DT_DIR) ? \"directory\" :\n"
710 " (d_type == DT_FIFO) ? \"FIFO\" :\n"
711 " (d_type == DT_SOCK) ? \"socket\" :\n"
712 " (d_type == DT_LNK) ? \"symlink\" :\n"
713 " (d_type == DT_BLK) ? \"block dev\" :\n"
714 " (d_type == DT_CHR) ? \"char dev\" : \"???\");\n"
715 " printf(\"%4d %10jd %s\\[rs]n\", d-E<gt>d_reclen,\n"
716 " (intmax_t) d-E<gt>d_off, d-E<gt>d_name);\n"
717 " bpos += d-E<gt>d_reclen;\n"
718 " }\n"
719 " }\n"
720 "\\&\n"
721 " exit(EXIT_SUCCESS);\n"
722 "}\n"
723 msgstr ""
724 " printf(\"--------------- nread=%ld ---------------\\en\", nread);\n"
725 " printf(\"inode# file type d_reclen d_off d_name\\en\");\n"
726 " for (size_t bpos = 0; bpos E<lt> nread;) {\n"
727 " d = (struct linux_dirent *) (buf + bpos);\n"
728 " printf(\"%8lu \", d-E<gt>d_ino);\n"
729 " d_type = *(buf + bpos + d-E<gt>d_reclen - 1);\n"
730 " printf(\"%-10s \", (d_type == DT_REG) ? \"regular\" :\n"
731 " (d_type == DT_DIR) ? \"directory\" :\n"
732 " (d_type == DT_FIFO) ? \"FIFO\" :\n"
733 " (d_type == DT_SOCK) ? \"socket\" :\n"
734 " (d_type == DT_LNK) ? \"symlink\" :\n"
735 " (d_type == DT_BLK) ? \"block dev\" :\n"
736 " (d_type == DT_CHR) ? \"char dev\" : \"???\");\n"
737 " printf(\"%4d %10jd %s\\en\", d-E<gt>d_reclen,\n"
738 " (intmax_t) d-E<gt>d_off, d-E<gt>d_name);\n"
739 " bpos += d-E<gt>d_reclen;\n"
740 " }\n"
741 " }\n"
742
743 #. SRC END
744 #. type: SH
745 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
746 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
747 #, no-wrap
748 msgid "SEE ALSO"
749 msgstr "추가 참조"
750
751 #. type: Plain text
752 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
753 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
754 msgid "B<readdir>(2), B<readdir>(3), B<inode>(7)"
755 msgstr "B<readdir>(2), B<readdir>(3), B<inode>(7)"
756
757 #. type: TH
758 #: debian-trixie
759 #, no-wrap
760 msgid "2024-06-15"
761 msgstr "2024년 6월 15일"
762
763 #. type: TH
764 #: debian-trixie
765 #, no-wrap
766 msgid "Linux man-pages 6.9.1"
767 msgstr "Linux man-pages 6.9.1"
768
769 #. type: Plain text
770 #: debian-trixie
771 msgid "Standard C library (I<libc>, I<-lc>)"
772 msgstr "표준 C 라이브러리 (I<libc>, I<-lc>)"
773
774 #. type: Plain text
775 #: debian-trixie fedora-44 fedora-rawhide
776 #, no-wrap
777 msgid "B<ssize_t getdents64(int >I<fd>B<, void >I<dirp>B<[.>I<count>B<], size_t >I<count>B<);>\n"
778 msgstr "B<ssize_t getdents64(int >I<fd>B<, void >I<dirp>B<[.>I<count>B<], size_t >I<count>B<);>\n"
779
780 #. type: Plain text
781 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
782 msgid ""
783 "These are not the interfaces you are interested in. Look at B<readdir>(3) "
784 "for the POSIX-conforming C library interface. This page documents the bare "
785 "kernel system call interfaces."
786 msgstr ""
787
788 #. type: Plain text
789 #: debian-trixie fedora-44 fedora-rawhide
790 #, no-wrap
791 msgid ""
792 "struct linux_dirent {\n"
793 " unsigned long d_ino; /* Inode number */\n"
794 " unsigned long d_off; /* Not an offset; see below */\n"
795 " unsigned short d_reclen; /* Length of this I<linux_dirent> */\n"
796 " char d_name[]; /* Filename (null-terminated) */\n"
797 " /* length is actually (d_reclen - 2 -\n"
798 " offsetof(struct linux_dirent, d_name)) */\n"
799 " /*\n"
800 " char pad; // Zero padding byte\n"
801 " char d_type; // File type (only since Linux\n"
802 " // 2.6.4); offset is (d_reclen - 1)\n"
803 " */\n"
804 "}\n"
805 msgstr ""
806
807 #. type: Plain text
808 #: debian-trixie
809 #, fuzzy
810 #| msgid ""
811 #| "I<d_ino> is an inode number. I<d_off> is the distance from the start of "
812 #| "the directory to the start of the next I<linux_dirent>. I<d_reclen> is "
813 #| "the size of this entire I<linux_dirent>. I<d_name> is a null-terminated "
814 #| "filename."
815 msgid ""
816 "I<d_ino> is an inode number. I<d_off> is a filesystem-specific value with "
817 "no specific meaning to user space, though on older filesystems it used to be "
818 "the distance from the start of the directory to the start of the next "
819 "I<linux_dirent>; see B<readdir>(3)B<.> I<d_reclen> is the size of this "
820 "entire I<linux_dirent>. I<d_name> is a null-terminated filename."
821 msgstr ""
822 "I<d_ino>는 inode 번호이다. I<d_off>는 현재 디렉토리 시작부터 다음 "
823 "I<linux_dirent> 시작 까지의 옵셋(offset)이다. I<d_reclen>는 이 "
824 "I<linux_dirent>의 전체 크기이다. I<d_name>는 null로 끝나는 파일 이름이다."
825
826 #. type: Plain text
827 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
828 msgid ""
829 "glibc does not provide a wrapper for B<getdents>(); call B<getdents>() "
830 "using B<syscall>(2). In that case you will need to define the "
831 "I<linux_dirent> or I<linux_dirent64> structure yourself."
832 msgstr ""
833
834 #. type: TH
835 #: fedora-44 fedora-rawhide
836 #, no-wrap
837 msgid "2024-11-17"
838 msgstr "2024년 11월 17일"
839
840 #. type: TH
841 #: fedora-44 fedora-rawhide
842 #, no-wrap
843 msgid "Linux man-pages 6.13"
844 msgstr "Linux man-pages 6.13"
845
846 #. type: TH
847 #: mageia-cauldron
848 #, no-wrap
849 msgid "2026-02-08"
850 msgstr "2026년 2월 8일"
851
852 #. type: TH
853 #: mageia-cauldron
854 #, no-wrap
855 msgid "Linux man-pages 6.17"
856 msgstr "Linux man-pages 6.17"
857
858 #. type: TH
859 #: opensuse-leap-16-1 opensuse-tumbleweed
860 #, no-wrap
861 msgid "Linux man-pages (unreleased)"
862 msgstr "Linux man-pages (미공개)"