Home
last modified time | relevance | path

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

123

/third_party/alsa-utils/alsactl/
Dinit_sysfs.c41 strlcpy(sysfs_path, env, sizeof(sysfs_path)); in sysfs_init()
44 strlcpy(sysfs_path, "/sys", sizeof(sysfs_path)); in sysfs_init()
47 strlcpy(sysfs_test, sysfs_path, sizeof(sysfs_test)); in sysfs_init()
50 strlcpy(sysfs_test, sysfs_path, sizeof(sysfs_test)); in sysfs_init()
85 sysfs_len = strlcpy(path_full, sysfs_path, sizeof(path_full)); in sysfs_attr_get_value()
105 strlcpy(attr->path, path, sizeof(attr->path)); in sysfs_attr_get_value()
126 strlcpy(attr->value_local, &pos[1], sizeof(attr->value_local)); in sysfs_attr_get_value()
158 strlcpy(attr->value_local, value, sizeof(attr->value_local)); in sysfs_attr_get_value()
Dinit_parse.c956 strlcpy(res, attr, ressize); in get_key_attribute()
1049 strlcpy(temp, head+2, sizeof(temp)); in apply_format()
1050 strlcpy(head+1, temp, maxsize); in apply_format()
1068 strlcpy(temp, head+2, sizeof(temp)); in apply_format()
1069 strlcpy(head+1, temp, maxsize); in apply_format()
1090 strlcpy(temp, tail, sizeof(temp)); in apply_format()
1136 strlcpy(temp2, cpos, sizeof(temp2)); in apply_format()
1166 size = strlcpy(temp2, value, sizeof(temp2)); in apply_format()
1257 strlcpy(result, res, ressize); in run_program1()
1329 strlcpy(result, value, sizeof(result)); in parse_line()
[all …]
Dinit_utils_run.c46 strlcpy(arg, command0, sizeof(arg)); in run_program0()
87 strlcpy(program, "/lib/alsa/", sizeof(program)); in run_program0()
Dinit_sysdeps.c21 static size_t strlcpy(char *dst, const char *src, size_t size) in strlcpy() function
/third_party/cups-filters/cupsfilters/
Dppdgenerator.c176 strlcpy(char *dst, /* O - Destination string */ in strlcpy() function
270 strlcpy(buf, temp, (size_t)(bufend - buf + 1)); in _cupsStrFormatd()
938 strlcpy(ptr + 1, start, strlen(start) + 1); in load_opt_strings_catalog()
942 strlcpy(human_readable, start, strlen(start) + 1); in load_opt_strings_catalog()
1278 strlcpy(ppdname, psname, PPD_MAX_NAME); in generate_sizes()
1280 strlcpy(ppdname, "Unknown", PPD_MAX_NAME); in generate_sizes()
1282 strlcpy(ppdname, "Unknown", PPD_MAX_NAME); in generate_sizes()
1289 strlcpy(ppdname, psname, PPD_MAX_NAME); in generate_sizes()
1291 strlcpy(ppdname, "Unknown", PPD_MAX_NAME); in generate_sizes()
1346 strlcpy(temp.media, psname, sizeof(temp.media)); in generate_sizes()
[all …]
/third_party/musl/libc-test/src/functional/
Dstring.c83 TEST(i, strlcpy(b, "abc", sizeof b - 1), 3, "length %d != %d"); in main()
88 TEST(i, strlcpy(b, "abc", 2), 3, "length %d != %d"); in main()
93 TEST(i, strlcpy(b, "abc", 3), 3, "length %d != %d"); in main()
96 TEST(i, strlcpy(NULL, "abc", 0), 3, "length %d != %d"); in main()
/third_party/mksh/
Dstrlcpy.c28 #undef strlcpy
30 strlcpy(char *dst, const char *src, size_t siz) in strlcpy() function
DBUILD.gn46 "strlcpy.c",
160 "strlcpy.c",
/third_party/cups-filters/filter/foomatic-rip/
Dpostscript.c680 strlcpy(optionname, p, 128); in _print_ps()
683 strlcpy(value, p, 128); in _print_ps()
690 strlcpy(optionname, p, 128); in _print_ps()
698 strlcpy(value, p, 128); in _print_ps()
799 strlcpy(value, tmp->data, 128); in _print_ps()
806 strlcpy(value, option_get_value(o, optset), 128); in _print_ps()
822 strlcpy(value, tmp->data, 128); in _print_ps()
860 strlcpy(value, tmp->data, 128); in _print_ps()
Dfoomaticrip.c194 strlcpy(cupsfilterpath, value, PATH_MAX); in config_set_option()
196 strlcpy(modern_shell, value, 32); in config_set_option()
198 strlcpy(gspath, value, PATH_MAX); in config_set_option()
200 strlcpy(echopath, value, PATH_MAX); in config_set_option()
329 strlcpy(colorprofile, value, 128); in process_cmdline_options()
770 strlcpy(job->user, passwd->pw_name, 128); in create_job()
1034 strlcpy(cupsfilter, tmp, 256); in main()
1060 strlcpy(gstoraster, tmp, 256); in main()
Dspooler.c179 strlcpy(configfile, user_default_path, 1024); in find_default_printer()
183 strlcpy(configfile, user_default_path, 1024); in find_default_printer()
201 strlcpy(user_default_path, getenv("HOME"), 256); in init_direct()
Dutil.c169 size_t strlcpy(char *dest, const char *src, size_t size) in strlcpy() function
322 strlcpy(filepath, path, PATH_MAX); in find_in_path()
328 strlcpy(found_in, path, PATH_MAX); in find_in_path()
362 strlcpy(tmp, path, len); in make_absolute_path()
366 strlcpy(path, cwd, len); in make_absolute_path()
/third_party/lwip/src/netif/ppp/
Dauth.c464 strlcpy(ppp_settings.user, u, sizeof(ppp_settings.user));
468 strlcpy(ppp_settings.passwd, p, sizeof(ppp_settings.passwd));
1378 strlcpy(our_name, hostname, sizeof(our_name)); in auth_check_options()
1382 strlcpy(ppp_settings.user, our_name, sizeof(ppp_settings.user)); in auth_check_options()
1764 strlcpy(passwd, secret, MAXSECRETLEN);
1933 strlcpy(secbuf, ppp_settings.passwd, sizeof(secbuf)); in get_secret()
2000 strlcpy(secret, ppp_settings.passwd, MAXWORDLEN);
2409 strlcpy(atfile, word+1, sizeof(atfile));
2422 strlcpy(lsecret, word, sizeof(lsecret));
2451 strlcpy(secret, lsecret, MAXWORDLEN);
/third_party/mesa3d/src/util/
Dos_misc.c181 p += strlcpy(p, "mesa.", end - p); in os_get_android_option()
182 p += strlcpy(p, name, end - p); in os_get_android_option()
/third_party/FreeBSD/sys/compat/linuxkpi/common/include/linux/
Dstring.h40 extern size_t strlcpy(char *dest, const char *src, size_t size);
/third_party/musl/porting/liteos_a/kernel/src/string/
Dstrlcat.c8 return l + strlcpy(d+l, s, n-l); in strlcat()
Dstrlcpy.c11 size_t strlcpy(char *d, const char *s, size_t n) in strlcpy() function
/third_party/musl/src/string/
Dstrlcat.c8 return l + strlcpy(d+l, s, n-l); in strlcat()
Dstrlcpy.c11 size_t strlcpy(char *d, const char *s, size_t n) in strlcpy() function
/third_party/selinux/libselinux/src/
Dselinux_internal.c7 size_t strlcpy(char *dest, const char *src, size_t size) in strlcpy() function
Dcanonicalize_context.c36 if (strlcpy(buf, con, size) >= size) { in security_canonicalize_context_raw()
Dselinux_internal.h102 size_t strlcpy(char *dest, const char *src, size_t size);
/third_party/musl/porting/linux/user/include/fortify/
Dstring.h140 size_t strlcpy(char *const dest __DIAGNOSE_PASS_OBJECT_SIZE, const char *src, size_t size) in strlcpy() function
148 return __DIAGNOSE_CALL_BYPASSING_FORTIFY(strlcpy)(dest, src, size); in strlcpy()
/third_party/musl/include/fortify/linux/
Dstring.h140 size_t strlcpy(char *const dest __DIAGNOSE_PASS_OBJECT_SIZE, const char *src, size_t size) in strlcpy() function
148 return __DIAGNOSE_CALL_BYPASSING_FORTIFY(strlcpy)(dest, src, size); in strlcpy()
/third_party/musl/porting/liteos_m/user/include/
Dstring.h84 size_t strlcpy (char *, const char *, size_t);

123