tinycc/win32/include/direct.h

69 lines
1.9 KiB
C
Raw Permalink Normal View History

2009-07-18 20:06:37 +00:00
/**
* This file has no copyright assigned and is placed in the Public Domain.
* This file is part of the w64 mingw-runtime package.
* No warranty is given; refer to the file DISCLAIMER within this package.
2005-04-17 13:10:37 +00:00
*/
2009-07-18 20:06:37 +00:00
#ifndef _INC_DIRECT
#define _INC_DIRECT
2005-04-17 13:10:37 +00:00
#include <_mingw.h>
#include <io.h>
2009-07-18 20:06:37 +00:00
#pragma pack(push,_CRT_PACKING)
2005-04-17 13:10:37 +00:00
2009-07-18 20:06:37 +00:00
#ifdef __cplusplus
2005-04-17 13:10:37 +00:00
extern "C" {
#endif
#ifndef _DISKFREE_T_DEFINED
#define _DISKFREE_T_DEFINED
2009-07-18 20:06:37 +00:00
struct _diskfree_t {
unsigned total_clusters;
unsigned avail_clusters;
unsigned sectors_per_cluster;
unsigned bytes_per_sector;
};
#endif
2005-04-17 13:10:37 +00:00
2009-07-18 20:06:37 +00:00
_CRTIMP char *__cdecl _getcwd(char *_DstBuf,int _SizeInBytes);
_CRTIMP char *__cdecl _getdcwd(int _Drive,char *_DstBuf,int _SizeInBytes);
char *__cdecl _getdcwd_nolock(int _Drive,char *_DstBuf,int _SizeInBytes);
_CRTIMP int __cdecl _chdir(const char *_Path);
_CRTIMP int __cdecl _mkdir(const char *_Path);
_CRTIMP int __cdecl _rmdir(const char *_Path);
_CRTIMP int __cdecl _chdrive(int _Drive);
_CRTIMP int __cdecl _getdrive(void);
_CRTIMP unsigned long __cdecl _getdrives(void);
#ifndef _GETDISKFREE_DEFINED
#define _GETDISKFREE_DEFINED
_CRTIMP unsigned __cdecl _getdiskfree(unsigned _Drive,struct _diskfree_t *_DiskFree);
2005-04-17 13:10:37 +00:00
#endif
#ifndef _WDIRECT_DEFINED
#define _WDIRECT_DEFINED
2009-07-18 20:06:37 +00:00
_CRTIMP wchar_t *__cdecl _wgetcwd(wchar_t *_DstBuf,int _SizeInWords);
_CRTIMP wchar_t *__cdecl _wgetdcwd(int _Drive,wchar_t *_DstBuf,int _SizeInWords);
wchar_t *__cdecl _wgetdcwd_nolock(int _Drive,wchar_t *_DstBuf,int _SizeInWords);
_CRTIMP int __cdecl _wchdir(const wchar_t *_Path);
_CRTIMP int __cdecl _wmkdir(const wchar_t *_Path);
_CRTIMP int __cdecl _wrmdir(const wchar_t *_Path);
2005-04-17 13:10:37 +00:00
#endif
2009-07-18 20:06:37 +00:00
#ifndef NO_OLDNAMES
2005-04-17 13:10:37 +00:00
2009-07-18 20:06:37 +00:00
#define diskfree_t _diskfree_t
2005-04-17 13:10:37 +00:00
2009-07-18 20:06:37 +00:00
char *__cdecl getcwd(char *_DstBuf,int _SizeInBytes);
int __cdecl chdir(const char *_Path);
int __cdecl mkdir(const char *_Path);
int __cdecl rmdir(const char *_Path);
#endif
2005-04-17 13:10:37 +00:00
2009-07-18 20:06:37 +00:00
#ifdef __cplusplus
}
#endif
2005-04-17 13:10:37 +00:00
2009-07-18 20:06:37 +00:00
#pragma pack(pop)
#endif