User | Revision | Line number | New contents of line |
sca8er |
3:0c3bcea5b4d0
|
1
|
/*
|
sca8er |
3:0c3bcea5b4d0
|
2
|
* stat.h
|
sca8er |
3:0c3bcea5b4d0
|
3
|
* This file has no copyright assigned and is placed in the Public Domain.
|
sca8er |
3:0c3bcea5b4d0
|
4
|
* This file is a part of the mingw-runtime package.
|
sca8er |
3:0c3bcea5b4d0
|
5
|
* No warranty is given; refer to the file DISCLAIMER within the package.
|
sca8er |
3:0c3bcea5b4d0
|
6
|
*
|
sca8er |
3:0c3bcea5b4d0
|
7
|
* Symbolic constants for opening and creating files, also stat, fstat and
|
sca8er |
3:0c3bcea5b4d0
|
8
|
* chmod functions.
|
sca8er |
3:0c3bcea5b4d0
|
9
|
*
|
sca8er |
3:0c3bcea5b4d0
|
10
|
*/
|
sca8er |
3:0c3bcea5b4d0
|
11
|
|
sca8er |
3:0c3bcea5b4d0
|
12
|
#ifndef _STAT_H_
|
sca8er |
3:0c3bcea5b4d0
|
13
|
#define _STAT_H_
|
sca8er |
3:0c3bcea5b4d0
|
14
|
|
sca8er |
3:0c3bcea5b4d0
|
15
|
/* All the headers include this file. */
|
sca8er |
3:0c3bcea5b4d0
|
16
|
#include <_mingw.h>
|
sca8er |
3:0c3bcea5b4d0
|
17
|
|
sca8er |
3:0c3bcea5b4d0
|
18
|
#define __need_size_t
|
sca8er |
3:0c3bcea5b4d0
|
19
|
#define __need_wchar_t
|
sca8er |
3:0c3bcea5b4d0
|
20
|
#ifndef RC_INVOKED
|
sca8er |
3:0c3bcea5b4d0
|
21
|
#include <stddef.h>
|
sca8er |
3:0c3bcea5b4d0
|
22
|
#endif /* Not RC_INVOKED */
|
sca8er |
3:0c3bcea5b4d0
|
23
|
|
sca8er |
3:0c3bcea5b4d0
|
24
|
#include <sys/types.h>
|
sca8er |
3:0c3bcea5b4d0
|
25
|
|
sca8er |
3:0c3bcea5b4d0
|
26
|
/*
|
sca8er |
3:0c3bcea5b4d0
|
27
|
* Constants for the stat st_mode member.
|
sca8er |
3:0c3bcea5b4d0
|
28
|
*/
|
sca8er |
3:0c3bcea5b4d0
|
29
|
#define _S_IFIFO 0x1000 /* FIFO */
|
sca8er |
3:0c3bcea5b4d0
|
30
|
#define _S_IFCHR 0x2000 /* Character */
|
sca8er |
3:0c3bcea5b4d0
|
31
|
#define _S_IFBLK 0x3000 /* Block: Is this ever set under w32? */
|
sca8er |
3:0c3bcea5b4d0
|
32
|
#define _S_IFDIR 0x4000 /* Directory */
|
sca8er |
3:0c3bcea5b4d0
|
33
|
#define _S_IFREG 0x8000 /* Regular */
|
sca8er |
3:0c3bcea5b4d0
|
34
|
|
sca8er |
3:0c3bcea5b4d0
|
35
|
#define _S_IFMT 0xF000 /* File type mask */
|
sca8er |
3:0c3bcea5b4d0
|
36
|
|
sca8er |
3:0c3bcea5b4d0
|
37
|
#define _S_IEXEC 0x0040
|
sca8er |
3:0c3bcea5b4d0
|
38
|
#define _S_IWRITE 0x0080
|
sca8er |
3:0c3bcea5b4d0
|
39
|
#define _S_IREAD 0x0100
|
sca8er |
3:0c3bcea5b4d0
|
40
|
|
sca8er |
3:0c3bcea5b4d0
|
41
|
#define _S_IRWXU (_S_IREAD | _S_IWRITE | _S_IEXEC)
|
sca8er |
3:0c3bcea5b4d0
|
42
|
#define _S_IXUSR _S_IEXEC
|
sca8er |
3:0c3bcea5b4d0
|
43
|
#define _S_IWUSR _S_IWRITE
|
sca8er |
3:0c3bcea5b4d0
|
44
|
#define _S_IRUSR _S_IREAD
|
sca8er |
3:0c3bcea5b4d0
|
45
|
|
sca8er |
3:0c3bcea5b4d0
|
46
|
#define _S_ISDIR(m) (((m) & _S_IFMT) == _S_IFDIR)
|
sca8er |
3:0c3bcea5b4d0
|
47
|
#define _S_ISFIFO(m) (((m) & _S_IFMT) == _S_IFIFO)
|
sca8er |
3:0c3bcea5b4d0
|
48
|
#define _S_ISCHR(m) (((m) & _S_IFMT) == _S_IFCHR)
|
sca8er |
3:0c3bcea5b4d0
|
49
|
#define _S_ISBLK(m) (((m) & _S_IFMT) == _S_IFBLK)
|
sca8er |
3:0c3bcea5b4d0
|
50
|
#define _S_ISREG(m) (((m) & _S_IFMT) == _S_IFREG)
|
sca8er |
3:0c3bcea5b4d0
|
51
|
|
sca8er |
3:0c3bcea5b4d0
|
52
|
#ifndef _NO_OLDNAMES
|
sca8er |
3:0c3bcea5b4d0
|
53
|
|
sca8er |
3:0c3bcea5b4d0
|
54
|
#define S_IFIFO _S_IFIFO
|
sca8er |
3:0c3bcea5b4d0
|
55
|
#define S_IFCHR _S_IFCHR
|
sca8er |
3:0c3bcea5b4d0
|
56
|
#define S_IFBLK _S_IFBLK
|
sca8er |
3:0c3bcea5b4d0
|
57
|
#define S_IFDIR _S_IFDIR
|
sca8er |
3:0c3bcea5b4d0
|
58
|
#define S_IFREG _S_IFREG
|
sca8er |
3:0c3bcea5b4d0
|
59
|
#define S_IFMT _S_IFMT
|
sca8er |
3:0c3bcea5b4d0
|
60
|
#define S_IEXEC _S_IEXEC
|
sca8er |
3:0c3bcea5b4d0
|
61
|
#define S_IWRITE _S_IWRITE
|
sca8er |
3:0c3bcea5b4d0
|
62
|
#define S_IREAD _S_IREAD
|
sca8er |
3:0c3bcea5b4d0
|
63
|
#define S_IRWXU _S_IRWXU
|
sca8er |
3:0c3bcea5b4d0
|
64
|
#define S_IXUSR _S_IXUSR
|
sca8er |
3:0c3bcea5b4d0
|
65
|
#define S_IWUSR _S_IWUSR
|
sca8er |
3:0c3bcea5b4d0
|
66
|
#define S_IRUSR _S_IRUSR
|
sca8er |
3:0c3bcea5b4d0
|
67
|
|
sca8er |
3:0c3bcea5b4d0
|
68
|
#define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
|
sca8er |
3:0c3bcea5b4d0
|
69
|
#define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO)
|
sca8er |
3:0c3bcea5b4d0
|
70
|
#define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR)
|
sca8er |
3:0c3bcea5b4d0
|
71
|
#define S_ISBLK(m) (((m) & S_IFMT) == S_IFBLK)
|
sca8er |
3:0c3bcea5b4d0
|
72
|
#define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
|
sca8er |
3:0c3bcea5b4d0
|
73
|
|
sca8er |
3:0c3bcea5b4d0
|
74
|
#endif /* Not _NO_OLDNAMES */
|
sca8er |
3:0c3bcea5b4d0
|
75
|
|
sca8er |
3:0c3bcea5b4d0
|
76
|
#ifndef RC_INVOKED
|
sca8er |
3:0c3bcea5b4d0
|
77
|
|
sca8er |
3:0c3bcea5b4d0
|
78
|
#ifndef _STAT_DEFINED
|
sca8er |
3:0c3bcea5b4d0
|
79
|
/*
|
sca8er |
3:0c3bcea5b4d0
|
80
|
* The structure manipulated and returned by stat and fstat.
|
sca8er |
3:0c3bcea5b4d0
|
81
|
*
|
sca8er |
3:0c3bcea5b4d0
|
82
|
* NOTE: If called on a directory the values in the time fields are not only
|
sca8er |
3:0c3bcea5b4d0
|
83
|
* invalid, they will cause localtime et. al. to return NULL. And calling
|
sca8er |
3:0c3bcea5b4d0
|
84
|
* asctime with a NULL pointer causes an Invalid Page Fault. So watch it!
|
sca8er |
3:0c3bcea5b4d0
|
85
|
*/
|
sca8er |
3:0c3bcea5b4d0
|
86
|
struct _stat
|
sca8er |
3:0c3bcea5b4d0
|
87
|
{
|
sca8er |
3:0c3bcea5b4d0
|
88
|
_dev_t st_dev; /* Equivalent to drive number 0=A 1=B ... */
|
sca8er |
3:0c3bcea5b4d0
|
89
|
_ino_t st_ino; /* Always zero ? */
|
sca8er |
3:0c3bcea5b4d0
|
90
|
_mode_t st_mode; /* See above constants */
|
sca8er |
3:0c3bcea5b4d0
|
91
|
short st_nlink; /* Number of links. */
|
sca8er |
3:0c3bcea5b4d0
|
92
|
short st_uid; /* User: Maybe significant on NT ? */
|
sca8er |
3:0c3bcea5b4d0
|
93
|
short st_gid; /* Group: Ditto */
|
sca8er |
3:0c3bcea5b4d0
|
94
|
_dev_t st_rdev; /* Seems useless (not even filled in) */
|
sca8er |
3:0c3bcea5b4d0
|
95
|
_off_t st_size; /* File size in bytes */
|
sca8er |
3:0c3bcea5b4d0
|
96
|
time_t st_atime; /* Accessed date (always 00:00 hrs local
|
sca8er |
3:0c3bcea5b4d0
|
97
|
* on FAT) */
|
sca8er |
3:0c3bcea5b4d0
|
98
|
time_t st_mtime; /* Modified time */
|
sca8er |
3:0c3bcea5b4d0
|
99
|
time_t st_ctime; /* Creation time */
|
sca8er |
3:0c3bcea5b4d0
|
100
|
};
|
sca8er |
3:0c3bcea5b4d0
|
101
|
|
sca8er |
3:0c3bcea5b4d0
|
102
|
#ifndef _NO_OLDNAMES
|
sca8er |
3:0c3bcea5b4d0
|
103
|
/* NOTE: Must be the same as _stat above. */
|
sca8er |
3:0c3bcea5b4d0
|
104
|
struct stat
|
sca8er |
3:0c3bcea5b4d0
|
105
|
{
|
sca8er |
3:0c3bcea5b4d0
|
106
|
dev_t st_dev; /* Equivalent to drive number 0=A 1=B ... */
|
sca8er |
3:0c3bcea5b4d0
|
107
|
ino_t st_ino; /* Always zero ? */
|
sca8er |
3:0c3bcea5b4d0
|
108
|
mode_t st_mode; /* See above constants */
|
sca8er |
3:0c3bcea5b4d0
|
109
|
short st_nlink; /* Number of links. */
|
sca8er |
3:0c3bcea5b4d0
|
110
|
short st_uid; /* User: Maybe significant on NT ? */
|
sca8er |
3:0c3bcea5b4d0
|
111
|
short st_gid; /* Group: Ditto */
|
sca8er |
3:0c3bcea5b4d0
|
112
|
dev_t st_rdev; /* Seems useless (not even filled in) */
|
sca8er |
3:0c3bcea5b4d0
|
113
|
off_t st_size; /* File size in bytes */
|
sca8er |
3:0c3bcea5b4d0
|
114
|
time_t st_atime; /* Accessed date (always 00:00 hrs local
|
sca8er |
3:0c3bcea5b4d0
|
115
|
* on FAT) */
|
sca8er |
3:0c3bcea5b4d0
|
116
|
time_t st_mtime; /* Modified time */
|
sca8er |
3:0c3bcea5b4d0
|
117
|
time_t st_ctime; /* Creation time */
|
sca8er |
3:0c3bcea5b4d0
|
118
|
};
|
sca8er |
3:0c3bcea5b4d0
|
119
|
#endif /* _NO_OLDNAMES */
|
sca8er |
3:0c3bcea5b4d0
|
120
|
|
sca8er |
3:0c3bcea5b4d0
|
121
|
#if defined (__MSVCRT__)
|
sca8er |
3:0c3bcea5b4d0
|
122
|
struct _stati64 {
|
sca8er |
3:0c3bcea5b4d0
|
123
|
_dev_t st_dev;
|
sca8er |
3:0c3bcea5b4d0
|
124
|
_ino_t st_ino;
|
sca8er |
3:0c3bcea5b4d0
|
125
|
_mode_t st_mode;
|
sca8er |
3:0c3bcea5b4d0
|
126
|
short st_nlink;
|
sca8er |
3:0c3bcea5b4d0
|
127
|
short st_uid;
|
sca8er |
3:0c3bcea5b4d0
|
128
|
short st_gid;
|
sca8er |
3:0c3bcea5b4d0
|
129
|
_dev_t st_rdev;
|
sca8er |
3:0c3bcea5b4d0
|
130
|
__int64 st_size;
|
sca8er |
3:0c3bcea5b4d0
|
131
|
time_t st_atime;
|
sca8er |
3:0c3bcea5b4d0
|
132
|
time_t st_mtime;
|
sca8er |
3:0c3bcea5b4d0
|
133
|
time_t st_ctime;
|
sca8er |
3:0c3bcea5b4d0
|
134
|
};
|
sca8er |
3:0c3bcea5b4d0
|
135
|
#if __MSVCRT_VERSION__ >= 0x0601
|
sca8er |
3:0c3bcea5b4d0
|
136
|
struct __stat64
|
sca8er |
3:0c3bcea5b4d0
|
137
|
{
|
sca8er |
3:0c3bcea5b4d0
|
138
|
_dev_t st_dev;
|
sca8er |
3:0c3bcea5b4d0
|
139
|
_ino_t st_ino;
|
sca8er |
3:0c3bcea5b4d0
|
140
|
_mode_t st_mode;
|
sca8er |
3:0c3bcea5b4d0
|
141
|
short st_nlink;
|
sca8er |
3:0c3bcea5b4d0
|
142
|
short st_uid;
|
sca8er |
3:0c3bcea5b4d0
|
143
|
short st_gid;
|
sca8er |
3:0c3bcea5b4d0
|
144
|
_dev_t st_rdev;
|
sca8er |
3:0c3bcea5b4d0
|
145
|
__int64 st_size;
|
sca8er |
3:0c3bcea5b4d0
|
146
|
__time64_t st_atime;
|
sca8er |
3:0c3bcea5b4d0
|
147
|
__time64_t st_mtime;
|
sca8er |
3:0c3bcea5b4d0
|
148
|
__time64_t st_ctime;
|
sca8er |
3:0c3bcea5b4d0
|
149
|
};
|
sca8er |
3:0c3bcea5b4d0
|
150
|
#endif /* __MSVCRT_VERSION__ >= 0x0601 */
|
sca8er |
3:0c3bcea5b4d0
|
151
|
#if __MSVCRT_VERSION__ >= 0x0800
|
sca8er |
3:0c3bcea5b4d0
|
152
|
struct __stat32
|
sca8er |
3:0c3bcea5b4d0
|
153
|
{
|
sca8er |
3:0c3bcea5b4d0
|
154
|
_dev_t st_dev;
|
sca8er |
3:0c3bcea5b4d0
|
155
|
_ino_t st_ino;
|
sca8er |
3:0c3bcea5b4d0
|
156
|
_mode_t st_mode;
|
sca8er |
3:0c3bcea5b4d0
|
157
|
short st_nlink;
|
sca8er |
3:0c3bcea5b4d0
|
158
|
short st_uid;
|
sca8er |
3:0c3bcea5b4d0
|
159
|
short st_gid;
|
sca8er |
3:0c3bcea5b4d0
|
160
|
_dev_t st_rdev;
|
sca8er |
3:0c3bcea5b4d0
|
161
|
__int32 st_size;
|
sca8er |
3:0c3bcea5b4d0
|
162
|
__time32_t st_atime;
|
sca8er |
3:0c3bcea5b4d0
|
163
|
__time32_t st_mtime;
|
sca8er |
3:0c3bcea5b4d0
|
164
|
__time32_t st_ctime;
|
sca8er |
3:0c3bcea5b4d0
|
165
|
};
|
sca8er |
3:0c3bcea5b4d0
|
166
|
struct _stat32i64 {
|
sca8er |
3:0c3bcea5b4d0
|
167
|
_dev_t st_dev;
|
sca8er |
3:0c3bcea5b4d0
|
168
|
_ino_t st_ino;
|
sca8er |
3:0c3bcea5b4d0
|
169
|
_mode_t st_mode;
|
sca8er |
3:0c3bcea5b4d0
|
170
|
short st_nlink;
|
sca8er |
3:0c3bcea5b4d0
|
171
|
short st_uid;
|
sca8er |
3:0c3bcea5b4d0
|
172
|
short st_gid;
|
sca8er |
3:0c3bcea5b4d0
|
173
|
_dev_t st_rdev;
|
sca8er |
3:0c3bcea5b4d0
|
174
|
__int64 st_size;
|
sca8er |
3:0c3bcea5b4d0
|
175
|
__time32_t st_atime;
|
sca8er |
3:0c3bcea5b4d0
|
176
|
__time32_t st_mtime;
|
sca8er |
3:0c3bcea5b4d0
|
177
|
__time32_t st_ctime;
|
sca8er |
3:0c3bcea5b4d0
|
178
|
};
|
sca8er |
3:0c3bcea5b4d0
|
179
|
struct _stat64i32 {
|
sca8er |
3:0c3bcea5b4d0
|
180
|
_dev_t st_dev;
|
sca8er |
3:0c3bcea5b4d0
|
181
|
_ino_t st_ino;
|
sca8er |
3:0c3bcea5b4d0
|
182
|
_mode_t st_mode;
|
sca8er |
3:0c3bcea5b4d0
|
183
|
short st_nlink;
|
sca8er |
3:0c3bcea5b4d0
|
184
|
short st_uid;
|
sca8er |
3:0c3bcea5b4d0
|
185
|
short st_gid;
|
sca8er |
3:0c3bcea5b4d0
|
186
|
_dev_t st_rdev;
|
sca8er |
3:0c3bcea5b4d0
|
187
|
__int32 st_size;
|
sca8er |
3:0c3bcea5b4d0
|
188
|
__time64_t st_atime;
|
sca8er |
3:0c3bcea5b4d0
|
189
|
__time64_t st_mtime;
|
sca8er |
3:0c3bcea5b4d0
|
190
|
__time64_t st_ctime;
|
sca8er |
3:0c3bcea5b4d0
|
191
|
};
|
sca8er |
3:0c3bcea5b4d0
|
192
|
#endif /* __MSVCRT_VERSION__ >= 0x0800 */
|
sca8er |
3:0c3bcea5b4d0
|
193
|
#endif /* __MSVCRT__ */
|
sca8er |
3:0c3bcea5b4d0
|
194
|
#define _STAT_DEFINED
|
sca8er |
3:0c3bcea5b4d0
|
195
|
#endif /* _STAT_DEFINED */
|
sca8er |
3:0c3bcea5b4d0
|
196
|
|
sca8er |
3:0c3bcea5b4d0
|
197
|
#ifdef __cplusplus
|
sca8er |
3:0c3bcea5b4d0
|
198
|
extern "C" {
|
sca8er |
3:0c3bcea5b4d0
|
199
|
#endif
|
sca8er |
3:0c3bcea5b4d0
|
200
|
|
sca8er |
3:0c3bcea5b4d0
|
201
|
#if __MSVCRT_VERSION__ < 0x0800
|
sca8er |
3:0c3bcea5b4d0
|
202
|
_CRTIMP int __cdecl __MINGW_NOTHROW _fstat (int, struct _stat*);
|
sca8er |
3:0c3bcea5b4d0
|
203
|
#endif
|
sca8er |
3:0c3bcea5b4d0
|
204
|
_CRTIMP int __cdecl __MINGW_NOTHROW _chmod (const char*, int);
|
sca8er |
3:0c3bcea5b4d0
|
205
|
#if __MSVCRT_VERSION__ < 0x0800
|
sca8er |
3:0c3bcea5b4d0
|
206
|
_CRTIMP int __cdecl __MINGW_NOTHROW _stat (const char*, struct _stat*);
|
sca8er |
3:0c3bcea5b4d0
|
207
|
#endif
|
sca8er |
3:0c3bcea5b4d0
|
208
|
|
sca8er |
3:0c3bcea5b4d0
|
209
|
#ifndef _NO_OLDNAMES
|
sca8er |
3:0c3bcea5b4d0
|
210
|
/* FIXME for __MSVCRT_VERSION__ >= 0x0800 */
|
sca8er |
3:0c3bcea5b4d0
|
211
|
/* These functions live in liboldnames.a. */
|
sca8er |
3:0c3bcea5b4d0
|
212
|
_CRTIMP int __cdecl __MINGW_NOTHROW fstat (int, struct stat*);
|
sca8er |
3:0c3bcea5b4d0
|
213
|
_CRTIMP int __cdecl __MINGW_NOTHROW chmod (const char*, int);
|
sca8er |
3:0c3bcea5b4d0
|
214
|
_CRTIMP int __cdecl __MINGW_NOTHROW stat (const char*, struct stat*);
|
sca8er |
3:0c3bcea5b4d0
|
215
|
|
sca8er |
3:0c3bcea5b4d0
|
216
|
#endif /* Not _NO_OLDNAMES */
|
sca8er |
3:0c3bcea5b4d0
|
217
|
|
sca8er |
3:0c3bcea5b4d0
|
218
|
#if defined (__MSVCRT__)
|
sca8er |
3:0c3bcea5b4d0
|
219
|
#if __MSVCRT_VERSION__ < 0x0800
|
sca8er |
3:0c3bcea5b4d0
|
220
|
_CRTIMP int __cdecl __MINGW_NOTHROW _fstati64(int, struct _stati64 *);
|
sca8er |
3:0c3bcea5b4d0
|
221
|
_CRTIMP int __cdecl __MINGW_NOTHROW _stati64(const char *, struct _stati64 *);
|
sca8er |
3:0c3bcea5b4d0
|
222
|
#endif
|
sca8er |
3:0c3bcea5b4d0
|
223
|
/* These require newer versions of msvcrt.dll (6.10 or higher). */
|
sca8er |
3:0c3bcea5b4d0
|
224
|
#if __MSVCRT_VERSION__ >= 0x0601
|
sca8er |
3:0c3bcea5b4d0
|
225
|
_CRTIMP int __cdecl __MINGW_NOTHROW _fstat64 (int, struct __stat64*);
|
sca8er |
3:0c3bcea5b4d0
|
226
|
_CRTIMP int __cdecl __MINGW_NOTHROW _stat64 (const char*, struct __stat64*);
|
sca8er |
3:0c3bcea5b4d0
|
227
|
#endif /* __MSVCRT_VERSION__ >= 0x0601 */
|
sca8er |
3:0c3bcea5b4d0
|
228
|
#if __MSVCRT_VERSION__ >= 0x0800
|
sca8er |
3:0c3bcea5b4d0
|
229
|
_CRTIMP int __cdecl __MINGW_NOTHROW _fstat32 (int, struct __stat32*);
|
sca8er |
3:0c3bcea5b4d0
|
230
|
_CRTIMP int __cdecl __MINGW_NOTHROW _stat32 (const char*, struct __stat32*);
|
sca8er |
3:0c3bcea5b4d0
|
231
|
_CRTIMP int __cdecl __MINGW_NOTHROW _fstat32i64 (int, struct _stat32i64*);
|
sca8er |
3:0c3bcea5b4d0
|
232
|
_CRTIMP int __cdecl __MINGW_NOTHROW _fstat64i32 (int, struct _stat64i32*);
|
sca8er |
3:0c3bcea5b4d0
|
233
|
_CRTIMP int __cdecl __MINGW_NOTHROW _stat32i64 (const char*, struct _stat32i64*);
|
sca8er |
3:0c3bcea5b4d0
|
234
|
_CRTIMP int __cdecl __MINGW_NOTHROW _stat64i32 (const char*, struct _stat64i32*);
|
sca8er |
3:0c3bcea5b4d0
|
235
|
#ifndef _USE_32BIT_TIME_T
|
sca8er |
3:0c3bcea5b4d0
|
236
|
_CRTALIAS int __cdecl __MINGW_NOTHROW _fstat (int _v1, struct _stat* _v2) { return(_fstat64i32 (_v1,(struct _stat64i32*)_v2)); }
|
sca8er |
3:0c3bcea5b4d0
|
237
|
_CRTALIAS int __cdecl __MINGW_NOTHROW _stat (const char* _v1, struct _stat* _v2) { return(_stat64i32 (_v1,(struct _stat64i32*)_v2)); }
|
sca8er |
3:0c3bcea5b4d0
|
238
|
_CRTALIAS int __cdecl __MINGW_NOTHROW _fstati64 (int _v1, struct _stati64* _v2) { return(_fstat64 (_v1,(struct __stat64*)_v2)); }
|
sca8er |
3:0c3bcea5b4d0
|
239
|
_CRTALIAS int __cdecl __MINGW_NOTHROW _stati64 (const char* _v1, struct _stati64* _v2) { return(_stat64 (_v1,(struct __stat64*)_v2)); }
|
sca8er |
3:0c3bcea5b4d0
|
240
|
#else
|
sca8er |
3:0c3bcea5b4d0
|
241
|
_CRTALIAS int __cdecl __MINGW_NOTHROW _fstat (int _v1, struct _stat* _v2) { return(_fstat32 (_v1,(struct __stat32*)_v2)); }
|
sca8er |
3:0c3bcea5b4d0
|
242
|
_CRTALIAS int __cdecl __MINGW_NOTHROW _stat (const char* _v1, struct _stat* _v2) { return(_stat32 (_v1,(struct __stat32*)_v2)); }
|
sca8er |
3:0c3bcea5b4d0
|
243
|
_CRTALIAS int __cdecl __MINGW_NOTHROW _fstati64 (int _v1, struct _stati64* _v2) { return(_fstat32i64 (_v1,(struct _stat32i64*)_v2)); }
|
sca8er |
3:0c3bcea5b4d0
|
244
|
_CRTALIAS int __cdecl __MINGW_NOTHROW _stati64 (const char* _v1, struct _stati64* _v2) { return(_stat32i64 (_v1,(struct _stat32i64*)_v2)); }
|
sca8er |
3:0c3bcea5b4d0
|
245
|
#endif /* !_USE_32BIT_TIME_T */
|
sca8er |
3:0c3bcea5b4d0
|
246
|
#endif /* __MSVCRT_VERSION__ >= 0x0800 */
|
sca8er |
3:0c3bcea5b4d0
|
247
|
|
sca8er |
3:0c3bcea5b4d0
|
248
|
|
sca8er |
3:0c3bcea5b4d0
|
249
|
#if !defined ( _WSTAT_DEFINED) /* also declared in wchar.h */
|
sca8er |
3:0c3bcea5b4d0
|
250
|
#if __MSVCRT_VERSION__ < 0x0800
|
sca8er |
3:0c3bcea5b4d0
|
251
|
_CRTIMP int __cdecl __MINGW_NOTHROW _wstat(const wchar_t*, struct _stat*);
|
sca8er |
3:0c3bcea5b4d0
|
252
|
_CRTIMP int __cdecl __MINGW_NOTHROW _wstati64 (const wchar_t*, struct _stati64*);
|
sca8er |
3:0c3bcea5b4d0
|
253
|
#endif
|
sca8er |
3:0c3bcea5b4d0
|
254
|
#if __MSVCRT_VERSION__ >= 0x0601
|
sca8er |
3:0c3bcea5b4d0
|
255
|
_CRTIMP int __cdecl __MINGW_NOTHROW _wstat64 (const wchar_t*, struct __stat64*);
|
sca8er |
3:0c3bcea5b4d0
|
256
|
#endif /* __MSVCRT_VERSION__ >= 0x0601 */
|
sca8er |
3:0c3bcea5b4d0
|
257
|
#if __MSVCRT_VERSION__ >= 0x0800
|
sca8er |
3:0c3bcea5b4d0
|
258
|
_CRTIMP int __cdecl __MINGW_NOTHROW _wstat32 (const wchar_t*, struct __stat32*);
|
sca8er |
3:0c3bcea5b4d0
|
259
|
_CRTIMP int __cdecl __MINGW_NOTHROW _wstat32i64 (const wchar_t*, struct _stat32i64*);
|
sca8er |
3:0c3bcea5b4d0
|
260
|
_CRTIMP int __cdecl __MINGW_NOTHROW _wstat64i32 (const wchar_t*, struct _stat64i32*);
|
sca8er |
3:0c3bcea5b4d0
|
261
|
#ifndef _USE_32BIT_TIME_T
|
sca8er |
3:0c3bcea5b4d0
|
262
|
_CRTALIAS int __cdecl __MINGW_NOTHROW _wstat (const wchar_t* _v1, struct _stat* _v2) { return(_wstat64i32 (_v1,(struct _stat64i32*)_v2)); }
|
sca8er |
3:0c3bcea5b4d0
|
263
|
_CRTALIAS int __cdecl __MINGW_NOTHROW _wstati64 (const wchar_t* _v1, struct _stati64* _v2) { return(_wstat64 (_v1,(struct __stat64*)_v2)); }
|
sca8er |
3:0c3bcea5b4d0
|
264
|
#else
|
sca8er |
3:0c3bcea5b4d0
|
265
|
_CRTALIAS int __cdecl __MINGW_NOTHROW _wstat (const wchar_t* _v1, struct _stat* _v2) { return(_wstat32 (_v1,(struct __stat32*)_v2)); }
|
sca8er |
3:0c3bcea5b4d0
|
266
|
_CRTALIAS int __cdecl __MINGW_NOTHROW _wstati64 (const wchar_t* _v1, struct _stati64* _v2) { return(_wstat32i64 (_v1,(struct _stat32i64*)_v2)); }
|
sca8er |
3:0c3bcea5b4d0
|
267
|
#endif /* !_USE_32BIT_TIME_T */
|
sca8er |
3:0c3bcea5b4d0
|
268
|
#endif /* __MSVCRT_VERSION__ >= 0x0800 */
|
sca8er |
3:0c3bcea5b4d0
|
269
|
#define _WSTAT_DEFINED
|
sca8er |
3:0c3bcea5b4d0
|
270
|
#endif /* _WSTAT_DEFIND */
|
sca8er |
3:0c3bcea5b4d0
|
271
|
#endif /* __MSVCRT__ */
|
sca8er |
3:0c3bcea5b4d0
|
272
|
|
sca8er |
3:0c3bcea5b4d0
|
273
|
#ifdef __cplusplus
|
sca8er |
3:0c3bcea5b4d0
|
274
|
}
|
sca8er |
3:0c3bcea5b4d0
|
275
|
#endif
|
sca8er |
3:0c3bcea5b4d0
|
276
|
|
sca8er |
3:0c3bcea5b4d0
|
277
|
#endif /* Not RC_INVOKED */
|
sca8er |
3:0c3bcea5b4d0
|
278
|
|
sca8er |
3:0c3bcea5b4d0
|
279
|
#endif /* Not _STAT_H_ */
|