Mercurial > hg > toybox
comparison 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 |
comparison
equal
deleted
inserted
replaced
1729:801eba977271 | 1730:90a7ed7ec30e |
---|---|
121 void xchroot(char *path); | 121 void xchroot(char *path); |
122 struct passwd *xgetpwuid(uid_t uid); | 122 struct passwd *xgetpwuid(uid_t uid); |
123 struct group *xgetgrgid(gid_t gid); | 123 struct group *xgetgrgid(gid_t gid); |
124 struct passwd *xgetpwnam(char *name); | 124 struct passwd *xgetpwnam(char *name); |
125 struct group *xgetgrnam(char *name); | 125 struct group *xgetgrnam(char *name); |
126 struct passwd *xgetpwnamid(char *user); | |
127 struct group *xgetgrnamid(char *group); | |
126 void xsetuser(struct passwd *pwd); | 128 void xsetuser(struct passwd *pwd); |
127 char *xreadlink(char *name); | 129 char *xreadlink(char *name); |
128 long xparsetime(char *arg, long units, long *fraction); | 130 long xparsetime(char *arg, long units, long *fraction); |
129 void xpidfile(char *name); | 131 void xpidfile(char *name); |
130 void xregcomp(regex_t *preg, char *rexec, int cflags); | 132 void xregcomp(regex_t *preg, char *rexec, int cflags); |