This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/6399] gettid() should have a wrapper


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]