This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/6399] gettid() should have a wrapper
- From: "nmiell at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Sat, 11 Jan 2014 07:41:08 +0000
- Subject: [Bug libc/6399] gettid() should have a wrapper
- Auto-submitted: auto-generated
- References: <bug-6399-131 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=6399
--- Comment #31 from Nicholas Miell <nmiell at gmail dot com> ---
(In reply to Justin Lebar from comment #29)
> They /can/, but are we confusing "can" and "should"?
That's my point. Userspace should be using pthreads. Pthreads operates on
pthread_t, not TIDs. TIDs are an internal kernel implementation detail that
have unfortunately leaked to userspace in a couple of instances
(SIGEV_THREAD_ID, F_SETOWN_EX), and this leakage should be reversed, not
expanded.
The userspace interface exposed by glibc doesn't necessarily match the syscall
interface (c.f. pipe, cpu_set_t, etc.), and there's no reason increase the mess
here.
--
You are receiving this mail because:
You are on the CC list for the bug.