mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
Linux: set_tid_address syscall number is always available
Due to the built-in tables, __NR_set_tid_address is always defined. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
This commit is contained in:
@ -25,7 +25,6 @@
|
|||||||
int
|
int
|
||||||
setup_thread (struct database_dyn *db)
|
setup_thread (struct database_dyn *db)
|
||||||
{
|
{
|
||||||
#ifdef __NR_set_tid_address
|
|
||||||
/* Only supported when NPTL is used. */
|
/* Only supported when NPTL is used. */
|
||||||
char buf[100];
|
char buf[100];
|
||||||
if (confstr (_CS_GNU_LIBPTHREAD_VERSION, buf, sizeof (buf)) >= sizeof (buf)
|
if (confstr (_CS_GNU_LIBPTHREAD_VERSION, buf, sizeof (buf)) >= sizeof (buf)
|
||||||
@ -42,7 +41,6 @@ setup_thread (struct database_dyn *db)
|
|||||||
So, set the field to a nonzero value which indicates that nscd
|
So, set the field to a nonzero value which indicates that nscd
|
||||||
is certainly running and clients can skip the test. */
|
is certainly running and clients can skip the test. */
|
||||||
return db->head->nscd_certainly_running = 1;
|
return db->head->nscd_certainly_running = 1;
|
||||||
#endif
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user