BarryServer : Git

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

// Related

OrionLibC

Barry Using POSIX names for structs 11f4683 (2 years, 2 months ago)
#ifndef _PWD_H
#define _PWD_H

#include <sys/types.h>

/* Structure of a password entry */
typedef struct passwd {
	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 *getpwnam(const char *username);
Passwd *getpwuid(uid_t uid);

#endif