Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
Main Page
Related Pages
Topics
Namespaces
Data Structures
Files
File List
Globals
EXTERNAL_HEADERS
RSL
include
ansi
_cerrno.h
Go to the documentation of this file.
1
// -*- C++ -*-
2
30
#ifndef _RWSTD_CERRNO_H_INCLUDED
31
#define _RWSTD_CERRNO_H_INCLUDED
32
33
34
#include <
rw/_defs.h
>
35
36
37
#ifdef __linux__
38
39
_RWSTD_NAMESPACE
(
std
) {
40
41
extern
"C"
{
42
43
extern
int
* __errno_location ();
44
45
46
// 17.4.1.2, p5 - errno may be a macro
47
// lwg issue 310 - errno must be a macro
48
#define errno (*_STD::__errno_location ())
49
50
51
#define EDOM 33
52
#define ERANGE 34
53
54
// lwg issue 288
55
#define EILSEQ 84
56
57
}
// extern "C"
58
59
}
// namespace std
60
61
#elif defined (__sun__) || defined (__sun)
62
63
_RWSTD_NAMESPACE
(
std
) {
64
65
extern
"C"
{
66
67
extern
int
errno;
68
69
extern
int
* ___errno ();
70
71
#ifdef _RWSTD_REENTRANT
72
// 17.4.1.2, p5 - errno may be a macro
73
// lwg issue 310 - errno must be a macro
74
# define errno (*_STD::___errno ())
75
#else
// if !defined (_RWSTD_REENTRANT)
76
# define errno _STD::errno
77
#endif
// _RWSTD_REENTRANT
78
79
80
#define EDOM 33
81
#define ERANGE 34
82
83
// lwg issue 288
84
#define EILSEQ 84
85
86
}
// extern "C"
87
88
}
// namespace std
89
90
#else
// if !__linux__ && !__sun__
91
# include _RWSTD_ANSI_C_ERRNO_H
92
#endif
// __linux__
93
94
95
#endif
// _RWSTD_CERRNO_H_INCLUDED
_defs.h
_RWSTD_NAMESPACE
#define _RWSTD_NAMESPACE(name)
Definition
_defs.h:567
std
Definition
json.h:5363
Generated by
1.9.8