mirror of git://sourceware.org/git/glibc.git
2000-05-05 Andreas Jaeger <aj@suse.de>
* sysdeps/unix/sysv/linux/i386/getcpuclockid.c (pthread_getcpuclockid): Correct test for ourselves. 2000-05-05 Andreas Jaeger <aj@suse.de> * sysdeps/unix/sysv/linux/i386/getcpuclockid.c (pthread_getcpuclockid): Correct test for ourselves.
This commit is contained in:
parent
fda4deac43
commit
b19b73833a
|
|
@ -1,3 +1,8 @@
|
||||||
|
2000-05-05 Andreas Jaeger <aj@suse.de>
|
||||||
|
|
||||||
|
* sysdeps/unix/sysv/linux/i386/getcpuclockid.c
|
||||||
|
(pthread_getcpuclockid): Correct test for ourselves.
|
||||||
|
|
||||||
2000-05-05 Ulrich Drepper <drepper@redhat.com>
|
2000-05-05 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
* internals.h (struct _pthread_descr_struct): Reorganization.
|
* internals.h (struct _pthread_descr_struct): Reorganization.
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ int
|
||||||
pthread_getcpuclockid (pthread_t thread_id, clockid_t *clock_id)
|
pthread_getcpuclockid (pthread_t thread_id, clockid_t *clock_id)
|
||||||
{
|
{
|
||||||
/* We don't allow any process ID but our own. */
|
/* We don't allow any process ID but our own. */
|
||||||
if (thread_handle (thread_id) != thread_self ())
|
if (thread_handle (thread_id)->h_descr != thread_self ())
|
||||||
return EPERM;
|
return EPERM;
|
||||||
|
|
||||||
/* Store the number. */
|
/* Store the number. */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue