/external/dropbear/ |
D | circbuffer.c | 33 circbuffer *cbuf = NULL; in cbuf_new() local 39 cbuf = (circbuffer*)m_malloc(sizeof(circbuffer)); in cbuf_new() 40 cbuf->data = (unsigned char*)m_malloc(size); in cbuf_new() 41 cbuf->used = 0; in cbuf_new() 42 cbuf->readpos = 0; in cbuf_new() 43 cbuf->writepos = 0; in cbuf_new() 44 cbuf->size = size; in cbuf_new() 46 return cbuf; in cbuf_new() 49 void cbuf_free(circbuffer * cbuf) { in cbuf_free() argument 51 m_free(cbuf->data); in cbuf_free() [all …]
|
D | circbuffer.h | 39 void cbuf_free(circbuffer * cbuf); 41 unsigned int cbuf_getused(circbuffer * cbuf); /* how much data stored */ 42 unsigned int cbuf_getavail(circbuffer * cbuf); /* how much we can write */ 43 unsigned int cbuf_readlen(circbuffer *cbuf); /* max linear read len */ 44 unsigned int cbuf_writelen(circbuffer *cbuf); /* max linear write len */ 46 unsigned char* cbuf_readptr(circbuffer *cbuf, unsigned int len); 47 unsigned char* cbuf_writeptr(circbuffer *cbuf, unsigned int len); 48 void cbuf_incrwrite(circbuffer *cbuf, unsigned int len); 49 void cbuf_incrread(circbuffer *cbuf, unsigned int len);
|
D | common-channel.c | 43 static void writechannel(struct Channel* channel, int fd, circbuffer *cbuf); 393 static void writechannel(struct Channel* channel, int fd, circbuffer *cbuf) { in writechannel() argument 399 maxlen = cbuf_readlen(cbuf); in writechannel() 402 len = write(fd, cbuf_readptr(cbuf, maxlen), maxlen); in writechannel() 413 cbuf_incrread(cbuf, len); in writechannel() 664 circbuffer * cbuf) { in common_recv_msg_channel_data() argument 687 maxdata = cbuf_getavail(cbuf); in common_recv_msg_channel_data() 701 buflen = cbuf_writelen(cbuf); in common_recv_msg_channel_data() 704 memcpy(cbuf_writeptr(cbuf, buflen), in common_recv_msg_channel_data() 706 cbuf_incrwrite(cbuf, buflen); in common_recv_msg_channel_data()
|
/external/qemu/ |
D | charpipe.c | 277 CharBuffer* cbuf = cs->opaque; in charbuffer_close() local 279 while (cbuf->bip_first) { in charbuffer_close() 280 BipBuffer* bip = cbuf->bip_first; in charbuffer_close() 281 cbuf->bip_first = bip->next; in charbuffer_close() 284 cbuf->bip_last = NULL; in charbuffer_close() 285 cbuf->endpoint = NULL; in charbuffer_close() 287 if (cbuf->endpoint != NULL) { in charbuffer_close() 288 qemu_chr_close(cbuf->endpoint); in charbuffer_close() 289 cbuf->endpoint = NULL; in charbuffer_close() 296 CharBuffer* cbuf = cs->opaque; in charbuffer_write() local [all …]
|
/external/guava/src/com/google/common/io/ |
D | LineBuffer.java | 51 protected void add(char[] cbuf, int off, int len) throws IOException { in add() argument 55 if (finishLine(cbuf[pos] == '\n')) { in add() 62 switch (cbuf[pos]) { in add() 64 line.append(cbuf, start, pos - start); in add() 67 if (finishLine(cbuf[pos + 1] == '\n')) { in add() 75 line.append(cbuf, start, pos - start); in add() 81 line.append(cbuf, start, off + len - start); in add()
|
D | LineReader.java | 39 private final CharBuffer cbuf = CharBuffer.wrap(buf); field in LineReader 71 cbuf.clear(); in readLine() 76 : readable.read(cbuf); in readLine()
|
D | MultiReader.java | 51 @Override public int read(char cbuf[], int off, int len) throws IOException { in read() argument 55 int result = current.read(cbuf, off, len); in read() 58 return read(cbuf, off, len); in read()
|
D | AppendableWriter.java | 50 @Override public void write(char cbuf[], int off, int len) in write() argument 55 target.append(new String(cbuf, off, len)); in write()
|
/external/mksh/src/ |
D | edit.c | 3196 char *cbuf; member 3375 es->cbuf = buf; in x_vi() 3456 if (es->cbuf != buf) in x_vi() 3457 memmove(buf, es->cbuf, es->linelen); in x_vi() 3532 es->cbuf[es->cursor++] = ch; in vi_hook() 3634 new_es.cbuf = locpat; in vi_hook() 3655 es->cbuf[es->linelen++] = '^'; in vi_hook() 3656 es->cbuf[es->linelen++] = ch ^ '@'; in vi_hook() 3660 es->cbuf[es->linelen++] = ch; in vi_hook() 3767 es->cbuf[es->cursor] = undo->cbuf[es->cursor]; in vi_insert() [all …]
|
/external/proguard/src/proguard/io/ |
D | ManifestRewriter.java | 122 public int read(char[] cbuf, int off, int len) throws IOException in read() argument 134 cbuf[off + count++] = (char)c; in read() 202 public void write(char[] cbuf, int off, int len) throws IOException in write() argument 206 write(cbuf[off + count]); in write()
|
/external/icu4c/i18n/ |
D | name2uni.cpp | 120 char* cbuf = (char*) uprv_malloc(maxLen); in handleTransliterate() local 121 if (cbuf == NULL) { in handleTransliterate() 189 name.extract(0, len, cbuf, maxLen, US_INV); in handleTransliterate() 192 c = u_charFromName(U_EXTENDED_CHAR_NAME, cbuf, &status); in handleTransliterate() 249 uprv_free(cbuf); in handleTransliterate()
|
D | rbt_set.cpp | 122 CharString cbuf(esc); in _debugOut() local 123 printf("%s\n", (const char*) cbuf); in _debugOut()
|
/external/icu4c/tools/toolutil/ |
D | ucbuf.c | 165 char* cbuf = carr; in ucbuf_fillucbuf() local 184 inputRead=T_FileStream_read(buf->in,cbuf,cbufSize-offset); in ucbuf_fillucbuf() 189 cbuf = (char*)uprv_malloc(cbufSize); in ucbuf_fillucbuf() 190 if (cbuf == NULL) { in ucbuf_fillucbuf() 194 inputRead= T_FileStream_read(buf->in,cbuf,cbufSize); in ucbuf_fillucbuf() 217 source = cbuf; in ucbuf_fillucbuf() 245 pos = (int32_t)(source - cbuf - len); in ucbuf_fillucbuf() 251 memcpy(preContext,cbuf+start,stop-start); in ucbuf_fillucbuf() 257 …top = (int32_t)(((pos+CONTEXT_LEN)<= (sourceLimit-cbuf) )? (pos+(CONTEXT_LEN-1)) : (sourceLimit-c… in ucbuf_fillucbuf() 285 source = cbuf; in ucbuf_fillucbuf() [all …]
|
/external/oprofile/daemon/ |
D | oprofiled.c | 165 char * cbuf; in opd_write_abi() local 167 cbuf = xmalloc(strlen(op_session_dir) + 5); in opd_write_abi() 168 strcpy(cbuf, op_session_dir); in opd_write_abi() 169 strcat(cbuf, "/abi"); in opd_write_abi() 170 op_write_abi_to_file(cbuf); in opd_write_abi() 171 free(cbuf); in opd_write_abi()
|
/external/openssl/apps/ |
D | s_client.c | 426 char *cbuf=NULL,*sbuf=NULL,*mbuf=NULL; in MAIN() local 507 if ( ((cbuf=OPENSSL_malloc(BUFSIZZ)) == NULL) || in MAIN() 1450 k=SSL_write(con,&(cbuf[cbuf_off]), in MAIN() 1618 i=raw_read_stdin(cbuf,BUFSIZZ/2); in MAIN() 1622 if (cbuf[j] == '\n') in MAIN() 1626 cbuf[j+lf_num] = cbuf[j]; in MAIN() 1627 if (cbuf[j] == '\n') in MAIN() 1631 cbuf[j+lf_num] = '\r'; in MAIN() 1637 i=raw_read_stdin(cbuf,BUFSIZZ); in MAIN() 1639 if ((!c_ign_eof) && ((i <= 0) || (cbuf[0] == 'Q'))) in MAIN() [all …]
|
/external/opencv/cv/src/ |
D | cvstereobm.cpp | 197 uchar *cbuf0, *cbuf; in icvFindStereoCorrespondenceBM_SSE2() local 223 hsad = hsad0 - dy0*ndisp; cbuf = cbuf0 + (x + wsz2 + 1)*cstep - dy0*ndisp; in icvFindStereoCorrespondenceBM_SSE2() 227 … for( y = -dy0; y < height + dy1; y++, hsad += ndisp, cbuf += ndisp, lptr += sstep, rptr += sstep ) in icvFindStereoCorrespondenceBM_SSE2() 233 cbuf[d] = (uchar)diff; in icvFindStereoCorrespondenceBM_SSE2() 254 uchar* cbuf = cbuf0 + ((x1 + wsz2 + 1) % (wsz + 1))*cstep - dy0*ndisp; in icvFindStereoCorrespondenceBM_SSE2() local 260 for( y = -dy0; y < height + dy1; y++, cbuf += ndisp, cbuf_sub += ndisp, in icvFindStereoCorrespondenceBM_SSE2() 273 _mm_store_si128((__m128i*)(cbuf + d), diff); in icvFindStereoCorrespondenceBM_SSE2() 404 uchar *cbuf0, *cbuf; in icvFindStereoCorrespondenceBM() local 429 hsad = hsad0 - dy0*ndisp; cbuf = cbuf0 + (x + wsz2 + 1)*cstep - dy0*ndisp; in icvFindStereoCorrespondenceBM() 433 … for( y = -dy0; y < height + dy1; y++, hsad += ndisp, cbuf += ndisp, lptr += sstep, rptr += sstep ) in icvFindStereoCorrespondenceBM() [all …]
|
/external/icu4c/test/cintltst/ |
D | cdattst.c | 771 char cbuf[256]; in TestDateFormatCalendar() local 842 u_austrcpy(cbuf, buf); in TestDateFormatCalendar() 845 log_verbose("Ok: Parsed result: %s\n", cbuf); in TestDateFormatCalendar() 847 log_err("FAIL: Parsed result: %s, exp 4/5/2001 5:45 PM\n", cbuf); in TestDateFormatCalendar() 1029 UChar* buf, int32_t buflen, char* cbuf, in _aux1ExtremeDates() argument 1033 u_austrncpy(cbuf, buf, buflen); in _aux1ExtremeDates() 1035 log_err("FAIL: udat_format(%g) => \"%s\"\n", date, cbuf); in _aux1ExtremeDates() 1037 log_verbose("udat_format(%g) => \"%s\"\n", date, cbuf); in _aux1ExtremeDates() 1049 UChar* buf, int32_t buflen, char* cbuf, in _aux2ExtremeDates() argument 1058 _aux1ExtremeDates(fmt, mid, buf, buflen, cbuf, ec) && in _aux2ExtremeDates() [all …]
|
D | utransts.c | 491 char *cbuf; in TestFilter() local 535 cbuf=aescstrdup(buf, -1); in TestFilter() 538 log_verbose("Ok: %s | %s -> %s\n", DATA[i+1], DATA[i], cbuf); in TestFilter() 540 log_err("FAIL: %s | %s -> %s, expected %s\n", DATA[i+1], DATA[i], cbuf, DATA[i+2]); in TestFilter()
|
D | cldrtest.c | 1147 char cbuf[32]; /* 9 should be enough */ in TestExemplarSet() local 1194 uprv_strcpy(cbuf, "[:"); in TestExemplarSet() 1199 uprv_strcat(cbuf, uscript_getShortName(code[j])); in TestExemplarSet() 1200 uprv_strcat(cbuf, ":]"); in TestExemplarSet() 1201 u_uastrcpy(ubuf, cbuf); in TestExemplarSet()
|
/external/openssl/ssl/ |
D | ssltest.c | 1145 MS_STATIC char cbuf[1024*8]; in doit_biopair() local 1149 memset(cbuf, 0, sizeof(cbuf)); in doit_biopair() 1160 if (cw_num > (long)sizeof cbuf) in doit_biopair() 1161 i = sizeof cbuf; in doit_biopair() 1164 r = BIO_write(c_ssl_bio, cbuf, i); in doit_biopair() 1194 r = BIO_read(c_ssl_bio, cbuf, sizeof(cbuf)); in doit_biopair() 1465 MS_STATIC char cbuf[1024*8],sbuf[1024*8]; in doit() local 1479 memset(cbuf,0,sizeof(cbuf)); in doit() 1554 j = (cw_num > (long)sizeof(cbuf)) ? in doit() 1555 (int)sizeof(cbuf) : (int)cw_num; in doit() [all …]
|
D | ssl_asn1.c | 130 unsigned char cbuf; in i2d_SSL_SESSION() local 179 cbuf = (unsigned char)in->compress_meth; in i2d_SSL_SESSION() 182 a.comp_id.data = &cbuf; in i2d_SSL_SESSION()
|
/external/e2fsprogs/debugfs/ |
D | htree.c | 163 char *cbuf; in htree_dump_int_block() local 167 cbuf = malloc(fs->blocksize); in htree_dump_int_block() 168 if (!cbuf) { in htree_dump_int_block() 189 cbuf, level); in htree_dump_int_block() 191 free(cbuf); in htree_dump_int_block()
|
/external/svox/pico/lib/ |
D | picoacph.c | 145 picoos_uint8 cbuf[PICOACPH_MAXSIZE_CBUF]; member 193 acph->cbuf[i] = 0; in acphInitialize() 337 ch = acph->cbuf[acph->headx[ind].cind + i]; in acphGetNrSylls() 656 if (picoktab_isPrimstress(acph->tabphones, acph->cbuf[pind])) { in acphAccNrSyllParts() 658 } else if (picoktab_isSyllbound(acph->tabphones, acph->cbuf[pind])) { in acphAccNrSyllParts() 775 if (picoktab_isPrimstress(acph->tabphones, acph->cbuf[pos + i]) || in acphIsWordWithoutStress() 776 picoktab_isSecstress(acph->tabphones, acph->cbuf[pos + i])) { in acphIsWordWithoutStress() 1081 &(acph->cbuf[acph->cbufLen]), acph->cbufBufSize in acphStep() 1227 acph->cbuf[acph->headx[i].cind+j])); in acphStep() 1230 acph->cbuf[acph->headx[i].cind+j])); in acphStep() [all …]
|
D | picospho.c | 182 picoos_uint8 cbuf[SPHO_MAXSIZE_CBUF]; member 444 spho->cbuf[c_i++] = spho->cbuf[c_j++]; in shift_range_left_1() 550 content = spho->cbuf + spho->headx[pos].cind; in sphoExtractPhonemes() 1000 … &(spho->cbuf[spho->cbufWritePos]), remCbufSize, &blen); in sphoStep() 1084 icontent = spho->cbuf + spho->headx[spho->headxReadPos].cind; in sphoStep() 1302 icontent = spho->cbuf + spho->headx[spho->outReadPos].cind; in sphoStep() 1414 icontent = spho->cbuf + spho->headx[spho->outReadPos].cind; in sphoStep() 1517 icontent = spho->cbuf + spho->headx[spho->outReadPos].cind; in sphoStep()
|
/external/ppp/pppd/ |
D | sys-solaris.c | 2644 struct strbuf cbuf, dbuf; local 2664 cbuf.buf = (char *) &req; 2665 cbuf.len = sizeof(req); 2667 if (putmsg(fd, &cbuf, NULL, 0) == -1) { 2674 cbuf.buf = (char *) &ack; 2675 cbuf.maxlen = sizeof(ack); 2679 r = getmsg(fd, &cbuf, &dbuf, &flags); 2686 if (cbuf.len < sizeof(struct T_optmgmt_ack) 2691 cbuf.len, ack.ack.PRIM_type);
|