/freebsd-11.0-release/contrib/tcpdump/ |
H A D | print-udld.c | 84 int code, type, len; local 120 len = EXTRACT_16BITS(tptr+2); 121 len -= 4; 125 if (type == 0 || len == 0) { 131 type, len)); 153 tptr += len;
|
/freebsd-11.0-release/crypto/openssl/crypto/x509/ |
H A D | x509name.c | 67 int X509_NAME_get_text_by_NID(X509_NAME *name, int nid, char *buf, int len) argument 74 return (X509_NAME_get_text_by_OBJ(name, obj, buf, len)); 78 int len) 87 i = (data->length > (len - 1)) ? (len - 1) : data->length; 182 unsigned char *bytes, int len, int loc, 187 ne = X509_NAME_ENTRY_create_by_OBJ(NULL, obj, type, bytes, len); 196 unsigned char *bytes, int len, int loc, 201 ne = X509_NAME_ENTRY_create_by_NID(NULL, nid, type, bytes, len); 210 const unsigned char *bytes, int len, in 77 X509_NAME_get_text_by_OBJ(X509_NAME *name, ASN1_OBJECT *obj, char *buf, int len) argument 181 X509_NAME_add_entry_by_OBJ(X509_NAME *name, ASN1_OBJECT *obj, int type, unsigned char *bytes, int len, int loc, int set) argument 195 X509_NAME_add_entry_by_NID(X509_NAME *name, int nid, int type, unsigned char *bytes, int len, int loc, int set) argument 209 X509_NAME_add_entry_by_txt(X509_NAME *name, const char *field, int type, const unsigned char *bytes, int len, int loc, int set) argument 284 X509_NAME_ENTRY_create_by_txt(X509_NAME_ENTRY **ne, const char *field, int type, const unsigned char *bytes, int len) argument 304 X509_NAME_ENTRY_create_by_NID(X509_NAME_ENTRY **ne, int nid, int type, unsigned char *bytes, int len) argument 321 X509_NAME_ENTRY_create_by_OBJ(X509_NAME_ENTRY **ne, ASN1_OBJECT *obj, int type, const unsigned char *bytes, int len) argument 360 X509_NAME_ENTRY_set_data(X509_NAME_ENTRY *ne, int type, const unsigned char *bytes, int len) argument [all...] |
/freebsd-11.0-release/crypto/openssl/ssl/ |
H A D | s23_lib.c | 127 int ssl23_read(SSL *s, void *buf, int len) argument 140 return (SSL_read(s, buf, len)); 147 int ssl23_peek(SSL *s, void *buf, int len) argument 160 return (SSL_peek(s, buf, len)); 167 int ssl23_write(SSL *s, const void *buf, int len) argument 180 return (SSL_write(s, buf, len));
|
/freebsd-11.0-release/lib/libc/locale/ |
H A D | mbsnrtowcs.c | 45 size_t nms, size_t len, mbstate_t * __restrict ps, locale_t locale) 50 return (XLOCALE_CTYPE(locale)->__mbsnrtowcs(dst, src, nms, len, ps)); 54 size_t nms, size_t len, mbstate_t * __restrict ps) 56 return mbsnrtowcs_l(dst, src, nms, len, ps, __get_locale()); 61 size_t nms, size_t len, mbstate_t * __restrict ps, 86 while (len-- > 0) { 44 mbsnrtowcs_l(wchar_t * __restrict dst, const char ** __restrict src, size_t nms, size_t len, mbstate_t * __restrict ps, locale_t locale) argument 53 mbsnrtowcs(wchar_t * __restrict dst, const char ** __restrict src, size_t nms, size_t len, mbstate_t * __restrict ps) argument 60 __mbsnrtowcs_std(wchar_t * __restrict dst, const char ** __restrict src, size_t nms, size_t len, mbstate_t * __restrict ps, mbrtowc_pfn_t pmbrtowc) argument
|
/freebsd-11.0-release/crypto/openssh/ |
H A D | sshbuf.c | 89 sshbuf_from(const void *blob, size_t len) argument 93 if (blob == NULL || len > SSHBUF_SIZE_MAX || 96 ret->alloc = ret->size = ret->max_size = len; 238 SSHBUF_DBG(("set max buf = %p len = %zu", buf, max_size)); 303 sshbuf_check_reserve(const struct sshbuf *buf, size_t len) argument 312 /* Check that len is reasonable and that max_size + available < len */ 313 if (len > buf->max_size || buf->max_size - len < buf->size - buf->off) 319 sshbuf_reserve(struct sshbuf *buf, size_t len, u_cha argument 372 sshbuf_consume(struct sshbuf *buf, size_t len) argument 389 sshbuf_consume_end(struct sshbuf *buf, size_t len) argument [all...] |
/freebsd-11.0-release/contrib/ncurses/ncurses/base/ |
H A D | tries.c | 49 _nc_expand_try(TRIES * tree, unsigned code, int *count, size_t len) argument 56 if ((result = _nc_expand_try(ptr->child, code, count, len + 1)) 63 result = typeCalloc(char, len + 2); 71 if (ptr != 0 && (result[len] = (char) ptr->ch) == 0) 72 *((unsigned char *) (result + len)) = 128; 74 if (len == 0 && USE_TRACEF(TRACE_MAXIMUM)) {
|
/freebsd-11.0-release/contrib/gcclibs/libssp/ |
H A D | ssp.c | 106 size_t progname_len, len; local 110 len = msg1len + progname_len + sizeof(msg2)-1 + 1; 111 p = buf = alloca (len); 119 while (len > 0) 121 ssize_t wrote = write (fd, buf, len); 125 len -= wrote;
|
/freebsd-11.0-release/contrib/apr-util/buckets/ |
H A D | apr_buckets_pipe.c | 20 apr_size_t *len, apr_read_type_e block) 33 *len = APR_BUCKET_BUFF_SIZE; 34 buf = apr_bucket_alloc(*len, a->list); /* XXX: check for failure? */ 36 rv = apr_file_read(p, buf, len); 58 if (*len > 0) { 61 a = apr_bucket_heap_make(a, buf, *len, apr_bucket_free); 19 pipe_bucket_read(apr_bucket *a, const char **str, apr_size_t *len, apr_read_type_e block) argument
|
H A D | apr_buckets_socket.c | 20 apr_size_t *len, apr_read_type_e block) 33 *len = APR_BUCKET_BUFF_SIZE; 34 buf = apr_bucket_alloc(*len, a->list); /* XXX: check for failure? */ 36 rv = apr_socket_recv(p, buf, len); 61 if (*len > 0) { 64 a = apr_bucket_heap_make(a, buf, *len, apr_bucket_free); 19 socket_bucket_read(apr_bucket *a, const char **str, apr_size_t *len, apr_read_type_e block) argument
|
/freebsd-11.0-release/bin/ed/ |
H A D | re.c | 85 int len; local 104 len = nd - ibufp; 105 REALLOC(lhbuf, lhbufsz, len + 1, NULL); 106 memcpy(lhbuf, ibufp, len); 107 lhbuf[len] = '\0'; 109 return (isbinary) ? NUL_TO_NEWLINE(lhbuf, len) : lhbuf;
|
/freebsd-11.0-release/cddl/contrib/opensolaris/lib/libuutil/common/ |
H A D | uu_alloc.c | 76 size_t len; local 79 len = strnlen(s, n); 80 p = uu_zalloc(len + 1); 84 if (len > 0) 85 (void) memcpy(p, s, len); 86 p[len] = '\0';
|
/freebsd-11.0-release/sys/dev/hptmv/ |
H A D | mv.c | 85 os_memcmp(const void *cs, const void *ct, unsigned len) argument 87 return memcmp(cs, ct, len); 91 os_memcpy(void *to, const void *from, unsigned len) argument 93 memcpy(to, from, len); 97 os_memset(void *s, char c, unsigned len) argument 99 memset(s, c, len);
|
/freebsd-11.0-release/lib/libc/tests/string/ |
H A D | wcsnlen_test.c | 41 makebuf(size_t len, int guard_at_end) argument 44 size_t alloc_size = roundup2(len, PAGE_SIZE) + PAGE_SIZE; 50 return (buf + alloc_size - PAGE_SIZE - len); 61 size_t size, len, bufsize; local 69 len = (size > bufsize) ? bufsize : size - 1; 70 ATF_CHECK(wcsnlen(s1, bufsize) == len);
|
/freebsd-11.0-release/sys/amd64/vmm/ |
H A D | vmm_mem.c | 59 vmm_mmio_alloc(struct vmspace *vmspace, vm_paddr_t gpa, size_t len, argument 67 error = sglist_append_phys(sg, hpa, len); 70 obj = vm_pager_allocate(OBJT_SG, sg, len, VM_PROT_RW, 0, NULL); 86 error = vm_map_find(&vmspace->vm_map, obj, 0, &gpa, len, 0, 111 vmm_mmio_free(struct vmspace *vmspace, vm_paddr_t gpa, size_t len) argument 114 vm_map_remove(&vmspace->vm_map, gpa, gpa + len);
|
/freebsd-11.0-release/crypto/openssl/crypto/evp/ |
H A D | openbsd_hw.c | 171 cryp.len = inl; 180 memcpy(lb, &in[cryp.len - ctx->cipher->iv_len], ctx->cipher->iv_len); 207 cryp.len = cinl; 230 memcpy(ctx->iv, &out[cryp.len - ctx->cipher->iv_len], 280 int len; 289 md_data->len = 0; 318 static int do_digest(int ses, unsigned char *md, const void *data, int len) 327 if (!len) { 336 cryp.len = len; [all...] |
/freebsd-11.0-release/sys/sys/ |
H A D | mpt_ioctl.h | 49 * buffer of 'len' bytes which holds the entire page (including the 58 int len; member in struct:mpt_cfg_page_req 66 int len; member in struct:mpt_ext_cfg_page_req 77 int len; member in struct:mpt_raid_action 97 int len; member in struct:mpt_cfg_page_req32 105 int len; member in struct:mpt_ext_cfg_page_req32 116 int len; member in struct:mpt_raid_action32
|
/freebsd-11.0-release/sys/dev/pms/RefTisa/sat/src/ |
H A D | smmisc.c | 76 *sm_strncpy(char *dst, const char *src, bit32 len) argument 80 if (!len--) 83 while (len--) 86 */ return strncpy(dst, src, len); 91 smhexdump(const char *ptitle, bit8 *pbuf, size_t len) argument 94 SM_DBG1(("%s - smhexdump(len=%d):\n", ptitle, (int)len)); 100 for (i = 0; i < len; ) 102 if (len - i > 4)
|
/freebsd-11.0-release/contrib/nvi/ex/ |
H A D | ex_source.c | 41 int fd, len; local 49 INT2CHAR(sp, cmdp->argv[0]->bp, cmdp->argv[0]->len + 1, name, nlen); 76 len = read(fd, bp, (int)sb.st_size); 78 if (len == -1 || len != sb.st_size) { 79 if (len != sb.st_size)
|
/freebsd-11.0-release/usr.sbin/crunch/crunchgen/ |
H A D | crunched_main.c | 95 int columns, len; local 110 int columns, len; local 117 len = strlen(ep->name) + 1; 118 if(columns+len < 80) 119 columns += len; 122 columns = len;
|
/freebsd-11.0-release/sys/kern/ |
H A D | subr_unit.c | 174 * For runs the len field is the length of the run. 175 * For bitmaps the len field represents the number of allocated items. 181 u_int len; member in struct:unr 194 /* Is the unrb empty in at least the first len bits? */ 196 ub_empty(struct unrb *ub, int len) { argument 199 bit_ffs(ub->map, len, &first_set); 203 /* Is the unrb full? That is, is the number of set elements equal to len? */ 205 ub_full(struct unrb *ub, int len) argument 209 bit_ffc(ub->map, len, &first_clear); 236 KASSERT (up->len < [all...] |
/freebsd-11.0-release/crypto/heimdal/lib/krb5/ |
H A D | crc.c | 64 _krb5_crc_update (const char *p, size_t len, uint32_t res) argument 66 while (len--)
|
H A D | crypto-null.c | 55 size_t len, 76 size_t len, 52 NONE_checksum(krb5_context context, struct _krb5_key_data *key, const void *data, size_t len, unsigned usage, Checksum *C) argument 73 NULL_encrypt(krb5_context context, struct _krb5_key_data *key, void *data, size_t len, krb5_boolean encryptp, int usage, void *ivec) argument
|
/freebsd-11.0-release/contrib/wpa/src/ap/ |
H A D | preauth_auth.h | 19 u8 *buf, size_t len); 41 u8 *buf, size_t len) 39 rsn_preauth_send(struct hostapd_data *hapd, struct sta_info *sta, u8 *buf, size_t len) argument
|
/freebsd-11.0-release/contrib/wpa/src/eap_peer/ |
H A D | tncc.h | 32 const u8 *msg, size_t len); 34 struct wpabuf * tncc_process_soh_request(int ver, const u8 *data, size_t len);
|
/freebsd-11.0-release/contrib/wpa/src/tls/ |
H A D | bignum.c | 71 * @len: Length of the buffer, can be %NULL if buffer is known to be long 75 int bignum_get_unsigned_bin(const struct bignum *n, u8 *buf, size_t *len) argument 78 if (len && need > *len) { 79 *len = need; 86 if (len) 87 *len = need; 96 * @len: Length of buf in octets 99 int bignum_set_unsigned_bin(struct bignum *n, const u8 *buf, size_t len) argument 101 if (mp_read_unsigned_bin((mp_int *) n, (u8 *) buf, len) ! [all...] |