summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 000000000..295166536
--- /dev/null
+++ b/test/inet/gethostid.c
@@ -0,0 +1,6 @@
+#include <unistd.h>
+#include <stdio.h>
+int main(void) {
+ printf("hostid=%d\n", gethostid());
+ return 0;
+}