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

1.1       root        1: /***
                      2: *errno.h - system wide error numbers (set by system calls)
                      3: *
1.1.1.3 ! root        4: *      Copyright (c) 1985-1992, Microsoft Corporation. All rights reserved.
1.1       root        5: *
                      6: *Purpose:
                      7: *      This file defines the system-wide error numbers (set by
                      8: *      system calls).  Conforms to the XENIX standard.  Extended
                      9: *      for compatibility with Uniforum standard.
                     10: *      [System V]
                     11: *
                     12: ****/
                     13: 
                     14: #ifndef _INC_ERRNO
                     15: 
                     16: #ifdef __cplusplus
                     17: extern "C" {
                     18: #endif
                     19: 
                     20: 
1.1.1.3 ! root       21: /*
        !            22:  * Conditional macro definition for function calling type and variable type
        !            23:  * qualifiers.
        !            24:  */
        !            25: #if   ( (_MSC_VER >= 800) && (_M_IX86 >= 300) )
        !            26: 
        !            27: /*
        !            28:  * Definitions for MS C8-32 (386/486) compiler
        !            29:  */
        !            30: #define _CRTAPI1 __cdecl
        !            31: #define _CRTAPI2 __cdecl
        !            32: 
        !            33: #elif ( _MSC_VER == 600 )
        !            34: 
        !            35: /*
        !            36:  * Definitions for old MS C6-386 compiler
        !            37:  */
        !            38: #define _CRTAPI1 _cdecl
        !            39: #define _CRTAPI2 _cdecl
        !            40: #define _M_IX86  300
        !            41: 
        !            42: #else
        !            43: 
        !            44: /*
        !            45:  * Other compilers (e.g., MIPS)
        !            46:  */
        !            47: #define _CRTAPI1
        !            48: #define _CRTAPI2
        !            49: 
1.1.1.2   root       50: #endif
1.1       root       51: 
1.1.1.3 ! root       52: 
1.1       root       53: /* declare reference to errno */
                     54: 
                     55: #ifdef _MT
1.1.1.3 ! root       56: extern int * _CRTAPI1 _errno(void);
1.1       root       57: #define errno  (*_errno())
                     58: #else
                     59: extern int errno;
                     60: #endif
                     61: 
                     62: /* Error Codes */
                     63: 
                     64: #define EZERO          0
                     65: #define EPERM          1
                     66: #define ENOENT         2
                     67: #define ESRCH          3
                     68: #define EINTR          4
                     69: #define EIO            5
                     70: #define ENXIO          6
                     71: #define E2BIG          7
                     72: #define ENOEXEC        8
                     73: #define EBADF          9
                     74: #define ECHILD         10
                     75: #define EAGAIN         11
                     76: #define ENOMEM         12
                     77: #define EACCES         13
                     78: #define EFAULT         14
                     79: #define ENOTBLK        15
                     80: #define EBUSY          16
                     81: #define EEXIST         17
                     82: #define EXDEV          18
                     83: #define ENODEV         19
                     84: #define ENOTDIR        20
                     85: #define EISDIR         21
                     86: #define EINVAL         22
                     87: #define ENFILE         23
                     88: #define EMFILE         24
                     89: #define ENOTTY         25
                     90: #define ETXTBSY        26
                     91: #define EFBIG          27
                     92: #define ENOSPC         28
                     93: #define ESPIPE         29
                     94: #define EROFS          30
                     95: #define EMLINK         31
                     96: #define EPIPE          32
                     97: #define EDOM           33
                     98: #define ERANGE         34
                     99: #define EUCLEAN        35
                    100: #define EDEADLOCK      36
                    101: 
                    102: #ifdef __cplusplus
                    103: }
                    104: #endif
                    105: 
                    106: #define _INC_ERRNO
                    107: #endif /* _INC_ERRNO */

unix.superglobalmegacorp.com

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