Home
last modified time | relevance | path

Searched refs:strlcpy (Results 1 – 25 of 28) sorted by relevance

12

/linux/tools/lib/subcmd/
H A Dexec-cmd.c51 strlcpy(buf, pwd, sz); in get_pwd_cwd()
60 if (strlcpy(buf, path, sz) >= sz) in make_nonrelative_path()
/linux/tools/perf/ui/tui/
H A Dhelpline.c27 strlcpy(ui_helpline__current, msg, sz); in tui_helpline__push()
/linux/tools/include/linux/
H A Dstring.h27 extern size_t strlcpy(char *dest, const char *src, size_t size);
/linux/tools/perf/jvmti/
H A DBuild4 # For strlcpy
H A Dlibjvmti.c161 strlcpy(result, file_name, max_length); in copy_class_filename()
/linux/tools/perf/
H A Dbuiltin-buildid-cache.c39 strlcpy(root_dir, proc_dir, sizeof(root_dir)); in build_id_cache__kcore_buildid()
107 strlcpy(to_dir, to_subdir, to_dir_sz); in build_id_cache__kcore_existing()
124 strlcpy(from_dir, filename, sizeof(from_dir)); in build_id_cache__add_kcore()
H A Dbuiltin-daemon.c610 strlcpy(addr.sun_path, path, sizeof(addr.sun_path) - 1); in setup_server_socket()
881 strlcpy(addr.sun_path, path, sizeof(addr.sun_path) - 1); in setup_client_socket()
/linux/tools/include/nolibc/
H A Ddirent.h95 strlcpy(entry->d_name, ldir->d_name, sizeof(entry->d_name)); in readdir_r()
H A Dstring.h222 size_t strlcpy(char *dst, const char *src, size_t size) in strlcpy() function
/linux/tools/perf/arch/x86/util/
H A Devent.c60 strlcpy(event->mmap.filename, kmap->name, PATH_MAX); in perf_event__synthesize_extra_kmaps_cb()
H A Dmachine.c43 strlcpy(mi->maps[mi->cnt].name, name, KMAP_NAME_LEN); in add_extra_kernel_map()
/linux/tools/lib/
H A Dstring.c86 * strlcpy - Copy a C-string into a sized buffer
96 * If libc has strlcpy() then that version will override this
103 size_t __weak strlcpy(char *dest, const char *src, size_t size) in strlcpy() function
/linux/tools/perf/tests/
H A Dsymbols.c77 strlcpy(filename, dso_to_test, max_sz); in get_test_dso_filename()
H A Dhwmon_pmu.c167 strlcpy(str, test_event, sizeof(str)); in do_test()
H A Ddlfilter-test.c241 strlcpy(buf, dirname(path), sz); in get_dlfilters_path()
/linux/tools/perf/util/
H A Dhwmon_pmu.c169 strlcpy(fn_type, filename, sizeof(fn_type)); in parse_hwmon_filename()
205 strlcpy(fn_type, fn_item, fn_item_len - 5); in parse_hwmon_filename()
H A Dmachine.c1055 strlcpy(kmap->name, xm->name, KMAP_NAME_LEN); in machine__create_extra_kernel_map()
1160 strlcpy(xm.name, ENTRY_TRAMPOLINE_NAME, KMAP_NAME_LEN); in machine__map_x86_64_entry_trampolines()
1759 strlcpy(xm.name, event->mmap2.filename, KMAP_NAME_LEN); in machine__process_mmap2_event()
1816 strlcpy(xm.name, event->mmap.filename, KMAP_NAME_LEN); in machine__process_mmap_event()
H A Dsvghelper.c336 strlcpy(cpu_m, &buf[13], 255); in cpu_model()
H A Dprobe-file.c443 strlcpy(sbuildid, target, SBUILD_ID_SIZE); in probe_cache__open()
H A Dsymbol.c1916 strlcpy(name, new_name, PATH_MAX); in dso__load()
2099 strlcpy(dir, kallsyms_filename, dir_sz); in find_matching_kcore()
H A Ddisasm.c1320 strlcpy(filename, new_name, filename_size); in dso__disassemble_filename()
2254 strlcpy(symfs_filename, kce.extract_filename, sizeof(symfs_filename)); in symbol__disassemble()
H A Dsynthetic-events.c2017 strlcpy(ev->unit, evsel->unit, size + 1); in perf_event__synthesize_event_update_unit()
2051 strlcpy(ev->name, evsel->name, len + 1); in perf_event__synthesize_event_update_name()
/linux/tools/testing/selftests/nolibc/
H A Dnolibc-test.c1458 CASE_TEST(strlcpy_0); EXPECT_STRBUFEQ(is_nolibc, strlcpy(buf, "bar", 0), buf, 3, "test"); break; in run_stdlib()
1459 CASE_TEST(strlcpy_1); EXPECT_STRBUFEQ(is_nolibc, strlcpy(buf, "bar", 1), buf, 3, ""); break; in run_stdlib()
1460 CASE_TEST(strlcpy_2); EXPECT_STRBUFEQ(is_nolibc, strlcpy(buf, "bar", 2), buf, 3, "b"); break; in run_stdlib()
1461 CASE_TEST(strlcpy_3); EXPECT_STRBUFEQ(is_nolibc, strlcpy(buf, "bar", 3), buf, 3, "ba"); break; in run_stdlib()
1462 CASE_TEST(strlcpy_4); EXPECT_STRBUFEQ(is_nolibc, strlcpy(buf, "bar", 4), buf, 3, "bar"); break; in run_stdlib()
/linux/Documentation/translations/it_IT/process/
H A Ddeprecated.rst165 strlcpy()
167 La funzione strlcpy(), per prima cosa, legge interamente il buffer di
172 ritorno di strlcpy(), dato che strscpy() ritorna un valore di errno
/linux/Documentation/translations/sp_SP/process/
H A Ddeprecated.rst169 strlcpy()
171 strlcpy() primero lee por completo el buffer de origen (ya que el valor
177 strlcpy(), ya que strscpy() devolverá valores negativos de erno cuando se

12