API is the same as getgrgid(), errors are indicated by a NULL return;
consult errno for the error cause (zero it before calling).
- The returned value must be freed using pa_xfree().
*/
struct group *pa_getgrgid_malloc(gid_t gid) {
size_t buflen, getgr_buflen;
API is the same as getgrnam(), errors are indicated by a NULL return;
consult errno for the error cause (zero it before calling).
- The returned value must be freed using pa_xfree().
*/
struct group *pa_getgrnam_malloc(const char *name) {
size_t buflen, getgr_buflen;
API is the same as getpwnam(), errors are indicated by a NULL return;
consult errno for the error cause (zero it before calling).
- The returned value must be freed using pa_xfree().
*/
struct passwd *pa_getpwnam_malloc(const char *name) {
size_t buflen, getpw_buflen;
API is the same as getpwuid(), errors are indicated by a NULL return;
consult errno for the error cause (zero it before calling).
- The returned value must be freed using pa_xfree().
*/
struct passwd *pa_getpwuid_malloc(uid_t uid) {
size_t buflen, getpw_buflen;