Merge branch 'master' of git://cadel.mutabah.net/acess2
[tpg/acess2.git] / Usermode / Libraries / libposix.so_src / include_exp / libposix_time.h
diff --git a/Usermode/Libraries/libposix.so_src/include_exp/libposix_time.h b/Usermode/Libraries/libposix.so_src/include_exp/libposix_time.h
new file mode 100644 (file)
index 0000000..8a6557f
--- /dev/null
@@ -0,0 +1,32 @@
+/*
+ * Acess2 POSIX Emulation
+ * - By John Hodge (thePowersGang)
+ *
+ * time.h (libposix version)
+ * - Time and Clock definitions
+ *
+ * NOTE: Included by libc's time.h
+ */
+#ifndef _LIBPOSIX__TIME_H_
+#define _LIBPOSIX__TIME_H_
+
+struct timespec
+{
+       time_t  tv_sec;
+       long    tv_nsec;
+};
+
+enum clockid_e
+{
+       CLOCK_REALTIME,
+       CLOCK_MONOTONIC
+};
+
+typedef enum clockid_e clockid_t;
+
+extern int clock_getres(clockid_t clk_id, struct timespec *res);
+extern int clock_gettime(clockid_t clk_id, struct timespec *tp);
+extern int clock_settime(clockid_t clk_id, const struct timespec *tp);
+
+#endif
+

UCC git Repository :: git.ucc.asn.au