xref: /aosp_15_r20/prebuilts/build-tools/sysroots/aarch64-unknown-linux-musl/include/shadow.h (revision cda5da8d549138a6648c5ee6d7a49cf8f4a657be)
1*cda5da8dSAndroid Build Coastguard Worker #ifndef _SHADOW_H
2*cda5da8dSAndroid Build Coastguard Worker #define _SHADOW_H
3*cda5da8dSAndroid Build Coastguard Worker 
4*cda5da8dSAndroid Build Coastguard Worker #ifdef __cplusplus
5*cda5da8dSAndroid Build Coastguard Worker extern "C" {
6*cda5da8dSAndroid Build Coastguard Worker #endif
7*cda5da8dSAndroid Build Coastguard Worker 
8*cda5da8dSAndroid Build Coastguard Worker #define	__NEED_FILE
9*cda5da8dSAndroid Build Coastguard Worker #define __NEED_size_t
10*cda5da8dSAndroid Build Coastguard Worker 
11*cda5da8dSAndroid Build Coastguard Worker #include <bits/alltypes.h>
12*cda5da8dSAndroid Build Coastguard Worker 
13*cda5da8dSAndroid Build Coastguard Worker #define	SHADOW "/etc/shadow"
14*cda5da8dSAndroid Build Coastguard Worker 
15*cda5da8dSAndroid Build Coastguard Worker struct spwd {
16*cda5da8dSAndroid Build Coastguard Worker 	char *sp_namp;
17*cda5da8dSAndroid Build Coastguard Worker 	char *sp_pwdp;
18*cda5da8dSAndroid Build Coastguard Worker 	long sp_lstchg;
19*cda5da8dSAndroid Build Coastguard Worker 	long sp_min;
20*cda5da8dSAndroid Build Coastguard Worker 	long sp_max;
21*cda5da8dSAndroid Build Coastguard Worker 	long sp_warn;
22*cda5da8dSAndroid Build Coastguard Worker 	long sp_inact;
23*cda5da8dSAndroid Build Coastguard Worker 	long sp_expire;
24*cda5da8dSAndroid Build Coastguard Worker 	unsigned long sp_flag;
25*cda5da8dSAndroid Build Coastguard Worker };
26*cda5da8dSAndroid Build Coastguard Worker 
27*cda5da8dSAndroid Build Coastguard Worker void setspent(void);
28*cda5da8dSAndroid Build Coastguard Worker void endspent(void);
29*cda5da8dSAndroid Build Coastguard Worker struct spwd *getspent(void);
30*cda5da8dSAndroid Build Coastguard Worker struct spwd *fgetspent(FILE *);
31*cda5da8dSAndroid Build Coastguard Worker struct spwd *sgetspent(const char *);
32*cda5da8dSAndroid Build Coastguard Worker int putspent(const struct spwd *, FILE *);
33*cda5da8dSAndroid Build Coastguard Worker 
34*cda5da8dSAndroid Build Coastguard Worker struct spwd *getspnam(const char *);
35*cda5da8dSAndroid Build Coastguard Worker int getspnam_r(const char *, struct spwd *, char *, size_t, struct spwd **);
36*cda5da8dSAndroid Build Coastguard Worker 
37*cda5da8dSAndroid Build Coastguard Worker int lckpwdf(void);
38*cda5da8dSAndroid Build Coastguard Worker int ulckpwdf(void);
39*cda5da8dSAndroid Build Coastguard Worker 
40*cda5da8dSAndroid Build Coastguard Worker #ifdef __cplusplus
41*cda5da8dSAndroid Build Coastguard Worker }
42*cda5da8dSAndroid Build Coastguard Worker #endif
43*cda5da8dSAndroid Build Coastguard Worker 
44*cda5da8dSAndroid Build Coastguard Worker #endif
45