| 1 |
# French translation of manpages |
| 2 |
# This file is distributed under the same license as the manpages-l10n package. |
| 3 |
# Copyright © of this file: |
| 4 |
# Christophe Blaess <https://www.blaess.fr/christophe/>, 1996-2003. |
| 5 |
# Stéphan Rafin <[email protected]>, 2002. |
| 6 |
# Thierry Vignaud <[email protected]>, 1999, 2002. |
| 7 |
# François Micaux, 2002. |
| 8 |
# Alain Portal <[email protected]>, 2003-2008. |
| 9 |
# Jean-Philippe Guérard <[email protected]>, 2005-2006. |
| 10 |
# Jean-Luc Coulon (f5ibh) <[email protected]>, 2006-2007. |
| 11 |
# Julien Cristau <[email protected]>, 2006-2007. |
| 12 |
# Thomas Huriaux <[email protected]>, 2006-2008. |
| 13 |
# Nicolas François <[email protected]>, 2006-2008. |
| 14 |
# Florentin Duneau <[email protected]>, 2006-2010. |
| 15 |
# Simon Paillard <[email protected]>, 2006. |
| 16 |
# Denis Barbier <[email protected]>, 2006, 2010. |
| 17 |
# David Prévot <[email protected]>, 2010, 2012, 2013. |
| 18 |
# Cédric Boutillier <[email protected]>, 2011, 2012, 2013. |
| 19 |
# Frédéric Hantrais <[email protected]>, 2013, 2014. |
| 20 |
# Jean-Pierre Giraud <[email protected]>, 2023-2024. |
| 21 |
msgid "" |
| 22 |
msgstr "" |
| 23 |
"Project-Id-Version: manpages-l10n 4.23.0\n" |
| 24 |
"POT-Creation-Date: 2026-06-05 06:49+0200\n" |
| 25 |
"PO-Revision-Date: 2026-06-27 19:45+0200\n" |
| 26 |
"Last-Translator: Jean-Pierre Giraud <[email protected]>\n" |
| 27 |
"Language-Team: French <[email protected]>\n" |
| 28 |
"Language: fr\n" |
| 29 |
"MIME-Version: 1.0\n" |
| 30 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 31 |
"Content-Transfer-Encoding: 8bit\n" |
| 32 |
"Plural-Forms: nplurals=2; plural=n > 1;\n" |
| 33 |
"X-Generator: Lokalize 25.04.0\n" |
| 34 |
|
| 35 |
#. type: TH |
| 36 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 37 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 38 |
#, no-wrap |
| 39 |
msgid "timer_create" |
| 40 |
msgstr "timer_create" |
| 41 |
|
| 42 |
#. type: TH |
| 43 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 44 |
#: opensuse-tumbleweed |
| 45 |
#, no-wrap |
| 46 |
msgid "2025-10-29" |
| 47 |
msgstr "29 octobre 2025" |
| 48 |
|
| 49 |
#. type: TH |
| 50 |
#: archlinux debian-unstable |
| 51 |
#, no-wrap |
| 52 |
msgid "Linux man-pages 6.18" |
| 53 |
msgstr "Pages du manuel de Linux 6.18" |
| 54 |
|
| 55 |
#. type: SH |
| 56 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 57 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 58 |
#, no-wrap |
| 59 |
msgid "NAME" |
| 60 |
msgstr "NOM" |
| 61 |
|
| 62 |
#. type: Plain text |
| 63 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 64 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 65 |
msgid "timer_create - create a POSIX per-process timer" |
| 66 |
msgstr "timer_create - Créer une minuterie POSIX pour un processus" |
| 67 |
|
| 68 |
#. type: SH |
| 69 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 70 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 71 |
#, no-wrap |
| 72 |
msgid "LIBRARY" |
| 73 |
msgstr "BIBLIOTHÈQUE" |
| 74 |
|
| 75 |
#. type: Plain text |
| 76 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 77 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 78 |
msgid "Real-time library (I<librt>,\\ I<-lrt>)" |
| 79 |
msgstr "Bibliothèque de temps réel (I<librt>,\\ I<-lrt>)" |
| 80 |
|
| 81 |
#. type: SH |
| 82 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 83 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 84 |
#, no-wrap |
| 85 |
msgid "SYNOPSIS" |
| 86 |
msgstr "SYNOPSIS" |
| 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 |
#, no-wrap |
| 92 |
msgid "" |
| 93 |
"B<#include E<lt>signal.hE<gt>> /* Definition of B<SIGEV_*> constants */\n" |
| 94 |
"B<#include E<lt>time.hE<gt>>\n" |
| 95 |
msgstr "" |
| 96 |
"B<#include E<lt>signal.hE<gt>> /* Définition des constantes B<SIGEV_*> */\n" |
| 97 |
"B<#include E<lt>time.hE<gt>>\n" |
| 98 |
|
| 99 |
#. type: Plain text |
| 100 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 101 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 102 |
#, no-wrap |
| 103 |
msgid "" |
| 104 |
"B<int timer_create(clockid_t >I<clockid>B<,>\n" |
| 105 |
"B< struct sigevent *_Nullable restrict >I<sevp>B<,>\n" |
| 106 |
"B< timer_t *restrict >I<timerid>B<);>\n" |
| 107 |
msgstr "" |
| 108 |
"B<int timer_create(clockid_t >I<clockid>B<,>\n" |
| 109 |
"B< struct sigevent *_Nullable restrict >I<sevp>B<,>\n" |
| 110 |
"B< timer_t *restrict >I<timerid>B<);>\n" |
| 111 |
|
| 112 |
#. type: Plain text |
| 113 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 114 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 115 |
msgid "" |
| 116 |
"Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):" |
| 117 |
msgstr "" |
| 118 |
"Exigences de macros de test de fonctionnalités pour la glibc (consulter " |
| 119 |
"B<feature_test_macros>(7)) :" |
| 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 "B<timer_create>():" |
| 125 |
msgstr "B<timer_create>() :" |
| 126 |
|
| 127 |
#. type: Plain text |
| 128 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 129 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 130 |
#, no-wrap |
| 131 |
msgid " _POSIX_C_SOURCE E<gt>= 199309L\n" |
| 132 |
msgstr " _POSIX_C_SOURCE E<gt>= 199309L\n" |
| 133 |
|
| 134 |
#. type: SH |
| 135 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 136 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 137 |
#, no-wrap |
| 138 |
msgid "DESCRIPTION" |
| 139 |
msgstr "DESCRIPTION" |
| 140 |
|
| 141 |
#. type: Plain text |
| 142 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 143 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 144 |
msgid "" |
| 145 |
"B<timer_create>() creates a new per-process interval timer. The ID of the " |
| 146 |
"new timer is returned in the buffer pointed to by I<timerid>, which must be " |
| 147 |
"a non-null pointer. This ID is unique within the process, until the timer " |
| 148 |
"is deleted. The new timer is initially disarmed." |
| 149 |
msgstr "" |
| 150 |
"B<timer_create>() crée une nouvelle minuterie d'intervalle par un processus. " |
| 151 |
"L'identifiant de cette nouvelle minuterie est renvoyé dans le tampon pointé " |
| 152 |
"par I<timerid>, qui doit être un pointeur différent de NULL. L'identifiant " |
| 153 |
"est unique pour le processus, jusqu'à ce que la minuterie soit détruite. La " |
| 154 |
"nouvelle minuterie est initialement désarmée." |
| 155 |
|
| 156 |
#. type: Plain text |
| 157 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 158 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 159 |
msgid "" |
| 160 |
"The I<clockid> argument specifies the clock that the new timer uses to " |
| 161 |
"measure time. It can be specified as one of the following values:" |
| 162 |
msgstr "" |
| 163 |
"Le paramètre I<clockid> indique l'horloge que la nouvelle minuterie utilise " |
| 164 |
"pour mesurer le temps. Il peut prendre une des valeurs suivantes :" |
| 165 |
|
| 166 |
#. type: TP |
| 167 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 168 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 169 |
#, no-wrap |
| 170 |
msgid "B<CLOCK_REALTIME>" |
| 171 |
msgstr "B<CLOCK_REALTIME>" |
| 172 |
|
| 173 |
#. type: Plain text |
| 174 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 175 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 176 |
msgid "A settable system-wide real-time clock." |
| 177 |
msgstr "Une horloge temps réel configurable à l'échelle du système." |
| 178 |
|
| 179 |
#. type: TP |
| 180 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 181 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 182 |
#, no-wrap |
| 183 |
msgid "B<CLOCK_MONOTONIC>" |
| 184 |
msgstr "B<CLOCK_MONOTONIC>" |
| 185 |
|
| 186 |
#. Note: the CLOCK_MONOTONIC_RAW clock added for clock_gettime() |
| 187 |
#. in Linux 2.6.28 is not supported for POSIX timers -- mtk, Feb 2009 |
| 188 |
#. type: Plain text |
| 189 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 190 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 191 |
msgid "" |
| 192 |
"A nonsettable monotonically increasing clock that measures time from some " |
| 193 |
"unspecified point in the past that does not change after system startup." |
| 194 |
msgstr "" |
| 195 |
"Une horloge non configurable, toujours croissante qui mesure le temps depuis " |
| 196 |
"un instant non spécifié dans le passé et qui ne change pas après le " |
| 197 |
"démarrage du système." |
| 198 |
|
| 199 |
#. type: TP |
| 200 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 201 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 202 |
#, no-wrap |
| 203 |
msgid "B<CLOCK_PROCESS_CPUTIME_ID> (since Linux 2.6.12)" |
| 204 |
msgstr "B<CLOCK_PROCESS_CPUTIME_ID> (depuis Linux 2.6.12)" |
| 205 |
|
| 206 |
#. type: Plain text |
| 207 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 208 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 209 |
msgid "" |
| 210 |
"A clock that measures (user and system) CPU time consumed by (all of the " |
| 211 |
"threads in) the calling process." |
| 212 |
msgstr "" |
| 213 |
"Une horloge qui mesure le temps CPU (utilisateur et système) consommé par le " |
| 214 |
"processus appelant (et tous ses threads)." |
| 215 |
|
| 216 |
#. type: TP |
| 217 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 218 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 219 |
#, no-wrap |
| 220 |
msgid "B<CLOCK_THREAD_CPUTIME_ID> (since Linux 2.6.12)" |
| 221 |
msgstr "B<CLOCK_THREAD_CPUTIME_ID> (depuis Linux 2.6.12)" |
| 222 |
|
| 223 |
#. The CLOCK_MONOTONIC_RAW that was added in Linux 2.6.28 can't be used |
| 224 |
#. to create a timer -- mtk, Feb 2009 |
| 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 |
"A clock that measures (user and system) CPU time consumed by the calling " |
| 230 |
"thread." |
| 231 |
msgstr "" |
| 232 |
"Une horloge qui mesure le temps CPU (utilisateur et système) consommé par le " |
| 233 |
"processus appelant." |
| 234 |
|
| 235 |
#. type: TP |
| 236 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 237 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 238 |
#, no-wrap |
| 239 |
msgid "B<CLOCK_BOOTTIME> (Since Linux 2.6.39)" |
| 240 |
msgstr "B<CLOCK_BOOTTIME> (depuis Linux 2.6.39)" |
| 241 |
|
| 242 |
#. commit 70a08cca1227dc31c784ec930099a4417a06e7d0 |
| 243 |
#. type: Plain text |
| 244 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 245 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 246 |
msgid "" |
| 247 |
"Like B<CLOCK_MONOTONIC>, this is a monotonically increasing clock. However, " |
| 248 |
"whereas the B<CLOCK_MONOTONIC> clock does not measure the time while a " |
| 249 |
"system is suspended, the B<CLOCK_BOOTTIME> clock does include the time " |
| 250 |
"during which the system is suspended. This is useful for applications that " |
| 251 |
"need to be suspend-aware. B<CLOCK_REALTIME> is not suitable for such " |
| 252 |
"applications, since that clock is affected by discontinuous changes to the " |
| 253 |
"system clock." |
| 254 |
msgstr "" |
| 255 |
"C'est une horloge toujours croissante comme B<CLOCK_MONOTONIC>. Cependant " |
| 256 |
"alors que l'horloge B<CLOCK_MONOTONIC> ne mesure pas le temps aussi " |
| 257 |
"longtemps que le système est suspendu, l'horloge B<CLOCK_BOOTTIME> inclut le " |
| 258 |
"temps pendant lequel le système est suspendu. Cela est utile pour les " |
| 259 |
"applications qui doivent être sensibles au temps de suspension. " |
| 260 |
"B<CLOCK_REALTIME> n'est pas adapté à ce type d'application dans la mesure où " |
| 261 |
"cette horloge est affectée par des modifications discontinues de l'horloge " |
| 262 |
"système." |
| 263 |
|
| 264 |
#. type: TP |
| 265 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 266 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 267 |
#, no-wrap |
| 268 |
msgid "B<CLOCK_REALTIME_ALARM> (since Linux 3.0)" |
| 269 |
msgstr "B<CLOCK_REALTIME_ALARM> (depuis Linux 3.0)" |
| 270 |
|
| 271 |
#. commit 9a7adcf5c6dea63d2e47e6f6d2f7a6c9f48b9337 |
| 272 |
#. type: Plain text |
| 273 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 274 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 275 |
msgid "" |
| 276 |
"This clock is like B<CLOCK_REALTIME>, but will wake the system if it is " |
| 277 |
"suspended. The caller must have the B<CAP_WAKE_ALARM> capability in order " |
| 278 |
"to set a timer against this clock." |
| 279 |
msgstr "" |
| 280 |
"Cette horloge se comporte comme B<CLOCK_REALTIME>, mais réveillera le " |
| 281 |
"système s'il est suspendu. L'appelant doit avoir la capacité " |
| 282 |
"B<CAP_WAKE_ALARM> afin de régler une minuterie utilisant cette horloge." |
| 283 |
|
| 284 |
#. type: TP |
| 285 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 286 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 287 |
#, no-wrap |
| 288 |
msgid "B<CLOCK_BOOTTIME_ALARM> (since Linux 3.0)" |
| 289 |
msgstr "B<CLOCK_BOOTTIME_ALARM> (depuis Linux 3.0)" |
| 290 |
|
| 291 |
#. commit 9a7adcf5c6dea63d2e47e6f6d2f7a6c9f48b9337 |
| 292 |
#. type: Plain text |
| 293 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 294 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 295 |
msgid "" |
| 296 |
"This clock is like B<CLOCK_BOOTTIME>, but will wake the system if it is " |
| 297 |
"suspended. The caller must have the B<CAP_WAKE_ALARM> capability in order " |
| 298 |
"to set a timer against this clock." |
| 299 |
msgstr "" |
| 300 |
"Cette horloge se comporte comme B<CLOCK_BOOTTIME>, mais réveillera le " |
| 301 |
"système s'il est suspendu. L'appelant doit avoir la capacité " |
| 302 |
"B<CAP_WAKE_ALARM> afin de régler une minuterie utilisant cette horloge." |
| 303 |
|
| 304 |
#. type: TP |
| 305 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 306 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 307 |
#, no-wrap |
| 308 |
msgid "B<CLOCK_TAI> (since Linux 3.10)" |
| 309 |
msgstr "B<CLOCK_TAI> (depuis Linux 3.10)" |
| 310 |
|
| 311 |
#. type: Plain text |
| 312 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 313 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 314 |
msgid "" |
| 315 |
"A system-wide clock derived from wall-clock time but counting leap seconds." |
| 316 |
msgstr "" |
| 317 |
"Horloge dérivée d'une pendule mais qui compte les secondes intercalaires." |
| 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 "See B<clock_getres>(2) for some further details on the above clocks." |
| 323 |
msgstr "" |
| 324 |
"Consultez B<clock_getres>(2) pour quelques détails supplémentaires sur les " |
| 325 |
"horloges mentionnées." |
| 326 |
|
| 327 |
#. type: Plain text |
| 328 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 329 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 330 |
msgid "" |
| 331 |
"As well as the above values, I<clockid> can be specified as the I<clockid> " |
| 332 |
"returned by a call to B<clock_getcpuclockid>(3) or " |
| 333 |
"B<pthread_getcpuclockid>(3)." |
| 334 |
msgstr "" |
| 335 |
"Comme pour les valeurs ci-dessus, I<clockid> peut être l'identifiant " |
| 336 |
"I<clockid> renvoyé par un appel à B<clock_getcpuclockid>(3) ou " |
| 337 |
"B<pthread_getcpuclockid>(3)." |
| 338 |
|
| 339 |
#. type: Plain text |
| 340 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 341 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 342 |
msgid "" |
| 343 |
"The I<sevp> argument points to a I<sigevent> structure that specifies how " |
| 344 |
"the caller should be notified when the timer expires. For the definition " |
| 345 |
"and general details of this structure, see B<sigevent>(3type)." |
| 346 |
msgstr "" |
| 347 |
"Le paramètre I<sevp> pointe vers une structure I<sigevent> qui indique " |
| 348 |
"comment l'appelant devrait être notifié quand la minuterie expire. Pour la " |
| 349 |
"définition et des détails généraux sur cette structure, consultez " |
| 350 |
"B<sigevent>(3type)." |
| 351 |
|
| 352 |
#. type: Plain text |
| 353 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 354 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 355 |
msgid "The I<sevp.sigev_notify> field can have the following values:" |
| 356 |
msgstr "Le champ I<sevp.sigev_notify> peut avoir les valeurs suivantes\\ :" |
| 357 |
|
| 358 |
#. type: TP |
| 359 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 360 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 361 |
#, no-wrap |
| 362 |
msgid "B<SIGEV_NONE>" |
| 363 |
msgstr "B<SIGEV_NONE>" |
| 364 |
|
| 365 |
#. type: Plain text |
| 366 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 367 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 368 |
msgid "" |
| 369 |
"Don't asynchronously notify when the timer expires. Progress of the timer " |
| 370 |
"can be monitored using B<timer_gettime>(2)." |
| 371 |
msgstr "" |
| 372 |
"Ne pas notifier de façon asynchrone quand la minuterie expire. La " |
| 373 |
"progression de la minuterie peut être observée en utilisant " |
| 374 |
"B<timer_gettime>(2)." |
| 375 |
|
| 376 |
#. type: TP |
| 377 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 378 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 379 |
#, no-wrap |
| 380 |
msgid "B<SIGEV_SIGNAL>" |
| 381 |
msgstr "B<SIGEV_SIGNAL>" |
| 382 |
|
| 383 |
#. type: Plain text |
| 384 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 385 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 386 |
msgid "" |
| 387 |
"Upon timer expiration, generate the signal I<sigev_signo> for the process. " |
| 388 |
"See B<sigevent>(3type) for general details. The I<si_code> field of the " |
| 389 |
"I<siginfo_t> structure will be set to B<SI_TIMER>. At any point in time, at " |
| 390 |
"most one signal is queued to the process for a given timer; see " |
| 391 |
"B<timer_getoverrun>(2) for more details." |
| 392 |
msgstr "" |
| 393 |
"Lors de l'expiration de la minuterie, produire le signal I<sigev_signo> pour " |
| 394 |
"le processus. Consultez B<sigevent>(3type) pour des détails généraux. Le " |
| 395 |
"champ I<si_code> de la structure I<siginfo_t> sera mis à B<SI_TIMER>. À tout " |
| 396 |
"moment, au plus un signal est mis en attente pour le processus pour une " |
| 397 |
"horloge donnée ; consultez B<timer_getoverrun>(2) pour plus de détails." |
| 398 |
|
| 399 |
#. type: TP |
| 400 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 401 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 402 |
#, no-wrap |
| 403 |
msgid "B<SIGEV_THREAD>" |
| 404 |
msgstr "B<SIGEV_THREAD>" |
| 405 |
|
| 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 |
"Upon timer expiration, invoke I<sigev_notify_function> as if it were the " |
| 411 |
"start function of a new thread. See B<sigevent>(3type) for details." |
| 412 |
msgstr "" |
| 413 |
"Lors de l'expiration de la minuterie, appeler I<sigev_notify_function> comme " |
| 414 |
"si elle était la fonction de démarrage d'un nouveau thread. Consultez " |
| 415 |
"B<sigevent>(3type) pour plus de détails." |
| 416 |
|
| 417 |
#. type: TP |
| 418 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 419 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 420 |
#, no-wrap |
| 421 |
msgid "B<SIGEV_THREAD_ID> (Linux-specific)" |
| 422 |
msgstr "B<SIGEV_THREAD_ID> (spécifique à Linux)" |
| 423 |
|
| 424 |
#. type: Plain text |
| 425 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 426 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 427 |
msgid "" |
| 428 |
"As for B<SIGEV_SIGNAL>, but the signal is targeted at the thread whose ID is " |
| 429 |
"given in I<sigev_notify_thread_id>, which must be a thread in the same " |
| 430 |
"process as the caller. The I<sigev_notify_thread_id> field specifies a " |
| 431 |
"kernel thread ID, that is, the value returned by B<clone>(2) or " |
| 432 |
"B<gettid>(2). This flag is intended only for use by threading libraries." |
| 433 |
msgstr "" |
| 434 |
"Comme B<SIGEV_SIGNAL>, mais le signal est envoyé au thread dont " |
| 435 |
"l'identifiant est fourni dans I<sigev_notify_thread_id>, qui doit être un " |
| 436 |
"thread du même processus que le thread appelant. Le champ " |
| 437 |
"I<sigev_notify_thread_id> indique un identifiant de thread noyau, c'est-à-" |
| 438 |
"dire la valeur renvoyée par B<clone>(2) ou B<gettid>(2). Ce drapeau n'est " |
| 439 |
"destiné à être utilisé que par la bibliothèque des threads." |
| 440 |
|
| 441 |
#. type: Plain text |
| 442 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 443 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 444 |
msgid "" |
| 445 |
"Specifying I<sevp> as NULL is equivalent to specifying a pointer to a " |
| 446 |
"I<sigevent> structure in which I<sigev_notify> is B<SIGEV_SIGNAL>, " |
| 447 |
"I<sigev_signo> is B<SIGALRM>, and I<sigev_value.sival_int> is the timer ID." |
| 448 |
msgstr "" |
| 449 |
"Une valeur NULL pour I<sevp> équivaut à indiquer un pointeur vers une " |
| 450 |
"structure I<sigevent> dans laquelle I<sigev_notify> vaut B<SIGEV_SIGNAL>, " |
| 451 |
"I<sigev_signo> vaut B<SIGALRM> et I<sigev_value.sival_int> vaut " |
| 452 |
"l'identifiant de l'horloge." |
| 453 |
|
| 454 |
#. type: SH |
| 455 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 456 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 457 |
#, no-wrap |
| 458 |
msgid "RETURN VALUE" |
| 459 |
msgstr "VALEUR RENVOYÉE" |
| 460 |
|
| 461 |
#. type: Plain text |
| 462 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 463 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 464 |
msgid "" |
| 465 |
"On success, B<timer_create>() returns 0, and the ID of the new timer is " |
| 466 |
"placed in I<*timerid>. On failure, -1 is returned, and I<errno> is set to " |
| 467 |
"indicate the error." |
| 468 |
msgstr "" |
| 469 |
"S'il réussit, B<timer_create>() renvoie B<0> et l'identifiant de la nouvelle " |
| 470 |
"minuterie est placé dans I<*timerid>. En cas d'erreur, il renvoie B<-1> et " |
| 471 |
"I<errno> est défini pour indiquer l'erreur." |
| 472 |
|
| 473 |
#. type: SH |
| 474 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 475 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 476 |
#, no-wrap |
| 477 |
msgid "ERRORS" |
| 478 |
msgstr "ERREURS" |
| 479 |
|
| 480 |
#. type: TP |
| 481 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 482 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 483 |
#, no-wrap |
| 484 |
msgid "B<EAGAIN>" |
| 485 |
msgstr "B<EAGAIN>" |
| 486 |
|
| 487 |
#. type: Plain text |
| 488 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 489 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 490 |
msgid "Temporary error during kernel allocation of timer structures." |
| 491 |
msgstr "" |
| 492 |
"Erreur temporaire lors de l'allocation de la structure de la minuterie par " |
| 493 |
"le noyau." |
| 494 |
|
| 495 |
#. type: TP |
| 496 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 497 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 498 |
#, no-wrap |
| 499 |
msgid "B<EINVAL>" |
| 500 |
msgstr "B<EINVAL>" |
| 501 |
|
| 502 |
#. type: Plain text |
| 503 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 504 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 505 |
msgid "" |
| 506 |
"Clock ID, I<sigev_notify>, I<sigev_signo>, or I<sigev_notify_thread_id> is " |
| 507 |
"invalid." |
| 508 |
msgstr "" |
| 509 |
"L'identifiant d'horloge, I<sigev_notify>, I<sigev_signo> ou " |
| 510 |
"I<sigev_notify_thread_id> n'est pas valable." |
| 511 |
|
| 512 |
#. type: TP |
| 513 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 514 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 515 |
#, no-wrap |
| 516 |
msgid "B<ENOMEM>" |
| 517 |
msgstr "B<ENOMEM>" |
| 518 |
|
| 519 |
#. glibc layer: malloc() |
| 520 |
#. type: Plain text |
| 521 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 522 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 523 |
msgid "Could not allocate memory." |
| 524 |
msgstr "La mémoire n’a pu être allouée." |
| 525 |
|
| 526 |
#. type: TP |
| 527 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 528 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 529 |
#, no-wrap |
| 530 |
msgid "B<ENOTSUP>" |
| 531 |
msgstr "B<ENOTSUP>" |
| 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 "The kernel does not support creating a timer against this I<clockid>." |
| 537 |
msgstr "" |
| 538 |
"Le noyau ne gère pas la création d'une minuterie utilisant ce I<clockid>." |
| 539 |
|
| 540 |
#. type: TP |
| 541 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 542 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 543 |
#, no-wrap |
| 544 |
msgid "B<EPERM>" |
| 545 |
msgstr "B<EPERM>" |
| 546 |
|
| 547 |
#. type: Plain text |
| 548 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 549 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 550 |
msgid "" |
| 551 |
"I<clockid> was B<CLOCK_REALTIME_ALARM> or B<CLOCK_BOOTTIME_ALARM> but the " |
| 552 |
"caller did not have the B<CAP_WAKE_ALARM> capability." |
| 553 |
msgstr "" |
| 554 |
"I<clockid> était B<CLOCK_REALTIME_ALARM> ou B<CLOCK_BOOTTIME_ALARM>, mais " |
| 555 |
"l'appelant n'a pas la capacité B<CAP_WAKE_ALARM>." |
| 556 |
|
| 557 |
#. type: SH |
| 558 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 559 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 560 |
#, no-wrap |
| 561 |
msgid "VERSIONS" |
| 562 |
msgstr "VERSIONS" |
| 563 |
|
| 564 |
#. type: SS |
| 565 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 566 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 567 |
#, no-wrap |
| 568 |
msgid "C library/kernel differences" |
| 569 |
msgstr "Différences entre bibliothèque C et noyau" |
| 570 |
|
| 571 |
#. See nptl/sysdeps/unix/sysv/linux/timer_create.c |
| 572 |
#. type: Plain text |
| 573 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 574 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 575 |
msgid "" |
| 576 |
"Part of the implementation of the POSIX timers API is provided by glibc. In " |
| 577 |
"particular:" |
| 578 |
msgstr "" |
| 579 |
"Une partie de l'implémentation des API de minuteries POSIX est fournie par " |
| 580 |
"la glibc. En particulier :" |
| 581 |
|
| 582 |
#. type: IP |
| 583 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 584 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 585 |
#, no-wrap |
| 586 |
msgid "\\[bu]" |
| 587 |
msgstr "-" |
| 588 |
|
| 589 |
#. type: Plain text |
| 590 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 591 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 592 |
msgid "" |
| 593 |
"Much of the functionality for B<SIGEV_THREAD> is implemented within glibc, " |
| 594 |
"rather than the kernel. (This is necessarily so, since the thread involved " |
| 595 |
"in handling the notification is one that must be managed by the C library " |
| 596 |
"POSIX threads implementation.) Although the notification delivered to the " |
| 597 |
"process is via a thread, internally the NPTL implementation uses a " |
| 598 |
"I<sigev_notify> value of B<SIGEV_THREAD_ID> along with a real-time signal " |
| 599 |
"that is reserved by the implementation (see B<nptl>(7))." |
| 600 |
msgstr "" |
| 601 |
"L'essentiel des fonctionnalités pour B<SIGEV_THREAD> est implémenté dans la " |
| 602 |
"glibc plutôt que dans le noyau. (C'est forcément ainsi dans la mesure où le " |
| 603 |
"thread impliqué dans la gestion de la notification est un de ceux qui doit " |
| 604 |
"être géré par l'implémentation des threads POSIX de la bibliothèque C.) Bien " |
| 605 |
"que la notification fournie par le processus est faite au moyen d'un thread, " |
| 606 |
"en interne l'implémentation de NPTL utilise une valeur I<sigev_notify> de " |
| 607 |
"B<SIGEV_THREAD_ID> en même temps qu'un signal en temps réel qui est réservé " |
| 608 |
"par l'implémentation (consultez B<nptl>(7))." |
| 609 |
|
| 610 |
#. type: Plain text |
| 611 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 612 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 613 |
msgid "" |
| 614 |
"The implementation of the default case where I<evp> is NULL is handled " |
| 615 |
"inside glibc, which invokes the underlying system call with a suitably " |
| 616 |
"populated I<sigevent> structure." |
| 617 |
msgstr "" |
| 618 |
"L'implémentation du cas par défaut où I<evp> est NULL est gérée dans glibc " |
| 619 |
"qui invoque l'appel système sous-jacent avec une structure I<sigevent> " |
| 620 |
"remplie de façon appropriée." |
| 621 |
|
| 622 |
#. See the glibc source file kernel-posix-timers.h for the structure |
| 623 |
#. that glibc uses to map user-space timer IDs to kernel timer IDs |
| 624 |
#. The kernel-level timer ID is exposed via siginfo.si_tid. |
| 625 |
#. type: Plain text |
| 626 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 627 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 628 |
msgid "" |
| 629 |
"The timer IDs presented at user level are maintained by glibc, which maps " |
| 630 |
"these IDs to the timer IDs employed by the kernel." |
| 631 |
msgstr "" |
| 632 |
"Les identifiants de minuteries fournis au niveau utilisateur sont maintenus " |
| 633 |
"par la glibc, qui fait la correspondance avec les identifiants utilisés par " |
| 634 |
"le noyau." |
| 635 |
|
| 636 |
#. type: SH |
| 637 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 638 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 639 |
#, no-wrap |
| 640 |
msgid "STANDARDS" |
| 641 |
msgstr "NORMES" |
| 642 |
|
| 643 |
#. type: Plain text |
| 644 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 645 |
#: opensuse-tumbleweed |
| 646 |
msgid "POSIX.1-2024." |
| 647 |
msgstr "POSIX.1-2024." |
| 648 |
|
| 649 |
#. type: SH |
| 650 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 651 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 652 |
#, no-wrap |
| 653 |
msgid "HISTORY" |
| 654 |
msgstr "HISTORIQUE" |
| 655 |
|
| 656 |
#. type: Plain text |
| 657 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 658 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 659 |
msgid "Linux 2.6. POSIX.1-2001." |
| 660 |
msgstr "Linux 2.6. POSIX.1-2001." |
| 661 |
|
| 662 |
#. glibc commit 93a78ac437ba44f493333d7e2a4b0249839ce460 |
| 663 |
#. type: Plain text |
| 664 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 665 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 666 |
msgid "" |
| 667 |
"Prior to Linux 2.6, glibc provided an incomplete user-space implementation " |
| 668 |
"(B<CLOCK_REALTIME> timers only) using POSIX threads, and before glibc 2.17, " |
| 669 |
"the implementation falls back to this technique on systems running kernels " |
| 670 |
"older than Linux 2.6." |
| 671 |
msgstr "" |
| 672 |
"Avant Linux 2.6, la glibc fournissait une implémentation incomplète en " |
| 673 |
"espace utilisateur (les minuteries B<CLOCK_REALTIME> uniquement) en " |
| 674 |
"utilisant les threads POSIX, et avant la glibc 2.17, l'implémentation se " |
| 675 |
"replie sur cette technique sur les systèmes ayant un noyau antérieur à " |
| 676 |
"Linux 2.6." |
| 677 |
|
| 678 |
#. type: SH |
| 679 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 680 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 681 |
#, no-wrap |
| 682 |
msgid "NOTES" |
| 683 |
msgstr "NOTES" |
| 684 |
|
| 685 |
#. type: Plain text |
| 686 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 687 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 688 |
msgid "A program may create multiple interval timers using B<timer_create>()." |
| 689 |
msgstr "" |
| 690 |
"Un programme peut créer plusieurs minuteries d'intervalle en utilisant " |
| 691 |
"B<timer_create>()." |
| 692 |
|
| 693 |
#. type: Plain text |
| 694 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 695 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 696 |
msgid "" |
| 697 |
"Timers are not inherited by the child of a B<fork>(2), and are disarmed and " |
| 698 |
"deleted during an B<execve>(2)." |
| 699 |
msgstr "" |
| 700 |
"Les minuteries ne sont pas héritées par l'enfant d'un B<fork>(2) et sont " |
| 701 |
"désarmées et détruites lors d'un appel système B<execve>(2)." |
| 702 |
|
| 703 |
#. type: Plain text |
| 704 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 705 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 706 |
msgid "" |
| 707 |
"The kernel preallocates a \"queued real-time signal\" for each timer created " |
| 708 |
"using B<timer_create>(). Consequently, the number of timers is limited by " |
| 709 |
"the B<RLIMIT_SIGPENDING> resource limit (see B<setrlimit>(2))." |
| 710 |
msgstr "" |
| 711 |
"Le noyau alloue par avance un « signal temps réel en attente » pour chaque " |
| 712 |
"minuterie créée par B<timer_create>(). De ce fait, le nombre de minuteries " |
| 713 |
"est limité par la limite de ressources B<RLIMIT_SIGPENDING> (voir " |
| 714 |
"B<setrlimit>(2))." |
| 715 |
|
| 716 |
#. type: Plain text |
| 717 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 718 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 719 |
msgid "" |
| 720 |
"The timers created by B<timer_create>() are commonly known as \"POSIX " |
| 721 |
"(interval) timers\". The POSIX timers API consists of the following " |
| 722 |
"interfaces:" |
| 723 |
msgstr "" |
| 724 |
"Les minuteries créées par B<timer_create>() sont communément appelées " |
| 725 |
"« minuteries (d'intervalle) POSIX ». L'API des minuteries POSIX est " |
| 726 |
"constituée des interfaces suivantes :" |
| 727 |
|
| 728 |
#. type: TP |
| 729 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 730 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 731 |
#, no-wrap |
| 732 |
msgid "B<timer_create>()" |
| 733 |
msgstr "B<timer_create>()" |
| 734 |
|
| 735 |
#. type: Plain text |
| 736 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 737 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 738 |
msgid "Create a timer." |
| 739 |
msgstr "Créer une minuterie." |
| 740 |
|
| 741 |
#. type: TP |
| 742 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 743 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 744 |
#, no-wrap |
| 745 |
msgid "B<timer_settime>(2)" |
| 746 |
msgstr "B<timer_settime>(2)" |
| 747 |
|
| 748 |
#. type: Plain text |
| 749 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 750 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 751 |
msgid "Arm (start) or disarm (stop) a timer." |
| 752 |
msgstr "Armer (démarrer) ou désarmer (stopper) une minuterie." |
| 753 |
|
| 754 |
#. type: TP |
| 755 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 756 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 757 |
#, no-wrap |
| 758 |
msgid "B<timer_gettime>(2)" |
| 759 |
msgstr "B<timer_gettime>(2)" |
| 760 |
|
| 761 |
#. type: Plain text |
| 762 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 763 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 764 |
msgid "" |
| 765 |
"Fetch the time remaining until the next expiration of a timer, along with " |
| 766 |
"the interval setting of the timer." |
| 767 |
msgstr "" |
| 768 |
"Récupérer le temps restant jusqu'à l'expiration suivante d'une minuterie, en " |
| 769 |
"plus de l'intervalle de la minuterie." |
| 770 |
|
| 771 |
#. type: TP |
| 772 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 773 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 774 |
#, no-wrap |
| 775 |
msgid "B<timer_getoverrun>(2)" |
| 776 |
msgstr "B<timer_getoverrun>(2)" |
| 777 |
|
| 778 |
#. type: Plain text |
| 779 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 780 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 781 |
msgid "Return the overrun count for the last timer expiration." |
| 782 |
msgstr "" |
| 783 |
"Renvoyer le décompte de dépassements pour la dernière expiration de la " |
| 784 |
"minuterie." |
| 785 |
|
| 786 |
#. type: TP |
| 787 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 788 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 789 |
#, no-wrap |
| 790 |
msgid "B<timer_delete>(2)" |
| 791 |
msgstr "B<timer_delete>(2)" |
| 792 |
|
| 793 |
#. type: Plain text |
| 794 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 795 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 796 |
msgid "Disarm and delete a timer." |
| 797 |
msgstr "Désarmer et détruire une minuterie." |
| 798 |
|
| 799 |
#. type: Plain text |
| 800 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 801 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 802 |
msgid "" |
| 803 |
"Since Linux 3.10, the I</proc/>pidI</timers> file can be used to list the " |
| 804 |
"POSIX timers for the process with PID I<pid>. See B<proc>(5) for further " |
| 805 |
"information." |
| 806 |
msgstr "" |
| 807 |
"Depuis Linux 3.10, le fichier I</proc/>pidI</timers> peut être utilisé pour " |
| 808 |
"lister les minuteries POSIX du processus de PID I<pid>. Consultez B<proc>(5) " |
| 809 |
"pour plus de détails." |
| 810 |
|
| 811 |
#. baa73d9e478ff32d62f3f9422822b59dd9a95a21 |
| 812 |
#. type: Plain text |
| 813 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 814 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 815 |
msgid "" |
| 816 |
"Since Linux 4.10, support for POSIX timers is a configurable option that is " |
| 817 |
"enabled by default. Kernel support can be disabled via the " |
| 818 |
"B<CONFIG_POSIX_TIMERS> option." |
| 819 |
msgstr "" |
| 820 |
"Depuis Linux 4.10, la prise en charge des minuteries de POSIX est une option " |
| 821 |
"configurable qui est activée par défaut. La prise en charge du noyau peut " |
| 822 |
"être désactivée au moyen de l'option B<CONFIG_POSIX_TIMERS>." |
| 823 |
|
| 824 |
#. type: SH |
| 825 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 826 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 827 |
#, no-wrap |
| 828 |
msgid "EXAMPLES" |
| 829 |
msgstr "EXEMPLES" |
| 830 |
|
| 831 |
#. type: Plain text |
| 832 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 833 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 834 |
msgid "" |
| 835 |
"The program below takes two arguments: a sleep period in seconds, and a " |
| 836 |
"timer frequency in nanoseconds. The program establishes a handler for the " |
| 837 |
"signal it uses for the timer, blocks that signal, creates and arms a timer " |
| 838 |
"that expires with the given frequency, sleeps for the specified number of " |
| 839 |
"seconds, and then unblocks the timer signal. Assuming that the timer " |
| 840 |
"expired at least once while the program slept, the signal handler will be " |
| 841 |
"invoked, and the handler displays some information about the timer " |
| 842 |
"notification. The program terminates after one invocation of the signal " |
| 843 |
"handler." |
| 844 |
msgstr "" |
| 845 |
"Le programme ci-dessous reçoit deux paramètres : une durée de sommeil, en " |
| 846 |
"seconde, et une fréquence de minuterie en nanosecondes. Le programme établit " |
| 847 |
"un gestionnaire pour le signal qu'il utilise pour la minuterie, puis il " |
| 848 |
"bloque le signal, crée et arme une minuterie qui expire à la fréquence " |
| 849 |
"donnée, s'endort pendant la durée indiquée et enfin débloque le signal de la " |
| 850 |
"minuterie. En supposant que la minuterie ait expiré au moins une fois " |
| 851 |
"pendant le sommeil du programme, le gestionnaire de signal sera appelé et le " |
| 852 |
"gestionnaire de signal affiche des informations concernant la notification " |
| 853 |
"de la minuterie. Le programme se termine après un appel au gestionnaire de " |
| 854 |
"signal." |
| 855 |
|
| 856 |
#. type: Plain text |
| 857 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 858 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 859 |
msgid "" |
| 860 |
"In the following example run, the program sleeps for 1 second, after " |
| 861 |
"creating a timer that has a frequency of 100 nanoseconds. By the time the " |
| 862 |
"signal is unblocked and delivered, there have been around ten million " |
| 863 |
"overruns." |
| 864 |
msgstr "" |
| 865 |
"Dans l'exemple d'exécution qui suit, le programme s'endort pour une seconde " |
| 866 |
"après avoir créé une minuterie de fréquence de 100 nanosecondes. Le temps " |
| 867 |
"que le signal soit débloqué et fourni, il y a eu environ dix millions de " |
| 868 |
"dépassements." |
| 869 |
|
| 870 |
#. type: Plain text |
| 871 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 872 |
#: opensuse-tumbleweed |
| 873 |
#, no-wrap |
| 874 |
msgid "" |
| 875 |
"$B< ./a.out 1 100>;\n" |
| 876 |
"Establishing handler for signal 34\n" |
| 877 |
"Blocking signal 34\n" |
| 878 |
"timer ID is 0x804c008\n" |
| 879 |
"Sleeping for 1 seconds\n" |
| 880 |
"Unblocking signal 34\n" |
| 881 |
"Caught signal 34\n" |
| 882 |
" sival_ptr = 0xbfb174f4; *sival_ptr = 0x804c008\n" |
| 883 |
" overrun count = 10004886\n" |
| 884 |
msgstr "" |
| 885 |
"$B< ./a.out 1 100>;\n" |
| 886 |
"Establishing handler for signal 34\n" |
| 887 |
"Blocking signal 34\n" |
| 888 |
"timer ID is 0x804c008\n" |
| 889 |
"Sleeping for 1 seconds\n" |
| 890 |
"Unblocking signal 34\n" |
| 891 |
"Caught signal 34\n" |
| 892 |
" sival_ptr = 0xbfb174f4; *sival_ptr = 0x804c008\n" |
| 893 |
" overrun count = 10004886\n" |
| 894 |
|
| 895 |
#. type: SS |
| 896 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 897 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 898 |
#, no-wrap |
| 899 |
msgid "Program source" |
| 900 |
msgstr "Source du programme" |
| 901 |
|
| 902 |
#. type: Plain text |
| 903 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 904 |
#: opensuse-tumbleweed |
| 905 |
#, no-wrap |
| 906 |
msgid "" |
| 907 |
"#include E<lt>err.hE<gt>\n" |
| 908 |
"#include E<lt>signal.hE<gt>\n" |
| 909 |
"#include E<lt>stdint.hE<gt>\n" |
| 910 |
"#include E<lt>stdio.hE<gt>\n" |
| 911 |
"#include E<lt>stdlib.hE<gt>\n" |
| 912 |
"#include E<lt>time.hE<gt>\n" |
| 913 |
"#include E<lt>unistd.hE<gt>\n" |
| 914 |
"\\&\n" |
| 915 |
"#define CLOCKID CLOCK_REALTIME\n" |
| 916 |
"#define SIG SIGRTMIN\n" |
| 917 |
"\\&\n" |
| 918 |
"static void\n" |
| 919 |
"print_siginfo(siginfo_t *si)\n" |
| 920 |
"{\n" |
| 921 |
" int or;\n" |
| 922 |
" timer_t *tidp;\n" |
| 923 |
"\\&\n" |
| 924 |
" tidp = si-E<gt>si_value.sival_ptr;\n" |
| 925 |
"\\&\n" |
| 926 |
" printf(\" sival_ptr = %p; \", si-E<gt>si_value.sival_ptr);\n" |
| 927 |
" printf(\" *sival_ptr = %#jx\\[rs]n\", (uintmax_t) *tidp);\n" |
| 928 |
"\\&\n" |
| 929 |
" or = timer_getoverrun(*tidp);\n" |
| 930 |
" if (or == -1)\n" |
| 931 |
" err(EXIT_FAILURE, \"timer_getoverrun\");\n" |
| 932 |
"\\&\n" |
| 933 |
" printf(\" overrun count = %d\\[rs]n\", or);\n" |
| 934 |
"}\n" |
| 935 |
"\\&\n" |
| 936 |
"static void\n" |
| 937 |
"handler(int sig, siginfo_t *si, void *uc)\n" |
| 938 |
"{\n" |
| 939 |
" /* Note: calling printf() from a signal handler is not safe\n" |
| 940 |
" (and should not be done in production programs), since\n" |
| 941 |
" printf() is not async-signal-safe; see signal-safety(7).\n" |
| 942 |
" Nevertheless, we use printf() here as a simple way of\n" |
| 943 |
" showing that the handler was called. */\n" |
| 944 |
"\\&\n" |
| 945 |
" printf(\"Caught signal %d\\[rs]n\", sig);\n" |
| 946 |
" print_siginfo(si);\n" |
| 947 |
" signal(sig, SIG_IGN);\n" |
| 948 |
"}\n" |
| 949 |
"\\&\n" |
| 950 |
"int\n" |
| 951 |
"main(int argc, char *argv[])\n" |
| 952 |
"{\n" |
| 953 |
" timer_t timerid;\n" |
| 954 |
" sigset_t mask;\n" |
| 955 |
" long long freq_nanosecs;\n" |
| 956 |
" struct sigevent sev;\n" |
| 957 |
" struct sigaction sa;\n" |
| 958 |
" struct itimerspec its;\n" |
| 959 |
"\\&\n" |
| 960 |
" if (argc != 3) {\n" |
| 961 |
" fprintf(stderr, \"Usage: %s E<lt>sleep-secsE<gt> E<lt>freq-nanosecsE<gt>\\[rs]n\",\n" |
| 962 |
" argv[0]);\n" |
| 963 |
" exit(EXIT_FAILURE);\n" |
| 964 |
" }\n" |
| 965 |
"\\&\n" |
| 966 |
" /* Establish handler for timer signal. */\n" |
| 967 |
"\\&\n" |
| 968 |
" printf(\"Establishing handler for signal %d\\[rs]n\", SIG);\n" |
| 969 |
" sa.sa_flags = SA_SIGINFO;\n" |
| 970 |
" sa.sa_sigaction = handler;\n" |
| 971 |
" sigemptyset(&sa.sa_mask);\n" |
| 972 |
" if (sigaction(SIG, &sa, NULL) == -1)\n" |
| 973 |
" err(EXIT_FAILURE, \"sigaction\");\n" |
| 974 |
"\\&\n" |
| 975 |
" /* Block timer signal temporarily. */\n" |
| 976 |
"\\&\n" |
| 977 |
" printf(\"Blocking signal %d\\[rs]n\", SIG);\n" |
| 978 |
" sigemptyset(&mask);\n" |
| 979 |
" sigaddset(&mask, SIG);\n" |
| 980 |
" if (sigprocmask(SIG_SETMASK, &mask, NULL) == -1)\n" |
| 981 |
" err(EXIT_FAILURE, \"sigprocmask\");\n" |
| 982 |
"\\&\n" |
| 983 |
" /* Create the timer. */\n" |
| 984 |
"\\&\n" |
| 985 |
" sev.sigev_notify = SIGEV_SIGNAL;\n" |
| 986 |
" sev.sigev_signo = SIG;\n" |
| 987 |
" sev.sigev_value.sival_ptr = &timerid;\n" |
| 988 |
" if (timer_create(CLOCKID, &sev, &timerid) == -1)\n" |
| 989 |
" err(EXIT_FAILURE, \"timer_create\");\n" |
| 990 |
"\\&\n" |
| 991 |
" printf(\"timer ID is %#jx\\[rs]n\", (uintmax_t) timerid);\n" |
| 992 |
"\\&\n" |
| 993 |
" /* Start the timer. */\n" |
| 994 |
"\\&\n" |
| 995 |
" freq_nanosecs = atoll(argv[2]);\n" |
| 996 |
" its.it_value.tv_sec = freq_nanosecs / 1000000000;\n" |
| 997 |
" its.it_value.tv_nsec = freq_nanosecs % 1000000000;\n" |
| 998 |
" its.it_interval.tv_sec = its.it_value.tv_sec;\n" |
| 999 |
" its.it_interval.tv_nsec = its.it_value.tv_nsec;\n" |
| 1000 |
"\\&\n" |
| 1001 |
" if (timer_settime(timerid, 0, &its, NULL) == -1)\n" |
| 1002 |
" err(EXIT_FAILURE, \"timer_settime\");\n" |
| 1003 |
"\\&\n" |
| 1004 |
" /* Sleep for a while; meanwhile, the timer may expire\n" |
| 1005 |
" multiple times. */\n" |
| 1006 |
"\\&\n" |
| 1007 |
" printf(\"Sleeping for %d seconds\\[rs]n\", atoi(argv[1]));\n" |
| 1008 |
" sleep(atoi(argv[1]));\n" |
| 1009 |
"\\&\n" |
| 1010 |
" /* Unlock the timer signal, so that timer notification\n" |
| 1011 |
" can be delivered. */\n" |
| 1012 |
"\\&\n" |
| 1013 |
" printf(\"Unblocking signal %d\\[rs]n\", SIG);\n" |
| 1014 |
" if (sigprocmask(SIG_UNBLOCK, &mask, NULL) == -1)\n" |
| 1015 |
" err(EXIT_FAILURE, \"sigprocmask\");\n" |
| 1016 |
"\\&\n" |
| 1017 |
" exit(EXIT_SUCCESS);\n" |
| 1018 |
"}\n" |
| 1019 |
msgstr "" |
| 1020 |
"#include E<lt>err.hE<gt>\n" |
| 1021 |
"#include E<lt>signal.hE<gt>\n" |
| 1022 |
"#include E<lt>stdint.hE<gt>\n" |
| 1023 |
"#include E<lt>stdio.hE<gt>\n" |
| 1024 |
"#include E<lt>stdlib.hE<gt>\n" |
| 1025 |
"#include E<lt>time.hE<gt>\n" |
| 1026 |
"#include E<lt>unistd.hE<gt>\n" |
| 1027 |
"\\&\n" |
| 1028 |
"#define CLOCKID CLOCK_REALTIME\n" |
| 1029 |
"#define SIG SIGRTMIN\n" |
| 1030 |
"\\&\n" |
| 1031 |
"static void\n" |
| 1032 |
"print_siginfo(siginfo_t *si)\n" |
| 1033 |
"{\n" |
| 1034 |
" int or;\n" |
| 1035 |
" timer_t *tidp;\n" |
| 1036 |
"\\&\n" |
| 1037 |
" tidp = si-E<gt>si_value.sival_ptr;\n" |
| 1038 |
"\\&\n" |
| 1039 |
" printf(\" sival_ptr = %p; \", si-E<gt>si_value.sival_ptr);\n" |
| 1040 |
" printf(\" *sival_ptr = %#jx\\[rs]n\", (uintmax_t) *tidp);\n" |
| 1041 |
"\\&\n" |
| 1042 |
" or = timer_getoverrun(*tidp);\n" |
| 1043 |
" if (or == -1)\n" |
| 1044 |
" (EXIT_FAILURE, \"timer_getoverrun\");\n" |
| 1045 |
"\\&\n" |
| 1046 |
" printf(\" overrun count = %d\\[rs]n\", or);\n" |
| 1047 |
"}\n" |
| 1048 |
"\\&\n" |
| 1049 |
"static void\n" |
| 1050 |
"handler(int sig, siginfo_t *si, void *uc)\n" |
| 1051 |
"{\n" |
| 1052 |
" /* Remarque : l'appel printf() à partir d'un gestionnaire de signal\n" |
| 1053 |
" n'est pas strictement correct (et ne devrait pas être utilisé en\n" |
| 1054 |
" production) dans la mesure où printf() n'est pas sûr dans un\n" |
| 1055 |
" contexte de signal asynchrone ; consultez signal(7).\n" |
| 1056 |
" Néanmoins, printf() est utilisé ici comme une manière simple de\n" |
| 1057 |
" montrer que le gestionnaire a été appelé. */\n" |
| 1058 |
"\\&\n" |
| 1059 |
" printf(\"Caught signal %d\\[rs]n\", sig);\n" |
| 1060 |
" print_siginfo(si);\n" |
| 1061 |
" signal(sig, SIG_IGN);\n" |
| 1062 |
"}\n" |
| 1063 |
"\\&\n" |
| 1064 |
"int\n" |
| 1065 |
"main(int argc, char *argv[])\n" |
| 1066 |
"{\n" |
| 1067 |
" timer_t timerid;\n" |
| 1068 |
" sigset_t mask;\n" |
| 1069 |
" long long freq_nanosecs;\n" |
| 1070 |
" struct sigevent sev;\n" |
| 1071 |
" struct sigaction sa;\n" |
| 1072 |
" struct itimerspec its;\n" |
| 1073 |
"\\&\n" |
| 1074 |
" if (argc != 3) {\n" |
| 1075 |
" fprintf(stderr, \"Usage: %s E<lt>sleep-secsE<gt> E<lt>freq-nanosecsE<gt>\\[rs]n\",\n" |
| 1076 |
" argv[0]);\n" |
| 1077 |
" exit(EXIT_FAILURE);\n" |
| 1078 |
" }\n" |
| 1079 |
"\\&\n" |
| 1080 |
" /* Établir un gestionnaire pour le signal de minuterie. */\n" |
| 1081 |
"\\&\n" |
| 1082 |
" printf(\"Establishing handler for signal %d\\[rs]n\", SIG);\n" |
| 1083 |
" sa.sa_flags = SA_SIGINFO;\n" |
| 1084 |
" sa.sa_sigaction = handler;\n" |
| 1085 |
" sigemptyset(&sa.sa_mask);\n" |
| 1086 |
" if (sigaction(SIG, &sa, NULL) == -1)\n" |
| 1087 |
" err(EXIT_FAILURE, \"sigaction\");\n" |
| 1088 |
"\\&\n" |
| 1089 |
" /* Bloquer temporairement un signal de minuterie. */\n" |
| 1090 |
"\\&\n" |
| 1091 |
" printf(\"Blocking signal %d\\[rs]n\", SIG);\n" |
| 1092 |
" sigemptyset(&mask);\n" |
| 1093 |
" sigaddset(&mask, SIG);\n" |
| 1094 |
" if (sigprocmask(SIG_SETMASK, &mask, NULL) == -1)\n" |
| 1095 |
" err(EXIT_FAILURE, \"sigprocmask\");\n" |
| 1096 |
"\\&\n" |
| 1097 |
" /* Créer la minuterie. */\n" |
| 1098 |
"\\&\n" |
| 1099 |
" sev.sigev_notify = SIGEV_SIGNAL;\n" |
| 1100 |
" sev.sigev_signo = SIG;\n" |
| 1101 |
" sev.sigev_value.sival_ptr = &timerid;\n" |
| 1102 |
" if (timer_create(CLOCKID, &sev, &timerid) == -1)\n" |
| 1103 |
" err(EXIT_FAILURE, \"timer_create\");\n" |
| 1104 |
"\\&\n" |
| 1105 |
" printf(\"timer ID is %#jx\\[rs]n\", (uintmax_t) timerid);\n" |
| 1106 |
"\\&\n" |
| 1107 |
" /* Démarrer la minuterie. */\n" |
| 1108 |
"\\&\n" |
| 1109 |
" freq_nanosecs = atoll(argv[2]);\n" |
| 1110 |
" its.it_value.tv_sec = freq_nanosecs / 1000000000;\n" |
| 1111 |
" its.it_value.tv_nsec = freq_nanosecs % 1000000000;\n" |
| 1112 |
" its.it_interval.tv_sec = its.it_value.tv_sec;\n" |
| 1113 |
" its.it_interval.tv_nsec = its.it_value.tv_nsec;\n" |
| 1114 |
"\\&\n" |
| 1115 |
" if (timer_settime(timerid, 0, &its, NULL) == -1)\n" |
| 1116 |
" err(EXIT_FAILURE, \"timer_settime\");\n" |
| 1117 |
"\\&\n" |
| 1118 |
" /* Mettre en sommeil un moment : pendant ce temps,\n" |
| 1119 |
" la minuterie peut expirer plusieurs fois */\n" |
| 1120 |
"\\&\n" |
| 1121 |
" printf(\"Sleeping for %d seconds\\[rs]n\", atoi(argv[1]));\n" |
| 1122 |
" sleep(atoi(argv[1]));\n" |
| 1123 |
"\\&\n" |
| 1124 |
" /* Débloquer le signal de minuterie, de sorte que \n" |
| 1125 |
" la notification peut être fournie */\n" |
| 1126 |
"\\&\n" |
| 1127 |
" printf(\"Unblocking signal %d\\[rs]n\", SIG);\n" |
| 1128 |
" if (sigprocmask(SIG_UNBLOCK, &mask, NULL) == -1)\n" |
| 1129 |
" err(EXIT_FAILURE, \"sigprocmask\");\n" |
| 1130 |
"\\&\n" |
| 1131 |
" exit(EXIT_SUCCESS);\n" |
| 1132 |
"}\n" |
| 1133 |
|
| 1134 |
#. SRC END |
| 1135 |
#. type: SH |
| 1136 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1137 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1138 |
#, no-wrap |
| 1139 |
msgid "SEE ALSO" |
| 1140 |
msgstr "VOIR AUSSI" |
| 1141 |
|
| 1142 |
#. type: Plain text |
| 1143 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1144 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1145 |
msgid "" |
| 1146 |
"B<clock_gettime>(2), B<setitimer>(2), B<timer_delete>(2), " |
| 1147 |
"B<timer_getoverrun>(2), B<timer_settime>(2), B<timerfd_create>(2), " |
| 1148 |
"B<clock_getcpuclockid>(3), B<pthread_getcpuclockid>(3), B<pthreads>(7), " |
| 1149 |
"B<sigevent>(3type), B<signal>(7), B<time>(7)" |
| 1150 |
msgstr "" |
| 1151 |
"B<clock_gettime>(2), B<setitimer>(2), B<timer_delete>(2), " |
| 1152 |
"B<timer_getoverrun>(2), B<timer_settime>(2), B<timerfd_create>(2), " |
| 1153 |
"B<clock_getcpuclockid>(3), B<pthread_getcpuclockid>(3), B<pthreads>(7), " |
| 1154 |
"B<sigevent>(3type), B<signal>(7), B<time>(7)" |
| 1155 |
|
| 1156 |
#. type: TH |
| 1157 |
#: debian-trixie |
| 1158 |
#, no-wrap |
| 1159 |
msgid "2024-06-15" |
| 1160 |
msgstr "15 juin 2024" |
| 1161 |
|
| 1162 |
#. type: TH |
| 1163 |
#: debian-trixie |
| 1164 |
#, no-wrap |
| 1165 |
msgid "Linux man-pages 6.9.1" |
| 1166 |
msgstr "Pages du manuel de Linux 6.9.1" |
| 1167 |
|
| 1168 |
#. type: Plain text |
| 1169 |
#: debian-trixie |
| 1170 |
msgid "Real-time library (I<librt>, I<-lrt>)" |
| 1171 |
msgstr "Bibliothèque de temps réel (I<librt>, I<-lrt>)" |
| 1172 |
|
| 1173 |
#. type: Plain text |
| 1174 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1175 |
msgid "POSIX.1-2008." |
| 1176 |
msgstr "POSIX.1-2008." |
| 1177 |
|
| 1178 |
#. type: Plain text |
| 1179 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1180 |
#, no-wrap |
| 1181 |
msgid "" |
| 1182 |
"$ B<./a.out 1 100>\n" |
| 1183 |
"Establishing handler for signal 34\n" |
| 1184 |
"Blocking signal 34\n" |
| 1185 |
"timer ID is 0x804c008\n" |
| 1186 |
"Sleeping for 1 seconds\n" |
| 1187 |
"Unblocking signal 34\n" |
| 1188 |
"Caught signal 34\n" |
| 1189 |
" sival_ptr = 0xbfb174f4; *sival_ptr = 0x804c008\n" |
| 1190 |
" overrun count = 10004886\n" |
| 1191 |
msgstr "" |
| 1192 |
"$ B<./a.out 1 100>\n" |
| 1193 |
"Establishing handler for signal 34\n" |
| 1194 |
"Blocking signal 34\n" |
| 1195 |
"timer ID is 0x804c008\n" |
| 1196 |
"Sleeping for 1 seconds\n" |
| 1197 |
"Unblocking signal 34\n" |
| 1198 |
"Caught signal 34\n" |
| 1199 |
" sival_ptr = 0xbfb174f4; *sival_ptr = 0x804c008\n" |
| 1200 |
" overrun count = 10004886\n" |
| 1201 |
|
| 1202 |
#. type: Plain text |
| 1203 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1204 |
#, no-wrap |
| 1205 |
msgid "" |
| 1206 |
"#include E<lt>signal.hE<gt>\n" |
| 1207 |
"#include E<lt>stdint.hE<gt>\n" |
| 1208 |
"#include E<lt>stdio.hE<gt>\n" |
| 1209 |
"#include E<lt>stdlib.hE<gt>\n" |
| 1210 |
"#include E<lt>time.hE<gt>\n" |
| 1211 |
"#include E<lt>unistd.hE<gt>\n" |
| 1212 |
"\\&\n" |
| 1213 |
"#define CLOCKID CLOCK_REALTIME\n" |
| 1214 |
"#define SIG SIGRTMIN\n" |
| 1215 |
"\\&\n" |
| 1216 |
"#define errExit(msg) do { perror(msg); exit(EXIT_FAILURE); \\[rs]\n" |
| 1217 |
" } while (0)\n" |
| 1218 |
"\\&\n" |
| 1219 |
"static void\n" |
| 1220 |
"print_siginfo(siginfo_t *si)\n" |
| 1221 |
"{\n" |
| 1222 |
" int or;\n" |
| 1223 |
" timer_t *tidp;\n" |
| 1224 |
"\\&\n" |
| 1225 |
" tidp = si-E<gt>si_value.sival_ptr;\n" |
| 1226 |
"\\&\n" |
| 1227 |
" printf(\" sival_ptr = %p; \", si-E<gt>si_value.sival_ptr);\n" |
| 1228 |
" printf(\" *sival_ptr = %#jx\\[rs]n\", (uintmax_t) *tidp);\n" |
| 1229 |
"\\&\n" |
| 1230 |
" or = timer_getoverrun(*tidp);\n" |
| 1231 |
" if (or == -1)\n" |
| 1232 |
" errExit(\"timer_getoverrun\");\n" |
| 1233 |
" else\n" |
| 1234 |
" printf(\" overrun count = %d\\[rs]n\", or);\n" |
| 1235 |
"}\n" |
| 1236 |
"\\&\n" |
| 1237 |
"static void\n" |
| 1238 |
"handler(int sig, siginfo_t *si, void *uc)\n" |
| 1239 |
"{\n" |
| 1240 |
" /* Note: calling printf() from a signal handler is not safe\n" |
| 1241 |
" (and should not be done in production programs), since\n" |
| 1242 |
" printf() is not async-signal-safe; see signal-safety(7).\n" |
| 1243 |
" Nevertheless, we use printf() here as a simple way of\n" |
| 1244 |
" showing that the handler was called. */\n" |
| 1245 |
"\\&\n" |
| 1246 |
" printf(\"Caught signal %d\\[rs]n\", sig);\n" |
| 1247 |
" print_siginfo(si);\n" |
| 1248 |
" signal(sig, SIG_IGN);\n" |
| 1249 |
"}\n" |
| 1250 |
"\\&\n" |
| 1251 |
"int\n" |
| 1252 |
"main(int argc, char *argv[])\n" |
| 1253 |
"{\n" |
| 1254 |
" timer_t timerid;\n" |
| 1255 |
" sigset_t mask;\n" |
| 1256 |
" long long freq_nanosecs;\n" |
| 1257 |
" struct sigevent sev;\n" |
| 1258 |
" struct sigaction sa;\n" |
| 1259 |
" struct itimerspec its;\n" |
| 1260 |
"\\&\n" |
| 1261 |
" if (argc != 3) {\n" |
| 1262 |
" fprintf(stderr, \"Usage: %s E<lt>sleep-secsE<gt> E<lt>freq-nanosecsE<gt>\\[rs]n\",\n" |
| 1263 |
" argv[0]);\n" |
| 1264 |
" exit(EXIT_FAILURE);\n" |
| 1265 |
" }\n" |
| 1266 |
"\\&\n" |
| 1267 |
" /* Establish handler for timer signal. */\n" |
| 1268 |
"\\&\n" |
| 1269 |
" printf(\"Establishing handler for signal %d\\[rs]n\", SIG);\n" |
| 1270 |
" sa.sa_flags = SA_SIGINFO;\n" |
| 1271 |
" sa.sa_sigaction = handler;\n" |
| 1272 |
" sigemptyset(&sa.sa_mask);\n" |
| 1273 |
" if (sigaction(SIG, &sa, NULL) == -1)\n" |
| 1274 |
" errExit(\"sigaction\");\n" |
| 1275 |
"\\&\n" |
| 1276 |
" /* Block timer signal temporarily. */\n" |
| 1277 |
"\\&\n" |
| 1278 |
" printf(\"Blocking signal %d\\[rs]n\", SIG);\n" |
| 1279 |
" sigemptyset(&mask);\n" |
| 1280 |
" sigaddset(&mask, SIG);\n" |
| 1281 |
" if (sigprocmask(SIG_SETMASK, &mask, NULL) == -1)\n" |
| 1282 |
" errExit(\"sigprocmask\");\n" |
| 1283 |
"\\&\n" |
| 1284 |
" /* Create the timer. */\n" |
| 1285 |
"\\&\n" |
| 1286 |
" sev.sigev_notify = SIGEV_SIGNAL;\n" |
| 1287 |
" sev.sigev_signo = SIG;\n" |
| 1288 |
" sev.sigev_value.sival_ptr = &timerid;\n" |
| 1289 |
" if (timer_create(CLOCKID, &sev, &timerid) == -1)\n" |
| 1290 |
" errExit(\"timer_create\");\n" |
| 1291 |
"\\&\n" |
| 1292 |
" printf(\"timer ID is %#jx\\[rs]n\", (uintmax_t) timerid);\n" |
| 1293 |
"\\&\n" |
| 1294 |
" /* Start the timer. */\n" |
| 1295 |
"\\&\n" |
| 1296 |
" freq_nanosecs = atoll(argv[2]);\n" |
| 1297 |
" its.it_value.tv_sec = freq_nanosecs / 1000000000;\n" |
| 1298 |
" its.it_value.tv_nsec = freq_nanosecs % 1000000000;\n" |
| 1299 |
" its.it_interval.tv_sec = its.it_value.tv_sec;\n" |
| 1300 |
" its.it_interval.tv_nsec = its.it_value.tv_nsec;\n" |
| 1301 |
"\\&\n" |
| 1302 |
" if (timer_settime(timerid, 0, &its, NULL) == -1)\n" |
| 1303 |
" errExit(\"timer_settime\");\n" |
| 1304 |
"\\&\n" |
| 1305 |
" /* Sleep for a while; meanwhile, the timer may expire\n" |
| 1306 |
" multiple times. */\n" |
| 1307 |
"\\&\n" |
| 1308 |
" printf(\"Sleeping for %d seconds\\[rs]n\", atoi(argv[1]));\n" |
| 1309 |
" sleep(atoi(argv[1]));\n" |
| 1310 |
"\\&\n" |
| 1311 |
" /* Unlock the timer signal, so that timer notification\n" |
| 1312 |
" can be delivered. */\n" |
| 1313 |
"\\&\n" |
| 1314 |
" printf(\"Unblocking signal %d\\[rs]n\", SIG);\n" |
| 1315 |
" if (sigprocmask(SIG_UNBLOCK, &mask, NULL) == -1)\n" |
| 1316 |
" errExit(\"sigprocmask\");\n" |
| 1317 |
"\\&\n" |
| 1318 |
" exit(EXIT_SUCCESS);\n" |
| 1319 |
"}\n" |
| 1320 |
msgstr "" |
| 1321 |
"#include E<lt>signal.hE<gt>\n" |
| 1322 |
"#include E<lt>stdint.hE<gt>\n" |
| 1323 |
"#include E<lt>stdio.hE<gt>\n" |
| 1324 |
"#include E<lt>stdlib.hE<gt>\n" |
| 1325 |
"#include E<lt>time.hE<gt>\n" |
| 1326 |
"#include E<lt>unistd.hE<gt>\n" |
| 1327 |
"\\&\n" |
| 1328 |
"#define CLOCKID CLOCK_REALTIME\n" |
| 1329 |
"#define SIG SIGRTMIN\n" |
| 1330 |
"\\&\n" |
| 1331 |
"#define errExit(msg) do { perror(msg); exit(EXIT_FAILURE); \\[rs]\n" |
| 1332 |
" } while (0)\n" |
| 1333 |
"\\&\n" |
| 1334 |
"static void\n" |
| 1335 |
"print_siginfo(siginfo_t *si)\n" |
| 1336 |
"{\n" |
| 1337 |
" int or;\n" |
| 1338 |
" timer_t *tidp;\n" |
| 1339 |
"\\&\n" |
| 1340 |
" tidp = si-E<gt>si_value.sival_ptr;\n" |
| 1341 |
"\\&\n" |
| 1342 |
" printf(\" sival_ptr = %p; \", si-E<gt>si_value.sival_ptr);\n" |
| 1343 |
" printf(\" *sival_ptr = %#jx\\[rs]n\", (uintmax_t) *tidp);\n" |
| 1344 |
"\\&\n" |
| 1345 |
" or = timer_getoverrun(*tidp);\n" |
| 1346 |
" if (or == -1)\n" |
| 1347 |
" errExit(\"timer_getoverrun\");\n" |
| 1348 |
" else\n" |
| 1349 |
" printf(\" overrun count = %d\\[rs]n\", or);\n" |
| 1350 |
"}\n" |
| 1351 |
"\\&\n" |
| 1352 |
"static void\n" |
| 1353 |
"handler(int sig, siginfo_t *si, void *uc)\n" |
| 1354 |
"{\n" |
| 1355 |
" /* Remarque : l'appel printf() à partir d'un gestionnaire de signal\n" |
| 1356 |
" n'est pas strictement correct (et ne devrait pas être utilisé en\n" |
| 1357 |
" production) dans la mesure où printf() n'est pas sûr dans un\n" |
| 1358 |
" contexte de signal asynchrone ; consultez signal(7).\n" |
| 1359 |
" Néanmoins, printf() est utilisé ici comme une manière simple de\n" |
| 1360 |
" montrer que le gestionnaire a été appelé. */\n" |
| 1361 |
"\\&\n" |
| 1362 |
" printf(\"Caught signal %d\\[rs]n\", sig);\n" |
| 1363 |
" print_siginfo(si);\n" |
| 1364 |
" signal(sig, SIG_IGN);\n" |
| 1365 |
"}\n" |
| 1366 |
"\\&\n" |
| 1367 |
"int\n" |
| 1368 |
"main(int argc, char *argv[])\n" |
| 1369 |
"{\n" |
| 1370 |
" timer_t timerid;\n" |
| 1371 |
" sigset_t mask;\n" |
| 1372 |
" long long freq_nanosecs;\n" |
| 1373 |
" struct sigevent sev;\n" |
| 1374 |
" struct sigaction sa;\n" |
| 1375 |
" struct itimerspec its;\n" |
| 1376 |
"\\&\n" |
| 1377 |
" if (argc != 3) {\n" |
| 1378 |
" fprintf(stderr, \"Usage: %s E<lt>sleep-secsE<gt> E<lt>freq-nanosecsE<gt>\\[rs]n\",\n" |
| 1379 |
" argv[0]);\n" |
| 1380 |
" exit(EXIT_FAILURE);\n" |
| 1381 |
" }\n" |
| 1382 |
"\\&\n" |
| 1383 |
" /* Établir un gestionnaire pour le signal de minuterie. */\n" |
| 1384 |
"\\&\n" |
| 1385 |
" printf(\"Establishing handler for signal %d\\[rs]n\", SIG);\n" |
| 1386 |
" sa.sa_flags = SA_SIGINFO;\n" |
| 1387 |
" sa.sa_sigaction = handler;\n" |
| 1388 |
" sigemptyset(&sa.sa_mask);\n" |
| 1389 |
" if (sigaction(SIG, &sa, NULL) == -1)\n" |
| 1390 |
" errExit(\"sigaction\");\n" |
| 1391 |
"\\&\n" |
| 1392 |
" /* Bloquer temporairement un signal de minuterie. */\n" |
| 1393 |
"\\&\n" |
| 1394 |
" printf(\"Blocking signal %d\\[rs]n\", SIG);\n" |
| 1395 |
" sigemptyset(&mask);\n" |
| 1396 |
" sigaddset(&mask, SIG);\n" |
| 1397 |
" if (sigprocmask(SIG_SETMASK, &mask, NULL) == -1)\n" |
| 1398 |
" errExit(\"sigprocmask\");\n" |
| 1399 |
"\\&\n" |
| 1400 |
" /* Créer la minuterie. */\n" |
| 1401 |
"\\&\n" |
| 1402 |
" sev.sigev_notify = SIGEV_SIGNAL;\n" |
| 1403 |
" sev.sigev_signo = SIG;\n" |
| 1404 |
" sev.sigev_value.sival_ptr = &timerid;\n" |
| 1405 |
" if (timer_create(CLOCKID, &sev, &timerid) == -1)\n" |
| 1406 |
" errExit(\"timer_create\");\n" |
| 1407 |
"\\&\n" |
| 1408 |
" printf(\"timer ID is %#jx\\[rs]n\", (uintmax_t) timerid);\n" |
| 1409 |
"\\&\n" |
| 1410 |
" /* Démarrer la minuterie. */\n" |
| 1411 |
"\\&\n" |
| 1412 |
" freq_nanosecs = atoll(argv[2]);\n" |
| 1413 |
" its.it_value.tv_sec = freq_nanosecs / 1000000000;\n" |
| 1414 |
" its.it_value.tv_nsec = freq_nanosecs % 1000000000;\n" |
| 1415 |
" its.it_interval.tv_sec = its.it_value.tv_sec;\n" |
| 1416 |
" its.it_interval.tv_nsec = its.it_value.tv_nsec;\n" |
| 1417 |
"\\&\n" |
| 1418 |
" if (timer_settime(timerid, 0, &its, NULL) == -1)\n" |
| 1419 |
" errExit(\"timer_settime\");\n" |
| 1420 |
"\\&\n" |
| 1421 |
" /* Mettre en sommeil un moment : pendant ce temps,\n" |
| 1422 |
" la minuterie peut expirer plusieurs fois */\n" |
| 1423 |
"\\&\n" |
| 1424 |
" printf(\"Sleeping for %d seconds\\[rs]n\", atoi(argv[1]));\n" |
| 1425 |
" sleep(atoi(argv[1]));\n" |
| 1426 |
"\\&\n" |
| 1427 |
" /* Débloquer le signal de minuterie, de sorte que \n" |
| 1428 |
" la notification peut être fournie */\n" |
| 1429 |
"\\&\n" |
| 1430 |
" printf(\"Unblocking signal %d\\[rs]n\", SIG);\n" |
| 1431 |
" if (sigprocmask(SIG_UNBLOCK, &mask, NULL) == -1)\n" |
| 1432 |
" errExit(\"sigprocmask\");\n" |
| 1433 |
"\\&\n" |
| 1434 |
" exit(EXIT_SUCCESS);\n" |
| 1435 |
"}\n" |
| 1436 |
|
| 1437 |
#. type: TH |
| 1438 |
#: fedora-44 fedora-rawhide |
| 1439 |
#, no-wrap |
| 1440 |
msgid "2024-07-23" |
| 1441 |
msgstr "23 juillet 2024" |
| 1442 |
|
| 1443 |
#. type: TH |
| 1444 |
#: fedora-44 fedora-rawhide |
| 1445 |
#, no-wrap |
| 1446 |
msgid "Linux man-pages 6.13" |
| 1447 |
msgstr "Pages du manuel de Linux 6.13" |
| 1448 |
|
| 1449 |
#. type: TH |
| 1450 |
#: mageia-cauldron |
| 1451 |
#, no-wrap |
| 1452 |
msgid "Linux man-pages 6.17" |
| 1453 |
msgstr "Pages du manuel de Linux 6.17" |
| 1454 |
|
| 1455 |
#. type: TH |
| 1456 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1457 |
#, no-wrap |
| 1458 |
msgid "Linux man-pages (unreleased)" |
| 1459 |
msgstr "Pages du manuel de Linux (non publiées)" |