From b8140d18800e7094cdacb0a61526f46181dc132d Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Thu, 12 Mar 2015 11:11:08 -0500 Subject: Factor out xgetgrnamid() and xgetpwnamid() into xwrap.c. --- lib/lib.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/lib.h') diff --git a/lib/lib.h b/lib/lib.h index e5667517..d8a1503e 100644 --- a/lib/lib.h +++ b/lib/lib.h @@ -123,6 +123,8 @@ struct passwd *xgetpwuid(uid_t uid); struct group *xgetgrgid(gid_t gid); struct passwd *xgetpwnam(char *name); struct group *xgetgrnam(char *name); +struct passwd *xgetpwnamid(char *user); +struct group *xgetgrnamid(char *group); void xsetuser(struct passwd *pwd); char *xreadlink(char *name); long xparsetime(char *arg, long units, long *fraction); -- cgit v1.2.3