Home
last modified time | relevance | path

Searched refs:buflen (Results 226 – 250 of 733) sorted by relevance

12345678910>>...30

/freebsd/contrib/ntp/ntpd/
H A Dntp_io.c3331 int buflen; local
3351 return (buflen);
3369 return buflen;
3389 return buflen;
3526 int buflen; local
3564 return (buflen);
3588 if (buflen == 0 || (buflen == -1 &&
3595 return (buflen);
3602 return (buflen);
3651 return (buflen);
[all …]
/freebsd/contrib/sendmail/libsm/
H A Dmbdb.c227 sm_pwfullname(gecos, user, buf, buflen) in sm_pwfullname() argument
231 size_t buflen;
242 if (bp >= &buf[buflen - 1])
245 (void) sm_strlcpy(buf, user, buflen);
251 (void) sm_strlcpy(bp, user, buflen - (bp - buf));
/freebsd/sys/dev/iicbus/
H A Diiconf.c522 uint16_t buflen, int waithow) in iicdev_readfrom() argument
540 msgs[1].len = buflen; in iicdev_readfrom()
547 uint16_t buflen, int waithow) in iicdev_writeto() argument
568 bufsize = buflen + 1; in iicdev_writeto()
579 memcpy(&bufptr[1], buffer, buflen); in iicdev_writeto()
H A Dacpi_iicbus.c120 uint16_t buflen) in acpi_iicbus_write() argument
124 { slave, IIC_M_WR | IIC_M_NOSTART, buflen, buf }, in acpi_iicbus_write()
132 uint16_t buflen) in acpi_iicbus_read() argument
137 { slave, IIC_M_RD, buflen, NULL }, in acpi_iicbus_read()
141 if (buflen <= sizeof(local_buffer)) in acpi_iicbus_read()
144 msgs[1].buf = malloc(buflen, M_DEVBUF, M_WAITOK); in acpi_iicbus_read()
147 memcpy(buf, msgs[1].buf, buflen); in acpi_iicbus_read()
/freebsd/contrib/wpa/src/ap/
H A Dwps_hostapd.h26 char *buf, size_t buflen);
74 char *buf, size_t buflen) in hostapd_wps_get_mib_sta() argument
H A Dieee802_1x.h48 int ieee802_1x_get_mib(struct hostapd_data *hapd, char *buf, size_t buflen);
50 char *buf, size_t buflen);
/freebsd/sys/netgraph/
H A Dng_eiface.c511 int buflen; in ng_eiface_rcvmsg() local
514 buflen = 0; in ng_eiface_rcvmsg()
517 buflen += SA_SIZE(ifa->ifa_addr); in ng_eiface_rcvmsg()
518 NG_MKRESPONSE(resp, msg, buflen, M_NOWAIT); in ng_eiface_rcvmsg()
530 if (buflen < len) { in ng_eiface_rcvmsg()
537 buflen -= len; in ng_eiface_rcvmsg()
/freebsd/contrib/wpa/src/common/
H A Dcli.c211 int write_cmd(char *buf, size_t buflen, const char *cmd, int argc, char *argv[]) in write_cmd() argument
217 end = buf + buflen; in write_cmd()
231 buf[buflen - 1] = '\0'; in write_cmd()
/freebsd/sys/compat/linuxkpi/common/src/
H A Dlinux_firmware.c228 const char *fw_name, struct device *dev, uint8_t *buf, size_t buflen, in linuxkpi_request_partial_firmware_into_buf() argument
239 if ((offset + buflen) >= lfw->size) { in linuxkpi_request_partial_firmware_into_buf()
244 memcpy(buf, lfw->data + offset, buflen); in linuxkpi_request_partial_firmware_into_buf()
/freebsd/contrib/wpa/src/tls/
H A Dtlsv1_client.c605 size_t buflen) in tlsv1_client_get_cipher() argument
677 if (os_strlcpy(buf, cipher, buflen) >= buflen) in tlsv1_client_get_cipher()
899 size_t buflen) in tlsv1_client_get_version() argument
905 os_strlcpy(buf, "TLSv1", buflen); in tlsv1_client_get_version()
908 os_strlcpy(buf, "TLSv1.1", buflen); in tlsv1_client_get_version()
911 os_strlcpy(buf, "TLSv1.2", buflen); in tlsv1_client_get_version()
H A Dtlsv1_client.h35 size_t buflen);
61 size_t buflen);
/freebsd/crypto/openssl/providers/implementations/kdfs/
H A Dpbkdf2.c125 static int pbkdf2_set_membuf(unsigned char **buffer, size_t *buflen, in pbkdf2_set_membuf() argument
128 OPENSSL_clear_free(*buffer, *buflen); in pbkdf2_set_membuf()
130 *buflen = 0; in pbkdf2_set_membuf()
138 if (!OSSL_PARAM_get_octet_string(p, (void **)buffer, 0, buflen)) in pbkdf2_set_membuf()
H A Dpkcs12kdf.c181 static int pkcs12kdf_set_membuf(unsigned char **buffer, size_t *buflen, in pkcs12kdf_set_membuf() argument
184 OPENSSL_clear_free(*buffer, *buflen); in pkcs12kdf_set_membuf()
186 *buflen = 0; in pkcs12kdf_set_membuf()
194 if (!OSSL_PARAM_get_octet_string(p, (void **)buffer, 0, buflen)) in pkcs12kdf_set_membuf()
/freebsd/contrib/sendmail/src/
H A Dmime.c753 static int buflen = 0; local
759 if (buflen == 1 && *bp == '\n')
764 else if (buflen > 0)
766 buflen--;
772 buflen = 0;
800 buflen = bp - buf - 1;
820 buflen = 0;
830 buflen = bp - buf - 1;
831 if (buflen < 0)
/freebsd/contrib/atf/atf-c++/detail/
H A Dexceptions_test.cpp52 test_format(const atf_error_t err, char *buf, size_t buflen) in test_format() argument
59 snprintf(buf, buflen, "Message: %s", data->m_msg); in test_format()
/freebsd/sys/fs/pseudofs/
H A Dpseudofs_vnops.c376 size_t *buflen = ap->a_buflen; in pfs_vptocnp() local
381 i = *buflen; in pfs_vptocnp()
430 *buflen = i; in pfs_vptocnp()
677 off_t buflen, buflim; in pfs_read() local
720 buflen = uio->uio_offset + uio->uio_resid + 1; in pfs_read()
729 if (buflen > buflim) in pfs_read()
730 buflen = buflim; in pfs_read()
732 sb = sbuf_new(sb, NULL, buflen, 0); in pfs_read()
767 buflen = sbuf_len(sb); in pfs_read()
770 buflen--; in pfs_read()
[all …]
/freebsd/tests/sys/aio/
H A Daio_test.c142 buflen, BUFFER_MAX); in aio_context_init()
146 ac->ac_buflen = buflen; in aio_context_init()
1690 ssize_t buflen; in ATF_TC_BODY() local
1702 buflen = 4096; in ATF_TC_BODY()
1703 buffer = malloc(buflen); in ATF_TC_BODY()
1706 iov[0].iov_len = buflen; in ATF_TC_BODY()
1708 iov[1].iov_len = buflen; in ATF_TC_BODY()
1839 ssize_t len, buflen; in ATF_TC_BODY() local
1855 buffer = malloc(buflen); in ATF_TC_BODY()
1878 if (len != buflen) in ATF_TC_BODY()
[all …]
/freebsd/sys/arm64/vmm/
H A Dvmm_dev.c808 int error, buflen; in sysctl_vmm_destroy() local
814 buflen = VM_MAX_NAMELEN + 1; in sysctl_vmm_destroy()
815 buf = malloc(buflen, M_VMMDEV, M_WAITOK | M_ZERO); in sysctl_vmm_destroy()
816 strlcpy(buf, "beavis", buflen); in sysctl_vmm_destroy()
817 error = sysctl_handle_string(oidp, buf, buflen, req); in sysctl_vmm_destroy()
878 int error, buflen; in sysctl_vmm_create() local
884 buflen = VM_MAX_NAMELEN + 1; in sysctl_vmm_create()
885 buf = malloc(buflen, M_VMMDEV, M_WAITOK | M_ZERO); in sysctl_vmm_create()
886 strlcpy(buf, "beavis", buflen); in sysctl_vmm_create()
887 error = sysctl_handle_string(oidp, buf, buflen, req); in sysctl_vmm_create()
/freebsd/lib/libusb/
H A Dlibusb01.c210 int langid, char *buf, size_t buflen) in usb_get_string() argument
217 if (buflen > 65535) in usb_get_string()
218 buflen = 65535; in usb_get_string()
221 strindex, langid, buf, buflen); in usb_get_string()
231 char *buf, size_t buflen) in usb_get_string_simple() argument
238 if (buflen > 65535) in usb_get_string_simple()
239 buflen = 65535; in usb_get_string_simple()
242 strindex, buf, buflen); in usb_get_string_simple()
/freebsd/bin/ps/
H A Dprint.c387 size_t buflen = 100; in started() local
393 buf = malloc(buflen); in started()
400 (void)strftime(buf, buflen, "%H:%M ", tp); in started()
402 (void)strftime(buf, buflen, "%a%H ", tp); in started()
404 (void)strftime(buf, buflen, "%e%b%y", tp); in started()
413 size_t buflen = 100; in lstarted() local
418 buf = malloc(buflen); in lstarted()
423 (void)strftime(buf, buflen, "%c", localtime(&then)); in lstarted()
/freebsd/contrib/nvi/common/
H A Dconv.c207 size_t buflen; in default_int2char() local
246 dst = *tostr; buflen = *blen; in default_int2char()
250 dst = buffer; buflen = CONV_BUFFER_SIZE; in default_int2char()
259 if (buflen < j + MB_CUR_MAX) { in default_int2char()
265 dst = *tostr; buflen = *blen; in default_int2char()
/freebsd/tests/sys/net/routing/
H A Drtsock_print.h137 rtsock_print_rtm_flags(char *buf, int buflen, int rtm_flags) in rtsock_print_rtm_flags() argument
140 _printb(buf, buflen, rtm_flags, routeflags); in rtsock_print_rtm_flags()
153 sa_print_hd(char *buf, int buflen, const char *data, int len) in sa_print_hd() argument
159 rem_len = buflen; in sa_print_hd()
/freebsd/sys/kern/
H A Dsubr_msgbuf.c317 msgbuf_getbytes(struct msgbuf *mbp, char *buf, int buflen) in msgbuf_getbytes() argument
335 len = min(len, (u_int)buflen); in msgbuf_getbytes()
356 msgbuf_peekbytes(struct msgbuf *mbp, char *buf, int buflen, u_int *seqp) in msgbuf_peekbytes() argument
384 len = min(len, (u_int)buflen); in msgbuf_peekbytes()
/freebsd/contrib/wpa/wpa_supplicant/
H A Dconfig_winreg.c121 DWORD val, buflen; in wpa_config_read_reg_dword() local
124 buflen = sizeof(val); in wpa_config_read_reg_dword()
125 ret = RegQueryValueEx(hk, name, NULL, NULL, (LPBYTE) &val, &buflen); in wpa_config_read_reg_dword()
126 if (ret == ERROR_SUCCESS && buflen == sizeof(val)) { in wpa_config_read_reg_dword()
138 DWORD buflen; in wpa_config_read_reg_string() local
142 buflen = 0; in wpa_config_read_reg_string()
143 ret = RegQueryValueEx(hk, name, NULL, NULL, NULL, &buflen); in wpa_config_read_reg_string()
146 val = os_malloc(buflen); in wpa_config_read_reg_string()
150 ret = RegQueryValueEx(hk, name, NULL, NULL, (LPBYTE) val, &buflen); in wpa_config_read_reg_string()
/freebsd/sys/riscv/include/
H A Dbus_dma_impl.h62 vm_paddr_t buf, bus_size_t buflen, int flags,
65 void *buf, bus_size_t buflen, struct pmap *pmap, int flags,

12345678910>>...30