Searched refs:len (Results 26 - 50 of 7481) sorted by relevance

1234567891011>>

/freebsd-current/contrib/openpam/lib/libpam/
H A Dopenpam_strlcmp.h36 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 Dsha_ppc.c17 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 Dlibressl-api-compat.c30 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 Dwmempcpy.c35 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 Dsockstream.c40 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 Ddnstap_fstrm.h83 * 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 Dh_stpncpy.c43 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 Dh_snprintf.c41 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 Dh_memmove.c42 int len = atoi(argv[1]); local
44 (void)memmove(b, "1020202020202", len);
45 (void)printf("%*.*s\n", len, len, b);
H A Dh_memcpy.c42 int len = atoi(argv[1]); local
44 (void)memcpy(b, "1020202020202", len);
45 (void)printf("%*.*s\n", len, len, b);
H A Dh_strncat.c42 int len = atoi(argv[1]); local
44 (void)strncat(b, "1020202020202", len);
46 (void)printf("%*.*s\n", len, len, b);
H A Dh_strncpy.c42 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 Ddprintf.c45 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 Dbuf.c11 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 Dexplicit_bzero_win32.c14 explicit_bzero(void *buf, size_t len) argument
16 SecureZeroMemory(buf, len);
/freebsd-current/usr.sbin/pkg/
H A Dhash.h31 char *sha256_buf(char *buf, size_t len);
/freebsd-current/tools/test/devrandom/
H A Dhammer.random12 $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 Dbcopy.c10 bcopy(const void *src, void *dst, size_t len) argument
13 memmove(dst, src, len);
H A Dbzero.c10 bzero(void *b, size_t len) argument
13 memset(b, 0, len);
/freebsd-current/sbin/hastd/
H A Dlzf.c171 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 Dfget.c51 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 Dpriv_netlink.h49 #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 Dctrl_iface_ap.c33 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 Dstrdup.c44 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 Dstrndup.c44 size_t len = strnlen (old, sz); local
45 char *t = malloc(len + 1);
48 memcpy (t, old, len);
49 t[len] = '\0';

Completed in 411 milliseconds

1234567891011>>