[all-commits] [llvm/llvm-project] 5ad347: [libc][POSIX][unistd] Implement gethostname (#128142)

Zaky Hermawan via All-commits all-commits at lists.llvm.org
Tue Sep 23 06:54:57 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5ad347d1a1c1bdc716dafd07a395861529c0e595
      https://github.com/llvm/llvm-project/commit/5ad347d1a1c1bdc716dafd07a395861529c0e595
  Author: Zaky Hermawan <44158147+ZakyHermawan at users.noreply.github.com>
  Date:   2025-09-23 (Tue, 23 Sep 2025)

  Changed paths:
    M libc/config/linux/aarch64/entrypoints.txt
    M libc/config/linux/riscv/entrypoints.txt
    M libc/config/linux/x86_64/entrypoints.txt
    M libc/include/unistd.yaml
    M libc/src/unistd/CMakeLists.txt
    A libc/src/unistd/gethostname.h
    M libc/src/unistd/linux/CMakeLists.txt
    A libc/src/unistd/linux/gethostname.cpp
    M libc/test/src/unistd/CMakeLists.txt
    A libc/test/src/unistd/gethostname_test.cpp

  Log Message:
  -----------
  [libc][POSIX][unistd] Implement gethostname (#128142)

The implementation is based on the specifications from:
https://man7.org/linux/man-pages/man2/gethostname.2.html

Closes https://github.com/llvm/llvm-project/issues/126602

---------

Signed-off-by: ZakyHermawan <zaky.hermawan9615 at gmail.com>



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list