tor  0.4.1.0-alpha-dev
gethostname.c
Go to the documentation of this file.
1 /* Copyright (c) 2003-2004, Roger Dingledine
2  * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
3  * Copyright (c) 2007-2019, The Tor Project, Inc. */
4 /* See LICENSE for licensing information */
5 
11 #include "orconfig.h"
12 #include "lib/net/gethostname.h"
13 
14 #ifdef HAVE_UNISTD_H
15 #include <unistd.h>
16 #endif
17 #ifdef _WIN32
18 #include <winsock2.h>
19 #endif
20 
27 tor_gethostname,(char *name, size_t namelen))
28 {
29  return gethostname(name,namelen);
30 }
Header for gethostname.c.
MOCK_IMPL(int, tor_gethostname,(char *name, size_t namelen))
Definition: gethostname.c:26