From: Ulrich Drepper Date: Fri, 9 Jul 2004 17:20:48 +0000 (+0000) Subject: Update. X-Git-Tag: upstream/2.30~17809 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d199bfb22296dbb3f0a17bfdde719a14da406ff1;p=external%2Fglibc.git Update. 2004-07-09 Ulrich Drepper * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Move attribute to the front for gcc 3.5+. * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Likewise. * include/fcntl.h: Don't declare __fcntl_nocancel here if NO_CANCELLATION is defined. --- diff --git a/ChangeLog b/ChangeLog index f3b6360..479773a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2004-07-09 Ulrich Drepper + + * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Move attribute + to the front for gcc 3.5+. + * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise. + * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Likewise. + * include/fcntl.h: Don't declare __fcntl_nocancel here if + NO_CANCELLATION is defined. + 2004-07-07 Jakub Jelinek * elf/dl-fini.c (_dl_fini): Add nloaded variable, load diff --git a/include/fcntl.h b/include/fcntl.h index 78e3054..7764f1c 100644 --- a/include/fcntl.h +++ b/include/fcntl.h @@ -9,8 +9,10 @@ extern int __libc_open (const char *file, int oflag, ...); libc_hidden_proto (__libc_open) extern int __libc_creat (const char *file, mode_t mode); extern int __libc_fcntl (int fd, int cmd, ...); +#ifndef NO_CANCELLATION extern int __fcntl_nocancel (int fd, int cmd, ...) attribute_hidden; libc_hidden_proto (__libc_fcntl) +#endif extern int __open (__const char *__file, int __oflag, ...); libc_hidden_proto (__open) extern int __fcntl (int __fd, int __cmd, ...); diff --git a/sysdeps/unix/sysv/linux/fcntl.c b/sysdeps/unix/sysv/linux/fcntl.c index ab8d9cf..87fa2ff 100644 --- a/sysdeps/unix/sysv/linux/fcntl.c +++ b/sysdeps/unix/sysv/linux/fcntl.c @@ -18,17 +18,17 @@ #include #include +#include /* Must come before . */ #include #include -#include #include -int #ifdef NO_CANCELLATION static inline __attribute ((always_inline)) #endif +int __fcntl_nocancel (int fd, int cmd, ...) { va_list ap; diff --git a/sysdeps/unix/sysv/linux/i386/fcntl.c b/sysdeps/unix/sysv/linux/i386/fcntl.c index da65721..7787c58 100644 --- a/sysdeps/unix/sysv/linux/i386/fcntl.c +++ b/sysdeps/unix/sysv/linux/i386/fcntl.c @@ -18,10 +18,10 @@ #include #include +#include /* Must come before . */ #include #include -#include #include #include "../kernel-features.h" @@ -31,10 +31,10 @@ int __have_no_fcntl64; #endif -int #ifdef NO_CANCELLATION static inline __attribute ((always_inline)) #endif +int __fcntl_nocancel (int fd, int cmd, ...) { va_list ap; diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c b/sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c index 4b60a16..95b817b 100644 --- a/sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c +++ b/sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c @@ -18,17 +18,17 @@ #include #include +#include /* Must come before . */ #include #include -#include #include -int #ifdef NO_CANCELLATION static inline __attribute ((always_inline)) #endif +int __fcntl_nocancel (int fd, int cmd, ...) { va_list ap;