Searched refs:pwbuflen (Results 1 – 4 of 4) sorted by relevance
/PHP-7.4/ext/posix/ |
H A D | posix.c | 1274 long pwbuflen; in PHP_FUNCTION() local 1285 pwbuflen = sysconf(_SC_GETPW_R_SIZE_MAX); in PHP_FUNCTION() 1286 if (pwbuflen < 1) { in PHP_FUNCTION() 1289 pwbuf = emalloc(pwbuflen); in PHP_FUNCTION() 1292 ret = getpwuid_r(uid, &_pw, pwbuf, pwbuflen, &retpwptr); in PHP_FUNCTION() 1295 pwbuflen *= 2; in PHP_FUNCTION() 1296 pwbuf = erealloc(pwbuf, pwbuflen); in PHP_FUNCTION()
|
/PHP-7.4/main/ |
H A D | fopen_wrappers.c | 378 long pwbuflen = sysconf(_SC_GETPW_R_SIZE_MAX); local 381 if (pwbuflen < 1) { 385 pwbuf = emalloc(pwbuflen); 394 if (getpwnam_r(user, &pwstruc, pwbuf, pwbuflen, &pw)) {
|
H A D | main.c | 1538 int pwbuflen = sysconf(_SC_GETPW_R_SIZE_MAX); in php_get_current_user() 1541 if (pwbuflen < 1) { in php_get_current_user() 1544 pwbuf = emalloc(pwbuflen); in php_get_current_user() 1545 if (getpwuid_r(pstat->st_uid, &_pw, pwbuf, pwbuflen, &retpwptr) != 0) { in php_get_current_user()
|
/PHP-7.4/ext/standard/ |
H A D | filestat.c | 449 long pwbuflen = sysconf(_SC_GETPW_R_SIZE_MAX); in php_get_uid_by_name() local 452 if (pwbuflen < 1) { in php_get_uid_by_name() 456 pwbuf = emalloc(pwbuflen); in php_get_uid_by_name() 457 if (getpwnam_r(name, &pw, pwbuf, pwbuflen, &retpwptr) != 0 || retpwptr == NULL) { in php_get_uid_by_name()
|
Completed in 32 milliseconds