mirror of
https://github.com/rwinkhart/sys.git
synced 2026-08-28 04:46:44 -04:00
unix: add clock_gettime for Linux
Includes 386, amd64, and arm for Linux. Change-Id: I428bfb732141448659a94dc6e2ab7a98efea507a Reviewed-on: https://go-review.googlesource.com/9766 Reviewed-by: Rob Pike <r@golang.org> Reviewed-by: David Symonds <dsymonds@golang.org>
This commit is contained in:
committed by
David Symonds
parent
0a2b4af5eb
commit
f2654f8719
@@ -186,6 +186,21 @@ const (
|
||||
BRKINT = 0x2
|
||||
CFLUSH = 0xf
|
||||
CLOCAL = 0x800
|
||||
CLOCK_BOOTTIME = 0x7
|
||||
CLOCK_BOOTTIME_ALARM = 0x9
|
||||
CLOCK_DEFAULT = 0x0
|
||||
CLOCK_EXT = 0x1
|
||||
CLOCK_INT = 0x2
|
||||
CLOCK_MONOTONIC = 0x1
|
||||
CLOCK_MONOTONIC_COARSE = 0x6
|
||||
CLOCK_MONOTONIC_RAW = 0x4
|
||||
CLOCK_PROCESS_CPUTIME_ID = 0x2
|
||||
CLOCK_REALTIME = 0x0
|
||||
CLOCK_REALTIME_ALARM = 0x8
|
||||
CLOCK_REALTIME_COARSE = 0x5
|
||||
CLOCK_THREAD_CPUTIME_ID = 0x3
|
||||
CLOCK_TXFROMRX = 0x4
|
||||
CLOCK_TXINT = 0x3
|
||||
CLONE_CHILD_CLEARTID = 0x200000
|
||||
CLONE_CHILD_SETTID = 0x1000000
|
||||
CLONE_DETACHED = 0x400000
|
||||
|
||||
Reference in New Issue
Block a user