2015-12-07 19:54:41 +01:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <fcntl.h>
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Define _TIME_BITS unequal to 64 to trigger error
|
|
|
|
*/
|
|
|
|
|
|
|
|
#define _TIME_BITS 62
|
|
|
|
|
|
|
|
#include "y2038-inc.h"
|
|
|
|
|
|
|
|
int main(int argc, char **argv)
|
|
|
|
{
|
2016-06-29 09:17:50 +02:00
|
|
|
clockid_t my_clk_id = CLOCK_REALTIME;
|
2015-12-07 19:54:41 +01:00
|
|
|
struct timespec *my_tp;
|
|
|
|
|
2016-06-29 09:17:50 +02:00
|
|
|
return clock_gettime(my_clk_id, &my_tp);
|
2015-12-07 19:54:41 +01:00
|
|
|
}
|