diff options
| author | Jakob Kaivo <jkk@ung.org> | 2020-08-16 15:47:08 -0400 |
|---|---|---|
| committer | Jakob Kaivo <jkk@ung.org> | 2020-08-16 15:47:08 -0400 |
| commit | 700fbd205a1a428677876d322606b9a354221892 (patch) | |
| tree | c1a521f3a2ea0346f293a543a9ed4ef6c1242b77 /src/time | |
| parent | d36c832edee04db91e0c0ab635980c63844ca07c (diff) | |
add skeleton of things from C11
Diffstat (limited to 'src/time')
| -rw-r--r-- | src/time/TIME_UTC.c | 5 | ||||
| -rw-r--r-- | src/time/struct_timespec.c | 3 | ||||
| -rw-r--r-- | src/time/timespec_get.c | 10 |
3 files changed, 16 insertions, 2 deletions
diff --git a/src/time/TIME_UTC.c b/src/time/TIME_UTC.c new file mode 100644 index 00000000..f2fd5121 --- /dev/null +++ b/src/time/TIME_UTC.c @@ -0,0 +1,5 @@ +#define TIME_UTC (1) + +/* +STDC(201112) +*/ diff --git a/src/time/struct_timespec.c b/src/time/struct_timespec.c index ecf0c8ef..cd068bd9 100644 --- a/src/time/struct_timespec.c +++ b/src/time/struct_timespec.c @@ -1,5 +1,3 @@ -#include <time.h> - struct timespec { time_t tv_sec; /* Seconds */ long tv_nsec; /* Nanoseonds */ @@ -7,4 +5,5 @@ struct timespec { /* POSIX(199309) +STDC(201112) */ diff --git a/src/time/timespec_get.c b/src/time/timespec_get.c new file mode 100644 index 00000000..0f1c05df --- /dev/null +++ b/src/time/timespec_get.c @@ -0,0 +1,10 @@ +#include <time.h> + +int timespec_get(struct timespec *ts, int base) +{ + return base; +} + +/* +STDC(201112) +*/ |
