Back to index

glibc  2.9
Classes | Functions
swapcontext.c File Reference
#include <ucontext.h>

Go to the source code of this file.

Classes

struct  rv

Functions

struct rv __getcontext (ucontext_t *__ucp) __THROW
int __setcontext (__const ucontext_t *__ucp) __THROW
int __swapcontext (ucontext_t *oucp, const ucontext_t *ucp)

Class Documentation

struct rv

Definition at line 22 of file swapcontext.c.

Class Members
long first_return
long retval

Function Documentation

struct rv __getcontext ( ucontext_t __ucp) [read]
int __swapcontext ( ucontext_t oucp,
const ucontext_t ucp 
)

Definition at line 32 of file swapcontext.c.

{
  struct rv rv = __getcontext (oucp);
  if (rv.first_return)
    __setcontext (ucp);
  return 0;
}

Here is the call graph for this function: