update for HEAD-2003021201
[reactos.git] / include / msvcrt / direct.h
index e1849ec..390c193 100644 (file)
@@ -1,3 +1,30 @@
+/*
+ * direct.h
+ *
+ * Functions for manipulating paths and directories (included from io.h)
+ * plus functions for setting the current drive.
+ *
+ * This file is part of the Mingw32 package.
+ *
+ * Contributors:
+ *  Created by Colin Peters <colin@bird.fu.is.saga-u.ac.jp>
+ *
+ *  THIS SOFTWARE IS NOT COPYRIGHTED
+ *
+ *  This source code is offered for use in the public domain. You may
+ *  use, modify or distribute it freely.
+ *
+ *  This code is distributed in the hope that it will be useful but
+ *  WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
+ *  DISCLAIMED. This includes but is not limited to warranties of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ *
+ * $Revision$
+ * $Author$
+ * $Date$
+ *
+ */
+
 #ifndef _DIRECT_H_
 #define _DIRECT_H_
 
@@ -11,36 +38,44 @@ typedef unsigned int size_t;
 #define _SIZE_T_
 #endif
 
+#ifdef  __cplusplus
+extern "C" {
+#endif
+
 struct _diskfree_t {
-  unsigned short total_clusters;
-  unsigned short avail_clusters;
-  unsigned short sectors_per_cluster;
-  unsigned short bytes_per_sector;
+    unsigned short total_clusters;
+    unsigned short avail_clusters;
+    unsigned short sectors_per_cluster;
+    unsigned short bytes_per_sector;
 };
 
-unsigned int _getdiskfree(unsigned int _drive, struct _diskfree_t *_diskspace);
+int _getdrive(void);
+int _chdrive(int);
+char* _getcwd(char*, int);
 
-int _chdrive( int drive );
-int _getdrive( void );
+unsigned int _getdiskfree(unsigned int, struct _diskfree_t*);
 
-char *_getcwd( char *buffer, int maxlen );
-char *_getdcwd (int nDrive, char* caBuffer, int nBufLen);
+int _chdir(const char*);
+int _mkdir(const char*);
+int _rmdir(const char*);
 
-int _chdir(const char *_path);
-int  _mkdir(const char *_path);
-int  _rmdir(const char *_path);
-
-#define chdir _chdir
+#define chdir  _chdir
 #define getcwd _getcwd
-#define mkdir _mkdir
-#define rmdir _rmdir
+#define mkdir  _mkdir
+#define rmdir  _rmdir
 
+char* _getdcwd(int nDrive, char* caBuffer, int nBufLen);
 
-wchar_t *_wgetcwd( wchar_t *buffer, int maxlen );
-wchar_t *_wgetdcwd (int nDrive, wchar_t* caBuffer, int nBufLen);
+wchar_t* _wgetcwd(wchar_t *buffer, int maxlen);
+wchar_t* _wgetdcwd(int nDrive, wchar_t* caBuffer, int nBufLen);
 
-int _wchdir(const wchar_t *_path);
-int  _wmkdir(const wchar_t *_path);
-int  _wrmdir(const wchar_t *_path);
+int _wchdir(const wchar_t_path);
+int _wmkdir(const wchar_t* _path);
+int _wrmdir(const wchar_t* _path);
 
+#ifdef  __cplusplus
+}
 #endif
+
+#endif  /* Not _DIRECT_H_ */
+