Home
last modified time | relevance | path

Searched refs:buffer (Results 1 – 25 of 3871) sorted by relevance

12345678910>>...155

/netbsd-src/external/gpl3/gcc/dist/gcc/
H A Dgimple-pretty-print.cc55 do { int i; for (i = 0; i < SPACE; i++) pp_space (buffer); } while (0)
57 #define GIMPLE_NIY do_niy (buffer,gs)
63 do_niy (pretty_printer *buffer, const gimple *gs) in do_niy() argument
65 pp_printf (buffer, "<<< Unknown GIMPLE statement: %s >>>\n", in do_niy()
73 newline_and_indent (pretty_printer *buffer, int spc) in newline_and_indent() argument
75 pp_newline (buffer); in newline_and_indent()
144 dump_edge_probability (pretty_printer *buffer, edge e) in dump_edge_probability() argument
146 pp_scalar (buffer, " %s", dump_probability (e->probability)); in dump_edge_probability()
155 pretty_printer buffer; in print_gimple_stmt() local
156 pp_needs_newline (&buffer) = true; in print_gimple_stmt()
[all …]
/netbsd-src/external/gpl3/gcc.old/dist/gcc/
H A Dgimple-pretty-print.c54 do { int i; for (i = 0; i < SPACE; i++) pp_space (buffer); } while (0)
56 #define GIMPLE_NIY do_niy (buffer,gs)
62 do_niy (pretty_printer *buffer, const gimple *gs) in do_niy() argument
64 pp_printf (buffer, "<<< Unknown GIMPLE statement: %s >>>\n", in do_niy()
72 newline_and_indent (pretty_printer *buffer, int spc) in newline_and_indent() argument
74 pp_newline (buffer); in newline_and_indent()
143 dump_edge_probability (pretty_printer *buffer, edge e) in dump_edge_probability() argument
145 pp_scalar (buffer, " %s", dump_probability (e->probability)); in dump_edge_probability()
154 pretty_printer buffer; in print_gimple_stmt() local
155 pp_needs_newline (&buffer) = true; in print_gimple_stmt()
[all …]
/netbsd-src/external/bsd/nsd/dist/
H A Dbuffer.h23 typedef struct buffer buffer_type;
25 struct buffer struct
55 buffer_invariant(buffer_type *ATTR_UNUSED(buffer)) in buffer_invariant() argument
60 buffer_invariant(buffer_type *buffer) in buffer_invariant() argument
62 assert(buffer); in buffer_invariant()
63 assert(buffer->_position <= buffer->_limit); in buffer_invariant()
64 assert(buffer->_limit <= buffer->_capacity); in buffer_invariant()
65 assert(buffer->_data); in buffer_invariant()
79 void buffer_create_from(buffer_type *buffer, void *data, size_t size);
85 void buffer_clear(buffer_type *buffer);
[all …]
H A Dbuffer.c19 buffer_type *buffer = (buffer_type *) arg; in buffer_cleanup() local
20 assert(!buffer->_fixed); in buffer_cleanup()
21 free(buffer->_data); in buffer_cleanup()
27 buffer_type *buffer in buffer_create() local
29 if (!buffer) in buffer_create()
32 buffer->_data = (uint8_t *) xalloc(capacity); in buffer_create()
33 buffer->_position = 0; in buffer_create()
34 buffer->_limit = buffer->_capacity = capacity; in buffer_create()
35 buffer->_fixed = 0; in buffer_create()
36 buffer_invariant(buffer); in buffer_create()
[all …]
/netbsd-src/external/bsd/unbound/dist/sldns/
H A Dsbuffer.h142 sldns_buffer_invariant(sldns_buffer *ATTR_UNUSED(buffer)) in sldns_buffer_invariant() argument
147 sldns_buffer_invariant(sldns_buffer *buffer) in sldns_buffer_invariant() argument
149 assert(buffer != NULL); in sldns_buffer_invariant()
150 assert(buffer->_position <= buffer->_limit); in sldns_buffer_invariant()
151 assert(buffer->_limit <= buffer->_capacity); in sldns_buffer_invariant()
152 assert(buffer->_data != NULL); in sldns_buffer_invariant()
173 void sldns_buffer_new_frm_data(sldns_buffer *buffer, void *data, size_t size);
182 void sldns_buffer_init_frm_data(sldns_buffer *buffer, void *data, size_t size);
189 INLINE void sldns_buffer_clear(sldns_buffer *buffer) in sldns_buffer_clear() argument
191 sldns_buffer_invariant(buffer); in sldns_buffer_clear()
[all …]
H A Dsbuffer.c21 sldns_buffer *buffer = (sldns_buffer*)malloc(sizeof(sldns_buffer)); in sldns_buffer_new() local
23 if (!buffer) { in sldns_buffer_new()
27 buffer->_data = (uint8_t *) malloc(capacity); in sldns_buffer_new()
28 if (!buffer->_data) { in sldns_buffer_new()
29 free(buffer); in sldns_buffer_new()
33 buffer->_position = 0; in sldns_buffer_new()
34 buffer->_limit = buffer->_capacity = capacity; in sldns_buffer_new()
35 buffer->_fixed = 0; in sldns_buffer_new()
36 buffer->_status_err = 0; in sldns_buffer_new()
38 sldns_buffer_invariant(buffer); in sldns_buffer_new()
[all …]
/netbsd-src/external/gpl3/gcc/dist/gcc/c-family/
H A Dc-ada-spec.cc43 do { int i; for (i = 0; i<SPACE; i++) pp_space (buffer); } while (0)
121 dump_number (unsigned char *number, unsigned char *buffer, bool float_p) in dump_number() argument
128 *buffer++ = *number++; in dump_number()
130 return buffer; in dump_number()
138 handle_escape_character (unsigned char *buffer, char c) in handle_escape_character() argument
143 *buffer++ = '"'; in handle_escape_character()
144 *buffer++ = '"'; in handle_escape_character()
148 strcpy ((char *) buffer, "\" & ASCII.LF & \""); in handle_escape_character()
149 buffer += 16; in handle_escape_character()
153 strcpy ((char *) buffer, "\" & ASCII.CR & \""); in handle_escape_character()
[all …]
/netbsd-src/external/gpl3/gcc.old/dist/gcc/c-family/
H A Dc-ada-spec.c43 do { int i; for (i = 0; i<SPACE; i++) pp_space (buffer); } while (0)
121 dump_number (unsigned char *number, unsigned char *buffer, bool float_p) in dump_number() argument
128 *buffer++ = *number++; in dump_number()
130 return buffer; in dump_number()
138 handle_escape_character (unsigned char *buffer, char c) in handle_escape_character() argument
143 *buffer++ = '"'; in handle_escape_character()
144 *buffer++ = '"'; in handle_escape_character()
148 strcpy ((char *) buffer, "\" & ASCII.LF & \""); in handle_escape_character()
149 buffer += 16; in handle_escape_character()
153 strcpy ((char *) buffer, "\" & ASCII.CR & \""); in handle_escape_character()
[all …]
/netbsd-src/external/apache2/llvm/dist/libcxx/src/
H A Dcharconv.cpp35 append1(char* buffer, T i) noexcept in append1() argument
37 *buffer = '0' + static_cast<char>(i); in append1()
38 return buffer + 1; in append1()
43 append2(char* buffer, T i) noexcept in append2() argument
45 memcpy(buffer, &cDigitsLut[(i)*2], 2); in append2()
46 return buffer + 2; in append2()
51 append3(char* buffer, T i) noexcept in append3() argument
53 return append2(append1(buffer, (i) / 100), (i) % 100); in append3()
58 append4(char* buffer, T i) noexcept in append4() argument
60 return append2(append2(buffer, (i) / 100), (i) % 100); in append4()
[all …]
/netbsd-src/external/gpl2/xcvs/dist/src/
H A Dbuffer.h29 struct buffer;
36 typedef int (*type_buf_shutdown) (struct buffer *);
37 typedef void (*type_buf_memory_error) (struct buffer *);
39 struct buffer struct
129 typedef void (*BUFMEMERRPROC) (struct buffer *);
131 struct buffer *buf_initialize (type_buf_input,
139 void buf_free (struct buffer *);
140 struct buffer *buf_nonio_initialize (void (*) (struct buffer *));
141 struct buffer *compress_buffer_initialize (struct buffer *, int, int,
142 void (*) (struct buffer *));
[all …]
/netbsd-src/external/mit/libcbor/dist/test/
H A Dtype_7_encoders_test.c17 unsigned char buffer[512]; variable
20 assert_int_equal(1, cbor_encode_bool(false, buffer, 512)); in test_bools()
21 assert_memory_equal(buffer, ((unsigned char[]){0xF4}), 1); in test_bools()
22 assert_int_equal(1, cbor_encode_bool(true, buffer, 512)); in test_bools()
23 assert_memory_equal(buffer, ((unsigned char[]){0xF5}), 1); in test_bools()
27 assert_int_equal(1, cbor_encode_null(buffer, 512)); in test_null()
28 assert_memory_equal(buffer, ((unsigned char[]){0xF6}), 1); in test_null()
32 assert_int_equal(1, cbor_encode_undef(buffer, 512)); in test_undef()
33 assert_memory_equal(buffer, ((unsigned char[]){0xF7}), 1); in test_undef()
37 assert_int_equal(1, cbor_encode_break(buffer, 512)); in test_break()
[all …]
H A Dcbor_serialize_test.c20 unsigned char buffer[512]; variable
25 assert_int_equal(1, cbor_serialize(item, buffer, 512)); in test_serialize_uint8()
26 assert_memory_equal(buffer, (unsigned char[]){0x00}, 1); in test_serialize_uint8()
33 assert_int_equal(3, cbor_serialize(item, buffer, 512)); in test_serialize_uint16()
34 assert_memory_equal(buffer, ((unsigned char[]){0x19, 0x03, 0xE8}), 3); in test_serialize_uint16()
41 assert_int_equal(5, cbor_serialize(item, buffer, 512)); in test_serialize_uint32()
42 assert_memory_equal(buffer, ((unsigned char[]){0x1A, 0x00, 0x0F, 0x42, 0x40}), in test_serialize_uint32()
50 assert_int_equal(9, cbor_serialize(item, buffer, 512)); in test_serialize_uint64()
52 buffer, in test_serialize_uint64()
62 assert_int_equal(1, cbor_serialize(item, buffer, 512)); in test_serialize_negint8()
[all …]
/netbsd-src/external/mit/libcbor/dist/src/cbor/
H A Dencoding.c11 size_t cbor_encode_uint8(uint8_t value, unsigned char *buffer, in cbor_encode_uint8() argument
13 return _cbor_encode_uint8(value, buffer, buffer_size, 0x00); in cbor_encode_uint8()
16 size_t cbor_encode_uint16(uint16_t value, unsigned char *buffer, in cbor_encode_uint16() argument
18 return _cbor_encode_uint16(value, buffer, buffer_size, 0x00); in cbor_encode_uint16()
21 size_t cbor_encode_uint32(uint32_t value, unsigned char *buffer, in cbor_encode_uint32() argument
23 return _cbor_encode_uint32(value, buffer, buffer_size, 0x00); in cbor_encode_uint32()
26 size_t cbor_encode_uint64(uint64_t value, unsigned char *buffer, in cbor_encode_uint64() argument
28 return _cbor_encode_uint64(value, buffer, buffer_size, 0x00); in cbor_encode_uint64()
31 size_t cbor_encode_uint(uint64_t value, unsigned char *buffer, in cbor_encode_uint() argument
33 return _cbor_encode_uint(value, buffer, buffer_size, 0x00); in cbor_encode_uint()
[all …]
H A Dserialization.c20 size_t cbor_serialize(const cbor_item_t *item, unsigned char *buffer, in cbor_serialize() argument
24 return cbor_serialize_uint(item, buffer, buffer_size); in cbor_serialize()
26 return cbor_serialize_negint(item, buffer, buffer_size); in cbor_serialize()
28 return cbor_serialize_bytestring(item, buffer, buffer_size); in cbor_serialize()
30 return cbor_serialize_string(item, buffer, buffer_size); in cbor_serialize()
32 return cbor_serialize_array(item, buffer, buffer_size); in cbor_serialize()
34 return cbor_serialize_map(item, buffer, buffer_size); in cbor_serialize()
36 return cbor_serialize_tag(item, buffer, buffer_size); in cbor_serialize()
38 return cbor_serialize_float_ctrl(item, buffer, buffer_size); in cbor_serialize()
44 size_t cbor_serialize_alloc(const cbor_item_t *item, unsigned char **buffer, in cbor_serialize_alloc() argument
[all …]
/netbsd-src/external/mit/libcbor/dist/src/cbor/internal/
H A Dencoders.c11 size_t _cbor_encode_uint8(uint8_t value, unsigned char *buffer, in _cbor_encode_uint8() argument
15 buffer[0] = value + offset; in _cbor_encode_uint8()
20 buffer[0] = 0x18 + offset; in _cbor_encode_uint8()
21 buffer[1] = value; in _cbor_encode_uint8()
28 size_t _cbor_encode_uint16(uint16_t value, unsigned char *buffer, in _cbor_encode_uint16() argument
31 buffer[0] = 0x19 + offset; in _cbor_encode_uint16()
34 memcpy(buffer + 1, &value, 2); in _cbor_encode_uint16()
36 buffer[1] = value >> 8; in _cbor_encode_uint16()
37 buffer[2] = value; in _cbor_encode_uint16()
45 size_t _cbor_encode_uint32(uint32_t value, unsigned char *buffer, in _cbor_encode_uint32() argument
[all …]
/netbsd-src/external/mpl/dhcp/dist/omapip/
H A Dbuffer.c148 omapi_buffer_t *buffer; in omapi_connection_reader_trace() local
166 for (buffer = c -> inbufs; buffer -> next; in omapi_connection_reader_trace()
167 buffer = buffer -> next) in omapi_connection_reader_trace()
169 if (!BUFFER_BYTES_FREE (buffer)) { in omapi_connection_reader_trace()
170 status = omapi_buffer_new (&buffer -> next, MDL); in omapi_connection_reader_trace()
173 buffer = buffer -> next; in omapi_connection_reader_trace()
179 buffer = c -> inbufs; in omapi_connection_reader_trace()
182 bytes_to_read = BUFFER_BYTES_FREE (buffer); in omapi_connection_reader_trace()
185 if (buffer -> tail > buffer -> head) in omapi_connection_reader_trace()
186 read_len = sizeof (buffer -> buf) - buffer -> tail; in omapi_connection_reader_trace()
[all …]
/netbsd-src/sys/arch/macppc/dev/
H A Dams.c221 u_char buffer[9]; in ems_init() local
245 buffer[0] = 4; in ems_init()
246 buffer[1] = 0x00; /* Alternative speed */ in ems_init()
247 buffer[2] = 0x00; /* speed = maximum */ in ems_init()
248 buffer[3] = 0x10; /* enable extended protocol, in ems_init()
252 buffer[4] = 0x07; /* Locking mask = 0000b, in ems_init()
255 adb_op_sync((Ptr)buffer, NULL, (Ptr)0, cmd); in ems_init()
268 buffer[0] = 0; in ems_init()
269 adb_op_sync((Ptr)buffer, NULL, (Ptr)0, ADBFLUSH(adbaddr)); in ems_init()
273 buffer[0] = 0; in ems_init()
[all …]
/netbsd-src/external/mit/libuv/dist/test/
H A Dtest-tty-escape-sequence-processing.c381 char buffer[1024]; in TEST_IMPL() local
394 snprintf(buffer, sizeof(buffer), "%sA", CSI); in TEST_IMPL()
395 write_console(&tty_out, buffer); in TEST_IMPL()
402 snprintf(buffer, sizeof(buffer), "%s%dA", CSI, si.height / 4); in TEST_IMPL()
403 write_console(&tty_out, buffer); in TEST_IMPL()
412 snprintf(buffer, sizeof(buffer), "%sA", CSI); in TEST_IMPL()
413 write_console(&tty_out, buffer); in TEST_IMPL()
432 char buffer[1024]; in TEST_IMPL() local
445 snprintf(buffer, sizeof(buffer), "%sB", CSI); in TEST_IMPL()
446 write_console(&tty_out, buffer); in TEST_IMPL()
[all …]
/netbsd-src/external/bsd/libbind/dist/irs/
H A Dirpmarshall.c99 static char **splitarray(const char *buffer, const char *buffend, char delim);
100 static int joinarray(char * const * argv, char *buffer, char delim);
101 static char *getfield(char **res, size_t reslen, char **buffer, char delim);
137 irp_marshall_pw(const struct passwd *pw, char **buffer, size_t *len) { in irp_marshall_pw() argument
185 if (buffer == NULL) { in irp_marshall_pw()
190 if (*buffer != NULL && need > *len) { in irp_marshall_pw()
195 if (*buffer == NULL) { in irp_marshall_pw()
197 *buffer = memget(need); in irp_marshall_pw()
198 if (*buffer == NULL) { in irp_marshall_pw()
206 strcpy(*buffer, pw->pw_name); strcat(*buffer, fieldsep); in irp_marshall_pw()
[all …]
/netbsd-src/external/public-domain/xz/dist/tests/
H A Dtest_stream_flags.c18 static uint8_t buffer[LZMA_STREAM_HEADER_SIZE]; variable
37 if (lzma_stream_header_decode(&decoded_flags, buffer) != expected_ret) in test_header_decoder()
53 memcrap(buffer, sizeof(buffer)); in test_header()
54 expect(lzma_stream_header_encode(&known_flags, buffer) == LZMA_OK); in test_header()
64 if (lzma_stream_footer_decode(&decoded_flags, buffer) != expected_ret) in test_footer_decoder()
77 memcrap(buffer, sizeof(buffer)); in test_footer()
78 expect(lzma_stream_footer_encode(&known_flags, buffer) == LZMA_OK); in test_footer()
89 expect(lzma_stream_header_encode(&known_flags, buffer) in test_encode_invalid()
92 expect(lzma_stream_footer_encode(&known_flags, buffer) in test_encode_invalid()
97 expect(lzma_stream_header_encode(&known_flags, buffer) in test_encode_invalid()
[all …]
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/asan/tests/
H A Dasan_internal_interface_test.cc18 std::vector<char> buffer(17, 0xff); in TEST() local
20 __asan_set_shadow_00((uptr)buffer.data(), buffer.size()); in TEST()
21 EXPECT_EQ(std::vector<char>(buffer.size(), 0x00), buffer); in TEST()
23 __asan_set_shadow_f1((uptr)buffer.data(), buffer.size()); in TEST()
24 EXPECT_EQ(std::vector<char>(buffer.size(), 0xf1), buffer); in TEST()
26 __asan_set_shadow_f2((uptr)buffer.data(), buffer.size()); in TEST()
27 EXPECT_EQ(std::vector<char>(buffer.size(), 0xf2), buffer); in TEST()
29 __asan_set_shadow_f3((uptr)buffer.data(), buffer.size()); in TEST()
30 EXPECT_EQ(std::vector<char>(buffer.size(), 0xf3), buffer); in TEST()
32 __asan_set_shadow_f5((uptr)buffer.data(), buffer.size()); in TEST()
[all …]
/netbsd-src/external/gpl3/binutils.old/dist/opcodes/
H A Dm68hc11-dis.c50 read_memory (bfd_vma memaddr, bfd_byte* buffer, int size, in read_memory() argument
57 status = (*info->read_memory_func) (memaddr, buffer, size, info); in read_memory()
74 bfd_byte buffer[4]; in print_indexed_operand() local
83 status = read_memory (memaddr, &buffer[0], 1, info); in print_indexed_operand()
90 if ((buffer[0] & 0x20) == 0) in print_indexed_operand()
92 reg = (buffer[0] >> 6) & 3; in print_indexed_operand()
93 val = ((buffer[0] & 0x1f) ^ 0x10) - 0x10; in print_indexed_operand()
112 else if ((buffer[0] & 0xc0) != 0xc0) in print_indexed_operand()
116 reg = (buffer[0] >> 6) & 3; in print_indexed_operand()
117 val = buffer[0] & 7; in print_indexed_operand()
[all …]
/netbsd-src/external/gpl3/binutils/dist/opcodes/
H A Dm68hc11-dis.c50 read_memory (bfd_vma memaddr, bfd_byte* buffer, int size, in read_memory() argument
57 status = (*info->read_memory_func) (memaddr, buffer, size, info); in read_memory()
74 bfd_byte buffer[4]; in print_indexed_operand() local
83 status = read_memory (memaddr, &buffer[0], 1, info); in print_indexed_operand()
90 if ((buffer[0] & 0x20) == 0) in print_indexed_operand()
92 reg = (buffer[0] >> 6) & 3; in print_indexed_operand()
93 val = ((buffer[0] & 0x1f) ^ 0x10) - 0x10; in print_indexed_operand()
112 else if ((buffer[0] & 0xc0) != 0xc0) in print_indexed_operand()
116 reg = (buffer[0] >> 6) & 3; in print_indexed_operand()
117 val = buffer[0] & 7; in print_indexed_operand()
[all …]
/netbsd-src/external/mit/libuv/dist/docs/code/udp-dhcp/
H A Dmain.c43 uv_buf_t buffer; in make_discover_msg() local
44 alloc_buffer(NULL, 256, &buffer); in make_discover_msg()
45 memset(buffer.base, 0, buffer.len); in make_discover_msg()
48 buffer.base[0] = 0x1; in make_discover_msg()
50 buffer.base[1] = 0x1; in make_discover_msg()
52 buffer.base[2] = 0x6; in make_discover_msg()
54 buffer.base[3] = 0x0; in make_discover_msg()
56 if (uv_random(NULL, NULL, &buffer.base[4], 4, 0, NULL)) in make_discover_msg()
59 buffer.base[8] = 0x0; in make_discover_msg()
61 buffer.base[10] = 0x80; in make_discover_msg()
[all …]
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/
H A Dsanitizer_stacktrace_printer.cc110 void RenderFrame(InternalScopedString *buffer, const char *format, int frame_no, in RenderFrame() argument
117 buffer->append("%c", *p); in RenderFrame()
123 buffer->append("%%"); in RenderFrame()
127 buffer->append("%zu", frame_no); in RenderFrame()
130 buffer->append("0x%zx", info.address); in RenderFrame()
133 buffer->append("%s", StripPathPrefix(info.module, strip_path_prefix)); in RenderFrame()
136 buffer->append("0x%zx", info.module_offset); in RenderFrame()
139 buffer->append("%s", in RenderFrame()
144 buffer->append("0x%zx", info.function_offset != AddressInfo::kUnknown in RenderFrame()
149 buffer->append("%s", StripPathPrefix(info.file, strip_path_prefix)); in RenderFrame()
[all …]

12345678910>>...155