Annotation of mstools/h/io.h, revision 1.1.1.1

1.1       root        1: /***
                      2: *io.h - declarations for low-level file handling and I/O functions
                      3: *
                      4: *      Copyright (c) 1985-1991, Microsoft Corporation. All rights reserved.
                      5: *
                      6: *Purpose:
                      7: *      This file contains the function declarations for the low-level
                      8: *      file handling and I/O functions.
                      9: *
                     10: ****/
                     11: 
                     12: #ifndef _INC_IO
                     13: 
                     14: #ifdef __cplusplus
                     15: extern "C" {
                     16: #endif
                     17: 
                     18: 
                     19: #if (_MSC_VER <= 600)
                     20: #define __cdecl _cdecl
                     21: #endif
                     22: 
                     23: #ifndef _TIME_T_DEFINED
                     24: typedef long time_t;           /* time value */
                     25: #define _TIME_T_DEFINED        /* avoid multiple def's of time_t */
                     26: #endif
                     27: 
                     28: #ifndef _FSIZE_T_DEFINED
                     29: typedef unsigned long _fsize_t;     // Could be 64 bits for Win32
                     30: #define _FSIZE_T_DEFINED
                     31: #endif
                     32: 
                     33: #ifndef _FINDDATA_T_DEFINED
                     34: 
                     35: struct _finddata_t {
                     36:     unsigned   attrib;
                     37:     time_t     time_create;    // -1 for FAT file systems
                     38:     time_t     time_access;    // -1 for FAT file systems
                     39:     time_t     time_write;
                     40:     _fsize_t   size;
                     41:     char       name[256];
                     42: };
                     43: 
                     44: #define _FINDDATA_T_DEFINED
                     45: 
                     46: #endif
                     47: 
                     48: /* File attribute constants for _findfirst() */
                     49: 
                     50: #define _A_NORMAL      0x00    /* Normal file - No read/write restrictions */
                     51: #define _A_RDONLY      0x01    /* Read only file */
                     52: #define _A_HIDDEN      0x02    /* Hidden file */
                     53: #define _A_SYSTEM      0x04    /* System file */
                     54: #define _A_SUBDIR      0x10    /* Subdirectory */
                     55: #define _A_ARCH        0x20    /* Archive file */
                     56: 
                     57: /* function prototypes */
                     58: 
                     59: int _access(const char *, int);
                     60: int _chmod(const char *, int);
                     61: int _chsize(int, long);
                     62: int _close(int);
                     63: int _commit(int);
                     64: int _creat(const char *, int);
                     65: int _dup(int);
                     66: int _dup2(int, int);
                     67: int _eof(int);
                     68: long _filelength(int);
                     69: int _isatty(int);
                     70: int _locking(int, int, long);
                     71: long _lseek(int, long, int);
                     72: char * _mktemp(char *);
                     73: int _open(const char *, int, ...);
                     74: int _pipe(int *, unsigned int, int);
                     75: int _read(int, void *, unsigned int);
                     76: int remove(const char *);
                     77: int rename(const char *, const char *);
                     78: int _setmode(int, int);
                     79: int _sopen(const char *, int, int, ...);
                     80: long _tell(int);
                     81: int _umask(int);
                     82: int _unlink(const char *);
                     83: int _write(int, const void *, unsigned int);
                     84: long _findfirst(char *, struct _finddata_t *);
                     85: int _findnext(long, struct _finddata_t *);
                     86: int _findclose(long);
                     87: 
                     88: 
                     89: long _get_osfhandle(int);
                     90: int _open_osfhandle(long, int);
                     91: 
                     92: #if !__STDC__
                     93: /* Non-ANSI names for compatibility */
                     94: #define access    _access
                     95: #define chmod     _chmod
                     96: #define chsize    _chsize
                     97: #define close     _close
                     98: #define creat     _creat
                     99: #define dup       _dup
                    100: #define dup2      _dup2
                    101: #define eof       _eof
                    102: #define filelength _filelength
                    103: #define isatty    _isatty
                    104: #define locking    _locking
                    105: #define lseek     _lseek
                    106: #define mktemp    _mktemp
                    107: #define open      _open
                    108: #define read      _read
                    109: #define setmode    _setmode
                    110: #define sopen     _sopen
                    111: #define tell      _tell
                    112: #define umask     _umask
                    113: #define unlink    _unlink
                    114: #define write     _write
                    115: #endif /* __STDC__ */
                    116: 
                    117: #ifdef __cplusplus
                    118: }
                    119: #endif
                    120: 
                    121: #define _INC_IO
                    122: #endif /* _INC_IO */

unix.superglobalmegacorp.com

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