errno.h

00001 /***
00002 *errno.h - system wide error numbers (set by system calls)
00003 *
00004 *       Copyright (c) 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 #include <crtdefs.h>
00024 
00025 #ifdef  __cplusplus
00026 extern "C" {
00027 #endif
00028 
00029 /* declare reference to errno */
00030 
00031 #ifndef _CRT_ERRNO_DEFINED
00032 #define _CRT_ERRNO_DEFINED
00033 _CRTIMP extern int * __cdecl _errno(void);
00034 #define errno   (*_errno())
00035 
00036 errno_t __cdecl _set_errno(_In_ int _Value);
00037 errno_t __cdecl _get_errno(_Out_ int * _Value);
00038 #endif
00039 
00040 /* Error Codes */
00041 
00042 #define EPERM           1
00043 #define ENOENT          2
00044 #define ESRCH           3
00045 #define EINTR           4
00046 #define EIO             5
00047 #define ENXIO           6
00048 #define E2BIG           7
00049 #define ENOEXEC         8
00050 #define EBADF           9
00051 #define ECHILD          10
00052 #define EAGAIN          11
00053 #define ENOMEM          12
00054 #define EACCES          13
00055 #define EFAULT          14
00056 #define EBUSY           16
00057 #define EEXIST          17
00058 #define EXDEV           18
00059 #define ENODEV          19
00060 #define ENOTDIR         20
00061 #define EISDIR          21
00062 #define ENFILE          23
00063 #define EMFILE          24
00064 #define ENOTTY          25
00065 #define EFBIG           27
00066 #define ENOSPC          28
00067 #define ESPIPE          29
00068 #define EROFS           30
00069 #define EMLINK          31
00070 #define EPIPE           32
00071 #define EDOM            33
00072 #define EDEADLK         36
00073 #define ENAMETOOLONG    38
00074 #define ENOLCK          39
00075 #define ENOSYS          40
00076 #define ENOTEMPTY       41
00077 
00078 /* Error codes used in the Secure CRT functions */
00079 
00080 #ifndef RC_INVOKED
00081 #if !defined(_SECURECRT_ERRCODE_VALUES_DEFINED)
00082 #define _SECURECRT_ERRCODE_VALUES_DEFINED
00083 #define EINVAL          22
00084 #define ERANGE          34
00085 #define EILSEQ          42
00086 #define STRUNCATE       80
00087 #endif
00088 #endif
00089 
00090 
00091 /*
00092  * Support EDEADLOCK for compatibiity with older MS-C versions.
00093  */
00094 #define EDEADLOCK       EDEADLK
00095 
00096 #ifdef  __cplusplus
00097 }
00098 #endif
00099 
00100 #endif  /* _INC_ERRNO */

Generated on Tue Feb 8 2011 09:32:53 for WOSH system 0.8.888 [wolf] by Alessandro Polo, using DoxyGen 1.7.2 hosted by WOSH Framework