[all-commits] [llvm/llvm-project] c6c633: [libc] Move INET_ADDRSTRLEN and INET6_ADDRSTRLEN t...

Pavel Labath via All-commits all-commits at lists.llvm.org
Tue Jun 2 12:23:46 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c6c633740c305684645ec2b093bf36587fdbc54f
      https://github.com/llvm/llvm-project/commit/c6c633740c305684645ec2b093bf36587fdbc54f
  Author: Pavel Labath <pavel at labath.sk>
  Date:   2026-06-02 (Tue, 02 Jun 2026)

  Changed paths:
    M libc/include/CMakeLists.txt
    M libc/include/arpa/inet.yaml
    M libc/include/llvm-libc-macros/CMakeLists.txt
    A libc/include/llvm-libc-macros/inet-address-macros.h
    M libc/include/llvm-libc-macros/netinet-in-macros.h
    M libc/include/netinet/in.yaml
    M libc/utils/docgen/arpa/inet.yaml

  Log Message:
  -----------
  [libc] Move INET_ADDRSTRLEN and INET6_ADDRSTRLEN to a common header (#201083)

INET_ADDRSTRLEN and INET6_ADDRSTRLEN are needed by both <netinet/in.h>
and <arpa/inet.h>. Previously we had them defined directly inside
netinet-in-macros.h, which meant arpa/inet.h did not have access to
them.

I've moved them to a new inet-address-macros.h header and configured
both YAML header targets to depend on it so they get included in both
generated headers.

I'm also updating the docgen YAML file for arpa/inet.h to document these
macros.

Note that other libc implementations simply have arpa/inet.h include
netinet/in.h (which is permitted by POSIX). This implementation takes a
stricter stance and only exposes the symbols which are specified by
POSIX.

Assisted by Gemini.



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