timerfd_wrap.h File Reference

timerfd syscall wrapper More...

#include <sys/syscall.h>
#include <sys/types.h>
#include <sys/signal.h>
#include <sys/time.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <signal.h>
#include <poll.h>
#include <fcntl.h>
#include <time.h>
#include <errno.h>

Include dependency graph for timerfd_wrap.h:

Go to the source code of this file.

Defines

#define TFD_TIMER_ABSTIME   (1 << 0)

Functions

int timerfd_create (int clockid, int flags)
int timerfd_settime (int ufc, int flags, const struct itimerspec *utmr, struct itimerspec *otmr)
int timerfd_gettime (int ufc, struct itimerspec *otmr)


Detailed Description

timerfd syscall wrapper

Definition in file timerfd_wrap.h.


Define Documentation

#define TFD_TIMER_ABSTIME   (1 << 0)

Definition at line 71 of file timerfd_wrap.h.

Referenced by SWITCH_MODULE_RUNTIME_FUNCTION().


Function Documentation

int timerfd_create ( int  clockid,
int  flags 
)

Definition at line 73 of file timerfd_wrap.h.

Referenced by SWITCH_MODULE_RUNTIME_FUNCTION().

00074 {
00075 
00076         return syscall(__NR_timerfd_create, clockid, flags);
00077 }

int timerfd_gettime ( int  ufc,
struct itimerspec *  otmr 
)

Definition at line 85 of file timerfd_wrap.h.

00086 {
00087 
00088         return syscall(__NR_timerfd_gettime, ufc, otmr);
00089 }

int timerfd_settime ( int  ufc,
int  flags,
const struct itimerspec *  utmr,
struct itimerspec *  otmr 
)

Definition at line 79 of file timerfd_wrap.h.

Referenced by SWITCH_MODULE_RUNTIME_FUNCTION().

00080 {
00081 
00082         return syscall(__NR_timerfd_settime, ufc, flags, utmr, otmr);
00083 }


Generated on Sun May 20 04:00:16 2012 for FreeSWITCH API Documentation by  doxygen 1.4.7