BarryServer : Git

All the code for all my projects
// BarryServer : Git / OrionLibC / blob / 2e2f919ac415da5f75aeb6b83981b659fa5072eb / 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