Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
6187ee13
Commit
6187ee13
authored
Feb 20, 2020
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 20, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Include sys/stat.h from wchar.h.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f0779722
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
139 deletions
+1
-139
stat.h
include/msvcrt/sys/stat.h
+0
-4
wchar.h
include/msvcrt/wchar.h
+1
-135
No files found.
include/msvcrt/sys/stat.h
View file @
6187ee13
...
...
@@ -167,14 +167,10 @@ int __cdecl _stati64(const char*,struct _stati64*);
int
__cdecl
_fstat64
(
int
,
struct
_stat64
*
);
int
__cdecl
_stat64
(
const
char
*
,
struct
_stat64
*
);
int
__cdecl
_umask
(
int
);
#ifndef _WSTAT_DEFINED
#define _WSTAT_DEFINED
int
__cdecl
_wstat
(
const
wchar_t
*
,
struct
_stat
*
);
int
__cdecl
_wstat32
(
const
wchar_t
*
,
struct
_stat32
*
);
int
__cdecl
_wstati64
(
const
wchar_t
*
,
struct
_stati64
*
);
int
__cdecl
_wstat64
(
const
wchar_t
*
,
struct
_stat64
*
);
#endif
/* _WSTAT_DEFINED */
#ifdef __cplusplus
}
...
...
include/msvcrt/wchar.h
View file @
6187ee13
...
...
@@ -12,6 +12,7 @@
#include <corecrt_wio.h>
#include <corecrt_wtime.h>
#include <string.h>
#include <sys/stat.h>
#include <pshpack8.h>
...
...
@@ -24,135 +25,8 @@ extern "C" {
#define WCHAR_MAX 0xffffU
#endif
#ifndef DECLSPEC_ALIGN
# if defined(_MSC_VER) && (_MSC_VER >= 1300) && !defined(MIDL_PASS)
# define DECLSPEC_ALIGN(x) __declspec(align(x))
# elif defined(__GNUC__)
# define DECLSPEC_ALIGN(x) __attribute__((aligned(x)))
# else
# define DECLSPEC_ALIGN(x)
# endif
#endif
typedef
int
mbstate_t
;
#ifndef _DEV_T_DEFINED
typedef
unsigned
int
_dev_t
;
#define _DEV_T_DEFINED
#endif
#ifndef _INO_T_DEFINED
typedef
unsigned
short
_ino_t
;
#define _INO_T_DEFINED
#endif
#ifndef _OFF_T_DEFINED
typedef
int
_off_t
;
#define _OFF_T_DEFINED
#endif
#ifndef _STAT_DEFINED
#define _STAT_DEFINED
struct
_stat
{
_dev_t
st_dev
;
_ino_t
st_ino
;
unsigned
short
st_mode
;
short
st_nlink
;
short
st_uid
;
short
st_gid
;
_dev_t
st_rdev
;
_off_t
st_size
;
time_t
st_atime
;
time_t
st_mtime
;
time_t
st_ctime
;
};
struct
stat
{
_dev_t
st_dev
;
_ino_t
st_ino
;
unsigned
short
st_mode
;
short
st_nlink
;
short
st_uid
;
short
st_gid
;
_dev_t
st_rdev
;
_off_t
st_size
;
time_t
st_atime
;
time_t
st_mtime
;
time_t
st_ctime
;
};
struct
_stat32
{
_dev_t
st_dev
;
_ino_t
st_ino
;
unsigned
short
st_mode
;
short
st_nlink
;
short
st_uid
;
short
st_gid
;
_dev_t
st_rdev
;
_off_t
st_size
;
__time32_t
st_atime
;
__time32_t
st_mtime
;
__time32_t
st_ctime
;
};
struct
_stat32i64
{
_dev_t
st_dev
;
_ino_t
st_ino
;
unsigned
short
st_mode
;
short
st_nlink
;
short
st_uid
;
short
st_gid
;
_dev_t
st_rdev
;
__int64
DECLSPEC_ALIGN
(
8
)
st_size
;
time_t
st_atime
;
time_t
st_mtime
;
time_t
st_ctime
;
};
struct
_stat64i32
{
_dev_t
st_dev
;
_ino_t
st_ino
;
unsigned
short
st_mode
;
short
st_nlink
;
short
st_uid
;
short
st_gid
;
_dev_t
st_rdev
;
_off_t
st_size
;
__time64_t
st_atime
;
__time64_t
st_mtime
;
__time64_t
st_ctime
;
};
struct
_stati64
{
_dev_t
st_dev
;
_ino_t
st_ino
;
unsigned
short
st_mode
;
short
st_nlink
;
short
st_uid
;
short
st_gid
;
_dev_t
st_rdev
;
__int64
DECLSPEC_ALIGN
(
8
)
st_size
;
time_t
st_atime
;
time_t
st_mtime
;
time_t
st_ctime
;
};
struct
_stat64
{
_dev_t
st_dev
;
_ino_t
st_ino
;
unsigned
short
st_mode
;
short
st_nlink
;
short
st_uid
;
short
st_gid
;
_dev_t
st_rdev
;
__int64
DECLSPEC_ALIGN
(
8
)
st_size
;
__time64_t
st_atime
;
__time64_t
st_mtime
;
__time64_t
st_ctime
;
};
#endif
/* _STAT_DEFINED */
/* ASCII char classification table - binary compatible */
#define _UPPER 0x0001
/* C1_UPPER */
#define _LOWER 0x0002
/* C1_LOWER */
...
...
@@ -221,14 +95,6 @@ int __cdecl _wspawnvpe(int,const wchar_t*,const wchar_t* const *,const wcha
int
__cdecl
_wsystem
(
const
wchar_t
*
);
#endif
/* _WPROCESS_DEFINED */
#ifndef _WSTAT_DEFINED
#define _WSTAT_DEFINED
int
__cdecl
_wstat
(
const
wchar_t
*
,
struct
_stat
*
);
int
__cdecl
_wstat32
(
const
wchar_t
*
,
struct
_stat32
*
);
int
__cdecl
_wstati64
(
const
wchar_t
*
,
struct
_stati64
*
);
int
__cdecl
_wstat64
(
const
wchar_t
*
,
struct
_stat64
*
);
#endif
/* _WSTAT_DEFINED */
#ifndef _WSTDLIB_DEFINED
#define _WSTDLIB_DEFINED
wchar_t
*
__cdecl
_itow
(
int
,
wchar_t
*
,
int
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment