ReactOS 0.4.15-dev-7958-gcd0bb1a
stat.c File Reference
#include <precomp.h>
#include <tchar.h>
Include dependency graph for stat.c:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define stat64_to_stat(buf64, buf)
 

Functions

int CDECL _tstat (const _TCHAR *path, struct _stat *buf)
 
int CDECL _tstati64 (const _TCHAR *path, struct _stati64 *buf)
 
int CDECL _fstat (int fd, struct _stat *buf)
 
int CDECL _fstati64 (int fd, struct _stati64 *buf)
 

Macro Definition Documentation

◆ stat64_to_stat

#define stat64_to_stat (   buf64,
  buf 
)
Value:
do { \
buf->st_dev = (buf64)->st_dev; \
buf->st_ino = (buf64)->st_ino; \
buf->st_mode = (buf64)->st_mode; \
buf->st_nlink = (buf64)->st_nlink; \
buf->st_uid = (buf64)->st_uid; \
buf->st_gid = (buf64)->st_gid; \
buf->st_rdev = (buf64)->st_rdev; \
buf->st_size = (_off_t)(buf64)->st_size; \
buf->st_atime = (time_t)(buf64)->st_atime; \
buf->st_mtime = (time_t)(buf64)->st_mtime; \
buf->st_ctime = (time_t)(buf64)->st_ctime; \
} while (0)
st_mode
Definition: cpu_i386.c:139
__kernel_time_t time_t
Definition: linux.h:252
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
long _off_t
Definition: stdio.h:73

Definition at line 4 of file stat.c.

Function Documentation

◆ _fstat()

int CDECL _fstat ( int  fd,
struct _stat buf 
)

Definition at line 43 of file stat.c.

44{ int ret;
45 struct __stat64 buf64;
46
47 ret = _fstat64(fd, &buf64);
48 if (!ret)
49 stat64_to_stat(&buf64, buf);
50 return ret;
51}
#define __stat64
Definition: stat.h:129
#define stat64_to_stat(buf64, buf)
Definition: stat.c:4
static int fd
Definition: io.c:51
int CDECL _fstat64(int fd, struct __stat64 *buf)
Definition: stat64.c:102
int ret

◆ _fstati64()

int CDECL _fstati64 ( int  fd,
struct _stati64 *  buf 
)

Definition at line 53 of file stat.c.

54{
55 int ret;
56 struct __stat64 buf64;
57
58 ret = _fstat64(fd, &buf64);
59 if (!ret)
60 stat64_to_stat(&buf64, buf);
61 return ret;
62}

◆ _tstat()

int CDECL _tstat ( const _TCHAR path,
struct _stat buf 
)

Definition at line 19 of file stat.c.

20{
21 int ret;
22 struct __stat64 buf64;
23
24 ret = _tstat64(path, &buf64);
25 if (!ret)
26 stat64_to_stat(&buf64, buf);
27 return ret;
28}
#define _tstat64
Definition: tchar.h:747

◆ _tstati64()

int CDECL _tstati64 ( const _TCHAR path,
struct _stati64 *  buf 
)

Definition at line 30 of file stat.c.

31{
32 int ret;
33 struct __stat64 buf64;
34
35 ret = _tstat64(path, &buf64);
36 if (!ret)
37 stat64_to_stat(&buf64, buf);
38 return ret;
39}