libproc_pw(3)

libproc_pw3

Lookup ids in /etc/passwd and /etc/group

Usage

#include <proc/ps.h>

char *user_from_uid(uid_t uid);
char *group_from_gid(gid_t gid);

Overview

Both functions look up the numeric id and return a pointer to the name corresponding to the id. If they cannot find an entry matching id, they return a pointer to a string containing the id with a leading #.

Releases

Unchanged in 2 releases since Debian 1.2 (Rex).

  1. 1.2–1.3

Author

This manpage was written by Helmut Geyer <[email protected]>.

From libproc-dev 1.12.2 in Debian 1.3 (Bo). Parsed by carta from the page's man source.