Files
semi-libc/src/linux
Rich Felker d49cf07541 add gettid function
this is a prerequisite for addition of other interfaces that use
kernel tids, including futex and SIGEV_THREAD_ID.

there is some ambiguity as to whether the semantic return type should
be int or pid_t. either way, futex API imposes a contract that the
values fit in int (excluding some upper reserved bits). glibc used
pid_t, so in the interest of not having gratuitous mismatch (the
underlying types are the same anyway), pid_t is used here as well.

while conceptually this is a syscall, the copy stored in the thread
structure is always valid in all contexts where it's valid to call
libc functions, so it's used to avoid the syscall.
2020-08-17 20:12:53 -04:00
..
2018-09-12 14:34:37 -04:00
2019-06-14 17:13:05 -04:00
2012-06-13 11:04:31 -04:00
2011-04-13 14:55:26 -04:00
2018-02-22 19:34:58 -05:00
2020-08-17 20:12:53 -04:00
2012-11-18 19:31:58 -05:00
2012-11-18 19:31:58 -05:00
2018-06-20 21:35:45 -04:00
2011-04-05 12:32:10 -04:00
2017-07-04 17:53:58 -04:00
2012-09-08 00:40:37 -04:00
2018-09-12 14:34:37 -04:00
2018-09-12 14:34:37 -04:00
2012-07-23 16:50:56 -04:00
2018-09-12 14:34:37 -04:00
2012-09-08 01:03:01 -04:00
2012-06-19 15:32:13 -04:00
2012-07-23 16:50:56 -04:00
2012-08-15 08:31:44 -04:00