timeout.c File Reference

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <signal.h>
#include <sys/time.h>
#include <unistd.h>
#include <setjmp.h>

Go to the source code of this file.

Functions

static void alarm_handler (int signum)
static void install_handlers (void)
void set_timeout (int timeout_secs, jmp_buf *env)

Variables

static jmp_buf * S_env


Function Documentation

static void alarm_handler ( int  signum  )  [static]

Definition at line 15 of file timeout.c.

References S_env.

Referenced by install_handlers().

static void install_handlers ( void   )  [static]

Definition at line 24 of file timeout.c.

References alarm_handler().

Referenced by set_timeout().

void set_timeout ( int  timeout_secs,
jmp_buf *  env 
)

Definition at line 35 of file timeout.c.

References install_handlers(), and S_env.

Referenced by doMdsValue().


Variable Documentation

jmp_buf* S_env [static]

Definition at line 13 of file timeout.c.

Referenced by alarm_handler(), and set_timeout().


Generated on Wed Feb 3 08:08:33 2010 for mdsshell by  doxygen 1.5.7.1