summaryrefslogtreecommitdiff
path: root/hostid.c
diff options
context:
space:
mode:
Diffstat (limited to 'hostid.c')
-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;
+}