summaryrefslogtreecommitdiffstats
path: root/contrib/netbsd-tests/lib/libc/string/t_strchr.c
diff options
context:
space:
mode:
authorvangyzen <vangyzen@FreeBSD.org>2016-12-13 23:34:07 +0000
committervangyzen <vangyzen@FreeBSD.org>2016-12-13 23:34:07 +0000
commitf1a55d2a3f0f502f1b9f16b4d166349ecf79664d (patch)
tree945af3134d118911e02cf4f89d57e705d6f36960 /contrib/netbsd-tests/lib/libc/string/t_strchr.c
parent33d63662f28bf596d2c89c3428e2d96264ad6c4c (diff)
downloadFreeBSD-src-f1a55d2a3f0f502f1b9f16b4d166349ecf79664d.zip
FreeBSD-src-f1a55d2a3f0f502f1b9f16b4d166349ecf79664d.tar.gz
MFC r309460
thr_set_name(): silently truncate the given name as needed Instead of failing with ENAMETOOLONG, which is swallowed by pthread_set_name_np() anyway, truncate the given name to MAXCOMLEN+1 bytes. This is more likely what the user wants, and saves the caller from truncating it before the call (which was the only recourse). Polish pthread_set_name_np(3) and add a .Xr to thr_set_name(2) so the user might find the documentation for this behavior. Sponsored by: Dell EMC
Diffstat (limited to 'contrib/netbsd-tests/lib/libc/string/t_strchr.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud