/[base]
ViewVC logotype

Revision 295561


Jump to revision: Previous Next
Author: kib
Date: Fri Feb 12 07:38:19 2016 UTC (8 years, 4 months ago)
Changed paths: 8
Log Message:
POSIX states that #include <signal.h> shall make both mcontext_t and
ucontext_t available.  Our code even has XXX comment about this.

Add a bit of compliance by moving struct __ucontext definition into
sys/_ucontext.h and including it into signal.h and sys/ucontext.h.

Several machine/ucontext.h headers were changed to use namespace-safe
types (like uint64_t->__uint64_t) to not depend on sys/types.h.
struct __stack_t from sys/signal.h is made always visible in private
namespace to satisfy sys/_ucontext.h requirements.

Apparently mips _types.h pollutes global namespace with f_register_t
type definition.  This commit does not try to fix the issue.

PR:	207079
Reported and tested by:	Ting-Wei Lan <lantw44@gmail.com>
Sponsored by:	The FreeBSD Foundation
MFC after:	2 weeks


Changed paths

Path Details
Directoryhead/include/signal.h modified , text changed
Directoryhead/sys/mips/include/ucontext.h modified , text changed
Directoryhead/sys/powerpc/include/ucontext.h modified , text changed
Directoryhead/sys/sparc64/include/ucontext.h modified , text changed
Directoryhead/sys/sys/_ucontext.h
(Copied from head/sys/sys/ucontext.h, r295560)
added , text changed
Directoryhead/sys/sys/signal.h modified , text changed
Directoryhead/sys/sys/ucontext.h modified , text changed
Directoryhead/sys/x86/include/ucontext.h modified , text changed

  ViewVC Help
Powered by ViewVC 1.1.27