/third_party/mesa3d/src/gallium/drivers/r300/ |
D | r300_screen_buffer.c | 57 struct r300_resource *rbuf = r300_resource(buf); in r300_resource_destroy() local 59 align_free(rbuf->malloced_buffer); in r300_resource_destroy() 61 if (rbuf->buf) in r300_resource_destroy() 62 pb_reference(&rbuf->buf, NULL); in r300_resource_destroy() 64 FREE(rbuf); in r300_resource_destroy() 91 struct r300_resource *rbuf = r300_resource(resource); in r300_buffer_transfer_map() local 103 if (rbuf->malloced_buffer) { in r300_buffer_transfer_map() 105 return rbuf->malloced_buffer + box->x; in r300_buffer_transfer_map() 113 if (r300->rws->cs_is_buffer_referenced(&r300->cs, rbuf->buf, RADEON_USAGE_READWRITE) || in r300_buffer_transfer_map() 114 !r300->rws->buffer_wait(r300->rws, rbuf->buf, 0, RADEON_USAGE_READWRITE)) { in r300_buffer_transfer_map() [all …]
|
/third_party/musl/libc-test/src/functionalext/supplement/unistd/ |
D | readlinkat.c | 78 char rbuf[BUFSIZ] = {0}; in readlinkat_0100() local 79 ssize_t bytes = readlinkat(fd, linkpath, rbuf, sizeof(rbuf)); in readlinkat_0100() 80 if (bytes != strlen(rbuf)) { in readlinkat_0100() 84 if (strcmp(rbuf, path)) { in readlinkat_0100() 85 t_error("%s failed: rbuf = %s\n", __func__, rbuf); in readlinkat_0100() 124 char rbuf[BUFSIZ] = {0}; in readlinkat_0200() local 125 ssize_t bytes = readlinkat(fd, linkfilename, rbuf, sizeof(rbuf)); in readlinkat_0200() 126 if (bytes != strlen(rbuf)) { in readlinkat_0200() 130 if (strcmp(rbuf, filename)) { in readlinkat_0200() 131 t_error("%s failed: rbuf = %s\n", __func__, rbuf); in readlinkat_0200()
|
/third_party/ltp/testcases/network/tcp_cmds/sendfile/ |
D | testsf_c.c | 35 char rbuf[PATH_MAX]; in main() local 67 rbuf[0] = '\0'; in main() 69 snprintf(rbuf, PATH_MAX, "%s=%s", argv[5], serv_fname); in main() 81 tst_resm(TINFO, "rbuf => %s\n", rbuf); in main() 99 if ((nbyte = write(s, rbuf, strlen(rbuf))) <= 0) { in main() 106 nbyte, rbuf); in main() 109 rbuf[0] = '\0'; in main() 111 while ((nbyte = read(s, rbuf, PATH_MAX)) > 0) { in main() 113 if (write(fd, rbuf, nbyte) != nbyte) { in main()
|
D | testsf_s.c | 40 char rbuf[PATH_MAX]; in main() local 121 if ((nbytes = read(as, rbuf, PATH_MAX)) <= 0) { in main() 126 rbuf[nbytes] = '\0'; /* null terminate the info */ in main() 127 lp = &rbuf[0]; in main()
|
/third_party/ejdb/src/bindings/ejdb2_node/ |
D | test.js | 72 const rbuf = []; variable 74 rbuf.push(doc.id); 75 rbuf.push(doc._raw); 77 t.is(rbuf.toString(), '2,{"foo":"baz"},1,{"foo":"bar"}'); 80 rbuf.length = 0; 82 rbuf.push(doc.id); 83 rbuf.push(doc._raw); 85 t.is(rbuf.length, 0); 89 rbuf.push(doc.id); 90 rbuf.push(doc._raw); [all …]
|
/third_party/ltp/testcases/kernel/syscalls/pipe/ |
D | pipe11.c | 28 unsigned char rbuf[read_per_child]; in do_child() local 33 nread = SAFE_READ(0, fds[0], rbuf, sizeof(rbuf)); in do_child() 42 if (rbuf[i] != (i % 256)) { in do_child() 45 getpid(), i, rbuf[i], i % 256); in do_child()
|
D | pipe04.c | 84 char rbuf[BUFSIZ]; in main() local 134 bytesread = do_read(fildes[0], rbuf, sizeof(rbuf)); in main() 140 switch (rbuf[1]) { in main() 149 "character", rbuf[1]); in main()
|
/third_party/selinux/libselinux/src/ |
D | seusers.c | 102 char *rbuf = malloc(rbuflen); in get_default_gid() local 103 if (rbuf == NULL) return -1; in get_default_gid() 105 int retval = getpwnam_r(name, &pwstorage, rbuf, rbuflen, &pwent); in get_default_gid() 109 free(rbuf); in get_default_gid() 122 char *rbuf; in check_group() local 125 rbuf = malloc(rbuflen); in check_group() 126 if (rbuf == NULL) in check_group() 128 int retval = getgrnam_r(group, &gbuf, rbuf, in check_group() 132 free(rbuf); in check_group() 165 free(rbuf); in check_group()
|
/third_party/ltp/testcases/kernel/syscalls/madvise/ |
D | madvise08.c | 107 char rbuf[1024]; in find_sequence() local 118 read = SAFE_READ(0, dfd, &rbuf, sizeof(rbuf)); in find_sequence() 120 switch (rbuf[pos]) { in find_sequence() 145 read = SAFE_READ(0, dfd, &rbuf, sizeof(rbuf)); in find_sequence()
|
/third_party/ltp/testcases/kernel/syscalls/write/ |
D | write03.c | 25 static char wbuf[BUFSIZ], rbuf[BUFSIZ]; variable 44 memset(rbuf, 0, BUFSIZ); in verify_write() 46 SAFE_READ(0, fd, rbuf, 100); in verify_write() 48 if (memcmp(wbuf, rbuf, 100) == 0) in verify_write()
|
/third_party/ltp/testcases/kernel/syscalls/fallocate/ |
D | fallocate06.c | 61 static char *wbuf, *rbuf; variable 128 rbuf = SAFE_MALLOC(rbuf_size); in setup() 228 SAFE_READ(1, fd, rbuf, rbuf_size); in run() 231 if (rbuf[i]) { in run() 237 err = err || memcmp(rbuf, wbuf, offset); in run() 240 err = err || memcmp(rbuf + offset, wbuf + offset, size); in run() 256 free(rbuf); in cleanup()
|
D | fallocate04.c | 64 char rbuf[size]; in check_file_data() local 69 SAFE_READ(1, fd, rbuf, size); in check_file_data() 71 if (memcmp(exp_buf, rbuf, size)) { in check_file_data() 74 tst_res_hexd(TINFO, rbuf, size, "but read:"); in check_file_data()
|
/third_party/pulseaudio/src/pulsecore/ |
D | ioline.c | 53 char *rbuf; member 80 l->rbuf = NULL; in pa_ioline_new() 112 pa_xfree(l->rbuf); in ioline_free() 230 char *p = pa_xstrndup(l->rbuf+l->rbuf_index, l->rbuf_valid_length); in failure() 253 if (!(e = memchr(l->rbuf + l->rbuf_index + skip, '\n', l->rbuf_valid_length - skip))) in scan_for_lines() 258 p = l->rbuf + l->rbuf_index; in scan_for_lines() 301 memmove(l->rbuf, l->rbuf+l->rbuf_index, l->rbuf_valid_length); in do_read() 306 memcpy(new, l->rbuf+l->rbuf_index, l->rbuf_valid_length); in do_read() 307 pa_xfree(l->rbuf); in do_read() 308 l->rbuf = new; in do_read() [all …]
|
/third_party/glib/gio/tests/ |
D | stream-rw_all.c | 162 gchar rbuf[100]; in test_read_write_all_async_pipe() local 208 s = g_input_stream_read (in, rbuf, MIN (sizeof wbuf, in_flight), NULL, &error); in test_read_write_all_async_pipe() 217 g_input_stream_read_all_async (in, rbuf, sizeof rbuf, 0, NULL, read_done, NULL); in test_read_write_all_async_pipe() 231 wait_for_read (TRUE, sizeof rbuf); in test_read_write_all_async_pipe() 237 g_input_stream_read_all_async (in, rbuf, sizeof rbuf, 0, NULL, read_done, NULL); in test_read_write_all_async_pipe()
|
/third_party/ejdb/src/bindings/ejdb2_react_native/tests/ |
D | App.js | 74 const rbuf = []; 76 rbuf.push(doc.id); 77 rbuf.push(doc._raw); 79 t.is(rbuf.toString(), '2,{"foo":"baz"},1,{"foo":"bar"}'); 82 rbuf.length = 0; 87 rbuf.push(doc.id); 88 rbuf.push(doc._raw); 90 t.is(rbuf.toString(), '2,{"foo":"baz"}');
|
/third_party/ltp/testcases/network/lib6/ |
D | asapi_02.c | 123 static unsigned char rbuf[2048]; in ic6_recv1() local 141 struct icmp6_hdr *pic6 = (struct icmp6_hdr *)rbuf; in ic6_recv1() 152 cc = recv(sall, rbuf, sizeof(rbuf), 0); in ic6_recv1() 163 cc = recv(sf, rbuf, sizeof(rbuf), 0); in ic6_recv1()
|
/third_party/ffmpeg/libavformat/ |
D | rtspdec.c | 71 static inline int read_line(AVFormatContext *s, char *rbuf, const int rbufsize, in read_line() argument 80 ret = ffurl_read_complete(rt->rtsp_hd, rbuf + idx, 1); in read_line() 83 if (rbuf[idx] == '\r') { in read_line() 85 } else if (rbuf[idx] == '\n') { in read_line() 86 rbuf[idx] = '\0'; in read_line() 146 char rbuf[MAX_URL_SIZE]; in rtsp_read_request() local 149 ret = read_line(s, rbuf, sizeof(rbuf), &rbuflen); in rtsp_read_request() 153 av_log(s, AV_LOG_TRACE, "Parsing[%d]: %s\n", rbuflen, rbuf); in rtsp_read_request() 154 ff_rtsp_parse_line(s, request, rbuf, rt, method); in rtsp_read_request() 477 unsigned char rbuf[MAX_URL_SIZE]; in ff_rtsp_parse_streaming_commands() local [all …]
|
/third_party/nghttp2/src/ |
D | shrpx_connection.cc | 119 tls.rbuf.reset(); in disconnect() 207 auto &rbuf = conn->tls.rbuf; in shrpx_bio_read() local 211 if (conn->tls.initial_handshake_done && rbuf.rleft() == 0) { in shrpx_bio_read() 223 if (rbuf.rleft() == 0) { in shrpx_bio_read() 228 return rbuf.remove(buf, len); in shrpx_bio_read() 327 bool read_buffer_full(DefaultPeekMemchunks &rbuf) { in read_buffer_full() argument 328 return rbuf.rleft_buffered() >= 20_k; in read_buffer_full() 346 tls.rbuf.append(buf.data(), nread); in tls_handshake() 347 if (read_buffer_full(tls.rbuf)) { in tls_handshake() 365 tls.rbuf.disable_peek(false); in tls_handshake() [all …]
|
/third_party/ejdb/src/bindings/ejdb2_dart/test/ |
D | ejdb2_dart_test.dart | 46 final rbuf = <String>[]; 48 rbuf..add(doc.id.toString())..add(doc.json); 50 assert(rbuf.toString() == '[2, {"foo":"baz"}, 1, {"foo":"bar"}]'); 51 rbuf.clear(); 55 rbuf..add(doc.id.toString())..add(doc.json); 57 assert(rbuf.isEmpty); 61 rbuf..add(doc.id.toString())..add(doc.json); 63 assert(rbuf.toString() == '[1, {"foo":"bar"}]');
|
/third_party/openssl/ssl/record/ |
D | rec_layer_d1.c | 73 OPENSSL_free(rdata->rbuf.buf); in DTLS_RECORD_LAYER_clear() 80 OPENSSL_free(rdata->rbuf.buf); in DTLS_RECORD_LAYER_clear() 87 OPENSSL_free(rdata->rbuf.buf); in DTLS_RECORD_LAYER_clear() 129 SSL3_BUFFER_release(&s->rlayer.rbuf); in dtls1_copy_record() 133 memcpy(&s->rlayer.rbuf, &(rdata->rbuf), sizeof(SSL3_BUFFER)); in dtls1_copy_record() 163 memcpy(&(rdata->rbuf), &s->rlayer.rbuf, sizeof(SSL3_BUFFER)); in dtls1_buffer_record() 180 memset(&s->rlayer.rbuf, 0, sizeof(s->rlayer.rbuf)); in dtls1_buffer_record() 185 OPENSSL_free(rdata->rbuf.buf); in dtls1_buffer_record() 193 OPENSSL_free(rdata->rbuf.buf); in dtls1_buffer_record() 350 if (!SSL3_BUFFER_is_initialised(&s->rlayer.rbuf)) { in dtls1_read_bytes() [all …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/rsn_supp/ |
D | tdls.c | 754 u8 *rbuf, *pos; in wpa_tdls_send_teardown() local 794 rbuf = os_zalloc(ielen + 1); in wpa_tdls_send_teardown() 795 if (rbuf == NULL) in wpa_tdls_send_teardown() 797 pos = rbuf; in wpa_tdls_send_teardown() 834 reason_code, 0, peer->initiator, rbuf, pos - rbuf); in wpa_tdls_send_teardown() 835 os_free(rbuf); in wpa_tdls_send_teardown() 1069 u8 *rbuf, *pos, *count_pos; in wpa_tdls_send_tpk_m1() local 1154 rbuf = os_zalloc(buf_len + 1); in wpa_tdls_send_tpk_m1() 1155 if (rbuf == NULL) { in wpa_tdls_send_tpk_m1() 1159 pos = rbuf; in wpa_tdls_send_tpk_m1() [all …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/rsn_supp/ |
D | tdls.c | 762 u8 *rbuf, *pos; in wpa_tdls_send_teardown() local 802 rbuf = os_zalloc(ielen + 1); in wpa_tdls_send_teardown() 803 if (rbuf == NULL) in wpa_tdls_send_teardown() 805 pos = rbuf; in wpa_tdls_send_teardown() 842 reason_code, 0, peer->initiator, rbuf, pos - rbuf); in wpa_tdls_send_teardown() 843 os_free(rbuf); in wpa_tdls_send_teardown() 1077 u8 *rbuf, *pos, *count_pos; in wpa_tdls_send_tpk_m1() local 1162 rbuf = os_zalloc(buf_len + 1); in wpa_tdls_send_tpk_m1() 1163 if (rbuf == NULL) { in wpa_tdls_send_tpk_m1() 1167 pos = rbuf; in wpa_tdls_send_tpk_m1() [all …]
|
/third_party/gstreamer/gstplugins_base/ext/libvisual/ |
D | visual.c | 222 VisBuffer *lbuf, *rbuf; in gst_visual_render() local 237 rbuf = visual_buffer_new_with_buffer (rdata, sizeof (rdata), NULL); in gst_visual_render() 276 visual_object_unref (VISUAL_OBJECT (rbuf)); in gst_visual_render() 286 visual_audio_samplepool_input_channel (visual->audio->samplepool, rbuf, in gst_visual_render() 291 visual_object_unref (VISUAL_OBJECT (rbuf)); in gst_visual_render()
|
/third_party/boost/boost/sort/common/ |
D | range.hpp | 365 static void merge_flow(range<Iter1_t> rng1, range<Iter2_t> rbuf, in merge_flow() argument 379 range<Iter2_t> rbx(rbuf); in merge_flow() 389 if (rbx.first == rbx.last) move_forward(rbuf, rng2); in merge_flow() 390 else merge_half(rbuf, rx2, rbx, cmp); in merge_flow()
|
/third_party/ltp/testcases/cve/ |
D | cve-2016-7117.c | 75 static char rbuf[sizeof(MSG)]; variable 118 msghdrs[0].msg_hdr.msg_iov->iov_base = (void *)&rbuf; in run()
|