[libc-commits] [libc] [libc] Add struct passwd type, pwd.yaml, and pwd_utils parser (PR #212421)
Alexey Samsonov via libc-commits
libc-commits at lists.llvm.org
Tue Jul 28 08:23:34 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
+/// Declarations of helper functions for pwd.
+///
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_LIBC_SRC_PWD_PWD_UTILS_H
+#define LLVM_LIBC_SRC_PWD_PWD_UTILS_H
+
+#include "hdr/types/struct_passwd.h"
+#include "src/__support/error_or.h"
+#include "src/__support/macros/config.h"
+
+namespace LIBC_NAMESPACE_DECL {
+namespace internal {
+
+/// Parses a colon-separated password database line into a struct passwd.
----------------
vonosmas wrote:
I don't think we typically use that style of function comments.
https://github.com/llvm/llvm-project/pull/212421
More information about the libc-commits
mailing list