Searched refs:grbuflen (Results 1 – 2 of 2) sorted by relevance
/PHP-8.2/ext/posix/ |
H A D | posix.c | 792 long grbuflen; in PHP_FUNCTION() local 803 grbuflen = sysconf(_SC_GETGR_R_SIZE_MAX); in PHP_FUNCTION() 804 if (grbuflen < 1) { in PHP_FUNCTION() 805 grbuflen = 1024; in PHP_FUNCTION() 809 grbuflen = 1; in PHP_FUNCTION() 812 grbuf = emalloc(grbuflen); in PHP_FUNCTION() 815 err = getgrgid_r(gid, &_g, grbuf, grbuflen, &retgrptr); in PHP_FUNCTION() 818 grbuflen *= 2; in PHP_FUNCTION() 819 grbuf = erealloc(grbuf, grbuflen); in PHP_FUNCTION()
|
/PHP-8.2/ext/standard/ |
H A D | filestat.c | 314 long grbuflen = sysconf(_SC_GETGR_R_SIZE_MAX); in php_get_gid_by_name() local 318 if (grbuflen < 1) { in php_get_gid_by_name() 319 grbuflen = 1024; in php_get_gid_by_name() 323 grbuflen = 1; in php_get_gid_by_name() 325 grbuf = emalloc(grbuflen); in php_get_gid_by_name() 328 err = getgrnam_r(name, &gr, grbuf, grbuflen, &retgrptr); in php_get_gid_by_name() 331 grbuflen *= 2; in php_get_gid_by_name() 332 grbuf = erealloc(grbuf, grbuflen); in php_get_gid_by_name()
|
Completed in 11 milliseconds