From 6126c12345d31cdd4714b3bb40ba54f13347016d Mon Sep 17 00:00:00 2001 From: Earnie Boyd Date: Tue, 21 Nov 2000 02:50:03 +0000 Subject: * include/direct.h: add guard around MSVCRT-only prototytpes * include/io.h: add __int64 struct definitions and function prototypes; add guard for MSVCRT-only prototypes * include/limits.h: add ISO C9x macros LLONG_MIN, LLONG_MAX, ULLONG_MAX * include/stdio.h: add wchar function prototypes (__MSVCRT__); put wchar functions together to make sync with wchar.h easier * include/stdlib.h: add wide char functions (__MSVCRT__) * include/string.h: add string collation functions ( __MSVCRT__) * include/sys/stat.h: add __int64 struct and function ( __MSVCRT__) * include/tchar.h: add macros and macro function definitions * include/wchar.h: add wide char function prototypes ( __MSVCRT__ ); enclose more functions in __MSVCRT__ guard; some oldname wide char function prototypes #if (0)'d * profile/gmon.h: add guard around BSD-ish typedefs --- winsup/mingw/include/sys/stat.h | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) (limited to 'winsup/mingw/include/sys') diff --git a/winsup/mingw/include/sys/stat.h b/winsup/mingw/include/sys/stat.h index f1b327e46..0178660bd 100644 --- a/winsup/mingw/include/sys/stat.h +++ b/winsup/mingw/include/sys/stat.h @@ -132,7 +132,21 @@ struct stat time_t st_mtime; /* Modified time */ time_t st_ctime; /* Creation time */ }; - +#if defined (__MSVCRT__) +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 st_size; + time_t st_atime; + time_t st_mtime; + time_t st_ctime; +}; +#endif /* __MSVCRT__ */ #define _STAT_DEFINED #endif /* _STAT_DEFINED */ @@ -144,14 +158,15 @@ int _fstat (int, struct _stat*); int _chmod (const char*, int); int _stat (const char*, struct _stat*); -#ifndef _WSTAT_DEFINED - -/* also declared in wchar.h */ - +#if defined (__MSVCRT__) +int _fstati64(int, struct _stati64 *); +int _stati64(const char *, struct _stati64 *); +#if !defined ( _WSTAT_DEFINED) /* also declared in wchar.h */ int _wstat(const wchar_t*, struct _stat*); - +int _wstati64 (const wchar_t*, struct _stati64*); #define _WSTAT_DEFINED #endif /* _WSTAT_DEFIND */ +#endif /* __MSVCRT__ */ #ifndef _NO_OLDNAMES -- cgit v1.2.3