Principles for API sources
Joseph Myers
joseph@codesourcery.com
Mon Nov 16 10:47:00 GMT 2015
On Sat, 14 Nov 2015, Carlos O'Donell wrote:
> Given the caveat that some specific syscalls are simply not useful and
> or conflict with existing APIs and the best example I have is the often
> requested gettid() which I think *could* exist, but we need an API design
> review to harmonize this with existing pid_t based interfaces before
> letting users use it and get confused.
gettid and pthread_gettid_np are, I think, clearly useful because of other
kernel APIs working with tids. It's things like set_thread_area and
set_robust_list that should likely be excluded for conflicting with glibc.
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Libc-alpha
mailing list