Home
last modified time | relevance | path

Searched refs:pwbuflen (Results 1 – 4 of 4) sorted by relevance

/PHP-8.1/ext/posix/
H A Dposix.c976 long pwbuflen; in PHP_FUNCTION() local
987 pwbuflen = sysconf(_SC_GETPW_R_SIZE_MAX); in PHP_FUNCTION()
988 if (pwbuflen < 1) { in PHP_FUNCTION()
991 pwbuf = emalloc(pwbuflen); in PHP_FUNCTION()
994 ret = getpwuid_r(uid, &_pw, pwbuf, pwbuflen, &retpwptr); in PHP_FUNCTION()
997 pwbuflen *= 2; in PHP_FUNCTION()
998 pwbuf = erealloc(pwbuf, pwbuflen); in PHP_FUNCTION()
/PHP-8.1/main/
H A Dfopen_wrappers.c368 long pwbuflen = sysconf(_SC_GETPW_R_SIZE_MAX); local
371 if (pwbuflen < 1) {
375 pwbuf = emalloc(pwbuflen);
384 if (getpwnam_r(user, &pwstruc, pwbuf, pwbuflen, &pw)) {
H A Dmain.c1435 int pwbuflen = sysconf(_SC_GETPW_R_SIZE_MAX); in php_get_current_user()
1438 if (pwbuflen < 1) { in php_get_current_user()
1441 pwbuf = emalloc(pwbuflen); in php_get_current_user()
1442 if (getpwuid_r(pstat->st_uid, &_pw, pwbuf, pwbuflen, &retpwptr) != 0) { in php_get_current_user()
/PHP-8.1/ext/standard/
H A Dfilestat.c440 long pwbuflen = sysconf(_SC_GETPW_R_SIZE_MAX); in php_get_uid_by_name() local
443 if (pwbuflen < 1) { in php_get_uid_by_name()
447 pwbuf = emalloc(pwbuflen); in php_get_uid_by_name()
448 if (getpwnam_r(name, &pw, pwbuf, pwbuflen, &retpwptr) != 0 || retpwptr == NULL) { in php_get_uid_by_name()

Completed in 18 milliseconds