summaryrefslogtreecommitdiff
path: root/src/time
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2019-02-20 12:00:12 -0500
committerJakob Kaivo <jkk@ung.org>2019-02-20 12:00:12 -0500
commit52b8c93b7180eac72721d59315aae2b592e7b3a1 (patch)
treed304c2e253c56ca39df04e5d346309f08f67c445 /src/time
parent49836ed4fa13e431fdbb52e418499853df8693c6 (diff)
add symbols from POSIX.1b-1993
Diffstat (limited to 'src/time')
-rw-r--r--src/time/CLOCK_REALTIME.c5
-rw-r--r--src/time/TIMER_ABSTIME.c5
-rw-r--r--src/time/clock_getres.c11
-rw-r--r--src/time/clock_gettime.c11
-rw-r--r--src/time/clock_settime.c11
-rw-r--r--src/time/nanosleep.c10
-rw-r--r--src/time/struct_itimerspec.c10
-rw-r--r--src/time/struct_timespec.c10
-rw-r--r--src/time/timer_create.c11
-rw-r--r--src/time/timer_delete.c11
-rw-r--r--src/time/timer_getoverrun.c11
-rw-r--r--src/time/timer_gettime.c11
-rw-r--r--src/time/timer_settime.c11
13 files changed, 128 insertions, 0 deletions
diff --git a/src/time/CLOCK_REALTIME.c b/src/time/CLOCK_REALTIME.c
new file mode 100644
index 00000000..fc72f017
--- /dev/null
+++ b/src/time/CLOCK_REALTIME.c
@@ -0,0 +1,5 @@
+#include <time.h>
+#define CLOCK_REALTIME (3)
+/*
+POSIX(199309)
+*/
diff --git a/src/time/TIMER_ABSTIME.c b/src/time/TIMER_ABSTIME.c
new file mode 100644
index 00000000..1625e95b
--- /dev/null
+++ b/src/time/TIMER_ABSTIME.c
@@ -0,0 +1,5 @@
+#include <time.h>
+#define TIMER_ABSTIME (0)
+/*
+POSIX(199309)
+*/
diff --git a/src/time/clock_getres.c b/src/time/clock_getres.c
new file mode 100644
index 00000000..34c437d8
--- /dev/null
+++ b/src/time/clock_getres.c
@@ -0,0 +1,11 @@
+#include <time.h>
+
+int clock_getres(clockid_t clock_id, struct timespec *res)
+{
+ return 0;
+}
+
+/*
+POSIX(199309)
+LINK(rt)
+*/
diff --git a/src/time/clock_gettime.c b/src/time/clock_gettime.c
new file mode 100644
index 00000000..5f35cf93
--- /dev/null
+++ b/src/time/clock_gettime.c
@@ -0,0 +1,11 @@
+#include <time.h>
+
+int clock_gettime(clockid_t clock_id, struct timespec *tp)
+{
+ return 0;
+}
+
+/*
+POSIX(199309)
+LINK(rt)
+*/
diff --git a/src/time/clock_settime.c b/src/time/clock_settime.c
new file mode 100644
index 00000000..27ae656c
--- /dev/null
+++ b/src/time/clock_settime.c
@@ -0,0 +1,11 @@
+#include <time.h>
+
+int clock_settime(clockid_t clock_id, const struct timespec *tp)
+{
+ return 0;
+}
+
+/*
+POSIX(199309)
+LINK(rt)
+*/
diff --git a/src/time/nanosleep.c b/src/time/nanosleep.c
new file mode 100644
index 00000000..61dd85fc
--- /dev/null
+++ b/src/time/nanosleep.c
@@ -0,0 +1,10 @@
+#include <time.h>
+
+int nanosleep(const struct timespec *rqtp, struct timespec *rmtp)
+{
+ return 0;
+}
+
+/*
+POSIX(199309)
+*/
diff --git a/src/time/struct_itimerspec.c b/src/time/struct_itimerspec.c
new file mode 100644
index 00000000..20dc4a43
--- /dev/null
+++ b/src/time/struct_itimerspec.c
@@ -0,0 +1,10 @@
+#include <time.h>
+
+struct itimerspec {
+ struct timespec it_interval;
+ struct timespec it_value;
+};
+
+/*
+POSIX(199309)
+*/
diff --git a/src/time/struct_timespec.c b/src/time/struct_timespec.c
new file mode 100644
index 00000000..ecf0c8ef
--- /dev/null
+++ b/src/time/struct_timespec.c
@@ -0,0 +1,10 @@
+#include <time.h>
+
+struct timespec {
+ time_t tv_sec; /* Seconds */
+ long tv_nsec; /* Nanoseonds */
+};
+
+/*
+POSIX(199309)
+*/
diff --git a/src/time/timer_create.c b/src/time/timer_create.c
new file mode 100644
index 00000000..3c52a589
--- /dev/null
+++ b/src/time/timer_create.c
@@ -0,0 +1,11 @@
+#include <time.h>
+
+int timer_create(clockid_t clockid, struct sigevent *restrict evp, timer_t *restrict timerid)
+{
+ return 0;
+}
+
+/*
+POSIX(199309)
+LINK(rt)
+*/
diff --git a/src/time/timer_delete.c b/src/time/timer_delete.c
new file mode 100644
index 00000000..82ffa586
--- /dev/null
+++ b/src/time/timer_delete.c
@@ -0,0 +1,11 @@
+#include <time.h>
+
+int timer_delete(timer_t timerid)
+{
+ return 0;
+}
+
+/*
+POSIX(199309)
+LINK(rt)
+*/
diff --git a/src/time/timer_getoverrun.c b/src/time/timer_getoverrun.c
new file mode 100644
index 00000000..bd82d768
--- /dev/null
+++ b/src/time/timer_getoverrun.c
@@ -0,0 +1,11 @@
+#include <time.h>
+
+int timer_getoverrun(timer_t timerid)
+{
+ return 0;
+}
+
+/*
+POSIX(199309)
+LINK(rt)
+*/
diff --git a/src/time/timer_gettime.c b/src/time/timer_gettime.c
new file mode 100644
index 00000000..ce9e078c
--- /dev/null
+++ b/src/time/timer_gettime.c
@@ -0,0 +1,11 @@
+#include <time.h>
+
+int timer_gettime(timer_t timerid, struct itimerspec *value)
+{
+ return 0;
+}
+
+/*
+POSIX(199309)
+LINK(rt)
+*/
diff --git a/src/time/timer_settime.c b/src/time/timer_settime.c
new file mode 100644
index 00000000..3ba34f5f
--- /dev/null
+++ b/src/time/timer_settime.c
@@ -0,0 +1,11 @@
+#include <time.h>
+
+int timer_settime(timer_t timerid, int flags, const struct itimerspec * restrict value, struct itimerspec * restrict ovalue)
+{
+ return 0;
+}
+
+/*
+POSIX(199309)
+LINK(rt)
+*/