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

Unified Diff: sysdeps/nacl/xstat.c

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: Fix __fxstat, unificating struct stat and struct stat64. Created 10 years 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: sysdeps/nacl/xstat.c
diff --git a/sysdeps/nacl/xstat.c b/sysdeps/nacl/xstat.c
index f5b2575020fc5f453e3faec35f2dafedbb04e2bb..c7ff7642756b597a856e3aeb0ddfe843d6ca425a 100644
--- a/sysdeps/nacl/xstat.c
+++ b/sysdeps/nacl/xstat.c
@@ -21,25 +21,7 @@ int __xstat (int version, const char *path, struct stat *buf)
}
else
{
- buf->st_dev = st.nacl_abi_st_dev;
-#ifdef _HAVE_STAT___PAD1
- buf->__pad1 = 0;
-#endif
- buf->st_ino = st.nacl_abi_st_ino;
- buf->st_mode = st.nacl_abi_st_mode;
- buf->st_nlink = st.nacl_abi_st_nlink;
- buf->st_uid = st.nacl_abi_st_uid;
- buf->st_gid = st.nacl_abi_st_gid;
- buf->st_rdev = st.nacl_abi_st_rdev;
-#ifdef _HAVE_STAT___PAD2
- buf->__pad2 = 0;
-#endif
- buf->st_size = st.nacl_abi_st_size;
- buf->st_blksize = st.nacl_abi_st_blksize;
- buf->st_blocks = st.nacl_abi_st_blocks;
- buf->st_atime = st.nacl_abi_st_atime;
- buf->st_mtime = st.nacl_abi_st_mtime;
- buf->st_ctime = st.nacl_abi_st_ctime;
+ __nacl_abi_stat_to_stat (&st, buf);
return 0;
}
}

Powered by Google App Engine
This is Rietveld 408576698