#include <string.h> extern int getpwnam_r (const char *name, struct passwd *resultbuf, char *buffer, size_t buflen, struct passwd **result)
Reentrant version of getpwnam. The additional arguments resultsbuf and buffer are for internal storage, buflen the size of the buffer, and result is the password structure used to return the requested information.