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; |
} |
} |