1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-10 05:03:06 +03:00
Commit Graph

8 Commits

Author SHA1 Message Date
Adhemerval Zanella
846c2b23e2 nptl: Use exit_lock when accessing TID on pthread_setschedprio
Also return EINVAL if the thread is already terminated at the time
of the call.

Checked on x86_64-linux-gnu
2025-07-09 19:57:21 -03:00
Adhemerval Zanella
17d91f0857 nptl: Use exit_lock when accessing TID on pthread_sigqueue
Also return EINVAL if the thread is already terminated at the time
of the call.

Checked on x86_64-linux-gnu.
2025-07-09 19:57:21 -03:00
Adhemerval Zanella
2518bb05f6 nptl: Use exit_lock when accessing TID on pthread_setname_np
Also return EINVAL if the thread is already terminated at the time
of the call.

Checked on x86_64-linux-gnu.
2025-07-09 19:57:21 -03:00
Adhemerval Zanella
fe2c818f75 nptl: Use exit_lock when accessing TID on pthread_getname_np
Also return EINVAL if the thread is already terminated at the time
of the call.

Checked on x86_64-linux-gnu.
2025-07-09 19:57:21 -03:00
Adhemerval Zanella
345295c0d9 nptl: Use exit_lock when accessing TID on pthread_getschedparam
The sched_getparam call is also replaced with a INTERNAL_SYSCALL_CALL
to avoid clobbering errno.

Also return EINVAL if the thread is already terminated at the time
of the call.

Checked on x86_64-linux-gnu.
2025-07-09 19:57:21 -03:00
Adhemerval Zanella
f303d285c8 nptl: Use exit_lock when accessing TID on pthread_setschedparam
Also return EINVAL if the thread is already terminated at the time
of the call.

The sched_getparam call is also replaced with a INTERNAL_SYSCALL_CALL
to avoid clobbering errno.

Checked on x86_64-linux-gnu.
2025-07-09 19:57:21 -03:00
Adhemerval Zanella
71a2526d28 nptl: Use exit_lock when accessing TID on pthread_getcpuclockid
Also return EINVAL if the thread is already terminated at the time
of the call.

Checked on x86_64-linux-gnu.
2025-07-09 19:57:21 -03:00
Adhemerval Zanella
a75cd1e3af nptl: Use exit_lock when accessing TID on pthread_getaffinity_np
Also return EINVAL if the thread is already terminated at the time of
the call.  This is slight better than returning the calling thread
affinity (current behaviour), since the thread lifetime is defined.

Checked on x86_64-linux-gnu.
2025-07-09 19:57:21 -03:00