mirror of
https://github.com/siemens-mobile-hacks/siemens-process-library.git
synced 2026-11-25 23:57:42 +00:00
34 lines
982 B
C
Executable file
34 lines
982 B
C
Executable file
#ifndef _SHADOW_H
|
|
#define _SHADOW_H
|
|
|
|
#include <sys/cdefs.h>
|
|
#include <sys/types.h>
|
|
|
|
__BEGIN_DECLS
|
|
|
|
struct spwd {
|
|
char* sp_namp; /* user login name */
|
|
char* sp_pwdp; /* encrypted password */
|
|
long sp_lstchg; /* last password change */
|
|
int sp_min; /* days until change allowed. */
|
|
int sp_max; /* days before change required */
|
|
int sp_warn; /* days warning for expiration */
|
|
int sp_inact; /* days before account inactive */
|
|
int sp_expire; /* date when account expires */
|
|
int sp_flag; /* reserved for future use */
|
|
};
|
|
|
|
extern struct spwd* getspent(void) __THROW;
|
|
extern void setspent(void) __THROW;
|
|
extern void endspent(void) __THROW;
|
|
extern struct spwd* getspnam (const char* __name) __THROW;
|
|
|
|
int getspent_r(struct spwd* res, char* buf, size_t buflen,
|
|
struct spwd** res_sig) __THROW;
|
|
int getspnam_r(const char* name,
|
|
struct spwd* res, char* buf, size_t buflen,
|
|
struct spwd** res_sig) __THROW;
|
|
|
|
__END_DECLS
|
|
|
|
#endif /* _SHADOW_H */
|