/freebsd-current/contrib/libcbor/src/cbor/ |
H A D | serialization.h | 27 * @param buffer Buffer to serialize to 28 * @param buffer_size Size of the \p buffer 32 cbor_mutable_data buffer, 54 * .. warning:: It is the caller's responsibility to free the buffer using an 59 * @param[out] buffer Buffer containing the result 60 * @param[out] buffer_size Size of the \p buffer, or 0 on memory allocation 63 * @return 0 on memory allocation failure, in which case \p buffer is `NULL`. 66 unsigned char **buffer, 72 * @param[out] buffer Buffer to serialize to 73 * @param buffer_size Size of the \p buffer [all...] |
H A D | serialization.c | 20 size_t cbor_serialize(const cbor_item_t *item, unsigned char *buffer, argument 25 return cbor_serialize_uint(item, buffer, buffer_size); 27 return cbor_serialize_negint(item, buffer, buffer_size); 29 return cbor_serialize_bytestring(item, buffer, buffer_size); 31 return cbor_serialize_string(item, buffer, buffer_size); 33 return cbor_serialize_array(item, buffer, buffer_size); 35 return cbor_serialize_map(item, buffer, buffer_size); 37 return cbor_serialize_tag(item, buffer, buffer_size); 39 return cbor_serialize_float_ctrl(item, buffer, buffer_size); 154 size_t cbor_serialize_alloc(const cbor_item_t *item, unsigned char **buffer, argument 174 cbor_serialize_uint(const cbor_item_t *item, unsigned char *buffer, size_t buffer_size) argument 190 cbor_serialize_negint(const cbor_item_t *item, unsigned char *buffer, size_t buffer_size) argument 206 cbor_serialize_bytestring(const cbor_item_t *item, unsigned char *buffer, size_t buffer_size) argument 238 cbor_serialize_string(const cbor_item_t *item, unsigned char *buffer, size_t buffer_size) argument 270 cbor_serialize_array(const cbor_item_t *item, unsigned char *buffer, size_t buffer_size) argument 301 cbor_serialize_map(const cbor_item_t *item, unsigned char *buffer, size_t buffer_size) argument 339 cbor_serialize_tag(const cbor_item_t *item, unsigned char *buffer, size_t buffer_size) argument 351 cbor_serialize_float_ctrl(const cbor_item_t *item, unsigned char *buffer, size_t buffer_size) argument [all...] |
/freebsd-current/sbin/ipf/libipf/ |
H A D | load_http.c | 14 * Because the URL can be included twice into the buffer, once as the 15 * full path for the "GET" and once as the "Host:", the buffer it is 33 char *s, *t, *u, buffer[LOAD_BUFSIZE], *myurl; local 51 avail = sizeof(buffer); 52 error = snprintf(buffer, avail, "GET %s HTTP/1.0\r\n", url); 76 if (strlen(s) + strlen(buffer) + 10 > sizeof(buffer)) { 86 error = snprintf(buffer + strlen(buffer), avail, "Host: %s\r\n\r\n", s); 108 len = strlen(buffer); [all...] |
/freebsd-current/sys/dev/pms/RefTisa/sallsdk/spc/ |
H A D | sautil.c | 527 /*! \brief Routine print buffer 532 * \param buffer buffer to print 533 * \param length length of buffer in bytes 548 bit8 *buffer = (bit8 *)a; local 561 *(buffer), 562 *(buffer+1), 563 *(buffer+2), 564 *(buffer+3), 565 *(buffer [all...] |
/freebsd-current/contrib/pf/libevent/ |
H A D | buffer.c | 63 struct evbuffer *buffer; local 65 buffer = calloc(1, sizeof(struct evbuffer)); 67 return (buffer); 71 evbuffer_free(struct evbuffer *buffer) argument 73 if (buffer->orig_buffer != NULL) 74 free(buffer->orig_buffer); 75 free(buffer); 79 * This is a destructive add. The data from one buffer moves into 80 * the other buffer. 84 (x)->buffer 131 char *buffer; local 204 evbuffer_readline(struct evbuffer *buffer) argument 405 evbuffer_write(struct evbuffer *buffer, int fd) argument 432 evbuffer_find(struct evbuffer *buffer, const u_char *what, size_t len) argument 450 evbuffer_setcb(struct evbuffer *buffer, void (*cb)(struct evbuffer *, size_t, size_t, void *), void *cbarg) argument [all...] |
/freebsd-current/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_symbolizer_markup.cpp | 27 void MarkupStackTracePrinter::RenderData(InternalScopedString *buffer, argument 30 RenderContext(buffer); 31 buffer->AppendF(kFormatData, reinterpret_cast<void *>(DI->start)); 39 void MarkupStackTracePrinter::RenderFrame(InternalScopedString *buffer, argument 45 RenderContext(buffer); 46 buffer->AppendF(kFormatFrame, frame_no, reinterpret_cast<void *>(address)); 50 char buffer[kFormatFunctionMax]; local 51 internal_snprintf(buffer, sizeof(buffer), kFormatFunction, 53 stack->info.function = internal_strdup(buffer); 64 static char buffer[kFormatDemangleMax]; local 94 RenderModule(InternalScopedString *buffer, const LoadedModule &module, uptr moduleId) argument 105 RenderMmaps(InternalScopedString *buffer, const LoadedModule &module, uptr moduleId) argument 131 RenderContext(InternalScopedString *buffer) argument [all...] |
/freebsd-current/lib/libc/stdlib/ |
H A D | l64a.c | 26 l64a_r(long value, char *buffer, int buflen) argument 35 *buffer = '\0'; 38 *buffer++ = chars[v & 0x3f];
|
/freebsd-current/sys/dev/mlx5/mlx5_en/ |
H A D | mlx5_en_port_buffer.c | 39 void *buffer; local 53 buffer = MLX5_ADDR_OF(pbmc_reg, out, buffer[i]); 54 port_buffer->buffer[i].lossy = 55 MLX5_GET(bufferx_reg, buffer, lossy); 56 port_buffer->buffer[i].epsb = 57 MLX5_GET(bufferx_reg, buffer, epsb); 58 port_buffer->buffer[i].size = 59 MLX5_GET(bufferx_reg, buffer, size) << MLX5E_BUFFER_CELL_SHIFT; 60 port_buffer->buffer[ 92 void *buffer; local 192 update_buffer_lossy(struct mlx5e_priv *priv, unsigned int mtu, u8 pfc_en, u8 *buffer, u32 xoff, struct mlx5e_port_buffer *port_buffer, bool *change) argument 248 u8 buffer[MLX5E_MAX_PRIORITY]; local [all...] |
/freebsd-current/crypto/heimdal/lib/krb5/ |
H A D | store-int.c | 37 _krb5_put_int(void *buffer, unsigned long value, size_t size) argument 39 unsigned char *p = buffer; 49 _krb5_get_int(void *buffer, unsigned long *value, size_t size) argument 51 unsigned char *p = buffer;
|
/freebsd-current/contrib/libarchive/test_utils/ |
H A D | test_utils.c | 47 * Fill a buffer with reproducible pseudo-random data using a simple xorshift 56 fill_with_pseudorandom_data_seed(uint64_t seed, void *buffer, size_t size) argument 64 * To avoid unaligned stores we only fill the aligned part of the buffer 68 if ((uintptr_t)buffer % sizeof(uint64_t)) { 70 sizeof(uint64_t) - (uintptr_t)buffer % sizeof(uint64_t); 72 (uint64_t *)((char *)buffer + unaligned_prefix); 73 memset(buffer, 0xab, unaligned_prefix); 75 aligned_buffer = (uint64_t *)buffer; 85 memset((char *)buffer + size - unaligned_suffix, 0xcd, 91 fill_with_pseudorandom_data(void *buffer, size_ argument [all...] |
/freebsd-current/crypto/heimdal/lib/gssapi/mech/ |
H A D | mech_locl.h | 68 #define _mg_buffer_zero(buffer) \ 70 if (buffer) { \ 71 (buffer)->value = NULL; \ 72 (buffer)->length = 0; \
|
/freebsd-current/contrib/libcbor/examples/ |
H A D | create_items.c | 24 /* Output: `length` bytes of data in the `buffer` */ 25 unsigned char* buffer; local 27 cbor_serialize_alloc(root, &buffer, &buffer_size); 29 fwrite(buffer, 1, buffer_size, stdout); 30 free(buffer);
|
H A D | streaming_array.c | 18 unsigned char buffer[BUFFER_SIZE]; variable 23 if (fwrite(buffer, sizeof(unsigned char), bytes, out) != bytes) exit(1); 38 flush(cbor_encode_indef_array_start(buffer, BUFFER_SIZE)); 41 flush(cbor_encode_uint32(i, buffer, BUFFER_SIZE)); 44 flush(cbor_encode_break(buffer, BUFFER_SIZE));
|
/freebsd-current/libexec/tftpd/ |
H A D | tftp-file.h | 29 size_t write_file(char *buffer, int count); 33 size_t read_file(char *buffer, int count);
|
H A D | tftp-file.c | 54 convert_from_net(char *buffer, size_t count) argument 66 convbuffer[n++] = buffer[i]; 67 gotcr = (buffer[i] == '\r'); 72 if (buffer[i] == '\0') { 78 if (buffer[i] == '\n') { 97 convbuffer[n++] = buffer[i]; 98 gotcr = (buffer[i] == '\r'); 106 convert_to_net(char *buffer, size_t count, int init) argument 125 buffer[i++] = newline; 142 buffer[ 194 write_file(char *buffer, int count) argument 248 read_file(char *buffer, int count) argument [all...] |
/freebsd-current/usr.bin/dtc/ |
H A D | dtb.cc | 45 void write(dtc::byte_buffer &buffer, int fd) argument 47 size_t size = buffer.size(); 48 uint8_t *data = buffer.data(); 82 push_string(buffer, name); 84 buffer.push_back(0); 90 buffer.push_back(v); 96 while (buffer.size() % 4 != 0) 98 buffer.push_back(0); 100 push_big_endian(buffer, v); 106 while (buffer [all...] |
/freebsd-current/contrib/processor-trace/libipt/test/src/ |
H A D | ptunit-image.c | 300 static int ifix_read(const struct pt_section *section, uint8_t *buffer, argument 306 if (!section || !buffer) 330 memcpy(buffer, &mapping->content[begin], size); 380 int pt_section_read(const struct pt_section *section, uint8_t *buffer, argument 389 return section->read(section, buffer, size, offset); 393 static int image_readmem_callback(uint8_t *buffer, size_t size, argument 402 if (!buffer) 416 buffer[idx] = memory[ip + idx]; 536 uint8_t buffer[] = { 0xcc, 0xcc }; local 542 status = pt_image_read(&ifix->image, &isid, buffer, sizeo 554 uint8_t buffer[] = { 0xcc, 0xcc }; local 588 uint8_t buffer[] = { 0xcc, 0xcc }; local 628 uint8_t buffer[] = { 0xcc, 0xcc }; local 679 uint8_t buffer[] = { 0xcc, 0xcc }; local 729 uint8_t buffer[] = { 0xcc, 0xcc }; local 755 uint8_t buffer[] = { 0xcc, 0xcc }; local 793 uint8_t buffer[] = { 0xcc, 0xcc }; local 847 uint8_t buffer[] = { 0xcc, 0xcc }; local 871 uint8_t buffer[] = { 0xcc, 0xcc }; local 895 uint8_t buffer[] = { 0xcc, 0xcc }, i; local 941 uint8_t buffer[] = { 0xcc, 0xcc }; local 986 uint8_t buffer; local 1010 uint8_t buffer[] = { 0xcc, 0xcc, 0xcc }; local 1027 uint8_t buffer[] = { 0xcc, 0xcc }; local 1059 uint8_t buffer[] = { 0xcc, 0xcc }; local 1075 uint8_t buffer[] = { 0xcc, 0xcc, 0xcc }; local 1091 uint8_t buffer[] = { 0xcc, 0xcc, 0xcc }; local 1112 uint8_t buffer[] = { 0xcc, 0xcc }; local 1128 uint8_t buffer[] = { 0xcc, 0xcc }; local 1144 uint8_t buffer[] = { 0xcc }; local 1161 uint8_t buffer[] = { 0xcc, 0xcc }; local 1186 uint8_t buffer[] = { 0xcc, 0xcc, 0xcc }; local 1228 uint8_t buffer[] = { 0xcc, 0xcc, 0xcc }; local 1270 uint8_t buffer[] = { 0xcc, 0xcc, 0xcc }; local 1312 uint8_t buffer[] = { 0xcc, 0xcc, 0xcc }; local 1356 uint8_t buffer[] = { 0xcc, 0xcc, 0xcc }; local 1399 uint8_t buffer[] = { 0xcc, 0xcc, 0xcc }; local 1432 uint8_t buffer[] = { 0xcc, 0xcc, 0xcc }; local 1485 uint8_t buffer[] = { 0xcc, 0xcc, 0xcc }; local 1527 uint8_t buffer[] = { 0xcc, 0xcc }; local 1548 uint8_t buffer[] = { 0xcc, 0xcc, 0xcc }; local 1568 uint8_t buffer[] = { 0xcc, 0xcc, 0xcc }; local 1588 uint8_t buffer[] = { 0xcc, 0xcc, 0xcc }; local 1612 uint8_t buffer[] = { 0xcc, 0xcc }; local 1665 uint8_t buffer[] = { 0xcc, 0xcc }; local 1710 uint8_t buffer[] = { 0xcc, 0xcc }; local 1765 uint8_t buffer[] = { 0xcc, 0xcc, 0xcc }; local 1811 uint8_t buffer[] = { 0xcc, 0xcc, 0xcc }; local 1835 uint8_t buffer[] = { 0xcc, 0xcc, 0xcc }; local 1858 uint8_t buffer[] = { 0xcc, 0xcc, 0xcc }; local 1886 uint8_t buffer[] = { 0xcc, 0xcc, 0xcc }; local [all...] |
/freebsd-current/contrib/llvm-project/openmp/runtime/src/ |
H A D | kmp_str.cpp | 22 /* String buffer. 26 // Declare buffer and initialize it. 27 kmp_str_buf_t buffer; 28 __kmp_str_buf_init( & buffer ); 30 // Print to buffer. 31 __kmp_str_buf_print(& buffer, "Error in file \"%s\" line %d\n", "foo.c", 12); 32 __kmp_str_buf_print(& buffer, " <%s>\n", line); 34 // Use buffer contents. buffer.str is a pointer to data, buffer 71 __kmp_str_buf_clear(kmp_str_buf_t *buffer) argument 80 __kmp_str_buf_reserve(kmp_str_buf_t *buffer, size_t size) argument 110 __kmp_str_buf_detach(kmp_str_buf_t *buffer) argument 123 __kmp_str_buf_free(kmp_str_buf_t *buffer) argument 134 __kmp_str_buf_cat(kmp_str_buf_t *buffer, char const *str, size_t len) argument 161 __kmp_str_buf_vprint(kmp_str_buf_t *buffer, char const *format, va_list args) argument 221 __kmp_str_buf_print(kmp_str_buf_t *buffer, char const *format, ...) argument 454 char *buffer = NULL; local [all...] |
/freebsd-current/contrib/wpa/src/crypto/ |
H A D | sha1_i.h | 15 unsigned char buffer[64]; member in struct:SHA1Context 21 void SHA1Transform(u32 state[5], const unsigned char buffer[64]);
|
/freebsd-current/sys/sys/ |
H A D | crc16.h | 37 crc16(uint16_t crc, const void *buffer, unsigned int len) argument 39 const unsigned char *cp = buffer;
|
/freebsd-current/contrib/ntp/libparse/ |
H A D | clk_sel240x.c | 123 cvt_sel240x( unsigned char *buffer, argument 132 if( Strok(buffer, format->fixed_string) ) 135 buffer++; 136 buffer = (unsigned char *) strptime( 137 (const char *)buffer, "%Y:%j:%H:%M:%S", &ptime ); 138 if( *(buffer+1) != '\x0d' ) 154 if( *buffer == '?' ) 158 else if( *buffer != ' ' )
|
/freebsd-current/contrib/xz/src/liblzma/simple/ |
H A D | riscv.c | 356 uint8_t *buffer, size_t size) 372 uint32_t inst = buffer[i]; 376 const uint32_t b1 = buffer[i + 1]; 385 const uint32_t b2 = buffer[i + 2]; 386 const uint32_t b3 = buffer[i + 3]; 420 buffer[i + 1] = (uint8_t)((b1 & 0x0F) 423 buffer[i + 2] = (uint8_t)(addr >> 9); 424 buffer[i + 3] = (uint8_t)(addr >> 1); 434 inst |= (uint32_t)buffer[i + 1] << 8; 435 inst |= (uint32_t)buffer[ 353 riscv_encode(void *simple lzma_attribute((__unused__)), uint32_t now_pos, bool is_encoder lzma_attribute((__unused__)), uint8_t *buffer, size_t size) argument 625 riscv_decode(void *simple lzma_attribute((__unused__)), uint32_t now_pos, bool is_encoder lzma_attribute((__unused__)), uint8_t *buffer, size_t size) argument [all...] |
H A D | arm.c | 19 uint8_t *buffer, size_t size) 23 if (buffer[i + 3] == 0xEB) { 24 uint32_t src = ((uint32_t)(buffer[i + 2]) << 16) 25 | ((uint32_t)(buffer[i + 1]) << 8) 26 | (uint32_t)(buffer[i + 0]); 36 buffer[i + 2] = (dest >> 16); 37 buffer[i + 1] = (dest >> 8); 38 buffer[i + 0] = dest; 17 arm_code(void *simple lzma_attribute((__unused__)), uint32_t now_pos, bool is_encoder, uint8_t *buffer, size_t size) argument
|
/freebsd-current/sbin/ddb/ |
H A D | ddb_script.c | 59 char *buffer, *line, *nextline; local 69 buffer = malloc(buflen); 70 if (buffer == NULL) 72 bzero(buffer, buflen); 74 ret = sysctlbyname(SYSCTL_SCRIPTS, buffer, &len, NULL, 0); 78 free(buffer); 83 * We nul'd the buffer before calling sysctl(), so at worst empty. 88 printf("%s", buffer); 89 free(buffer); 97 nextline = buffer; [all...] |
/freebsd-current/contrib/blocklist/test/ |
H A D | srvtest.c | 65 char buffer[256]; local 67 memset(buffer, 0, sizeof(buffer)); 69 if ((n = read(afd, buffer, sizeof(buffer))) == -1) 71 buffer[sizeof(buffer) - 1] = '\0'; 72 printf("%s: sending %d %s\n", getprogname(), afd, buffer); 74 blacklist_r(b, 1, afd, buffer); 76 blacklist(1, afd, buffer); 85 char buffer[256]; local [all...] |