version 1.17, 2004/07/13 21:09:47 |
version 1.18, 2005/12/13 00:35:22 |
|
|
#ifndef _PWD_H_ |
#ifndef _PWD_H_ |
#define _PWD_H_ |
#define _PWD_H_ |
|
|
|
#include <sys/cdefs.h> |
#include <sys/types.h> |
#include <sys/types.h> |
|
|
#ifndef _POSIX_SOURCE |
#if __BSD_VISIBLE |
#define _PATH_PASSWD "/etc/passwd" |
#define _PATH_PASSWD "/etc/passwd" |
#define _PATH_MASTERPASSWD "/etc/master.passwd" |
#define _PATH_MASTERPASSWD "/etc/master.passwd" |
#define _PATH_MASTERPASSWD_LOCK "/etc/ptmp" |
#define _PATH_MASTERPASSWD_LOCK "/etc/ptmp" |
|
|
time_t pw_expire; /* account expiration */ |
time_t pw_expire; /* account expiration */ |
}; |
}; |
|
|
#include <sys/cdefs.h> |
|
|
|
__BEGIN_DECLS |
__BEGIN_DECLS |
struct passwd *getpwuid(uid_t); |
struct passwd *getpwuid(uid_t); |
struct passwd *getpwnam(const char *); |
struct passwd *getpwnam(const char *); |
#ifndef _POSIX_SOURCE |
#if __BSD_VISIBLE || __XPG_VISIBLE |
struct passwd *getpwent(void); |
struct passwd *getpwent(void); |
#ifndef _XOPEN_SOURCE |
void setpwent(void); |
|
void endpwent(void); |
|
#endif |
|
#if __BSD_VISIBLE |
int setpassent(int); |
int setpassent(int); |
char *user_from_uid(uid_t, int); |
char *user_from_uid(uid_t, int); |
char *bcrypt_gensalt(u_int8_t); |
char *bcrypt_gensalt(u_int8_t); |
char *bcrypt(const char *, const char *); |
char *bcrypt(const char *, const char *); |
char *md5crypt(const char *, const char *); |
char *md5crypt(const char *, const char *); |
struct passwd *pw_dup(const struct passwd *); |
struct passwd *pw_dup(const struct passwd *); |
#endif |
|
void setpwent(void); |
|
void endpwent(void); |
|
#endif |
#endif |
__END_DECLS |
__END_DECLS |
|
|