[libc-commits] [libc] [libc][POSIX][unistd] Implement gethostname (PR #128142)

via libc-commits libc-commits at lists.llvm.org
Wed Sep 17 07:21:22 PDT 2025


================
@@ -0,0 +1,22 @@
+//===-- Implementation header for gethostname -------------------*- C++ -*-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_LIBC_SRC_UNISTD_GETHOSTNAME_H
+#define LLVM_LIBC_SRC_UNISTD_GETHOSTNAME_H
+
+#include "hdr/types/size_t.h"
+#include "hdr/unistd_macros.h"
----------------
lntue wrote:

`hdr/unistd_macros.h` is not needed in this header.

https://github.com/llvm/llvm-project/pull/128142


More information about the libc-commits mailing list