Lines Matching refs:buflen
454 zend_long buflen; in PHP_FUNCTION() local
479 buflen = sysconf(_SC_TTY_NAME_MAX); in PHP_FUNCTION()
480 if (buflen < 1) { in PHP_FUNCTION()
481 buflen = 32; in PHP_FUNCTION()
485 buflen = 1; in PHP_FUNCTION()
487 p = emalloc(buflen); in PHP_FUNCTION()
490 err = ttyname_r(fd, p, buflen); in PHP_FUNCTION()
493 buflen *= 2; in PHP_FUNCTION()
494 p = erealloc(p, buflen); in PHP_FUNCTION()
788 long buflen; in PHP_FUNCTION() local
798 buflen = sysconf(_SC_GETGR_R_SIZE_MAX); in PHP_FUNCTION()
799 if (buflen < 1) { in PHP_FUNCTION()
800 buflen = 1024; in PHP_FUNCTION()
804 buflen = 1; in PHP_FUNCTION()
806 buf = emalloc(buflen); in PHP_FUNCTION()
810 err = getgrnam_r(name, g, buf, buflen, &g); in PHP_FUNCTION()
813 buflen *= 2; in PHP_FUNCTION()
814 buf = erealloc(buf, buflen); in PHP_FUNCTION()
928 long buflen; in PHP_FUNCTION() local
938 buflen = sysconf(_SC_GETPW_R_SIZE_MAX); in PHP_FUNCTION()
939 if (buflen < 1) { in PHP_FUNCTION()
940 buflen = 1024; in PHP_FUNCTION()
944 buflen = 1; in PHP_FUNCTION()
946 buf = emalloc(buflen); in PHP_FUNCTION()
950 err = getpwnam_r(name, pw, buf, buflen, &pw); in PHP_FUNCTION()
953 buflen *= 2; in PHP_FUNCTION()
954 buf = erealloc(buf, buflen); in PHP_FUNCTION()