Lines Matching refs:buflen
40 size_t buflen, int *errnop);
42 char *buffer, size_t buflen,
45 size_t buflen, int *errnop);
137 char *buffer, size_t buflen) in copy_pwd_changes() argument
151 buflen = buflen - (strlen (dest->pw_passwd) + 1); in copy_pwd_changes()
167 buflen = buflen - (strlen (dest->pw_gecos) + 1); in copy_pwd_changes()
181 buflen = buflen - (strlen (dest->pw_dir) + 1); in copy_pwd_changes()
197 buflen = buflen - (strlen (dest->pw_shell) + 1); in copy_pwd_changes()
318 char *group, char *buffer, size_t buflen, in getpwent_next_nss_netgr() argument
340 &ent->netgrdata, buffer, buflen, in getpwent_next_nss_netgr()
373 if (p2len > buflen) in getpwent_next_nss_netgr()
378 p2 = buffer + (buflen - p2len); in getpwent_next_nss_netgr()
379 buflen -= p2len; in getpwent_next_nss_netgr()
381 if (getpwnam_r_impl (user, result, buffer, buflen, errnop) in getpwent_next_nss_netgr()
401 size_t buflen, int *errnop) in getpwent_next_nss() argument
416 if (p2len > buflen) in getpwent_next_nss()
421 p2 = buffer + (buflen - p2len); in getpwent_next_nss()
422 buflen -= p2len; in getpwent_next_nss()
429 if ((status = getpwent_r_impl (result, buffer, buflen, errnop)) in getpwent_next_nss()
443 char *buffer, size_t buflen, int *errnop) in getpwnam_plususer() argument
454 if (plen > buflen) in getpwnam_plususer()
459 char *p = buffer + (buflen - plen); in getpwnam_plususer()
460 buflen -= plen; in getpwnam_plususer()
462 enum nss_status status = getpwnam_r_impl (name, result, buffer, buflen, in getpwnam_plususer()
478 char *buffer, size_t buflen, int *errnop) in getpwent_next_file() argument
490 if (__glibc_unlikely (buflen < 3)) in getpwent_next_file()
498 buffer[buflen - 1] = '\xff'; in getpwent_next_file()
499 p = fgets_unlocked (buffer, buflen, ent->stream); in getpwent_next_file()
503 if (p == NULL || __builtin_expect (buffer[buflen - 1] != '\xff', 0)) in getpwent_next_file()
511 buffer[buflen - 1] = '\0'; in getpwent_next_file()
520 || !(parse_res = _nss_files_parse_pwent (p, result, data, buflen, in getpwent_next_file()
564 buffer, buflen, errnop); in getpwent_next_file()
591 buffer, buflen, errnop); in getpwent_next_file()
618 return getpwent_next_nss (result, ent, buffer, buflen, errnop); in getpwent_next_file()
628 size_t buflen, int *errnop) in internal_getpwent_r() argument
636 status = getpwent_next_nss_netgr (NULL, pw, ent, NULL, buffer, buflen, in internal_getpwent_r()
639 return getpwent_next_file (pw, ent, buffer, buflen, errnop); in internal_getpwent_r()
644 return getpwent_next_file (pw, ent, buffer, buflen, errnop); in internal_getpwent_r()
646 return getpwent_next_nss (pw, ent, buffer, buflen, errnop); in internal_getpwent_r()
651 _nss_compat_getpwent_r (struct passwd *pwd, char *buffer, size_t buflen, in _nss_compat_getpwent_r() argument
666 result = internal_getpwent_r (pwd, &ext_ent, buffer, buflen, errnop); in _nss_compat_getpwent_r()
676 char *buffer, size_t buflen, int *errnop) in internal_getpwnam_r() argument
689 if (__glibc_unlikely (buflen < 3)) in internal_getpwnam_r()
697 buffer[buflen - 1] = '\xff'; in internal_getpwnam_r()
698 p = fgets_unlocked (buffer, buflen, ent->stream); in internal_getpwnam_r()
703 if (p == NULL || __builtin_expect (buffer[buflen - 1] != '\xff', 0)) in internal_getpwnam_r()
711 buffer[buflen - 1] = '\0'; in internal_getpwnam_r()
720 || !(parse_res = _nss_files_parse_pwent (p, result, data, buflen, in internal_getpwnam_r()
754 buflen, errnop); in internal_getpwnam_r()
782 status = getpwnam_plususer (name, result, ent, buffer, buflen, in internal_getpwnam_r()
798 buffer, buflen, errnop); in internal_getpwnam_r()
812 char *buffer, size_t buflen, int *errnop) in _nss_compat_getpwnam_r() argument
831 result = internal_getpwnam_r (name, pwd, &ent, buffer, buflen, errnop); in _nss_compat_getpwnam_r()
841 size_t buflen, int *errnop) in getpwuid_plususer() argument
855 if (plen > buflen) in getpwuid_plususer()
860 p = buffer + (buflen - plen); in getpwuid_plususer()
861 buflen -= plen; in getpwuid_plususer()
863 if (getpwuid_r_impl (uid, result, buffer, buflen, errnop) == in getpwuid_plususer()
874 buflen += plen; in getpwuid_plususer()
883 char *buffer, size_t buflen, int *errnop) in internal_getpwuid_r() argument
896 if (__glibc_unlikely (buflen < 3)) in internal_getpwuid_r()
904 buffer[buflen - 1] = '\xff'; in internal_getpwuid_r()
905 p = fgets_unlocked (buffer, buflen, ent->stream); in internal_getpwuid_r()
909 if (p == NULL || __builtin_expect (buffer[buflen - 1] != '\xff', 0)) in internal_getpwuid_r()
917 buffer[buflen - 1] = '\0'; in internal_getpwuid_r()
926 || !(parse_res = _nss_files_parse_pwent (p, result, data, buflen, in internal_getpwuid_r()
953 status = getpwuid_plususer (uid, result, buffer, buflen, errnop); in internal_getpwuid_r()
972 status = getpwuid_plususer (uid, result, buffer, buflen, errnop); in internal_getpwuid_r()
1000 status = getpwuid_plususer (uid, result, buffer, buflen, errnop); in internal_getpwuid_r()
1017 status = getpwuid_plususer (uid, result, buffer, buflen, errnop); in internal_getpwuid_r()
1040 status = getpwuid_plususer (uid, result, buffer, buflen, errnop); in internal_getpwuid_r()
1054 char *buffer, size_t buflen, int *errnop) in _nss_compat_getpwuid_r() argument
1070 result = internal_getpwuid_r (uid, pwd, &ent, buffer, buflen, errnop); in _nss_compat_getpwuid_r()