Annotation of mstools/h/direct.h, revision 1.1.1.3

1.1       root        1: /***
                      2: *direct.h - function declarations for directory handling/creation
                      3: *
1.1.1.2   root        4: *      Copyright (c) 1985-1992, Microsoft Corporation. All rights reserved.
1.1       root        5: *
                      6: *Purpose:
                      7: *      This include file contains the function declarations for the library
                      8: *      functions related to directory handling and creation.
                      9: *
                     10: ****/
                     11: 
                     12: #ifndef _INC_DIRECT
                     13: 
1.1.1.3 ! root       14: 
1.1       root       15: #ifdef __cplusplus
                     16: extern "C" {
                     17: #endif
                     18: 
                     19: 
1.1.1.3 ! root       20: /*
        !            21:  * Conditional macro definition for function calling type and variable type
        !            22:  * qualifiers.
        !            23:  */
        !            24: #if   ( (_MSC_VER >= 800) && (_M_IX86 >= 300) )
        !            25: 
        !            26: /*
        !            27:  * Definitions for MS C8-32 (386/486) compiler
        !            28:  */
        !            29: #define _CRTAPI1 __cdecl
        !            30: #define _CRTAPI2 __cdecl
        !            31: 
        !            32: #elif ( _MSC_VER == 600 )
        !            33: 
        !            34: /*
        !            35:  * Definitions for old MS C6-386 compiler
        !            36:  */
        !            37: #define _CRTAPI1 _cdecl
        !            38: #define _CRTAPI2 _cdecl
        !            39: #define _M_IX86  300
        !            40: 
        !            41: #else
        !            42: 
        !            43: /*
        !            44:  * Other compilers (e.g., MIPS)
        !            45:  */
        !            46: #define _CRTAPI1
        !            47: #define _CRTAPI2
        !            48: 
1.1.1.2   root       49: #endif
1.1       root       50: 
1.1.1.3 ! root       51: 
1.1       root       52: #ifndef _SIZE_T_DEFINED
                     53: typedef unsigned int size_t;
                     54: #define _SIZE_T_DEFINED
                     55: #endif
                     56: 
                     57: /* _getdiskfree structure for _getdiskfree() */
                     58: 
                     59: #ifndef _DISKFREE_T_DEFINED
                     60: 
                     61: struct _diskfree_t {
                     62:        unsigned total_clusters;
                     63:        unsigned avail_clusters;
                     64:        unsigned sectors_per_cluster;
                     65:        unsigned bytes_per_sector;
                     66:        };
                     67: 
                     68: #define _DISKFREE_T_DEFINED
                     69: 
                     70: #endif
                     71: 
                     72: /* function prototypes */
                     73: 
1.1.1.3 ! root       74: int _CRTAPI1 _chdir(const char *);
        !            75: int _CRTAPI1 _chdrive(int);
        !            76: char * _CRTAPI1 _getcwd(char *, int);
        !            77: char * _CRTAPI1 _getdcwd(int, char *, int);
        !            78: int _CRTAPI1 _getdrive(void);
        !            79: int _CRTAPI1 _mkdir(const char *);
        !            80: int _CRTAPI1 _rmdir(const char *);
        !            81: unsigned _CRTAPI1 _getdiskfree(unsigned, struct _diskfree_t *);
        !            82: unsigned long _CRTAPI1 _getdrives(void);
1.1       root       83: 
1.1.1.2   root       84: 
                     85: 
                     86: 
1.1       root       87: #if !__STDC__
                     88: /* Non-ANSI names for compatibility */
                     89: #define chdir  _chdir
                     90: #define getcwd _getcwd
                     91: #define mkdir  _mkdir
                     92: #define rmdir  _rmdir
                     93: #define diskfree_t  _diskfree_t
                     94: #endif /* __STDC__ */
                     95: 
                     96: #ifdef __cplusplus
                     97: }
                     98: #endif
                     99: 
                    100: #define _INC_DIRECT
                    101: #endif /* _INC_DIRECT */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.