Lines Matching refs:g
656 int php_posix_group_to_array(struct group *g, zval *array_group) /* {{{ */ in php_posix_group_to_array() argument
661 if (NULL == g) in php_posix_group_to_array()
669 add_assoc_string(array_group, "name", g->gr_name); in php_posix_group_to_array()
670 if (g->gr_passwd) { in php_posix_group_to_array()
671 add_assoc_string(array_group, "passwd", g->gr_passwd); in php_posix_group_to_array()
678 memcpy(&gr_mem, &g->gr_mem[count], sizeof(char *)); in php_posix_group_to_array()
686 add_assoc_long(array_group, "gid", g->gr_gid); in php_posix_group_to_array()
784 struct group *g; in PHP_FUNCTION() local
808 g = &gbuf; in PHP_FUNCTION()
810 err = getgrnam_r(name, g, buf, buflen, &g); in PHP_FUNCTION()
811 if (err || g == NULL) { in PHP_FUNCTION()
822 if (NULL == (g = getgrnam(name))) { in PHP_FUNCTION()
829 if (!php_posix_group_to_array(g, return_value)) { in PHP_FUNCTION()
851 struct group *g; in PHP_FUNCTION() local
882 g = &_g; in PHP_FUNCTION()
884 if (NULL == (g = getgrgid(gid))) { in PHP_FUNCTION()
891 if (!php_posix_group_to_array(g, return_value)) { in PHP_FUNCTION()