Eneboo - Documentación para desarrolladores
src/pthreads/need_errno.h
Ir a la documentación de este archivo.
00001 /***
00002 * errno.h - system wide error numbers (set by system calls)
00003 *
00004 *       Copyright (c) 1985-1997, Microsoft Corporation. All rights reserved.
00005 *
00006 * Purpose:
00007 *       This file defines the system-wide error numbers (set by
00008 *       system calls).  Conforms to the XENIX standard.  Extended
00009 *       for compatibility with Uniforum standard.
00010 *       [System V]
00011 *
00012 *       [Public]
00013 *
00014 ****/
00015 
00016 #if     _MSC_VER > 1000
00017 #pragma once
00018 #endif
00019 
00020 #ifndef _INC_ERRNO
00021 #define _INC_ERRNO
00022 
00023 #if     !defined(_WIN32) && !defined(_MAC)
00024 #error ERROR: Only Mac or Win32 targets supported!
00025 #endif
00026 
00027 #include <winsock.h>
00028 
00029 #ifdef  __cplusplus
00030 extern "C" {
00031 #endif
00032 
00033 
00034 
00035 /* Define _CRTIMP */
00036 
00037 #ifndef _CRTIMP
00038 #ifdef  _DLL
00039 #define _CRTIMP __declspec(dllimport)
00040 #else   /* ndef _DLL */
00041 #define _CRTIMP
00042 #endif  /* _DLL */
00043 #endif  /* _CRTIMP */
00044 
00045 
00046 /* Define __cdecl for non-Microsoft compilers */
00047 
00048 #if     ( !defined(_MSC_VER) && !defined(__cdecl) )
00049 #define __cdecl
00050 #endif
00051 
00052 /* Define _CRTAPI1 (for compatibility with the NT SDK) */
00053 
00054 #ifndef _CRTAPI1
00055 #if     _MSC_VER >= 800 && _M_IX86 >= 300
00056 #define _CRTAPI1 __cdecl
00057 #else
00058 #define _CRTAPI1
00059 #endif
00060 #endif
00061 
00062 
00063 /* declare reference to errno */
00064 
00065 #if     (defined(_MT) || defined(_MD) || defined(_DLL)) && !defined(_MAC)
00066 _CRTIMP extern int * __cdecl _errno(void);
00067 #define errno   (*_errno())
00068 #else   /* ndef _MT && ndef _MD && ndef _DLL */
00069 _CRTIMP extern int errno;
00070 #endif  /* _MT || _MD || _DLL */
00071 
00072 /* Error Codes */
00073 
00074 #define EPERM           1
00075 #define ENOENT          2
00076 #define ESRCH           3
00077 #define EINTR           4
00078 #define EIO             5
00079 #define ENXIO           6
00080 #define E2BIG           7
00081 #define ENOEXEC         8
00082 #define EBADF           9
00083 #define ECHILD          10
00084 #define EAGAIN          11
00085 #define ENOMEM          12
00086 #define EACCES          13
00087 #define EFAULT          14
00088 #define EBUSY           16
00089 #define EEXIST          17
00090 #define EXDEV           18
00091 #define ENODEV          19
00092 #define ENOTDIR         20
00093 #define EISDIR          21
00094 #define EINVAL          22
00095 #define ENFILE          23
00096 #define EMFILE          24
00097 #define ENOTTY          25
00098 #define EFBIG           27
00099 #define ENOSPC          28
00100 #define ESPIPE          29
00101 #define EROFS           30
00102 #define EMLINK          31
00103 #define EPIPE           32
00104 #define EDOM            33
00105 #define ERANGE          34
00106 #define EDEADLK         36
00107 
00108 /* defined differently in winsock.h on WinCE */
00109 #ifndef ENAMETOOLONG
00110 #define ENAMETOOLONG    38
00111 #endif
00112 
00113 #define ENOLCK          39
00114 #define ENOSYS          40
00115 
00116 /* defined differently in winsock.h on WinCE */
00117 #ifndef ENOTEMPTY
00118 #define ENOTEMPTY       41
00119 #endif
00120 
00121 #define EILSEQ          42
00122 
00123 /*
00124  * Support EDEADLOCK for compatibiity with older MS-C versions.
00125  */
00126 #define EDEADLOCK       EDEADLK
00127 
00128 #ifdef  __cplusplus
00129 }
00130 #endif
00131 
00132 #endif  /* _INC_ERRNO */
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'