LibC: Add pw_passwd and pw_gecos to passwd structure

This information is available in /etc/passwd either way so why not
expose it to the user. Practically all UNIX-likes have these either way
This commit is contained in:
2025-06-02 12:23:06 +03:00
parent bbff9f89b0
commit 755d41ca4e
2 changed files with 16 additions and 11 deletions

View File

@@ -14,11 +14,13 @@ __BEGIN_DECLS
struct passwd
{
char* pw_name; /* User's login name. */
uid_t pw_uid; /* Numerical user ID. */
gid_t pw_gid; /* Numerical group ID. */
char* pw_dir; /* Initial working directory. */
char* pw_shell; /* Program to use as shell. */
char* pw_name; /* User's login name. */
char* pw_passwd; /* User's hashed password. */
uid_t pw_uid; /* Numerical user ID. */
gid_t pw_gid; /* Numerical group ID. */
char* pw_gecos; /* User's information. */
char* pw_dir; /* Initial working directory. */
char* pw_shell; /* Program to use as shell. */
};
void endpwent(void);