summaryrefslogtreecommitdiffstats
path: root/flags
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy.zurcher@heraeus.com>2014-01-06 15:39:05 +0100
committerJérémy Zurcher <jeremy.zurcher@heraeus.com>2014-01-06 15:39:05 +0100
commit09397c778731916891d660ac4ebbb6f3ac5a15fb (patch)
tree9ec6b32f0a32f2744d173ca0fe91bc5ea2f2cb50 /flags
downloaddjb-way-09397c778731916891d660ac4ebbb6f3ac5a15fb.zip
djb-way-09397c778731916891d660ac4ebbb6f3ac5a15fb.tar.gz
Initial commit
Diffstat (limited to 'flags')
-rw-r--r--flags/myflag.h12
-rw-r--r--flags/myflag.h22
-rw-r--r--flags/time.h117
-rw-r--r--flags/try_clock_gettime.c17
4 files changed, 38 insertions, 0 deletions
diff --git a/flags/myflag.h1 b/flags/myflag.h1
new file mode 100644
index 0000000..761823e
--- /dev/null
+++ b/flags/myflag.h1
@@ -0,0 +1,2 @@
+
+#define HAS_MYFLAG 1
diff --git a/flags/myflag.h2 b/flags/myflag.h2
new file mode 100644
index 0000000..2085feb
--- /dev/null
+++ b/flags/myflag.h2
@@ -0,0 +1,2 @@
+
+#define HAS_MYFLAG 0
diff --git a/flags/time.h1 b/flags/time.h1
new file mode 100644
index 0000000..b6aa5af
--- /dev/null
+++ b/flags/time.h1
@@ -0,0 +1,17 @@
+#include <stdlib.h>
+#include <unistd.h>
+#ifdef SYSV
+ #include <time.h>
+#else
+ #include <sys/time.h>
+#endif
+
+
+int main(void)
+{
+ struct timespec s;
+ clock_gettime(CLOCK_REALTIME, &s);
+ return EXIT_SUCCESS;
+}
+
+
diff --git a/flags/try_clock_gettime.c b/flags/try_clock_gettime.c
new file mode 100644
index 0000000..b6aa5af
--- /dev/null
+++ b/flags/try_clock_gettime.c
@@ -0,0 +1,17 @@
+#include <stdlib.h>
+#include <unistd.h>
+#ifdef SYSV
+ #include <time.h>
+#else
+ #include <sys/time.h>
+#endif
+
+
+int main(void)
+{
+ struct timespec s;
+ clock_gettime(CLOCK_REALTIME, &s);
+ return EXIT_SUCCESS;
+}
+
+