Debian Codegraph @

templates/man2/clock_nanosleep.2.pot

raw
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Free Software Foundation, Inc.
3 # This file is distributed under the same license as the PACKAGE package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5 #
6 #, fuzzy
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: PACKAGE VERSION\n"
10 "POT-Creation-Date: 2026-06-05 06:20+0200\n"
11 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <[email protected]>\n"
14 "Language: \n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18
19 #. type: TH
20 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
21 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
22 #, no-wrap
23 msgid "clock_nanosleep"
24 msgstr ""
25
26 #. type: TH
27 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
28 #: opensuse-tumbleweed
29 #, no-wrap
30 msgid "2025-10-29"
31 msgstr ""
32
33 #. type: TH
34 #: archlinux debian-unstable
35 #, no-wrap
36 msgid "Linux man-pages 6.18"
37 msgstr ""
38
39 #. type: SH
40 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
41 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
42 #, no-wrap
43 msgid "NAME"
44 msgstr ""
45
46 #. type: Plain text
47 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
48 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
49 msgid "clock_nanosleep - high-resolution sleep with specifiable clock"
50 msgstr ""
51
52 #. type: SH
53 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
54 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
55 #, no-wrap
56 msgid "LIBRARY"
57 msgstr ""
58
59 #. type: Plain text
60 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
61 #: opensuse-leap-16-1 opensuse-tumbleweed
62 msgid "Standard C library (I<libc>,\\ I<-lc>), since glibc 2.17"
63 msgstr ""
64
65 #. type: Plain text
66 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
67 #: opensuse-leap-16-1 opensuse-tumbleweed
68 msgid "Before glibc 2.17, Real-time library (I<librt>,\\ I<-lrt>)"
69 msgstr ""
70
71 #. type: SH
72 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
73 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
74 #, no-wrap
75 msgid "SYNOPSIS"
76 msgstr ""
77
78 #. type: Plain text
79 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
80 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
81 msgid "B<#include E<lt>time.hE<gt>>"
82 msgstr ""
83
84 #. type: Plain text
85 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
86 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
87 #, no-wrap
88 msgid ""
89 "B<int clock_nanosleep(clockid_t >I<clockid>B<, int >I<flags>B<,>\n"
90 "B< const struct timespec *>I<t>B<,>\n"
91 "B< struct timespec *_Nullable >I<remain>B<);>\n"
92 msgstr ""
93
94 #. type: Plain text
95 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
96 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
97 msgid ""
98 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
99 msgstr ""
100
101 #. type: Plain text
102 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
103 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
104 msgid "B<clock_nanosleep>():"
105 msgstr ""
106
107 #. type: Plain text
108 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
109 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
110 #, no-wrap
111 msgid " _POSIX_C_SOURCE E<gt>= 200112L\n"
112 msgstr ""
113
114 #. type: SH
115 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
116 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
117 #, no-wrap
118 msgid "DESCRIPTION"
119 msgstr ""
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 msgid ""
125 "Like B<nanosleep>(2), B<clock_nanosleep>() allows the calling thread to "
126 "sleep for an interval specified with nanosecond precision. It differs in "
127 "allowing the caller to select the clock against which the sleep interval is "
128 "to be measured, and in allowing the sleep interval to be specified as either "
129 "an absolute or a relative value."
130 msgstr ""
131
132 #. type: Plain text
133 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
134 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
135 msgid ""
136 "The time values passed to and returned by this call are specified using "
137 "B<timespec>(3) structures."
138 msgstr ""
139
140 #. Look in time/posix-timers.c (kernel 5.6 sources) for the
141 #. 'struct k_clock' structures that have an 'nsleep' method
142 #. type: Plain text
143 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
144 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
145 msgid ""
146 "The I<clockid> argument specifies the clock against which the sleep interval "
147 "is to be measured. This argument can have one of the following values:"
148 msgstr ""
149
150 #. type: TP
151 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
152 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
153 #, no-wrap
154 msgid "B<CLOCK_REALTIME>"
155 msgstr ""
156
157 #. type: Plain text
158 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
159 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
160 msgid "A settable system-wide real-time clock."
161 msgstr ""
162
163 #. type: TP
164 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
165 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
166 #, no-wrap
167 msgid "B<CLOCK_TAI> (since Linux 3.10)"
168 msgstr ""
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 "A system-wide clock derived from wall-clock time but counting leap seconds."
175 msgstr ""
176
177 #. type: TP
178 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
179 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
180 #, no-wrap
181 msgid "B<CLOCK_MONOTONIC>"
182 msgstr ""
183
184 #. On Linux this clock measures time since boot.
185 #. type: Plain text
186 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
187 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
188 msgid ""
189 "A nonsettable, monotonically increasing clock that measures time since some "
190 "unspecified point in the past that does not change after system startup."
191 msgstr ""
192
193 #. type: TP
194 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
195 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
196 #, no-wrap
197 msgid "B<CLOCK_BOOTTIME> (since Linux 2.6.39)"
198 msgstr ""
199
200 #. type: Plain text
201 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
202 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
203 msgid ""
204 "Identical to B<CLOCK_MONOTONIC>, except that it also includes any time that "
205 "the system is suspended."
206 msgstr ""
207
208 #. type: TP
209 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
210 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
211 #, no-wrap
212 msgid "B<CLOCK_PROCESS_CPUTIME_ID>"
213 msgstr ""
214
215 #. There is some trickery between glibc and the kernel
216 #. to deal with the CLOCK_PROCESS_CPUTIME_ID case.
217 #. type: Plain text
218 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
219 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
220 msgid ""
221 "A settable per-process clock that measures CPU time consumed by all threads "
222 "in the process."
223 msgstr ""
224
225 #. Sleeping against CLOCK_REALTIME_ALARM and CLOCK_BOOTTIME_ALARM
226 #. is also possible (tested), with CAP_WAKE_ALARM, but I'm not
227 #. sure if this is useful or needs to be documented.
228 #. type: Plain text
229 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
230 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
231 msgid ""
232 "See B<clock_getres>(2) for further details on these clocks. In addition, "
233 "the CPU clock IDs returned by B<clock_getcpuclockid>(3) and "
234 "B<pthread_getcpuclockid>(3) can also be passed in I<clockid>."
235 msgstr ""
236
237 #. type: Plain text
238 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
239 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
240 msgid ""
241 "If I<flags> is 0, then the value specified in I<t> is interpreted as an "
242 "interval relative to the current value of the clock specified by I<clockid>."
243 msgstr ""
244
245 #. type: Plain text
246 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
247 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
248 msgid ""
249 "If I<flags> is B<TIMER_ABSTIME>, then I<t> is interpreted as an absolute "
250 "time as measured by the clock, I<clockid>. If I<t> is less than or equal to "
251 "the current value of the clock, then B<clock_nanosleep>() returns "
252 "immediately without suspending the calling thread."
253 msgstr ""
254
255 #. type: Plain text
256 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
257 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
258 msgid ""
259 "B<clock_nanosleep>() suspends the execution of the calling thread until "
260 "either at least the time specified by I<t> has elapsed, or a signal is "
261 "delivered that causes a signal handler to be called or that terminates the "
262 "process."
263 msgstr ""
264
265 #. type: Plain text
266 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
267 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
268 msgid ""
269 "If the call is interrupted by a signal handler, B<clock_nanosleep>() fails "
270 "with the error B<EINTR>. In addition, if I<remain> is not NULL, and "
271 "I<flags> was not B<TIMER_ABSTIME>, it returns the remaining unslept time in "
272 "I<remain>. This value can then be used to call B<clock_nanosleep>() again "
273 "and complete a (relative) sleep."
274 msgstr ""
275
276 #. type: SH
277 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
278 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
279 #, no-wrap
280 msgid "RETURN VALUE"
281 msgstr ""
282
283 #. type: Plain text
284 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
285 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
286 msgid ""
287 "On successfully sleeping for the requested interval, B<clock_nanosleep>() "
288 "returns 0. If the call is interrupted by a signal handler or encounters an "
289 "error, then it returns one of the positive error number listed in ERRORS."
290 msgstr ""
291
292 #. type: SH
293 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
294 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
295 #, no-wrap
296 msgid "ERRORS"
297 msgstr ""
298
299 #. type: TP
300 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
301 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
302 #, no-wrap
303 msgid "B<EFAULT>"
304 msgstr ""
305
306 #. type: Plain text
307 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
308 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
309 msgid "I<t> or I<remain> specified an invalid address."
310 msgstr ""
311
312 #. type: TP
313 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
314 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
315 #, no-wrap
316 msgid "B<EINTR>"
317 msgstr ""
318
319 #. type: Plain text
320 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
321 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
322 msgid "The sleep was interrupted by a signal handler; see B<signal>(7)."
323 msgstr ""
324
325 #. type: TP
326 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
327 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
328 #, no-wrap
329 msgid "B<EINVAL>"
330 msgstr ""
331
332 #. type: Plain text
333 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
334 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
335 msgid ""
336 "The value in the I<tv_nsec> field was not in the range [0, 999999999] or "
337 "I<tv_sec> was negative."
338 msgstr ""
339
340 #. type: Plain text
341 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
342 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
343 msgid ""
344 "I<clockid> was invalid. (B<CLOCK_THREAD_CPUTIME_ID> is not a permitted "
345 "value for I<clockid>.)"
346 msgstr ""
347
348 #. type: TP
349 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
350 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
351 #, no-wrap
352 msgid "B<ENOTSUP>"
353 msgstr ""
354
355 #. type: Plain text
356 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
357 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
358 msgid "The kernel does not support sleeping against this I<clockid>."
359 msgstr ""
360
361 #. type: SH
362 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
363 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
364 #, no-wrap
365 msgid "STANDARDS"
366 msgstr ""
367
368 #. type: Plain text
369 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
370 #: opensuse-tumbleweed
371 msgid "POSIX.1-2024."
372 msgstr ""
373
374 #. type: SH
375 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
376 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
377 #, no-wrap
378 msgid "HISTORY"
379 msgstr ""
380
381 #. type: Plain text
382 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
383 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
384 msgid "POSIX.1-2001. Linux 2.6, glibc 2.1."
385 msgstr ""
386
387 #. type: SH
388 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
389 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
390 #, no-wrap
391 msgid "NOTES"
392 msgstr ""
393
394 #. type: Plain text
395 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
396 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
397 msgid ""
398 "If the interval specified in I<t> is not an exact multiple of the "
399 "granularity underlying clock (see B<time>(7)), then the interval will be "
400 "rounded up to the next multiple. Furthermore, after the sleep completes, "
401 "there may still be a delay before the CPU becomes free to once again execute "
402 "the calling thread."
403 msgstr ""
404
405 #. type: Plain text
406 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
407 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
408 msgid ""
409 "Using an absolute timer is useful for preventing timer drift problems of the "
410 "type described in B<nanosleep>(2). (Such problems are exacerbated in "
411 "programs that try to restart a relative sleep that is repeatedly interrupted "
412 "by signals.) To perform a relative sleep that avoids these problems, call "
413 "B<clock_gettime>(2) for the desired clock, add the desired interval to the "
414 "returned time value, and then call B<clock_nanosleep>() with the "
415 "B<TIMER_ABSTIME> flag."
416 msgstr ""
417
418 #. type: Plain text
419 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
420 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
421 msgid ""
422 "B<clock_nanosleep>() is never restarted after being interrupted by a signal "
423 "handler, regardless of the use of the B<sigaction>(2) B<SA_RESTART> flag."
424 msgstr ""
425
426 #. type: Plain text
427 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
428 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
429 msgid ""
430 "The I<remain> argument is unused, and unnecessary, when I<flags> is "
431 "B<TIMER_ABSTIME>. (An absolute sleep can be restarted using the same I<t> "
432 "argument.)"
433 msgstr ""
434
435 #. type: Plain text
436 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
437 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
438 msgid ""
439 "POSIX.1 specifies that B<clock_nanosleep>() has no effect on signals "
440 "dispositions or the signal mask."
441 msgstr ""
442
443 #. type: Plain text
444 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
445 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
446 msgid ""
447 "POSIX.1 specifies that after changing the value of the B<CLOCK_REALTIME> "
448 "clock via B<clock_settime>(2), the new clock value shall be used to "
449 "determine the time at which a thread blocked on an absolute "
450 "B<clock_nanosleep>() will wake up; if the new clock value falls past the "
451 "end of the sleep interval, then the B<clock_nanosleep>() call will return "
452 "immediately."
453 msgstr ""
454
455 #. type: Plain text
456 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
457 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
458 msgid ""
459 "POSIX.1 specifies that changing the value of the B<CLOCK_REALTIME> clock via "
460 "B<clock_settime>(2) shall have no effect on a thread that is blocked on a "
461 "relative B<clock_nanosleep>()."
462 msgstr ""
463
464 #. type: SH
465 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
466 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
467 #, no-wrap
468 msgid "SEE ALSO"
469 msgstr ""
470
471 #. type: Plain text
472 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
473 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
474 msgid ""
475 "B<clock_getres>(2), B<nanosleep>(2), B<restart_syscall>(2), "
476 "B<timer_create>(2), B<sleep>(3), B<timespec>(3), B<usleep>(3), B<time>(7)"
477 msgstr ""
478
479 #. type: TH
480 #: debian-trixie
481 #, no-wrap
482 msgid "2024-05-02"
483 msgstr ""
484
485 #. type: TH
486 #: debian-trixie
487 #, no-wrap
488 msgid "Linux man-pages 6.9.1"
489 msgstr ""
490
491 #. type: Plain text
492 #: debian-trixie
493 msgid "Standard C library (I<libc>, I<-lc>), since glibc 2.17"
494 msgstr ""
495
496 #. type: Plain text
497 #: debian-trixie
498 msgid "Before glibc 2.17, Real-time library (I<librt>, I<-lrt>)"
499 msgstr ""
500
501 #. type: Plain text
502 #: debian-trixie fedora-44 fedora-rawhide
503 msgid "POSIX.1-2008."
504 msgstr ""
505
506 #. type: TH
507 #: fedora-44 fedora-rawhide
508 #, no-wrap
509 msgid "2024-07-23"
510 msgstr ""
511
512 #. type: TH
513 #: fedora-44 fedora-rawhide
514 #, no-wrap
515 msgid "Linux man-pages 6.13"
516 msgstr ""
517
518 #. type: TH
519 #: mageia-cauldron
520 #, no-wrap
521 msgid "Linux man-pages 6.17"
522 msgstr ""
523
524 #. type: TH
525 #: opensuse-leap-16-1 opensuse-tumbleweed
526 #, no-wrap
527 msgid "Linux man-pages (unreleased)"
528 msgstr ""