summaryrefslogtreecommitdiff
path: root/test/inet/gethostid.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/inet/gethostid.c')
-rw-r--r--test/inet/gethostid.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/inet/gethostid.c b/test/inet/gethostid.c
new file mode 100644
index 0000000..1b9af86
--- /dev/null
+++ b/test/inet/gethostid.c
@@ -0,0 +1,6 @@
+#include <unistd.h>
+#include <stdio.h>
+int main(void) {
+ printf("hostid=%ld\n", gethostid());
+ return 0;
+}