Debian Codegraph @

po/ru/man2/clock_getres.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]>, 2014.
5 # Dmitriy S. Seregin <[email protected]>, 2013.
6 # Dmitry Bolkhovskikh <[email protected]>, 2017.
7 # Katrin Kutepova <[email protected]>, 2018.
8 # Yuri Kozlov <[email protected]>, 2011-2019.
9 # Иван Павлов <[email protected]>, 2017.
10 msgid ""
11 msgstr ""
12 "Project-Id-Version: manpages-l10n\n"
13 "POT-Creation-Date: 2026-06-05 06:20+0200\n"
14 "PO-Revision-Date: 2024-12-21 19:49+0300\n"
15 "Last-Translator: Yuri Kozlov <[email protected]>\n"
16 "Language-Team: Russian <[email protected]>\n"
17 "Language: ru\n"
18 "MIME-Version: 1.0\n"
19 "Content-Type: text/plain; charset=UTF-8\n"
20 "Content-Transfer-Encoding: 8bit\n"
21 "Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
22 "n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || "
23 "(n%100>=11 && n%100<=14)? 2 : 3);\n"
24 "X-Generator: Lokalize 2.0\n"
25
26 #. type: TH
27 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
28 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
29 #, no-wrap
30 msgid "clock_getres"
31 msgstr "clock_getres"
32
33 #. type: TH
34 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
35 #, no-wrap
36 msgid "2026-03-07"
37 msgstr "7 марта 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 "clock_getres, clock_gettime, clock_settime - clock and time functions"
57 msgstr "clock_getres, clock_gettime, clock_settime - функции часов и времени"
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 #, fuzzy
70 #| msgid "Standard C library (I<libc>, I<-lc>), since glibc 2.17"
71 msgid "Standard C library (I<libc>,\\ I<-lc>), since glibc 2.17"
72 msgstr "Стандартная библиотека C (I<libc>, I<-lc>), начиная с glibc 2.17"
73
74 #. type: Plain text
75 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
76 #: opensuse-leap-16-1 opensuse-tumbleweed
77 #, fuzzy
78 #| msgid "Before glibc 2.17, Real-time library (I<librt>, I<-lrt>)"
79 msgid "Before glibc 2.17, Real-time library (I<librt>,\\ I<-lrt>)"
80 msgstr "До glibc 2.17, библиотека реального времени (I<librt>, I<-lrt>)"
81
82 #. type: SH
83 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
84 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
85 #, no-wrap
86 msgid "SYNOPSIS"
87 msgstr "СИНТАКСИС"
88
89 #. type: Plain text
90 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
91 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
92 #, no-wrap
93 msgid "B<#include E<lt>time.hE<gt>>\n"
94 msgstr "B<#include E<lt>time.hE<gt>>\n"
95
96 #. type: Plain text
97 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
98 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
99 #, no-wrap
100 msgid "B<int clock_getres(clockid_t >I<clockid>B<, struct timespec *_Nullable >I<res>B<);>\n"
101 msgstr "B<int clock_getres(clockid_t >I<clockid>B<, struct timespec *_Nullable >I<res>B<);>\n"
102
103 #. type: Plain text
104 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
105 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
106 #, no-wrap
107 msgid ""
108 "B<int clock_gettime(clockid_t >I<clockid>B<, struct timespec *>I<tp>B<);>\n"
109 "B<int clock_settime(clockid_t >I<clockid>B<, const struct timespec *>I<tp>B<);>\n"
110 msgstr ""
111 "B<int clock_gettime(clockid_t >I<clockid>B<, struct timespec *>I<tp>B<);>\n"
112 "B<int clock_settime(clockid_t >I<clockid>B<, const struct timespec *>I<tp>B<);>\n"
113
114 #. type: Plain text
115 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
116 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
117 msgid ""
118 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
119 msgstr ""
120 "Требования макроса тестирования свойств для glibc (см. "
121 "B<feature_test_macros>(7)):"
122
123 #. type: Plain text
124 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
125 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
126 msgid "B<clock_getres>(), B<clock_gettime>(), B<clock_settime>():"
127 msgstr "B<clock_getres>(), B<clock_gettime>(), B<clock_settime>():"
128
129 #. type: Plain text
130 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
131 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
132 #, no-wrap
133 msgid " _POSIX_C_SOURCE E<gt>= 199309L\n"
134 msgstr " _POSIX_C_SOURCE E<gt>= 199309L\n"
135
136 #. type: SH
137 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
138 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
139 #, no-wrap
140 msgid "DESCRIPTION"
141 msgstr "ОПИСАНИЕ"
142
143 #. type: Plain text
144 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
145 #: opensuse-tumbleweed
146 #, fuzzy
147 #| msgid ""
148 #| "The function B<clock_getres>() finds the resolution (precision) of the "
149 #| "specified clock I<clockid>, and, if I<res> is non-NULL, stores it in the "
150 #| "I<struct timespec> pointed to by I<res>. The resolution of clocks "
151 #| "depends on the implementation and cannot be configured by a particular "
152 #| "process. If the time value pointed to by the argument I<tp> of "
153 #| "B<clock_settime>() is not a multiple of I<res>, then it is truncated to "
154 #| "a multiple of I<res>."
155 msgid ""
156 "The function B<clock_getres>() finds the resolution (precision) of the "
157 "specified clock I<clockid>, and, if I<res> is non-NULL, stores it in the "
158 "I<struct\\ timespec> pointed to by I<res>. The resolution of clocks depends "
159 "on the implementation and cannot be configured by a particular process. If "
160 "the time value pointed to by the argument I<tp> of B<clock_settime>() is "
161 "not a multiple of I<res>, then it is truncated to a multiple of I<res>."
162 msgstr ""
163 "Функция B<clock_getres>() определяет разрешающую способность (точность) "
164 "заданных в I<clockid> часов, и, если I<res> не равно NULL, сохраняет её в "
165 "I<struct timespec>, указанную в I<res>. Точность часов зависит от реализации "
166 "и не может быть настроена определённым процессом. Если значение времени, "
167 "указанное в аргументе I<tp> функции B<clock_settime>(), не кратно I<res>, то "
168 "оно усекается до кратного I<res>."
169
170 #. type: Plain text
171 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
172 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
173 msgid ""
174 "The functions B<clock_gettime>() and B<clock_settime>() retrieve and set "
175 "the time of the specified clock I<clockid>."
176 msgstr ""
177 "Функции B<clock_gettime>() и B<clock_settime>() получают и устанавливают "
178 "время указанных часов I<clockid>."
179
180 #. type: Plain text
181 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
182 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
183 msgid "The I<res> and I<tp> arguments are B<timespec>(3) structures."
184 msgstr "Аргументы I<res> и I<tp> являются структурами B<timespec>(3)."
185
186 #. type: Plain text
187 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
188 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
189 msgid ""
190 "The I<clockid> argument is the identifier of the particular clock on which "
191 "to act. A clock may be system-wide and hence visible for all processes, or "
192 "per-process if it measures time only within a single process."
193 msgstr ""
194 "Аргумент I<clockid> представляет идентификатор определённых часов, над "
195 "которыми производится действие. Часы могут использоваться системой в целом и "
196 "поэтому видимы всем процессам или конкретного процессу, если они отсчитывают "
197 "время только в пределах одного процесса."
198
199 #. type: Plain text
200 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
201 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
202 msgid ""
203 "All implementations support the system-wide real-time clock, which is "
204 "identified by B<CLOCK_REALTIME>. Its time represents seconds and "
205 "nanoseconds since the Epoch. When its time is changed, timers for a "
206 "relative interval are unaffected, but timers for an absolute point in time "
207 "are affected."
208 msgstr ""
209 "Все реализации поддерживают системные часы реального времени, которые имеют "
210 "идентификатор B<CLOCK_REALTIME>. Их время представляется в секундах и "
211 "наносекундах с начала Эпохи. Когда их время изменяется, на таймеры с "
212 "относительными интервалами это никак не влияет, но таймеры с абсолютной "
213 "точкой во времени учитывают это."
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 "More clocks may be implemented. The interpretation of the corresponding "
220 "time values and the effect on timers is unspecified."
221 msgstr ""
222 "Может быть реализовано много часов. Представление соответствующих значений "
223 "времени и влияние на таймеры не определено."
224
225 #. type: Plain text
226 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
227 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
228 msgid ""
229 "Sufficiently recent versions of glibc and the Linux kernel support the "
230 "following clocks:"
231 msgstr "В последних версиях glibc и ядра Linux поддерживаются следующие часы:"
232
233 #. type: TP
234 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
235 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
236 #, no-wrap
237 msgid "B<CLOCK_REALTIME>"
238 msgstr "B<CLOCK_REALTIME>"
239
240 #. type: Plain text
241 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
242 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
243 #, fuzzy
244 #| msgid ""
245 #| "System-wide clock that measures real (i.e., wall-clock) time. Setting "
246 #| "this clock requires appropriate privileges. This clock is affected by "
247 #| "discontinuous jumps in the system time (e.g., if the system administrator "
248 #| "manually changes the clock), and by the incremental adjustments performed "
249 #| "by B<adjtime>(3) and NTP."
250 msgid ""
251 "A settable system-wide clock that measures real (i.e., wall-clock) time. "
252 "Setting this clock requires appropriate privileges. This clock is affected "
253 "by discontinuous jumps in the system time (e.g., if the system administrator "
254 "manually changes the clock), and by frequency adjustments performed by NTP "
255 "and similar applications via B<adjtime>(3), B<adjtimex>(2), "
256 "B<clock_adjtime>(2), and B<ntp_adjtime>(3). This clock normally counts the "
257 "number of seconds since 1970-01-01 00:00:00 Coordinated Universal Time "
258 "(UTC) except that it ignores leap seconds; near a leap second it is "
259 "typically adjusted by NTP to stay roughly in sync with UTC."
260 msgstr ""
261 "Часы системы, отсчитывающие реальное (т. е., бытовое) время. Для настройки "
262 "этих часов требуются соответствующие права. Данные часы подвержены скачкам "
263 "системного времени (например, если системный администратор вручную изменяет "
264 "время) и постепенной подгонке, выполняемой B<adjtime>(3) и NTP."
265
266 #. type: TP
267 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
268 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
269 #, no-wrap
270 msgid "B<CLOCK_REALTIME_ALARM> (since Linux 3.0; Linux-specific)"
271 msgstr "B<CLOCK_REALTIME_ALARM> (начиная с Linux 3.0; есть только в Linux)"
272
273 #. type: Plain text
274 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
275 msgid ""
276 "Like B<CLOCK_REALTIME>, but settable only indirectly by setting "
277 "B<CLOCK_REALTIME>, and behaves differently if the system is suspended. See "
278 "B<timer_create>(2)."
279 msgstr ""
280
281 #. type: TP
282 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
283 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
284 #, no-wrap
285 msgid "B<CLOCK_REALTIME_COARSE> (since Linux 2.6.32; Linux-specific)"
286 msgstr "B<CLOCK_REALTIME_COARSE> (начиная с Linux 2.6.32; есть только в Linux)"
287
288 #. Added in commit da15cfdae03351c689736f8d142618592e3cebc3
289 #. type: Plain text
290 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
291 #, fuzzy
292 #| msgid ""
293 #| "A faster but less precise version of B<CLOCK_REALTIME>. Use when you "
294 #| "need very fast, but not fine-grained timestamps. Requires per-"
295 #| "architecture support, and probably also architecture support for this "
296 #| "flag in the B<vdso>(7)."
297 msgid ""
298 "A faster but less precise version of B<CLOCK_REALTIME>. It is settable only "
299 "indirectly by setting B<CLOCK_REALTIME>. Use when you need very fast, but "
300 "not fine-grained timestamps. Requires per-architecture support, and "
301 "probably also architecture support for this flag in the B<vdso>(7)."
302 msgstr ""
303 "Более быстрая, но менее точная версия B<CLOCK_REALTIME>. Используйте, если "
304 "нужны не очень точные метки времени, но очень быстро. Требуется поддержка в "
305 "архитектуре и, вероятно, поддержка архитектурой этого флага в B<vdso>(7)."
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<CLOCK_TAI> (since Linux 3.10; Linux-specific)"
312 msgstr "B<CLOCK_TAI> (начиная с Linux 3.10; есть только в Linux)"
313
314 #. commit 1ff3c9677bff7e468e0c487d0ffefe4e901d33f4
315 #. type: Plain text
316 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
317 msgid ""
318 "A system-wide clock derived from wall-clock time but counting leap seconds. "
319 "This clock does not experience clock adjustments caused by inserting leap "
320 "seconds as B<CLOCK_REALTIME> does. It counts seconds since 1970-01-01 00:00 "
321 "TAI (1969-12-31 23:59:50 UTC), so its epoch is ten seconds before "
322 "B<CLOCK_REALTIME>'s. However, its implementation requires help from NTP, "
323 "and if that help is not available it behaves like B<CLOCK_REALTIME> instead."
324 msgstr ""
325
326 #. type: Plain text
327 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
328 msgid ""
329 "Its relationship to B<CLOCK_REALTIME> for timestamps before 1972 is only "
330 "approximate, as the leap second regime was introduced on 1972-01-01. "
331 "Because leap seconds are planned to be discontinued, its value from now on "
332 "will likely remain exactly 37 seconds greater than B<CLOCK_REALTIME>'s for "
333 "many years, after which its offset from B<CLOCK_REALTIME>'s will likely be "
334 "adjusted by some other mechanism as yet unspecified. It is settable only "
335 "indirectly by setting B<CLOCK_REALTIME>."
336 msgstr ""
337
338 #. type: Plain text
339 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
340 #, fuzzy
341 #| msgid "The acronym TAI refers to International Atomic Time."
342 msgid ""
343 "The acronym TAI stands for the French \"temps atomique international\", or "
344 "International Atomic Time."
345 msgstr "Аббревиатура TAI означает Международное атомное время."
346
347 #. type: TP
348 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
349 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
350 #, no-wrap
351 msgid "B<CLOCK_MONOTONIC>"
352 msgstr "B<CLOCK_MONOTONIC>"
353
354 #. type: Plain text
355 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
356 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
357 #, fuzzy
358 #| msgid ""
359 #| "Clock that cannot be set and represents monotonic time since\\(emas "
360 #| "described by POSIX\\(em\"some unspecified point in the past\". On Linux, "
361 #| "that point corresponds to the number of seconds that the system has been "
362 #| "running since it was booted."
363 msgid ""
364 "A nonsettable system-wide clock that represents monotonic time since\\[em]as "
365 "described by POSIX\\[em]\"some unspecified point in the past\". On Linux, "
366 "that point corresponds to the number of seconds that the system has been "
367 "running since it was booted."
368 msgstr ""
369 "Часы, которые не могут быть настроены и показывают монотонный ход времени, "
370 "отсчитываемый, согласно POSIX, «с некой неопределённой начальной точки в "
371 "прошлом». В Linux этой точкой является количество секунд, прошедших с "
372 "момента начала загрузки системы."
373
374 #. type: Plain text
375 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
376 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
377 #, fuzzy
378 #| msgid ""
379 #| "The B<CLOCK_MONOTONIC> clock is not affected by discontinuous jumps in "
380 #| "the system time (e.g., if the system administrator manually changes the "
381 #| "clock), but is affected by the incremental adjustments performed by "
382 #| "B<adjtime>(3) and NTP. This clock does not count time that the system "
383 #| "is suspended."
384 msgid ""
385 "The B<CLOCK_MONOTONIC> clock is not affected by discontinuous jumps in the "
386 "system time (e.g., if the system administrator manually changes the clock), "
387 "but is affected by frequency adjustments. This clock does not count time "
388 "that the system is suspended. All B<CLOCK_MONOTONIC> variants guarantee "
389 "that the time returned by consecutive calls will not go backwards, but "
390 "successive calls may\\[em]depending on the architecture\\[em]return "
391 "identical (not-increased) time values."
392 msgstr ""
393 "Часы B<CLOCK_MONOTONIC> не подвержены скачкам системного времени (например, "
394 "системный администратор вручную изменил время), но на них влияет постепенная "
395 "подгонка, выполняемая B<adjtime>(3) и NTP. Данные часы не считают время при "
396 "приостановке системы."
397
398 #. type: TP
399 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
400 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
401 #, no-wrap
402 msgid "B<CLOCK_MONOTONIC_COARSE> (since Linux 2.6.32; Linux-specific)"
403 msgstr "B<CLOCK_MONOTONIC_COARSE> (начиная с Linux 2.6.32; есть только в Linux)"
404
405 #. Added in commit da15cfdae03351c689736f8d142618592e3cebc3
406 #. type: Plain text
407 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
408 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
409 msgid ""
410 "A faster but less precise version of B<CLOCK_MONOTONIC>. Use when you need "
411 "very fast, but not fine-grained timestamps. Requires per-architecture "
412 "support, and probably also architecture support for this flag in the "
413 "B<vdso>(7)."
414 msgstr ""
415 "Более быстрая, но менее точная версия B<CLOCK_MONOTONIC>. Используйте, если "
416 "нужны не очень точные метки времени, но очень быстро. Требуется поддержка в "
417 "архитектуре и, вероятно, поддержка архитектурой этого флага в B<vdso>(7)."
418
419 #. type: TP
420 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
421 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
422 #, no-wrap
423 msgid "B<CLOCK_MONOTONIC_RAW> (since Linux 2.6.28; Linux-specific)"
424 msgstr "B<CLOCK_MONOTONIC_RAW> (начиная с Linux 2.6.28; есть только в Linux)"
425
426 #. Added in commit 2d42244ae71d6c7b0884b5664cf2eda30fb2ae68, John Stultz
427 #. type: Plain text
428 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
429 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
430 #, fuzzy
431 #| msgid ""
432 #| "Similar to B<CLOCK_MONOTONIC>, but provides access to a raw hardware-"
433 #| "based time that is not subject to NTP adjustments or the incremental "
434 #| "adjustments performed by B<adjtime>(3). This clock does not count time "
435 #| "that the system is suspended."
436 msgid ""
437 "Similar to B<CLOCK_MONOTONIC>, but provides access to a raw hardware-based "
438 "time that is not subject to frequency adjustments. This clock does not "
439 "count time that the system is suspended."
440 msgstr ""
441 "Похожи на B<CLOCK_MONOTONIC>, но предоставляют прямой доступ к аппаратным "
442 "часам, которые не подводятся NTP или постепенной подгонкой, выполняемой "
443 "B<adjtime>(3). Эти часы останавливаются когда система входит в состояние "
444 "приостановки."
445
446 #. type: TP
447 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
448 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
449 #, no-wrap
450 msgid "B<CLOCK_BOOTTIME> (since Linux 2.6.39; Linux-specific)"
451 msgstr "B<CLOCK_BOOTTIME> (начиная с Linux 2.6.39; есть только в Linux)"
452
453 #. commit 7fdd7f89006dd5a4c702fa0ce0c272345fa44ae0
454 #. commit 70a08cca1227dc31c784ec930099a4417a06e7d0
455 #. type: Plain text
456 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
457 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
458 #, fuzzy
459 #| msgid ""
460 #| "Identical to B<CLOCK_MONOTONIC>, except it also includes any time that "
461 #| "the system is suspended. This allows applications to get a suspend-aware "
462 #| "monotonic clock without having to deal with the complications of "
463 #| "B<CLOCK_REALTIME>, which may have discontinuities if the time is changed "
464 #| "using B<settimeofday>(2) or similar."
465 msgid ""
466 "A nonsettable system-wide clock that is identical to B<CLOCK_MONOTONIC>, "
467 "except that it also includes any time that the system is suspended. This "
468 "allows applications to get a suspend-aware monotonic clock without having to "
469 "deal with the complications of B<CLOCK_REALTIME>, which may have "
470 "discontinuities if the time is changed using B<settimeofday>(2) or similar."
471 msgstr ""
472 "Идентичны B<CLOCK_MONOTONIC>, но также содержат любое время, на которое "
473 "система была приостановлена (suspended). Это позволяет приложениям получить "
474 "учитывающие приостановку монотонные часы без обращения к сложностям "
475 "B<CLOCK_REALTIME>, которые могут быть неоднородны, если время изменили с "
476 "помощью B<settimeofday>(2) или ему подобных."
477
478 #. type: TP
479 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
480 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
481 #, no-wrap
482 msgid "B<CLOCK_BOOTTIME_ALARM> (since Linux 3.0; Linux-specific)"
483 msgstr "B<CLOCK_BOOTTIME_ALARM> (начиная с Linux 3.0; есть только в Linux)"
484
485 #. type: Plain text
486 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
487 msgid ""
488 "Like B<CLOCK_BOOTTIME>, but behaves differently if the system is suspended. "
489 "See B<timer_create>(2)."
490 msgstr ""
491
492 #. type: TP
493 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
494 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
495 #, no-wrap
496 msgid "B<CLOCK_PROCESS_CPUTIME_ID> (since Linux 2.6.12)"
497 msgstr "B<CLOCK_PROCESS_CPUTIME_ID> (начиная с Linux 2.6.12)"
498
499 #. type: Plain text
500 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
501 #, fuzzy
502 #| msgid ""
503 #| "This is a clock that measures CPU time consumed by this thread. On "
504 #| "Linux, this clock is not settable."
505 msgid ""
506 "This clock measures CPU time consumed by this process (i.e., CPU time "
507 "consumed by all threads in the process). On Linux, this clock is not "
508 "settable."
509 msgstr ""
510 "Это часы, которые измеряют процессорное время, потребляемое этим потоком. В "
511 "Linux эти часы не могут быть установлены."
512
513 #. type: TP
514 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
515 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
516 #, no-wrap
517 msgid "B<CLOCK_THREAD_CPUTIME_ID> (since Linux 2.6.12)"
518 msgstr "B<CLOCK_THREAD_CPUTIME_ID> (начиная с Linux 2.6.12)"
519
520 #. type: Plain text
521 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
522 #, fuzzy
523 #| msgid ""
524 #| "This is a clock that measures CPU time consumed by this thread. On "
525 #| "Linux, this clock is not settable."
526 msgid ""
527 "This clock measures CPU time consumed by this thread. On Linux, this clock "
528 "is not settable."
529 msgstr ""
530 "Это часы, которые измеряют процессорное время, потребляемое этим потоком. В "
531 "Linux эти часы не могут быть установлены."
532
533 #. type: Plain text
534 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
535 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
536 msgid "Linux also implements dynamic clock instances as described below."
537 msgstr "Linux также реализует динамические экземпляры часов, как описано ниже."
538
539 #. type: SS
540 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
541 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
542 #, no-wrap
543 msgid "Dynamic clocks"
544 msgstr "Динамические часы"
545
546 #. type: Plain text
547 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
548 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
549 msgid ""
550 "In addition to the hard-coded System-V style clock IDs described above, "
551 "Linux also supports POSIX clock operations on certain character devices. "
552 "Such devices are called \"dynamic\" clocks, and are supported since Linux "
553 "2.6.39."
554 msgstr ""
555
556 #. type: Plain text
557 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
558 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
559 msgid ""
560 "Using the appropriate macros, open file descriptors may be converted into "
561 "clock IDs and passed to B<clock_gettime>(), B<clock_settime>(), and "
562 "B<clock_adjtime>(2). The following example shows how to convert a file "
563 "descriptor into a dynamic clock ID."
564 msgstr ""
565
566 #. type: Plain text
567 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
568 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
569 #, no-wrap
570 msgid ""
571 "#define CLOCKFD 3\n"
572 "#define FD_TO_CLOCKID(fd) ((\\[ti](clockid_t) (fd) E<lt>E<lt> 3) | CLOCKFD)\n"
573 "#define CLOCKID_TO_FD(clk) ((unsigned int) \\[ti]((clk) E<gt>E<gt> 3))\n"
574 "\\&\n"
575 "struct timespec ts;\n"
576 "clockid_t clkid;\n"
577 "int fd;\n"
578 "\\&\n"
579 "fd = open(\"/dev/ptp0\", O_RDWR);\n"
580 "clkid = FD_TO_CLOCKID(fd);\n"
581 "clock_gettime(clkid, &ts);\n"
582 msgstr ""
583 "#define CLOCKFD 3\n"
584 "#define FD_TO_CLOCKID(fd) ((\\[ti](clockid_t) (fd) E<lt>E<lt> 3) | CLOCKFD)\n"
585 "#define CLOCKID_TO_FD(clk) ((unsigned int) \\[ti]((clk) E<gt>E<gt> 3))\n"
586 "\\&\n"
587 "struct timespec ts;\n"
588 "clockid_t clkid;\n"
589 "int fd;\n"
590 "\\&\n"
591 "fd = open(\"/dev/ptp0\", O_RDWR);\n"
592 "clkid = FD_TO_CLOCKID(fd);\n"
593 "clock_gettime(clkid, &ts);\n"
594
595 #. type: SH
596 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
597 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
598 #, no-wrap
599 msgid "RETURN VALUE"
600 msgstr "ВОЗВРАЩАЕМОЕ ЗНАЧЕНИЕ"
601
602 #. type: Plain text
603 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
604 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
605 #, fuzzy
606 #| msgid ""
607 #| "B<clock_gettime>(), B<clock_settime>(), and B<clock_getres>() return 0 "
608 #| "for success, or -1 for failure (in which case I<errno> is set "
609 #| "appropriately)."
610 msgid ""
611 "B<clock_gettime>(), B<clock_settime>(), and B<clock_getres>() return 0 for "
612 "success. On error, -1 is returned and I<errno> is set to indicate the error."
613 msgstr ""
614 "При успешном выполнении функции B<clock_gettime>(), B<clock_settime>() и "
615 "B<clock_getres>() возвращают 0, или -1 в случае ошибки (I<errno> "
616 "устанавливается в соответствующее значение)."
617
618 #. type: SH
619 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
620 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
621 #, no-wrap
622 msgid "ERRORS"
623 msgstr "ОШИБКИ"
624
625 #. type: TP
626 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
627 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
628 #, no-wrap
629 msgid "B<EACCES>"
630 msgstr "B<EACCES>"
631
632 #. type: Plain text
633 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
634 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
635 msgid ""
636 "B<clock_settime>() does not have write permission for the dynamic POSIX "
637 "clock device indicated."
638 msgstr ""
639 "B<clock_settime>() не имеет разрешения на запись для указанного "
640 "динамического устройства POSIX часов."
641
642 #. type: TP
643 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
644 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
645 #, no-wrap
646 msgid "B<EFAULT>"
647 msgstr "B<EFAULT>"
648
649 #. type: Plain text
650 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
651 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
652 msgid "I<tp> points outside the accessible address space."
653 msgstr "I<tp> указывает за пределы доступного адресного пространства."
654
655 #. type: TP
656 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
657 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
658 #, no-wrap
659 msgid "B<EINVAL>"
660 msgstr "B<EINVAL>"
661
662 #. Linux also gives this error on attempts to set CLOCK_PROCESS_CPUTIME_ID
663 #. and CLOCK_THREAD_CPUTIME_ID, when probably the proper error should be
664 #. EPERM.
665 #. type: Plain text
666 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
667 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
668 msgid ""
669 "The I<clockid> specified is invalid for one of two reasons. Either the "
670 "System-V style hard coded positive value is out of range, or the dynamic "
671 "clock ID does not refer to a valid instance of a clock object."
672 msgstr ""
673
674 #. type: Plain text
675 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
676 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
677 #, fuzzy
678 #| msgid ""
679 #| "(B<clock_settime>()): I<tp.tv_sec> is negative or I<tp.tv_nsec> is "
680 #| "outside the range [0..999,999,999]."
681 msgid ""
682 "(B<clock_settime>()): I<tp.tv_sec> is negative or I<tp.tv_nsec> is outside "
683 "the range [0, 999,999,999]."
684 msgstr ""
685 "(B<clock_settime>()): I<tp.tv_sec> отрицательно или I<tp.tv_nsec> вне "
686 "диапазона [0..999,999,999]."
687
688 #. type: Plain text
689 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
690 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
691 msgid ""
692 "The I<clockid> specified in a call to B<clock_settime>() is not a settable "
693 "clock."
694 msgstr ""
695 "I<clockid>, указанный в вызове B<clock_settime>(), не является "
696 "устанавливаемым часом."
697
698 #. type: TP
699 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
700 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
701 #, no-wrap
702 msgid "B<EINVAL> (since Linux 4.3)"
703 msgstr "B<EINVAL> (начиная с Linux 4.3)"
704
705 #. commit e1d7ba8735551ed79c7a0463a042353574b96da3
706 #. type: Plain text
707 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
708 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
709 msgid ""
710 "A call to B<clock_settime>() with a I<clockid> of B<CLOCK_REALTIME> "
711 "attempted to set the time to a value less than the current value of the "
712 "B<CLOCK_MONOTONIC> clock."
713 msgstr ""
714 "Вызов B<clock_settime>() со значением I<clockid> равным B<CLOCK_REALTIME> "
715 "для установки времени в значение меньше текущего значения часов "
716 "B<CLOCK_MONOTONIC>."
717
718 #. type: TP
719 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
720 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
721 #, no-wrap
722 msgid "B<ENODEV>"
723 msgstr "B<ENODEV>"
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 "The hot-pluggable device (like USB for example) represented by a dynamic "
730 "I<clk_id> has disappeared after its character device was opened."
731 msgstr ""
732
733 #. type: TP
734 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
735 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
736 #, no-wrap
737 msgid "B<ENOTSUP>"
738 msgstr "B<ENOTSUP>"
739
740 #. type: Plain text
741 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
742 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
743 msgid ""
744 "The operation is not supported by the dynamic POSIX clock device specified."
745 msgstr ""
746 "Операция не поддерживается указанным динамическим устройством синхронизации "
747 "POSIX."
748
749 #. type: TP
750 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
751 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
752 #, no-wrap
753 msgid "B<EOVERFLOW>"
754 msgstr "B<EOVERFLOW>"
755
756 #. type: Plain text
757 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
758 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
759 msgid ""
760 "The timestamp would not fit in I<time_t> range. This can happen if an "
761 "executable with 32-bit I<time_t> is run on a 64-bit kernel when the time is "
762 "2038-01-19 03:14:08 UTC or later. However, when the system time is out of "
763 "I<time_t> range in other situations, the behavior is undefined."
764 msgstr ""
765
766 #. type: TP
767 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
768 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
769 #, no-wrap
770 msgid "B<EPERM>"
771 msgstr "B<EPERM>"
772
773 #. type: Plain text
774 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
775 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
776 msgid ""
777 "B<clock_settime>() does not have permission to set the clock indicated."
778 msgstr ""
779 "Для установки указанных часов с помощью B<clock_settime>() недостаточно прав."
780
781 #. type: SH
782 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
783 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
784 #, no-wrap
785 msgid "ATTRIBUTES"
786 msgstr "АТРИБУТЫ"
787
788 #. type: Plain text
789 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
790 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
791 msgid ""
792 "For an explanation of the terms used in this section, see B<attributes>(7)."
793 msgstr "Описание терминов данного раздела смотрите в B<attributes>(7)."
794
795 #. type: tbl table
796 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
797 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
798 #, no-wrap
799 msgid "Interface"
800 msgstr "Интерфейс"
801
802 #. type: tbl table
803 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
804 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
805 #, no-wrap
806 msgid "Attribute"
807 msgstr "Атрибут"
808
809 #. type: tbl table
810 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
811 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
812 #, no-wrap
813 msgid "Value"
814 msgstr "Значение"
815
816 #. type: tbl table
817 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
818 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
819 #, no-wrap
820 msgid ".na\n"
821 msgstr ".na\n"
822
823 #. type: tbl table
824 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
825 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
826 #, no-wrap
827 msgid ".nh\n"
828 msgstr ".nh\n"
829
830 #. type: tbl table
831 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
832 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
833 #, no-wrap
834 msgid ""
835 "B<clock_getres>(),\n"
836 "B<clock_gettime>(),\n"
837 "B<clock_settime>()"
838 msgstr ""
839 "B<clock_getres>(),\n"
840 "B<clock_gettime>(),\n"
841 "B<clock_settime>()"
842
843 #. type: tbl table
844 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
845 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
846 #, no-wrap
847 msgid "Thread safety"
848 msgstr "Безвредность в нитях"
849
850 #. type: tbl table
851 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
852 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
853 #, no-wrap
854 msgid "MT-Safe"
855 msgstr "MT-Safe"
856
857 #. type: SH
858 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
859 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
860 #, no-wrap
861 msgid "VERSIONS"
862 msgstr "ВЕРСИИ"
863
864 #. type: Plain text
865 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
866 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
867 msgid "POSIX.1 specifies the following:"
868 msgstr "В POSIX.1 определено следующее:"
869
870 #. type: Plain text
871 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
872 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
873 msgid ""
874 "Setting the value of the B<CLOCK_REALTIME> clock via B<clock_settime>() "
875 "shall have no effect on threads that are blocked waiting for a relative time "
876 "service based upon this clock, including the B<nanosleep>() function; nor "
877 "on the expiration of relative timers based upon this clock. Consequently, "
878 "these time services shall expire when the requested relative interval "
879 "elapses, independently of the new or old value of the clock."
880 msgstr ""
881 "Установка значения часов B<CLOCK_REALTIME> с помощью B<clock_settime>() не "
882 "оказывает влияния на нити, которые находятся в состоянии простоя из-за "
883 "служб, работа которых основана на этих часах, включая функцию "
884 "B<nanosleep>(); также, это не оказывает влияние на относительные таймеры, "
885 "основывающиеся на этих часах. В результате, интервал данных служб истечёт, "
886 "когда истечёт запрошенный относительный интервал, независимо от нового или "
887 "старого значения часов."
888
889 #. See http://bugzilla.kernel.org/show_bug.cgi?id=11972
890 #. type: Plain text
891 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
892 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
893 msgid ""
894 "According to POSIX.1-2001, a process with \"appropriate privileges\" may set "
895 "the B<CLOCK_PROCESS_CPUTIME_ID> and B<CLOCK_THREAD_CPUTIME_ID> clocks using "
896 "B<clock_settime>(). On Linux, these clocks are not settable (i.e., no "
897 "process has \"appropriate privileges\")."
898 msgstr ""
899 "Согласно POSIX.1-2001, процесс с «соответствующими правами» может настроить "
900 "часы B<CLOCK_PROCESS_CPUTIME_ID> и B<CLOCK_THREAD_CPUTIME_ID> с помощью "
901 "B<clock_settime>(). В Linux эти часы не допускают настройку (т. е., процесс "
902 "не может иметь «соответствующие права»)."
903
904 #. type: SS
905 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
906 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
907 #, no-wrap
908 msgid "C library/kernel differences"
909 msgstr "Отличия между библиотекой C и ядром"
910
911 #. type: Plain text
912 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
913 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
914 msgid ""
915 "On some architectures, an implementation of B<clock_gettime>() is provided "
916 "in the B<vdso>(7)."
917 msgstr ""
918 "На некоторых архитектурах реализация B<clock_gettime>() находится в "
919 "B<vdso>(7)."
920
921 #. type: SH
922 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
923 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
924 #, no-wrap
925 msgid "STANDARDS"
926 msgstr "СТАНДАРТЫ"
927
928 #. type: Plain text
929 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
930 #: opensuse-tumbleweed
931 msgid "POSIX.1-2024."
932 msgstr "POSIX.1-2024."
933
934 #. type: SH
935 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
936 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
937 #, no-wrap
938 msgid "HISTORY"
939 msgstr "ИСТОРИЯ"
940
941 #. type: Plain text
942 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
943 #: opensuse-tumbleweed
944 #, fuzzy
945 #| msgid "POSIX.1-2001, SUSv2. Linux 2.6."
946 msgid "POSIX.1-1996, Linux 2.6."
947 msgstr "POSIX.1-2001, SUSv2. Linux 2.6."
948
949 #. type: Plain text
950 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
951 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
952 #, fuzzy
953 #| msgid ""
954 #| "On POSIX systems on which these functions are available, the symbol "
955 #| "B<_POSIX_TIMERS> is defined in I<E<lt>unistd.hE<gt>> to a value greater "
956 #| "than 0. The symbols B<_POSIX_MONOTONIC_CLOCK>, B<_POSIX_CPUTIME>, "
957 #| "B<_POSIX_THREAD_CPUTIME> indicate that B<CLOCK_MONOTONIC>, "
958 #| "B<CLOCK_PROCESS_CPUTIME_ID>, B<CLOCK_THREAD_CPUTIME_ID> are available. "
959 #| "(See also B<sysconf>(3).)"
960 msgid ""
961 "On POSIX systems on which these functions are available, the symbol "
962 "B<_POSIX_TIMERS> is defined in I<E<lt>unistd.hE<gt>> to a value greater than "
963 "0. POSIX.1-2008 makes these functions mandatory."
964 msgstr ""
965 "На POSIX-системах, в которых доступны эти функции, символ B<_POSIX_TIMERS>, "
966 "определённый в I<E<lt>unistd.hE<gt>>, имеет значение больше 0. Символами "
967 "B<_POSIX_MONOTONIC_CLOCK>, B<_POSIX_CPUTIME>, B<_POSIX_THREAD_CPUTIME> "
968 "показывается, что доступны B<CLOCK_MONOTONIC>, B<CLOCK_PROCESS_CPUTIME_ID>, "
969 "B<CLOCK_THREAD_CPUTIME_ID>. (см. также B<sysconf>(3).)"
970
971 #. type: Plain text
972 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
973 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
974 #, fuzzy
975 #| msgid ""
976 #| "On POSIX systems on which these functions are available, the symbol "
977 #| "B<_POSIX_TIMERS> is defined in I<E<lt>unistd.hE<gt>> to a value greater "
978 #| "than 0. The symbols B<_POSIX_MONOTONIC_CLOCK>, B<_POSIX_CPUTIME>, "
979 #| "B<_POSIX_THREAD_CPUTIME> indicate that B<CLOCK_MONOTONIC>, "
980 #| "B<CLOCK_PROCESS_CPUTIME_ID>, B<CLOCK_THREAD_CPUTIME_ID> are available. "
981 #| "(See also B<sysconf>(3).)"
982 msgid ""
983 "The symbols B<_POSIX_MONOTONIC_CLOCK>, B<_POSIX_CPUTIME>, "
984 "B<_POSIX_THREAD_CPUTIME> indicate that B<CLOCK_MONOTONIC>, "
985 "B<CLOCK_PROCESS_CPUTIME_ID>, B<CLOCK_THREAD_CPUTIME_ID> are available. (See "
986 "also B<sysconf>(3).)"
987 msgstr ""
988 "На POSIX-системах, в которых доступны эти функции, символ B<_POSIX_TIMERS>, "
989 "определённый в I<E<lt>unistd.hE<gt>>, имеет значение больше 0. Символами "
990 "B<_POSIX_MONOTONIC_CLOCK>, B<_POSIX_CPUTIME>, B<_POSIX_THREAD_CPUTIME> "
991 "показывается, что доступны B<CLOCK_MONOTONIC>, B<CLOCK_PROCESS_CPUTIME_ID>, "
992 "B<CLOCK_THREAD_CPUTIME_ID>. (см. также B<sysconf>(3).)"
993
994 #. type: Plain text
995 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
996 #: opensuse-tumbleweed
997 msgid "POSIX.1-2024 made B<CLOCK_MONOTONIC> mandatory."
998 msgstr ""
999
1000 #. type: SS
1001 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1002 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1003 #, no-wrap
1004 msgid "Historical note for SMP systems"
1005 msgstr "Историческая справка по системам SMP"
1006
1007 #. type: Plain text
1008 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1009 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1010 msgid ""
1011 "Before Linux added kernel support for B<CLOCK_PROCESS_CPUTIME_ID> and "
1012 "B<CLOCK_THREAD_CPUTIME_ID>, glibc implemented these clocks on many platforms "
1013 "using timer registers from the CPUs (TSC on i386, AR.ITC on Itanium). These "
1014 "registers may differ between CPUs and as a consequence these clocks may "
1015 "return B<bogus results> if a process is migrated to another CPU."
1016 msgstr ""
1017 "До того, как в Linux была добавлена поддержка B<CLOCK_PROCESS_CPUTIME_ID> и "
1018 "B<CLOCK_THREAD_CPUTIME_ID>, реализация этих часов в glibc на многих "
1019 "платформах использовала регистры таймеры ЦП (TSC на i386, AR.ITC на "
1020 "Itanium). Эти регистры могут отличаться у разных ЦП и, как следствие, эти "
1021 "часы могут возвращать B<поддельные результаты>, если выполнение процесса "
1022 "переходит на другой ЦП."
1023
1024 #. type: Plain text
1025 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1026 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1027 msgid ""
1028 "If the CPUs in an SMP system have different clock sources, then there is no "
1029 "way to maintain a correlation between the timer registers since each CPU "
1030 "will run at a slightly different frequency. If that is the case, then "
1031 "I<clock_getcpuclockid(0)> will return B<ENOENT> to signify this condition. "
1032 "The two clocks will then be useful only if it can be ensured that a process "
1033 "stays on a certain CPU."
1034 msgstr ""
1035 "Если процессоры в многопроцессорных системах используют разные источники "
1036 "времени, то нет способа поддерживать сверку между регистрами таймера, так "
1037 "как каждый ЦП будет работать со слегка отличающейся частотой. В этом случае "
1038 "I<clock_getcpuclockid(0)> вернёт B<ENOENT>, чтобы указать на это состояние. "
1039 "Двое часов в этом случае будут полезны, только если можно убедиться, что "
1040 "процесс остался на определённом ЦП."
1041
1042 #. type: Plain text
1043 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1044 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1045 #, fuzzy
1046 #| msgid ""
1047 #| "The processors in an SMP system do not start all at exactly the same time "
1048 #| "and therefore the timer registers are typically running at an offset. "
1049 #| "Some architectures include code that attempts to limit these offsets on "
1050 #| "bootup. However, the code cannot guarantee to accurately tune the "
1051 #| "offsets. Glibc contains no provisions to deal with these offsets (unlike "
1052 #| "the Linux Kernel). Typically these offsets are small and therefore the "
1053 #| "effects may be negligible in most cases."
1054 msgid ""
1055 "The processors in an SMP system do not start all at exactly the same time "
1056 "and therefore the timer registers are typically running at an offset. Some "
1057 "architectures include code that attempts to limit these offsets on bootup. "
1058 "However, the code cannot guarantee to accurately tune the offsets. glibc "
1059 "contains no provisions to deal with these offsets (unlike the Linux "
1060 "Kernel). Typically these offsets are small and therefore the effects may be "
1061 "negligible in most cases."
1062 msgstr ""
1063 "Процессоры в многопроцессорных системах не приступают к работе одновременно "
1064 "и поэтому регистры таймера обычно работают со смещением. Некоторые "
1065 "архитектуры содержат код, который пытается сократить это смещение при "
1066 "загрузке системы. Однако код не может гарантировать точную подстройку "
1067 "смещений. В glibc нет средств для работы с этими смещениями (в отличие от "
1068 "ядра Linux). Обычно, эти смещения малы и поэтому, в большинстве случаев, их "
1069 "влияние незначительно."
1070
1071 #. type: Plain text
1072 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1073 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1074 msgid ""
1075 "Since glibc 2.4, the wrapper functions for the system calls described in "
1076 "this page avoid the abovementioned problems by employing the kernel "
1077 "implementation of B<CLOCK_PROCESS_CPUTIME_ID> and "
1078 "B<CLOCK_THREAD_CPUTIME_ID>, on systems that provide such an implementation "
1079 "(i.e., Linux 2.6.12 and later)."
1080 msgstr ""
1081 "Начиная с glibc 2.4, обёрточные функции системных вызовов, описанных на этой "
1082 "странице, не имеют таких проблем, так как используют ядерную реализацию "
1083 "B<CLOCK_PROCESS_CPUTIME_ID> и B<CLOCK_THREAD_CPUTIME_ID> (в системах, "
1084 "которые её предоставляют, то есть Linux 2.6.12 и новее)."
1085
1086 #. type: SH
1087 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1088 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1089 #, no-wrap
1090 msgid "EXAMPLES"
1091 msgstr "ПРИМЕРЫ"
1092
1093 #. type: Plain text
1094 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1095 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1096 msgid ""
1097 "The program below demonstrates the use of B<clock_gettime>() and "
1098 "B<clock_getres>() with various clocks. This is an example of what we might "
1099 "see when running the program:"
1100 msgstr ""
1101
1102 #. type: Plain text
1103 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
1104 #: opensuse-tumbleweed
1105 #, fuzzy, no-wrap
1106 #| msgid ""
1107 #| "$ B<./clock_times x>\n"
1108 #| "CLOCK_REALTIME : 1585985459.446 (18356 days + 7h 30m 59s)\n"
1109 #| " resolution: 0.000000001\n"
1110 #| "CLOCK_TAI : 1585985496.447 (18356 days + 7h 31m 36s)\n"
1111 #| " resolution: 0.000000001\n"
1112 #| "CLOCK_MONOTONIC: 52395.722 (14h 33m 15s)\n"
1113 #| " resolution: 0.000000001\n"
1114 #| "CLOCK_BOOTTIME : 72691.019 (20h 11m 31s)\n"
1115 #| " resolution: 0.000000001\n"
1116 msgid ""
1117 "$B< ./clock_times x>;\n"
1118 "CLOCK_REALTIME : 1585985459.446 (18356 days + 7h 30m 59s)\n"
1119 " resolution: 0.000000001\n"
1120 "CLOCK_TAI : 1585985496.447 (18356 days + 7h 31m 36s)\n"
1121 " resolution: 0.000000001\n"
1122 "CLOCK_MONOTONIC: 52395.722 (14h 33m 15s)\n"
1123 " resolution: 0.000000001\n"
1124 "CLOCK_BOOTTIME : 72691.019 (20h 11m 31s)\n"
1125 " resolution: 0.000000001\n"
1126 msgstr ""
1127 "$ B<./clock_times x>\n"
1128 "CLOCK_REALTIME : 1585985459.446 (18356 days + 7h 30m 59s)\n"
1129 " resolution: 0.000000001\n"
1130 "CLOCK_TAI : 1585985496.447 (18356 days + 7h 31m 36s)\n"
1131 " resolution: 0.000000001\n"
1132 "CLOCK_MONOTONIC: 52395.722 (14h 33m 15s)\n"
1133 " resolution: 0.000000001\n"
1134 "CLOCK_BOOTTIME : 72691.019 (20h 11m 31s)\n"
1135 " resolution: 0.000000001\n"
1136
1137 #. type: SS
1138 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1139 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1140 #, no-wrap
1141 msgid "Program source"
1142 msgstr "Исходный код программы"
1143
1144 #. type: Plain text
1145 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
1146 #: opensuse-tumbleweed
1147 #, fuzzy, no-wrap
1148 #| msgid ""
1149 #| "/* clock_times.c\n"
1150 #| "\\&\n"
1151 #| " Licensed under GNU General Public License v2 or later.\n"
1152 #| "*/\n"
1153 #| "#define _XOPEN_SOURCE 600\n"
1154 #| "#include E<lt>stdbool.hE<gt>\n"
1155 #| "#include E<lt>stdint.hE<gt>\n"
1156 #| "#include E<lt>stdio.hE<gt>\n"
1157 #| "#include E<lt>stdlib.hE<gt>\n"
1158 #| "#include E<lt>time.hE<gt>\n"
1159 #| "\\&\n"
1160 #| "#define SECS_IN_DAY (24 * 60 * 60)\n"
1161 #| "\\&\n"
1162 #| "static void\n"
1163 #| "displayClock(clockid_t clock, const char *name, bool showRes)\n"
1164 #| "{\n"
1165 #| " long days;\n"
1166 #| " struct timespec ts;\n"
1167 #| "\\&\n"
1168 #| " if (clock_gettime(clock, &ts) == -1) {\n"
1169 #| " perror(\"clock_gettime\");\n"
1170 #| " exit(EXIT_FAILURE);\n"
1171 #| " }\n"
1172 #| "\\&\n"
1173 #| " printf(\"%-15s: %10jd.%03ld (\", name,\n"
1174 #| " (intmax_t) ts.tv_sec, ts.tv_nsec / 1000000);\n"
1175 #| "\\&\n"
1176 #| " days = ts.tv_sec / SECS_IN_DAY;\n"
1177 #| " if (days E<gt> 0)\n"
1178 #| " printf(\"%ld days + \", days);\n"
1179 #| "\\&\n"
1180 #| " printf(\"%2dh %2dm %2ds\",\n"
1181 #| " (int) (ts.tv_sec % SECS_IN_DAY) / 3600,\n"
1182 #| " (int) (ts.tv_sec % 3600) / 60,\n"
1183 #| " (int) ts.tv_sec % 60);\n"
1184 #| " printf(\")\\[rs]n\");\n"
1185 #| "\\&\n"
1186 #| " if (clock_getres(clock, &ts) == -1) {\n"
1187 #| " perror(\"clock_getres\");\n"
1188 #| " exit(EXIT_FAILURE);\n"
1189 #| " }\n"
1190 #| "\\&\n"
1191 #| " if (showRes)\n"
1192 #| " printf(\" resolution: %10jd.%09ld\\[rs]n\",\n"
1193 #| " (intmax_t) ts.tv_sec, ts.tv_nsec);\n"
1194 #| "}\n"
1195 #| "\\&\n"
1196 #| "int\n"
1197 #| "main(int argc, char *argv[])\n"
1198 #| "{\n"
1199 #| " bool showRes = argc E<gt> 1;\n"
1200 #| "\\&\n"
1201 #| " displayClock(CLOCK_REALTIME, \"CLOCK_REALTIME\", showRes);\n"
1202 #| "#ifdef CLOCK_TAI\n"
1203 #| " displayClock(CLOCK_TAI, \"CLOCK_TAI\", showRes);\n"
1204 #| "#endif\n"
1205 #| " displayClock(CLOCK_MONOTONIC, \"CLOCK_MONOTONIC\", showRes);\n"
1206 #| "#ifdef CLOCK_BOOTTIME\n"
1207 #| " displayClock(CLOCK_BOOTTIME, \"CLOCK_BOOTTIME\", showRes);\n"
1208 #| "#endif\n"
1209 #| " exit(EXIT_SUCCESS);\n"
1210 #| "}\n"
1211 msgid ""
1212 "/* clock_times.c\n"
1213 "\\&\n"
1214 " Licensed under GNU General Public License v2 or later.\n"
1215 "*/\n"
1216 "#define _XOPEN_SOURCE 600\n"
1217 "#include E<lt>stdbool.hE<gt>\n"
1218 "#include E<lt>stdint.hE<gt>\n"
1219 "#include E<lt>stdio.hE<gt>\n"
1220 "#include E<lt>stdlib.hE<gt>\n"
1221 "#include E<lt>sys/types.hE<gt>\n"
1222 "#include E<lt>time.hE<gt>\n"
1223 "\\&\n"
1224 "#define SECS_IN_DAY (24 * 60 * 60)\n"
1225 "\\&\n"
1226 "static void\n"
1227 "displayClock(clockid_t clock, const char *name, bool showRes)\n"
1228 "{\n"
1229 " long days;\n"
1230 " struct timespec ts;\n"
1231 "\\&\n"
1232 " if (clock_gettime(clock, &ts) == -1) {\n"
1233 " perror(\"clock_gettime\");\n"
1234 " exit(EXIT_FAILURE);\n"
1235 " }\n"
1236 "\\&\n"
1237 " printf(\"%-15s: %10jd.%03ld (\", name,\n"
1238 " (intmax_t) ts.tv_sec, ts.tv_nsec / 1000000);\n"
1239 "\\&\n"
1240 " days = ts.tv_sec / SECS_IN_DAY;\n"
1241 " if (days E<gt> 0)\n"
1242 " printf(\"%ld days + \", days);\n"
1243 "\\&\n"
1244 " printf(\"%2dh %2dm %2ds\",\n"
1245 " (int) (ts.tv_sec % SECS_IN_DAY) / 3600,\n"
1246 " (int) (ts.tv_sec % 3600) / 60,\n"
1247 " (int) ts.tv_sec % 60);\n"
1248 " printf(\")\\[rs]n\");\n"
1249 "\\&\n"
1250 " if (clock_getres(clock, &ts) == -1) {\n"
1251 " perror(\"clock_getres\");\n"
1252 " exit(EXIT_FAILURE);\n"
1253 " }\n"
1254 "\\&\n"
1255 " if (showRes)\n"
1256 " printf(\" resolution: %10jd.%09ld\\[rs]n\",\n"
1257 " (intmax_t) ts.tv_sec, ts.tv_nsec);\n"
1258 "}\n"
1259 "\\&\n"
1260 "int\n"
1261 "main(int argc, char *[])\n"
1262 "{\n"
1263 " bool showRes = argc E<gt> 1;\n"
1264 "\\&\n"
1265 " displayClock(CLOCK_REALTIME, \"CLOCK_REALTIME\", showRes);\n"
1266 "#ifdef CLOCK_TAI\n"
1267 " displayClock(CLOCK_TAI, \"CLOCK_TAI\", showRes);\n"
1268 "#endif\n"
1269 " displayClock(CLOCK_MONOTONIC, \"CLOCK_MONOTONIC\", showRes);\n"
1270 "#ifdef CLOCK_BOOTTIME\n"
1271 " displayClock(CLOCK_BOOTTIME, \"CLOCK_BOOTTIME\", showRes);\n"
1272 "#endif\n"
1273 " exit(EXIT_SUCCESS);\n"
1274 "}\n"
1275 msgstr ""
1276 "/* clock_times.c\n"
1277 "\\&\n"
1278 " Licensed under GNU General Public License v2 or later.\n"
1279 "*/\n"
1280 "#define _XOPEN_SOURCE 600\n"
1281 "#include E<lt>stdbool.hE<gt>\n"
1282 "#include E<lt>stdint.hE<gt>\n"
1283 "#include E<lt>stdio.hE<gt>\n"
1284 "#include E<lt>stdlib.hE<gt>\n"
1285 "#include E<lt>time.hE<gt>\n"
1286 "\\&\n"
1287 "#define SECS_IN_DAY (24 * 60 * 60)\n"
1288 "\\&\n"
1289 "static void\n"
1290 "displayClock(clockid_t clock, const char *name, bool showRes)\n"
1291 "{\n"
1292 " long days;\n"
1293 " struct timespec ts;\n"
1294 "\\&\n"
1295 " if (clock_gettime(clock, &ts) == -1) {\n"
1296 " perror(\"clock_gettime\");\n"
1297 " exit(EXIT_FAILURE);\n"
1298 " }\n"
1299 "\\&\n"
1300 " printf(\"%-15s: %10jd.%03ld (\", name,\n"
1301 " (intmax_t) ts.tv_sec, ts.tv_nsec / 1000000);\n"
1302 "\\&\n"
1303 " days = ts.tv_sec / SECS_IN_DAY;\n"
1304 " if (days E<gt> 0)\n"
1305 " printf(\"%ld days + \", days);\n"
1306 "\\&\n"
1307 " printf(\"%2dh %2dm %2ds\",\n"
1308 " (int) (ts.tv_sec % SECS_IN_DAY) / 3600,\n"
1309 " (int) (ts.tv_sec % 3600) / 60,\n"
1310 " (int) ts.tv_sec % 60);\n"
1311 " printf(\")\\[rs]n\");\n"
1312 "\\&\n"
1313 " if (clock_getres(clock, &ts) == -1) {\n"
1314 " perror(\"clock_getres\");\n"
1315 " exit(EXIT_FAILURE);\n"
1316 " }\n"
1317 "\\&\n"
1318 " if (showRes)\n"
1319 " printf(\" resolution: %10jd.%09ld\\[rs]n\",\n"
1320 " (intmax_t) ts.tv_sec, ts.tv_nsec);\n"
1321 "}\n"
1322 "\\&\n"
1323 "int\n"
1324 "main(int argc, char *argv[])\n"
1325 "{\n"
1326 " bool showRes = argc E<gt> 1;\n"
1327 "\\&\n"
1328 " displayClock(CLOCK_REALTIME, \"CLOCK_REALTIME\", showRes);\n"
1329 "#ifdef CLOCK_TAI\n"
1330 " displayClock(CLOCK_TAI, \"CLOCK_TAI\", showRes);\n"
1331 "#endif\n"
1332 " displayClock(CLOCK_MONOTONIC, \"CLOCK_MONOTONIC\", showRes);\n"
1333 "#ifdef CLOCK_BOOTTIME\n"
1334 " displayClock(CLOCK_BOOTTIME, \"CLOCK_BOOTTIME\", showRes);\n"
1335 "#endif\n"
1336 " exit(EXIT_SUCCESS);\n"
1337 "}\n"
1338
1339 #. SRC END
1340 #. type: SH
1341 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1342 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1343 #, no-wrap
1344 msgid "SEE ALSO"
1345 msgstr "СМОТРИТЕ ТАКЖЕ"
1346
1347 #. type: Plain text
1348 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1349 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1350 msgid ""
1351 "B<date>(1), B<gettimeofday>(2), B<settimeofday>(2), B<time>(2), "
1352 "B<adjtime>(3), B<clock_getcpuclockid>(3), B<ctime>(3), B<ftime>(3), "
1353 "B<pthread_getcpuclockid>(3), B<sysconf>(3), B<timespec>(3), B<time>(7), "
1354 "B<time_namespaces>(7), B<vdso>(7), B<hwclock>(8)"
1355 msgstr ""
1356 "B<date>(1), B<gettimeofday>(2), B<settimeofday>(2), B<time>(2), "
1357 "B<adjtime>(3), B<clock_getcpuclockid>(3), B<ctime>(3), B<ftime>(3), "
1358 "B<pthread_getcpuclockid>(3), B<sysconf>(3), B<timespec>(3), B<time>(7), "
1359 "B<time_namespaces>(7), B<vdso>(7), B<hwclock>(8)"
1360
1361 #. type: TH
1362 #: debian-trixie
1363 #, no-wrap
1364 msgid "2024-06-15"
1365 msgstr "15 июня 2024 г."
1366
1367 #. type: TH
1368 #: debian-trixie
1369 #, no-wrap
1370 msgid "Linux man-pages 6.9.1"
1371 msgstr "Страницы руководства Linux 6.9.1"
1372
1373 #. type: Plain text
1374 #: debian-trixie
1375 msgid "Standard C library (I<libc>, I<-lc>), since glibc 2.17"
1376 msgstr "Стандартная библиотека C (I<libc>, I<-lc>), начиная с glibc 2.17"
1377
1378 #. type: Plain text
1379 #: debian-trixie
1380 msgid "Before glibc 2.17, Real-time library (I<librt>, I<-lrt>)"
1381 msgstr "До glibc 2.17, библиотека реального времени (I<librt>, I<-lrt>)"
1382
1383 #. type: Plain text
1384 #: debian-trixie fedora-44 fedora-rawhide
1385 msgid ""
1386 "The function B<clock_getres>() finds the resolution (precision) of the "
1387 "specified clock I<clockid>, and, if I<res> is non-NULL, stores it in the "
1388 "I<struct timespec> pointed to by I<res>. The resolution of clocks depends "
1389 "on the implementation and cannot be configured by a particular process. If "
1390 "the time value pointed to by the argument I<tp> of B<clock_settime>() is "
1391 "not a multiple of I<res>, then it is truncated to a multiple of I<res>."
1392 msgstr ""
1393 "Функция B<clock_getres>() определяет разрешающую способность (точность) "
1394 "заданных в I<clockid> часов, и, если I<res> не равно NULL, сохраняет её в "
1395 "I<struct timespec>, указанную в I<res>. Точность часов зависит от реализации "
1396 "и не может быть настроена определённым процессом. Если значение времени, "
1397 "указанное в аргументе I<tp> функции B<clock_settime>(), не кратно I<res>, то "
1398 "оно усекается до кратного I<res>."
1399
1400 #. type: Plain text
1401 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
1402 msgid ""
1403 "Like B<CLOCK_REALTIME>, but not settable. See B<timer_create>(2) for "
1404 "further details."
1405 msgstr ""
1406 "Как B<CLOCK_REALTIME>, но не настраиваемый. См. B<timer_create>(2) для "
1407 "дополнительных подробностей."
1408
1409 #. Added in commit da15cfdae03351c689736f8d142618592e3cebc3
1410 #. type: Plain text
1411 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
1412 #, fuzzy
1413 #| msgid ""
1414 #| "A faster but less precise version of B<CLOCK_REALTIME>. Use when you "
1415 #| "need very fast, but not fine-grained timestamps. Requires per-"
1416 #| "architecture support, and probably also architecture support for this "
1417 #| "flag in the B<vdso>(7)."
1418 msgid ""
1419 "A faster but less precise version of B<CLOCK_REALTIME>. This clock is not "
1420 "settable. Use when you need very fast, but not fine-grained timestamps. "
1421 "Requires per-architecture support, and probably also architecture support "
1422 "for this flag in the B<vdso>(7)."
1423 msgstr ""
1424 "Более быстрая, но менее точная версия B<CLOCK_REALTIME>. Используйте, если "
1425 "нужны не очень точные метки времени, но очень быстро. Требуется поддержка в "
1426 "архитектуре и, вероятно, поддержка архитектурой этого флага в B<vdso>(7)."
1427
1428 #. commit 1ff3c9677bff7e468e0c487d0ffefe4e901d33f4
1429 #. type: Plain text
1430 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
1431 msgid ""
1432 "A nonsettable system-wide clock derived from wall-clock time but counting "
1433 "leap seconds. This clock does not experience discontinuities or frequency "
1434 "adjustments caused by inserting leap seconds as B<CLOCK_REALTIME> does."
1435 msgstr ""
1436
1437 #. type: Plain text
1438 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
1439 msgid "The acronym TAI refers to International Atomic Time."
1440 msgstr "Аббревиатура TAI означает Международное атомное время."
1441
1442 #. type: Plain text
1443 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
1444 msgid "Like B<CLOCK_BOOTTIME>. See B<timer_create>(2) for further details."
1445 msgstr "Как B<CLOCK_BOOTTIME>. Подробности см. в B<timer_create>(2)."
1446
1447 #. type: Plain text
1448 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
1449 msgid ""
1450 "This is a clock that measures CPU time consumed by this process (i.e., CPU "
1451 "time consumed by all threads in the process). On Linux, this clock is not "
1452 "settable."
1453 msgstr ""
1454
1455 #. type: Plain text
1456 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
1457 msgid ""
1458 "This is a clock that measures CPU time consumed by this thread. On Linux, "
1459 "this clock is not settable."
1460 msgstr ""
1461 "Это часы, которые измеряют процессорное время, потребляемое этим потоком. В "
1462 "Linux эти часы не могут быть установлены."
1463
1464 #. type: Plain text
1465 #: debian-trixie fedora-44 fedora-rawhide
1466 msgid "POSIX.1-2008."
1467 msgstr "POSIX.1-2008."
1468
1469 #. type: Plain text
1470 #: debian-trixie fedora-44 fedora-rawhide
1471 msgid "POSIX.1-2001, SUSv2. Linux 2.6."
1472 msgstr "POSIX.1-2001, SUSv2. Linux 2.6."
1473
1474 #. type: Plain text
1475 #: debian-trixie fedora-44 fedora-rawhide
1476 #, no-wrap
1477 msgid ""
1478 "$ B<./clock_times x>\n"
1479 "CLOCK_REALTIME : 1585985459.446 (18356 days + 7h 30m 59s)\n"
1480 " resolution: 0.000000001\n"
1481 "CLOCK_TAI : 1585985496.447 (18356 days + 7h 31m 36s)\n"
1482 " resolution: 0.000000001\n"
1483 "CLOCK_MONOTONIC: 52395.722 (14h 33m 15s)\n"
1484 " resolution: 0.000000001\n"
1485 "CLOCK_BOOTTIME : 72691.019 (20h 11m 31s)\n"
1486 " resolution: 0.000000001\n"
1487 msgstr ""
1488 "$ B<./clock_times x>\n"
1489 "CLOCK_REALTIME : 1585985459.446 (18356 days + 7h 30m 59s)\n"
1490 " resolution: 0.000000001\n"
1491 "CLOCK_TAI : 1585985496.447 (18356 days + 7h 31m 36s)\n"
1492 " resolution: 0.000000001\n"
1493 "CLOCK_MONOTONIC: 52395.722 (14h 33m 15s)\n"
1494 " resolution: 0.000000001\n"
1495 "CLOCK_BOOTTIME : 72691.019 (20h 11m 31s)\n"
1496 " resolution: 0.000000001\n"
1497
1498 #. type: Plain text
1499 #: debian-trixie
1500 #, no-wrap
1501 msgid ""
1502 "/* clock_times.c\n"
1503 "\\&\n"
1504 " Licensed under GNU General Public License v2 or later.\n"
1505 "*/\n"
1506 "#define _XOPEN_SOURCE 600\n"
1507 "#include E<lt>stdbool.hE<gt>\n"
1508 "#include E<lt>stdint.hE<gt>\n"
1509 "#include E<lt>stdio.hE<gt>\n"
1510 "#include E<lt>stdlib.hE<gt>\n"
1511 "#include E<lt>time.hE<gt>\n"
1512 "\\&\n"
1513 "#define SECS_IN_DAY (24 * 60 * 60)\n"
1514 "\\&\n"
1515 "static void\n"
1516 "displayClock(clockid_t clock, const char *name, bool showRes)\n"
1517 "{\n"
1518 " long days;\n"
1519 " struct timespec ts;\n"
1520 "\\&\n"
1521 " if (clock_gettime(clock, &ts) == -1) {\n"
1522 " perror(\"clock_gettime\");\n"
1523 " exit(EXIT_FAILURE);\n"
1524 " }\n"
1525 "\\&\n"
1526 " printf(\"%-15s: %10jd.%03ld (\", name,\n"
1527 " (intmax_t) ts.tv_sec, ts.tv_nsec / 1000000);\n"
1528 "\\&\n"
1529 " days = ts.tv_sec / SECS_IN_DAY;\n"
1530 " if (days E<gt> 0)\n"
1531 " printf(\"%ld days + \", days);\n"
1532 "\\&\n"
1533 " printf(\"%2dh %2dm %2ds\",\n"
1534 " (int) (ts.tv_sec % SECS_IN_DAY) / 3600,\n"
1535 " (int) (ts.tv_sec % 3600) / 60,\n"
1536 " (int) ts.tv_sec % 60);\n"
1537 " printf(\")\\[rs]n\");\n"
1538 "\\&\n"
1539 " if (clock_getres(clock, &ts) == -1) {\n"
1540 " perror(\"clock_getres\");\n"
1541 " exit(EXIT_FAILURE);\n"
1542 " }\n"
1543 "\\&\n"
1544 " if (showRes)\n"
1545 " printf(\" resolution: %10jd.%09ld\\[rs]n\",\n"
1546 " (intmax_t) ts.tv_sec, ts.tv_nsec);\n"
1547 "}\n"
1548 "\\&\n"
1549 "int\n"
1550 "main(int argc, char *argv[])\n"
1551 "{\n"
1552 " bool showRes = argc E<gt> 1;\n"
1553 "\\&\n"
1554 " displayClock(CLOCK_REALTIME, \"CLOCK_REALTIME\", showRes);\n"
1555 "#ifdef CLOCK_TAI\n"
1556 " displayClock(CLOCK_TAI, \"CLOCK_TAI\", showRes);\n"
1557 "#endif\n"
1558 " displayClock(CLOCK_MONOTONIC, \"CLOCK_MONOTONIC\", showRes);\n"
1559 "#ifdef CLOCK_BOOTTIME\n"
1560 " displayClock(CLOCK_BOOTTIME, \"CLOCK_BOOTTIME\", showRes);\n"
1561 "#endif\n"
1562 " exit(EXIT_SUCCESS);\n"
1563 "}\n"
1564 msgstr ""
1565 "/* clock_times.c\n"
1566 "\\&\n"
1567 " Licensed under GNU General Public License v2 or later.\n"
1568 "*/\n"
1569 "#define _XOPEN_SOURCE 600\n"
1570 "#include E<lt>stdbool.hE<gt>\n"
1571 "#include E<lt>stdint.hE<gt>\n"
1572 "#include E<lt>stdio.hE<gt>\n"
1573 "#include E<lt>stdlib.hE<gt>\n"
1574 "#include E<lt>time.hE<gt>\n"
1575 "\\&\n"
1576 "#define SECS_IN_DAY (24 * 60 * 60)\n"
1577 "\\&\n"
1578 "static void\n"
1579 "displayClock(clockid_t clock, const char *name, bool showRes)\n"
1580 "{\n"
1581 " long days;\n"
1582 " struct timespec ts;\n"
1583 "\\&\n"
1584 " if (clock_gettime(clock, &ts) == -1) {\n"
1585 " perror(\"clock_gettime\");\n"
1586 " exit(EXIT_FAILURE);\n"
1587 " }\n"
1588 "\\&\n"
1589 " printf(\"%-15s: %10jd.%03ld (\", name,\n"
1590 " (intmax_t) ts.tv_sec, ts.tv_nsec / 1000000);\n"
1591 "\\&\n"
1592 " days = ts.tv_sec / SECS_IN_DAY;\n"
1593 " if (days E<gt> 0)\n"
1594 " printf(\"%ld days + \", days);\n"
1595 "\\&\n"
1596 " printf(\"%2dh %2dm %2ds\",\n"
1597 " (int) (ts.tv_sec % SECS_IN_DAY) / 3600,\n"
1598 " (int) (ts.tv_sec % 3600) / 60,\n"
1599 " (int) ts.tv_sec % 60);\n"
1600 " printf(\")\\[rs]n\");\n"
1601 "\\&\n"
1602 " if (clock_getres(clock, &ts) == -1) {\n"
1603 " perror(\"clock_getres\");\n"
1604 " exit(EXIT_FAILURE);\n"
1605 " }\n"
1606 "\\&\n"
1607 " if (showRes)\n"
1608 " printf(\" resolution: %10jd.%09ld\\[rs]n\",\n"
1609 " (intmax_t) ts.tv_sec, ts.tv_nsec);\n"
1610 "}\n"
1611 "\\&\n"
1612 "int\n"
1613 "main(int argc, char *argv[])\n"
1614 "{\n"
1615 " bool showRes = argc E<gt> 1;\n"
1616 "\\&\n"
1617 " displayClock(CLOCK_REALTIME, \"CLOCK_REALTIME\", showRes);\n"
1618 "#ifdef CLOCK_TAI\n"
1619 " displayClock(CLOCK_TAI, \"CLOCK_TAI\", showRes);\n"
1620 "#endif\n"
1621 " displayClock(CLOCK_MONOTONIC, \"CLOCK_MONOTONIC\", showRes);\n"
1622 "#ifdef CLOCK_BOOTTIME\n"
1623 " displayClock(CLOCK_BOOTTIME, \"CLOCK_BOOTTIME\", showRes);\n"
1624 "#endif\n"
1625 " exit(EXIT_SUCCESS);\n"
1626 "}\n"
1627
1628 #. type: TH
1629 #: fedora-44 fedora-rawhide
1630 #, no-wrap
1631 msgid "2024-11-03"
1632 msgstr "3 ноября 2024 г."
1633
1634 #. type: TH
1635 #: fedora-44 fedora-rawhide
1636 #, no-wrap
1637 msgid "Linux man-pages 6.13"
1638 msgstr "Страницы руководства Linux 6.13"
1639
1640 #. type: Plain text
1641 #: fedora-44 fedora-rawhide
1642 #, fuzzy, no-wrap
1643 #| msgid ""
1644 #| "/* clock_times.c\n"
1645 #| "\\&\n"
1646 #| " Licensed under GNU General Public License v2 or later.\n"
1647 #| "*/\n"
1648 #| "#define _XOPEN_SOURCE 600\n"
1649 #| "#include E<lt>stdbool.hE<gt>\n"
1650 #| "#include E<lt>stdint.hE<gt>\n"
1651 #| "#include E<lt>stdio.hE<gt>\n"
1652 #| "#include E<lt>stdlib.hE<gt>\n"
1653 #| "#include E<lt>time.hE<gt>\n"
1654 #| "\\&\n"
1655 #| "#define SECS_IN_DAY (24 * 60 * 60)\n"
1656 #| "\\&\n"
1657 #| "static void\n"
1658 #| "displayClock(clockid_t clock, const char *name, bool showRes)\n"
1659 #| "{\n"
1660 #| " long days;\n"
1661 #| " struct timespec ts;\n"
1662 #| "\\&\n"
1663 #| " if (clock_gettime(clock, &ts) == -1) {\n"
1664 #| " perror(\"clock_gettime\");\n"
1665 #| " exit(EXIT_FAILURE);\n"
1666 #| " }\n"
1667 #| "\\&\n"
1668 #| " printf(\"%-15s: %10jd.%03ld (\", name,\n"
1669 #| " (intmax_t) ts.tv_sec, ts.tv_nsec / 1000000);\n"
1670 #| "\\&\n"
1671 #| " days = ts.tv_sec / SECS_IN_DAY;\n"
1672 #| " if (days E<gt> 0)\n"
1673 #| " printf(\"%ld days + \", days);\n"
1674 #| "\\&\n"
1675 #| " printf(\"%2dh %2dm %2ds\",\n"
1676 #| " (int) (ts.tv_sec % SECS_IN_DAY) / 3600,\n"
1677 #| " (int) (ts.tv_sec % 3600) / 60,\n"
1678 #| " (int) ts.tv_sec % 60);\n"
1679 #| " printf(\")\\[rs]n\");\n"
1680 #| "\\&\n"
1681 #| " if (clock_getres(clock, &ts) == -1) {\n"
1682 #| " perror(\"clock_getres\");\n"
1683 #| " exit(EXIT_FAILURE);\n"
1684 #| " }\n"
1685 #| "\\&\n"
1686 #| " if (showRes)\n"
1687 #| " printf(\" resolution: %10jd.%09ld\\[rs]n\",\n"
1688 #| " (intmax_t) ts.tv_sec, ts.tv_nsec);\n"
1689 #| "}\n"
1690 #| "\\&\n"
1691 #| "int\n"
1692 #| "main(int argc, char *argv[])\n"
1693 #| "{\n"
1694 #| " bool showRes = argc E<gt> 1;\n"
1695 #| "\\&\n"
1696 #| " displayClock(CLOCK_REALTIME, \"CLOCK_REALTIME\", showRes);\n"
1697 #| "#ifdef CLOCK_TAI\n"
1698 #| " displayClock(CLOCK_TAI, \"CLOCK_TAI\", showRes);\n"
1699 #| "#endif\n"
1700 #| " displayClock(CLOCK_MONOTONIC, \"CLOCK_MONOTONIC\", showRes);\n"
1701 #| "#ifdef CLOCK_BOOTTIME\n"
1702 #| " displayClock(CLOCK_BOOTTIME, \"CLOCK_BOOTTIME\", showRes);\n"
1703 #| "#endif\n"
1704 #| " exit(EXIT_SUCCESS);\n"
1705 #| "}\n"
1706 msgid ""
1707 "/* clock_times.c\n"
1708 "\\&\n"
1709 " Licensed under GNU General Public License v2 or later.\n"
1710 "*/\n"
1711 "#define _XOPEN_SOURCE 600\n"
1712 "#include E<lt>stdbool.hE<gt>\n"
1713 "#include E<lt>stdint.hE<gt>\n"
1714 "#include E<lt>stdio.hE<gt>\n"
1715 "#include E<lt>stdlib.hE<gt>\n"
1716 "#include E<lt>sys/types.hE<gt>\n"
1717 "#include E<lt>time.hE<gt>\n"
1718 "\\&\n"
1719 "#define SECS_IN_DAY (24 * 60 * 60)\n"
1720 "\\&\n"
1721 "static void\n"
1722 "displayClock(clockid_t clock, const char *name, bool showRes)\n"
1723 "{\n"
1724 " long days;\n"
1725 " struct timespec ts;\n"
1726 "\\&\n"
1727 " if (clock_gettime(clock, &ts) == -1) {\n"
1728 " perror(\"clock_gettime\");\n"
1729 " exit(EXIT_FAILURE);\n"
1730 " }\n"
1731 "\\&\n"
1732 " printf(\"%-15s: %10jd.%03ld (\", name,\n"
1733 " (intmax_t) ts.tv_sec, ts.tv_nsec / 1000000);\n"
1734 "\\&\n"
1735 " days = ts.tv_sec / SECS_IN_DAY;\n"
1736 " if (days E<gt> 0)\n"
1737 " printf(\"%ld days + \", days);\n"
1738 "\\&\n"
1739 " printf(\"%2dh %2dm %2ds\",\n"
1740 " (int) (ts.tv_sec % SECS_IN_DAY) / 3600,\n"
1741 " (int) (ts.tv_sec % 3600) / 60,\n"
1742 " (int) ts.tv_sec % 60);\n"
1743 " printf(\")\\[rs]n\");\n"
1744 "\\&\n"
1745 " if (clock_getres(clock, &ts) == -1) {\n"
1746 " perror(\"clock_getres\");\n"
1747 " exit(EXIT_FAILURE);\n"
1748 " }\n"
1749 "\\&\n"
1750 " if (showRes)\n"
1751 " printf(\" resolution: %10jd.%09ld\\[rs]n\",\n"
1752 " (intmax_t) ts.tv_sec, ts.tv_nsec);\n"
1753 "}\n"
1754 "\\&\n"
1755 "int\n"
1756 "main(int argc, char *argv[])\n"
1757 "{\n"
1758 " bool showRes = argc E<gt> 1;\n"
1759 "\\&\n"
1760 " displayClock(CLOCK_REALTIME, \"CLOCK_REALTIME\", showRes);\n"
1761 "#ifdef CLOCK_TAI\n"
1762 " displayClock(CLOCK_TAI, \"CLOCK_TAI\", showRes);\n"
1763 "#endif\n"
1764 " displayClock(CLOCK_MONOTONIC, \"CLOCK_MONOTONIC\", showRes);\n"
1765 "#ifdef CLOCK_BOOTTIME\n"
1766 " displayClock(CLOCK_BOOTTIME, \"CLOCK_BOOTTIME\", showRes);\n"
1767 "#endif\n"
1768 " exit(EXIT_SUCCESS);\n"
1769 "}\n"
1770 msgstr ""
1771 "/* clock_times.c\n"
1772 "\\&\n"
1773 " Licensed under GNU General Public License v2 or later.\n"
1774 "*/\n"
1775 "#define _XOPEN_SOURCE 600\n"
1776 "#include E<lt>stdbool.hE<gt>\n"
1777 "#include E<lt>stdint.hE<gt>\n"
1778 "#include E<lt>stdio.hE<gt>\n"
1779 "#include E<lt>stdlib.hE<gt>\n"
1780 "#include E<lt>time.hE<gt>\n"
1781 "\\&\n"
1782 "#define SECS_IN_DAY (24 * 60 * 60)\n"
1783 "\\&\n"
1784 "static void\n"
1785 "displayClock(clockid_t clock, const char *name, bool showRes)\n"
1786 "{\n"
1787 " long days;\n"
1788 " struct timespec ts;\n"
1789 "\\&\n"
1790 " if (clock_gettime(clock, &ts) == -1) {\n"
1791 " perror(\"clock_gettime\");\n"
1792 " exit(EXIT_FAILURE);\n"
1793 " }\n"
1794 "\\&\n"
1795 " printf(\"%-15s: %10jd.%03ld (\", name,\n"
1796 " (intmax_t) ts.tv_sec, ts.tv_nsec / 1000000);\n"
1797 "\\&\n"
1798 " days = ts.tv_sec / SECS_IN_DAY;\n"
1799 " if (days E<gt> 0)\n"
1800 " printf(\"%ld days + \", days);\n"
1801 "\\&\n"
1802 " printf(\"%2dh %2dm %2ds\",\n"
1803 " (int) (ts.tv_sec % SECS_IN_DAY) / 3600,\n"
1804 " (int) (ts.tv_sec % 3600) / 60,\n"
1805 " (int) ts.tv_sec % 60);\n"
1806 " printf(\")\\[rs]n\");\n"
1807 "\\&\n"
1808 " if (clock_getres(clock, &ts) == -1) {\n"
1809 " perror(\"clock_getres\");\n"
1810 " exit(EXIT_FAILURE);\n"
1811 " }\n"
1812 "\\&\n"
1813 " if (showRes)\n"
1814 " printf(\" resolution: %10jd.%09ld\\[rs]n\",\n"
1815 " (intmax_t) ts.tv_sec, ts.tv_nsec);\n"
1816 "}\n"
1817 "\\&\n"
1818 "int\n"
1819 "main(int argc, char *argv[])\n"
1820 "{\n"
1821 " bool showRes = argc E<gt> 1;\n"
1822 "\\&\n"
1823 " displayClock(CLOCK_REALTIME, \"CLOCK_REALTIME\", showRes);\n"
1824 "#ifdef CLOCK_TAI\n"
1825 " displayClock(CLOCK_TAI, \"CLOCK_TAI\", showRes);\n"
1826 "#endif\n"
1827 " displayClock(CLOCK_MONOTONIC, \"CLOCK_MONOTONIC\", showRes);\n"
1828 "#ifdef CLOCK_BOOTTIME\n"
1829 " displayClock(CLOCK_BOOTTIME, \"CLOCK_BOOTTIME\", showRes);\n"
1830 "#endif\n"
1831 " exit(EXIT_SUCCESS);\n"
1832 "}\n"
1833
1834 #. type: TH
1835 #: mageia-cauldron
1836 #, no-wrap
1837 msgid "2026-02-08"
1838 msgstr "8 февраля 2026 г."
1839
1840 #. type: TH
1841 #: mageia-cauldron
1842 #, no-wrap
1843 msgid "Linux man-pages 6.17"
1844 msgstr "Страницы руководства Linux 6.17"
1845
1846 #. type: TH
1847 #: opensuse-leap-16-1 opensuse-tumbleweed
1848 #, no-wrap
1849 msgid "Linux man-pages (unreleased)"
1850 msgstr "Страницы руководства Linux (не выпущены)"