~steve-sk2/mingw-w64/oneiric

« back to all changes in this revision

Viewing changes to mingw-w64-headers/include/direct.h

  • Committer: Bazaar Package Importer
  • Author(s): Stephen Kitt
  • Date: 2010-11-18 00:04:46 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20101118000446-xe24b423su55onyl
Tags: 1.0+20101003-1
* New maintainer. (Closes: #594371.)
* New upstream snapshot:
  - Includes getopt.h. (Closes: #569914.)
* Build g++ for Win64. (Closes: #600451.)
* Standards-Version 3.9.1 (new packaging).
* Include patch from
  http://mingw-w64.svn.sourceforge.net/viewvc/mingw-w64?view=revision&revision=3715
  as suggested by Rafaël Carré.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/**
 
2
 * This file has no copyright assigned and is placed in the Public Domain.
 
3
 * This file is part of the w64 mingw-runtime package.
 
4
 * No warranty is given; refer to the file DISCLAIMER.PD within this package.
 
5
 */
 
6
#ifndef _INC_DIRECT
 
7
#define _INC_DIRECT
 
8
 
 
9
#include <_mingw.h>
 
10
#include <io.h>
 
11
 
 
12
#pragma pack(push,_CRT_PACKING)
 
13
 
 
14
#ifdef __cplusplus
 
15
extern "C" {
 
16
#endif
 
17
 
 
18
#ifndef _DISKFREE_T_DEFINED
 
19
#define _DISKFREE_T_DEFINED
 
20
  struct _diskfree_t {
 
21
    unsigned total_clusters;
 
22
    unsigned avail_clusters;
 
23
    unsigned sectors_per_cluster;
 
24
    unsigned bytes_per_sector;
 
25
  };
 
26
#endif
 
27
 
 
28
  _CRTIMP char *__cdecl _getcwd(char *_DstBuf,int _SizeInBytes);
 
29
  _CRTIMP char *__cdecl _getdcwd(int _Drive,char *_DstBuf,int _SizeInBytes);
 
30
  char *__cdecl _getdcwd_nolock(int _Drive,char *_DstBuf,int _SizeInBytes);
 
31
  _CRTIMP int __cdecl _chdir(const char *_Path);
 
32
  _CRTIMP int __cdecl _mkdir(const char *_Path);
 
33
  _CRTIMP int __cdecl _rmdir(const char *_Path);
 
34
  _CRTIMP int __cdecl _chdrive(int _Drive);
 
35
  _CRTIMP int __cdecl _getdrive(void);
 
36
  _CRTIMP unsigned long __cdecl _getdrives(void);
 
37
 
 
38
#ifndef _GETDISKFREE_DEFINED
 
39
#define _GETDISKFREE_DEFINED
 
40
  _CRTIMP unsigned __cdecl _getdiskfree(unsigned _Drive,struct _diskfree_t *_DiskFree);
 
41
#endif
 
42
 
 
43
#ifndef _WDIRECT_DEFINED
 
44
#define _WDIRECT_DEFINED
 
45
  _CRTIMP wchar_t *__cdecl _wgetcwd(wchar_t *_DstBuf,int _SizeInWords);
 
46
  _CRTIMP wchar_t *__cdecl _wgetdcwd(int _Drive,wchar_t *_DstBuf,int _SizeInWords);
 
47
  wchar_t *__cdecl _wgetdcwd_nolock(int _Drive,wchar_t *_DstBuf,int _SizeInWords);
 
48
  _CRTIMP int __cdecl _wchdir(const wchar_t *_Path);
 
49
  _CRTIMP int __cdecl _wmkdir(const wchar_t *_Path);
 
50
  _CRTIMP int __cdecl _wrmdir(const wchar_t *_Path);
 
51
#endif
 
52
 
 
53
#ifndef NO_OLDNAMES
 
54
 
 
55
#define diskfree_t _diskfree_t
 
56
 
 
57
  char *__cdecl getcwd(char *_DstBuf,int _SizeInBytes);
 
58
  int __cdecl chdir(const char *_Path);
 
59
  int __cdecl mkdir(const char *_Path);
 
60
  int __cdecl rmdir(const char *_Path);
 
61
#endif
 
62
 
 
63
#ifdef __cplusplus
 
64
}
 
65
#endif
 
66
 
 
67
#pragma pack(pop)
 
68
#endif