/external/linux-tools-perf/util/ |
H A D | strbuf.h | 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 -----*/ 58 static inline ssize_t strbuf_avail(const struct strbuf *s [all...] |
H A D | quote.h | 27 extern void sq_quote_argv(struct strbuf *, const char **argv, size_t maxlen);
|
H A D | 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 *s [all...] |
H A D | 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)
|
H A D | 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;
|
/external/clang/test/CodeGen/ |
H A D | compound.c | 17 void foo(char *strbuf) { argument 19 strbuf += stufflen;
|
/external/iproute2/tc/ |
H A D | 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);
|
/external/nist-sip/java/gov/nist/javax/sip/message/ |
H A D | MultipartMimeContentImpl.java | 106 StringBuffer strbuf = new StringBuffer(nextPart); 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/ |
H A D | 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/chromium_org/third_party/openssl/openssl/crypto/asn1/ |
H A D | 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/ |
H A D | 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/linux-tools-perf/ |
H A D | 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 */
|
H A D | perf.c | 200 struct strbuf buf; 372 struct strbuf cmd = STRBUF_INIT;
|
/external/ppp/pppd/plugins/rp-pppoe/ |
H A D | 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*)NUL [all...] |
/external/wpa_supplicant_8/hostapd/src/utils/ |
H A D | 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[ [all...] |
/external/wpa_supplicant_8/src/utils/ |
H A D | 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[ [all...] |
/external/wpa_supplicant_8/wpa_supplicant/src/utils/ |
H A D | 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[ [all...] |
/external/chromium_org/third_party/harfbuzz-ng/src/ |
H A D | hb-common.cc | 295 char strbuf[64]; local 302 len = MIN (len, (int) sizeof (strbuf) - 1); 303 str = (char *) memcpy (strbuf, str, len); 304 strbuf[len] = '\0';
|
/external/harfbuzz_ng/src/ |
H A D | hb-common.cc | 246 char strbuf[32]; local 248 len = MIN (len, (int) sizeof (strbuf) - 1); 249 str = (char *) memcpy (strbuf, str, len); 250 strbuf[len] = '\0';
|
/external/chromium_org/third_party/openssl/openssl/apps/ |
H A D | enc.c | 106 char *strbuf=NULL; local 374 strbuf=OPENSSL_malloc(SIZE); 376 if ((buff == NULL) || (strbuf == NULL)) 431 strbuf[0]='\0'; 432 i=EVP_read_pw_string((char *)strbuf,SIZE,buf,enc); 435 if (strbuf[0] == '\0') 440 str=strbuf; 562 if (str == strbuf) 684 if (strbuf != NULL) OPENSSL_free(strbuf); [all...] |
/external/openssl/apps/ |
H A D | enc.c | 106 char *strbuf=NULL; local 374 strbuf=OPENSSL_malloc(SIZE); 376 if ((buff == NULL) || (strbuf == NULL)) 431 strbuf[0]='\0'; 432 i=EVP_read_pw_string((char *)strbuf,SIZE,buf,enc); 435 if (strbuf[0] == '\0') 440 str=strbuf; 562 if (str == strbuf) 684 if (strbuf != NULL) OPENSSL_free(strbuf); [all...] |
/external/netperf/ |
H A D | nettest_dlpi.c | 155 struct strbuf send_message; 705 struct strbuf recv_message; 1047 struct strbuf send_message; 1048 struct strbuf recv_message; 1630 struct strbuf send_message; 1631 struct strbuf sctl_message; 2075 struct strbuf recv_message; 2076 struct strbuf rctl_message; 2403 struct strbuf send_message; 2404 struct strbuf recv_messag [all...] |
/external/libpcap/ |
H A D | pcap-dlpi.c | 237 static struct strbuf ctl = { 256 struct strbuf data; 1123 struct strbuf ctl; 1131 if (putmsg(fd, &ctl, (struct strbuf *) NULL, flags) < 0) { 1144 struct strbuf ctl; 1159 if (getmsg(fd, &ctl, (struct strbuf*)NULL, &flags) < 0) { 1496 struct strbuf ctl, data; 1625 struct strbuf ctl; 1654 if (getmsg(fd, &ctl, (struct strbuf *)NULL, &flags) < 0) { 1685 if (getmsg(fd, &ctl, (struct strbuf *)NUL [all...] |
/external/ppp/pppd/ |
H A D | srp-entry.c | 105 char strbuf[MAXB64PARAMLEN]; local 185 pwval.pebuf.index, t_tob64(strbuf,
|
/external/chromium_org/third_party/yasm/source/patched-yasm/modules/parsers/nasm/ |
H A D | 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[coun [all...] |