aboutsummaryrefslogtreecommitdiff
path: root/src/lib/net/gethostname.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/net/gethostname.h')
-rw-r--r--src/lib/net/gethostname.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/lib/net/gethostname.h b/src/lib/net/gethostname.h
new file mode 100644
index 0000000000..69b0528bc0
--- /dev/null
+++ b/src/lib/net/gethostname.h
@@ -0,0 +1,19 @@
+/* Copyright (c) 2003-2004, Roger Dingledine
+ * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
+ * Copyright (c) 2007-2019, The Tor Project, Inc. */
+/* See LICENSE for licensing information */
+
+/**
+ * \file gethostname.h
+ * \brief Header for gethostname.c
+ **/
+
+#ifndef TOR_GETHOSTNAME_H
+#define TOR_GETHOSTNAME_H
+
+#include "lib/testsupport/testsupport.h"
+#include <stddef.h>
+
+MOCK_DECL(int,tor_gethostname,(char *name, size_t namelen));
+
+#endif