Lines Matching refs:buflen
516 zend_long buflen; in PHP_FUNCTION() local
533 buflen = sysconf(_SC_TTY_NAME_MAX); in PHP_FUNCTION()
534 if (buflen < 1) { in PHP_FUNCTION()
537 p = emalloc(buflen); in PHP_FUNCTION()
539 if (ttyname_r(fd, p, buflen)) { in PHP_FUNCTION()
787 long buflen; in PHP_FUNCTION() local
796 buflen = sysconf(_SC_GETGR_R_SIZE_MAX); in PHP_FUNCTION()
797 if (buflen < 1) { in PHP_FUNCTION()
800 buf = emalloc(buflen); in PHP_FUNCTION()
804 if (getgrnam_r(name, g, buf, buflen, &g) || g == NULL) { in PHP_FUNCTION()
806 buflen *= 2; in PHP_FUNCTION()
807 buf = erealloc(buf, buflen); in PHP_FUNCTION()
917 long buflen; in PHP_FUNCTION() local
926 buflen = sysconf(_SC_GETPW_R_SIZE_MAX); in PHP_FUNCTION()
927 if (buflen < 1) { in PHP_FUNCTION()
930 buf = emalloc(buflen); in PHP_FUNCTION()
934 if (getpwnam_r(name, pw, buf, buflen, &pw) || pw == NULL) { in PHP_FUNCTION()
936 buflen *= 2; in PHP_FUNCTION()
937 buf = erealloc(buf, buflen); in PHP_FUNCTION()