/foundation/communication/dsoftbus/core/bus_center/ipc/standard/src/ |
H A D | lnn_bus_center_ipc.cpp | 149 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,
|
/third_party/ltp/testcases/kernel/crypto/ |
H A D | crypto_user01.c | 39 for (i = strnlen(value, vlen); i < vlen; i++) { in do_check_for_leaks()
|
/third_party/musl/porting/liteos_m/kernel/include/ |
H A D | string.h | 67 size_t strnlen (const char *, size_t);
|
/third_party/musl/porting/liteos_a/user/src/misc/ |
H A D | syslog.c | 68 size_t n = strnlen(ident, sizeof log_ident - 1); in openlog()
|
/third_party/musl/src/misc/ |
H A D | syslog.c | 69 size_t n = strnlen(ident, sizeof log_ident - 1); in openlog()
|
/third_party/musl/porting/liteos_a/kernel/include/ |
H A D | string.h | 69 size_t strnlen (const char *, size_t);
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/app/src/session_manager/ |
H A D | route_head_handler_impl.cpp | 276 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()
|
/third_party/musl/src/network/ |
H A D | lookup_name.c | 34 if (strnlen(host, 255)-1 >= 254 || mbstowcs(0, host, 0) == -1) return 0; in is_valid_hostname() 248 while (strnlen(queryName, MAX_NAME_LENGTH) != 0 && cname_count < MAX_QUERY_SIZE) { in name_from_dns() 445 size_t l = strnlen(name, 255); in lookup_name_ext()
|
/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()
|
H A D | process.c | 717 k = strnlen(options->file, NAME_MAX + 1); in uv__spawn_resolve_and_spawn() 721 l = strnlen(path, PATH_MAX - 1) + 1; in uv__spawn_resolve_and_spawn()
|
/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()
|
H A D | internal.h | 354 size_t strnlen(const char* s, size_t maxlen);
|
/third_party/optimized-routines/string/ |
H A D | Dir.mk | 41 build/bin/test/strnlen \
|
/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()
|
/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()
|
/third_party/elfutils/lib/ |
H A D | eu-config.h | 144 ({ const char *_s = (str); obstack_copy0 (ob, _s, strnlen (_s, n)); })
|
/third_party/mesa3d/src/mesa/main/ |
H A D | errors.c | 278 size_t len = strnlen(msg, MAX_DEBUG_MESSAGE_LENGTH); in _mesa_gl_debug()
|
/third_party/libfuse/example/ |
H A D | hello_ll_uds.c | 177 if (strnlen(socket_path, sizeof(addr.sun_path)) >= in create_socket()
|
/foundation/communication/wifi/wifi/frameworks/native/c_adapter/src/ |
H A D | wifi_c_device.cpp | 164 if (strnlen(config->ssid, WIFI_MAX_SSID_LEN) == WIFI_MAX_SSID_LEN) { in ConvertDeviceConfigFromC() 174 if (strnlen(config->preSharedKey, WIFI_MAX_KEY_LEN) == WIFI_MAX_KEY_LEN) { in ConvertDeviceConfigFromC()
|
/third_party/musl/porting/linux/user/src/network/ |
H A D | lookup_name.c | 34 if (strnlen(host, 255)-1 >= 254 || mbstowcs(0, host, 0) == -1) return 0; in is_valid_hostname() 386 size_t l = strnlen(name, 255); in lookup_name_ext()
|