diff options
author | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2002-07-20 14:32:29 +0000 |
---|---|---|
committer | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2002-07-20 14:32:29 +0000 |
commit | 313d763c57f0116ae8a4d516a339356e20578e19 (patch) | |
tree | 2f3d376496d8634487d22da4494ba47b13cedee8 /ace/os_include/errno.h | |
parent | 5cb0ff6546c403f37cca5ec8228c1c4c6b08b300 (diff) | |
download | ATCD-313d763c57f0116ae8a4d516a339356e20578e19.tar.gz |
This commit was manufactured by cvs2svn to create branchOS-h_refactor
'OS-h_refactor'.
Diffstat (limited to 'ace/os_include/errno.h')
-rw-r--r-- | ace/os_include/errno.h | 93 |
1 files changed, 93 insertions, 0 deletions
diff --git a/ace/os_include/errno.h b/ace/os_include/errno.h new file mode 100644 index 00000000000..7316b9b8497 --- /dev/null +++ b/ace/os_include/errno.h @@ -0,0 +1,93 @@ +/* -*- C++ -*- */ + +//============================================================================= +/** + * @file errno.h + * + * $Id$ + * + * @author Douglas C. Schmidt (schmidt@cs.wustl.edu) + * @author etc + */ +//============================================================================= + +#ifndef ACE_OS_INCLUDE_ERRNO_H +# define ACE_OS_INCLUDE_ERRNO_H +# include "ace/pre.h" + +# include "ace/config-all.h" + +# if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +# endif /* ACE_LACKS_PRAGMA_ONCE */ + +# if !defined (ACE_LACKS_ERRNO_H) +# include /**/ <errno.h> +# endif /* ACE_HAS_WINCE */ + +// This only seems to be defined in config-aix-4.x.h, and is never used. +# if defined (ACE_HAS_H_ERRNO) +void herror (const char *str); +# endif /* ACE_HAS_H_ERRNO */ + +# if defined (ACE_LACKS_T_ERRNO) +extern int t_errno; +# endif /* ACE_LACKS_T_ERRNO */ + +# if ! (defined(__BORLANDC__) && __BORLANDC__ >= 0x0530) \ + && !defined(__MINGW32__) +# if defined (__FreeBSD__) || defined(__QNX__) +extern const int sys_nerr; +# elif defined (__CYGWIN32__) || defined (ACE_WIN32) +# define sys_nerr _sys_nerr +# else +extern int sys_nerr; +# endif /* !__FreeBSD__ && !__QNX__ */ +# endif /* ! (defined(__BORLANDC__) && __BORLANDC__ >= 0x0530) */ + +# if !defined (ENOSYS) +# define ENOSYS EFAULT /* Operation not supported or unknown error. */ +# endif /* !ENOSYS */ + +# if !defined (ENOTSUP) +# define ENOTSUP ENOSYS /* Operation not supported. */ +# endif /* !ENOTSUP */ + +# if !defined (ESUCCESS) +# define ESUCCESS 0 +# endif /* !ESUCCESS */ + +# if !defined (EIDRM) +# define EIDRM 0 +# endif /* !EIDRM */ + +# if !defined (ENFILE) +# define ENFILE EMFILE /* No more socket descriptors are available. */ +# endif /* !ENOSYS */ + +# if !defined (ECOMM) + // Not the same, but ECONNABORTED is provided on NT. +# define ECOMM ECONNABORTED +# endif /* ECOMM */ + +# if !defined (WNOHANG) +# define WNOHANG 0100 +# endif /* !WNOHANG */ + +# if !defined (EDEADLK) +# define EDEADLK 1000 /* Some large number.... */ +# endif /* !EDEADLK */ + +# if !defined (ETIMEDOUT) && defined (ETIME) +# define ETIMEDOUT ETIME +# endif /* ETIMEDOUT */ + +# if !defined (ETIME) && defined (ETIMEDOUT) +# define ETIME ETIMEDOUT +# endif /* ETIMED */ + +# if !defined (EBUSY) +# define EBUSY ETIME +# endif /* EBUSY */ + +#endif /* ACE_OS_INCLUDE_ERRNO_H */ |