adjust mips crt_arch entry point asm to avoid assembler bugs
[musl.git] / include / pwd.h
blob55d9d42d379e9146d12c8e8a2fcd6f2b15af9288
1 #ifndef _PWD_H
2 #define _PWD_H
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
8 #include <features.h>
10 #define __NEED_size_t
11 #define __NEED_uid_t
12 #define __NEED_gid_t
14 #ifdef _GNU_SOURCE
15 #define __NEED_FILE
16 #endif
18 #include <bits/alltypes.h>
20 struct passwd
22 char *pw_name;
23 char *pw_passwd;
24 uid_t pw_uid;
25 gid_t pw_gid;
26 char *pw_gecos;
27 char *pw_dir;
28 char *pw_shell;
31 void setpwent (void);
32 void endpwent (void);
33 struct passwd *getpwent (void);
35 struct passwd *getpwuid (uid_t);
36 struct passwd *getpwnam (const char *);
37 int getpwuid_r (uid_t, struct passwd *, char *, size_t, struct passwd **);
38 int getpwnam_r (const char *, struct passwd *, char *, size_t, struct passwd **);
40 #ifdef _GNU_SOURCE
41 struct passwd *fgetpwent(FILE *);
42 int putpwent(const struct passwd *, FILE *);
43 #endif
45 #ifdef __cplusplus
47 #endif
49 #endif