home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 June / Chip_2002-06_cd1.bin / zkuste / cecko / install / devcpp4920.exe / include / direct.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-09-17  |  2.1 KB  |  96 lines

  1. /*
  2.  * direct.h
  3.  *
  4.  * Functions for manipulating paths and directories (included from io.h)
  5.  * plus functions for setting the current drive.
  6.  *
  7.  * This file is part of the Mingw32 package.
  8.  *
  9.  * Contributors:
  10.  *  Created by Colin Peters <colin@bird.fu.is.saga-u.ac.jp>
  11.  *
  12.  *  THIS SOFTWARE IS NOT COPYRIGHTED
  13.  *
  14.  *  This source code is offered for use in the public domain. You may
  15.  *  use, modify or distribute it freely.
  16.  *
  17.  *  This code is distributed in the hope that it will be useful but
  18.  *  WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
  19.  *  DISCLAMED. This includes but is not limited to warranties of
  20.  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  21.  *
  22.  * $Revision: 1.4 $
  23.  * $Author: cgf $
  24.  * $Date: 2000/02/05 04:04:51 $
  25.  *
  26.  */
  27.  
  28. #ifndef __STRICT_ANSI__
  29.  
  30. #ifndef    _DIRECT_H_
  31. #define    _DIRECT_H_
  32.  
  33. /* All the headers include this file. */
  34. #include <_mingw.h>
  35.  
  36. #define __need_wchar_t
  37. #ifndef RC_INVOKED
  38. #include <stddef.h>
  39. #endif    /* Not RC_INVOKED */
  40.  
  41. #include <io.h>
  42.  
  43. #ifndef RC_INVOKED
  44.  
  45. #ifdef    __cplusplus
  46. extern "C" {
  47. #endif
  48.  
  49. #ifndef _DISKFREE_T_DEFINED
  50. /* needed by _getdiskfree (also in dos.h) */
  51. struct _diskfree_t {
  52.     unsigned total_clusters;
  53.     unsigned avail_clusters;
  54.     unsigned sectors_per_cluster;
  55.     unsigned bytes_per_sector;
  56. };
  57. #define _DISKFREE_T_DEFINED
  58. #endif  
  59.  
  60. /*
  61.  * You really shouldn't be using these. Use the Win32 API functions instead.
  62.  * However, it does make it easier to port older code.
  63.  */
  64. int    _getdrive (void);
  65. unsigned long _getdrives(void);
  66. int    _chdrive (int);
  67. char*    _getdcwd (int, char*, int);
  68. unsigned _getdiskfree (unsigned, struct _diskfree_t *);
  69.  
  70. #ifndef    _NO_OLDNAMES
  71. # define diskfree_t _diskfree_t
  72. #endif
  73.  
  74. #ifndef _WDIRECT_DEFINED
  75. /* wide character versions. Also in wchar.h */
  76. #ifdef __MSVCRT__ 
  77. int _wchdir(const wchar_t*);
  78. wchar_t* _wgetcwd(wchar_t*, int);
  79. wchar_t* _wgetdcwd(int, wchar_t*, int);
  80. int _wmkdir(const wchar_t*);
  81. int _wrmdir(const wchar_t*);
  82. #endif    /* __MSVCRT__ */
  83. #define _WDIRECT_DEFINED
  84. #endif
  85.  
  86. #ifdef    __cplusplus
  87. }
  88. #endif
  89.  
  90. #endif    /* Not RC_INVOKED */
  91.  
  92. #endif    /* Not _DIRECT_H_ */
  93.  
  94. #endif    /* Not __STRICT_ANSI__ */
  95.  
  96.