toaruos/base/usr/include/pwd.h

29 lines
637 B
C
Raw Normal View History

2018-02-25 08:13:54 +03:00
#pragma once
2018-10-12 05:15:40 +03:00
#include <_cheader.h>
2018-10-09 14:35:53 +03:00
#include <stdio.h>
2018-02-25 08:13:54 +03:00
#include <sys/types.h>
2018-10-12 05:15:40 +03:00
_Begin_C_Header
2018-02-25 08:13:54 +03:00
struct passwd {
char * pw_name; // username
char * pw_passwd; // password (not meaningful)
uid_t pw_uid; // user id
gid_t pw_gid; // group id
char * pw_comment; // used for decoration settings in toaruos
char * pw_gecos; // full name
char * pw_dir; // home directory
char * pw_shell; // shell
};
struct passwd * fgetpwent(FILE * stream);
struct passwd * getpwent(void);
void setpwent(void);
void endpwent(void);
struct passwd * getpwnam(const char * name);
struct passwd * getpwuid(uid_t uid);
2018-10-12 05:15:40 +03:00
_End_C_Header