mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-24 02:03:35 +08:00
Update.
* pt-fcntl.c (__fcntl): Initialize oldtype to avoid warning. * pthread_join.c: Likewise. * pthread_timedjoin.c: Likewise.
This commit is contained in:
parent
bdb04f9220
commit
a3957dd584
@ -1,5 +1,7 @@
|
||||
2002-12-08 Ulrich Drepper <drepper@redhat.com>
|
||||
|
||||
* pt-fcntl.c (__fcntl): Initialize oldtype to avoid warning.
|
||||
|
||||
* pthreadP.h: Declare __pthread_enable_asynccancel and
|
||||
__pthread_disable_asynccancel.
|
||||
(CANCEL_ASYNC): Use __pthread_enable_asynccancel.
|
||||
@ -48,6 +50,8 @@
|
||||
* pt-waitpid.c: Likewise.
|
||||
* pt-write.c: Likewise.
|
||||
* pt-writev.c: Likewise.
|
||||
* pthread_join.c: Likewise.
|
||||
* pthread_timedjoin.c: Likewise.
|
||||
|
||||
* pt-sigpause.c (sigsuspend): Call __sigsuspend.
|
||||
(__xpg_sigpause): New function.
|
||||
|
@ -29,7 +29,7 @@
|
||||
int
|
||||
__fcntl (int fd, int cmd, ...)
|
||||
{
|
||||
int oldtype;
|
||||
int oldtype = 0;
|
||||
va_list ap;
|
||||
|
||||
if (cmd == F_SETLKW)
|
||||
|
@ -73,8 +73,7 @@ pthread_join (threadid, thread_return)
|
||||
pthread_cleanup_push (cleanup, &pd->joinid);
|
||||
|
||||
/* Switch to asynchronous cancellation. */
|
||||
int oldtype;
|
||||
CANCEL_ASYNC (oldtype);
|
||||
int oldtype = CANCEL_ASYNC ();
|
||||
|
||||
|
||||
/* Wait for the child. */
|
||||
|
@ -75,8 +75,7 @@ pthread_timedjoin_np (threadid, thread_return, abstime)
|
||||
pthread_cleanup_push (cleanup, &pd->joinid);
|
||||
|
||||
/* Switch to asynchronous cancellation. */
|
||||
int oldtype;
|
||||
CANCEL_ASYNC (oldtype);
|
||||
int oldtype = CANCEL_ASYNC ();
|
||||
|
||||
|
||||
/* Wait for the child. */
|
||||
|
Loading…
Reference in New Issue
Block a user