diff options
author | Rob Landley <rob@landley.net> | 2016-08-13 15:19:29 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2016-08-13 15:19:29 -0500 |
commit | bc1ccaccb5b7ec71775a5eb7e529bb93811956ce (patch) | |
tree | b2b5b4015176a972cb6edd3ac6dc93651138e77c /lib/lib.h | |
parent | 4460e9f0ed16a3f4dea4dec13f90df9c956b4dc9 (diff) | |
download | toybox-bc1ccaccb5b7ec71775a5eb7e529bb93811956ce.tar.gz |
Move getusername/getgroupname to lib. (Return name or string representation
of number, but never NULL. Both returned in static buffer good through
next call.)
Diffstat (limited to 'lib/lib.h')
-rw-r--r-- | lib/lib.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -223,6 +223,8 @@ int readlinkat0(int dirfd, char *path, char *buf, int len); int readlink0(char *path, char *buf, int len); int regexec0(regex_t *preg, char *string, long len, int nmatch, regmatch_t pmatch[], int eflags); +char *getusername(uid_t uid); +char *getgroupname(gid_t gid); #define HR_SPACE 1 // Space between number and units #define HR_B 2 // Use "B" for single byte units |