|
|
1.1 root 1: /***
2: *direct.h - function declarations for directory handling/creation
3: *
1.1.1.4 ! root 4: * Copyright (c) 1985-1993, 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: #else
33:
34: /*
35: * Other compilers (e.g., MIPS)
36: */
37: #define _CRTAPI1
38: #define _CRTAPI2
39:
1.1.1.2 root 40: #endif
1.1 root 41:
1.1.1.3 root 42:
1.1 root 43: #ifndef _SIZE_T_DEFINED
44: typedef unsigned int size_t;
45: #define _SIZE_T_DEFINED
46: #endif
47:
48: /* _getdiskfree structure for _getdiskfree() */
49:
50: #ifndef _DISKFREE_T_DEFINED
51:
52: struct _diskfree_t {
53: unsigned total_clusters;
54: unsigned avail_clusters;
55: unsigned sectors_per_cluster;
56: unsigned bytes_per_sector;
57: };
58:
59: #define _DISKFREE_T_DEFINED
60:
61: #endif
62:
63: /* function prototypes */
64:
1.1.1.3 root 65: int _CRTAPI1 _chdir(const char *);
66: int _CRTAPI1 _chdrive(int);
67: char * _CRTAPI1 _getcwd(char *, int);
68: char * _CRTAPI1 _getdcwd(int, char *, int);
69: int _CRTAPI1 _getdrive(void);
70: int _CRTAPI1 _mkdir(const char *);
71: int _CRTAPI1 _rmdir(const char *);
72: unsigned _CRTAPI1 _getdiskfree(unsigned, struct _diskfree_t *);
73: unsigned long _CRTAPI1 _getdrives(void);
1.1 root 74:
1.1.1.2 root 75:
76:
77:
1.1 root 78: #if !__STDC__
79: /* Non-ANSI names for compatibility */
80: #define chdir _chdir
81: #define getcwd _getcwd
82: #define mkdir _mkdir
83: #define rmdir _rmdir
84: #define diskfree_t _diskfree_t
85: #endif /* __STDC__ */
86:
87: #ifdef __cplusplus
88: }
89: #endif
90:
91: #define _INC_DIRECT
92: #endif /* _INC_DIRECT */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.