---
name: "Cpwd"
section: "3"
platform: "linux"
package: "liblcgdm-dev"
version: "1.10.0-2+b3"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/Cpwd"
---

# Cpwd(3)

LCG Password file Thread-Safe inferface

## NAME

**Cpwd** - **LCG** **P**ass**w**or**d** file Thread-Safe inferface

## SYNOPSIS

**#include \<Cpwd.h\>**

**struct passwd \*Cgetpwnam(char \****name***);**

**struct passwd \*Cgetpwuid(uid\_t** *uid***);**

## ERRORS

If the **Cthread** interface is chosen and activated, the errors value are in the **serrno** variable.

## DESCRIPTION

**Cpwd** is a common Thread-Safe API interface to get entries in the password file vs. **name** or **uid.**

## SEE ALSO

**serrno**, **getpwnam**, **getpwuid**

## AUTHOR

**LCG Grid Deployment** Team
