Home
last modified time | relevance | path

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

12

/Linux-v6.6/lib/test_fortify/
Dwrite_overflow-strlcpy-src.c3 strlcpy(small, large_src, sizeof(small) + 1)
Dwrite_overflow-strlcpy.c3 strlcpy(instance.buf, large_src, sizeof(instance.buf) + 1)
/Linux-v6.6/tools/lib/subcmd/
Dexec-cmd.c51 strlcpy(buf, pwd, sz); in get_pwd_cwd()
60 if (strlcpy(buf, path, sz) >= sz) in make_nonrelative_path()
/Linux-v6.6/samples/v4l/
Dv4l2-pci-skeleton.c294 strlcpy(cap->driver, KBUILD_MODNAME, sizeof(cap->driver)); in skeleton_querycap()
295 strlcpy(cap->card, "V4L2 PCI Skeleton", sizeof(cap->card)); in skeleton_querycap()
600 strlcpy(i->name, "S-Video", sizeof(i->name)); in skeleton_enum_input()
604 strlcpy(i->name, "HDMI", sizeof(i->name)); in skeleton_enum_input()
848 strlcpy(vdev->name, KBUILD_MODNAME, sizeof(vdev->name)); in skeleton_probe()
/Linux-v6.6/init/
Dversion.c26 arglen = strlcpy(init_uts_ns.name.nodename, arg, bufsize); in early_hostname()
/Linux-v6.6/tools/perf/ui/tui/
Dhelpline.c27 strlcpy(ui_helpline__current, msg, sz); in tui_helpline__push()
/Linux-v6.6/fs/kernfs/
Ddir.c57 return strlcpy(buf, "(null)", buflen); in kernfs_name_locked()
59 return strlcpy(buf, kn->parent ? kn->name : "/", buflen); in kernfs_name_locked()
144 return strlcpy(buf, "(null)", buflen); in kernfs_path_from_node_locked()
150 return strlcpy(buf, "/", buflen); in kernfs_path_from_node_locked()
162 len += strlcpy(buf + len, parent_str, in kernfs_path_from_node_locked()
169 len += strlcpy(buf + len, "/", in kernfs_path_from_node_locked()
171 len += strlcpy(buf + len, kn->name, in kernfs_path_from_node_locked()
860 len = strlcpy(kernfs_pr_cont_buf, path, sizeof(kernfs_pr_cont_buf)); in kernfs_walk_ns()
/Linux-v6.6/tools/include/linux/
Dstring.h25 extern size_t strlcpy(char *dest, const char *src, size_t size);
/Linux-v6.6/tools/perf/jvmti/
DBuild4 # For strlcpy
Dlibjvmti.c161 strlcpy(result, file_name, max_length); in copy_class_filename()
/Linux-v6.6/arch/m68k/emu/
Dnatfeat.c47 n = strlcpy(name_copy, feature_name, sizeof(name_copy)); in nf_get_id()
/Linux-v6.6/tools/perf/
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()
/Linux-v6.6/tools/perf/arch/x86/util/
Dmachine.c43 strlcpy(mi->maps[mi->cnt].name, name, KMAP_NAME_LEN); in add_extra_kernel_map()
Devent.c67 strlcpy(event->mmap.filename, kmap->name, PATH_MAX); in perf_event__synthesize_extra_kmaps()
/Linux-v6.6/tools/lib/
Dstring.c103 size_t __weak strlcpy(char *dest, const char *src, size_t size) in strlcpy() function
/Linux-v6.6/tools/perf/tests/
Dsymbols.c47 strlcpy(filename, dso_to_test, max_sz); in get_test_dso_filename()
Ddlfilter-test.c241 strlcpy(buf, dirname(path), sz); in get_dlfilters_path()
/Linux-v6.6/lib/
Dstring.c107 size_t strlcpy(char *dest, const char *src, size_t size) in strlcpy() function
118 EXPORT_SYMBOL(strlcpy);
/Linux-v6.6/samples/trace_events/
Dtrace-events-sample.h308 strlcpy(__entry->foo, foo, 10);
/Linux-v6.6/tools/include/nolibc/
Dstring.h220 size_t strlcpy(char *dst, const char *src, size_t size) in strlcpy() function
/Linux-v6.6/include/linux/
Dfortify-string.h222 extern size_t __real_strlcpy(char *, const char *, size_t) __RENAME(strlcpy);
241 __FORTIFY_INLINE size_t strlcpy(char * const POS p, const char * const POS q, size_t size) in strlcpy() function
Dstring.h29 size_t strlcpy(char *, const char *, size_t);
/Linux-v6.6/arch/parisc/kernel/
Dprocessor.c386 strlcpy(cpu_name, per_cpu(cpu_data, 0).dev->name, sizeof(cpu_name)); in show_cpuinfo()
/Linux-v6.6/Documentation/translations/it_IT/process/
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-v6.6/Documentation/process/
Ddeprecated.rst156 strlcpy()
158 strlcpy() reads the entire source buffer first (since the return value
162 though care must be given to any cases where the return value of strlcpy()

12