Home
last modified time | relevance | path

Searched refs:strnlen (Results 1 - 25 of 49) sorted by relevance

12

/foundation/distributeddatamgr/kv_store/frameworks/native/kv_store/src/kvstore_common/
H A Dkvstore_common.c41 size_t valueLen = strnlen(value, MAX_VALUE_LEN); in IsValidValue()
53 size_t keyLen = strnlen(key, MAX_KEY_LEN); in IsValidKey()
113 size_t keyLen = strnlen(key, MAX_KEY_LEN); in AddKVCache()
114 size_t valueLen = strnlen(value, MAX_VALUE_LEN); in AddKVCache()
171 size_t valueLen = strnlen(item->value, MAX_VALUE_LEN); in GetValueByCache()
/foundation/communication/dsoftbus/core/common/dfx/event/src/convert/
H A Dsoftbus_event_converter.h78 if (value == NULL || value[0] == '\0' || strnlen(value, PARAM_STRING_VALUE_MAX_LEN) == PARAM_STRING_VALUE_MAX_LEN) { in AssignerString()
89 if (value == NULL || value[0] == '\0' || strnlen(value, in AssignerLongString()
101 if (value == NULL || value[0] == '\0' || strnlen(value, PARAM_STRING_VALUE_MAX_LEN) == PARAM_STRING_VALUE_MAX_LEN) { in AssignerAnonymizeString()
/foundation/communication/dsoftbus/core/bus_center/utils/src/
H A Dlnn_connection_addr_utils.c275 if (strnlen(addr->info.ip.ip, IP_STR_MAX_LEN) == 0 || in LnnIsConnectionAddrInvalid()
276 strnlen(addr->info.ip.ip, IP_STR_MAX_LEN) == IP_STR_MAX_LEN) { in LnnIsConnectionAddrInvalid()
282 if (strnlen(addr->info.br.brMac, BT_MAC_LEN) == 0 || in LnnIsConnectionAddrInvalid()
283 strnlen(addr->info.br.brMac, BT_MAC_LEN) == BT_MAC_LEN) { in LnnIsConnectionAddrInvalid()
289 if (strnlen(addr->info.ble.bleMac, BT_MAC_LEN) == 0 || in LnnIsConnectionAddrInvalid()
290 strnlen(addr->info.ble.bleMac, BT_MAC_LEN) == BT_MAC_LEN) { in LnnIsConnectionAddrInvalid()
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/properties/
H A Dxattr.cpp35 bool isIllegalKey = strnlen(key, MAX_XATTR_SIZE + 1) > MAX_XATTR_SIZE; in IsIllegalXattr()
39 bool isIllegalValue = strnlen(value, MAX_XATTR_SIZE + 1) > MAX_XATTR_SIZE; in IsIllegalXattr()
95 if (setxattr(path.get(), key.get(), value.get(), strnlen(value.get(), MAX_XATTR_SIZE), 0) < 0) { in SetSync()
215 if (setxattr(path.c_str(), key.c_str(), value.c_str(), strnlen(value.c_str(), MAX_XATTR_SIZE), 0) < 0) { in SetAsync()
/foundation/communication/dsoftbus/core/transmission/trans_channel/common/src/
H A Dtrans_channel_limit.c102 len = strnlen(g_noPkgNameSessionWhiteList[index], SESSION_NAME_SIZE_MAX); in IsNoPkgNameSession()
/foundation/filemanagement/dfs_service/services/cloudsyncservice/src/transport/
H A Dmessage_handler.cpp113 srcNetworkId_ = string(deviceInfo->sourceNetworkId, strnlen(deviceInfo->sourceNetworkId, NETWORK_ID_SIZE_MAX)); in UnPackData()
114 dstNetworkId_ = string(deviceInfo->tartgeNetworkId, strnlen(deviceInfo->tartgeNetworkId, NETWORK_ID_SIZE_MAX)); in UnPackData()
/device/soc/hisilicon/hi3861v100/sdk_liteos/platform/os/Huawei_LiteOS/components/lib/libc/musl/include/
H A Dstring.h519 * @see strnlen | wcslen
644 * The strnlen() function returns the number of characters in the string
646 * most maxlen. In doing this, strnlen() looks only at the first maxlen
655 * @retval #size_t The strnlen() function returns the number of characters in the string
663 size_t strnlen (const char *, size_t);
/foundation/communication/dsoftbus/sdk/bus_center/service/src/
H A Dclient_bus_center.c106 (strnlen((char *)(info->capabilityData), MAX_CAPABILITYDATA_LEN) == MAX_CAPABILITYDATA_LEN))) { in PublishInfoCheck()
140 (strnlen((char *)(info->capabilityData), MAX_CAPABILITYDATA_LEN) == MAX_CAPABILITYDATA_LEN))) { in SubscribeInfoCheck()
555 size_t len = strnlen(callerId, CALLER_ID_MAX_LEN); in ShiftLNNGear()
561 strnlen(targetNetworkId, NETWORK_ID_BUF_LEN) != NETWORK_ID_BUF_LEN - 1) { in ShiftLNNGear()
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/osal/linux/himedia/
H A Dbase.c315 pdrv = kzalloc(sizeof(struct himedia_driver) + strnlen(name, HIMIDIA_MAX_DEV_NAME_LEN), GFP_KERNEL); in himedia_driver_register()
321 if (strncpy_s(pdrv->name, HIMIDIA_MAX_DEV_NAME_LEN, name, strnlen(name, HIMIDIA_MAX_DEV_NAME_LEN - 1)) != EOK) { in himedia_driver_register()
/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/tests/kutf/
H A Dkutf_helpers_user.c341 int len_remain = strnlen(recv_str, recv_sz); in kutf_helper_receive_named_val()
356 if (strnlen(recv_str, recv_sz) != 0) { in kutf_helper_receive_named_val()
/foundation/communication/wifi/wifi/frameworks/native/c_adapter/src/
H A Dwifi_c_hotspot.cpp101 if (strnlen(config->preSharedKey, WIFI_MAX_KEY_LEN) == WIFI_MAX_KEY_LEN) { in GetHotspotConfigFromC()
105 if (strnlen(config->ipAddress, WIFI_MAX_IPV4_LEN) == WIFI_MAX_IPV4_LEN) { in GetHotspotConfigFromC()
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/osal/linux/
H A Dosal_string.c90 return strnlen(s, count); in osal_strnlen()
/device/soc/rockchip/common/vendor/drivers/gpu/arm/midgard/ipa/
H A Dmali_kbase_ipa_simple.c177 if (!strnlen(model_data->tz_name, sizeof(model_data->tz_name))) { in kbase_simple_power_model_recalculate()
H A Dmali_kbase_ipa_debugfs.c80 len = strnlen(param->addr.str, param->size - 1) + 1; in param_string_get()
/device/soc/rockchip/common/kernel/drivers/gpu/arm/midgard/ipa/
H A Dmali_kbase_ipa_simple.c189 if (!strnlen(model_data->tz_name, sizeof(model_data->tz_name))) { in kbase_simple_power_model_recalculate()
H A Dmali_kbase_ipa_debugfs.c82 len = strnlen(param->addr.str, param->size - 1) + 1; in param_string_get()
/foundation/communication/dsoftbus/core/common/dfx/hidumper_adapter/
H A Dsoftbus_hidumper_nstack.c39 size_t dataLen = strnlen(data, SOFTBUF_NSTACK_DUMP_BUF_LEN); in SoftBufNstackDumpFunc()
/foundation/communication/dsoftbus/core/bus_center/ipc/standard/src/
H A Dlnn_bus_center_ipc.cpp149 uint32_t pkgNameLen = strnlen(pkgName, PKG_NAME_SIZE_MAX); in OnRefreshDeviceFound()
382 LNN_CHECK_AND_RETURN_RET_LOGE(strnlen(pkgName, PKG_NAME_SIZE_MAX) < PKG_NAME_SIZE_MAX, SOFTBUS_INVALID_PKGNAME,
402 LNN_CHECK_AND_RETURN_RET_LOGE(strnlen(pkgName, PKG_NAME_SIZE_MAX) < PKG_NAME_SIZE_MAX, SOFTBUS_INVALID_PKGNAME,
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/mpp/component/hifb/src/init/linux/
H A Dhifb_init.c100 len = strnlen(g_vdata, (VSYNC_LEN - 1)) + 1; in vsync_read()
214 len = strnlen(g_nowdata, (VSYNC_LEN - 1)) + 1; in pts_read()
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/app/src/session_manager/
H A Droute_head_handler_impl.cpp276 std::string(devicePair->sourceId, strnlen(devicePair->sourceId, SessionDevicePair::MAX_DEVICE_ID)); in UnPackDataBody()
278 std::string(devicePair->targetId, strnlen(devicePair->targetId, SessionDevicePair::MAX_DEVICE_ID)); in UnPackDataBody()
/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/ipa/
H A Dmali_kbase_ipa_simple.c306 if (!strnlen(model_data->tz_name, sizeof(model_data->tz_name))) { in kbase_simple_power_model_recalculate()
H A Dmali_kbase_ipa_debugfs.c90 len = strnlen(param->addr.str, param->size - 1) + 1; in param_string_get()
/device/soc/rockchip/common/vendor/drivers/gpu/arm/bifrost/ipa/
H A Dmali_kbase_ipa_simple.c283 if (!strnlen(model_data->tz_name, sizeof(model_data->tz_name))) { in kbase_simple_power_model_recalculate()
H A Dmali_kbase_ipa_debugfs.c92 len = strnlen(param->addr.str, param->size - 1) + 1; in param_string_get()
/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()

Completed in 14 milliseconds

12