Bug 250062 - Want ptsname_r
Summary: Want ptsname_r
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: Xin LI
Depends on:
Reported: 2020-10-03 02:54 UTC by Xin LI
Modified: 2020-10-17 04:15 UTC (History)
4 users (show)

See Also:
delphij: exp-run?

Patch for exp-run (4.96 KB, patch)
2020-10-03 03:03 UTC, Xin LI
no flags Details | Diff
Patch for exp-run (4.91 KB, patch)
2020-10-03 05:06 UTC, Xin LI
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Xin LI freebsd_committer 2020-10-03 02:54:04 UTC
The current ptsname(3) implementation is not thread-safe.  Many other operating systems provided ptsname_r(3), and we should have it too.
Comment 1 Xin LI freebsd_committer 2020-10-03 03:00:43 UTC
Proposed implementation at https://reviews.freebsd.org/D26647
Comment 2 Xin LI freebsd_committer 2020-10-03 03:03:10 UTC
Created attachment 218480 [details]
Patch for exp-run
Comment 3 Xin LI freebsd_committer 2020-10-03 03:04:10 UTC
Request for exp-run
Comment 4 Xin LI freebsd_committer 2020-10-03 05:06:18 UTC
Created attachment 218481 [details]
Patch for exp-run
Comment 5 commit-hook freebsd_committer 2020-10-17 04:15:26 UTC
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

  Implement ptsname_r.

  MFC after:	2 weeks
  PR:		250062
  Reviewed by:	jilles, 0mp, Ray <i maskray me>
  Differential Revision:	https://reviews.freebsd.org/D26647