~mingw-w64/mingw-w64/experimental

« back to all changes in this revision

Viewing changes to ros-privexp/mingw-w64-crt/stdio/_fstat64i32.c

  • Committer: NightStrike
  • Date: 2010-08-11 22:20:57 UTC
  • Revision ID: svn-v4:4407c894-4637-0410-b4f5-ada5f102cad1:experimental:3266
Branch for adding option for supporting ros

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#define __CRT__NO_INLINE
 
2
#include <sys/stat.h>
 
3
 
 
4
int __cdecl _fstat64i32(int _FileDes,struct _stat64i32 *_Stat)
 
5
{
 
6
  struct _stat64 st;
 
7
  int ret=_fstat64(_FileDes,&st);
 
8
  if (ret == -1) {
 
9
    memset(_Stat,0,sizeof(struct _stat64i32));
 
10
    return -1;
 
11
  }
 
12
  _Stat->st_dev=st.st_dev;
 
13
  _Stat->st_ino=st.st_ino;
 
14
  _Stat->st_mode=st.st_mode;
 
15
  _Stat->st_nlink=st.st_nlink;
 
16
  _Stat->st_uid=st.st_uid;
 
17
  _Stat->st_gid=st.st_gid;
 
18
  _Stat->st_rdev=st.st_rdev;
 
19
  _Stat->st_size=(_off_t) st.st_size;
 
20
  _Stat->st_atime=st.st_atime;
 
21
  _Stat->st_mtime=st.st_mtime;
 
22
  _Stat->st_ctime=st.st_ctime;
 
23
  return ret;
 
24
}
 
25