Lines Matching refs:pw
902 int php_posix_passwd_to_array(struct passwd *pw, zval *return_value) /* {{{ */ in php_posix_passwd_to_array() argument
904 if (NULL == pw) in php_posix_passwd_to_array()
909 add_assoc_string(return_value, "name", pw->pw_name); in php_posix_passwd_to_array()
910 add_assoc_string(return_value, "passwd", pw->pw_passwd); in php_posix_passwd_to_array()
911 add_assoc_long (return_value, "uid", pw->pw_uid); in php_posix_passwd_to_array()
912 add_assoc_long (return_value, "gid", pw->pw_gid); in php_posix_passwd_to_array()
913 add_assoc_string(return_value, "gecos", pw->pw_gecos); in php_posix_passwd_to_array()
914 add_assoc_string(return_value, "dir", pw->pw_dir); in php_posix_passwd_to_array()
915 add_assoc_string(return_value, "shell", pw->pw_shell); in php_posix_passwd_to_array()
923 struct passwd *pw; in PHP_FUNCTION() local
949 pw = &pwbuf; in PHP_FUNCTION()
950 err = getpwnam_r(name, pw, buf, buflen, &pw); in PHP_FUNCTION()
951 if (err || pw == NULL) { in PHP_FUNCTION()
962 if (NULL == (pw = getpwnam(name))) { in PHP_FUNCTION()
969 if (!php_posix_passwd_to_array(pw, return_value)) { in PHP_FUNCTION()
991 struct passwd *pw; in PHP_FUNCTION() local
1020 pw = &_pw; in PHP_FUNCTION()
1022 if (NULL == (pw = getpwuid(uid))) { in PHP_FUNCTION()
1029 if (!php_posix_passwd_to_array(pw, return_value)) { in PHP_FUNCTION()