Skip to main content

clock_settime

Function clock_settime 

Source
pub fn clock_settime(clock: Clock, instant: Instant) -> Result<(), Errno>
Expand description

Modifie le temps courant d’une horloge ajustable.

§Errors

  • EINVAL : instant.clock() != clock (vérifié avant l’appel syscall), ou identifiant d’horloge refusé par le kernel.
  • EPERM : CAP_SYS_TIME manquante. Échoue systématiquement en environnement non privilégié (cf. test clock_settime_realtime_current_time_is_ok_or_eperm).