diff options
author | Earnie Boyd <earnie@users.sf.net> | 2000-11-21 02:50:03 +0000 |
---|---|---|
committer | Earnie Boyd <earnie@users.sf.net> | 2000-11-21 02:50:03 +0000 |
commit | 6126c12345d31cdd4714b3bb40ba54f13347016d (patch) | |
tree | 90236da9edcf2f702e06f006f9eac38d53a6aac4 /winsup/mingw/include/io.h | |
parent | d5b692284b02ca019ed50fa33790c38f5c905d00 (diff) | |
download | cygnal-6126c12345d31cdd4714b3bb40ba54f13347016d.tar.gz cygnal-6126c12345d31cdd4714b3bb40ba54f13347016d.tar.bz2 cygnal-6126c12345d31cdd4714b3bb40ba54f13347016d.zip |
* 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
Diffstat (limited to 'winsup/mingw/include/io.h')
-rw-r--r-- | winsup/mingw/include/io.h | 56 |
1 files changed, 46 insertions, 10 deletions
diff --git a/winsup/mingw/include/io.h b/winsup/mingw/include/io.h index e30f8687e..6cb65a4da 100644 --- a/winsup/mingw/include/io.h +++ b/winsup/mingw/include/io.h @@ -75,6 +75,16 @@ struct _finddata_t char name[FILENAME_MAX]; /* may include spaces. */ }; +struct _finddatai64_t { + unsigned attrib; + time_t time_create; + time_t time_access; + time_t time_write; + __int64 size; + char name[FILENAME_MAX]; +}; + + #ifndef _WFINDDATA_T_DEFINED struct _wfinddata_t { unsigned attrib; @@ -84,6 +94,15 @@ struct _wfinddata_t { _fsize_t size; wchar_t name[FILENAME_MAX]; /* may include spaces. */ }; +struct _wfinddatai64_t { + unsigned attrib; + time_t time_create; + time_t time_access; + time_t time_write; + __int64 size; + wchar_t name[FILENAME_MAX]; +}; + #define _WFINDDATA_T_DEFINED #endif @@ -107,6 +126,14 @@ int _mkdir (const char*); char* _mktemp (char*); int _rmdir (const char*); +#ifdef __MSVCRT__ +__int64 _filelengthi64(int); +long _findfirsti64(const char*, struct _finddatai64_t*); +int _findnexti64(long, struct _finddatai64_t*); +__int64 _lseeki64(int, __int64, int); +__int64 _telli64(int); +#endif /* __MSVCRT__ */ + #ifndef _NO_OLDNAMES @@ -193,17 +220,23 @@ int _unlink (const char*); int _write (int, const void*, unsigned int); /* Wide character versions. Also declared in wchar.h. */ -int _waccess(const wchar_t *, int); -int _wchmod(const wchar_t *, int); -int _wcreat(const wchar_t *, int); -long _wfindfirst(wchar_t *, struct _wfinddata_t *); +/* Not in crtdll.dll */ +#if !defined (_WIO_DEFINED) +#if defined (__MSVCRT__) +int _waccess(const wchar_t*, int); +int _wchmod(const wchar_t*, int); +int _wcreat(const wchar_t*, int); +long _wfindfirst(wchar_t*, struct _wfinddata_t*); int _wfindnext(long, struct _wfinddata_t *); -int _wunlink(const wchar_t *); -int _wrename(const wchar_t *, const wchar_t *); -int _wopen(const wchar_t *, int, ...); -int _wsopen(const wchar_t *, int, int, ...); -wchar_t * _wmktemp(wchar_t *); - +int _wunlink(const wchar_t*); +int _wopen(const wchar_t*, int, ...); +int _wsopen(const wchar_t*, int, int, ...); +wchar_t * _wmktemp(wchar_t*); +long _wfindfirsti64(const wchar_t*, struct _wfinddatai64_t*); +int _wfindnexti64(long, struct _wfinddatai64_t*); +#endif /* defined (__MSVCRT__) */ +#define _WIO_DEFINED +#endif /* _WIO_DEFINED */ #ifndef _NO_OLDNAMES /* @@ -233,6 +266,8 @@ int write (int, const void*, unsigned int); #endif /* _UWIN */ /* Wide character versions. Also declared in wchar.h. */ +/* Where do these live? Not in libmoldname.a nor in libmsvcrt.a */ +#if 0 int waccess(const wchar_t *, int); int wchmod(const wchar_t *, int); int wcreat(const wchar_t *, int); @@ -243,6 +278,7 @@ int wrename(const wchar_t *, const wchar_t *); int wopen(const wchar_t *, int, ...); int wsopen(const wchar_t *, int, int, ...); wchar_t * wmktemp(wchar_t *); +#endif #endif /* Not _NO_OLDNAMES */ |