#include <sys/types.h>
#include <stdlib.h>
#include <pwd.h>
+#include <grp.h>
+
#include "alloc.h"
#include "pwcache.h"
-#include <grp.h>
+#include "procps-private.h"
// might as well fill cache lines... else we waste memory anyway
char name[P_G_SZ];
} *pwhash[HASHSIZE];
-char *user_from_uid(uid_t uid) {
+PROCPS_EXPORT char *user_from_uid(uid_t uid) {
struct pwbuf **p;
struct passwd *pw;
char name[P_G_SZ];
} *grphash[HASHSIZE];
-char *group_from_gid(gid_t gid) {
+PROCPS_EXPORT char *group_from_gid(gid_t gid) {
struct grpbuf **g;
struct group *gr;
// used in pwcache and in readproc to set size of username or groupname
#define P_G_SZ 33
-extern char *user_from_uid(uid_t uid);
-extern char *group_from_gid(gid_t gid);
+char *user_from_uid(uid_t uid);
+char *group_from_gid(gid_t gid);
__END_DECLS