Lines Matching refs:pw
897 int php_posix_passwd_to_array(struct passwd *pw, zval *return_value) /* {{{ */ in php_posix_passwd_to_array() argument
899 if (NULL == pw) in php_posix_passwd_to_array()
904 add_assoc_string(return_value, "name", pw->pw_name); in php_posix_passwd_to_array()
905 add_assoc_string(return_value, "passwd", pw->pw_passwd); in php_posix_passwd_to_array()
906 add_assoc_long (return_value, "uid", pw->pw_uid); in php_posix_passwd_to_array()
907 add_assoc_long (return_value, "gid", pw->pw_gid); in php_posix_passwd_to_array()
908 add_assoc_string(return_value, "gecos", pw->pw_gecos); in php_posix_passwd_to_array()
909 add_assoc_string(return_value, "dir", pw->pw_dir); in php_posix_passwd_to_array()
910 add_assoc_string(return_value, "shell", pw->pw_shell); in php_posix_passwd_to_array()
918 struct passwd *pw; in PHP_FUNCTION() local
937 pw = &pwbuf; in PHP_FUNCTION()
940 if (getpwnam_r(name, pw, buf, buflen, &pw) || pw == NULL) { in PHP_FUNCTION()
951 if (NULL == (pw = getpwnam(name))) { in PHP_FUNCTION()
958 if (!php_posix_passwd_to_array(pw, return_value)) { in PHP_FUNCTION()
980 struct passwd *pw; in PHP_FUNCTION() local
1005 pw = &_pw; in PHP_FUNCTION()
1007 if (NULL == (pw = getpwuid(uid))) { in PHP_FUNCTION()
1014 if (!php_posix_passwd_to_array(pw, return_value)) { in PHP_FUNCTION()