Lines Matching refs:buflen
39 char *buffer, size_t buflen,
42 size_t buflen, int *errnop);
125 char *buffer, size_t buflen) in copy_spwd_changes() argument
139 buflen = buflen - (strlen (dest->sp_pwdp) + 1); in copy_spwd_changes()
273 char *group, char *buffer, size_t buflen, in getspent_next_nss_netgr() argument
298 &ent->netgrdata, buffer, buflen, in getspent_next_nss_netgr()
331 if (p2len > buflen) in getspent_next_nss_netgr()
336 p2 = buffer + (buflen - p2len); in getspent_next_nss_netgr()
337 buflen -= p2len; in getspent_next_nss_netgr()
339 if (getspnam_r_impl (user, result, buffer, buflen, errnop) in getspent_next_nss_netgr()
359 char *buffer, size_t buflen, int *errnop) in getspent_next_nss() argument
369 if (p2len > buflen) in getspent_next_nss()
374 p2 = buffer + (buflen - p2len); in getspent_next_nss()
375 buflen -= p2len; in getspent_next_nss()
378 if ((status = getspent_r_impl (result, buffer, buflen, errnop)) in getspent_next_nss()
393 char *buffer, size_t buflen, int *errnop) in getspnam_plususer() argument
408 if (plen > buflen) in getspnam_plususer()
413 char *p = buffer + (buflen - plen); in getspnam_plususer()
414 buflen -= plen; in getspnam_plususer()
416 enum nss_status status = getspnam_r_impl (name, result, buffer, buflen, in getspnam_plususer()
433 char *buffer, size_t buflen, int *errnop) in getspent_next_file() argument
445 if (__glibc_unlikely (buflen < 3)) in getspent_next_file()
453 buffer[buflen - 1] = '\xff'; in getspent_next_file()
454 p = fgets_unlocked (buffer, buflen, ent->stream); in getspent_next_file()
458 if (p == NULL || __builtin_expect (buffer[buflen - 1] != '\xff', 0)) in getspent_next_file()
473 buflen, errnop))); in getspent_next_file()
517 buffer, buflen, errnop); in getspent_next_file()
544 buffer, buflen, errnop); in getspent_next_file()
572 return getspent_next_nss (result, ent, buffer, buflen, errnop); in getspent_next_file()
582 char *buffer, size_t buflen, int *errnop) in internal_getspent_r() argument
591 buflen, errnop); in internal_getspent_r()
594 return getspent_next_file (pw, ent, buffer, buflen, errnop); in internal_getspent_r()
599 return getspent_next_file (pw, ent, buffer, buflen, errnop); in internal_getspent_r()
601 return getspent_next_nss (pw, ent, buffer, buflen, errnop); in internal_getspent_r()
606 _nss_compat_getspent_r (struct spwd *pwd, char *buffer, size_t buflen, in _nss_compat_getspent_r() argument
621 result = internal_getspent_r (pwd, &ext_ent, buffer, buflen, errnop); in _nss_compat_getspent_r()
632 char *buffer, size_t buflen, int *errnop) in internal_getspnam_r() argument
645 if (__glibc_unlikely (buflen < 3)) in internal_getspnam_r()
653 buffer[buflen - 1] = '\xff'; in internal_getspnam_r()
654 p = fgets_unlocked (buffer, buflen, ent->stream); in internal_getspnam_r()
658 if (p == NULL || buffer[buflen - 1] != '\xff') in internal_getspnam_r()
666 buffer[buflen - 1] = '\0'; in internal_getspnam_r()
675 || !(parse_res = _nss_files_parse_spent (p, result, data, buflen, in internal_getspnam_r()
711 buflen, errnop); in internal_getspnam_r()
740 buffer, buflen, errnop); in internal_getspnam_r()
756 buffer, buflen, errnop); in internal_getspnam_r()
774 char *buffer, size_t buflen, int *errnop) in _nss_compat_getspnam_r() argument
793 result = internal_getspnam_r (name, pwd, &ent, buffer, buflen, errnop); in _nss_compat_getspnam_r()