Lines Matching refs:buffer
71 char *buffer, *comment, *attr_str; in _nss_ldap_proj2str() local
82 if ((be->buffer = calloc(1, buflen)) == NULL) { in _nss_ldap_proj2str()
86 buffer = be->buffer; in _nss_ldap_proj2str()
88 buffer = argp->buf.buffer; in _nss_ldap_proj2str()
91 (void) memset(buffer, 0, buflen); in _nss_ldap_proj2str()
108 len = snprintf(buffer, buflen, "%s:%s:%s:", name[0], id[0], in _nss_ldap_proj2str()
110 TEST_AND_ADJUST(len, buffer, buflen, result_proj2str); in _nss_ldap_proj2str()
121 len = snprintf(buffer, buflen, "%s", in _nss_ldap_proj2str()
125 len = snprintf(buffer, buflen, ",%s", in _nss_ldap_proj2str()
128 TEST_AND_ADJUST(len, buffer, buflen, result_proj2str); in _nss_ldap_proj2str()
131 len = snprintf(buffer, buflen, ":"); in _nss_ldap_proj2str()
132 TEST_AND_ADJUST(len, buffer, buflen, result_proj2str); in _nss_ldap_proj2str()
143 len = snprintf(buffer, buflen, "%s", in _nss_ldap_proj2str()
147 len = snprintf(buffer, buflen, ",%s", in _nss_ldap_proj2str()
150 TEST_AND_ADJUST(len, buffer, buflen, result_proj2str); in _nss_ldap_proj2str()
160 len = snprintf(buffer, buflen, ":%s", attr_str); in _nss_ldap_proj2str()
161 TEST_AND_ADJUST(len, buffer, buflen, result_proj2str); in _nss_ldap_proj2str()
165 be->buflen = strlen(be->buffer); in _nss_ldap_proj2str()