ReactOS 0.4.16-dev-2104-gb84fa49
direct.h
Go to the documentation of this file.
1/*
2 * Path and directory definitions
3 *
4 * Derived from the mingw header written by Colin Peters.
5 * Modified for Wine use by Jon Griffiths and Francois Gouget.
6 * This file is in the public domain.
7 */
8#ifndef __WINE_DIRECT_H
9#define __WINE_DIRECT_H
10
11#include <corecrt_wdirect.h>
12
13#include <pshpack8.h>
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
19#ifndef _DISKFREE_T_DEFINED
20#define _DISKFREE_T_DEFINED
22 unsigned int total_clusters;
23 unsigned int avail_clusters;
24 unsigned int sectors_per_cluster;
25 unsigned int bytes_per_sector;
26};
27#endif /* _DISKFREE_T_DEFINED */
28
29_ACRTIMP int __cdecl _chdir(const char*);
31_ACRTIMP char* __cdecl _getcwd(char*,int);
32_ACRTIMP char* __cdecl _getdcwd(int,char*,int);
33_ACRTIMP int __cdecl _getdrive(void);
35_ACRTIMP int __cdecl _mkdir(const char*);
36_ACRTIMP int __cdecl _rmdir(const char*);
37
38#ifdef __cplusplus
39}
40#endif
41
42
43static inline int chdir(const char* newdir) { return _chdir(newdir); }
44static inline char* getcwd(char * buf, int size) { return _getcwd(buf, size); }
45static inline int mkdir(const char* newdir) { return _mkdir(newdir); }
46static inline int rmdir(const char* dir) { return _rmdir(dir); }
47
48#include <poppack.h>
49
50#endif /* __WINE_DIRECT_H */
#define mkdir
Definition: acwin.h:101
unsigned int dir
Definition: maze.c:112
#define __cdecl
Definition: corecrt.h:121
#define _ACRTIMP
Definition: corecrt.h:153
unsigned long __msvcrt_ulong
Definition: corecrt.h:168
_ACRTIMP char *__cdecl _getcwd(char *, int)
Definition: dir.c:761
static char * getcwd(char *buf, int size)
Definition: direct.h:44
_ACRTIMP int __cdecl _chdir(const char *)
Definition: dir.c:215
_ACRTIMP int __cdecl _rmdir(const char *)
Definition: dir.c:997
_ACRTIMP int __cdecl _mkdir(const char *)
Definition: dir.c:958
_ACRTIMP int __cdecl _chdrive(int)
Definition: dir.c:268
_ACRTIMP int __cdecl _getdrive(void)
Definition: dir.c:819
_ACRTIMP __msvcrt_ulong __cdecl _getdrives(void)
Definition: getdrive.c:35
_ACRTIMP char *__cdecl _getdcwd(int, char *, int)
Definition: dir.c:843
GLsizeiptr size
Definition: glext.h:5919
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
#define rmdir
Definition: syshdrs.h:70
#define chdir
Definition: syshdrs.h:69
unsigned int bytes_per_sector
Definition: direct.h:25
unsigned int sectors_per_cluster
Definition: direct.h:24
unsigned int total_clusters
Definition: direct.h:22
unsigned int avail_clusters
Definition: direct.h:23