Lines Matching refs:buflen
522 zend_long buflen; in PHP_FUNCTION() local
539 buflen = sysconf(_SC_TTY_NAME_MAX); in PHP_FUNCTION()
540 if (buflen < 1) { in PHP_FUNCTION()
543 p = emalloc(buflen); in PHP_FUNCTION()
545 if (ttyname_r(fd, p, buflen)) { in PHP_FUNCTION()
793 long buflen; in PHP_FUNCTION() local
802 buflen = sysconf(_SC_GETGR_R_SIZE_MAX); in PHP_FUNCTION()
803 if (buflen < 1) { in PHP_FUNCTION()
806 buf = emalloc(buflen); in PHP_FUNCTION()
810 if (getgrnam_r(name, g, buf, buflen, &g) || g == NULL) { in PHP_FUNCTION()
812 buflen *= 2; in PHP_FUNCTION()
813 buf = erealloc(buf, buflen); in PHP_FUNCTION()
923 long buflen; in PHP_FUNCTION() local
932 buflen = sysconf(_SC_GETPW_R_SIZE_MAX); in PHP_FUNCTION()
933 if (buflen < 1) { in PHP_FUNCTION()
936 buf = emalloc(buflen); in PHP_FUNCTION()
940 if (getpwnam_r(name, pw, buf, buflen, &pw) || pw == NULL) { in PHP_FUNCTION()
942 buflen *= 2; in PHP_FUNCTION()
943 buf = erealloc(buf, buflen); in PHP_FUNCTION()