home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / borhead.zip / DIR.H < prev    next >
C/C++ Source or Header  |  1994-11-09  |  3KB  |  113 lines

  1. /*  dir.h
  2.  
  3.     Defines structures, macros, and functions for dealing with
  4.     directories and pathnames.
  5.  
  6. */
  7.  
  8. /*
  9.  *      C/C++ Run Time Library - Version 1.5
  10.  *
  11.  *      Copyright (c) 1987, 1994 by Borland International
  12.  *      All Rights Reserved.
  13.  *
  14.  */
  15.  
  16. #if !defined(__DIR_H)
  17. #define __DIR_H
  18.  
  19. #if !defined(___DEFS_H)
  20. #include <_defs.h>
  21. #endif
  22.  
  23.  
  24. #if !defined(RC_INVOKED)
  25.  
  26. #if defined(__STDC__)
  27. #pragma warn -nak
  28. #endif
  29.  
  30. #endif  /* !RC_INVOKED */
  31.  
  32.  
  33. #define WILDCARDS 0x01
  34. #define EXTENSION 0x02
  35. #define FILENAME  0x04
  36. #define DIRECTORY 0x08
  37. #define DRIVE     0x10
  38.  
  39. #define MAXDRIVE  3
  40.  
  41.  
  42. #if !defined(RC_INVOKED)
  43. #pragma option -a-
  44. #endif
  45.  
  46. #ifndef _FFBLK_DEF
  47. #define _FFBLK_DEF
  48. struct  ffblk   {
  49.     long            ff_reserved;
  50.     long            ff_fsize;
  51.     unsigned long   ff_attrib;
  52.     unsigned short  ff_ftime;
  53.     unsigned short  ff_fdate;
  54.     char            ff_name[256];
  55. };
  56. #endif
  57.  
  58. #define MAXPATH   260
  59. #define MAXDIR    256
  60. #define MAXFILE   256
  61. #define MAXEXT    256
  62.  
  63. #if !defined(RC_INVOKED)
  64. #pragma option -a.  /* restore default packing */
  65. #endif
  66.  
  67.  
  68. #ifdef __cplusplus
  69. extern "C" {
  70. #endif
  71.  
  72. int         _RTLENTRYF _EXPFUNC32   chdir( const char _FAR *__path );
  73. int         _RTLENTRYF _EXPFUNC     findfirst( const char _FAR *__path,
  74.                                     struct ffblk _FAR *__ffblk,
  75.                                     int __attrib );
  76. int         _RTLENTRYF _EXPFUNC     findnext( struct ffblk _FAR *__ffblk );
  77. void        _RTLENTRYF _EXPFUNC     fnmerge( char _FAR *__path,
  78.                                     const char _FAR *__drive,
  79.                                     const char _FAR *__dir,
  80.                                     const char _FAR *__name,
  81.                                     const char _FAR *__ext );
  82. int         _RTLENTRYF _EXPFUNC     fnsplit(const char _FAR *__path,
  83.                                     char _FAR *__drive,
  84.                                     char _FAR *__dir,
  85.                                     char _FAR *__name,
  86.                                     char _FAR *__ext );
  87. int         _RTLENTRY  _EXPFUNC32   getcurdir( int __drive, char _FAR *__directory );
  88. char _FAR * _RTLENTRY  _EXPFUNC     getcwd( char _FAR *__buf, int __buflen );
  89. int         _RTLENTRY  _EXPFUNC32   getdisk( void );
  90. int         _RTLENTRYF _EXPFUNC32   mkdir( const char _FAR *__path );
  91. char _FAR * _RTLENTRYF _EXPFUNC     mktemp( char _FAR *__template );
  92. int         _RTLENTRY  _EXPFUNC32   rmdir( const char _FAR *__path );
  93. char _FAR * _RTLENTRYF _EXPFUNC32   searchpath( const char _FAR *__file );
  94. int         _RTLENTRY  _EXPFUNC32   setdisk( int __drive );
  95.  
  96. #ifdef __cplusplus
  97. }
  98. #endif
  99.  
  100.  
  101. #if !defined(RC_INVOKED)
  102.  
  103. #if defined(__STDC__)
  104. #pragma warn .nak
  105. #endif
  106.  
  107. #endif  /* !RC_INVOKED */
  108.  
  109.  
  110. #endif  /* __DIR_H */
  111.  
  112.  
  113.