[haiku-development] ucontext_t?

  • From: Andreas Färber <andreas.faerber@xxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Sat, 2 Aug 2008 13:24:41 +0200

Hello,

Is there any thing such as ucontext_t on Haiku that provides access to registers for a signal handler? On Linux/*BSD there seem to be structs ucontext_t, mcontext_t etc. that provide access to registers for saving and restoring them. In Haiku's libroot/posix/glibc/stdlib/ there is a ucontext.h that defines related functions, but it only uses and doesn't define the struct itself (no arch-specific sys/ucontext.h).

Is there any alternative mechanism for user-level context switching, or could I contribute to having it implemented for x86?

Regards,
Andreas

Other related posts: