Lines Matching refs:pw
1193 int php_posix_passwd_to_array(struct passwd *pw, zval *return_value) /* {{{ */ in php_posix_passwd_to_array() argument
1195 if (NULL == pw) in php_posix_passwd_to_array()
1200 add_assoc_string(return_value, "name", pw->pw_name); in php_posix_passwd_to_array()
1201 add_assoc_string(return_value, "passwd", pw->pw_passwd); in php_posix_passwd_to_array()
1202 add_assoc_long (return_value, "uid", pw->pw_uid); in php_posix_passwd_to_array()
1203 add_assoc_long (return_value, "gid", pw->pw_gid); in php_posix_passwd_to_array()
1204 add_assoc_string(return_value, "gecos", pw->pw_gecos); in php_posix_passwd_to_array()
1205 add_assoc_string(return_value, "dir", pw->pw_dir); in php_posix_passwd_to_array()
1206 add_assoc_string(return_value, "shell", pw->pw_shell); in php_posix_passwd_to_array()
1215 struct passwd *pw; in PHP_FUNCTION() local
1234 pw = &pwbuf; in PHP_FUNCTION()
1237 if (getpwnam_r(name, pw, buf, buflen, &pw) || pw == NULL) { in PHP_FUNCTION()
1248 if (NULL == (pw = getpwnam(name))) { in PHP_FUNCTION()
1255 if (!php_posix_passwd_to_array(pw, return_value)) { in PHP_FUNCTION()
1278 struct passwd *pw; in PHP_FUNCTION() local
1303 pw = &_pw; in PHP_FUNCTION()
1305 if (NULL == (pw = getpwuid(uid))) { in PHP_FUNCTION()
1312 if (!php_posix_passwd_to_array(pw, return_value)) { in PHP_FUNCTION()