Home
last modified time | relevance | path

Searched refs:maxlen (Results 1 – 21 of 21) sorted by relevance

/Zephyr-latest/lib/libc/arcmwdt/
Darcmwdt-string.c13 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/
Dstrnlen.c21 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/
Dsyscall_handler.h242 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/
Dstring.h19 extern size_t strnlen(const char *s, size_t maxlen);
/Zephyr-latest/tests/posix/headers/src/
Dstropts_h.c28 zassert_true(sizeof(((struct strbuf *)0)->maxlen) > 0, "maxlen size is 0"); in ZTEST()
/Zephyr-latest/subsys/net/lib/mqtt_sn/
Dmqtt_sn_transport_udp.c24 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()
Dmqtt_sn_encoder.c34 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/
Dstropts.h15 int maxlen; member
/Zephyr-latest/subsys/net/lib/dns/
Ddns_pack.c466 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/
Dtest_syscalls.h17 __syscall size_t string_nlen(char *src, size_t maxlen, int *err);
Dmain.c47 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/
Dws.c203 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/
Dstring.h27 extern size_t strnlen(const char *s, size_t maxlen);
/Zephyr-latest/kernel/
Duserspace.c864 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/
Dosdp_common.h402 int (*recv)(void *data, uint8_t *buf, int maxlen);
/Zephyr-latest/scripts/dts/python-devicetree/src/devicetree/
Dedtlib.py3083 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/
Dmcs.c990 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/
Dgen_defines.py253 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/
Dmenuconfig.py3214 maxlen = _width(win) - x
3222 win.addnstr(y, x, s, maxlen)
3224 win.addnstr(y, x, s, maxlen, attr)
/Zephyr-latest/lib/os/
Dcbprintf_complete.c25 size_t strnlen(const char *s, size_t maxlen);
/Zephyr-latest/doc/releases/
Dmigration-guide-3.6.rst101 parameter ``maxlen``, referring to the maximum length of the parameter ``str``.