Struct passwd 和 struct spwd
来源:互联网 发布:淘宝中奖客服电话 编辑:程序博客网 时间:2024/05/01 21:19
《UNIX高级环境编程》中没有给出struct passwd和struct spwd。查阅资料,如下:
struct passwd { char * pw_name; /* Username, POSIX.1 */ char * pw_passwd; /* Password */ __uid_t pw_uid; /* User ID, POSIX.1 */ __gid_t pw_gid; /* Group ID, POSIX.1 */ char * pw_gecos; /* Real Name or Comment field */ char * pw_dir; /* Home directory, POSIX.1 */ char * pw_shell; /* Shell Program, POSIX.1 */ }; struct spwd { char *sp_namp; /* Login name */ char *sp_pwdp; /* Encrypted password */ long int sp_lstchg; /* Date of last change */ long int sp_min; /* Minimum number of days between changes */ long int sp_max; /* Maximum number of days between changes */ long int sp_warn; /* Number of days to warn user to change the password */ long int sp_inact; /* Number of days the account may be inactive */ long int sp_expire; /* Number of days since 1970-01-01 until account expires */ unsigned long int sp_flag; /* Reserved */};
0 0
- Struct passwd 和 struct spwd
- struct passwd
- struct passwd
- struct和typedef struct
- struct和typedef struct
- struct和typedef struct
- struct 和 typedef struct
- struct和typedef struct
- struct和typedef struct
- struct和typedef struct
- struct和typedef struct
- struct和typedef struct
- typedef struct和struct
- struct和typedef struct
- struct和typedef struct
- struct和typedef struct
- struct和typedef struct
- struct和typedef struct
- 设计模式——工厂模式
- atoi函数实现
- OrderedDict 有序字典以及读取json串时如何保持原有顺序
- C++模板详解
- Why MVC is Better?(翻译)
- Struct passwd 和 struct spwd
- 开启大数据、云计算之旅
- C++中的try catch语句
- jndi作用
- 最短路算法合集
- Modularity(模块性)
- wooyoo平台使用视频
- win7下用u盘安装ubuntu系统注意事项
- 如何解读返回函数指针的函数声明