/freebsd-11.0-release/contrib/xz/src/xz/ |
H A D | suffix.c | 58 has_sfn_suffix(const char *str, size_t len) argument 60 if (len >= 4 && str[len - 1] == '-' && str[len - 2] != '.' 61 && !is_dir_sep(str[len - 2])) { 63 if (str[len - 3] == '.') 64 return !is_dir_sep(str[len - 4]); 67 if (len >= 5 && !is_dir_sep(str[len - 3]) 68 && str[len [all...] |
/freebsd-11.0-release/contrib/serf/buckets/ |
H A D | iovec_buckets.c | 35 int len, 42 ctx->vecs = serf_bucket_mem_alloc(allocator, len * sizeof(struct iovec)); 43 ctx->vecs_len = len; 48 for (i = 0; i < len; i++) { 58 const char **data, apr_size_t *len) 111 const char **data, apr_size_t *len) 121 *len = vec[0].iov_len; 123 *len = 0; 131 apr_size_t *len) 136 *len 33 serf_bucket_iovec_create( struct iovec vecs[], int len, serf_bucket_alloc_t *allocator) argument 56 serf_iovec_readline(serf_bucket_t *bucket, int acceptable, int *found, const char **data, apr_size_t *len) argument 109 serf_iovec_read(serf_bucket_t *bucket, apr_size_t requested, const char **data, apr_size_t *len) argument 129 serf_iovec_peek(serf_bucket_t *bucket, const char **data, apr_size_t *len) argument [all...] |
/freebsd-11.0-release/crypto/openssh/ |
H A D | bufaux.c | 127 size_t len; local 131 if ((ret = sshbuf_get_string(buffer, &value, &len)) != 0) { 136 *length_ptr = len; /* Safe: sshbuf never stores len > 2^31 */ 153 size_t len; local 157 if ((ret = sshbuf_get_cstring(buffer, &value, &len)) != 0) { 162 *length_ptr = len; /* Safe: sshbuf never stores len > 2^31 */ 179 size_t len; local 183 if ((ret = sshbuf_get_string_direct(buffer, &value, &len)) ! 203 buffer_put_string(Buffer *buffer, const void *buf, u_int len) argument [all...] |
H A D | deattack.c | 79 check_crc(const u_char *S, const u_char *buf, u_int32_t len) argument 85 for (c = buf; c < buf + len; c += SSH_BLOCKSIZE) { 106 detect_attack(struct deattack_ctx *dctx, const u_char *buf, u_int32_t len) argument 112 if (len > (SSH_MAXBLOCKS * SSH_BLOCKSIZE) || 113 len % SSH_BLOCKSIZE != 0) 115 for (l = dctx->n; l < HASH_FACTOR(len / SSH_BLOCKSIZE); l = l << 2) 135 if (len <= HASH_MINBLOCKS) { 136 for (c = buf; c < buf + len; c += SSH_BLOCKSIZE) { 139 if ((check_crc(c, buf, len))) 150 for (c = buf, same = j = 0; c < (buf + len); [all...] |
/freebsd-11.0-release/contrib/ngatm/libngatm/ |
H A D | unimsg.c | 86 size_t len, leading, newsize; local 88 len = uni_msg_len(m); 98 m->b_wptr = m->b_rptr + len; 130 size_t len, n; local 133 len = 0; 138 len += n; 143 if ((m = uni_msg_alloc(len)) == NULL) 234 u_int len, off; local 236 len = inp->b_wptr - inp->b_rptr; 241 msg->b_wptr = msg->b_rptr + len; [all...] |
/freebsd-11.0-release/contrib/gcc/ |
H A D | prefix.c | 116 save_string (const char *s, int len) argument 118 char *result = XNEWVEC (char, len + 1); 120 memcpy (result, s, len); 121 result[len] = 0; 253 const int len = strlen (std_prefix); local 255 if (! strncmp (path, std_prefix, len) 256 && (IS_DIR_SEPARATOR(path[len]) 257 || path[len] == '\0') 268 result = concat (key, &path[len], NULL); 354 set_std_prefix (const char *prefix, int len) argument [all...] |
/freebsd-11.0-release/contrib/gcclibs/libiberty/ |
H A D | cp-demint.c | 135 int len; local 140 len = strlen (type_name); 143 if (len == cplus_demangle_builtin_types[i].len 160 int len; local 165 len = strlen (opname); 168 if (len == cplus_demangle_operators[i].len 185 size_t len; local 190 len [all...] |
/freebsd-11.0-release/contrib/binutils/libiberty/ |
H A D | cp-demint.c | 135 int len; local 140 len = strlen (type_name); 143 if (len == cplus_demangle_builtin_types[i].len 160 int len; local 165 len = strlen (opname); 168 if (len == cplus_demangle_operators[i].len 185 size_t len; local 190 len [all...] |
/freebsd-11.0-release/sys/cddl/contrib/opensolaris/uts/common/zmod/ |
H A D | adler32.c | 57 uLong ZEXPORT adler32(adler, buf, len) 60 uInt len; 70 if (len == 1) { 80 /* initial Adler-32 value (deferred check for len == 1 speed) */ 85 if (len < 16) { 86 while (len--) { 97 while (len >= NMAX) { 98 len -= NMAX; 109 if (len) { /* avoid modulos if none remaining */ 110 while (len > [all...] |
H A D | zutil.c | 155 void zmemcpy(dest, source, len) 158 uInt len; 160 if (len == 0) return; 163 } while (--len != 0); 166 int zmemcmp(s1, s2, len) 169 uInt len; 173 for (j = 0; j < len; j++) { 179 void zmemzero(dest, len) 181 uInt len; 183 if (len [all...] |
/freebsd-11.0-release/sys/dev/nand/ |
H A D | nandsim_log.c | 94 int hdr_len, len, rest; local 121 len = vsnprintf(tmp, NANDSIM_ENTRY_SIZE - 1, fmt, ap); 140 if (rest >= len) { 141 bcopy(tmp, &sc->log_buff[sc->log_idx], len); 142 sc->log_idx += len; 146 bcopy(&tmp[rest], sc->log_buff, len - rest); 147 sc->log_idx = len - rest; 155 len = vsnprintf(tmp, NANDSIM_ENTRY_SIZE - 1, fmt, ap); 171 if (rest >= len) { 173 str_index += len; [all...] |
/freebsd-11.0-release/sys/dev/ofw/ |
H A D | openfirm.h | 108 size_t len); 110 size_t len); /* Same as getprop, but maintains endianness */ 113 size_t len); 115 void *buf, size_t len); 122 size_t len); 124 size_t len); 125 ssize_t OF_canon(const char *path, char *buf, size_t len); 127 ssize_t OF_package_to_path(phandle_t node, char *buf, size_t len); 152 ssize_t OF_read(ihandle_t instance, void *buf, size_t len); 153 ssize_t OF_write(ihandle_t instance, const void *buf, size_t len); [all...] |
/freebsd-11.0-release/sys/i386/ibcs2/ |
H A D | ibcs2_socksys.c | 42 int len; member in struct:getipdomainname_args 47 int len; member in struct:setipdomainname_args 150 int len; local 162 len = strlen(dptr) + 1; 163 if ((u_int)uap->len > len + 1) 164 uap->len = len + 1; 165 return (copyout((caddr_t)dptr, (caddr_t)uap->ipdomainname, uap->len)); 197 if ((u_int)uap->len > (sizeo [all...] |
/freebsd-11.0-release/lib/libz/ |
H A D | adler32.c | 65 uLong ZEXPORT adler32(adler, buf, len) 68 uInt len; 78 if (len == 1) { 88 /* initial Adler-32 value (deferred check for len == 1 speed) */ 93 if (len < 16) { 94 while (len--) { 105 while (len >= NMAX) { 106 len -= NMAX; 117 if (len) { /* avoid modulos if none remaining */ 118 while (len > [all...] |
/freebsd-11.0-release/crypto/openssl/crypto/engine/ |
H A D | tb_asnmth.c | 182 int len) 189 if (len == -1) 190 len = strlen(str); 194 if (((int)strlen(ameth->pem_str) == len) && 195 !strncasecmp(ameth->pem_str, str, len)) 205 int len; member in struct:__anon6320 218 if (((int)strlen(ameth->pem_str) == lk->len) && 219 !strncasecmp(ameth->pem_str, lk->str, lk->len)) { 229 int len) 235 fstr.len 180 ENGINE_get_pkey_asn1_meth_str(ENGINE *e, const char *str, int len) argument 227 ENGINE_pkey_asn1_find_str(ENGINE **pe, const char *str, int len) argument [all...] |
/freebsd-11.0-release/contrib/nvi/vi/ |
H A D | v_mark.c | 109 size_t len; local 123 if (db_get(sp, vp->m_stop.lno, DBG_FATAL, NULL, &len)) 125 if (vp->m_stop.cno < len || 126 (vp->m_stop.cno == len && len == 0)) 219 if (db_get(sp, --vp->m_stop.lno, DBG_FATAL, NULL, &len)) 221 vp->m_stop.cno = len ? len - 1 : 0; 222 len = 0; 223 if (nonblank(sp, vp->m_start.lno, &len)) [all...] |
/freebsd-11.0-release/usr.sbin/bhyve/ |
H A D | mevent_test.c | 70 size_t len; local 77 len = sizeof(tsc_freq); 78 sysctlbyname("machdep.tsc_freq", &tsc_freq, &len, NULL, 0); 134 int len; local 148 len = read(fd, buf, sizeof(buf)); 149 if (len > 0) { 150 write(fd, buf, len); 151 write(0, buf, len); 173 int len; local 175 while ((len [all...] |
/freebsd-11.0-release/contrib/wpa/src/crypto/ |
H A D | aes-siv.c | 54 static void pad_block(u8 *pad, const u8 *addr, size_t len) argument 57 os_memcpy(pad, addr, len); 59 if (len < AES_BLOCK_SIZE) 60 pad[len] = 0x80; 65 size_t *len, u8 *mac) 83 ret = omac1_aes_128(key, addr[i], len[i], tmp2); 90 if (len[i] >= AES_BLOCK_SIZE) { 91 buf = os_malloc(len[i]); 95 os_memcpy(buf, addr[i], len[i]); 96 xorend(buf, len[ 64 aes_s2v(const u8 *key, size_t num_elem, const u8 *addr[], size_t *len, u8 *mac) argument 110 aes_siv_encrypt(const u8 *key, const u8 *pw, size_t pwlen, size_t num_elem, const u8 *addr[], const size_t *len, u8 *out) argument 147 aes_siv_decrypt(const u8 *key, const u8 *iv_crypt, size_t iv_c_len, size_t num_elem, const u8 *addr[], const size_t *len, u8 *out) argument [all...] |
H A D | random.c | 73 static void random_mix_pool(const void *buf, size_t len) argument 82 wpa_hexdump_key(MSG_EXCESSIVE, "random_mix_pool", buf, len); 84 while (len--) { 126 void random_add_randomness(const void *buf, size_t len) argument 146 random_mix_pool(buf, len); 154 int random_get_bytes(void *buf, size_t len) argument 160 wpa_printf(MSG_MSGDUMP, "Get randomness: len=%u entropy=%u", 161 (unsigned int) len, entropy); 164 ret = os_get_random(buf, len); 166 buf, len); 339 size_t len; local [all...] |
/freebsd-11.0-release/crypto/openssh/openbsd-compat/ |
H A D | strptime.c | 71 size_t len; local 175 len = strlen(_ctloc(day[i])); 176 if (strncasecmp(_ctloc(day[i]), bp, len) == 0) 180 len = strlen(_ctloc(abday[i])); 181 if (strncasecmp(_ctloc(abday[i]), bp, len) == 0) 190 bp += len; 199 len = strlen(_ctloc(mon[i])); 200 if (strncasecmp(_ctloc(mon[i]), bp, len) == 0) 204 len = strlen(_ctloc(abmon[i])); 205 if (strncasecmp(_ctloc(abmon[i]), bp, len) [all...] |
/freebsd-11.0-release/contrib/netbsd-tests/net/net/ |
H A D | t_unix.c | 79 print(const char *msg, struct sockaddr_un *addr, socklen_t len) argument 83 printf("%s: client socket length: %zu\n", msg, (size_t)len); 86 printf("%s: client len %d\n", msg, addr->sun_len); 89 for (i = 0; i < len - OF; i++) { 105 socklen_t len; local 110 len = sizeof(sun); 111 if ((s = accept(s, (struct sockaddr *)&sun, &len)) == -1) 118 print("accept", &sun, len); 120 if (len != 2) 121 FAIL("len 140 test(bool closeit, size_t len) argument 319 size_t len; local [all...] |
/freebsd-11.0-release/contrib/gdb/gdb/ |
H A D | scm-lang.c | 144 int len = strlen (filename); local 145 if (len >= 6 && strcmp (filename + len - 6, "eval.c") == 0) 159 int len = strlen (str); local 163 args[0] = value_allocate_space_in_inferior (len); 164 args[1] = value_from_longest (builtin_type_int, len); 165 write_memory (value_as_long (args[0]), str, len); local 192 scm_evaluate_string (char *str, int len) argument 195 struct value *addr = value_allocate_space_in_inferior (len + 1); 197 write_memory (iaddr, str, len); 209 int len, pc; local [all...] |
/freebsd-11.0-release/crypto/openssl/crypto/evp/ |
H A D | e_rc4_hmac_md5.c | 116 const unsigned char *in, size_t len) 128 if (plen != NO_PAYLOAD_LENGTH && len != (plen + MD5_DIGEST_LENGTH)) 133 plen = len; 160 if (plen != len) { /* "TLS" mode of operation */ 170 RC4(&key->ks, len - rc4_off, out + rc4_off, out + rc4_off); 172 RC4(&key->ks, len - rc4_off, in + rc4_off, out + rc4_off); 183 if (len > rc4_off && (blocks = (len - rc4_off) / MD5_CBLOCK) && 204 RC4(&key->ks, len - rc4_off, in + rc4_off, out + rc4_off); 217 MD5_Update(&key->md, out + md5_off, len 115 rc4_hmac_md5_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t len) argument 264 unsigned int len; local [all...] |
/freebsd-11.0-release/crypto/openssl/crypto/hmac/ |
H A D | hmac.c | 68 int HMAC_Init_ex(HMAC_CTX *ctx, const void *key, int len, argument 97 return FIPS_hmac_init_ex(ctx, key, len, md, NULL); 101 if (md != NULL && md != ctx->md && (key == NULL || len < 0)) 117 if (j < len) { 120 if (!EVP_DigestUpdate(&ctx->md_ctx, key, len)) 126 if (len < 0 || len > (int)sizeof(ctx->key)) 128 memcpy(ctx->key, key, len); 129 ctx->key_length = len; 158 int HMAC_Init(HMAC_CTX *ctx, const void *key, int len, cons argument 165 HMAC_Update(HMAC_CTX *ctx, const unsigned char *data, size_t len) argument 177 HMAC_Final(HMAC_CTX *ctx, unsigned char *md, unsigned int *len) argument [all...] |
/freebsd-11.0-release/usr.sbin/ctld/ |
H A D | isns.c | 92 isns_req_getspace(struct isns_req *req, uint32_t len) argument 97 if (req->ir_usedlen + len <= req->ir_buflen) 99 newlen = 1 << flsl(req->ir_usedlen + len); 111 isns_req_add(struct isns_req *req, uint32_t tag, uint32_t len, argument 117 vlen = len + ((len & 3) ? (4 - (len & 3)) : 0); 122 memcpy(tlv->it_value, value, len); 123 if (vlen != len) 124 memset(&tlv->it_value[len], 222 ssize_t res, len; local [all...] |