BarryServer : Git

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

// Related

OrionLibC

Barry Importing existing Orion LibC 03048a9 (2 years, 2 months ago)
diff --git a/include/pwd.h b/include/pwd.h
new file mode 100644
index 0000000..df872d4
--- /dev/null
+++ b/include/pwd.h
@@ -0,0 +1,20 @@
+#ifndef _PWD_H
+#define _PWD_H
+
+#include <sys/types.h>
+
+/* Structure of a password entry */
+typedef struct passwd {
+	char *username;
+	char *password;
+	uid_t uid;
+	gid_t gid;
+	char *info;
+	char *homedir;
+	char *shell;
+} Passwd;
+
+Passwd *getpwname(const char *username);
+Passwd *getpwuid(uid_t uid);
+
+#endif