|
|
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:
14: #ifdef __cplusplus
15: extern "C" {
16: #endif
17:
18:
1.1.1.2 ! root 19: #ifndef MIPS
1.1 root 20: #if (_MSC_VER <= 600)
21: #define __cdecl _cdecl
22: #endif
1.1.1.2 ! root 23: #endif
1.1 root 24:
25: #ifndef _SIZE_T_DEFINED
26: typedef unsigned int size_t;
27: #define _SIZE_T_DEFINED
28: #endif
29:
30: /* _getdiskfree structure for _getdiskfree() */
31:
32: #ifndef _DISKFREE_T_DEFINED
33:
34: struct _diskfree_t {
35: unsigned total_clusters;
36: unsigned avail_clusters;
37: unsigned sectors_per_cluster;
38: unsigned bytes_per_sector;
39: };
40:
41: #define _DISKFREE_T_DEFINED
42:
43: #endif
44:
45: /* function prototypes */
46:
47: int _chdir(const char *);
48: int _chdrive(int);
49: char * _getcwd(char *, int);
50: char * _getdcwd(int, char *, int);
51: int _getdrive(void);
52: int _mkdir(const char *);
53: int _rmdir(const char *);
54: unsigned _getdiskfree(unsigned, struct _diskfree_t *);
55: unsigned long _getdrives(void);
56:
1.1.1.2 ! root 57:
! 58:
! 59:
1.1 root 60: #if !__STDC__
61: /* Non-ANSI names for compatibility */
62: #define chdir _chdir
63: #define getcwd _getcwd
64: #define mkdir _mkdir
65: #define rmdir _rmdir
66: #define diskfree_t _diskfree_t
67: #endif /* __STDC__ */
68:
69: #ifdef __cplusplus
70: }
71: #endif
72:
73: #define _INC_DIRECT
74: #endif /* _INC_DIRECT */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.