2010-05-11 21:42:16 +02:00
|
|
|
// -*- C++ -*-
|
|
|
|
//===-------------------------- cerrno ------------------------------------===//
|
|
|
|
//
|
2010-05-11 23:36:01 +02:00
|
|
|
// The LLVM Compiler Infrastructure
|
2010-05-11 21:42:16 +02:00
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef _LIBCPP_CERRNO
|
|
|
|
#define _LIBCPP_CERRNO
|
|
|
|
|
|
|
|
/*
|
|
|
|
cerrno synopsis
|
|
|
|
|
|
|
|
Macros:
|
|
|
|
|
|
|
|
EDOM
|
|
|
|
EILSEQ // C99
|
|
|
|
ERANGE
|
|
|
|
errno
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <__config>
|
|
|
|
#include <errno.h>
|
|
|
|
|
|
|
|
#pragma GCC system_header
|
|
|
|
|
|
|
|
#if !defined(EOWNERDEAD) || !defined(ENOTRECOVERABLE)
|
|
|
|
|
|
|
|
const int __elast1 = ELAST+1;
|
|
|
|
const int __elast2 = ELAST+2;
|
|
|
|
#undef ELAST
|
|
|
|
|
|
|
|
#ifdef ENOTRECOVERABLE
|
|
|
|
|
|
|
|
#define EOWNERDEAD __elast1
|
|
|
|
#define ELAST EOWNERDEAD
|
|
|
|
|
|
|
|
#elif defined(EOWNERDEAD)
|
|
|
|
|
|
|
|
#define ENOTRECOVERABLE __elast1
|
|
|
|
#define ELAST ENOTRECOVERABLE
|
|
|
|
|
2010-08-22 02:02:43 +02:00
|
|
|
#else // defined(EOWNERDEAD)
|
2010-05-11 21:42:16 +02:00
|
|
|
|
|
|
|
#define EOWNERDEAD __elast1
|
|
|
|
#define ENOTRECOVERABLE __elast2
|
|
|
|
#define ELAST ENOTRECOVERABLE
|
|
|
|
|
2010-08-22 02:02:43 +02:00
|
|
|
#endif // defined(EOWNERDEAD)
|
2010-05-11 21:42:16 +02:00
|
|
|
|
2010-08-22 02:02:43 +02:00
|
|
|
#endif // !defined(EOWNERDEAD) || !defined(ENOTRECOVERABLE)
|
2010-05-11 21:42:16 +02:00
|
|
|
|
|
|
|
#endif // _LIBCPP_CERRNO
|