Added regedit unit test, a couple minor changes to regedit.
[wine] / include / msvcrt / sys / stat.h
1 /*
2  * _stat() definitions
3  *
4  * Derived from the mingw header written by Colin Peters.
5  * Modified for Wine use by Jon Griffiths and Francois Gouget.
6  * This file is in the public domain.
7  */
8 #ifndef __WINE_SYS_STAT_H
9 #define __WINE_SYS_STAT_H
10 #define __WINE_USE_MSVCRT
11
12 #include "msvcrt/sys/types.h"
13
14
15 #define _S_IEXEC  0x0040
16 #define _S_IWRITE 0x0080
17 #define _S_IREAD  0x0100
18 #define _S_IFIFO  0x1000
19 #define _S_IFCHR  0x2000
20 #define _S_IFDIR  0x4000
21 #define _S_IFREG  0x8000
22 #define _S_IFMT   0xF000
23
24 /* for FreeBSD */
25 #undef st_atime
26 #undef st_ctime
27 #undef st_mtime
28
29 struct _stat {
30   _dev_t         st_dev;
31   _ino_t         st_ino;
32   unsigned short st_mode;
33   short          st_nlink;
34   short          st_uid;
35   short          st_gid;
36   _dev_t         st_rdev;
37   _off_t         st_size;
38   MSVCRT(time_t) st_atime;
39   MSVCRT(time_t) st_mtime;
40   MSVCRT(time_t) st_ctime;
41 };
42
43 struct _stati64 {
44   _dev_t         st_dev;
45   _ino_t         st_ino;
46   unsigned short st_mode;
47   short          st_nlink;
48   short          st_uid;
49   short          st_gid;
50   _dev_t         st_rdev;
51   __int64        st_size;
52   MSVCRT(time_t) st_atime;
53   MSVCRT(time_t) st_mtime;
54   MSVCRT(time_t) st_ctime;
55 };
56
57
58 #ifdef __cplusplus
59 extern "C" {
60 #endif
61
62 int _fstat(int,struct _stat*);
63 int _fstati64(int,struct _stati64*);
64 int _stat(const char*,struct _stat*);
65 int _stati64(const char*,struct _stati64*);
66
67 int _wstat(const WCHAR*,struct _stat*);
68 int _wstati64(const WCHAR*,struct _stati64*);
69
70 #ifdef __cplusplus
71 }
72 #endif
73
74
75 #ifndef USE_MSVCRT_PREFIX
76 #define S_IFMT   _S_IFMT
77 #define S_IFDIR  _S_IFDIR
78 #define S_IFCHR  _S_IFCHR
79 #define S_IFREG  _S_IFREG
80 #define S_IREAD  _S_IREAD
81 #define S_IWRITE _S_IWRITE
82 #define S_IEXEC  _S_IEXEC
83
84 #define fstat _fstat
85 #define stat _stat
86 #endif /* USE_MSVCRT_PREFIX */
87
88 #endif /* __WINE_SYS_STAT_H */