Coda Distributed File System
Classes | Macros | Functions
lwp_ucontext.h File Reference
#include <setjmp.h>
#include <signal.h>
#include "lwp_stacktrace.h"
Include dependency graph for lwp_ucontext.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  lwp_ucontext
 

Macros

#define JMP_BUF   jmp_buf
 
#define SETJMP(x, y)   setjmp(x)
 
#define LONGJMP(x)   longjmp(x, 1)
 
#define lwp_getcontext(ucp)
 

Functions

int lwp_setcontext (const struct lwp_ucontext *ucp)
 
void lwp_makecontext (struct lwp_ucontext *ucp, void(*func)(void *), void *arg)
 
int lwp_swapcontext (struct lwp_ucontext *oucp, const struct lwp_ucontext *ucp)
 

Macro Definition Documentation

◆ JMP_BUF

#define JMP_BUF   jmp_buf

◆ LONGJMP

#define LONGJMP (   x)    longjmp(x, 1)

◆ lwp_getcontext

#define lwp_getcontext (   ucp)
Value:
(memset((ucp), 0, sizeof(struct lwp_ucontext)), \
SETJMP((ucp)->uc_mcontext, 1))
memset(PeerInfo, 0, sizeof(RPC2_PeerInfo))
Definition: lwp_ucontext.h:38

◆ SETJMP

#define SETJMP (   x,
 
)    setjmp(x)

Function Documentation

◆ lwp_makecontext()

void lwp_makecontext ( struct lwp_ucontext ucp,
void(*)(void *)  func,
void *  arg 
)

◆ lwp_setcontext()

int lwp_setcontext ( const struct lwp_ucontext ucp)

◆ lwp_swapcontext()

int lwp_swapcontext ( struct lwp_ucontext oucp,
const struct lwp_ucontext ucp 
)