opuntiaOS - an operating system targeting x86 and ARMv7
at master 449 B view raw
1#ifndef _LIBC_SHADOW_H 2#define _LIBC_SHADOW_H 3 4#include <sys/cdefs.h> 5#include <sys/types.h> 6 7__BEGIN_DECLS 8 9struct spwd { 10 char* sp_namp; 11 char* sp_pwdp; 12 int sp_lstchg; 13 int sp_min; 14 int sp_max; 15 int sp_warn; 16 int sp_inact; 17 int sp_expire; 18 uint32_t sp_flag; 19}; 20 21typedef struct spwd spwd_t; 22 23void setspent(); 24void endspent(); 25spwd_t* getspent(); 26spwd_t* getspnam(const char* name); 27 28__END_DECLS 29 30#endif // _LIBC_SHADOW_H