/freebsd-current/contrib/openpam/lib/libpam/ |
H A D | openpam_strlcmp.h | 36 strlcmp(const char *s1, const char *s2, size_t len) argument 39 for (; len && *s1 && *s2; --len, ++s1, ++s2)
|
/freebsd-current/crypto/openssl/crypto/sha/ |
H A D | sha_ppc.c | 17 void sha256_block_p8(void *ctx, const void *inp, size_t len); 18 void sha256_block_ppc(void *ctx, const void *inp, size_t len); 19 void sha256_block_data_order(void *ctx, const void *inp, size_t len); 20 void sha256_block_data_order(void *ctx, const void *inp, size_t len) argument 22 OPENSSL_ppccap_P & PPC_CRYPTO207 ? sha256_block_p8(ctx, inp, len) : 23 sha256_block_ppc(ctx, inp, len); 26 void sha512_block_p8(void *ctx, const void *inp, size_t len); 27 void sha512_block_ppc(void *ctx, const void *inp, size_t len); 28 void sha512_block_data_order(void *ctx, const void *inp, size_t len); 29 void sha512_block_data_order(void *ctx, const void *inp, size_t len) argument [all...] |
/freebsd-current/crypto/openssh/openbsd-compat/ |
H A D | libressl-api-compat.c | 30 EVP_CIPHER_CTX_get_iv(const EVP_CIPHER_CTX *ctx, unsigned char *iv, size_t len) argument 36 if (len != (size_t)EVP_CIPHER_CTX_iv_length(ctx)) 38 if (len > EVP_MAX_IV_LENGTH) 44 if (len != 0) { 48 memcpy(iv, EVP_CIPHER_CTX_iv(ctx), len); 50 memcpy(iv, ctx->iv, len); 59 EVP_CIPHER_CTX_set_iv(EVP_CIPHER_CTX *ctx, const unsigned char *iv, size_t len) argument 65 if (len != (size_t)EVP_CIPHER_CTX_iv_length(ctx)) 67 if (len > EVP_MAX_IV_LENGTH) 73 if (len ! [all...] |
/freebsd-current/lib/libc/string/ |
H A D | wmempcpy.c | 35 wmempcpy(wchar_t *__restrict dst, const wchar_t *__restrict src, size_t len) argument 37 return (wmemcpy(dst, src, len) + len);
|
/freebsd-current/usr.sbin/bhyve/ |
H A D | sockstream.c | 40 ssize_t len = 0; local 45 while (len < nbytes) { 46 n = read(fd, p + len, nbytes - len); 55 len += n; 57 return (len); 64 ssize_t len = 0; local 69 while (len < nbytes) { 70 n = write(fd, p + len, nbytes - len); [all...] |
/freebsd-current/contrib/unbound/dnstap/ |
H A D | dnstap_fstrm.h | 83 * The START type can have only one field. Field max len 256. 120 * @param len: if a buffer is returned this is the length of that buffer. 124 * the 'len' variable (like data frames are), but straight the content of the 128 void* fstrm_create_control_frame_start(char* contenttype, size_t* len); 135 * @param len: if a buffer is returned this is the length of that buffer. 139 * the 'len' variable (like data frames are), but straight the content of the 143 void* fstrm_create_control_frame_ready(char* contenttype, size_t* len); 147 * @param len: if a buffer is returned this is the length of that buffer. 151 * the 'len' variable (like data frames are), but straight the content of the 155 void* fstrm_create_control_frame_stop(size_t* len); [all...] |
/freebsd-current/contrib/netbsd-tests/lib/libc/ssp/ |
H A D | h_stpncpy.c | 43 int len = atoi(argv[1]); local 45 char *q = stpncpy(b, "1020202020202", len); 47 if (q - b != len) 51 (void)strncpy(b, "1020202020202", len); 54 (void)printf("%*.*s\n", len, len, b);
|
H A D | h_snprintf.c | 41 size_t len = atoi(argv[1]); local 44 c[len] = 0; 45 (void)snprintf(b, len, "%s", c); 47 (void)snprintf(b, len, "%s", "0123456789");
|
H A D | h_memmove.c | 42 int len = atoi(argv[1]); local 44 (void)memmove(b, "1020202020202", len); 45 (void)printf("%*.*s\n", len, len, b);
|
H A D | h_memcpy.c | 42 int len = atoi(argv[1]); local 44 (void)memcpy(b, "1020202020202", len); 45 (void)printf("%*.*s\n", len, len, b);
|
H A D | h_strncat.c | 42 int len = atoi(argv[1]); local 44 (void)strncat(b, "1020202020202", len); 46 (void)printf("%*.*s\n", len, len, b);
|
H A D | h_strncpy.c | 42 int len = atoi(argv[1]); local 43 (void)strncpy(b, "1020202020202", len); 45 (void)printf("%*.*s\n", len, len, b);
|
/freebsd-current/contrib/file/src/ |
H A D | dprintf.c | 45 int len; local 48 len = vsnprintf(buf, sizeof(buf), fmt, ap); 51 if ((size_t)len >= sizeof(buf)) 54 if (write(fd, buf, (size_t)len) != len) 57 return len;
|
/freebsd-current/contrib/libfido2/src/ |
H A D | buf.c | 11 fido_buf_read(const unsigned char **buf, size_t *len, void *dst, size_t count) argument 13 if (count > *len) 18 *len -= count; 24 fido_buf_write(unsigned char **buf, size_t *len, const void *src, size_t count) argument 26 if (count > *len) 31 *len -= count;
|
/freebsd-current/contrib/libfido2/openbsd-compat/ |
H A D | explicit_bzero_win32.c | 14 explicit_bzero(void *buf, size_t len) argument 16 SecureZeroMemory(buf, len);
|
/freebsd-current/usr.sbin/pkg/ |
H A D | hash.h | 31 char *sha256_buf(char *buf, size_t len);
|
/freebsd-current/tools/test/devrandom/ |
H A D | hammer.random | 12 $len = sysread(BIN, $a, 128); 14 if ($len > 0) { 15 print "$len bytes read: "; 16 for ($j = 0; $j < $len; $j++) {
|
/freebsd-current/lib/libc/amd64/string/ |
H A D | bcopy.c | 10 bcopy(const void *src, void *dst, size_t len) argument 13 memmove(dst, src, len);
|
H A D | bzero.c | 10 bzero(void *b, size_t len) argument 13 memset(b, 0, len);
|
/freebsd-current/sbin/hastd/ |
H A D | lzf.c | 171 unsigned int len = 2; local 172 unsigned int maxlen = in_end - ip - len; 186 len++; if (ref [len] != ip [len]) break; 187 len++; if (ref [len] != ip [len]) break; 188 len++; if (ref [len] ! 354 unsigned int len = ctrl >> 5; local [all...] |
/freebsd-current/contrib/sendmail/libsm/ |
H A D | fget.c | 51 int len, r; local 65 if ((len = fp->f_r) <= 0) 80 len = fp->f_r; 91 if (len > n) 92 len = n; 93 t = (unsigned char *) memchr((void *) p, '\n', len); 96 len = ++t - p; 97 r += len; 98 fp->f_r -= len; 100 (void) memcpy((void *) s, (void *) p, len); [all...] |
/freebsd-current/contrib/wpa/src/drivers/ |
H A D | priv_netlink.h | 49 #define NLMSG_ALIGN(len) (((len) + NLMSG_ALIGNTO - 1) & ~(NLMSG_ALIGNTO - 1)) 51 #define NLMSG_LENGTH(len) ((len) + NLMSG_ALIGN(sizeof(struct nlmsghdr))) 52 #define NLMSG_SPACE(len) NLMSG_ALIGN(NLMSG_LENGTH(len)) 54 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \ 57 #define NLMSG_OK(nlh,len) ((len) > [all...] |
/freebsd-current/contrib/wpa/src/ap/ |
H A D | ctrl_iface_ap.c | 33 size_t len = curr_len; local 35 ret = os_snprintf(buf + len, buflen - len, 37 if (os_snprintf_error(buflen - len, ret)) 38 return len; 39 len += ret; 42 len += wpa_snprintf_hex(buf + len, buflen - len, mcs_set, 10); 44 ret = os_snprintf(buf + len, bufle 85 int len = 0; local 218 int len, res, ret, i; local 685 int len = 0, ret, j; local 934 hostapd_ctrl_iface_pmksa_list(struct hostapd_data *hapd, char *buf, size_t len) argument 998 hostapd_ctrl_iface_pmksa_list_mesh(struct hostapd_data *hapd, const u8 *addr, char *buf, size_t len) argument [all...] |
/freebsd-current/contrib/tcpdump/missing/ |
H A D | strdup.c | 44 size_t len; local 47 len = strlen(str) + 1; 48 if ((copy = malloc(len)) == NULL) 50 memcpy(copy, str, len);
|
/freebsd-current/crypto/heimdal/lib/roken/ |
H A D | strndup.c | 44 size_t len = strnlen (old, sz); local 45 char *t = malloc(len + 1); 48 memcpy (t, old, len); 49 t[len] = '\0';
|