Viewing: pwd.h
📄 pwd.h (Read Only) ⬅ To go back
#ifndef ULIBC_PWD_H
#define ULIBC_PWD_H

#include <stddef.h>

struct passwd {
    char*  pw_name;
    char*  pw_passwd;
    int    pw_uid;
    int    pw_gid;
    char*  pw_gecos;
    char*  pw_dir;
    char*  pw_shell;
};

struct passwd* getpwnam(const char* name);
struct passwd* getpwuid(int uid);
void           setpwent(void);
void           endpwent(void);
struct passwd* getpwent(void);

#endif