[Bug 267551] [PATCH] intro(3): Add `libstdthread` ISO C11 library
Date: Thu, 03 Nov 2022 18:39:54 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=267551 Bug ID: 267551 Summary: [PATCH] intro(3): Add `libstdthread` ISO C11 library Product: Documentation Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Manual Pages Assignee: bugs@FreeBSD.org Reporter: alois+freebsd@aloisklink.com CC: doc@FreeBSD.org Created attachment 237851 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=237851&action=edit `git format-patch` patch file Document `libstdthreads` (aka the ISO C11 `<threads.h>` library) in the intro(3) manpage. 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). --- My patch is also available on GitHub if that's easier, or if you'd prefer me to make a PR there for CI to run, see https://github.com/aloisklink/freebsd-src/commit/ed23dd8e5012251c2467ecc8dd1347646d5b54bf https://www.freebsd.org/cgi/man.cgi?query=thrd_create is the documentation for `libstdthreads` in case that helps! Also, apologies if the formatting on this description is a bit weird, for some reason the description **Preview** window on Bugzilla is blank for me. I can't see any JavaScript errors in my browser, but I have noticed that my fetch requests to https://bugs.freebsd.org/bugzilla/jsonrpc.cgi for method `Bug.render_comment` seem to be returning `{result: {html: null}, version: "1.1"}`, so maybe it's a server-side bug. -- You are receiving this mail because: You are the assignee for the bug.