/freebsd-11-stable/contrib/apr-util/crypto/ |
H A D | apr_sha1.c | 182 static void maybe_byte_reverse(apr_uint32_t *buffer, int count) argument 189 cp = (apr_byte_t *) buffer; 221 const unsigned char *buffer, 236 memcpy(((apr_byte_t *) sha_info->data) + sha_info->local, buffer, i); 238 buffer += i; 249 memcpy(sha_info->data, buffer, SHA_BLOCKSIZE); 250 buffer += SHA_BLOCKSIZE; 255 memcpy(sha_info->data, buffer, count); 264 const apr_byte_t *buffer = (const apr_byte_t *) buf; local 279 apr_xlate_conv_buffer(ebcdic2ascii_xlate, buffer, 220 apr_sha1_update_binary(apr_sha1_ctx_t *sha_info, const unsigned char *buffer, unsigned int count) argument [all...] |
/freebsd-11-stable/usr.sbin/bluetooth/hcsecd/ |
H A D | hcsecd.c | 76 char buffer[HCSECD_BUFFER_SIZE]; local 155 event = (ng_hci_event_pkt_t *) buffer; 158 n = recvfrom(sock, buffer, sizeof(buffer), 0, 270 uint8_t buffer[HCSECD_BUFFER_SIZE]; local 273 memset(buffer, 0, sizeof(buffer)); 275 cmd = (ng_hci_cmd_pkt_t *) buffer; 309 if (sendto(sock, buffer, sizeof(*cmd) + cmd->length, 0, 329 uint8_t buffer[HCSECD_BUFFER_SIZ local [all...] |
/freebsd-11-stable/lib/libc/net/ |
H A D | getservent.c | 136 char *buffer; member in struct:servent_state 225 parse_result(struct servent *serv, char *buffer, size_t bufsize, argument 235 aliases = (char **)_ALIGN(&buffer[resultbuflen + 1]); 236 aliases_size = (buffer + bufsize - (char *)aliases) / sizeof(char *); 242 memcpy(buffer, resultbuf, resultbuflen); 243 buffer[resultbuflen] = '\0'; 245 if (servent_unpack(buffer, serv, aliases, aliases_size, errnop) != 0) 299 char *buffer; local 326 buffer = va_arg(ap, char *); 367 compat_src, name, proto, serv, buffer, 504 char *buffer; local 676 char *buffer; local 870 serv_id_func(char *buffer, size_t *buffer_size, va_list ap, void *cache_mdata) argument 945 serv_marshal_func(char *buffer, size_t *buffer_size, void *retval, va_list ap, void *cache_mdata) argument 1046 serv_unmarshal_func(char *buffer, size_t buffer_size, void *retval, va_list ap, void *cache_mdata) argument 1115 getservbyname_r(const char *name, const char *proto, struct servent *serv, char *buffer, size_t bufsize, struct servent **result) argument 1152 getservbyport_r(int port, const char *proto, struct servent *serv, char *buffer, size_t bufsize, struct servent **result) argument 1189 getservent_r(struct servent *serv, char *buffer, size_t bufsize, struct servent **result) argument 1285 wrap_getservbyname_r(struct key key, struct servent *serv, char *buffer, size_t bufsize, struct servent **res) argument 1293 wrap_getservbyport_r(struct key key, struct servent *serv, char *buffer, size_t bufsize, struct servent **res) argument 1301 wrap_getservent_r(struct key key, struct servent *serv, char *buffer, size_t bufsize, struct servent **res) argument [all...] |
H A D | getnetnamadr.c | 61 net_id_func(char *buffer, size_t *buffer_size, va_list ap, void *cache_mdata) argument 83 memcpy(buffer, &lookup_type, sizeof(enum nss_lookup_type)); 84 memcpy(buffer + sizeof(enum nss_lookup_type), name, size + 1); 99 memcpy(buffer, &lookup_type, sizeof(enum nss_lookup_type)); 100 memcpy(buffer + sizeof(enum nss_lookup_type), &net, 102 memcpy(buffer + sizeof(enum nss_lookup_type) + sizeof(uint32_t), 119 net_marshal_func(char *buffer, size_t *buffer_size, void *retval, va_list ap, argument 177 memset(buffer, 0, desired_size); 178 p = buffer + sizeof(struct netent) + sizeof(char *); 179 memcpy(buffer 208 net_unmarshal_func(char *buffer, size_t buffer_size, void *retval, va_list ap, void *cache_mdata) argument 338 getnetbyname_r(const char *name, struct netent *ne, char *buffer, size_t buflen, struct netent **result, int *h_errorp) argument 370 getnetbyaddr_r(uint32_t addr, int af, struct netent *ne, char *buffer, size_t buflen, struct netent **result, int *h_errorp) argument [all...] |
H A D | getprotoent.c | 88 __proto_id_func(char *buffer, size_t *buffer_size, va_list ap, argument 110 memcpy(buffer, &lookup_type, sizeof(enum nss_lookup_type)); 111 memcpy(buffer + sizeof(enum nss_lookup_type), name, size + 1); 124 memcpy(buffer, &lookup_type, sizeof(enum nss_lookup_type)); 125 memcpy(buffer + sizeof(enum nss_lookup_type), &proto, 142 __proto_marshal_func(char *buffer, size_t *buffer_size, void *retval, argument 198 memset(buffer, 0, desired_size); 199 p = buffer + sizeof(struct protoent) + sizeof(char *); 200 memcpy(buffer + sizeof(struct protoent), &p, sizeof(char *)); 224 memcpy(buffer, 229 __proto_unmarshal_func(char *buffer, size_t buffer_size, void *retval, va_list ap, void *cache_mdata) argument 417 char *buffer; local 472 getprotoent_r(struct protoent *pptr, char *buffer, size_t buflen, struct protoent **result) argument [all...] |
/freebsd-11-stable/contrib/unbound/sldns/ |
H A D | parse.c | 227 sldns_bgetc(sldns_buffer *buffer) argument 229 if (!sldns_buffer_available_at(buffer, buffer->_position, sizeof(uint8_t))) { 230 sldns_buffer_set_position(buffer, sldns_buffer_limit(buffer)); 231 /* sldns_buffer_rewind(buffer);*/ 234 return (int)sldns_buffer_read_u8(buffer); 396 sldns_bskipcs(sldns_buffer *buffer, const char *s) argument 402 while(sldns_buffer_available_at(buffer, buffer [all...] |
/freebsd-11-stable/contrib/libarchive/libarchive/ |
H A D | archive_read_support_filter_xz.c | 216 const unsigned char *buffer; local 221 buffer = __archive_read_filter_ahead(filter, 6, &avail); 222 if (buffer == NULL) 228 if (memcmp(buffer, "\xFD\x37\x7A\x58\x5A\x00", 6) != 0) 250 const unsigned char *buffer; local 258 buffer = __archive_read_filter_ahead(filter, 14, &avail); 259 if (buffer == NULL) 279 if (buffer[0] > (4 * 5 + 4) * 9 + 8) 282 if (buffer[0] == 0x5d || buffer[ 356 const unsigned char *buffer; local [all...] |
/freebsd-11-stable/contrib/ncurses/progs/ |
H A D | dump_entry.c | 435 /* Returns the nominal length of the buffer assuming it is termcap format, 439 * fixed-size buffer. Generally they strip the newlines from the text, but may 440 * not do it until after the buffer is read. Also, "tc=" resolution may be 441 * expanded in the same buffer. This function is useful for measuring the size 442 * of the best fixed-buffer implementation; the worst case may be much worse. 465 indent_DYN(DYNBUF * buffer, int level) argument 470 strncpy_DYN(buffer, "\t", (size_t) 1); 603 char buffer[MAX_TERMINFO_LENGTH + EXTRA_CAP]; local 613 wrap_concat(buffer); \ 650 assert(strlen(name) < sizeof(buffer) 1230 char buffer[MAX_TERMINFO_LENGTH]; local [all...] |
/freebsd-11-stable/crypto/heimdal/lib/gssapi/mech/ |
H A D | gss_krb5.c | 100 gss_buffer_desc buffer; local 173 buffer.value = data.data; 174 buffer.length = data.length; 179 &buffer); 192 gss_buffer_desc buffer; local 197 buffer.value = rk_UNCONST(identity); 198 buffer.length = strlen(identity); 205 GSS_KRB5_REGISTER_ACCEPTOR_IDENTITY_X, &buffer); 219 gss_buffer_desc buffer; local 225 buffer 439 gss_buffer_desc buffer; local 489 gss_buffer_desc buffer; local 522 gss_buffer_desc buffer; local 813 gss_buffer_desc buffer; local 874 gss_buffer_desc buffer; local 897 gss_buffer_desc buffer; local 925 gss_buffer_desc buffer; local [all...] |
/freebsd-11-stable/crypto/openssh/ |
H A D | auth-pam.c | 89 #include "buffer.h" 358 Buffer buffer; local 377 buffer_init(&buffer); 382 buffer_put_cstring(&buffer, 385 PAM_MSG_MEMBER(msg, i, msg_style), &buffer) == -1) 387 if (ssh_msg_recv(ctxt->pam_csock, &buffer) == -1) 389 if (buffer_get_char(&buffer) != PAM_AUTHTOK) 391 reply[i].resp = buffer_get_string(&buffer, NULL); 395 buffer_put_cstring(&buffer, 398 PAM_MSG_MEMBER(msg, i, msg_style), &buffer) 426 Buffer buffer; local 719 Buffer buffer; local 848 Buffer buffer; local [all...] |
/freebsd-11-stable/sys/security/mac/ |
H A D | mac_socket.c | 529 char *buffer; local 539 buffer = malloc(mac->m_buflen, M_MACTEMP, M_WAITOK); 540 error = copyinstr(mac->m_string, buffer, mac->m_buflen, NULL); 542 free(buffer, M_MACTEMP); 547 error = mac_socket_internalize_label(intlabel, buffer); 548 free(buffer, M_MACTEMP); 561 char *buffer, *elements; local 579 buffer = malloc(mac->m_buflen, M_MACTEMP, M_WAITOK | M_ZERO); 584 error = mac_socket_externalize_label(intlabel, elements, buffer, 588 error = copyout(buffer, ma 600 char *elements, *buffer; local [all...] |
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/tsan/rtl/ |
H A D | tsan_md5.cpp | 37 unsigned char buffer[64]; member in struct:__tsan::__anon1050 174 internal_memcpy(&ctx->buffer[used], data, size); 178 internal_memcpy(&ctx->buffer[used], data, free); 181 body(ctx, ctx->buffer, 64); 189 internal_memcpy(ctx->buffer, data, size); 197 ctx->buffer[used++] = 0x80; 202 internal_memset(&ctx->buffer[used], 0, free); 203 body(ctx, ctx->buffer, 64); 208 internal_memset(&ctx->buffer[used], 0, free - 8); 211 ctx->buffer[5 [all...] |
/freebsd-11-stable/usr.bin/nl/ |
H A D | nl.c | 97 * Dynamically allocated buffer suitable for string representation of ints. 261 /* Allocate a buffer suitable for preformatting line number. */ 264 err(EXIT_FAILURE, "cannot allocate preformatting buffer"); 276 char *buffer; local 289 buffer = NULL; 291 while ((linelen = getline(&buffer, &buffersize, stdin)) > 0) { 296 if (memcmp(buffer + delimlen * idx, delim, 300 if (buffer[delimlen * (idx + 1)] == '\n') { 316 if (buffer[0] == '\n' && ++adjblank < nblank) 322 donumber = (buffer[ [all...] |
/freebsd-11-stable/contrib/unbound/util/data/ |
H A D | msgencode.c | 447 /** store rrset in buffer in wireformat, return RETVAL_* */ 542 /** store msg section in wireformat buffer, return RETVAL_* */ 597 /** store query section in wireformat buffer, return RETVAL */ 600 sldns_buffer* buffer, struct regional* region) 606 if(sldns_buffer_remaining(buffer) < 608 return RETVAL_TRUNC; /* buffer too small */ 611 sldns_buffer_position(buffer), region, NULL, tree)) 613 if(sldns_buffer_current(buffer) == qname) 614 sldns_buffer_skip(buffer, (ssize_t)qname_len); 615 else sldns_buffer_write(buffer, qnam 599 insert_query(struct query_info* qinfo, struct compress_tree_node** tree, sldns_buffer* buffer, struct regional* region) argument 672 reply_info_encode(struct query_info* qinfo, struct reply_info* rep, uint16_t id, uint16_t flags, sldns_buffer* buffer, time_t timenow, struct regional* region, uint16_t udpsize, int dnssec, int minimise) argument [all...] |
/freebsd-11-stable/sys/dev/pms/RefTisa/tisa/sassata/sas/ini/ |
H A D | itdinit.c | 253 char *buffer; local 275 buffer = &tmpBuffer[0]; 278 osti_memset(buffer, 0, buffLen); 286 osti_memset(buffer, 0, buffLen); 300 buffer, 305 if (osti_strncmp(buffer, "0x", 2) == 0) 307 OperatingOption->MaxTargets = osti_strtoul (buffer, &pLastUsedChar, 0); 311 OperatingOption->MaxTargets = osti_strtoul (buffer, &pLastUsedChar, 10); 327 buffer, 332 if (osti_strncmp(buffer, " [all...] |
/freebsd-11-stable/crypto/openssl/crypto/ec/ |
H A D | eck_prn.c | 146 unsigned char *buffer = NULL; local 257 if ((buffer = OPENSSL_malloc(buf_len)) == NULL) { 284 if ((p != NULL) && !ASN1_bn_print(bp, "Polynomial:", p, buffer, 288 if ((p != NULL) && !ASN1_bn_print(bp, "Prime:", p, buffer, off)) 291 if ((a != NULL) && !ASN1_bn_print(bp, "A: ", a, buffer, off)) 293 if ((b != NULL) && !ASN1_bn_print(bp, "B: ", b, buffer, off)) 297 buffer, off)) 301 buffer, off)) 306 buffer, off)) 310 buffer, of [all...] |
/freebsd-11-stable/lib/libedit/ |
H A D | filecomplete.c | 448 ctemp = find_word_start_func(li->buffer, li->cursor); 451 while (ctemp > li->buffer 472 *point = (int)(li->cursor - li->buffer); 474 *end = (int)(li->lastchar - li->buffer); 477 int cur_off = (int)(li->cursor - li->buffer); 613 sh_find_word_start(const Char *buffer, const Char *cursor) argument 615 const Char *word_start = buffer; 617 while (buffer < cursor) { 618 if (*buffer == '\\') 619 buffer [all...] |
H A D | chared.c | 58 /* value to leave unused in line buffer */ 72 size = (size_t)(el->el_line.lastchar - el->el_line.buffer); 74 vu->cursor = (int)(el->el_line.cursor - el->el_line.buffer); 75 (void)memcpy(vu->buf, el->el_line.buffer, size * sizeof(*vu->buf)); 108 return; /* can't go past end of buffer */ 168 if (el->el_line.cursor - num < el->el_line.buffer) 169 num = (int)(el->el_line.cursor - el->el_line.buffer); 403 el->el_line.buffer = el_malloc(EL_BUFSIZ * 404 sizeof(*el->el_line.buffer)); 405 if (el->el_line.buffer [all...] |
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_printf.cpp | 38 // Appends number in a given base to buffer. If its length is less than 57 RAW_CHECK_MSG((uptr)pos < kMaxLen, "AppendNumber buffer overflow"); 254 char *buffer = local_buffer; local 255 // First try to print a message using a local buffer, and then fall back to 256 // mmaped buffer. 261 buffer = (char*)MmapOrDie(kLen, "Report"); 265 // Check that data fits into the current buffer. 278 needed_length += internal_snprintf(buffer, buffer_size, 283 buffer + needed_length, buffer_size - needed_length, "==%d==", pid); 286 needed_length += VSNPrintf(buffer 339 internal_snprintf(char *buffer, uptr length, const char *format, ...) argument [all...] |
/freebsd-11-stable/sys/netgraph/bluetooth/hci/ |
H A D | ng_hci_misc.c | 107 NG_HCI_BUFF_ACL_SIZE(unit->buffer, ep->pkt_size); 108 NG_HCI_BUFF_ACL_TOTAL(unit->buffer, ep->num_pkts); 110 NG_HCI_BUFF_SCO_SIZE(unit->buffer, ep->pkt_size); 111 NG_HCI_BUFF_SCO_TOTAL(unit->buffer, ep->num_pkts); 141 NG_HCI_BUFF_CMD_SET(unit->buffer, 1); 160 NG_HCI_BUFF_ACL_TOTAL(unit->buffer, size); 161 NG_HCI_BUFF_ACL_FREE(unit->buffer, size); 163 NG_HCI_BUFF_SCO_TOTAL(unit->buffer, size); 164 NG_HCI_BUFF_SCO_FREE(unit->buffer, size); 289 NG_HCI_BUFF_ACL_TOTAL(unit->buffer, num_pkt [all...] |
/freebsd-11-stable/crypto/heimdal/lib/gssapi/krb5/ |
H A D | cfx.c | 217 _gk_allocate_buffer(OM_uint32 *minor_status, gss_iov_buffer_desc *buffer, size_t size) argument 219 if (buffer->type & GSS_IOV_BUFFER_FLAG_ALLOCATED) { 220 if (buffer->buffer.length == size) 222 free(buffer->buffer.value); 225 buffer->buffer.value = malloc(size); 226 buffer->buffer [all...] |
/freebsd-11-stable/stand/usb/ |
H A D | usb_busdma_loader.c | 51 if (pc->buffer) { 55 res->buffer = USB_ADD_BYTES(pc->buffer, offset); 75 if (!pc->buffer) { 79 res->buffer = USB_ADD_BYTES(page->buffer, offset); 86 res->buffer = USB_ADD_BYTES(pc->buffer, offset); 109 memcpy(buf_res.buffer, ptr, buf_res.length); 133 memcpy(ptr, res.buffer, re [all...] |
/freebsd-11-stable/contrib/gcclibs/libcpp/ |
H A D | traditional.c | 47 /* Memory buffer holding the trad_arg array. */ 52 buffer. The argument continues until the character before the 59 /* The offset of the macro name in the output buffer. */ 96 /* Ensures we have N bytes' space in the output buffer, and 121 const uchar *cur = pfile->buffer->cur; 132 pfile->buffer->cur = cur; 139 The asterisk and following comment is copied to the buffer pointed 146 input buffer. */ 152 cpp_buffer *buffer = pfile->buffer; local 268 cpp_buffer *buffer = pfile->buffer; local 285 cpp_buffer *buffer = pfile->overlaid_buffer; local [all...] |
/freebsd-11-stable/crypto/heimdal/lib/gssapi/ |
H A D | test_context.c | 322 iov[1].buffer.length = header.length; 323 iov[1].buffer.value = header.data; 326 iov[1].buffer.length = 0; 327 iov[1].buffer.value = NULL; 330 iov[2].buffer.length = token.length; 331 iov[2].buffer.value = token.data; 334 iov[3].buffer.length = trailer.length; 335 iov[3].buffer.value = trailer.data; 338 iov[3].buffer.length = 0; 339 iov[3].buffer [all...] |
/freebsd-11-stable/contrib/binutils/libiberty/ |
H A D | argv.c | 150 In order to provide a working buffer for extracting arguments into, 152 sequences, we allocate a working buffer at least as long as the input 390 /* A dynamically allocated buffer used to hold options read from a 392 char *buffer; local 413 buffer = (char *) xmalloc (pos * sizeof (char) + 1); 414 len = fread (buffer, sizeof (char), pos, f); 422 buffer[len] = '\0'; 424 file_argv = buildargv (buffer); 454 free (buffer);
|