public inbox for
 help / color / mirror / Atom feed
* [PATCH] fstatat64 fixes
@ 2009-05-05 19:13 Jakub Jelinek
  0 siblings, 0 replies; only message in thread
From: Jakub Jelinek @ 2009-05-05 19:13 UTC (permalink / raw)
  To: Ulrich Drepper; +Cc: Glibc hackers


With -Wsystem-headers I've noticed that gcc complains about fstatat64
declaring struct stat64 in the prototype.  Seems unlike all the other *64
functions it wasn't protected with __USE_LARGEFILE64.
Also, the inline wrapper uses different guard than the prototype (__USE_GNU
vs. __USE_ATFILE).

2009-05-05  Jakub Jelinek  <>

	* io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
	guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.

--- libc/io/sys/stat.h.jj	2009-03-02 16:43:58.000000000 +0100
+++ libc/io/sys/stat.h	2009-05-05 21:05:36.000000000 +0200
@@ -249,9 +249,11 @@ extern int __REDIRECT_NTH (fstatat, (int
 #  endif
 # endif
+# ifdef __USE_LARGEFILE64
 extern int fstatat64 (int __fd, __const char *__restrict __file,
 		      struct stat64 *__restrict __buf, int __flag)
      __THROW __nonnull ((2, 3));
+# endif
 #if defined __USE_BSD || defined __USE_XOPEN_EXTENDED || defined __USE_XOPEN2K
@@ -516,7 +518,7 @@ __NTH (fstat64 (int __fd, struct stat64 
   return __fxstat64 (_STAT_VER, __fd, __statbuf);
-#  ifdef __USE_GNU
+#  ifdef __USE_ATFILE
 __extern_inline int
 __NTH (fstatat64 (int __fd, __const char *__filename, struct stat64 *__statbuf,
 		  int __flag))


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-05-05 19:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-05 19:13 [PATCH] fstatat64 fixes Jakub Jelinek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).