This is the mail archive of the libc-hacker@sourceware.org mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix <sys/stat.h> in C++


Hi!

While in C __REDIRECT_NTH (....) __THROW is harmless, in C++ it is
an error (... throw () __asm ("fstatat64") throw () ... ).

2005-11-15  Jakub Jelinek  <jakub@redhat.com>

	* io/sys/stat.h (fstatat): Don't use __THROW together with
	__REDIRECT_NTH.

--- libc/io/sys/stat.h.jj	2005-11-15 20:29:54.000000000 +0100
+++ libc/io/sys/stat.h	2005-11-15 20:46:40.000000000 +0100
@@ -238,7 +238,7 @@ extern int fstatat (int __fd, const char
 # else
 extern int __REDIRECT_NTH (fstatat, (int __fd, const char *__file,
 				     struct stat *__buf, int __flag),
-			   fstatat64) __THROW __nonnull ((2, 3));
+			   fstatat64) __nonnull ((2, 3));
 # endif
 
 extern int fstatat64 (int __fd, const char *__file, struct stat64 *__buf,

	Jakub


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]