projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
expose memmem under baseline POSIX feature profile
[musl]
/
include
/
pwd.h
diff --git
a/include/pwd.h
b/include/pwd.h
index
91fe426
..
4f470b5
100644
(file)
--- a/
include/pwd.h
+++ b/
include/pwd.h
@@
-17,8
+17,7
@@
extern "C" {
#include <bits/alltypes.h>
#include <bits/alltypes.h>
-struct passwd
-{
+struct passwd {
char *pw_name;
char *pw_passwd;
uid_t pw_uid;
char *pw_name;
char *pw_passwd;
uid_t pw_uid;
@@
-28,9
+27,11
@@
struct passwd
char *pw_shell;
};
char *pw_shell;
};
+#if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
void setpwent (void);
void endpwent (void);
struct passwd *getpwent (void);
void setpwent (void);
void endpwent (void);
struct passwd *getpwent (void);
+#endif
struct passwd *getpwuid (uid_t);
struct passwd *getpwnam (const char *);
struct passwd *getpwuid (uid_t);
struct passwd *getpwnam (const char *);
@@
-39,6
+40,7
@@
int getpwnam_r (const char *, struct passwd *, char *, size_t, struct passwd **)
#ifdef _GNU_SOURCE
struct passwd *fgetpwent(FILE *);
#ifdef _GNU_SOURCE
struct passwd *fgetpwent(FILE *);
+int putpwent(const struct passwd *, FILE *);
#endif
#ifdef __cplusplus
#endif
#ifdef __cplusplus