Lines Matching refs:pwd
101 struct passwd *pwd, *pres1; in main() local
116 pwd = (struct passwd*)malloc(sizeof(struct passwd)); in main()
118 pres1 = getpwnam_r("hr", pwd, buffer, sizeof(buffer)); in main()
123 printf("Name: %s\n", pwd->pw_name); in main()
124 printf("Passwd: %s\n", pwd->pw_passwd); in main()
125 printf("Uid: %d\n", pwd->pw_uid); in main()
126 printf("Gid: %d\n", pwd->pw_gid); in main()
128 printf("Change: %s", ctime(&pwd->pw_change)); in main()
129 printf("Class: %s\n", pwd->pw_class); in main()
131 printf("Age: %s\n", pwd->pw_age); in main()
132 printf("Comment: %s\n", pwd->pw_comment); in main()
134 printf("Gecos: %s\n", pwd->pw_gecos); in main()
135 printf("Dir: %s\n", pwd->pw_dir); in main()
136 printf("Shell: %s\n", pwd->pw_shell); in main()
141 free(pwd); in main()