Debian Codegraph @

po/ko/man2/readlink.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:39+0200\n"
9 "PO-Revision-Date: 2000-08-05 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 "readlink"
23 msgstr "readlink"
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 "readlink, readlinkat - read value of a symbolic link"
49 msgstr "readlink, readlinkat - 상징 연결의 값을 읽는다"
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>unistd.hE<gt>>\n"
76 msgstr "B<#include E<lt>unistd.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<ssize_t readlinkat(int >I<dirfd>B<, const char *restrict >I<pathname>B<,>\n"
84 #| "B< char *restrict >I<buf>B<, size_t >I<bufsiz>B<);>\n"
85 msgid ""
86 "B<ssize_t readlink(>size_t bufsiz;\n"
87 "B< const char *restrict >I<path>B<,>\n"
88 "B< char >I<buf>B<[restrict >I<bufsiz>B<], size_t >I<bufsiz>B<);>\n"
89 msgstr ""
90 "B<ssize_t readlinkat(int >I<dirfd>B<, const char *restrict >I<pathname>B<,>\n"
91 "B< char *restrict >I<buf>B<, size_t >I<bufsiz>B<);>\n"
92
93 #. type: Plain text
94 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
95 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
96 #, no-wrap
97 msgid ""
98 "B<#include E<lt>fcntl.hE<gt> >/* Definition of B<AT_*> constants */\n"
99 "B<#include E<lt>unistd.hE<gt>>\n"
100 msgstr ""
101
102 #. type: Plain text
103 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
104 #: opensuse-tumbleweed
105 #, fuzzy, no-wrap
106 #| msgid ""
107 #| "B<ssize_t readlinkat(int >I<dirfd>B<, const char *restrict >I<pathname>B<,>\n"
108 #| "B< char *restrict >I<buf>B<, size_t >I<bufsiz>B<);>\n"
109 msgid ""
110 "B<ssize_t readlinkat(>size_t bufsiz;\n"
111 "B< int >I<dirfd>B<, const char *restrict >I<path>B<,>\n"
112 "B< char >I<buf>B<[restrict >I<bufsiz>B<], size_t >I<bufsiz>B<);>\n"
113 msgstr ""
114 "B<ssize_t readlinkat(int >I<dirfd>B<, const char *restrict >I<pathname>B<,>\n"
115 "B< char *restrict >I<buf>B<, size_t >I<bufsiz>B<);>\n"
116
117 #. type: Plain text
118 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
119 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
120 msgid ""
121 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
122 msgstr "c"
123
124 #. type: Plain text
125 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
126 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
127 msgid "B<readlink>():"
128 msgstr "B<readlink>():"
129
130 #. || _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED
131 #. type: Plain text
132 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
133 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
134 #, no-wrap
135 msgid ""
136 " _XOPEN_SOURCE E<gt>= 500 || _POSIX_C_SOURCE E<gt>= 200112L\n"
137 " || /* glibc E<lt>= 2.19: */ _BSD_SOURCE\n"
138 msgstr ""
139 " _XOPEN_SOURCE E<gt>= 500 || _POSIX_C_SOURCE E<gt>= 200112L\n"
140 " || /* glibc E<lt>= 2.19: */ _BSD_SOURCE\n"
141
142 #. type: Plain text
143 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
144 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
145 msgid "B<readlinkat>():"
146 msgstr "B<readlinkat>():"
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 #, no-wrap
152 msgid ""
153 " Since glibc 2.10:\n"
154 " _POSIX_C_SOURCE E<gt>= 200809L\n"
155 " Before glibc 2.10:\n"
156 " _ATFILE_SOURCE\n"
157 msgstr ""
158
159 #. type: SH
160 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
161 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
162 #, no-wrap
163 msgid "DESCRIPTION"
164 msgstr "설명"
165
166 #. type: Plain text
167 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
168 #: opensuse-tumbleweed
169 #, fuzzy
170 #| msgid ""
171 #| "B<readlink> places the contents of the symbolic link I<path> in the "
172 #| "buffer I<buf>, which has size I<bufsiz>. B<readlink> does not append a "
173 #| "B<NUL> character to I<buf>. It will truncate the contents (to a length "
174 #| "of I<bufsiz> characters), in case the buffer is too small to hold all of "
175 #| "the contents."
176 msgid ""
177 "B<readlink>() places the contents of the symbolic link I<path> in the "
178 "buffer I<buf>, which has size I<bufsiz>. B<readlink>() does not append a "
179 "terminating null byte to I<buf>. It will (silently) truncate the contents "
180 "(to a length of I<bufsiz> characters), in case the buffer is too small to "
181 "hold all of the contents."
182 msgstr ""
183 "B<readlink> 는 I<bufsiz>크기를 가지고 있는 버퍼 I<buf>에 I<path> 상징 연결의 "
184 "요소를 넣는다. B<readlink> 는 I<buf>에 B<NULL> 문자를 추가하지 않는다. 이 함"
185 "수는 버퍼가 모든 내용을 넣기에 너무 작다면 내용을 자른다( I<bufsiz> 문자들의 "
186 "길이로)."
187
188 #. type: SS
189 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
190 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
191 #, no-wrap
192 msgid "readlinkat()"
193 msgstr "readlinkat()"
194
195 #. type: Plain text
196 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
197 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
198 msgid ""
199 "The B<readlinkat>() system call operates in exactly the same way as "
200 "B<readlink>(), except for the differences described here."
201 msgstr ""
202
203 #. type: Plain text
204 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
205 #: opensuse-tumbleweed
206 msgid ""
207 "If I<path> is relative, then it is interpreted relative to the directory "
208 "referred to by the file descriptor I<dirfd> (rather than relative to the "
209 "current working directory of the calling process, as is done by "
210 "B<readlink>() for a relative pathname)."
211 msgstr ""
212
213 #. type: Plain text
214 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
215 #: opensuse-tumbleweed
216 msgid ""
217 "If I<path> is relative and I<dirfd> is the special value B<AT_FDCWD>, then "
218 "I<path> is interpreted relative to the current working directory of the "
219 "calling process (like B<readlink>())."
220 msgstr ""
221
222 #. type: Plain text
223 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
224 #: opensuse-tumbleweed
225 msgid "If I<path> is absolute, then I<dirfd> is ignored."
226 msgstr ""
227
228 #. commit 65cfc6722361570bfe255698d9cd4dccaf47570d
229 #. type: Plain text
230 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
231 #: opensuse-tumbleweed
232 msgid ""
233 "Since Linux 2.6.39, I<path> can be an empty string, in which case the call "
234 "operates on the symbolic link referred to by I<dirfd> (which should have "
235 "been obtained using B<open>(2) with the B<O_PATH> and B<O_NOFOLLOW> flags)."
236 msgstr ""
237
238 #. type: Plain text
239 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
240 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
241 msgid "See B<openat>(2) for an explanation of the need for B<readlinkat>()."
242 msgstr ""
243
244 #. type: SH
245 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
246 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
247 #, no-wrap
248 msgid "RETURN VALUE"
249 msgstr "반환값"
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 "On success, these calls return the number of bytes placed in I<buf>. (If "
256 "the returned value equals I<bufsiz>, then truncation may have occurred.) On "
257 "error, -1 is returned and I<errno> is set to indicate the error."
258 msgstr ""
259
260 #. type: SH
261 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
262 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
263 #, no-wrap
264 msgid "ERRORS"
265 msgstr "에러"
266
267 #. type: TP
268 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
269 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
270 #, no-wrap
271 msgid "B<EACCES>"
272 msgstr "B<EACCES>"
273
274 #. type: Plain text
275 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
276 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
277 #, fuzzy
278 #| msgid "Search permission is denied for a component of the path prefix."
279 msgid ""
280 "Search permission is denied for a component of the path prefix. (See also "
281 "B<path_resolution>(7).)"
282 msgstr "탐색 허가권이 경로 머릿부의 요소에서 거부되었다."
283
284 #. type: TP
285 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
286 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
287 #, no-wrap
288 msgid "B<EBADF>"
289 msgstr "B<EBADF>"
290
291 #. type: Plain text
292 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
293 #: opensuse-tumbleweed
294 msgid ""
295 "(B<readlinkat>()) I<path> is relative but I<dirfd> is neither B<AT_FDCWD> "
296 "nor a valid file descriptor."
297 msgstr ""
298
299 #. type: TP
300 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
301 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
302 #, no-wrap
303 msgid "B<EFAULT>"
304 msgstr "B<EFAULT>"
305
306 #. type: Plain text
307 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
308 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
309 msgid "I<buf> extends outside the process's allocated address space."
310 msgstr "I<buf> 가 프로세스에 할당된 주소 공간 외까지 확장되었다."
311
312 #. type: TP
313 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
314 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
315 #, no-wrap
316 msgid "B<EINVAL>"
317 msgstr "B<EINVAL>"
318
319 #. At the glibc level, bufsiz is unsigned, so this error can only occur
320 #. if bufsiz==0. However, the in the kernel syscall, bufsiz is signed,
321 #. and this error can also occur if bufsiz < 0.
322 #. See: http://thread.gmane.org/gmane.linux.man/380
323 #. Subject: [patch 0/3] [RFC] kernel/glibc mismatch of "readlink" syscall?
324 #. type: Plain text
325 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
326 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
327 msgid "I<bufsiz> is not positive."
328 msgstr "I<bufsiz> 가 양수가 아니다."
329
330 #. type: Plain text
331 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
332 #: opensuse-tumbleweed
333 msgid ""
334 "The named file (i.e., the final filename component of I<path>) is not a "
335 "symbolic link."
336 msgstr ""
337
338 #. type: TP
339 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
340 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
341 #, no-wrap
342 msgid "B<EIO>"
343 msgstr "B<EIO>"
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 "An I/O error occurred while reading from the filesystem."
349 msgstr "파일 시스템에서 읽는동안 I/O 에러가 발생했다."
350
351 #. type: TP
352 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
353 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
354 #, no-wrap
355 msgid "B<ELOOP>"
356 msgstr "B<ELOOP>"
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 msgid "Too many symbolic links were encountered in translating the pathname."
362 msgstr "경로를 찾아갈 때, 너무 많은 심볼릭 링크가 존재한다."
363
364 #. type: TP
365 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
366 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
367 #, no-wrap
368 msgid "B<ENAMETOOLONG>"
369 msgstr "B<ENAMETOOLONG>"
370
371 #. type: Plain text
372 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
373 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
374 msgid "A pathname, or a component of a pathname, was too long."
375 msgstr "경로 이름 또는 경로 이름의 요소가 너무 길다."
376
377 #. type: TP
378 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
379 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
380 #, no-wrap
381 msgid "B<ENOENT>"
382 msgstr "B<ENOENT>"
383
384 #. type: Plain text
385 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
386 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
387 msgid "The named file does not exist."
388 msgstr "지정된 파일이 존재하지 않는다."
389
390 #. type: TP
391 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
392 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
393 #, no-wrap
394 msgid "B<ENOMEM>"
395 msgstr "B<ENOMEM>"
396
397 #. type: Plain text
398 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
399 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
400 msgid "Insufficient kernel memory was available."
401 msgstr "이용할수 있는 커널 메모리가 충분하지 않다."
402
403 #. type: TP
404 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
405 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
406 #, no-wrap
407 msgid "B<ENOTDIR>"
408 msgstr "B<ENOTDIR>"
409
410 #. type: Plain text
411 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
412 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
413 msgid "A component of the path prefix is not a directory."
414 msgstr "경로 접두사 요소가 디렉토리가 아니다."
415
416 #. type: Plain text
417 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
418 #: opensuse-tumbleweed
419 msgid ""
420 "(B<readlinkat>()) I<path> is relative and I<dirfd> is a file descriptor "
421 "referring to a file other than a directory."
422 msgstr ""
423
424 #. type: SH
425 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
426 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
427 #, no-wrap
428 msgid "STANDARDS"
429 msgstr "표준"
430
431 #. type: Plain text
432 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
433 #: opensuse-tumbleweed
434 msgid "POSIX.1-2024."
435 msgstr "POSIX.1-2024."
436
437 #. type: SH
438 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
439 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
440 #, no-wrap
441 msgid "HISTORY"
442 msgstr "이력"
443
444 #. type: TP
445 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
446 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
447 #, no-wrap
448 msgid "B<readlink>()"
449 msgstr "B<readlink>()"
450
451 #. type: Plain text
452 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
453 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
454 #, fuzzy
455 #| msgid "C99, POSIX.1-2001, POSIX.1-2008."
456 msgid "4.4BSD (first appeared in 4.2BSD), POSIX.1-2001, POSIX.1-2008."
457 msgstr "C99, POSIX.1-2001, POSIX.1-2008."
458
459 #. type: TP
460 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
461 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
462 #, no-wrap
463 msgid "B<readlinkat>()"
464 msgstr "B<readlinkat>()"
465
466 #. type: Plain text
467 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
468 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
469 msgid "POSIX.1-2008. Linux 2.6.16, glibc 2.4."
470 msgstr "POSIX.1-2008. Linux 2.6.16, glibc 2.4."
471
472 #. type: Plain text
473 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
474 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
475 msgid ""
476 "Up to and including glibc 2.4, the return type of B<readlink>() was "
477 "declared as I<int>. Nowadays, the return type is declared as I<ssize_t>, as "
478 "(newly) required in POSIX.1-2001."
479 msgstr ""
480
481 #. type: SS
482 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
483 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
484 #, no-wrap
485 msgid "glibc"
486 msgstr "glibc"
487
488 #. type: Plain text
489 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
490 #: opensuse-tumbleweed
491 msgid ""
492 "On older kernels where B<readlinkat>() is unavailable, the glibc wrapper "
493 "function falls back to the use of B<readlink>(). When I<path> is relative, "
494 "glibc constructs a pathname based on the symbolic link in I</proc/self/fd> "
495 "that corresponds to the I<dirfd> argument."
496 msgstr ""
497
498 #. type: SH
499 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
500 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
501 #, no-wrap
502 msgid "NOTES"
503 msgstr "주의"
504
505 #. type: Plain text
506 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
507 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
508 msgid ""
509 "Using a statically sized buffer might not provide enough room for the "
510 "symbolic link contents. The required size for the buffer can be obtained "
511 "from the I<stat.st_size> value returned by a call to B<lstat>(2) on the "
512 "link. However, the number of bytes written by B<readlink>() and "
513 "B<readlinkat>() should be checked to make sure that the size of the "
514 "symbolic link did not increase between the calls. Dynamically allocating "
515 "the buffer for B<readlink>() and B<readlinkat>() also addresses a common "
516 "portability problem when using B<PATH_MAX> for the buffer size, as this "
517 "constant is not guaranteed to be defined per POSIX if the system does not "
518 "have such limit."
519 msgstr ""
520
521 #. type: SH
522 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
523 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
524 #, no-wrap
525 msgid "EXAMPLES"
526 msgstr "폐제"
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 ""
532 "The following program allocates the buffer needed by B<readlink>() "
533 "dynamically from the information provided by B<lstat>(2), falling back to a "
534 "buffer of size B<PATH_MAX> in cases where B<lstat>(2) reports a size of "
535 "zero."
536 msgstr ""
537
538 #. type: Plain text
539 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
540 #: opensuse-tumbleweed
541 #, no-wrap
542 msgid ""
543 "#include E<lt>limits.hE<gt>\n"
544 "#include E<lt>stdio.hE<gt>\n"
545 "#include E<lt>stdlib.hE<gt>\n"
546 "#include E<lt>sys/stat.hE<gt>\n"
547 "#include E<lt>sys/types.hE<gt>\n"
548 "#include E<lt>unistd.hE<gt>\n"
549 "\\&\n"
550 "int\n"
551 "main(int argc, char *argv[])\n"
552 "{\n"
553 " char *buf;\n"
554 " ssize_t nbytes, bufsiz;\n"
555 " struct stat sb;\n"
556 "\\&\n"
557 " if (argc != 2) {\n"
558 " fprintf(stderr, \"Usage: %s E<lt>pathE<gt>\\[rs]n\", argv[0]);\n"
559 " exit(EXIT_FAILURE);\n"
560 " }\n"
561 "\\&\n"
562 " if (lstat(argv[1], &sb) == -1) {\n"
563 " perror(\"lstat\");\n"
564 " exit(EXIT_FAILURE);\n"
565 " }\n"
566 "\\&\n"
567 " /* Add one to the link size, so that we can determine whether\n"
568 " the buffer returned by readlink() was truncated. */\n"
569 "\\&\n"
570 " bufsiz = sb.st_size + 1;\n"
571 "\\&\n"
572 " /* Some magic symlinks under (for example) /proc and /sys\n"
573 " report \\[aq]st_size\\[aq] as zero. In that case, take PATH_MAX as\n"
574 " a \"good enough\" estimate. */\n"
575 "\\&\n"
576 " if (sb.st_size == 0)\n"
577 " bufsiz = PATH_MAX;\n"
578 "\\&\n"
579 " buf = malloc(bufsiz);\n"
580 " if (buf == NULL) {\n"
581 " perror(\"malloc\");\n"
582 " exit(EXIT_FAILURE);\n"
583 " }\n"
584 "\\&\n"
585 " nbytes = readlink(argv[1], buf, bufsiz);\n"
586 " if (nbytes == -1) {\n"
587 " perror(\"readlink\");\n"
588 " exit(EXIT_FAILURE);\n"
589 " }\n"
590 "\\&\n"
591 " /* Print only \\[aq]nbytes\\[aq] of \\[aq]buf\\[aq], as it doesn't contain a terminating\n"
592 " null byte (\\[aq]\\[rs]0\\[aq]). */\n"
593 " printf(\"\\[aq]%s\\[aq] points to \\[aq]%.*s\\[aq]\\[rs]n\", argv[1], (int) nbytes, buf);\n"
594 "\\&\n"
595 " /* If the return value was equal to the buffer size, then\n"
596 " the link target was larger than expected (perhaps because the\n"
597 " target was changed between the call to lstat() and the call to\n"
598 " readlink()). Warn the user that the returned target may have\n"
599 " been truncated. */\n"
600 "\\&\n"
601 " if (nbytes == bufsiz)\n"
602 " printf(\"(Returned buffer may have been truncated)\\[rs]n\");\n"
603 "\\&\n"
604 " free(buf);\n"
605 " exit(EXIT_SUCCESS);\n"
606 "}\n"
607 msgstr ""
608
609 #. SRC END
610 #. type: SH
611 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
612 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
613 #, no-wrap
614 msgid "SEE ALSO"
615 msgstr "추가 참조"
616
617 #. type: Plain text
618 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
619 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
620 msgid ""
621 "B<readlink>(1), B<lstat>(2), B<stat>(2), B<symlink>(2), B<realpath>(3), "
622 "B<path_resolution>(7), B<symlink>(7)"
623 msgstr ""
624 "B<readlink>(1), B<lstat>(2), B<stat>(2), B<symlink>(2), B<realpath>(3), "
625 "B<path_resolution>(7), B<symlink>(7)"
626
627 #. type: TH
628 #: debian-trixie
629 #, no-wrap
630 msgid "2024-06-15"
631 msgstr "2024년 6월 15일"
632
633 #. type: TH
634 #: debian-trixie
635 #, no-wrap
636 msgid "Linux man-pages 6.9.1"
637 msgstr "Linux man-pages 6.9.1"
638
639 #. type: Plain text
640 #: debian-trixie
641 msgid "Standard C library (I<libc>, I<-lc>)"
642 msgstr "표준 C 라이브러리 (I<libc>, I<-lc>)"
643
644 #. type: Plain text
645 #: debian-trixie
646 #, no-wrap
647 msgid ""
648 "B<ssize_t readlink(const char *restrict >I<pathname>B<, char *restrict >I<buf>B<,>\n"
649 "B< size_t >I<bufsiz>B<);>\n"
650 msgstr ""
651 "B<ssize_t readlink(const char *restrict >I<pathname>B<, char *restrict >I<buf>B<,>\n"
652 "B< size_t >I<bufsiz>B<);>\n"
653
654 #. type: Plain text
655 #: debian-trixie
656 #, no-wrap
657 msgid ""
658 "B<ssize_t readlinkat(int >I<dirfd>B<, const char *restrict >I<pathname>B<,>\n"
659 "B< char *restrict >I<buf>B<, size_t >I<bufsiz>B<);>\n"
660 msgstr ""
661 "B<ssize_t readlinkat(int >I<dirfd>B<, const char *restrict >I<pathname>B<,>\n"
662 "B< char *restrict >I<buf>B<, size_t >I<bufsiz>B<);>\n"
663
664 #. type: Plain text
665 #: debian-trixie fedora-44 fedora-rawhide
666 #, fuzzy
667 #| msgid ""
668 #| "B<readlink> places the contents of the symbolic link I<path> in the "
669 #| "buffer I<buf>, which has size I<bufsiz>. B<readlink> does not append a "
670 #| "B<NUL> character to I<buf>. It will truncate the contents (to a length "
671 #| "of I<bufsiz> characters), in case the buffer is too small to hold all of "
672 #| "the contents."
673 msgid ""
674 "B<readlink>() places the contents of the symbolic link I<pathname> in the "
675 "buffer I<buf>, which has size I<bufsiz>. B<readlink>() does not append a "
676 "terminating null byte to I<buf>. It will (silently) truncate the contents "
677 "(to a length of I<bufsiz> characters), in case the buffer is too small to "
678 "hold all of the contents."
679 msgstr ""
680 "B<readlink> 는 I<bufsiz>크기를 가지고 있는 버퍼 I<buf>에 I<path> 상징 연결의 "
681 "요소를 넣는다. B<readlink> 는 I<buf>에 B<NULL> 문자를 추가하지 않는다. 이 함"
682 "수는 버퍼가 모든 내용을 넣기에 너무 작다면 내용을 자른다( I<bufsiz> 문자들의 "
683 "길이로)."
684
685 #. type: Plain text
686 #: debian-trixie fedora-44 fedora-rawhide
687 msgid ""
688 "If the pathname given in I<pathname> is relative, then it is interpreted "
689 "relative to the directory referred to by the file descriptor I<dirfd> "
690 "(rather than relative to the current working directory of the calling "
691 "process, as is done by B<readlink>() for a relative pathname)."
692 msgstr ""
693
694 #. type: Plain text
695 #: debian-trixie fedora-44 fedora-rawhide
696 msgid ""
697 "If I<pathname> is relative and I<dirfd> is the special value B<AT_FDCWD>, "
698 "then I<pathname> is interpreted relative to the current working directory of "
699 "the calling process (like B<readlink>())."
700 msgstr ""
701
702 #. type: Plain text
703 #: debian-trixie fedora-44 fedora-rawhide
704 msgid "If I<pathname> is absolute, then I<dirfd> is ignored."
705 msgstr ""
706
707 #. commit 65cfc6722361570bfe255698d9cd4dccaf47570d
708 #. type: Plain text
709 #: debian-trixie fedora-44 fedora-rawhide
710 msgid ""
711 "Since Linux 2.6.39, I<pathname> can be an empty string, in which case the "
712 "call operates on the symbolic link referred to by I<dirfd> (which should "
713 "have been obtained using B<open>(2) with the B<O_PATH> and B<O_NOFOLLOW> "
714 "flags)."
715 msgstr ""
716
717 #. type: Plain text
718 #: debian-trixie fedora-44 fedora-rawhide
719 msgid ""
720 "(B<readlinkat>()) I<pathname> is relative but I<dirfd> is neither "
721 "B<AT_FDCWD> nor a valid file descriptor."
722 msgstr ""
723
724 #. type: Plain text
725 #: debian-trixie fedora-44 fedora-rawhide
726 msgid ""
727 "The named file (i.e., the final filename component of I<pathname>) is not a "
728 "symbolic link."
729 msgstr ""
730
731 #. type: Plain text
732 #: debian-trixie fedora-44 fedora-rawhide
733 msgid ""
734 "(B<readlinkat>()) I<pathname> is relative and I<dirfd> is a file descriptor "
735 "referring to a file other than a directory."
736 msgstr ""
737
738 #. type: Plain text
739 #: debian-trixie fedora-44 fedora-rawhide
740 msgid "POSIX.1-2008."
741 msgstr "POSIX.1-2008."
742
743 #. type: Plain text
744 #: debian-trixie fedora-44 fedora-rawhide
745 msgid ""
746 "On older kernels where B<readlinkat>() is unavailable, the glibc wrapper "
747 "function falls back to the use of B<readlink>(). When I<pathname> is a "
748 "relative pathname, glibc constructs a pathname based on the symbolic link in "
749 "I</proc/self/fd> that corresponds to the I<dirfd> argument."
750 msgstr ""
751
752 #. type: Plain text
753 #: debian-trixie fedora-44 fedora-rawhide
754 #, no-wrap
755 msgid ""
756 "#include E<lt>limits.hE<gt>\n"
757 "#include E<lt>stdio.hE<gt>\n"
758 "#include E<lt>stdlib.hE<gt>\n"
759 "#include E<lt>sys/stat.hE<gt>\n"
760 "#include E<lt>sys/types.hE<gt>\n"
761 "#include E<lt>unistd.hE<gt>\n"
762 "\\&\n"
763 "int\n"
764 "main(int argc, char *argv[])\n"
765 "{\n"
766 " char *buf;\n"
767 " ssize_t nbytes, bufsiz;\n"
768 " struct stat sb;\n"
769 "\\&\n"
770 " if (argc != 2) {\n"
771 " fprintf(stderr, \"Usage: %s E<lt>pathnameE<gt>\\[rs]n\", argv[0]);\n"
772 " exit(EXIT_FAILURE);\n"
773 " }\n"
774 "\\&\n"
775 " if (lstat(argv[1], &sb) == -1) {\n"
776 " perror(\"lstat\");\n"
777 " exit(EXIT_FAILURE);\n"
778 " }\n"
779 "\\&\n"
780 " /* Add one to the link size, so that we can determine whether\n"
781 " the buffer returned by readlink() was truncated. */\n"
782 "\\&\n"
783 " bufsiz = sb.st_size + 1;\n"
784 "\\&\n"
785 " /* Some magic symlinks under (for example) /proc and /sys\n"
786 " report \\[aq]st_size\\[aq] as zero. In that case, take PATH_MAX as\n"
787 " a \"good enough\" estimate. */\n"
788 "\\&\n"
789 " if (sb.st_size == 0)\n"
790 " bufsiz = PATH_MAX;\n"
791 "\\&\n"
792 " buf = malloc(bufsiz);\n"
793 " if (buf == NULL) {\n"
794 " perror(\"malloc\");\n"
795 " exit(EXIT_FAILURE);\n"
796 " }\n"
797 "\\&\n"
798 " nbytes = readlink(argv[1], buf, bufsiz);\n"
799 " if (nbytes == -1) {\n"
800 " perror(\"readlink\");\n"
801 " exit(EXIT_FAILURE);\n"
802 " }\n"
803 "\\&\n"
804 " /* Print only \\[aq]nbytes\\[aq] of \\[aq]buf\\[aq], as it doesn't contain a terminating\n"
805 " null byte (\\[aq]\\[rs]0\\[aq]). */\n"
806 " printf(\"\\[aq]%s\\[aq] points to \\[aq]%.*s\\[aq]\\[rs]n\", argv[1], (int) nbytes, buf);\n"
807 "\\&\n"
808 " /* If the return value was equal to the buffer size, then\n"
809 " the link target was larger than expected (perhaps because the\n"
810 " target was changed between the call to lstat() and the call to\n"
811 " readlink()). Warn the user that the returned target may have\n"
812 " been truncated. */\n"
813 "\\&\n"
814 " if (nbytes == bufsiz)\n"
815 " printf(\"(Returned buffer may have been truncated)\\[rs]n\");\n"
816 "\\&\n"
817 " free(buf);\n"
818 " exit(EXIT_SUCCESS);\n"
819 "}\n"
820 msgstr ""
821
822 #. type: TH
823 #: fedora-44 fedora-rawhide
824 #, no-wrap
825 msgid "2024-11-28"
826 msgstr "2024년 11월 28일"
827
828 #. type: TH
829 #: fedora-44 fedora-rawhide
830 #, no-wrap
831 msgid "Linux man-pages 6.13"
832 msgstr "Linux man-pages 6.13"
833
834 #. type: Plain text
835 #: fedora-44 fedora-rawhide
836 #, fuzzy, no-wrap
837 #| msgid ""
838 #| "B<ssize_t readlinkat(int >I<dirfd>B<, const char *restrict >I<pathname>B<,>\n"
839 #| "B< char *restrict >I<buf>B<, size_t >I<bufsiz>B<);>\n"
840 msgid ""
841 "B<ssize_t readlink(const char *restrict >I<pathname>B<,>\n"
842 "B< char >I<buf>B<[restrict .>I<bufsiz>B<], size_t >I<bufsiz>B<);>\n"
843 msgstr ""
844 "B<ssize_t readlinkat(int >I<dirfd>B<, const char *restrict >I<pathname>B<,>\n"
845 "B< char *restrict >I<buf>B<, size_t >I<bufsiz>B<);>\n"
846
847 #. type: Plain text
848 #: fedora-44 fedora-rawhide
849 #, fuzzy, no-wrap
850 #| msgid ""
851 #| "B<ssize_t readlinkat(int >I<dirfd>B<, const char *restrict >I<pathname>B<,>\n"
852 #| "B< char *restrict >I<buf>B<, size_t >I<bufsiz>B<);>\n"
853 msgid ""
854 "B<ssize_t readlinkat(int >I<dirfd>B<, const char *restrict >I<pathname>B<,>\n"
855 "B< char >I<buf>B<[restrict .>I<bufsiz>B<], size_t >I<bufsiz>B<);>\n"
856 msgstr ""
857 "B<ssize_t readlinkat(int >I<dirfd>B<, const char *restrict >I<pathname>B<,>\n"
858 "B< char *restrict >I<buf>B<, size_t >I<bufsiz>B<);>\n"
859
860 #. type: TH
861 #: mageia-cauldron
862 #, no-wrap
863 msgid "Linux man-pages 6.17"
864 msgstr "Linux man-pages 6.17"
865
866 #. type: TH
867 #: opensuse-leap-16-1 opensuse-tumbleweed
868 #, no-wrap
869 msgid "Linux man-pages (unreleased)"
870 msgstr "Linux man-pages (미공개)"