Home
last modified time | relevance | path

Searched refs:asprintf (Results 1 – 25 of 92) sorted by relevance

1234

/external/libmicrohttpd/src/examples/
Dmhd2spdy_structures.c88 asprintf(&((*uri)->scheme), "%.*s",pmatch[2].rm_eo - pmatch[2].rm_so, &full_uri[pmatch[2].rm_so]); in parse_uri()
89asprintf(&((*uri)->host_and_port), "%.*s",pmatch[4].rm_eo - pmatch[4].rm_so, &full_uri[pmatch[4].r… in parse_uri()
90 asprintf(&((*uri)->path), "%.*s",pmatch[5].rm_eo - pmatch[5].rm_so, &full_uri[pmatch[5].rm_so]); in parse_uri()
91asprintf(&((*uri)->path_and_more), "%.*s",pmatch[9].rm_eo - pmatch[5].rm_so, &full_uri[pmatch[5].r… in parse_uri()
92 asprintf(&((*uri)->query), "%.*s",pmatch[7].rm_eo - pmatch[7].rm_so, &full_uri[pmatch[7].rm_so]); in parse_uri()
93asprintf(&((*uri)->fragment), "%.*s",pmatch[9].rm_eo - pmatch[9].rm_so, &full_uri[pmatch[9].rm_so]… in parse_uri()
111 asprintf(&((*uri)->host), "%.*s", (int)(colon - (*uri)->host_and_port), (*uri)->host_and_port); in parse_uri()
Dspdy_event_loop.c190 asprintf(data,"%s%s: %s\n", *data,name,value[i]); in append_headers_to_data()
193 asprintf(data,"%s%s: \n", *data,name); in append_headers_to_data()
222 asprintf(&html,"body{color:green;}"); in standard_request_handler()
224 asprintf(&html,"body{color:red;}"); in standard_request_handler()
234asprintf(&data,"Priority: %i\nHTTP headers, scheme: %s\n\n%s %s %s\nHost: %s\n", priority,scheme,m… in standard_request_handler()
240 asprintf(&html,"<html>" in standard_request_handler()
246 asprintf(&html,"<html><link href=\"main.css\" rel=\"stylesheet\" type=\"text/css\" />" in standard_request_handler()
263 asprintf(&pathcls, "%s (daemon%i)",path,NULL==cls ? 1 : 2); in standard_request_handler()
Dspdy_response_with_callback.c125 asprintf(&html,"<html>" in standard_request_handler()
131 asprintf(&html,"<html>" in standard_request_handler()
/external/libmicrohttpd/src/testspdy/
Dtest_proxies.c118 asprintf(&port_s, "%i", mhd_port); in main()
144 asprintf(&port_s, "%i", spdy2http_port); in main()
169 asprintf(&url, "http://127.0.0.1:%i", spdy2http_port); in main()
170 asprintf(&port_s, "%i", mhd2spdy_port); in main()
199 asprintf (&cmd, "curl --proxy http://127.0.0.1:%i http://127.0.0.1:%i/", mhd2spdy_port, mhd_port); in main()
Dtest_request_response_with_callback.c274 asprintf(&cmd1, "spdycat https://127.0.0.1:%i/ | md5sum",port); in childproc()
275 asprintf(&cmd2, "md5sum " DATA_DIR "spdy-draft.txt"); in childproc()
/external/elfutils/libdwfl/
Dlinux-kernel-modules.c120 if (asprintf (&zname, "%s%s", *fname, vmlinux_suffixes[i]) > 0) in try_kernel_name()
156 ? asprintf (fname, "%s/vmlinux", release) in find_kernel_elf()
157 : asprintf (fname, "/boot/vmlinux-%s", release)) < 0) in find_kernel_elf()
164 if (asprintf (fname, MODULEDIRFMT "/vmlinux", release) < 0) in find_kernel_elf()
256 ? asprintf (&archive, "%s/debug.a", *release) in report_kernel_archive()
257 : asprintf (&archive, MODULEDIRFMT "/debug.a", *release)); in report_kernel_archive()
340 if (asprintf (&modulesdir[0], MODULEDIRFMT, release) < 0) in dwfl_linux_kernel_report_offline()
581 if (asprintf (&dirs[0], MODNOTESFMT, mod->name) < 0) in check_module_notes()
718 if (asprintf (&modulesdir[0], MODULEDIRFMT, release) < 0) in dwfl_linux_kernel_find_elf()
825 if (asprintf (&sysfile, SECADDRDIRFMT "%s", modname, secname) < 0) in INTDEF()
[all …]
Dlinux-proc-maps.c59 if (asprintf (&fname, PROCEXEFMT, pid) < 0) in get_pid_class()
95 if (asprintf (&fname, PROCAUXVFMT, pid) < 0) in grovel_auxv()
237 if (asprintf (&last_file, "[vdso: %d]", (int) pid) < 0 in proc_maps_report()
298 if (asprintf (&fname, PROCMAPSFMT, pid) < 0) in INTDEF()
409 if (asprintf (&fname, PROCMEMFMT, pid) < 0) in dwfl_linux_proc_find_elf()
Dfind-debuginfo.c51 else if ((subdir == NULL ? asprintf (&fname, "%s/%s", dir, debuglink) in try_open()
52 : dir == NULL ? asprintf (&fname, "%s/%s", subdir, debuglink) in try_open()
53 : asprintf (&fname, "%s/%s/%s", dir, subdir, debuglink)) < 0) in try_open()
/external/valgrind/coregrind/
Dlauncher-darwin.c271 asprintf(&newclient, "%s/Contents/MacOS/%s", clientname, appname); in main()
291asprintf(&vgpreload_core, "%s/vgpreload_core-%s-darwin.so", valgrind_lib, valid_archs[i].valgrind_… in main()
375 asprintf(&new_line, VALGRIND_LAUNCHER "=%s", launcher_name); in main()
378 asprintf(&set_cwd, "VALGRIND_STARTUP_PWD_%u_XYZZY=%s", getppid(), cwd); in main()
414 asprintf(&toolfile, "%s/%s-%s-darwin", valgrind_lib, toolname, arch); in main()
/external/libselinux/src/
Dprocattr.c25 rc = asprintf(&path, "/proc/%d/attr/%s", pid, attr); in openattr()
27 rc = asprintf(&path, "/proc/thread-self/attr/%s", attr); in openattr()
35 rc = asprintf(&path, "/proc/self/task/%d/attr/%s", tid, attr); in openattr()
/external/strace/
Dunwind.c452 n = asprintf(&output_line, STACK_ENTRY_SYMBOL_FMT); in sprint_call_or_error()
454 n = asprintf(&output_line, STACK_ENTRY_NOSYMBOL_FMT); in sprint_call_or_error()
457 ? asprintf(&output_line, STACK_ENTRY_ERROR_WITH_OFFSET_FMT) in sprint_call_or_error()
458 : asprintf(&output_line, STACK_ENTRY_ERROR_FMT); in sprint_call_or_error()
460 n = asprintf(&output_line, STACK_ENTRY_BUG_FMT, __FUNCTION__); in sprint_call_or_error()
/external/vboot_reference/cgpt/
Dcgpt_nor.c36 if (asprintf(&sysfs_name, "/sys/class/mtd%s/size", mtd_device) == -1) { in GetMtdSize()
107 if (asprintf(&dest, "%s_%d", src_name, idx) == -1) { in read_write()
156 if (asprintf(&source, "%s/%s", dir_name, file_name) == -1) { in split_gpt()
Dcgpt_wrapper.c102 if (asprintf(&real_cgpt, "%s.bin", argv[0]) == -1) { in wrap_cgpt()
171 if (asprintf(&real_cgpt, "%s.bin", argv[0]) == -1) { in main()
/external/selinux/policycoreutils/sandbox/
Dseunshare.c325 if (asprintf(&buf, "%s/*", src) == -1) { in rsynccmd()
343 if (asprintf(&newbuf, "\'%s\'", path) == -1) { in rsynccmd()
348 if (asprintf(&newbuf, "%s \'%s\'", buf, path) == -1) { in rsynccmd()
359 if (asprintf(&newbuf, "/usr/bin/rsync -trlHDq %s '%s'", buf, dst) == -1) { in rsynccmd()
389 …if (asprintf(&cmdbuf, "/usr/bin/rsync --exclude=.X11-unix -utrlHDq --delete '%s/' '%s/'", tmpdir, … in cleanup_tmpdir()
402 if (asprintf(&cmdbuf, "/bin/rm -r '%s/' 2>/dev/null", tmpdir) == -1) { in cleanup_tmpdir()
469 if (asprintf(&tmpdir, "/tmp/.sandbox-%s-XXXXXX", pwd->pw_name) == -1) { in create_tmpdir()
/external/mesa3d/src/glx/apple/
Dapple_glx_log.c109 asprintf(&_line, "%d", line); in _apple_glx_vlog()
117 asprintf(&_thread, "%"PRIu64, thread); in _apple_glx_vlog()
/external/libmicrohttpd/src/spdy2http/
Dproxy.c251 asprintf(&((*uri)->scheme), in parse_uri()
255 asprintf(&((*uri)->host_and_port), "%.*s", in parse_uri()
258 asprintf(&((*uri)->path), in parse_uri()
262 asprintf(&((*uri)->path_and_more), in parse_uri()
266 asprintf(&((*uri)->query), in parse_uri()
270 asprintf(&((*uri)->fragment), in parse_uri()
305 asprintf(&((*uri)->host), "%.*s", (int)(colon - (*uri)->host_and_port), (*uri)->host_and_port); in parse_uri()
882 ret = asprintf(&(proxy->url),"%s://%s%s", scheme, glob_opt.http_backend, path); in standard_request_handler()
884 ret = asprintf(&(proxy->url),"%s://%s%s", scheme, host, path); in standard_request_handler()
901 … ret = asprintf(&(proxy->url),"%s://%s%s", uri->scheme, glob_opt.http_backend, uri->path_and_more); in standard_request_handler()
/external/conscrypt/src/openjdk/native/
DJNIHelp.cpp75 (void)asprintf(&msg, "Native registration unable to find class '%s'; aborting...", in jniRegisterNativeMethods()
82 (void)asprintf(&msg, "RegisterNatives failed for '%s'; aborting...", className); in jniRegisterNativeMethods()
/external/clang/test/Sema/
Dformat-strings.c15 int asprintf(char **, const char *, ...);
35 asprintf(&b,s); // expected-warning {{format string is not a string lit}} in check_string_literal()
75 asprintf(&b,s); // expected-warning {{format string is not a string lit}} in check_string_literal2()
269asprintf(&b, "%d", "asprintf"); // expected-warning{{format specifies type 'int' but the argument … in test12()
/external/selinux/libselinux/src/
Dprocattr.c74 rc = asprintf(&path, "/proc/%d/attr/%s", pid, attr); in openattr()
76 rc = asprintf(&path, "/proc/thread-self/attr/%s", attr); in openattr()
84 rc = asprintf(&path, "/proc/self/task/%d/attr/%s", tid, attr); in openattr()
Dselinux_config.c219 if (asprintf(&selinux_policyroot, "%s%s", SELINUXDIR, type) == -1) in init_selinux_config()
223 if (asprintf(&file_paths[i], "%s%s", in init_selinux_config()
294 if (asprintf(&file_paths[i], "%s%s", in selinux_set_policy_root()
/external/iproute2/tc/
De_bpf.c145 ret = asprintf(&tmp, "BPF_NUM_MAPS=%u", aux.num_ent); in parse_bpf()
152 ret = asprintf(&tmp, "BPF_MAP%u=%u", in parse_bpf()
/external/conscrypt/src/compat/native/
DJNIHelp.cpp79 asprintf(&msg, "Native registration unable to find class '%s'; aborting...", className); in jniRegisterNativeMethods()
85 asprintf(&msg, "RegisterNatives failed for '%s'; aborting...", className); in jniRegisterNativeMethods()
/external/compiler-rt/test/asan/TestCases/Posix/
Dasprintf.cc13 int res = asprintf(&p, "%d", argc); in main()
/external/autotest/client/site_tests/graphics_Gbm/src/
Dgbmtest.c135 ret = asprintf(&dev_name, DRM_DEV_NAME, DRM_DIR_NAME, i); in drm_open()
180 ret = asprintf(&name, g_sys_card_path_format, i); in drm_open_vgem()
189 ret = asprintf(&name, g_dev_card_path_format, i); in drm_open_vgem()
/external/selinux/policycoreutils/restorecond/
Dwatch.c125 if (asprintf(&path, "%s/%s", ptr->dir, file) < in watch_list_find()
231 if (asprintf(&ptr, "%s%s", homedir, &buffer[1]) < 0) in process_config()

1234