/Zephyr-latest/lib/libc/arcmwdt/ |
D | arcmwdt-string.c | 13 size_t strnlen(const char *s, size_t maxlen) in strnlen() argument 15 return strnlen_s(s, maxlen); in strnlen()
|
/Zephyr-latest/lib/libc/common/source/string/ |
D | strnlen.c | 21 size_t strnlen(const char *s, size_t maxlen) in strnlen() argument 25 while (*s != '\0' && n < maxlen) { in strnlen()
|
/Zephyr-latest/include/zephyr/internal/ |
D | syscall_handler.h | 242 static inline size_t k_usermode_string_nlen(const char *src, size_t maxlen, in k_usermode_string_nlen() argument 245 return arch_user_string_nlen(src, maxlen, err); in k_usermode_string_nlen() 317 char *k_usermode_string_alloc_copy(const char *src, size_t maxlen); 337 int k_usermode_string_copy(char *dst, const char *src, size_t maxlen);
|
/Zephyr-latest/lib/libc/armstdc/include/ |
D | string.h | 19 extern size_t strnlen(const char *s, size_t maxlen);
|
/Zephyr-latest/tests/posix/headers/src/ |
D | stropts_h.c | 28 zassert_true(sizeof(((struct strbuf *)0)->maxlen) > 0, "maxlen size is 0"); in ZTEST()
|
/Zephyr-latest/subsys/net/lib/mqtt_sn/ |
D | mqtt_sn_transport_udp.c | 24 static char *get_ip_str(const struct sockaddr *sa, char *s, size_t maxlen) in get_ip_str() argument 28 inet_ntop(AF_INET, &(((struct sockaddr_in *)sa)->sin_addr), s, maxlen); in get_ip_str() 32 inet_ntop(AF_INET6, &(((struct sockaddr_in6 *)sa)->sin6_addr), s, maxlen); in get_ip_str() 36 strncpy(s, "Unknown AF", maxlen); in get_ip_str()
|
D | mqtt_sn_encoder.c | 34 size_t maxlen = net_buf_simple_max_len(buf); in prepare_message() local 44 if (sz > maxlen) { in prepare_message() 45 LOG_ERR("Message of size %zu does not fit in buffer of length %zu", sz, maxlen); in prepare_message()
|
/Zephyr-latest/include/zephyr/posix/ |
D | stropts.h | 15 int maxlen; member
|
/Zephyr-latest/subsys/net/lib/dns/ |
D | dns_pack.c | 466 static int dns_unpack_name(const uint8_t *msg, int maxlen, const uint8_t *src, in dns_unpack_name() argument 476 if (curr_src < msg || curr_src >= (msg + maxlen)) { in dns_unpack_name() 485 if (curr_src >= (msg + maxlen)) { in dns_unpack_name() 499 if (curr_src >= (msg + maxlen)) { in dns_unpack_name() 504 if (loop_check >= maxlen) { in dns_unpack_name() 518 ((curr_src + label_len) >= (msg + maxlen))) { in dns_unpack_name()
|
/Zephyr-latest/tests/kernel/mem_protect/syscalls/src/ |
D | test_syscalls.h | 17 __syscall size_t string_nlen(char *src, size_t maxlen, int *err);
|
D | main.c | 47 size_t z_impl_string_nlen(char *src, size_t maxlen, int *err) in z_impl_string_nlen() argument 49 return k_usermode_string_nlen(src, maxlen, err); in z_impl_string_nlen() 52 static inline size_t z_vrfy_string_nlen(char *src, size_t maxlen, int *err) in z_vrfy_string_nlen() argument 57 ret = z_impl_string_nlen((char *)src, maxlen, &err_copy); in z_vrfy_string_nlen()
|
/Zephyr-latest/samples/net/sockets/http_server/src/ |
D | ws.c | 203 static int netstats_collect(char *buf, size_t maxlen) in netstats_collect() argument 244 ret = snprintf(buf, maxlen, net_stats_json_template, bytes_recv, bytes_sent, ipv6_recv, in netstats_collect() 246 if (ret >= maxlen) { in netstats_collect()
|
/Zephyr-latest/lib/libc/minimal/include/ |
D | string.h | 27 extern size_t strnlen(const char *s, size_t maxlen);
|
/Zephyr-latest/kernel/ |
D | userspace.c | 864 char *k_usermode_string_alloc_copy(const char *src, size_t maxlen) in k_usermode_string_alloc_copy() argument 870 actual_len = k_usermode_string_nlen(src, maxlen, &err); in k_usermode_string_alloc_copy() 874 if (actual_len == maxlen) { in k_usermode_string_alloc_copy() 897 int k_usermode_string_copy(char *dst, const char *src, size_t maxlen) in k_usermode_string_copy() argument 902 actual_len = k_usermode_string_nlen(src, maxlen, &err); in k_usermode_string_copy() 907 if (actual_len == maxlen) { in k_usermode_string_copy()
|
/Zephyr-latest/subsys/mgmt/osdp/src/ |
D | osdp_common.h | 402 int (*recv)(void *data, uint8_t *buf, int maxlen);
|
/Zephyr-latest/scripts/dts/python-devicetree/src/devicetree/ |
D | edtlib.py | 3083 maxlen = max(len(b1), len(b2)) 3084 return bytes(x & y for x, y in zip(b1.rjust(maxlen, b'\xff'), 3085 b2.rjust(maxlen, b'\xff'))) 3093 maxlen = max(len(b1), len(b2)) 3094 return bytes(x | y for x, y in zip(b1.rjust(maxlen, b'\x00'), 3095 b2.rjust(maxlen, b'\x00')))
|
/Zephyr-latest/subsys/bluetooth/audio/ |
D | mcs.c | 990 uint16_t maxlen; in notify_string() local 995 maxlen = att_mtu - att_header_size; /* Subtract opcode and handle */ in notify_string() 999 MIN(strlen(str), maxlen)); in notify_string()
|
/Zephyr-latest/scripts/dts/ |
D | gen_defines.py | 253 maxlen = max(len(f"DT_{ident}") for ident in idents) 255 out_dt_define(ident, f"DT_{node.z_path_id}", width=maxlen)
|
/Zephyr-latest/scripts/kconfig/ |
D | menuconfig.py | 3214 maxlen = _width(win) - x 3222 win.addnstr(y, x, s, maxlen) 3224 win.addnstr(y, x, s, maxlen, attr)
|
/Zephyr-latest/lib/os/ |
D | cbprintf_complete.c | 25 size_t strnlen(const char *s, size_t maxlen);
|
/Zephyr-latest/doc/releases/ |
D | migration-guide-3.6.rst | 101 parameter ``maxlen``, referring to the maximum length of the parameter ``str``.
|