/external/linux-tools-perf/util/ |
strbuf.h | 5 * Strbuf's can be use in many ways: as a byte array, or to store arbitrary 10 * 1. the ->buf member is always malloc-ed, hence strbuf's can be used to 19 * member to be a valid C-string. Every strbuf function ensure this 34 * missing API to the strbuf module is the way to go. 44 struct strbuf { struct 52 /*----- strbuf life cycle -----*/ 53 extern void strbuf_init(struct strbuf *buf, ssize_t hint); 54 extern void strbuf_release(struct strbuf *); 55 extern char *strbuf_detach(struct strbuf *, size_t *); 57 /*----- strbuf size related -----* [all...] |
strbuf.c | 15 * initialized strbuf. 19 void strbuf_init(struct strbuf *sb, ssize_t hint) 27 void strbuf_release(struct strbuf *sb) 35 char *strbuf_detach(struct strbuf *sb, size_t *sz) 44 void strbuf_grow(struct strbuf *sb, size_t extra) 53 static void strbuf_splice(struct strbuf *sb, size_t pos, size_t len, 72 void strbuf_remove(struct strbuf *sb, size_t pos, size_t len) 77 void strbuf_add(struct strbuf *sb, const void *data, size_t len) 84 void strbuf_addf(struct strbuf *sb, const char *fmt, ...) 108 ssize_t strbuf_read(struct strbuf *sb, int fd, ssize_t hint [all...] |
quote.c | 20 static void sq_quote_buf(struct strbuf *dst, const char *src) 42 void sq_quote_argv(struct strbuf *dst, const char** argv, size_t maxlen)
|
exec_cmd.c | 15 struct strbuf d = STRBUF_INIT; 70 static void add_path(struct strbuf *out, const char *path) 85 struct strbuf new_path = STRBUF_INIT;
|
quote.h | 27 extern void sq_quote_argv(struct strbuf *, const char **argv, size_t maxlen);
|
/external/clang/test/CodeGen/ |
compound.c | 17 void foo(char *strbuf) { 19 strbuf += stufflen;
|
/external/iproute2/tc/ |
emp_ematch.l | 39 static char *strbuf; 46 strbuf = realloc(strbuf, strbuf_size); 53 strbuf[strbuf_index++] = c; 60 memcpy(strbuf + strbuf_index, s, strlen(s)); 73 if (strbuf == NULL) { 75 strbuf = calloc(1, strbuf_size); 76 if (strbuf == NULL) 86 yylval.b = bstr_new(strbuf, strbuf_index);
|
/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.4.3/sysroot/usr/include/ |
stropts.h | 51 extern int getmsg (int __fildes, struct strbuf *__restrict __ctlptr, 52 struct strbuf *__restrict __dataptr, 60 extern int getpmsg (int __fildes, struct strbuf *__restrict __ctlptr, 61 struct strbuf *__restrict __dataptr, 73 extern int putmsg (int __fildes, __const struct strbuf *__ctlptr, 74 __const struct strbuf *__dataptr, int __flags); 80 extern int putpmsg (int __fildes, __const struct strbuf *__ctlptr, 81 __const struct strbuf *__dataptr, int __band, int __flags);
|
/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/sysroot/usr/include/ |
stropts.h | 51 extern int getmsg (int __fildes, struct strbuf *__restrict __ctlptr, 52 struct strbuf *__restrict __dataptr, 60 extern int getpmsg (int __fildes, struct strbuf *__restrict __ctlptr, 61 struct strbuf *__restrict __dataptr, 73 extern int putmsg (int __fildes, __const struct strbuf *__ctlptr, 74 __const struct strbuf *__dataptr, int __flags); 80 extern int putpmsg (int __fildes, __const struct strbuf *__ctlptr, 81 __const struct strbuf *__dataptr, int __band, int __flags);
|
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.7-4.6/sysroot/usr/include/ |
stropts.h | 51 extern int getmsg (int __fildes, struct strbuf *__restrict __ctlptr, 52 struct strbuf *__restrict __dataptr, 60 extern int getpmsg (int __fildes, struct strbuf *__restrict __ctlptr, 61 struct strbuf *__restrict __dataptr, 73 extern int putmsg (int __fildes, __const struct strbuf *__ctlptr, 74 __const struct strbuf *__dataptr, int __flags); 80 extern int putpmsg (int __fildes, __const struct strbuf *__ctlptr, 81 __const struct strbuf *__dataptr, int __band, int __flags);
|
/system/core/toolbox/ |
date.c | 51 char strbuf[260]; local 86 strftime(strbuf, sizeof(strbuf), 91 strftime(strbuf, sizeof(strbuf), 95 printf("%s\n", strbuf);
|
alarm.c | 19 char strbuf[26]; local 89 asctime_r(&tm, strbuf); 90 printf("%s", strbuf); 100 asctime_r(&tm, strbuf); 101 printf("Now: %s", strbuf); 123 asctime_r(&tm, strbuf); 124 printf("Requested %s", strbuf);
|
/external/nist-sip/java/gov/nist/javax/sip/message/ |
MultipartMimeContentImpl.java | 106 StringBuffer strbuf = new StringBuffer(nextPart); local 107 while (strbuf.length() > 0 108 && (strbuf.charAt(0) == '\r' || strbuf.charAt(0) == '\n')) 109 strbuf.deleteCharAt(0); 111 if (strbuf.length() == 0) 113 nextPart = strbuf.toString();
|
/external/chromium_org/third_party/yasm/source/patched-yasm/modules/parsers/gas/ |
gas-token.re | 164 static YYCTYPE *strbuf = NULL; 166 /* length of strbuf (including terminating NULL character) */ 173 strbuf = yasm_xrealloc(strbuf, strbuf_size + STRBUF_ALLOC_SIZE); 176 strbuf[count] = ch; 480 strbuf = yasm_xmalloc(STRBUF_ALLOC_SIZE); 490 lvalp->str.contents = (char *)strbuf; 501 lvalp->str.contents = (char *)strbuf; 517 strbuf = yasm_xmalloc(STRBUF_ALLOC_SIZE); 530 lvalp->str.contents = (char *)strbuf; [all...] |
/external/wpa_supplicant_8/src/utils/ |
wpa_debug.c | 279 char *strbuf = NULL; local 289 strbuf = os_malloc(1 + 3 * slen); 290 if (strbuf == NULL) { 297 os_snprintf(&strbuf[i * 3], 4, " %02x", 300 display = strbuf; 310 os_free(strbuf); 317 char *strbuf = NULL; 324 strbuf = os_malloc(1 + 3 * len); 325 if (strbuf == NULL) { 332 os_snprintf(&strbuf[i * 3], 4, " %02x" [all...] |
/dalvik/vm/compiler/codegen/x86/libenc/ |
enc_wrapper.cpp | 504 // Disassemble the operand "opnd" and put the readable format in "strbuf" 506 unsigned int DisassembleOperandToBuf(const EncoderBase::Operand& opnd, char* strbuf, unsigned int len) 510 sz += snprintf(&strbuf[sz], len-sz, "%s ", 515 sz += snprintf(&strbuf[sz], len-sz, "%d(%s,%s,%d)", opnd.disp(), 519 sz += snprintf(&strbuf[sz], len-sz, "%d(%s)", 523 sz += snprintf(&strbuf[sz], len-sz, "#%x", (int)opnd.imm()); 525 sz += snprintf(&strbuf[sz], len-sz, "%s", 532 // in "strbuf" up to a string length of "len". 533 void DisassembleInstToBuf(Inst& decInst, char* strbuf, unsigned int len) 537 sz += snprintf(&strbuf[sz], len-sz, "%s ", EncoderBase::toStr(decInst.mn)) [all...] |
/external/linux-tools-perf/ |
builtin-help.c | 73 struct strbuf buffer = STRBUF_INIT; 121 struct strbuf man_page = STRBUF_INIT; 135 struct strbuf man_page = STRBUF_INIT; 169 struct strbuf shell_cmd = STRBUF_INIT; 322 struct strbuf new_path = STRBUF_INIT; 378 static void get_html_page_path(struct strbuf *page_path, const char *page) 407 struct strbuf page_path; /* it leaks but we exec bellow */
|
builtin.h | 5 #include "util/strbuf.h"
|
/external/ppp/pppd/plugins/rp-pppoe/ |
if.c | 81 void strgetmsg(int fd, struct strbuf *ctlp, struct strbuf *datap, int *flagsp, char *caller); 670 struct strbuf data; 770 struct strbuf ctl; 782 if (putmsg(fd, &ctl, (struct strbuf*) NULL, flags) < 0) 790 struct strbuf ctl; 801 if (putmsg(fd, &ctl, (struct strbuf*) NULL, flags) < 0) 809 struct strbuf data, ctl; 836 struct strbuf ctl; 843 strgetmsg(fd, &ctl, (struct strbuf*)NULL, &flags, "dlinfoack") [all...] |
/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.4.3/sysroot/usr/include/bits/ |
stropts.h | 180 struct strbuf struct 189 struct strbuf ctlbuf; 190 struct strbuf databuf; 196 struct strbuf ctlbuf; 197 struct strbuf databuf;
|
/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/sysroot/usr/include/bits/ |
stropts.h | 180 struct strbuf struct 189 struct strbuf ctlbuf; 190 struct strbuf databuf; 196 struct strbuf ctlbuf; 197 struct strbuf databuf;
|
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.7-4.6/sysroot/usr/include/bits/ |
stropts.h | 180 struct strbuf struct 189 struct strbuf ctlbuf; 190 struct strbuf databuf; 196 struct strbuf ctlbuf; 197 struct strbuf databuf;
|
/external/chromium_org/third_party/yasm/source/patched-yasm/modules/parsers/nasm/ |
nasm-token.re | 55 static YYCTYPE *strbuf = NULL; 57 /* length of strbuf (including terminating NULL character) */ 737 strbuf = yasm_xmalloc(STRBUF_ALLOC_SIZE); 751 strbuf[count++] = s->tok[0]; 753 strbuf = yasm_xrealloc(strbuf, 761 strbuf[count++] = s->tok[0]; 763 strbuf = yasm_xrealloc(strbuf, strbuf_size + STRBUF_ALLOC_SIZE); 773 strbuf[count++] = s->tok[0] [all...] |
/external/chromium_org/third_party/openssl/openssl/crypto/asn1/ |
a_mbstr.c | 100 char strbuf[32]; local 148 BIO_snprintf(strbuf, sizeof strbuf, "%ld", minsize); 149 ERR_add_error_data(2, "minsize=", strbuf); 155 BIO_snprintf(strbuf, sizeof strbuf, "%ld", maxsize); 156 ERR_add_error_data(2, "maxsize=", strbuf);
|
/external/openssl/crypto/asn1/ |
a_mbstr.c | 100 char strbuf[32]; local 148 BIO_snprintf(strbuf, sizeof strbuf, "%ld", minsize); 149 ERR_add_error_data(2, "minsize=", strbuf); 155 BIO_snprintf(strbuf, sizeof strbuf, "%ld", maxsize); 156 ERR_add_error_data(2, "maxsize=", strbuf);
|