[libc-commits] [libc] [libc] Add struct sockaddr_in (PR #197909)
Jeff Bailey via libc-commits
libc-commits at lists.llvm.org
Fri May 15 05:31:49 PDT 2026
================
@@ -0,0 +1,35 @@
+//===----------------------------------------------------------------------===//
+//
+// 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
+//
+//===----------------------------------------------------------------------===//
+///
+/// \file
+/// Definition of struct sockaddr_in.
+///
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_LIBC_TYPES_STRUCT_SOCKADDR_IN_H
+#define LLVM_LIBC_TYPES_STRUCT_SOCKADDR_IN_H
+
+#include "in_port_t.h"
+#include "sa_family_t.h"
+#include "struct_in_addr.h"
+
+// This is the sockaddr specialization for AF_INET sockets, as
----------------
kaladron wrote:
This isn't critical, but I wonder if this should be a doxygen comment on top (since we're introducing \file, I've been wondering what else we should be doing) (OK to not do this, just as a thought)
https://github.com/llvm/llvm-project/pull/197909
More information about the libc-commits
mailing list