libtimer.c File Reference

#include "libtimer.h"

Defines

#define SYNCSRV_DELAY   1000000

Functions

int timer_register (int usecs, u_int fl)
int timer_unregister (int timer_id)
void delay_fn (int sig)
void delay (u_int usecs)
int timer_dump ()
int sleep (int secs)
int usleep (int usecs)
u_int ualarm (u_int usecs)
u_int alarm (u_int secs)
int gettimeofday (struct timeval *tp, struct timezone *tzp)
time_t time (time_t *tloc)
char * ctime (const time_t *clock)
int wait_for_srv (int gate, int ntries)
static int select_compar (const void *ptr1, const void *ptr2)
static void sigio_select_fn (int sig)
static void sigalrm_select_fn (int sig)
int select (int maxfd, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout)
int poll (struct pollfd *fds, nfds_t nfds, int timeout)

Variables

static int alrm_ok

Define Documentation

#define SYNCSRV_DELAY   1000000
 


Function Documentation

u_int alarm u_int  secs  ) 
 

char* ctime const time_t clock  ) 
 

void delay u_int  usecs  ) 
 

void delay_fn int  sig  ) 
 

int gettimeofday struct timeval tp,
struct timezone tzp
 

int poll struct pollfd fds,
nfds_t  nfds,
int  timeout
 

int select int  maxfd,
fd_set readfds,
fd_set writefds,
fd_set exceptfds,
struct timeval timeout
 

select(2) emulation

static int select_compar const void *  ptr1,
const void *  ptr2
[static]
 

static void sigalrm_select_fn int  sig  )  [static]
 

static void sigio_select_fn int  sig  )  [static]
 

int sleep int  secs  ) 
 

time_t time time_t tloc  ) 
 

int timer_dump void   ) 
 

int timer_register int  usecs,
u_int  fl
 

int timer_unregister int  timer_id  ) 
 

u_int ualarm u_int  usecs  ) 
 

int usleep int  usecs  ) 
 

int wait_for_srv int  gate,
int  ntries
 

wait for a service to be up, returns 0 if OK else 1 with errno set. for this to work, caller must be of class TCBC_SCHED


Variable Documentation

int alrm_ok [static]
 


Generated on Wed May 24 23:06:03 2006 for LSE/OS by  doxygen 1.4.6