shadow.h
#ifndef _SHADOW_H
#define _SHADOW_H 1
#include
#include
#define __need_FILE
#include
#define __need_size_t
#include
#define SHADOW _PATH_SHADOW
__BEGIN_DECLS
struct spwd
{
char *sp_namp;
char *sp_pwdp;
long int sp_lstchg;
long int sp_min;
long int sp_max;
long int sp_warn;
long int sp_inact;
long int sp_expire;
unsigned long int sp_flag;
};
extern void setspent (void);
extern void endspent (void);
extern struct spwd *getspent (void);
extern struct spwd *getspnam (__const char *__name);
extern struct spwd *sgetspent (__const char *__string);
extern struct spwd *fgetspent (FILE *__stream);
extern int putspent (__const struct spwd *__p, FILE *__stream);
#ifdef __USE_MISC
extern int getspent_r (struct spwd *__result_buf, char *__buffer,
size_t __buflen, struct spwd **__result);
extern int getspnam_r (__const char *__name, struct spwd *__result_buf,
char *__buffer, size_t __buflen,
struct spwd **__result);
extern int sgetspent_r (__const char *__string, struct spwd *__result_buf,
char *__buffer, size_t __buflen,
struct spwd **__result);
extern int fgetspent_r (FILE *__stream, struct spwd *__result_buf,
char *__buffer, size_t __buflen,
struct spwd **__result);
#endif
extern int lckpwdf (void) __THROW;
extern int ulckpwdf (void) __THROW;
__END_DECLS
#endif
|
|