Mercurial > hg > toybox
diff lib/lib.h @ 1730:90a7ed7ec30e draft
Factor out xgetgrnamid() and xgetpwnamid() into xwrap.c.
author | Rob Landley <rob@landley.net> |
---|---|
date | Thu, 12 Mar 2015 11:11:08 -0500 |
parents | b2b2d214727a |
children | 4d688f02feaa |
line wrap: on
line diff
--- a/lib/lib.h Wed Mar 11 23:05:54 2015 -0500 +++ b/lib/lib.h Thu Mar 12 11:11:08 2015 -0500 @@ -123,6 +123,8 @@ 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);