您的位置:首页 > 运维架构 > Shell

error: 'struct passwd' has no member named 'pw_comment'

2012-06-05 23:38 876 查看
http://www.sics.se/man2html/getpwent.3v.html

 

getpwent()getpwuid() and getpwnam() each return a pointer to an object with the following structure containing the fields of a line in the password file.
Each line in the file contains a passwdstructure, declared in the <pwd.h> header file:

struct  passwd {
char    *pw_name;
char    *pw_passwd;
uid_t   pw_uid;
gid_t   pw_gid;
int     pw_quota;
char    *pw_comment;
char    *pw_gecos;
char    *pw_dir;
char    *pw_shell;
};
struct
passwd *getpwent(), *getpwuid(), *getpwnam();


 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
相关文章推荐