| 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:32+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 "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 "2026-02-08" |
| 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 "nanosleep - high-resolution sleep" |
| 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>)" |
| 63 |
msgstr "" |
| 64 |
|
| 65 |
#. type: SH |
| 66 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 67 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 68 |
#, no-wrap |
| 69 |
msgid "SYNOPSIS" |
| 70 |
msgstr "" |
| 71 |
|
| 72 |
#. type: Plain text |
| 73 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 74 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 75 |
#, no-wrap |
| 76 |
msgid "B<#include E<lt>time.hE<gt>>\n" |
| 77 |
msgstr "" |
| 78 |
|
| 79 |
#. type: Plain text |
| 80 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 81 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 82 |
#, no-wrap |
| 83 |
msgid "" |
| 84 |
"B<int nanosleep(const struct timespec *>I<duration>B<,>\n" |
| 85 |
"B< struct timespec *_Nullable >I<rem>B<);>\n" |
| 86 |
msgstr "" |
| 87 |
|
| 88 |
#. type: Plain text |
| 89 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 90 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 91 |
msgid "" |
| 92 |
"Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):" |
| 93 |
msgstr "" |
| 94 |
|
| 95 |
#. type: Plain text |
| 96 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 97 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 98 |
msgid "B<nanosleep>():" |
| 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 |
#, no-wrap |
| 105 |
msgid " _POSIX_C_SOURCE E<gt>= 199309L\n" |
| 106 |
msgstr "" |
| 107 |
|
| 108 |
#. type: SH |
| 109 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 110 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 111 |
#, no-wrap |
| 112 |
msgid "DESCRIPTION" |
| 113 |
msgstr "" |
| 114 |
|
| 115 |
#. type: Plain text |
| 116 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 117 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 118 |
msgid "" |
| 119 |
"B<nanosleep>() suspends the execution of the calling thread until either at " |
| 120 |
"least the time specified in I<*duration> has elapsed, or the delivery of a " |
| 121 |
"signal that triggers the invocation of a handler in the calling thread or " |
| 122 |
"that terminates the process." |
| 123 |
msgstr "" |
| 124 |
|
| 125 |
#. type: Plain text |
| 126 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 127 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 128 |
msgid "" |
| 129 |
"If the call is interrupted by a signal handler, B<nanosleep>() returns -1, " |
| 130 |
"sets I<errno> to B<EINTR>, and writes the remaining time into the structure " |
| 131 |
"pointed to by I<rem> unless I<rem> is NULL. The value of I<*rem> can then " |
| 132 |
"be used to call B<nanosleep>() again and complete the specified pause (but " |
| 133 |
"see NOTES)." |
| 134 |
msgstr "" |
| 135 |
|
| 136 |
#. type: Plain text |
| 137 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 138 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 139 |
msgid "" |
| 140 |
"The B<timespec>(3) structure is used to specify intervals of time with " |
| 141 |
"nanosecond precision." |
| 142 |
msgstr "" |
| 143 |
|
| 144 |
#. type: Plain text |
| 145 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 146 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 147 |
msgid "The value of the nanoseconds field must be in the range [0, 999999999]." |
| 148 |
msgstr "" |
| 149 |
|
| 150 |
#. type: Plain text |
| 151 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 152 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 153 |
msgid "" |
| 154 |
"Compared to B<sleep>(3) and B<usleep>(3), B<nanosleep>() has the following " |
| 155 |
"advantages: it provides a higher resolution for specifying the sleep " |
| 156 |
"interval; POSIX.1 explicitly specifies that it does not interact with " |
| 157 |
"signals; and it makes the task of resuming a sleep that has been interrupted " |
| 158 |
"by a signal handler easier." |
| 159 |
msgstr "" |
| 160 |
|
| 161 |
#. type: SH |
| 162 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 163 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 164 |
#, no-wrap |
| 165 |
msgid "RETURN VALUE" |
| 166 |
msgstr "" |
| 167 |
|
| 168 |
#. type: Plain text |
| 169 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 170 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 171 |
msgid "" |
| 172 |
"On successfully sleeping for the requested duration, B<nanosleep>() returns " |
| 173 |
"0. If the call is interrupted by a signal handler or encounters an error, " |
| 174 |
"then it returns -1, with I<errno> set to indicate the error." |
| 175 |
msgstr "" |
| 176 |
|
| 177 |
#. type: SH |
| 178 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 179 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 180 |
#, no-wrap |
| 181 |
msgid "ERRORS" |
| 182 |
msgstr "" |
| 183 |
|
| 184 |
#. type: TP |
| 185 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 186 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 187 |
#, no-wrap |
| 188 |
msgid "B<EFAULT>" |
| 189 |
msgstr "" |
| 190 |
|
| 191 |
#. type: Plain text |
| 192 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 193 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 194 |
msgid "Problem with copying information from user space." |
| 195 |
msgstr "" |
| 196 |
|
| 197 |
#. type: TP |
| 198 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 199 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 200 |
#, no-wrap |
| 201 |
msgid "B<EINTR>" |
| 202 |
msgstr "" |
| 203 |
|
| 204 |
#. type: Plain text |
| 205 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 206 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 207 |
msgid "" |
| 208 |
"The pause has been interrupted by a signal that was delivered to the thread " |
| 209 |
"(see B<signal>(7)). The remaining sleep time has been written into I<*rem> " |
| 210 |
"so that the thread can easily call B<nanosleep>() again and continue with " |
| 211 |
"the pause." |
| 212 |
msgstr "" |
| 213 |
|
| 214 |
#. type: TP |
| 215 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 216 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 217 |
#, no-wrap |
| 218 |
msgid "B<EINVAL>" |
| 219 |
msgstr "" |
| 220 |
|
| 221 |
#. type: Plain text |
| 222 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 223 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 224 |
msgid "" |
| 225 |
"The value in the I<tv_nsec> field was not in the range [0, 999999999] or " |
| 226 |
"I<tv_sec> was negative." |
| 227 |
msgstr "" |
| 228 |
|
| 229 |
#. type: SH |
| 230 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 231 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 232 |
#, no-wrap |
| 233 |
msgid "VERSIONS" |
| 234 |
msgstr "" |
| 235 |
|
| 236 |
#. See also http://thread.gmane.org/gmane.linux.kernel/696854/ |
| 237 |
#. Subject: nanosleep() uses CLOCK_MONOTONIC, should be CLOCK_REALTIME? |
| 238 |
#. Date: 2008-06-22 07:35:41 GMT |
| 239 |
#. type: Plain text |
| 240 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 241 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 242 |
msgid "" |
| 243 |
"POSIX.1 specifies that B<nanosleep>() should measure time against the " |
| 244 |
"B<CLOCK_REALTIME> clock. However, Linux measures the time using the " |
| 245 |
"B<CLOCK_MONOTONIC> clock. This probably does not matter, since the POSIX.1 " |
| 246 |
"specification for B<clock_settime>(2) says that discontinuous changes in " |
| 247 |
"B<CLOCK_REALTIME> should not affect B<nanosleep>():" |
| 248 |
msgstr "" |
| 249 |
|
| 250 |
#. type: Plain text |
| 251 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 252 |
#: opensuse-tumbleweed |
| 253 |
msgid "" |
| 254 |
"Setting the value of the B<CLOCK_REALTIME> clock via B<clock_settime>(2) " |
| 255 |
"shall have no effect on threads that are blocked waiting for a relative time " |
| 256 |
"service based upon this clock, including the B<nanosleep>() function. " |
| 257 |
"Consequently, these time services shall expire when the requested duration " |
| 258 |
"elapses, independently of the new or old value of the clock." |
| 259 |
msgstr "" |
| 260 |
|
| 261 |
#. type: SH |
| 262 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 263 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 264 |
#, no-wrap |
| 265 |
msgid "STANDARDS" |
| 266 |
msgstr "" |
| 267 |
|
| 268 |
#. type: Plain text |
| 269 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 270 |
#: opensuse-tumbleweed |
| 271 |
msgid "POSIX.1-2024." |
| 272 |
msgstr "" |
| 273 |
|
| 274 |
#. type: SH |
| 275 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 276 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 277 |
#, no-wrap |
| 278 |
msgid "HISTORY" |
| 279 |
msgstr "" |
| 280 |
|
| 281 |
#. type: Plain text |
| 282 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 283 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 284 |
msgid "POSIX.1-2001." |
| 285 |
msgstr "" |
| 286 |
|
| 287 |
#. type: Plain text |
| 288 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 289 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 290 |
msgid "" |
| 291 |
"In order to support applications requiring much more precise pauses (e.g., " |
| 292 |
"in order to control some time-critical hardware), B<nanosleep>() would " |
| 293 |
"handle pauses of up to 2 milliseconds by busy waiting with microsecond " |
| 294 |
"precision when called from a thread scheduled under a real-time policy like " |
| 295 |
"B<SCHED_FIFO> or B<SCHED_RR>. This special extension was removed in Linux " |
| 296 |
"2.5.39, and is thus not available in Linux 2.6.0 and later kernels." |
| 297 |
msgstr "" |
| 298 |
|
| 299 |
#. type: SH |
| 300 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 301 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 302 |
#, no-wrap |
| 303 |
msgid "NOTES" |
| 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 "" |
| 310 |
"If the I<duration> is not an exact multiple of the granularity underlying " |
| 311 |
"clock (see B<time>(7)), then the interval will be rounded up to the next " |
| 312 |
"multiple. Furthermore, after the sleep completes, there may still be a " |
| 313 |
"delay before the CPU becomes free to once again execute the calling thread." |
| 314 |
msgstr "" |
| 315 |
|
| 316 |
#. type: Plain text |
| 317 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 318 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 319 |
msgid "" |
| 320 |
"The fact that B<nanosleep>() sleeps for a relative interval can be " |
| 321 |
"problematic if the call is repeatedly restarted after being interrupted by " |
| 322 |
"signals, since the time between the interruptions and restarts of the call " |
| 323 |
"will lead to drift in the time when the sleep finally completes. This " |
| 324 |
"problem can be avoided by using B<clock_nanosleep>(2) with an absolute time " |
| 325 |
"value." |
| 326 |
msgstr "" |
| 327 |
|
| 328 |
#. type: SH |
| 329 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 330 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 331 |
#, no-wrap |
| 332 |
msgid "BUGS" |
| 333 |
msgstr "" |
| 334 |
|
| 335 |
#. type: Plain text |
| 336 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 337 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 338 |
msgid "" |
| 339 |
"If a program that catches signals and uses B<nanosleep>() receives signals " |
| 340 |
"at a very high rate, then scheduling delays and rounding errors in the " |
| 341 |
"kernel's calculation of the sleep interval and the returned I<remain> value " |
| 342 |
"mean that the I<remain> value may steadily I<increase> on successive " |
| 343 |
"restarts of the B<nanosleep>() call. To avoid such problems, use " |
| 344 |
"B<clock_nanosleep>(2) with the B<TIMER_ABSTIME> flag to sleep to an " |
| 345 |
"absolute deadline." |
| 346 |
msgstr "" |
| 347 |
|
| 348 |
#. type: Plain text |
| 349 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 350 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 351 |
msgid "" |
| 352 |
"In Linux 2.4, if B<nanosleep>() is stopped by a signal (e.g., B<SIGTSTP>), " |
| 353 |
"then the call fails with the error B<EINTR> after the thread is resumed by a " |
| 354 |
"B<SIGCONT> signal. If the system call is subsequently restarted, then the " |
| 355 |
"time that the thread spent in the stopped state is I<not> counted against " |
| 356 |
"the sleep interval. This problem is fixed in Linux 2.6.0 and later kernels." |
| 357 |
msgstr "" |
| 358 |
|
| 359 |
#. type: SH |
| 360 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 361 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 362 |
#, no-wrap |
| 363 |
msgid "SEE ALSO" |
| 364 |
msgstr "" |
| 365 |
|
| 366 |
#. type: Plain text |
| 367 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 368 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 369 |
msgid "" |
| 370 |
"B<clock_nanosleep>(2), B<restart_syscall>(2), B<sched_setscheduler>(2), " |
| 371 |
"B<timer_create>(2), B<sleep>(3), B<timespec>(3), B<usleep>(3), B<time>(7)" |
| 372 |
msgstr "" |
| 373 |
|
| 374 |
#. type: TH |
| 375 |
#: debian-trixie |
| 376 |
#, no-wrap |
| 377 |
msgid "2024-05-02" |
| 378 |
msgstr "" |
| 379 |
|
| 380 |
#. type: TH |
| 381 |
#: debian-trixie |
| 382 |
#, no-wrap |
| 383 |
msgid "Linux man-pages 6.9.1" |
| 384 |
msgstr "" |
| 385 |
|
| 386 |
#. type: Plain text |
| 387 |
#: debian-trixie |
| 388 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 389 |
msgstr "" |
| 390 |
|
| 391 |
#. type: Plain text |
| 392 |
#: debian-trixie fedora-44 fedora-rawhide |
| 393 |
msgid "" |
| 394 |
"Setting the value of the B<CLOCK_REALTIME> clock via B<clock_settime>(2) " |
| 395 |
"shall have no effect on threads that are blocked waiting for a relative time " |
| 396 |
"service based upon this clock, including the B<nanosleep>() function; ... " |
| 397 |
"Consequently, these time services shall expire when the requested duration " |
| 398 |
"elapses, independently of the new or old value of the clock." |
| 399 |
msgstr "" |
| 400 |
|
| 401 |
#. type: Plain text |
| 402 |
#: debian-trixie fedora-44 fedora-rawhide |
| 403 |
msgid "POSIX.1-2008." |
| 404 |
msgstr "" |
| 405 |
|
| 406 |
#. type: TH |
| 407 |
#: fedora-44 fedora-rawhide |
| 408 |
#, no-wrap |
| 409 |
msgid "2024-07-23" |
| 410 |
msgstr "" |
| 411 |
|
| 412 |
#. type: TH |
| 413 |
#: fedora-44 fedora-rawhide |
| 414 |
#, no-wrap |
| 415 |
msgid "Linux man-pages 6.13" |
| 416 |
msgstr "" |
| 417 |
|
| 418 |
#. type: TH |
| 419 |
#: mageia-cauldron |
| 420 |
#, no-wrap |
| 421 |
msgid "Linux man-pages 6.17" |
| 422 |
msgstr "" |
| 423 |
|
| 424 |
#. type: TH |
| 425 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 426 |
#, no-wrap |
| 427 |
msgid "Linux man-pages (unreleased)" |
| 428 |
msgstr "" |