⚲
Project
General
Profile
Sign in
Home
Projects
Help
Search
:
DragonFlyBSD
All Projects
DragonFlyBSD
Overview
Activity
Roadmap
Issues
Documents
Files
Repository
Download (394 Bytes)
Bug #2463
ยป cpperrno.cpp
davshao
, 11/26/2012 09:32 PM
/* begin cpperrno.cpp */
namespace
{
#pragma GCC visibility push(default)
#include
<errno.h>
#pragma GCC visibility pop
void
innamespace
()
{
errno
=
EINVAL
;
}
}
/* end namespace */
extern
"C"
{
void
seterrno
()
{
innamespace
();
}
}
/* end extern */
#include
<stdio.h>
#include
<errno.h>
int
main
()
{
seterrno
();
printf
(
"errno = %d
\n
"
,
errno
);
return
errno
;
}
/* end cpperrno.cpp */
(1-1/1)
Loading...