Debian Codegraph @

po/ru/man2/getpid.2.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:49+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 "getpid"
30 msgstr "getpid"
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 "getpid, getppid - get process identification"
57 msgstr "getpid, getppid - получение идентификатора процесса"
58
59 #. type: SH
60 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
61 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
62 #, no-wrap
63 msgid "LIBRARY"
64 msgstr "БИБЛИОТЕКА"
65
66 #. type: Plain text
67 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
68 #: opensuse-leap-16-1 opensuse-tumbleweed
69 msgid "Standard C library (I<libc>,\\ I<-lc>)"
70 msgstr "Стандартная библиотека языка C (I<libc>,\\ I<-lc>)"
71
72 #. type: SH
73 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
74 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
75 #, no-wrap
76 msgid "SYNOPSIS"
77 msgstr "СИНТАКСИС"
78
79 #. type: Plain text
80 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
81 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
82 #, no-wrap
83 msgid "B<#include E<lt>unistd.hE<gt>>\n"
84 msgstr "B<#include E<lt>unistd.hE<gt>>\n"
85
86 #. type: Plain text
87 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
88 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
89 #, no-wrap
90 msgid ""
91 "B<pid_t getpid(void);>\n"
92 "B<pid_t getppid(void);>\n"
93 msgstr ""
94 "B<pid_t getpid(void);>\n"
95 "B<pid_t getppid(void);>\n"
96
97 #. type: SH
98 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
99 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
100 #, no-wrap
101 msgid "DESCRIPTION"
102 msgstr "ОПИСАНИЕ"
103
104 #. type: Plain text
105 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
106 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
107 msgid ""
108 "B<getpid>() returns the process ID (PID) of the calling process. (This is "
109 "often used by routines that generate unique temporary filenames.)"
110 msgstr ""
111 "Вызов B<getpid>() возвращает идентификатор (PID) вызвавшего процесса (часто "
112 "используется функциями, которые генерируют уникальные имена временных "
113 "файлов)."
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 ""
119 "B<getppid>() returns the process ID of the parent of the calling process. "
120 "This will be either the ID of the process that created this process using "
121 "B<fork>(), or, if that process has already terminated, the ID of the process "
122 "to which this process has been reparented (either B<init>(1) or a "
123 "\"subreaper\" process defined via the B<prctl>(2) B<PR_SET_CHILD_SUBREAPER> "
124 "operation)."
125 msgstr ""
126 "Вызов B<getppid>() возвращает идентификатор процесса, являющегося "
127 "родительским по отношению к вызвавшему процессу. Результат равен "
128 "идентификатору процесса, который создал этот процесс с помощью B<fork>(), "
129 "или идентификатору процесса, который заместил родителя (или B<init>(1), или "
130 "процесс «сборщик», определённый с помощью операции B<PR_SET_CHILD_SUBREAPER> "
131 "вызовом B<prctl>(2)), если этот процесс уже завершён."
132
133 #. type: SH
134 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
135 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
136 #, no-wrap
137 msgid "ERRORS"
138 msgstr "ОШИБКИ"
139
140 #. type: Plain text
141 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
142 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
143 msgid "These functions are always successful."
144 msgstr "Функции всегда завершаются успешно."
145
146 #. type: SH
147 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
148 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
149 #, no-wrap
150 msgid "VERSIONS"
151 msgstr "ВЕРСИИ"
152
153 #. type: Plain text
154 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
155 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
156 msgid ""
157 "On Alpha, instead of a pair of B<getpid>() and B<getppid>() system calls, "
158 "a single B<getxpid>() system call is provided, which returns a pair of PID "
159 "and parent PID. The glibc B<getpid>() and B<getppid>() wrapper functions "
160 "transparently deal with this. See B<syscall>(2) for details regarding "
161 "register mapping."
162 msgstr ""
163 "На Alpha вместо пары системных вызовов B<getpid>() и B<getppid>() "
164 "предоставляется один B<getxpid>(), который возвращает пару PID и "
165 "родительский PID. Обёрточные функции glibc B<getpid>() и B<getppid>() "
166 "скрывают это. Подробности об отображении регистров смотрите в B<syscall>(2)."
167
168 #. type: SH
169 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
170 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
171 #, no-wrap
172 msgid "STANDARDS"
173 msgstr "СТАНДАРТЫ"
174
175 #. type: Plain text
176 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
177 #: opensuse-tumbleweed
178 msgid "POSIX.1-2024."
179 msgstr "POSIX.1-2024."
180
181 #. type: SH
182 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
183 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
184 #, no-wrap
185 msgid "HISTORY"
186 msgstr "ИСТОРИЯ"
187
188 #. type: Plain text
189 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
190 #: opensuse-tumbleweed
191 #, fuzzy
192 #| msgid "4.4BSD, SVr4, POSIX.1-2001."
193 msgid "4.3BSD, SVr4, POSIX.1-1988."
194 msgstr "4.4BSD, SVr4, POSIX.1-2001."
195
196 #. type: SS
197 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
198 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
199 #, no-wrap
200 msgid "C library/kernel differences"
201 msgstr "Отличия между библиотекой C и ядром"
202
203 #. The following program demonstrates this "feature":
204 #. #define _GNU_SOURCE
205 #. #include <sys/syscall.h>
206 #. #include <sys/wait.h>
207 #. #include <stdint.h>
208 #. #include <stdio.h>
209 #. #include <stdlib.h>
210 #. #include <unistd.h>
211 #. int
212 #. main(int argc, char *argv[])
213 #. {
214 #. /* The following statement fills the getpid() cache */
215 #. printf("parent PID = %ld
216 #. ", (intmax_t) getpid());
217 #. if (syscall(SYS_fork) == 0) {
218 #. if (getpid() != syscall(SYS_getpid))
219 #. printf("child getpid() mismatch: getpid()=%jd; "
220 #. "syscall(SYS_getpid)=%ld
221 #. ",
222 #. (intmax_t) getpid(), (long) syscall(SYS_getpid));
223 #. exit(EXIT_SUCCESS);
224 #. }
225 #. wait(NULL);
226 #. }
227 #. type: Plain text
228 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
229 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
230 #, fuzzy
231 #| msgid ""
232 #| "From glibc version 2.3.4 up to and including version 2.24, the glibc "
233 #| "wrapper function for B<getpid>() cached PIDs, with the goal of avoiding "
234 #| "additional system calls when a process calls B<getpid>() repeatedly. "
235 #| "Normally this caching was invisible, but its correct operation relied on "
236 #| "support in the wrapper functions for B<fork>(2), B<vfork>(2), and "
237 #| "B<clone>(2): if an application bypassed the glibc wrappers for these "
238 #| "system calls by using B<syscall>(2), then a call to B<getpid>() in the "
239 #| "child would return the wrong value (to be precise: it would return the "
240 #| "PID of the parent process). In addition, there were cases where "
241 #| "B<getpid>() could return the wrong value even when invoking B<clone>(2) "
242 #| "via the glibc wrapper function. (For a discussion of one such case, see "
243 #| "BUGS in B<clone>(2).) Furthermore, the complexity of the caching code "
244 #| "had been the source of a few bugs within glibc over the years."
245 msgid ""
246 "From glibc 2.3.4 up to and including glibc 2.24, the glibc wrapper function "
247 "for B<getpid>() cached PIDs, with the goal of avoiding additional system "
248 "calls when a process calls B<getpid>() repeatedly. Normally this caching "
249 "was invisible, but its correct operation relied on support in the wrapper "
250 "functions for B<fork>(2), B<vfork>(2), and B<clone>(2): if an application "
251 "bypassed the glibc wrappers for these system calls by using B<syscall>(2), "
252 "then a call to B<getpid>() in the child would return the wrong value (to be "
253 "precise: it would return the PID of the parent process). In addition, there "
254 "were cases where B<getpid>() could return the wrong value even when "
255 "invoking B<clone>(2) via the glibc wrapper function. (For a discussion of "
256 "one such case, see BUGS in B<clone>(2).) Furthermore, the complexity of the "
257 "caching code had been the source of a few bugs within glibc over the years."
258 msgstr ""
259 "В версиях glibc с 2.3.4 по 2.24 включительно обёрточная функция glibc для "
260 "B<getpid>() кэширует PID, чтобы не делать дополнительных системных вызовов, "
261 "когда процесс систематически вызывает B<getpid>(). Обычно, это кэширование "
262 "незаметно, но его корректность работы полагается на поддержку в обёрточных "
263 "функциях для B<fork>(2), B<vfork>(2) и B<clone>(2): если приложение не "
264 "воспользуется обёртками glibc для этих системных вызовов, а вызовет из через "
265 "B<syscall>(2), то вызов B<getpid>() в потомке вернёт неправильное значение "
266 "(точнее, вернёт PID родительского процесса). Также, бывают случаи, когда "
267 "B<getpid>() может вернуть неверное значение даже при вызове B<clone>(2) "
268 "через обёрточную функцию glibc (описание одного из них смотрите в разделе "
269 "ДЕФЕКТЫ в B<clone>(2)). Кроме того, сложность кэширующего кода была "
270 "источником нескольких дефектов в glibc многие годы."
271
272 #. commit c579f48edba88380635ab98cb612030e3ed8691e
273 #. https://sourceware.org/glibc/wiki/Release/2.25#pid_cache_removal
274 #. FIXME .
275 #. Review progress of https://bugzilla.redhat.com/show_bug.cgi?id=1469757
276 #. type: Plain text
277 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
278 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
279 #, fuzzy
280 #| msgid ""
281 #| "Because of the aforementioned problems, since glibc version 2.25, the PID "
282 #| "cache is removed: calls to B<getpid>() always invoke the actual system "
283 #| "call, rather than returning a cached value."
284 msgid ""
285 "Because of the aforementioned problems, since glibc 2.25, the PID cache is "
286 "removed: calls to B<getpid>() always invoke the actual system call, rather "
287 "than returning a cached value."
288 msgstr ""
289 "Из-за вышеперечисленных проблем начиная с glibc версии 2.25 кэширование PID "
290 "было удалено: вызов B<getpid>() всегда вызывает реальный системный вызов, а "
291 "не возвращает значение из кэша."
292
293 #. type: SH
294 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
295 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
296 #, no-wrap
297 msgid "NOTES"
298 msgstr "ПРИМЕЧАНИЯ"
299
300 #. type: Plain text
301 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
302 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
303 msgid ""
304 "If the caller's parent is in a different PID namespace (see "
305 "B<pid_namespaces>(7)), B<getppid>() returns 0."
306 msgstr ""
307 "Если родитель вызывающего находит в другом пространстве имён PID (смотрите "
308 "B<pid_namespaces>(7)), то B<getppid>() возвращает 0."
309
310 #. type: Plain text
311 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
312 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
313 msgid ""
314 "From a kernel perspective, the PID (which is shared by all of the threads in "
315 "a multithreaded process) is sometimes also known as the thread group ID "
316 "(TGID). This contrasts with the kernel thread ID (TID), which is unique for "
317 "each thread. For further details, see B<gettid>(2) and the discussion of "
318 "the B<CLONE_THREAD> flag in B<clone>(2)."
319 msgstr ""
320 "Со стороны ядра PID (одинаков у всех нитей в многонитевом процессе) иногда "
321 "называют идентификатором группы нитей (TGID). Он отличается от "
322 "идентификатора нити (TID), который является уникальным для каждой нити. "
323 "Подробней смотрите в B<gettid>(2) и описание флага B<CLONE_THREAD> в "
324 "B<clone>(2)."
325
326 #. type: SH
327 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
328 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
329 #, no-wrap
330 msgid "SEE ALSO"
331 msgstr "СМОТРИТЕ ТАКЖЕ"
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 ""
337 "B<clone>(2), B<fork>(2), B<gettid>(2), B<kill>(2), B<exec>(3), "
338 "B<mkstemp>(3), B<tempnam>(3), B<tmpfile>(3), B<tmpnam>(3), "
339 "B<credentials>(7), B<pid_namespaces>(7)"
340 msgstr ""
341 "B<clone>(2), B<fork>(2), B<gettid>(2), B<kill>(2), B<exec>(3), "
342 "B<mkstemp>(3), B<tempnam>(3), B<tmpfile>(3), B<tmpnam>(3), "
343 "B<credentials>(7), B<pid_namespaces>(7)"
344
345 #. type: TH
346 #: debian-trixie
347 #, no-wrap
348 msgid "2024-05-02"
349 msgstr "2 мая 2024 г."
350
351 #. type: TH
352 #: debian-trixie
353 #, no-wrap
354 msgid "Linux man-pages 6.9.1"
355 msgstr "Страницы руководства Linux 6.9.1"
356
357 #. type: Plain text
358 #: debian-trixie
359 msgid "Standard C library (I<libc>, I<-lc>)"
360 msgstr "Стандартная библиотека языка C (I<libc>, I<-lc>)"
361
362 #. type: Plain text
363 #: debian-trixie fedora-44 fedora-rawhide
364 msgid "POSIX.1-2008."
365 msgstr "POSIX.1-2008."
366
367 #. type: Plain text
368 #: debian-trixie fedora-44 fedora-rawhide
369 #, fuzzy
370 #| msgid "POSIX.1-2001, POSIX.1-2008, 4.3BSD, SVr4."
371 msgid "POSIX.1-2001, 4.3BSD, SVr4."
372 msgstr "POSIX.1-2001, POSIX.1-2008, 4.3BSD, SVr4."
373
374 #. type: TH
375 #: fedora-44 fedora-rawhide
376 #, no-wrap
377 msgid "2024-07-23"
378 msgstr "23 июля 2024 г."
379
380 #. type: TH
381 #: fedora-44 fedora-rawhide
382 #, no-wrap
383 msgid "Linux man-pages 6.13"
384 msgstr "Страницы руководства Linux 6.13"
385
386 #. type: TH
387 #: mageia-cauldron
388 #, no-wrap
389 msgid "Linux man-pages 6.17"
390 msgstr "Страницы руководства Linux 6.17"
391
392 #. type: TH
393 #: opensuse-leap-16-1 opensuse-tumbleweed
394 #, no-wrap
395 msgid "Linux man-pages (unreleased)"
396 msgstr "Страницы руководства Linux (не выпущены)"