library: rename clashing pwcache functions
On MacOS the system already has user_from_uid and group_from_gid. These are renamed pwcache_get_user and pwcache_get_group. For the old library, pwcache_get_user needs to be exported for skill. References: https://gitlab.com/procps-ng/procps/issues/34 Signed-off-by: Craig Small <csmall@enc.com.au>
This commit is contained in:
@ -41,7 +41,7 @@ static struct pwbuf {
|
||||
char name[P_G_SZ];
|
||||
} *pwhash[HASHSIZE];
|
||||
|
||||
char *user_from_uid(uid_t uid) {
|
||||
char *pwcache_get_user(uid_t uid) {
|
||||
struct pwbuf **p;
|
||||
struct passwd *pw;
|
||||
|
||||
@ -69,7 +69,7 @@ static struct grpbuf {
|
||||
char name[P_G_SZ];
|
||||
} *grphash[HASHSIZE];
|
||||
|
||||
char *group_from_gid(gid_t gid) {
|
||||
char *pwcache_get_group(gid_t gid) {
|
||||
struct grpbuf **g;
|
||||
struct group *gr;
|
||||
|
||||
|
Reference in New Issue
Block a user