Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(28)

Unified Diff: io/sys/stat.h

Issue 6026005: Fix __fxstat which is called from fstat. Remove obsolete fstat64. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/nacl-glibc.git@master
Patch Set: fixing comments, spacing and some other minor stuff. Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: io/sys/stat.h
diff --git a/io/sys/stat.h b/io/sys/stat.h
index 364c43f8f4c3c30d4ae78e9def5d1fd15ec28e9f..57c10ca7bdd74ba28324d22a458b4f0ae86085df 100644
--- a/io/sys/stat.h
+++ b/io/sys/stat.h
@@ -393,7 +393,7 @@ extern int futimens (int __fd, __const struct timespec __times[2]) __THROW;
#endif
/* Wrappers for stat and mknod system calls. */
-#ifndef __USE_FILE_OFFSET64
+#if !defined __USE_FILE_OFFSET64 || defined __native_client__
extern int __fxstat (int __ver, int __fildes, struct stat *__stat_buf)
__THROW __nonnull ((3));
extern int __xstat (int __ver, __const char *__filename,
@@ -428,6 +428,9 @@ extern int __REDIRECT_NTH (__fxstatat, (int __ver, int __fildes,
#ifdef __USE_LARGEFILE64
extern int __fxstat64 (int __ver, int __fildes, struct stat64 *__stat_buf)
+#if defined __native_client__ && (!defined SHARED || defined NOT_IN_libc)
+ __asm__ ("__fxstat")
+#endif
__THROW __nonnull ((3));
extern int __xstat64 (int __ver, __const char *__filename,
struct stat64 *__stat_buf) __THROW __nonnull ((2, 3));
« no previous file with comments | « include/features.h ('k') | sysdeps/nacl/fxstat.c » ('j') | sysdeps/nacl/fxstat.c » ('J')

Powered by Google App Engine
This is Rietveld 408576698