File: shadow.h

package info (click to toggle)
dietlibc 0.34~cvs20160606-10
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 11,336 kB
  • sloc: ansic: 71,631; asm: 13,006; cpp: 1,860; makefile: 799; sh: 292; perl: 62
file content (34 lines) | stat: -rw-r--r-- 982 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#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 */