diff options
| author | Flavio Cruz <flaviocruz@gmail.com> | 2024-07-11 23:37:35 +0100 |
|---|---|---|
| committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2024-07-16 09:21:52 +0200 |
| commit | 2dcc908538054377d19571d77a026b9f26d3fd0f (patch) | |
| tree | a58952877447a5b37804f44f46e4db91e19c9ce1 /htl | |
| parent | a11e15ea0ab1ee8a1947b6be52beca53693f0991 (diff) | |
| download | glibc-2dcc908538054377d19571d77a026b9f26d3fd0f.tar.xz glibc-2dcc908538054377d19571d77a026b9f26d3fd0f.zip | |
Add pthread_getname_np and pthread_setname_np for Hurd
We use thread_get_name and thread_set_name to get and set the thread
name, so nothing is stored in the thread structure since these functions
are supposed to be called sparingly.
One notable difference with Linux is that the thread name is up to 32
chars, whereas Linux's is 16.
Also added a mach_RPC_CHECK to check for the existing of gnumach RPCs.
Diffstat (limited to 'htl')
| -rw-r--r-- | htl/Makefile | 2 | ||||
| -rw-r--r-- | htl/Versions | 5 |
2 files changed, 7 insertions, 0 deletions
diff --git a/htl/Makefile b/htl/Makefile index 4028e5a240..c5d1c473a0 100644 --- a/htl/Makefile +++ b/htl/Makefile @@ -145,6 +145,8 @@ libpthread-routines := \ pt-getcpuclockid \ pt-setschedprio \ pt-yield \ + pt-getname-np \ + pt-setname-np \ sem_close \ sem-destroy \ sem-getvalue \ diff --git a/htl/Versions b/htl/Versions index 710051756a..e1524117a0 100644 --- a/htl/Versions +++ b/htl/Versions @@ -169,6 +169,11 @@ libpthread { sem_clockwait; } + GLIBC_2.40 { + pthread_getname_np; + pthread_setname_np; + } + GLIBC_PRIVATE { __pthread_initialize_minimal; |
