Debian Codegraph @

po/ru/man3/getcwd.3.po

raw
1 # Russian translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Azamat Hackimov <[email protected]>, 2013-2014, 2017.
5 # Dmitry Bolkhovskikh <[email protected]>, 2017.
6 # Vladislav <[email protected]>, 2015.
7 # Yuri Kozlov <[email protected]>, 2011-2019.
8 # Иван Павлов <[email protected]>, 2017, 2019.
9 msgid ""
10 msgstr ""
11 "Project-Id-Version: manpages-l10n\n"
12 "POT-Creation-Date: 2026-06-05 06:25+0200\n"
13 "PO-Revision-Date: 2024-12-21 19:50+0300\n"
14 "Last-Translator: Yuri Kozlov <[email protected]>\n"
15 "Language-Team: Russian <[email protected]>\n"
16 "Language: ru\n"
17 "MIME-Version: 1.0\n"
18 "Content-Type: text/plain; charset=UTF-8\n"
19 "Content-Transfer-Encoding: 8bit\n"
20 "Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
21 "n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || "
22 "(n%100>=11 && n%100<=14)? 2 : 3);\n"
23 "X-Generator: Lokalize 2.0\n"
24
25 #. type: TH
26 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
27 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
28 #, no-wrap
29 msgid "getcwd"
30 msgstr ""
31
32 #. type: TH
33 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
34 #: opensuse-tumbleweed
35 #, no-wrap
36 msgid "2026-02-08"
37 msgstr "8 февраля 2026 г."
38
39 #. type: TH
40 #: archlinux debian-unstable
41 #, fuzzy, no-wrap
42 #| msgid "Linux man-pages 6.17"
43 msgid "Linux man-pages 6.18"
44 msgstr "Справочные страницы Linux 6.17"
45
46 #. type: SH
47 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
48 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
49 #, no-wrap
50 msgid "NAME"
51 msgstr "НАИМЕНОВАНИЕ"
52
53 #. type: Plain text
54 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
55 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
56 msgid "getcwd, getwd, get_current_dir_name - get current working directory"
57 msgstr ""
58 "getcwd, getwd, get_current_dir_name - возвращают текущий рабочий каталог"
59
60 #. type: SH
61 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
62 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
63 #, no-wrap
64 msgid "LIBRARY"
65 msgstr "БИБЛИОТЕКА"
66
67 #. type: Plain text
68 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
69 #: opensuse-leap-16-1 opensuse-tumbleweed
70 msgid "Standard C library (I<libc>,\\ I<-lc>)"
71 msgstr "Стандартная библиотека языка C (I<libc>,\\ I<-lc>)"
72
73 #. type: SH
74 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
75 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
76 #, no-wrap
77 msgid "SYNOPSIS"
78 msgstr "СИНТАКСИС"
79
80 #. type: Plain text
81 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
82 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
83 #, no-wrap
84 msgid "B<#include E<lt>unistd.hE<gt>>\n"
85 msgstr "B<#include E<lt>unistd.hE<gt>>\n"
86
87 #. type: Plain text
88 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
89 #: opensuse-tumbleweed
90 #, fuzzy, no-wrap
91 #| msgid "B<char *getcwd(char *>I<buf>B<, size_t >I<size>B<);>\n"
92 msgid ""
93 "B<char *getcwd(>size_t size;\n"
94 "B< char >I<buf>B<[>I<size>B<], size_t >I<size>B<);>\n"
95 "B<char *get_current_dir_name(void);>\n"
96 msgstr "B<char *getcwd(char *>I<buf>B<, size_t >I<size>B<);>\n"
97
98 #. type: Plain text
99 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
100 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
101 #, fuzzy, no-wrap
102 #| msgid "B<char *getwd(char *>I<buf>B<);>\n"
103 msgid "B<[[deprecated]] char *getwd(char >I<buf>B<[PATH_MAX]);>\n"
104 msgstr "B<char *getwd(char *>I<buf>B<);>\n"
105
106 #. type: Plain text
107 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
108 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
109 msgid ""
110 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
111 msgstr ""
112 "Требования макроса тестирования свойств для glibc (см. "
113 "B<feature_test_macros>(7)):"
114
115 #. type: Plain text
116 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
117 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
118 msgid "B<get_current_dir_name>():"
119 msgstr "B<get_current_dir_name>():"
120
121 #. type: Plain text
122 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
123 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
124 #, no-wrap
125 msgid " _GNU_SOURCE\n"
126 msgstr " _GNU_SOURCE\n"
127
128 #. type: Plain text
129 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
130 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
131 msgid "B<getwd>():"
132 msgstr "B<getwd>():"
133
134 #. || _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED
135 #. type: Plain text
136 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
137 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
138 #, no-wrap
139 msgid ""
140 " Since glibc 2.12:\n"
141 " (_XOPEN_SOURCE E<gt>= 500) && ! (_POSIX_C_SOURCE E<gt>= 200809L)\n"
142 " || /* glibc E<gt>= 2.19: */ _DEFAULT_SOURCE\n"
143 " || /* glibc E<lt>= 2.19: */ _BSD_SOURCE\n"
144 " Before glibc 2.12:\n"
145 " _BSD_SOURCE || _XOPEN_SOURCE E<gt>= 500\n"
146 msgstr ""
147 " Начиная с glibc 2.12:\n"
148 " (_XOPEN_SOURCE E<gt>= 500) && ! (_POSIX_C_SOURCE E<gt>= 200809L)\n"
149 " || /* glibc E<gt>= 2.19: */ _DEFAULT_SOURCE\n"
150 " || /* glibc E<lt>= 2.19: */ _BSD_SOURCE\n"
151 " До glibc 2.12:\n"
152 " _BSD_SOURCE || _XOPEN_SOURCE E<gt>= 500\n"
153
154 #. type: SH
155 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
156 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
157 #, no-wrap
158 msgid "DESCRIPTION"
159 msgstr "ОПИСАНИЕ"
160
161 #. type: Plain text
162 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
163 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
164 msgid ""
165 "These functions return a null-terminated string containing an absolute "
166 "pathname that is the current working directory of the calling process. The "
167 "pathname is returned as the function result and via the argument I<buf>, if "
168 "present."
169 msgstr ""
170 "Данные функции возвращают строку (с null в конце), содержащую абсолютный "
171 "путь текущего рабочего каталога вызывающего процесса. Путь возвращается как "
172 "результат функции или в аргументе I<buf>, если он есть."
173
174 #. type: Plain text
175 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
176 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
177 msgid ""
178 "The B<getcwd>() function copies an absolute pathname of the current working "
179 "directory to the array pointed to by I<buf>, which is of length I<size>."
180 msgstr ""
181 "Функция B<getcwd>() копирует абсолютный путь текущего рабочего каталога в "
182 "массив, на который указывает I<buf>, имеющий длину I<size>."
183
184 #. type: Plain text
185 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
186 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
187 msgid ""
188 "If the length of the absolute pathname of the current working directory, "
189 "including the terminating null byte, exceeds I<size> bytes, NULL is "
190 "returned, and I<errno> is set to B<ERANGE>; an application should check for "
191 "this error, and allocate a larger buffer if necessary."
192 msgstr ""
193 "Если длина абсолютного пути, включая конечный байт null, превышает I<size> "
194 "байт, то возвращается NULL, а I<errno> принимает значение B<ERANGE>; "
195 "приложение должно проверить, возникла эта ошибка или нет и, если необходимо, "
196 "выделить буфер большего размера."
197
198 #. type: Plain text
199 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
200 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
201 msgid ""
202 "As an extension to the POSIX.1-2001 standard, glibc's B<getcwd>() allocates "
203 "the buffer dynamically using B<malloc>(3) if I<buf> is NULL. In this case, "
204 "the allocated buffer has the length I<size> unless I<size> is zero, when "
205 "I<buf> is allocated as big as necessary. The caller should B<free>(3) the "
206 "returned buffer."
207 msgstr ""
208 "Согласно расширению стандарта POSIX.1-2001 в glibc предусмотрено следующее: "
209 "если I<buf> равно NULL, то при вызове B<getcwd>() буфер выделяется "
210 "динамически с помощью функции B<malloc>(3). В этом случае выделенный буфер "
211 "имеет размер I<size>; если I<size> равно нулю, то выделяется I<buf> "
212 "необходимого размера. Вызывающий после использования должен освободить "
213 "выделенный буфер с помощью B<free>(3)."
214
215 #. type: Plain text
216 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
217 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
218 msgid ""
219 "B<get_current_dir_name>() will B<malloc>(3) an array big enough to hold "
220 "the absolute pathname of the current working directory. If the environment "
221 "variable B<PWD> is set, and its value is correct, then that value will be "
222 "returned. The caller should B<free>(3) the returned buffer."
223 msgstr ""
224 "Функция B<get_current_dir_name>() выделит с помощью B<malloc>(3) массив, "
225 "достаточно большой для помещения в него абсолютного пути имени текущего "
226 "каталога. Если существует и имеет правильное значение переменная окружения "
227 "B<PWD>, то будет возвращено её значение. Вызывающий после использования "
228 "должен освободить выделенный буфер с помощью B<free>(3)."
229
230 #. type: Plain text
231 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
232 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
233 msgid ""
234 "B<getwd>() does not B<malloc>(3) any memory. The I<buf> argument should "
235 "be a pointer to an array at least B<PATH_MAX> bytes long. If the length of "
236 "the absolute pathname of the current working directory, including the "
237 "terminating null byte, exceeds B<PATH_MAX> bytes, NULL is returned, and "
238 "I<errno> is set to B<ENAMETOOLONG>. (Note that on some systems, B<PATH_MAX> "
239 "may not be a compile-time constant; furthermore, its value may depend on the "
240 "filesystem, see B<pathconf>(3).) For portability and security reasons, use "
241 "of B<getwd>() is deprecated."
242 msgstr ""
243 "Функция B<getwd>() не выделяет память с помощью B<malloc>(3). Аргумент "
244 "I<buf> должен быть указателем на массив длиной не менее B<PATH_MAX> байтов. "
245 "Если длина абсолютного пути текущего рабочего каталога, включая конечный "
246 "байт null, превышает B<PATH_MAX> байт, то возвращается NULL и I<errno> "
247 "присваивается значение B<ENAMETOOLONG> (заметим, что в некоторых системах "
248 "B<PATH_MAX> может не являться константой времени компиляции; более того, её "
249 "значение может зависеть от файловой системы, смотрите B<pathconf>(3)). Для "
250 "переносимости и безопасности использование B<getwd>() не рекомендуется."
251
252 #. type: SH
253 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
254 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
255 #, no-wrap
256 msgid "RETURN VALUE"
257 msgstr "ВОЗВРАЩАЕМОЕ ЗНАЧЕНИЕ"
258
259 #. type: Plain text
260 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
261 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
262 #, fuzzy
263 #| msgid ""
264 #| "On success, these functions return a pointer to a string containing the "
265 #| "pathname of the current working directory. In the case B<getcwd>() and "
266 #| "B<getwd>() this is the same value as I<buf>."
267 msgid ""
268 "On success, these functions return a pointer to a string containing the "
269 "pathname of the current working directory. In the case of B<getcwd>() and "
270 "B<getwd>() this is the same value as I<buf>."
271 msgstr ""
272 "При успешном выполнении эти функции возвращают указатель на строку, "
273 "содержащую пути текущего рабочего каталога. У B<getcwd>() и B<getwd>() это "
274 "значение совпадает с I<buf>."
275
276 #. type: Plain text
277 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
278 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
279 msgid ""
280 "On failure, these functions return NULL, and I<errno> is set to indicate the "
281 "error. The contents of the array pointed to by I<buf> are undefined on "
282 "error."
283 msgstr ""
284 "При ошибках эти функции возвращают NULL и в I<errno> помещают причину "
285 "ошибки. Содержимое массива I<buf> в этом случае не определено."
286
287 #. type: SH
288 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
289 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
290 #, no-wrap
291 msgid "ERRORS"
292 msgstr "ОШИБКИ"
293
294 #. type: TP
295 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
296 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
297 #, no-wrap
298 msgid "B<EACCES>"
299 msgstr "B<EACCES>"
300
301 #. type: Plain text
302 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
303 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
304 msgid "Permission to read or search a component of the filename was denied."
305 msgstr "Нет прав на чтение или поиск одного из компонентов пути файла."
306
307 #. type: TP
308 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
309 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
310 #, no-wrap
311 msgid "B<EFAULT>"
312 msgstr "B<EFAULT>"
313
314 #. type: Plain text
315 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
316 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
317 msgid "I<buf> points to a bad address."
318 msgstr "Значение I<buf> указывает на неправильный адрес."
319
320 #. type: TP
321 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
322 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
323 #, no-wrap
324 msgid "B<EINVAL>"
325 msgstr "B<EINVAL>"
326
327 #. type: Plain text
328 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
329 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
330 msgid "The I<size> argument is zero and I<buf> is not a null pointer."
331 msgstr "Аргумент I<size> равен нулю, а I<buf> не является указателем null."
332
333 #. type: Plain text
334 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
335 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
336 msgid "B<getwd>(): I<buf> is NULL."
337 msgstr "B<getwd>(): I<buf> равно NULL."
338
339 #. type: TP
340 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
341 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
342 #, no-wrap
343 msgid "B<ENAMETOOLONG>"
344 msgstr "B<ENAMETOOLONG>"
345
346 #. type: Plain text
347 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
348 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
349 msgid ""
350 "B<getwd>(): The size of the null-terminated absolute pathname string exceeds "
351 "B<PATH_MAX> bytes."
352 msgstr ""
353 "B<getwd>(): Размер строки абсолютного пути, включая конечный null, превышает "
354 "B<PATH_MAX> байт."
355
356 #. type: TP
357 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
358 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
359 #, no-wrap
360 msgid "B<ENOENT>"
361 msgstr "B<ENOENT>"
362
363 #. type: Plain text
364 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
365 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
366 msgid "The current working directory has been unlinked."
367 msgstr "Текущий рабочий каталог был удалён."
368
369 #. type: TP
370 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
371 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
372 #, no-wrap
373 msgid "B<ENOMEM>"
374 msgstr "B<ENOMEM>"
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 msgid "Out of memory."
380 msgstr "Не хватает памяти."
381
382 #. type: TP
383 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
384 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
385 #, no-wrap
386 msgid "B<ERANGE>"
387 msgstr "B<ERANGE>"
388
389 #. type: Plain text
390 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
391 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
392 msgid ""
393 "The I<size> argument is less than the length of the absolute pathname of the "
394 "working directory, including the terminating null byte. You need to "
395 "allocate a bigger array and try again."
396 msgstr ""
397 "Аргумент I<size> меньше длины абсолютного пути рабочего каталога, включая "
398 "конечный байт null. Вам нужно выделить массив большего размера попробовать "
399 "ещё раз."
400
401 #. type: SH
402 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
403 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
404 #, no-wrap
405 msgid "ATTRIBUTES"
406 msgstr "АТРИБУТЫ"
407
408 #. type: Plain text
409 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
410 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
411 msgid ""
412 "For an explanation of the terms used in this section, see B<attributes>(7)."
413 msgstr "Описание терминов данного раздела смотрите в B<attributes>(7)."
414
415 #. type: tbl table
416 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
417 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
418 #, no-wrap
419 msgid "Interface"
420 msgstr "Интерфейс"
421
422 #. type: tbl table
423 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
424 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
425 #, no-wrap
426 msgid "Attribute"
427 msgstr "Атрибут"
428
429 #. type: tbl table
430 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
431 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
432 #, no-wrap
433 msgid "Value"
434 msgstr "Значение"
435
436 #. type: tbl table
437 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
438 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
439 #, no-wrap
440 msgid ".na\n"
441 msgstr ".na\n"
442
443 #. type: tbl table
444 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
445 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
446 #, no-wrap
447 msgid ".nh\n"
448 msgstr ".nh\n"
449
450 #. type: tbl table
451 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
452 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
453 #, no-wrap
454 msgid ""
455 "B<getcwd>(),\n"
456 "B<getwd>()"
457 msgstr ""
458 "B<getcwd>(),\n"
459 "B<getwd>()"
460
461 #. type: tbl table
462 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
463 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
464 #, no-wrap
465 msgid "Thread safety"
466 msgstr "Безвредность в нитях"
467
468 #. type: tbl table
469 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
470 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
471 #, no-wrap
472 msgid "MT-Safe"
473 msgstr "MT-Safe"
474
475 #. type: TP
476 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
477 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
478 #, no-wrap
479 msgid "B<get_current_dir_name>()"
480 msgstr "B<get_current_dir_name>()"
481
482 #. type: tbl table
483 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
484 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
485 #, no-wrap
486 msgid "MT-Safe env"
487 msgstr "MT-Safe env"
488
489 #. type: SH
490 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
491 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
492 #, no-wrap
493 msgid "VERSIONS"
494 msgstr "ВЕРСИИ"
495
496 #. type: Plain text
497 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
498 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
499 #, fuzzy
500 #| msgid ""
501 #| "B<getcwd>() conforms to POSIX.1-2001. Note however that POSIX.1-2001 "
502 #| "leaves the behavior of B<getcwd>() unspecified if I<buf> is NULL."
503 msgid ""
504 "POSIX.1-2001 leaves the behavior of B<getcwd>() unspecified if I<buf> is "
505 "NULL."
506 msgstr ""
507 "Функция B<getcwd>() соответствует POSIX.1-2001. Однако заметим, что в "
508 "POSIX.1-2001 не описано поведение B<getcwd>(), если I<buf> равно NULL."
509
510 #. type: Plain text
511 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
512 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
513 msgid "POSIX.1-2001 does not define any errors for B<getwd>()."
514 msgstr ""
515
516 #. type: SS
517 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
518 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
519 #, no-wrap
520 msgid "C library/kernel differences"
521 msgstr "Отличия между библиотекой C и ядром"
522
523 #. commit 3272c544da48f8915a0e34189182aed029bd0f2b
524 #. type: Plain text
525 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
526 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
527 msgid ""
528 "On Linux, the kernel provides a B<getcwd>() system call, which the "
529 "functions described in this page will use if possible. The system call "
530 "takes the same arguments as the library function of the same name, but is "
531 "limited to returning at most B<PATH_MAX> bytes. (Before Linux 3.12, the "
532 "limit on the size of the returned pathname was the system page size. On "
533 "many architectures, B<PATH_MAX> and the system page size are both 4096 "
534 "bytes, but a few architectures have a larger page size.) If the length of "
535 "the pathname of the current working directory exceeds this limit, then the "
536 "system call fails with the error B<ENAMETOOLONG>. In this case, the library "
537 "functions fall back to a (slower) alternative implementation that returns "
538 "the full pathname."
539 msgstr ""
540 "Ядро Linux предоставляет системный вызов B<getcwd>(), который, если "
541 "возможно, будут использовать описываемые на этой страницы функции. Системный "
542 "вызов имеет такие же параметры как и библиотечная функция с тем же именем, "
543 "но возвращает не более B<PATH_MAX> байт (до Linux 3.12 размер возвращаемого "
544 "пути ограничивался размером системной страницы. На многих архитектурах "
545 "B<PATH_MAX> и размер системной страницы равны 4096 байтам, но у некоторых "
546 "архитектур размер страницы больше этого значения). Если длина пути текущего "
547 "рабочего каталога превышает это ограничение, то системный вызов возвращает "
548 "ошибку B<ENAMETOOLONG>. В этом случае библиотечные функции переходят к "
549 "использованию альтернативной (медленной) реализации, которая возвращает "
550 "полный путь."
551
552 #. commit 8df9d1a4142311c084ffeeacb67cd34d190eff74
553 #. type: Plain text
554 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
555 #: opensuse-leap-16-1 opensuse-tumbleweed
556 #, fuzzy
557 #| msgid ""
558 #| "Following a change in Linux 2.6.36, the pathname returned by the "
559 #| "B<getcwd>() system call will be prefixed with the string \"(unreachable)"
560 #| "\" if the current directory is not below the root directory of the "
561 #| "current process (e.g., because the process set a new filesystem root "
562 #| "using B<chroot>(2) without changing its current directory into the new "
563 #| "root). Such behavior can also be caused by an unprivileged user by "
564 #| "changing the current directory into another mount namespace. When "
565 #| "dealing with pathname from untrusted sources, callers of the functions "
566 #| "described in this page should consider checking whether the returned "
567 #| "pathname starts with '/' or '(' to avoid misinterpreting an unreachable "
568 #| "path as a relative pathname."
569 msgid ""
570 "Following a change in Linux 2.6.36, the pathname returned by the "
571 "B<getcwd>() system call will be prefixed with the string \"(unreachable)\" "
572 "if the current directory is not below the root directory of the current "
573 "process (e.g., because the process set a new filesystem root using "
574 "B<chroot>(2) without changing its current directory into the new root). "
575 "Such behavior can also be caused by an unprivileged user by changing the "
576 "current directory into another mount namespace. When dealing with pathnames "
577 "from untrusted sources, callers of the functions described in this page "
578 "(before glibc 2.27) or the raw B<getcwd>() system call should consider "
579 "checking whether the returned pathname starts with '/' or '(' to avoid "
580 "misinterpreting an unreachable path as a relative pathname."
581 msgstr ""
582 "После внесения изменения в Linux 2.6.36, путь, возвращаемый системным "
583 "вызовом B<getcwd>(), будет начинаться со строки «(unreachable)», если "
584 "текущий каталог не ниже корневого каталога текущего процесса (например, из-"
585 "за того, что процесс установил новую корневую файловую систему с помощью "
586 "B<chroot>(2) без изменения своего текущего каталога в новый корень). Такое "
587 "поведение также проявляется у непривилегированного пользователя текущий "
588 "каталог переводится в другое пространство имён монтирования. При работе с "
589 "путём из недоверенных источников вызывающие описанные на этой странице "
590 "функции должны учитывать, что возвращаемый путь может начинаться с «/» или "
591 "«(», и не принимать недоступный путь за относительный."
592
593 #. type: SH
594 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
595 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
596 #, no-wrap
597 msgid "STANDARDS"
598 msgstr "СТАНДАРТЫ"
599
600 #. type: TP
601 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
602 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
603 #, fuzzy, no-wrap
604 #| msgid "B<getwd>():"
605 msgid "B<getcwd>()"
606 msgstr "B<getwd>():"
607
608 #. type: Plain text
609 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
610 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
611 msgid "POSIX.1-2008."
612 msgstr "POSIX.1-2008."
613
614 #. type: Plain text
615 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
616 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
617 msgid "GNU."
618 msgstr "GNU."
619
620 #. type: TP
621 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
622 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
623 #, fuzzy, no-wrap
624 #| msgid "B<getwd>():"
625 msgid "B<getwd>()"
626 msgstr "B<getwd>():"
627
628 #. type: Plain text
629 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
630 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
631 msgid "None."
632 msgstr "Отсутствуют."
633
634 #. type: SH
635 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
636 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
637 #, no-wrap
638 msgid "HISTORY"
639 msgstr "ИСТОРИЯ"
640
641 #. type: Plain text
642 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
643 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
644 msgid "POSIX.1-2001."
645 msgstr "POSIX.1-2001."
646
647 #. type: Plain text
648 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
649 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
650 msgid ""
651 "POSIX.1-2001, but marked LEGACY. Removed in POSIX.1-2008. Use B<getcwd>() "
652 "instead."
653 msgstr ""
654
655 #. type: Plain text
656 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
657 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
658 msgid ""
659 "Under Linux, these functions make use of the B<getcwd>() system call "
660 "(available since Linux 2.1.92). On older systems they would query I</proc/"
661 "self/cwd>. If both system call and proc filesystem are missing, a generic "
662 "implementation is called. Only in that case can these calls fail under "
663 "Linux with B<EACCES>."
664 msgstr ""
665 "В Linux, эти функции используют системный вызов B<getcwd>() (доступен в "
666 "Linux, начиная с версии 2.1.92). В старых системах они опрашивают I</proc/"
667 "self/cwd>. Если в системе отсутствует системный вызов и файловая система "
668 "proc, то задействуется обобщённая реализация. Только в этом случает данные "
669 "вызовы в Linux могут завершиться с ошибкой B<EACCES>."
670
671 #. type: SH
672 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
673 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
674 #, no-wrap
675 msgid "NOTES"
676 msgstr "ПРИМЕЧАНИЯ"
677
678 #. type: Plain text
679 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
680 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
681 msgid ""
682 "These functions are often used to save the location of the current working "
683 "directory for the purpose of returning to it later. Opening the current "
684 "directory (\".\") and calling B<fchdir>(2) to return is usually a faster "
685 "and more reliable alternative when sufficiently many file descriptors are "
686 "available, especially on platforms other than Linux."
687 msgstr ""
688 "Данные функции часто используются для сохранения расположения текущего "
689 "рабочего каталога с целью возврата в него позднее. Открытие текущего "
690 "каталога («.») и вызов B<fchdir>(2) для возврата, обычно, более быстрая и "
691 "надёжная альтернатива при наличии достаточного количества файловых "
692 "дескрипторов, особенно на платформах, отличных от Linux."
693
694 #. type: SH
695 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
696 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
697 #, no-wrap
698 msgid "BUGS"
699 msgstr "ПРОГРАММНЫЕ ОШИБКИ"
700
701 #. type: Plain text
702 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
703 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
704 msgid ""
705 "Since the Linux 2.6.36 change that added \"(unreachable)\" in the "
706 "circumstances described above, the glibc implementation of B<getcwd>() has "
707 "failed to conform to POSIX and returned a relative pathname when the API "
708 "contract requires an absolute pathname. With glibc 2.27 onwards this is "
709 "corrected; calling B<getcwd>() from such a pathname will now result in "
710 "failure with B<ENOENT>."
711 msgstr ""
712 "Так как изменения в Linux 2.6.36 добавляет при описанных выше определённых "
713 "обстоятельствах «(unreachable)», реализация B<getcwd>() в glibc нарушает "
714 "POSIX и возвращает относительный путь, в то время как по соглашению API "
715 "требуется абсолютный путь. В glibc 2.27 и новее это исправлено; вызов "
716 "B<getcwd>() из такого пути приводит к ошибке B<ENOENT>."
717
718 #. type: SH
719 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
720 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
721 #, no-wrap
722 msgid "SEE ALSO"
723 msgstr "СМОТРИТЕ ТАКЖЕ"
724
725 #. type: Plain text
726 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
727 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
728 msgid ""
729 "B<pwd>(1), B<chdir>(2), B<fchdir>(2), B<open>(2), B<unlink>(2), B<free>(3), "
730 "B<malloc>(3)"
731 msgstr ""
732 "B<pwd>(1), B<chdir>(2), B<fchdir>(2), B<open>(2), B<unlink>(2), B<free>(3), "
733 "B<malloc>(3)"
734
735 #. type: TH
736 #: debian-trixie
737 #, no-wrap
738 msgid "2024-05-02"
739 msgstr "2 мая 2024 г."
740
741 #. type: TH
742 #: debian-trixie
743 #, no-wrap
744 msgid "Linux man-pages 6.9.1"
745 msgstr "Страницы руководства Linux 6.9.1"
746
747 #. type: Plain text
748 #: debian-trixie
749 msgid "Standard C library (I<libc>, I<-lc>)"
750 msgstr "Стандартная библиотека языка C (I<libc>, I<-lc>)"
751
752 #. type: Plain text
753 #: debian-trixie fedora-44 fedora-rawhide
754 #, fuzzy, no-wrap
755 #| msgid "B<char *getcwd(char *>I<buf>B<, size_t >I<size>B<);>\n"
756 msgid ""
757 "B<char *getcwd(char >I<buf>B<[.>I<size>B<], size_t >I<size>B<);>\n"
758 "B<char *get_current_dir_name(void);>\n"
759 msgstr "B<char *getcwd(char *>I<buf>B<, size_t >I<size>B<);>\n"
760
761 #. commit 8df9d1a4142311c084ffeeacb67cd34d190eff74
762 #. type: Plain text
763 #: debian-trixie
764 msgid ""
765 "Following a change in Linux 2.6.36, the pathname returned by the "
766 "B<getcwd>() system call will be prefixed with the string \"(unreachable)\" "
767 "if the current directory is not below the root directory of the current "
768 "process (e.g., because the process set a new filesystem root using "
769 "B<chroot>(2) without changing its current directory into the new root). "
770 "Such behavior can also be caused by an unprivileged user by changing the "
771 "current directory into another mount namespace. When dealing with pathname "
772 "from untrusted sources, callers of the functions described in this page "
773 "should consider checking whether the returned pathname starts with '/' or "
774 "'(' to avoid misinterpreting an unreachable path as a relative pathname."
775 msgstr ""
776 "После внесения изменения в Linux 2.6.36, путь, возвращаемый системным "
777 "вызовом B<getcwd>(), будет начинаться со строки «(unreachable)», если "
778 "текущий каталог не ниже корневого каталога текущего процесса (например, из-"
779 "за того, что процесс установил новую корневую файловую систему с помощью "
780 "B<chroot>(2) без изменения своего текущего каталога в новый корень). Такое "
781 "поведение также проявляется у непривилегированного пользователя текущий "
782 "каталог переводится в другое пространство имён монтирования. При работе с "
783 "путём из недоверенных источников вызывающие описанные на этой странице "
784 "функции должны учитывать, что возвращаемый путь может начинаться с «/» или "
785 "«(», и не принимать недоступный путь за относительный."
786
787 #. type: TH
788 #: fedora-44 fedora-rawhide
789 #, no-wrap
790 msgid "2025-02-20"
791 msgstr "20 февраля 2025 г."
792
793 #. type: TH
794 #: fedora-44 fedora-rawhide
795 #, no-wrap
796 msgid "Linux man-pages 6.13"
797 msgstr "Страницы руководства Linux 6.13"
798
799 #. type: TH
800 #: mageia-cauldron
801 #, no-wrap
802 msgid "Linux man-pages 6.17"
803 msgstr "Страницы руководства Linux 6.17"
804
805 #. type: TH
806 #: opensuse-leap-16-1 opensuse-tumbleweed
807 #, no-wrap
808 msgid "Linux man-pages (unreleased)"
809 msgstr "Страницы руководства Linux (не выпущены)"