git: d96d13cfa523 - stable/12 - intro.3: Document 'libstdthreads' (the ISO C11 '<threads.h>' library).

From: Gordon Bergling <gbe_at_FreeBSD.org>
Date: Thu, 10 Nov 2022 06:09:52 UTC
The branch stable/12 has been updated by gbe (doc committer):

URL: https://cgit.FreeBSD.org/src/commit/?id=d96d13cfa5232e13143f510c931bac2c152a5e54

commit d96d13cfa5232e13143f510c931bac2c152a5e54
Author:     Gordon Bergling <gbe@FreeBSD.org>
AuthorDate: 2022-11-07 10:34:00 +0000
Commit:     Gordon Bergling <gbe@FreeBSD.org>
CommitDate: 2022-11-10 06:09:32 +0000

    intro.3: Document 'libstdthreads' (the ISO C11 '<threads.h>' library).
    
    It's still relatively uncommon to see C11 '<threads.h>' being used,
    but it's worth documenting, especially since FreeBSD requires a
    different library for C11 threads  compared to glibc (part of '-lpthread')
    or musl libc  (included by default).
    
    PR:     267551
    Submitted by:   Alois Klink <alois plus freebsd at aloisklink dot com>
    Reviewed by:    pauamma
    Differential Revision:  https://reviews.freebsd.org/D37284
    
    (cherry picked from commit 8a220816c72261efce304568498279fdda6b57cb)
---
 share/man/man3/intro.3 | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/share/man/man3/intro.3 b/share/man/man3/intro.3
index d6dff3ab3782..aeb546ef4cad 100644
--- a/share/man/man3/intro.3
+++ b/share/man/man3/intro.3
@@ -28,7 +28,7 @@
 .\"     @(#)intro.3	8.1 (Berkeley) 6/5/93
 .\" $FreeBSD$
 .\"
-.Dd December 18, 2021
+.Dd November 7, 2022
 .Dt INTRO 3
 .Os
 .Sh NAME
@@ -231,6 +231,13 @@ See
 The POSIX threads library.
 See
 .Xr pthread 3 .
+.It Em libstdthreads
+.Pq Fl l Ns Ar stdthreads
+The ISO C11 standard
+.In threads.h
+library.
+See
+.Xr thrd_create 3 .
 .It Em libsysdecode
 .Pq Fl l Ns Ar sysdecode
 The system argument decoding library.