aboutsummaryrefslogtreecommitdiff
path: root/std/net.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-09-22 15:36:11 -0400
committerAndrew Kelley <andrew@ziglang.org>2019-09-22 16:07:21 -0400
commit028011e59a486bf39db8c97e44a1bd79e09082ef (patch)
treeffea8e823b772f49be1e9f74ddbc88e317db595f /std/net.zig
parente63daca92e959495be347525415ef1e520b01f44 (diff)
downloadzig-028011e59a486bf39db8c97e44a1bd79e09082ef.tar.gz
zig-028011e59a486bf39db8c97e44a1bd79e09082ef.zip
libc implementation of gethostname
Diffstat (limited to 'std/net.zig')
-rw-r--r--std/net.zig8
1 files changed, 0 insertions, 8 deletions
diff --git a/std/net.zig b/std/net.zig
index 3a1656d14d..be9d18056c 100644
--- a/std/net.zig
+++ b/std/net.zig
@@ -245,11 +245,3 @@ pub fn connectUnixSocket(path: []const u8) !std.fs.File {
return std.fs.File.openHandle(sockfd);
}
-
-pub const getHostName = os.gethostname;
-
-test "getHostName" {
- var buf: [os.HOST_NAME_MAX]u8 = undefined;
- const hostname = try getHostName(&buf);
- expect(hostname.len != 0);
-}