Searched refs:pwent (Results 1 - 12 of 12) sorted by relevance

/external/ltp/testcases/kernel/syscalls/getegid/
H A Dgetegid02.c43 struct passwd *pwent; local
59 pwent = getpwuid(euid);
61 if (pwent == NULL)
65 GID16_CHECK(pwent->pw_gid, getegid, cleanup);
67 if (pwent->pw_gid != TEST_RETURN) {
70 TEST_RETURN, pwent->pw_gid);
/external/ltp/testcases/kernel/syscalls/geteuid/
H A Dgeteuid02.c34 struct passwd *pwent; local
51 pwent = getpwuid(uid);
53 if (pwent == NULL)
56 UID16_CHECK(pwent->pw_uid, geteuid, cleanup);
57 if (pwent->pw_uid != TEST_RETURN)
60 "value, %ld", pwent->pw_uid,
/external/ltp/testcases/kernel/syscalls/getgid/
H A Dgetgid03.c43 struct passwd *pwent; local
59 pwent = getpwuid(uid);
61 if (pwent == NULL)
65 GID16_CHECK(pwent->pw_gid, getgid, cleanup);
67 if (pwent->pw_gid != TEST_RETURN) {
70 TEST_RETURN, pwent->pw_gid);
/external/ltp/testcases/kernel/syscalls/getuid/
H A Dgetuid03.c41 struct passwd *pwent; local
59 pwent = getpwuid(uid);
61 if (pwent == NULL)
64 UID16_CHECK(pwent->pw_uid, getuid, cleanup);
66 if (pwent->pw_uid != TEST_RETURN)
69 "value, %ld", pwent->pw_uid,
/external/ltp/testcases/kernel/syscalls/readlink/
H A Dreadlink04.c109 struct passwd *pwent; local
121 if ((pwent = getpwnam("bin")) == NULL)
125 if (chown(tmp_dir, pwent->pw_uid, pwent->pw_gid) == -1)
150 if ((pwent = getpwnam("nobody")) == NULL)
153 if (seteuid(pwent->pw_uid) == -1)
/external/selinux/libselinux/src/
H A Dseusers.c97 struct passwd pwstorage, *pwent = NULL; local
105 int retval = getpwnam_r(name, &pwstorage, rbuf, rbuflen, &pwent);
106 if (retval == 0 && pwent) {
107 gid = pwent->pw_gid;
/external/python/cpython2/Demo/pdist/
H A Dcvslock.py178 pwent = pwd.getpwuid(uid)
179 user = pwent[0]
/external/selinux/libsemanage/src/
H A Dgenhomedircon.c977 struct passwd pwstorage, *pwent = NULL; local
1008 retval = getpwnam_r(name, &pwstorage, rbuf, rbuflen, &pwent);
1009 if (retval != 0 || pwent == NULL) {
1020 int len = strlen(pwent->pw_dir) -1;
1021 for(; len > 0 && pwent->pw_dir[len] == '/'; len--) {
1022 pwent->pw_dir[len] = '\0';
1025 if (strcmp(pwent->pw_dir, "/") == 0) {
1033 if (ignore(pwent->pw_dir)) {
1038 len = snprintf(uid, sizeof(uid), "%u", pwent->pw_uid);
1043 len = snprintf(gid, sizeof(gid), "%u", pwent
[all...]
/external/openssh/
H A Dmonitor.c702 struct passwd *pwent; local
713 pwent = getpwnamallow(username);
716 setproctitle("%s [priv]", pwent ? username : "unknown");
721 if (pwent == NULL) {
728 authctxt->pw = pwent;
732 buffer_put_string(m, pwent, sizeof(struct passwd));
733 buffer_put_cstring(m, pwent->pw_name);
736 buffer_put_cstring(m, pwent->pw_gecos);
739 buffer_put_cstring(m, pwent->pw_class);
741 buffer_put_cstring(m, pwent
[all...]
/external/python/cpython2/Lib/
H A Dposixpath.py268 pwent = pwd.getpwnam(path[1:i])
271 userhome = pwent.pw_dir
/external/sqlite/dist/orig/
H A Dshell.c6929 struct passwd *pwent; local
6931 if( (pwent=getpwuid(uid)) != NULL) {
6932 home_dir = pwent->pw_dir;
/external/sqlite/dist/
H A Dshell.c6951 struct passwd *pwent; local
6953 if( (pwent=getpwuid(uid)) != NULL) {
6954 home_dir = pwent->pw_dir;

Completed in 268 milliseconds