Lines Matching refs:buflen

203 smb_getnetbiosname(char *buf, size_t buflen)  in smb_getnetbiosname()  argument
205 if (smb_gethostname(buf, buflen, SMB_CASE_UPPER) != 0) in smb_getnetbiosname()
208 if (buflen >= NETBIOS_NAME_SZ) in smb_getnetbiosname()
219 smb_getsamaccount(char *buf, size_t buflen) in smb_getsamaccount() argument
221 if (smb_getnetbiosname(buf, buflen - 1) != 0) in smb_getsamaccount()
224 (void) strlcat(buf, "$", buflen); in smb_getsamaccount()
239 smb_gethostname(char *buf, size_t buflen, smb_caseconv_t which) in smb_gethostname() argument
243 if (buf == NULL || buflen == 0) in smb_gethostname()
246 if (gethostname(buf, buflen) != 0) { in smb_gethostname()
251 buf[buflen - 1] = '\0'; in smb_gethostname()
279 smb_getfqhostname(char *buf, size_t buflen) in smb_getfqhostname() argument
298 (void) strlcpy(buf, hostname, buflen); in smb_getfqhostname()
302 (void) snprintf(buf, buflen, "%s.%s", hostname, domain); in smb_getfqhostname()
314 smb_getdomainname(char *buf, size_t buflen) in smb_getdomainname() argument
318 if (buf == NULL || buflen == 0) in smb_getdomainname()
322 rc = smb_config_getstr(SMB_CI_DOMAIN_NAME, buf, buflen); in smb_getdomainname()
340 smb_getfqdomainname(char *buf, size_t buflen) in smb_getfqdomainname() argument
345 if (buf == NULL || buflen == 0) in smb_getfqdomainname()
350 rc = smb_config_getstr(SMB_CI_DOMAIN_FQDN, buf, buflen); in smb_getfqdomainname()
364 (void) strlcpy(buf, res_state.defdname, buflen); in smb_getfqdomainname()
398 smb_get_machine_passwd(uint8_t *buf, size_t buflen) in smb_get_machine_passwd() argument
403 if (buflen < SMBAUTH_HASH_SZ) in smb_get_machine_passwd()
481 smb_ipc_get_user(char *buf, size_t buflen) in smb_ipc_get_user() argument
484 (void) strlcpy(buf, ipc_info.user, buflen); in smb_ipc_get_user()
489 smb_ipc_get_passwd(uint8_t *buf, size_t buflen) in smb_ipc_get_passwd() argument
491 if (buflen < SMBAUTH_HASH_SZ) in smb_ipc_get_passwd()