blob: 26ce10430794bbcdec6e6d394ba7b87a5add29b2 [file] [edit]
//===----------------------------------------------------------------------===//
//
// 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
/// Header file for getpwuid function.
///
//===----------------------------------------------------------------------===//
#ifndef LLVM_LIBC_SRC_PWD_GETPWUID_H
#define LLVM_LIBC_SRC_PWD_GETPWUID_H
#include "hdr/types/struct_passwd.h"
#include "hdr/types/uid_t.h"
#include "src/__support/macros/config.h"
namespace LIBC_NAMESPACE_DECL {
// Searches the password database for an entry with the matching user ID.
struct passwd *getpwuid(uid_t uid);
} // namespace LIBC_NAMESPACE_DECL
#endif // LLVM_LIBC_SRC_PWD_GETPWUID_H