Skip to content

Commit

Permalink
Use gid_t and uid_t in passwd.h (#995)
Browse files Browse the repository at this point in the history
  • Loading branch information
tempoz authored Dec 9, 2023
1 parent e16a7d8 commit a11016e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions third_party/musl/passwd.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ struct FILE;
struct passwd {
char *pw_name;
char *pw_passwd;
uint32_t pw_uid;
uint32_t pw_gid;
uid_t pw_uid;
gid_t pw_gid;
char *pw_gecos;
char *pw_dir;
char *pw_shell;
Expand All @@ -18,17 +18,17 @@ struct passwd {
void setpwent(void);
void endpwent(void);
struct passwd *getpwent(void);
struct passwd *getpwuid(uint32_t);
struct passwd *getpwuid(uid_t);
struct passwd *getpwnam(const char *);
int getpwuid_r(uint32_t, struct passwd *, char *, size_t, struct passwd **);
int getpwuid_r(uid_t, struct passwd *, char *, size_t, struct passwd **);
int getpwnam_r(const char *, struct passwd *, char *, size_t, struct passwd **);
struct passwd *fgetpwent(struct FILE *);
int putpwent(const struct passwd *, struct FILE *);

struct group {
char *gr_name;
char *gr_passwd;
int32_t gr_gid;
gid_t gr_gid;
char **gr_mem;
};

Expand Down

0 comments on commit a11016e

Please sign in to comment.