/kernel/linux/linux-6.6/tools/testing/selftests/kvm/lib/ |
H A D | guest_sprintf.c | 226 len = strnlen(s, precision); in guest_vsnprintf()
|
/kernel/linux/linux-6.6/lib/ |
H A D | test_hexdump.c | 201 len, buflen, strnlen(buf, sizeof(buf))); in test_hexdump_overflow()
|
/third_party/eudev/src/libudev/ |
H A D | libudev-util.c | 224 len = strnlen(str, len); in util_replace_whitespace()
|
/third_party/libuv/src/unix/ |
H A D | getaddrinfo.c | 239 len = strnlen(ifname_buf, sizeof(ifname_buf)); in uv_if_indextoname()
|
/third_party/musl/porting/linux/user/src/stdio/ |
H A D | fmemopen.c | 116 else if (*mode == 'a') f->c.len = f->c.pos = strnlen(buf, size); in fmemopen()
|
/third_party/musl/src/stdio/ |
H A D | fmemopen.c | 131 else if (*mode == 'a') f->c.len = f->c.pos = strnlen(buf, size); in fmemopen()
|
/third_party/node/deps/uv/src/unix/ |
H A D | getaddrinfo.c | 236 len = strnlen(ifname_buf, sizeof(ifname_buf)); in uv_if_indextoname()
|
H A D | process.c | 697 k = strnlen(options->file, NAME_MAX + 1); in uv__spawn_resolve_and_spawn() 701 l = strnlen(path, PATH_MAX - 1) + 1; in uv__spawn_resolve_and_spawn()
|
/third_party/optimized-routines/string/ |
H A D | Dir.mk | 41 build/bin/test/strnlen \
|
/kernel/linux/linux-5.10/drivers/target/ |
H A D | target_core_spc.c | 106 strnlen(dev->t10_wwn.vendor, INQUIRY_VENDOR_LEN)); in spc_emulate_inquiry_std() 108 strnlen(dev->t10_wwn.model, INQUIRY_MODEL_LEN)); in spc_emulate_inquiry_std() 110 strnlen(dev->t10_wwn.revision, INQUIRY_REVISION_LEN)); in spc_emulate_inquiry_std() 251 strnlen(dev->t10_wwn.vendor, INQUIRY_VENDOR_LEN)); in spc_emulate_evpd_83()
|
/kernel/linux/linux-6.6/fs/smb/client/ |
H A D | fs_context.c | 1251 if (strnlen(param->string, CIFS_MAX_USERNAME_LEN) > in smb3_fs_context_parse_param() 1288 if (strnlen(param->string, CIFS_MAX_DOMAINNAME_LEN) in smb3_fs_context_parse_param() 1312 if (strnlen(param->string, 1024) >= 65) { in smb3_fs_context_parse_param() 1594 for (i = 0; i < strnlen(nodename, RFC1001_NAME_LEN); i++) in smb3_init_fs_context()
|
H A D | sess.c | 884 len = strnlen(bcc_ptr, bleft); in decode_ascii_ssetup() 901 len = strnlen(bcc_ptr, bleft); in decode_ascii_ssetup() 916 len = strnlen(bcc_ptr, bleft); in decode_ascii_ssetup() 1011 sz += sizeof(__le16) * strnlen(ses->domainName, CIFS_MAX_DOMAINNAME_LEN); in size_of_ntlmssp_blob() 1016 sz += sizeof(__le16) * strnlen(ses->user_name, CIFS_MAX_USERNAME_LEN); in size_of_ntlmssp_blob() 1021 sz += sizeof(__le16) * strnlen(ses->workstation_name, in size_of_ntlmssp_blob()
|
H A D | dir.c | 53 dfsplen = strnlen(tcon->tree_name, MAX_TREE_SIZE + 1); in cifs_build_path_to_root() 95 dfsplen = strnlen(tree, tree_len + 1); in __build_path_from_dentry_optional_prefix()
|
/kernel/linux/linux-6.6/drivers/scsi/libfc/ |
H A D | fc_encode.h | 139 len = strnlen(fc_host_symbolic_name(lport->host), 255); in fc_ct_ns_fill() 149 len = strnlen(fc_host_symbolic_name(lport->host), 255); in fc_ct_ns_fill() 552 strnlen(dev_name(&lport->host->shost_gendev), in fc_ct_ms_fill() 566 strnlen(fc_host_system_hostname(lport->host), in fc_ct_ms_fill()
|
/kernel/linux/linux-5.10/net/netfilter/ |
H A D | x_tables.c | 182 if (strnlen(name, XT_EXTENSION_MAXNAMELEN) == XT_EXTENSION_MAXNAMELEN) in xt_find_match() 212 if (strnlen(name, XT_EXTENSION_MAXNAMELEN) == XT_EXTENSION_MAXNAMELEN) in xt_request_find_match() 231 if (strnlen(name, XT_EXTENSION_MAXNAMELEN) == XT_EXTENSION_MAXNAMELEN) in xt_find_target() 259 if (strnlen(name, XT_EXTENSION_MAXNAMELEN) == XT_EXTENSION_MAXNAMELEN) in xt_request_find_target() 448 if (strnlen(name, size) == size) in xt_check_proc_name() 641 return usersize == kernsize && strnlen(msg, msglen) < msglen; in error_tg_ok()
|
/kernel/linux/linux-6.6/net/netfilter/ |
H A D | x_tables.c | 202 if (strnlen(name, XT_EXTENSION_MAXNAMELEN) == XT_EXTENSION_MAXNAMELEN) in xt_find_match() 232 if (strnlen(name, XT_EXTENSION_MAXNAMELEN) == XT_EXTENSION_MAXNAMELEN) in xt_request_find_match() 251 if (strnlen(name, XT_EXTENSION_MAXNAMELEN) == XT_EXTENSION_MAXNAMELEN) in xt_find_target() 279 if (strnlen(name, XT_EXTENSION_MAXNAMELEN) == XT_EXTENSION_MAXNAMELEN) in xt_request_find_target() 468 if (strnlen(name, size) == size) in xt_check_proc_name() 661 return usersize == kernsize && strnlen(msg, msglen) < msglen; in error_tg_ok()
|
/foundation/communication/dsoftbus/core/bus_center/lnn/net_buscenter/src/ |
H A D | lnn_ip_network_impl.c | 67 if (strnlen(ip, size) == 0 || strnlen(ip, size) == size) { in GetWifiServiceIpAddr()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/cavium/liquidio/ |
H A D | octeon_console.c | 903 if ((sizeof(h->bootcmd) - strnlen(h->bootcmd, sizeof(h->bootcmd))) < in octeon_download_firmware() 909 sizeof(h->bootcmd) - strnlen(h->bootcmd, sizeof(h->bootcmd))); in octeon_download_firmware()
|
/kernel/linux/linux-5.10/drivers/scsi/ |
H A D | scsi_devinfo.c | 460 if (vmax != strnlen(devinfo->vendor, in scsi_dev_info_list_find() 469 mlen = strnlen(devinfo->model, sizeof(devinfo->model)); in scsi_dev_info_list_find()
|
/kernel/linux/linux-5.10/fs/cifs/ |
H A D | dir.c | 63 dfsplen = strnlen(tcon->treeName, MAX_TREE_SIZE + 1); in cifs_build_path_to_root() 106 dfsplen = strnlen(tcon->treeName, MAX_TREE_SIZE + 1); in build_path_from_dentry_optional_prefix()
|
H A D | sess.c | 522 len = strnlen(bcc_ptr, bleft); in decode_ascii_ssetup() 539 len = strnlen(bcc_ptr, bleft); in decode_ascii_ssetup() 554 len = strnlen(bcc_ptr, bleft); in decode_ascii_ssetup() 659 sz += 2 * strnlen(ses->domainName, CIFS_MAX_DOMAINNAME_LEN); in size_of_ntlmssp_blob() 664 sz += 2 * strnlen(ses->user_name, CIFS_MAX_USERNAME_LEN); in size_of_ntlmssp_blob()
|
/kernel/linux/linux-6.6/drivers/scsi/ |
H A D | scsi_devinfo.c | 462 if (vmax != strnlen(devinfo->vendor, in scsi_dev_info_list_find() 471 mlen = strnlen(devinfo->model, sizeof(devinfo->model)); in scsi_dev_info_list_find()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/cavium/liquidio/ |
H A D | octeon_console.c | 902 if ((sizeof(h->bootcmd) - strnlen(h->bootcmd, sizeof(h->bootcmd))) < in octeon_download_firmware() 908 sizeof(h->bootcmd) - strnlen(h->bootcmd, sizeof(h->bootcmd))); in octeon_download_firmware()
|
/third_party/mesa3d/src/util/ |
H A D | ralloc.c | 388 n = strnlen(str, max); in ralloc_strndup() 425 return cat(dest, str, strnlen(str, n)); in ralloc_strncat()
|
/foundation/filemanagement/app_file_service/interfaces/kits/ndk/fileshare/src/ |
H A D | oh_file_share.cpp | 46 auto uriLength = strnlen(policies[i].uri, policies[i].length); in ConvertPolicyInfo()
|