Home
last modified time | relevance | path

Searched refs:my_passwd (Results 1 – 2 of 2) sorted by relevance

/glibc-2.36/grp/
Dtestgrp.c12 struct passwd *my_passwd; in main() local
17 my_passwd = getpwuid (me); in main()
18 if (my_passwd == NULL) in main()
22 printf ("My login name is %s.\n", my_passwd->pw_name); in main()
23 printf ("My uid is %d.\n", (int)(my_passwd->pw_uid)); in main()
24 printf ("My home directory is %s.\n", my_passwd->pw_dir); in main()
25 printf ("My default shell is %s.\n", my_passwd->pw_shell); in main()
27 my_group = getgrgid (my_passwd->pw_gid); in main()
29 printf ("No data for group %d found\n", my_passwd->pw_gid); in main()
33 my_group->gr_name, (int)(my_passwd->pw_gid)); in main()
[all …]
/glibc-2.36/manual/examples/
Ddb.c28 struct passwd *my_passwd; in main() local
34 my_passwd = getpwuid (me); in main()
35 if (!my_passwd) in main()
42 printf ("I am %s.\n", my_passwd->pw_gecos); in main()
43 printf ("My login name is %s.\n", my_passwd->pw_name); in main()
44 printf ("My uid is %d.\n", (int) (my_passwd->pw_uid)); in main()
45 printf ("My home directory is %s.\n", my_passwd->pw_dir); in main()
46 printf ("My default shell is %s.\n", my_passwd->pw_shell); in main()
49 my_group = getgrgid (my_passwd->pw_gid); in main()
53 (int) my_passwd->pw_gid); in main()
[all …]