Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Added Solaris context functions
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonbking committed Jul 17, 2014
1 parent dcd51c8 commit 87914cf
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/core/sys/posix/ucontext.d
Expand Up @@ -16,6 +16,7 @@ module core.sys.posix.ucontext;

private import core.sys.posix.config;
public import core.sys.posix.signal; // for sigset_t, stack_t
private import core.stdc.stdint : uintptr_t;

version (Posix):
extern (C):
Expand Down Expand Up @@ -766,3 +767,11 @@ static if( is( ucontext_t ) )
int setcontext(in ucontext_t*);
int swapcontext(ucontext_t*, in ucontext_t*);
}

version (Solaris)
{
int walkcontext(in ucontext_t*, int function(uintptr_t, int, void*), void*);
int addrtosymstr(uintptr_t, char*, int);
int printstack(int);
}

0 comments on commit 87914cf

Please sign in to comment.