BarryServer : Git

All the code for all my projects
// BarryServer : Git / OrionLibC / commit / 11f4683b13d097219efe4887820b96d54ffee02c / include / pwd.h

// Related

OrionLibC

Barry Using POSIX names for structs 11f4683 (2 years, 2 months ago)
diff --git a/include/pwd.h b/include/pwd.h
index df872d4..840ef6c 100644
--- a/include/pwd.h
+++ b/include/pwd.h
@@ -5,16 +5,16 @@
 
 /* Structure of a password entry */
 typedef struct passwd {
-	char *username;
-	char *password;
-	uid_t uid;
-	gid_t gid;
-	char *info;
-	char *homedir;
-	char *shell;
+	char *pw_name;
+	char *pw_passwd;
+	uid_t pw_uid;
+	gid_t pw_gid;
+	char *pw_gecos;
+	char *pw_dir;
+	char *pw_shell;
 } Passwd;
 
-Passwd *getpwname(const char *username);
+Passwd *getpwnam(const char *username);
 Passwd *getpwuid(uid_t uid);
 
 #endif