Home
last modified time | relevance | path

Searched refs:strnlen (Results 176 - 200 of 510) sorted by relevance

12345678910>>...21

/kernel/linux/linux-6.6/tools/testing/selftests/kvm/lib/
H A Dguest_sprintf.c226 len = strnlen(s, precision); in guest_vsnprintf()
/kernel/linux/linux-6.6/lib/
H A Dtest_hexdump.c201 len, buflen, strnlen(buf, sizeof(buf))); in test_hexdump_overflow()
/third_party/eudev/src/libudev/
H A Dlibudev-util.c224 len = strnlen(str, len); in util_replace_whitespace()
/third_party/libuv/src/unix/
H A Dgetaddrinfo.c239 len = strnlen(ifname_buf, sizeof(ifname_buf)); in uv_if_indextoname()
/third_party/musl/porting/linux/user/src/stdio/
H A Dfmemopen.c116 else if (*mode == 'a') f->c.len = f->c.pos = strnlen(buf, size); in fmemopen()
/third_party/musl/src/stdio/
H A Dfmemopen.c131 else if (*mode == 'a') f->c.len = f->c.pos = strnlen(buf, size); in fmemopen()
/third_party/node/deps/uv/src/unix/
H A Dgetaddrinfo.c236 len = strnlen(ifname_buf, sizeof(ifname_buf)); in uv_if_indextoname()
H A Dprocess.c697 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 DDir.mk41 build/bin/test/strnlen \
/kernel/linux/linux-5.10/drivers/target/
H A Dtarget_core_spc.c106 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 Dfs_context.c1251 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 Dsess.c884 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 Ddir.c53 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 Dfc_encode.h139 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 Dx_tables.c182 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 Dx_tables.c202 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 Dlnn_ip_network_impl.c67 if (strnlen(ip, size) == 0 || strnlen(ip, size) == size) { in GetWifiServiceIpAddr()
/kernel/linux/linux-5.10/drivers/net/ethernet/cavium/liquidio/
H A Docteon_console.c903 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 Dscsi_devinfo.c460 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 Ddir.c63 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 Dsess.c522 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 Dscsi_devinfo.c462 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 Docteon_console.c902 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 Dralloc.c388 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 Doh_file_share.cpp46 auto uriLength = strnlen(policies[i].uri, policies[i].length); in ConvertPolicyInfo()

Completed in 31 milliseconds

12345678910>>...21