The current ptsname(3) implementation is not thread-safe. Many other operating systems provided ptsname_r(3), and we should have it too.
Proposed implementation at https://reviews.freebsd.org/D26647
Created attachment 218480 [details] Patch for exp-run
Request for exp-run
Created attachment 218481 [details] Patch for exp-run
A commit references this bug: Author: delphij Date: Sat Oct 17 04:14:40 UTC 2020 New revision: 366781 URL: https://svnweb.freebsd.org/changeset/base/366781 Log: Implement ptsname_r. MFC after: 2 weeks PR: 250062 Reviewed by: jilles, 0mp, Ray <i maskray me> Differential Revision: https://reviews.freebsd.org/D26647 Changes: head/include/stdlib.h head/lib/libc/stdlib/Makefile.inc head/lib/libc/stdlib/Symbol.map head/lib/libc/stdlib/ptsname.3 head/lib/libc/stdlib/ptsname.c