mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
* sysdeps/powerpc/bits/setjmp.h [__WORDSIZE]: Add 64-bit jmpbuf.
* sysdeps/powerpc/bits/wordsize.h: New file. * sysdeps/powerpc/fpu/bits/mathinline.h (lrint, lrintf): Change long array to int array for 32-/64-bit compatibility. 2002-09-20 Roland McGrath <roland@redhat.com> * login/programs/utmpdump.c: Don't include <error.h>, <errno.h>. * sysdeps/generic/utimes.c (__utimes): Don't check TVP for null. Reported by Bruno Haible <bruno@clisp.org>. * sysdeps/generic/ifreq.h (__ifreq): Compute termination condition before doubling RQ_LEN. * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise. Reported by Bruno Haible <bruno@clisp.org>. 2002-09-18 Bruno Haible <bruno@clisp.org> * login/logout.c (logout): Don't assume ut_time has the same size as a time_t. * login/logwtmp.c (logwtmp): Likewise. * sysdeps/pthread/configure: New file, moved here from linuxthreads/sysdeps/unix/sysv/linux/configure.
This commit is contained in:
@ -62,6 +62,7 @@ thread (void *arg)
|
||||
|
||||
for (;;)
|
||||
{
|
||||
int err;
|
||||
|
||||
clock_gettime (CLOCK_REALTIME, &ts);
|
||||
|
||||
@ -72,7 +73,7 @@ thread (void *arg)
|
||||
ts.tv_nsec -= 1000000000L;
|
||||
}
|
||||
|
||||
switch (pthread_mutex_timedlock (&mutex, &ts))
|
||||
switch ((err = pthread_mutex_timedlock (&mutex, &ts)))
|
||||
{
|
||||
case 0:
|
||||
flockfile (stdout);
|
||||
@ -86,6 +87,8 @@ thread (void *arg)
|
||||
(unsigned long) self);
|
||||
funlockfile (stdout);
|
||||
continue;
|
||||
default:
|
||||
error (EXIT_FAILURE, err, "pthread_mutex_timedlock failure");
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user