History log of /netbsd-src/include/errno.h (Results 1 – 11 of 11)
Revision Date Author Comments
# 65900038 03-Mar-2008 dholland <dholland@NetBSD.org>

Add a comment noting that the definition of __errno is now replicated in
signal.h. Per request of joerg@


# 933ac468 24-Feb-2008 dholland <dholland@NetBSD.org>

signal.h is not supposed to define errno, so use ___errno instead.
Adjust errno.h in a compatible fashion to avoid -Wredundant-decls issues.
I have run a build to check the tree for places where errn

signal.h is not supposed to define errno, so use ___errno instead.
Adjust errno.h in a compatible fashion to avoid -Wredundant-decls issues.
I have run a build to check the tree for places where errno.h is missing,
and fixed the cases I found, but there might be more in MD code.

show more ...


# a2cd7322 24-Dec-2005 perry <perry@NetBSD.org>

Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.


# 66412e72 13-Sep-2005 christos <christos@NetBSD.org>

compat code reorg


# 19b7469a 03-Feb-2005 perry <perry@NetBSD.org>

de-__P -- the hack is long since useless. Discussed with christos,
matt, kleink, others. Approved by christos.


# 039cc956 07-Aug-2003 agc <agc@NetBSD.org>

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22270, verified by myself.


# 4be7a2dc 28-Apr-2003 bjh21 <bjh21@NetBSD.org>

Add a new feature-test macro, _NETBSD_SOURCE. If this is defined
by the application, all NetBSD interfaces are made visible, even
if some other feature-test macro (like _POSIX_C_SOURCE) is defined.

Add a new feature-test macro, _NETBSD_SOURCE. If this is defined
by the application, all NetBSD interfaces are made visible, even
if some other feature-test macro (like _POSIX_C_SOURCE) is defined.
<sys/featuretest.h> defined _NETBSD_SOURCE if none of _ANSI_SOURCE,
_POSIX_C_SOURCE and _XOPEN_SOURCE is defined, so as to preserve
existing behaviour.

This has two major advantages:
+ Programs that require non-POSIX facilities but define _POSIX_C_SOURCE
can trivially be overruled by putting -D_NETBSD_SOURCE in their CFLAGS.
+ It makes most of the #ifs simpler, in that they're all now ORs of the
various macros, rather than having checks for (!defined(_ANSI_SOURCE) ||
!defined(_POSIX_C_SOURCE) || !defined(_XOPEN_SOURCE)) all over the place.

I've tried not to change the semantics of the headers in any case where
_NETBSD_SOURCE wasn't defined, but there were some places where the
current semantics were clearly mad, and retaining them was harder than
correcting them. In particular, I've mostly normalised things so that
_ANSI_SOURCE gets you the smallest set of stuff, then _POSIX_C_SOURCE,
_XOPEN_SOURCE and _NETBSD_SOURCE in that order.

Tested by building for vax, encouraged by thorpej, and uncontested in
tech-userlevel for a week.

show more ...


# 8939b770 18-Dec-2000 christos <christos@NetBSD.org>

protect against multiple declarations.


# 3f935d01 13-Jun-2000 simonb <simonb@NetBSD.org>

Remove 'extern' from function declarations.


# 482d37a4 21-Jan-2000 mycroft <mycroft@NetBSD.org>

Do the pthread errno hack. That is, *always* do:
#define errno (*__errno())
This is necessary to make non-threaded libraries (e.g. libX11) continue to
work correctly when linked with -lpthread. gli

Do the pthread errno hack. That is, *always* do:
#define errno (*__errno())
This is necessary to make non-threaded libraries (e.g. libX11) continue to
work correctly when linked with -lpthread. glibc also does this.

show more ...


# 22fc60a5 12-Jan-1999 kleink <kleink@NetBSD.org>

Separate the userland and libsa errno declarations from <sys/errno.h> into
their canonical places.