/external/linux-tools-perf/src/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 | 16 * initialized strbuf. 20 void strbuf_init(struct strbuf *sb, ssize_t hint) 28 void strbuf_release(struct strbuf *sb) 36 char *strbuf_detach(struct strbuf *sb, size_t *sz) 45 void strbuf_grow(struct strbuf *sb, size_t extra) 54 static void strbuf_splice(struct strbuf *sb, size_t pos, size_t len, 73 void strbuf_remove(struct strbuf *sb, size_t pos, size_t len) 78 void strbuf_add(struct strbuf *sb, const void *data, size_t len) 85 void strbuf_addf(struct strbuf *sb, const char *fmt, ...) 109 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);
|
cache.h | 6 #include "strbuf.h"
|
/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/x86_64-linux-glibc2.11-4.8/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.15-4.8/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);
|
/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/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 bin_clear_free(strbuf, 1 + 3 * slen); 317 char *strbuf = NULL; 324 strbuf = os_malloc(1 + 3 * len); 325 if (strbuf == NULL) { 332 os_snprintf(&strbuf[i * 3], 4, " %02x" [all...] |
/external/boringssl/src/crypto/asn1/ |
a_mbstr.c | 101 char strbuf[32]; local 146 BIO_snprintf(strbuf, sizeof strbuf, "%ld", minsize); 147 ERR_add_error_data(2, "minsize=", strbuf); 153 BIO_snprintf(strbuf, sizeof strbuf, "%ld", maxsize); 154 ERR_add_error_data(2, "maxsize=", strbuf);
|
/external/linux-tools-perf/src/tools/perf/ |
builtin-help.c | 59 struct strbuf buffer = STRBUF_INIT; 107 struct strbuf man_page = STRBUF_INIT; 121 struct strbuf man_page = STRBUF_INIT; 155 struct strbuf shell_cmd = STRBUF_INIT; 312 struct strbuf new_path = STRBUF_INIT; 371 static int get_html_page_path(struct strbuf *page_path, const char *page) 404 struct strbuf page_path; /* it leaks but we exec bellow */
|
builtin.h | 5 #include "util/strbuf.h"
|
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.8/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.15-4.8/sysroot/usr/include/i386-linux-gnu/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.15-4.8/sysroot/usr/include/x86_64-linux-gnu/bits/ |
stropts.h | 180 struct strbuf struct 189 struct strbuf ctlbuf; 190 struct strbuf databuf; 196 struct strbuf ctlbuf; 197 struct strbuf databuf;
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
SelectFormatAPITest.java | 135 StringBuffer strBuf = new StringBuffer("AppendHere-"); 138 , (selFmt1.format("other", strBuf, new FieldPosition(0))).toString());
|
/external/harfbuzz_ng/src/ |
hb-common.cc | 295 char strbuf[64]; local 303 len = MIN (len, (int) sizeof (strbuf) - 1); 304 memcpy (strbuf, str, len); 305 strbuf[len] = '\0'; 306 str = strbuf;
|
/external/icu/icu4c/source/test/perf/howExpensiveIs/ |
howExpensiveIs.cpp | 437 char strBuf[200]; 438 u_strToUTF8(strBuf,200,NULL,buf,trial+1,&setupStatus); 440 fFile,fLine,getName(),strBuf,fCStr, u_errorName(setupStatus)); 561 char strBuf[200]; 562 u_strToUTF8(strBuf,200,NULL,buf,trial+1,&setupStatus); 564 fFile,fLine,getName(),strBuf,trial,fCStr,fLen, u_errorName(setupStatus)); 652 char strBuf[200]; 653 u_strToUTF8(strBuf,200,NULL,buf.getTerminatedBuffer(),buf.length()+1,&setupStatus); 655 fFile,fLine,getName(),strBuf,buf.length(),fCStr,fLen, u_errorName(setupStatus));
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/sms/ |
BearerData.java | 1243 StringBuffer strbuf = new StringBuffer(dataLen); local [all...] |
/external/strace/ |
stream.c | 49 struct strbuf { struct 61 printstrbuf(struct tcb *tcp, struct strbuf *sbp, int getting) 78 struct strbuf buf;
|
/external/ppp/pppd/ |
srp-entry.c | 105 char strbuf[MAXB64PARAMLEN]; local 185 pwval.pebuf.index, t_tob64(strbuf,
|
/external/libpcap/ |
pcap-dlpi.c | 176 static struct strbuf ctl = { 194 struct strbuf data; 970 struct strbuf ctl; 978 if (putmsg(fd, &ctl, (struct strbuf *) NULL, flags) < 0) { 991 struct strbuf ctl; 1006 if (getmsg(fd, &ctl, (struct strbuf*)NULL, &flags) < 0) { [all...] |