d4ddc96bc1
Nowadays the usernames can be 32 characters long (typically OpenShift usernames use the whole length) and the old limit was preventing us from processing them correctly. The macro change affects the proc_t structure size.
18 lines
313 B
C
18 lines
313 B
C
#ifndef PROCPS_PROC_PWCACHE_H
|
|
#define PROCPS_PROC_PWCACHE_H
|
|
|
|
#include <sys/types.h>
|
|
#include "procps.h"
|
|
|
|
EXTERN_C_BEGIN
|
|
|
|
// 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);
|
|
|
|
EXTERN_C_END
|
|
|
|
#endif
|