Home
last modified time | relevance | path

Searched refs:strbuf (Results 1 – 25 of 32) sorted by relevance

12

/external/linux-tools-perf/src/tools/perf/util/
Dstrbuf.h44 struct strbuf { struct
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 *);
58 static inline ssize_t strbuf_avail(const struct strbuf *sb) { in strbuf_avail()
62 extern void strbuf_grow(struct strbuf *, size_t);
64 static inline void strbuf_setlen(struct strbuf *sb, size_t len) { in strbuf_setlen()
73 static inline void strbuf_addch(struct strbuf *sb, int c) { in strbuf_addch()
79 extern void strbuf_remove(struct strbuf *, size_t pos, size_t len);
81 extern void strbuf_add(struct strbuf *, const void *, size_t);
[all …]
Dstrbuf.c20 void strbuf_init(struct strbuf *sb, ssize_t hint) in strbuf_init()
28 void strbuf_release(struct strbuf *sb) in strbuf_release()
36 char *strbuf_detach(struct strbuf *sb, size_t *sz) in strbuf_detach()
45 void strbuf_grow(struct strbuf *sb, size_t extra) in strbuf_grow()
54 static void strbuf_splice(struct strbuf *sb, size_t pos, size_t len, in strbuf_splice()
73 void strbuf_remove(struct strbuf *sb, size_t pos, size_t len) in strbuf_remove()
78 void strbuf_add(struct strbuf *sb, const void *data, size_t len) in strbuf_add()
85 void strbuf_addf(struct strbuf *sb, const char *fmt, ...) in strbuf_addf()
109 ssize_t strbuf_read(struct strbuf *sb, int fd, ssize_t hint) in strbuf_read()
Dexec_cmd.c15 struct strbuf d = STRBUF_INIT; in system_path()
70 static void add_path(struct strbuf *out, const char *path) in add_path()
85 struct strbuf new_path = STRBUF_INIT; in setup_path()
Dquote.c20 static void sq_quote_buf(struct strbuf *dst, const char *src) in sq_quote_buf()
42 void sq_quote_argv(struct strbuf *dst, const char** argv, size_t maxlen) in sq_quote_argv()
Dquote.h27 extern void sq_quote_argv(struct strbuf *, const char **argv, size_t maxlen);
Dhelp.c124 struct strbuf buf = STRBUF_INIT; in list_commands_in_dir()
Dheader.c1827 struct strbuf sb; in process_cmdline()
1863 struct strbuf sb; in process_cpu_topology()
1920 struct strbuf sb; in process_numa_topology()
1980 struct strbuf sb; in process_pmu_mappings()
/external/iproute2/tc/
Demp_ematch.l39 static char *strbuf; variable
46 strbuf = realloc(strbuf, strbuf_size); in strbuf_enlarge()
53 strbuf[strbuf_index++] = c; in strbuf_append_char()
60 memcpy(strbuf + strbuf_index, s, strlen(s)); in strbuf_append_charp()
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/
DMultipartMimeContentImpl.java106 StringBuffer strbuf = new StringBuffer(nextPart); in createContentList() local
107 while (strbuf.length() > 0 in createContentList()
108 && (strbuf.charAt(0) == '\r' || strbuf.charAt(0) == '\n')) in createContentList()
109 strbuf.deleteCharAt(0); in createContentList()
111 if (strbuf.length() == 0) in createContentList()
113 nextPart = strbuf.toString(); in createContentList()
/external/boringssl/src/crypto/asn1/
Da_mbstr.c101 char strbuf[32]; in ASN1_mbstring_ncopy() local
146 BIO_snprintf(strbuf, sizeof strbuf, "%ld", minsize); in ASN1_mbstring_ncopy()
147 ERR_add_error_data(2, "minsize=", strbuf); in ASN1_mbstring_ncopy()
153 BIO_snprintf(strbuf, sizeof strbuf, "%ld", maxsize); in ASN1_mbstring_ncopy()
154 ERR_add_error_data(2, "maxsize=", strbuf); in ASN1_mbstring_ncopy()
/external/wpa_supplicant_8/src/utils/
Dwpa_debug.c279 char *strbuf = NULL; in _wpa_hexdump() local
289 strbuf = os_malloc(1 + 3 * slen); in _wpa_hexdump()
290 if (strbuf == NULL) { in _wpa_hexdump()
297 os_snprintf(&strbuf[i * 3], 4, " %02x", in _wpa_hexdump()
300 display = strbuf; in _wpa_hexdump()
310 bin_clear_free(strbuf, 1 + 3 * slen); in _wpa_hexdump()
317 char *strbuf = NULL; in _wpa_hexdump() local
324 strbuf = os_malloc(1 + 3 * len); in _wpa_hexdump()
325 if (strbuf == NULL) { in _wpa_hexdump()
332 os_snprintf(&strbuf[i * 3], 4, " %02x", in _wpa_hexdump()
[all …]
/external/linux-tools-perf/src/tools/perf/
Dbuiltin-help.c59 struct strbuf buffer = STRBUF_INIT; in check_emacsclient_version()
107 struct strbuf man_page = STRBUF_INIT; in exec_woman_emacs()
121 struct strbuf man_page = STRBUF_INIT; in exec_man_konqueror()
155 struct strbuf shell_cmd = STRBUF_INIT; in exec_man_cmd()
312 struct strbuf new_path = STRBUF_INIT; in setup_man_path()
371 static int get_html_page_path(struct strbuf *page_path, const char *page) in get_html_page_path()
404 struct strbuf page_path; /* it leaks but we exec bellow */ in show_html_page()
Dperf.c240 struct strbuf buf; in handle_alias()
382 struct strbuf cmd = STRBUF_INIT; in execv_dashed_external()
DAndroid.mk141 util/strbuf.c \
/external/harfbuzz_ng/src/
Dhb-common.cc295 char strbuf[64]; in hb_language_from_string() local
303 len = MIN (len, (int) sizeof (strbuf) - 1); in hb_language_from_string()
304 memcpy (strbuf, str, len); in hb_language_from_string()
305 strbuf[len] = '\0'; in hb_language_from_string()
306 str = strbuf; in hb_language_from_string()
/external/clang/test/CodeGen/
Dcompound.c17 void foo(char *strbuf) { in foo() argument
19 strbuf += stufflen; in foo()
/external/libpcap/
Dpcap-dlpi.c176 static struct strbuf ctl = {
194 struct strbuf data; in pcap_read_dlpi()
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) {
1346 struct strbuf ctl, data;
1455 struct strbuf ctl;
1484 if (getmsg(fd, &ctl, (struct strbuf *)NULL, &flags) < 0) {
1515 if (getmsg(fd, &ctl, (struct strbuf *)NULL, &flags) < 0) {
Dpcap-snit.c218 struct strbuf ctl, data; in pcap_inject_snit()
/external/netperf/
Dnettest_dlpi.c153 struct strbuf send_message; in send_dlpi_co_stream()
702 struct strbuf recv_message; in recv_dlpi_co_stream()
1043 struct strbuf send_message; in send_dlpi_co_rr()
1044 struct strbuf recv_message; in send_dlpi_co_rr()
1625 struct strbuf send_message; in send_dlpi_cl_stream()
1626 struct strbuf sctl_message; in send_dlpi_cl_stream()
2069 struct strbuf recv_message; in recv_dlpi_cl_stream()
2070 struct strbuf rctl_message; in recv_dlpi_cl_stream()
2396 struct strbuf send_message; in send_dlpi_cl_rr()
2397 struct strbuf recv_message; in send_dlpi_cl_rr()
[all …]
/external/ppp/pppd/
Dsrp-entry.c105 char strbuf[MAXB64PARAMLEN]; in main() local
185 pwval.pebuf.index, t_tob64(strbuf, in main()
Dsys-solaris.c1339 struct strbuf data;
1452 struct strbuf ctrl, data;
2311 struct strbuf buf;
2325 struct strbuf buf;
2338 struct strbuf buf;
2652 struct strbuf cbuf, dbuf;
/external/strace/
Dstream.c49 struct strbuf { struct
61 printstrbuf(struct tcb *tcp, struct strbuf *sbp, int getting) in printstrbuf() argument
78 struct strbuf buf; in printstrbufarg()
/external/mksh/src/
Dvar.c364 char strbuf[1 + 2 + 1 + 8 * sizeof(mksh_uari_t) + 1]; in str_val() local
368 s = strbuf + sizeof(strbuf); in str_val()
380 *(s = strbuf) = '1'; in str_val()
/external/tcpdump/
Dconfigure7100 char strbuf[16+1];
7101 sprintf(strbuf, "%016lx", t << 32);
7102 if (strcmp(strbuf, "0000000100000000") == 0)
7157 char strbuf[16+1];
7158 sprintf(strbuf, "%016llx", t << 32);
7159 if (strcmp(strbuf, "0000000100000000") == 0)
7214 char strbuf[16+1];
7215 sprintf(strbuf, "%016Lx", t << 32);
7216 if (strcmp(strbuf, "0000000100000000") == 0)
7271 char strbuf[16+1];
[all …]
/external/clang/docs/
DAttributeReference.rst278 strnlen(strbuf, maxlen) to resolve to strnlen_chk(strbuf, maxlen, size of
279 strbuf) only if the size of strbuf can be determined:

12