From 8da817e0006d867a76727dbc821ae418020f6392 Mon Sep 17 00:00:00 2001 From: brabo Date: Fri, 17 Mar 2017 17:04:17 +0100 Subject: [PATCH] added include/time.h for shared CLOCK_* constants, insane-adding-machines/frosted#121 --- include/time.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 include/time.h diff --git a/include/time.h b/include/time.h new file mode 100644 index 0000000..0ce3481 --- /dev/null +++ b/include/time.h @@ -0,0 +1,31 @@ +/* + * This file is part of frosted shared kernel-userspace headers. + * + * frosted is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License version 2.1, as + * published by the Free Software Foundation. + * + * + * frosted is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with frosted. If not, see . + * + * Authors: brabo + * + */ + +#ifndef _FROSTED_TIME_H_ +#define _FROSTED_TIME_H_ + +typedef unsigned long clockid_t; + +/* Manifest Constants, P1003.1b-1993, p. 262 */ + +#define CLOCK_REALTIME (clockid_t)0 +#define CLOCK_MONOTONIC (clockid_t)1 + +#endif