Files
qemu-qemu-1/util
Bin Guo 66ac993bda util/cutils: drop qemu_strnlen() in favor of strnlen()
There are only three call sites, and strnlen() is available on all
supported platforms (POSIX.1-2008, Windows via UCRT, MinGW).  Remove
the hand-rolled wrapper and use the standard function directly.

While here, align bsd-user/uaccess.c to use size_t for max_len/len,
matching linux-user/uaccess.c and eliminating a signed/unsigned mismatch.

Also remove the stale qemu_strnlen() entry from docs/devel/style.rst.

Suggested-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Bin Guo <guobin@linux.alibaba.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Warner Losh <imp@bsdimp.com>
Message-ID: <20260530062816.59206-1-guobin@linux.alibaba.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>
2026-06-18 14:27:21 +02:00
..
2023-12-19 19:03:38 +01:00
2026-01-22 11:23:31 +00:00
2025-01-16 20:57:17 -08:00
2026-04-29 11:41:00 +10:00
2026-04-29 11:41:00 +10:00
2026-04-22 12:51:51 +04:00
2025-10-01 08:33:24 +02:00
2025-03-10 17:07:16 +08:00
2025-01-29 11:43:04 -03:00
2026-04-23 12:27:27 +02:00
2023-08-31 19:47:43 +02:00
2023-11-15 12:06:05 +03:00
2025-12-27 10:11:12 +01:00
2026-04-22 12:51:51 +04:00
2023-11-03 09:20:31 +01:00