Changeset 9631 for trunk/include/win/msvcrt/sys
- Timestamp:
- Jan 6, 2003, 2:24:23 PM (23 years ago)
- Location:
- trunk/include/win/msvcrt/sys
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/win/msvcrt/sys/stat.h
r8207 r9631 10 10 #define __WINE_USE_MSVCRT 11 11 12 #include " msvcrt/sys/types.h"12 #include "sys/types.h" 13 13 14 #ifndef MSVCRT 15 # ifdef USE_MSVCRT_PREFIX 16 # define MSVCRT(x) MSVCRT_##x 17 # else 18 # define MSVCRT(x) x 19 # endif 20 #endif 21 22 #ifndef MSVCRT_WCHAR_T_DEFINED 23 #define MSVCRT_WCHAR_T_DEFINED 24 #ifndef __cplusplus 25 typedef unsigned short MSVCRT(wchar_t); 26 #endif 27 #endif 28 29 #ifndef _MSC_VER 30 # ifndef __int64 31 # define __int64 long long 32 # endif 33 #endif 34 35 #ifndef MSVCRT_DEV_T_DEFINED 36 typedef unsigned int _dev_t; 37 #define MSVCRT_DEV_T_DEFINED 38 #endif 39 40 #ifndef MSVCRT_INO_T_DEFINED 41 typedef unsigned short _ino_t; 42 #define MSVCRT_INO_T_DEFINED 43 #endif 44 45 #ifndef MSVCRT_TIME_T_DEFINED 46 typedef long MSVCRT(time_t); 47 #define MSVCRT_TIME_T_DEFINED 48 #endif 49 50 #ifndef MSVCRT_OFF_T_DEFINED 51 typedef int MSVCRT(_off_t); 52 #define MSVCRT_OFF_T_DEFINED 53 #endif 14 54 15 55 #define _S_IEXEC 0x0040 … … 22 62 #define _S_IFMT 0xF000 23 63 64 /* for FreeBSD */ 65 #undef st_atime 66 #undef st_ctime 67 #undef st_mtime 68 69 #ifndef MSVCRT_STAT_DEFINED 70 #define MSVCRT_STAT_DEFINED 24 71 25 72 struct _stat { … … 31 78 short st_gid; 32 79 _dev_t st_rdev; 33 _off_tst_size;80 MSVCRT(_off_t) st_size; 34 81 MSVCRT(time_t) st_atime; 35 82 MSVCRT(time_t) st_mtime; … … 50 97 MSVCRT(time_t) st_ctime; 51 98 }; 52 99 #endif /* MSVCRT_STAT_DEFINED */ 53 100 54 101 #ifdef __cplusplus … … 56 103 #endif 57 104 58 int _fstat(int,struct _stat*); 105 int MSVCRT(_fstat)(int,struct _stat*); 106 int MSVCRT(_stat)(const char*,struct _stat*); 59 107 int _fstati64(int,struct _stati64*); 60 int _stat(const char*,struct _stat*);61 108 int _stati64(const char*,struct _stati64*); 62 109 63 int _wstat(const WCHAR*,struct _stat*); 64 int _wstati64(const WCHAR*,struct _stati64*); 110 #ifndef MSVCRT_WSTAT_DEFINED 111 #define MSVCRT_WSTAT_DEFINED 112 int _wstat(const MSVCRT(wchar_t)*,struct _stat*); 113 int _wstati64(const MSVCRT(wchar_t)*,struct _stati64*); 114 #endif /* MSVCRT_WSTAT_DEFINED */ 65 115 66 116 #ifdef __cplusplus -
trunk/include/win/msvcrt/sys/timeb.h
r8207 r9631 22 22 #define __WINE_USE_MSVCRT 23 23 24 #include "msvcrt/sys/types.h" /* For time_t */ 24 #ifndef MSVCRT 25 # ifdef USE_MSVCRT_PREFIX 26 # define MSVCRT(x) MSVCRT_##x 27 # else 28 # define MSVCRT(x) x 29 # endif 30 #endif 25 31 32 #ifndef MSVCRT_TIME_T_DEFINED 33 typedef long MSVCRT(time_t); 34 #define MSVCRT_TIME_T_DEFINED 35 #endif 26 36 37 #ifndef MSVCRT_TIMEB_DEFINED 38 #define MSVCRT_TIMEB_DEFINED 27 39 struct _timeb 28 40 { … … 32 44 short dstflag; 33 45 }; 46 #endif /* MSVCRT_TIMEB_DEFINED */ 34 47 35 48 -
trunk/include/win/msvcrt/sys/types.h
r8207 r9631 22 22 #define __WINE_USE_MSVCRT 23 23 24 25 #ifdef USE_MSVCRT_PREFIX 26 #define MSVCRT(x) MSVCRT_##x 27 #else 28 #define MSVCRT(x) x 24 #ifndef MSVCRT 25 # ifdef USE_MSVCRT_PREFIX 26 # define MSVCRT(x) MSVCRT_##x 27 # else 28 # define MSVCRT(x) x 29 # endif 29 30 #endif 30 31 32 #ifndef MSVCRT_DEV_T_DEFINED 33 typedef unsigned int _dev_t; 34 #define MSVCRT_DEV_T_DEFINED 35 #endif 31 36 32 typedef unsigned int _dev_t; 37 #ifndef MSVCRT_INO_T_DEFINED 33 38 typedef unsigned short _ino_t; 34 typedef int _off_t; 35 typedef long MSVCRT(time_t); 39 #define MSVCRT_INO_T_DEFINED 40 #endif 41 42 #ifndef MSVCRT_OFF_T_DEFINED 43 typedef int MSVCRT(_off_t); 44 #define MSVCRT_OFF_T_DEFINED 45 #endif 46 47 #ifndef MSVCRT_TIME_T_DEFINED 48 typedef long MSVCRT(time_t); 49 #define MSVCRT_TIME_T_DEFINED 50 #endif 36 51 37 52 -
trunk/include/win/msvcrt/sys/utime.h
r8207 r9631 22 22 #define __WINE_USE_MSVCRT 23 23 24 #include "winnt.h" 25 #include "msvcrt/sys/types.h" /* For time_t */ 24 #ifndef MSVCRT 25 # ifdef USE_MSVCRT_PREFIX 26 # define MSVCRT(x) MSVCRT_##x 27 # else 28 # define MSVCRT(x) x 29 # endif 30 #endif 26 31 32 #ifndef MSVCRT_WCHAR_T_DEFINED 33 #define MSVCRT_WCHAR_T_DEFINED 34 #ifndef __cplusplus 35 typedef unsigned short MSVCRT(wchar_t); 36 #endif 37 #endif 27 38 39 #ifndef MSVCRT_TIME_T_DEFINED 40 typedef long MSVCRT(time_t); 41 #define MSVCRT_TIME_T_DEFINED 42 #endif 43 44 #ifndef MSVCRT_UTIMBUF_DEFINED 45 #define MSVCRT_UTIMBUF_DEFINED 28 46 struct _utimbuf 29 47 { … … 31 49 MSVCRT(time_t) modtime; 32 50 }; 33 51 #endif /* MSVCRT_UTIMBUF_DEFINED */ 34 52 35 53 #ifdef __cplusplus … … 40 58 int _utime(const char*,struct _utimbuf*); 41 59 42 int _wutime(const WCHAR*,struct _utimbuf*);60 int _wutime(const MSVCRT(wchar_t)*,struct _utimbuf*); 43 61 44 62 #ifdef __cplusplus
Note:
See TracChangeset
for help on using the changeset viewer.