summaryrefslogtreecommitdiff
path: root/src/lib/net/gethostname.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-06-28 11:57:01 -0400
committerNick Mathewson <nickm@torproject.org>2018-06-28 11:57:01 -0400
commitdb1a420c4eab3fbb6dc02e9653bf21664b9bdf33 (patch)
treef9a6b636a01988565ba1d2fbfef8087a21b9e11b /src/lib/net/gethostname.h
parent8c6ff9fec2ed8b1eed6a4c35370f62f1bf24a158 (diff)
downloadtor-db1a420c4eab3fbb6dc02e9653bf21664b9bdf33.tar.gz
tor-db1a420c4eab3fbb6dc02e9653bf21664b9bdf33.zip
Move tor_gethostname to lib/net
Diffstat (limited to 'src/lib/net/gethostname.h')
-rw-r--r--src/lib/net/gethostname.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/lib/net/gethostname.h b/src/lib/net/gethostname.h
new file mode 100644
index 0000000000..d83c5fe096
--- /dev/null
+++ b/src/lib/net/gethostname.h
@@ -0,0 +1,14 @@
+/* Copyright (c) 2003-2004, Roger Dingledine
+ * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
+ * Copyright (c) 2007-2018, The Tor Project, Inc. */
+/* See LICENSE for licensing information */
+
+#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