Chromium Code Reviews| 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__ |
|
eaeltsin
2011/01/13 10:43:45
Why do you need to check for native client here?
P
halyavin
2011/01/13 11:15:21
Yes, we do. Because we implement __USE_FILE_OFFSET
|
| 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") |
|
eaeltsin
2011/01/13 10:43:45
Please add a comment on this.
halyavin
2011/01/13 11:15:21
We are going to have a dozen of such lines (one fo
|
| +#endif |
| __THROW __nonnull ((3)); |
| extern int __xstat64 (int __ver, __const char *__filename, |
| struct stat64 *__stat_buf) __THROW __nonnull ((2, 3)); |