HomeFreeBSD

clock_gettime: Add Linux aliases for CLOCK_*

Description

clock_gettime: Add Linux aliases for CLOCK_*

Linux standardized what we call CLOCK_{REALTIME,MONOTONIC}_FAST as
CLOCK_{REALTIME,MONOTONIC}_COARSE. In addition, Linux spells
CLOCK_UPTIME as CLOCK_BOOTTIME.

Add aliases to time.h and document these new aliases in
clock_gettime(2).

Reviewed by: vangyzen, kib (prior), dchagin (prior)
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D30988

Details

Provenance
impAuthored on Jul 30 2021, 11:11 PM
Reviewer
vangyzen
Differential Revision
D30988: clock_gettime: Add Linux aliases for CLOCK_*
Parents
rG7b797ba27a71: time.h: reduce CLOCK_ namespace pollution, move to _clock_id.h
Branches
Unknown
Tags
Unknown