This repository has been archived by the owner on Oct 12, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 422
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CLOCK_REALTIME_FAST for FreeBSD.
Added the platform-specific CLOCK_ values for Linux and FreeBSD and put them in their own files, deprecating the pre-existing ones in the posix file. This is required for Phobos pull# 2584.
- Loading branch information
Showing
7 changed files
with
83 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| //Written in the D programming language | ||
|
|
||
| /++ | ||
| D header file for FreeBSD's extensions to POSIX's time.h. | ||
| Copyright: Copyright 2014 | ||
| License: $(WEB www.boost.org/LICENSE_1_0.txt, Boost License 1.0). | ||
| Authors: Jonathan M Davis | ||
| +/ | ||
| module core.sys.freebsd.time; | ||
|
|
||
| public import core.sys.posix.time; | ||
|
|
||
| version(FreeBSD): | ||
|
|
||
| enum CLOCK_VIRTUAL = 1; | ||
| enum CLOCK_PROF = 2; | ||
| enum CLOCK_UPTIME = 5; | ||
| enum CLOCK_UPTIME_PRECISE = 7; | ||
| enum CLOCK_UPTIME_FAST = 8; | ||
| enum CLOCK_REALTIME_PRECISE = 9; | ||
| enum CLOCK_REALTIME_FAST = 10; | ||
| enum CLOCK_MONOTONIC_PRECISE = 11; | ||
| enum CLOCK_MONOTONIC_FAST = 12; | ||
| enum CLOCK_SECOND = 13; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| //Written in the D programming language | ||
|
|
||
| /++ | ||
| D header file for Linux extensions to POSIX's time.h. | ||
| Copyright: Copyright 2014 | ||
| License: $(WEB www.boost.org/LICENSE_1_0.txt, Boost License 1.0). | ||
| Authors: Jonathan M Davis | ||
| +/ | ||
| module core.sys.linux.time; | ||
|
|
||
| public import core.sys.posix.time; | ||
|
|
||
| version(linux): | ||
|
|
||
| enum CLOCK_MONOTONIC_RAW = 4; | ||
| enum CLOCK_REALTIME_COARSE = 5; | ||
| enum CLOCK_MONOTONIC_COARSE = 6; | ||
| enum CLOCK_BOOTTIME = 7; | ||
| enum CLOCK_REALTIME_ALARM = 8; | ||
| enum CLOCK_BOOTTIME_ALARM = 9; | ||
| enum CLOCK_SGI_CYCLE = 10; | ||
| enum CLOCK_TAI = 11; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters