summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2019-07-19 12:43:06 -0400
committerJakob Kaivo <jkk@ung.org>2019-07-19 12:43:06 -0400
commit618e6c23df47b0475d426567603b92de696a40e3 (patch)
tree7c77edbb6efcc571835fe1069582ad4f19ad71d2
parent3663f94948a01574cb83f9678491b196218a2a9b (diff)
implement
-rw-r--r--hostid.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/hostid.c b/hostid.c
new file mode 100644
index 0000000..854bb93
--- /dev/null
+++ b/hostid.c
@@ -0,0 +1,10 @@
+#define _XOPEN_SOURCE
+#define _XOPEN_SOURCE_EXTENDED 1
+#include <stdio.h>
+#include <unistd.h>
+
+int main(void)
+{
+ printf("%08lx\n", gethostid());
+ return 0;
+}