Home
last modified time | relevance | path

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

12345678910>>...69

/openbsd/usr.sbin/nsd/
H A Dbuffer.h25 struct buffer struct
63 assert(buffer->_position <= buffer->_limit); in buffer_invariant()
64 assert(buffer->_limit <= buffer->_capacity); in buffer_invariant()
125 assert(buffer->_position + count <= buffer->_limit); in buffer_skip()
144 if (buffer->_position > buffer->_limit) in buffer_set_limit()
145 buffer->_position = buffer->_limit; in buffer_set_limit()
198 return buffer_at(buffer, buffer->_limit); in buffer_end()
207 return buffer_at(buffer, buffer->_position); in buffer_current()
229 return buffer_remaining_at(buffer, buffer->_position); in buffer_remaining()
315 buffer_write_u8_at(buffer, buffer->_position, data); in buffer_write_u8()
[all …]
H A Dbuffer.c29 if (!buffer) in buffer_create()
34 buffer->_limit = buffer->_capacity = capacity; in buffer_create()
40 return buffer; in buffer_create()
49 buffer->_limit = buffer->_capacity = size; in buffer_create_from()
62 buffer->_limit = buffer->_capacity; in buffer_clear()
70 buffer->_limit = buffer->_position; in buffer_flip()
87 buffer->_data = (uint8_t *) xrealloc(buffer->_data, capacity); in buffer_set_capacity()
88 buffer->_limit = buffer->_capacity = capacity; in buffer_set_capacity()
96 if (buffer->_capacity < buffer->_position + amount) { in buffer_reserve()
103 buffer->_limit = buffer->_capacity; in buffer_reserve()
[all …]
/openbsd/gnu/gcc/gcc/
H A Dtree-pretty-print.c130 pp_flush (&buffer); in print_generic_stmt()
147 pp_flush (&buffer); in print_generic_stmt_indented()
206 pp_space (buffer); in dump_function_declaration()
220 pp_space (buffer); in dump_function_declaration()
393 pp_space (buffer); in dump_omp_clauses()
489 pp_space (buffer); in dump_generic_node()
737 pp_string (buffer, pp_buffer (buffer)->digit_buffer); in dump_generic_node()
2563 buffer.buffer->stream = file; in maybe_init_pretty_print()
2681 dump_edge_info (buffer->buffer->stream, e, 0); in dump_bb_header()
2697 check_bb_profile (bb, buffer->buffer->stream); in dump_bb_header()
[all …]
/openbsd/usr.sbin/unbound/sldns/
H A Dsbuffer.h150 assert(buffer->_position <= buffer->_limit); in sldns_buffer_invariant()
151 assert(buffer->_limit <= buffer->_capacity); in sldns_buffer_invariant()
196 buffer->_limit = buffer->_capacity; in sldns_buffer_clear()
210 buffer->_limit = buffer->_position; in sldns_buffer_flip()
260 assert(buffer->_position + count <= buffer->_limit); in sldns_buffer_skip()
286 if (buffer->_position > buffer->_limit) in sldns_buffer_set_limit()
287 buffer->_position = buffer->_limit; in sldns_buffer_set_limit()
357 return sldns_buffer_at(buffer, buffer->_limit); in sldns_buffer_end()
368 return sldns_buffer_at(buffer, buffer->_position); in sldns_buffer_current()
383 return at < buffer->_limit ? buffer->_limit - at : 0; in sldns_buffer_remaining_at()
[all …]
H A Dsbuffer.c23 if (!buffer) { in sldns_buffer_new()
29 free(buffer); in sldns_buffer_new()
34 buffer->_limit = buffer->_capacity = capacity; in sldns_buffer_new()
49 buffer->_limit = buffer->_capacity = size; in sldns_buffer_new_frm_data()
51 if (!buffer->_fixed && buffer->_data) in sldns_buffer_new_frm_data()
67 memset(buffer, 0, sizeof(*buffer)); in sldns_buffer_init_frm_data()
69 buffer->_capacity = buffer->_limit = size; in sldns_buffer_init_frm_data()
87 buffer->_limit = buffer->_capacity = capacity; in sldns_buffer_set_capacity()
97 if (buffer->_capacity < buffer->_position + amount) { in sldns_buffer_reserve()
108 buffer->_limit = buffer->_capacity; in sldns_buffer_reserve()
[all …]
/openbsd/sbin/unwind/libunbound/sldns/
H A Dsbuffer.h150 assert(buffer->_position <= buffer->_limit); in sldns_buffer_invariant()
151 assert(buffer->_limit <= buffer->_capacity); in sldns_buffer_invariant()
196 buffer->_limit = buffer->_capacity; in sldns_buffer_clear()
210 buffer->_limit = buffer->_position; in sldns_buffer_flip()
260 assert(buffer->_position + count <= buffer->_limit); in sldns_buffer_skip()
286 if (buffer->_position > buffer->_limit) in sldns_buffer_set_limit()
287 buffer->_position = buffer->_limit; in sldns_buffer_set_limit()
357 return sldns_buffer_at(buffer, buffer->_limit); in sldns_buffer_end()
368 return sldns_buffer_at(buffer, buffer->_position); in sldns_buffer_current()
383 return at < buffer->_limit ? buffer->_limit - at : 0; in sldns_buffer_remaining_at()
[all …]
H A Dsbuffer.c23 if (!buffer) { in sldns_buffer_new()
29 free(buffer); in sldns_buffer_new()
34 buffer->_limit = buffer->_capacity = capacity; in sldns_buffer_new()
49 buffer->_limit = buffer->_capacity = size; in sldns_buffer_new_frm_data()
51 if (!buffer->_fixed && buffer->_data) in sldns_buffer_new_frm_data()
67 memset(buffer, 0, sizeof(*buffer)); in sldns_buffer_init_frm_data()
69 buffer->_capacity = buffer->_limit = size; in sldns_buffer_init_frm_data()
87 buffer->_limit = buffer->_capacity = capacity; in sldns_buffer_set_capacity()
97 if (buffer->_capacity < buffer->_position + amount) { in sldns_buffer_reserve()
108 buffer->_limit = buffer->_capacity; in sldns_buffer_reserve()
[all …]
/openbsd/gnu/llvm/compiler-rt/lib/asan/tests/
H A Dasan_internal_interface_test.cpp19 __asan_set_shadow_00((uptr)buffer.data(), buffer.size()); in TEST()
20 EXPECT_EQ(std::vector<char>(buffer.size(), 0x00), buffer); in TEST()
22 __asan_set_shadow_01((uptr)buffer.data(), buffer.size()); in TEST()
23 EXPECT_EQ(std::vector<char>(buffer.size(), 0x01), buffer); in TEST()
25 __asan_set_shadow_02((uptr)buffer.data(), buffer.size()); in TEST()
26 EXPECT_EQ(std::vector<char>(buffer.size(), 0x02), buffer); in TEST()
28 __asan_set_shadow_03((uptr)buffer.data(), buffer.size()); in TEST()
29 EXPECT_EQ(std::vector<char>(buffer.size(), 0x03), buffer); in TEST()
31 __asan_set_shadow_04((uptr)buffer.data(), buffer.size()); in TEST()
34 __asan_set_shadow_05((uptr)buffer.data(), buffer.size()); in TEST()
[all …]
/openbsd/gnu/usr.bin/gcc/gcc/
H A Ddiagnostic.c104 line_wrap_cutoff (buffer) = output_line_cutoff (buffer);
112 line_wrap_cutoff (buffer) = output_line_cutoff (buffer) + 32;
114 line_wrap_cutoff (buffer) = output_line_cutoff (buffer);
171 obstack_free (&buffer->obstack, obstack_base (&buffer->obstack));
204 output_clear (buffer) in output_clear() argument
227 return line_wrap_cutoff (buffer) - output_text_length (buffer);
255 output_append_r (buffer, buffer->state.prefix, prefix_length);
278 if (output_is_line_wrapping (buffer) && output_space_left (buffer) <= 0)
289 if (output_is_line_wrapping (buffer) && output_space_left (buffer) <= 0)
621 || !(*buffer->format_decoder) (buffer, text))
[all …]
/openbsd/gnu/usr.bin/cvs/src/
H A Dbuffer.h13 struct buffer struct
109 void (*) (struct buffer *),
111 extern void buf_free PROTO((struct buffer *));
112 extern struct buffer *buf_nonio_initialize PROTO((void (*) (struct buffer *)));
113 extern struct buffer *stdio_buffer_initialize
116 PROTO((struct buffer *, int, int, void (*) (struct buffer *)));
120 void (*) (struct buffer *)));
128 extern int set_block PROTO((struct buffer *));
134 extern void buf_append_buffer PROTO((struct buffer *, struct buffer *));
142 extern void buf_copy_lines PROTO((struct buffer *, struct buffer *, int));
[all …]
/openbsd/lib/libcbor/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()
18 return _cbor_encode_uint16(value, buffer, buffer_size, 0x00); in cbor_encode_uint16()
69 buffer[0] = value; in _cbor_encode_byte()
77 return _cbor_encode_byte(0x5F, buffer, buffer_size); in cbor_encode_indef_bytestring_start()
87 return _cbor_encode_byte(0x7F, buffer, buffer_size); in cbor_encode_indef_string_start()
97 return _cbor_encode_byte(0x9F, buffer, buffer_size); in cbor_encode_indef_array_start()
106 return _cbor_encode_byte(0xBF, buffer, buffer_size); in cbor_encode_indef_map_start()
120 return _cbor_encode_byte(0xF6, buffer, buffer_size); in cbor_encode_null()
124 return _cbor_encode_byte(0xF7, buffer, buffer_size); in cbor_encode_undef()
[all …]
/openbsd/gnu/usr.bin/binutils/gdb/
H A Dkod-cisco.c50 char buffer[PBUFSIZ]; in cisco_kod_open() local
77 if (buffer[i] == ' ') in cisco_kod_open()
81 if (buffer[i] == '\0') in cisco_kod_open()
169 if (buffer[0] != 'K') in cisco_kod_request()
188 if (s_end - &buffer[off] != 2 || buffer[off + 2] != ',') in cisco_kod_request()
197 if ((buffer[off] != '0' && buffer[off] != '1') in cisco_kod_request()
224 if (strlen (&buffer[off]) < 8 || buffer[off + 8] != ';') in cisco_kod_request()
230 buffer[off + 8] = '\0'; in cisco_kod_request()
265 strcpy (buffer, "KAI,"); in cisco_kod_request()
300 buffer[off + 8] = '\0'; in cisco_kod_request()
[all …]
/openbsd/lib/libcbor/src/cbor/internal/
H A Dencoders.c15 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()
31 buffer[0] = 0x19 + offset; in _cbor_encode_uint16()
34 memcpy(buffer + 1, &value, 2); in _cbor_encode_uint16()
37 buffer[2] = (unsigned char)value; in _cbor_encode_uint16()
48 buffer[0] = 0x1A + offset; in _cbor_encode_uint32()
51 memcpy(buffer + 1, &value, 4); in _cbor_encode_uint32()
56 buffer[4] = (unsigned char)value; in _cbor_encode_uint32()
67 buffer[0] = 0x1B + offset; in _cbor_encode_uint64()
[all …]
/openbsd/sys/dev/adb/
H A Dams.c206 u_char buffer[9]; in ems_init() local
230 buffer[0] = 4; in ems_init()
253 buffer[0] = 0; in ems_init()
258 buffer[0] = 0; in ems_init()
308 ((buffer[2] == 0x20) || (buffer[2] == 0x21))) { in ems_init()
315 buffer[0]=2; in ems_init()
316 buffer[1]=0x00; in ems_init()
321 buffer[0]=2; in ems_init()
327 buffer[0]=2; in ems_init()
333 buffer[0]=2; in ems_init()
[all …]
/openbsd/gnu/gcc/libcpp/
H A Dlex.c106 buffer = pfile->buffer; in _cpp_clean_line()
108 buffer->cur = buffer->line_base = buffer->next_line; in _cpp_clean_line()
254 cpp_buffer *buffer = pfile->buffer; in _cpp_process_line_notes() local
316 cpp_buffer *buffer = pfile->buffer; in _cpp_skip_block_comment() local
374 cpp_buffer *buffer = pfile->buffer; in skip_line_comment() local
388 cpp_buffer *buffer = pfile->buffer; in skip_whitespace() local
461 cpp_buffer *buffer = pfile->buffer; in forms_identifier_p() local
839 buffer->next_line = buffer->rlimit; in _cpp_get_fresh_line()
879 buffer = pfile->buffer; in _cpp_lex_direct()
911 buffer = pfile->buffer; in _cpp_lex_direct()
[all …]
/openbsd/lib/libcurses/tinfo/
H A Dcomp_expand.c65 static char *buffer; in _nc_tic_expand() local
80 if (buffer != 0) { in _nc_tic_expand()
81 FreeAndNull(buffer); in _nc_tic_expand()
88 if ((buffer = typeRealloc(char, length = need, buffer)) == 0) in _nc_tic_expand()
144 buffer[bufp++] = *str; in _nc_tic_expand()
153 buffer[bufp++] = *str; in _nc_tic_expand()
158 buffer[bufp++] = '0'; in _nc_tic_expand()
161 buffer[bufp++] = 'E'; in _nc_tic_expand()
168 buffer[bufp++] = 's'; in _nc_tic_expand()
206 buffer[bufp] = '\0'; in _nc_tic_expand()
[all …]
/openbsd/gnu/usr.bin/binutils/gdb/rdi-share/
H A Dmsgbuild.c55 if (buffer != NULL) in vmsgbuild()
73 if (buffer != NULL) in vmsgbuild()
90 if (buffer != NULL) in vmsgbuild()
117 if (buffer != NULL) in vmsgbuild()
157 p_Buffer buffer; in msgsend() local
163 buffer = packet->pk_buffer; in msgsend()
168 if (buffer != NULL) in msgsend()
208 if (buffer != NULL) in unpack_message()
223 if (buffer != NULL) in unpack_message()
240 if (buffer != NULL) in unpack_message()
[all …]
/openbsd/gnu/usr.bin/binutils-2.17/opcodes/
H A Dm68k-dis.c207 val = (buffer[0] << 8) + buffer[1]; in fetch_arg()
212 val = (buffer[0] << 8) + buffer[1]; in fetch_arg()
228 val = (buffer[2] << 8) + buffer[3]; in fetch_arg()
234 val = (buffer[2] << 8) + buffer[3]; in fetch_arg()
241 val = (buffer[2] << 8) + buffer[3]; in fetch_arg()
246 val = (buffer[4] << 8) + buffer[5]; in fetch_arg()
252 val = (buffer[4] << 8) + buffer[5]; in fetch_arg()
258 val = (buffer[4] << 8) + buffer[5]; in fetch_arg()
263 val = (buffer[2] << 8) + buffer[3]; in fetch_arg()
1283 buffer[2] = buffer[4]; in match_insn_m68k()
[all …]
H A Dm68hc11-dis.c72 bfd_byte buffer[4]; in print_indexed_operand() local
149 sval = ((buffer[0] << 8) | (buffer[1] & 0x0FF)); in print_indexed_operand()
167 &buffer[1], (buffer[0] & 0x2 ? 2 : 1), info); in print_indexed_operand()
174 sval = ((buffer[1] << 8) | (buffer[2] & 0x0FF)); in print_indexed_operand()
228 bfd_byte buffer[4]; in print_insn() local
243 code = buffer[0]; in print_insn()
370 && (((buffer[0] & 0x07) >= 3 && (buffer[0] & 7) <= 7)) in print_insn()
541 val = ((buffer[0] << 8) | (buffer[1] & 0x0FF)); in print_insn()
619 val = ((buffer[0] << 8) | (buffer[1] & 0x0FF)); in print_insn()
651 val = (buffer[0] & 0x80) ? buffer[0] | 0xFFFFFF00 : buffer[0]; in print_insn()
[all …]
/openbsd/gnu/llvm/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_stacktrace_printer.cpp111 buffer->append(" "); in MaybeBuildIdToBuffer()
112 buffer->append("(BuildId: "); in MaybeBuildIdToBuffer()
116 buffer->append(")"); in MaybeBuildIdToBuffer()
135 buffer->append("%c", *p); in RenderFrame()
141 buffer->append("%%"); in RenderFrame()
145 buffer->append("%u", frame_no); in RenderFrame()
254 buffer->append("%c", *p); in RenderData()
260 buffer->append("%%"); in RenderData()
287 buffer->append(",%d", column); in RenderSourceLocation()
288 buffer->append(")"); in RenderSourceLocation()
[all …]
/openbsd/gnu/usr.bin/binutils/opcodes/
H A Dm68k-dis.c407 buffer[2] = buffer[4];
408 buffer[3] = buffer[5];
464 (buffer[0] << 8) + buffer[1]);
1083 val = (buffer[0] << 8) + buffer[1];
1088 val = (buffer[0] << 8) + buffer[1];
1104 val = (buffer[2] << 8) + buffer[3];
1110 val = (buffer[2] << 8) + buffer[3];
1117 val = (buffer[2] << 8) + buffer[3];
1122 val = (buffer[4] << 8) + buffer[5];
1128 val = (buffer[4] << 8) + buffer[5];
[all …]
H A Dm68hc11-dis.c72 bfd_byte buffer[4]; in print_indexed_operand() local
149 sval = ((buffer[0] << 8) | (buffer[1] & 0x0FF)); in print_indexed_operand()
167 &buffer[1], (buffer[0] & 0x2 ? 2 : 1), info); in print_indexed_operand()
174 sval = ((buffer[1] << 8) | (buffer[2] & 0x0FF)); in print_indexed_operand()
228 bfd_byte buffer[4]; in print_insn() local
243 code = buffer[0]; in print_insn()
370 && (((buffer[0] & 0x07) >= 3 && (buffer[0] & 7) <= 7)) in print_insn()
541 val = ((buffer[0] << 8) | (buffer[1] & 0x0FF)); in print_insn()
619 val = ((buffer[0] << 8) | (buffer[1] & 0x0FF)); in print_insn()
651 val = (buffer[0] & 0x80) ? buffer[0] | 0xFFFFFF00 : buffer[0]; in print_insn()
[all …]
/openbsd/sys/dev/pci/drm/
H A Ddrm_client.c268 drm_gem_vunmap_unlocked(buffer->gem, &buffer->map); in drm_client_buffer_delete()
272 kfree(buffer); in drm_client_buffer_delete()
286 buffer = kzalloc(sizeof(*buffer), GFP_KERNEL); in drm_client_buffer_create()
287 if (!buffer) in drm_client_buffer_create()
309 return buffer; in drm_client_buffer_create()
385 ret = drm_mode_rmfb(buffer->client->dev, buffer->fb->base.id, buffer->client->file); in drm_client_buffer_rmfb()
467 return buffer; in drm_client_framebuffer_create()
477 if (!buffer) in drm_client_framebuffer_delete()
498 if (!buffer || !buffer->fb || !buffer->fb->funcs->dirty) in drm_client_framebuffer_flush()
509 return buffer->fb->funcs->dirty(buffer->fb, buffer->client->file, in drm_client_framebuffer_flush()
[all …]
/openbsd/gnu/llvm/compiler-rt/lib/sanitizer_common/tests/
H A Dsanitizer_leb128_test.cpp40 u8 buffer[16] = {255}; in TYPED_TEST() local
42 EXPECT_EQ(buffer + 1, EncodeSLEB128(v, buffer, buffer + 1)); in TYPED_TEST()
43 EXPECT_EQ(buffer + 1, DecodeSLEB128(buffer, buffer + 1, &v)); in TYPED_TEST()
50 u8 buffer[16] = {}; in TYPED_TEST() local
51 u8* p = EncodeSLEB128(v, std::begin(buffer), std::end(buffer)); in TYPED_TEST()
55 u8* p2 = DecodeSLEB128(std::begin(buffer), std::end(buffer), &v2); in TYPED_TEST()
66 EXPECT_EQ(buffer + 1, EncodeULEB128(v, buffer, buffer + 1)); in TYPED_TEST()
67 EXPECT_EQ(buffer + 1, DecodeULEB128(buffer, buffer + 1, &v)); in TYPED_TEST()
74 u8 buffer[16] = {}; in TYPED_TEST() local
75 u8* p = EncodeULEB128(v, std::begin(buffer), std::end(buffer)); in TYPED_TEST()
[all …]
/openbsd/gnu/usr.bin/gcc/gcc/testsuite/gcc.c-torture/execute/
H A Dstring-opt-17.c12 char buffer[32]; variable
17 memset (buffer, argc, 0); in main()
18 memset (buffer, argc, 1); in main()
19 memset (buffer, argc, 2); in main()
20 memset (buffer, argc, 3); in main()
21 memset (buffer, argc, 4); in main()
22 memset (buffer, argc, 5); in main()
23 memset (buffer, argc, 6); in main()
24 memset (buffer, argc, 7); in main()
25 memset (buffer, argc, 8); in main()
[all …]

12345678910>>...69