Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
testptp.c File Reference
#include <errno.h>
#include <fcntl.h>
#include <math.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/timex.h>
#include <sys/types.h>
#include <time.h>
#include <unistd.h>
#include <linux/ptp_clock.h>
#include <sys/syscall.h>

Go to the source code of this file.

Macros

#define DEVICE   "/dev/ptp0"
 
#define ADJ_SETOFFSET   0x0100
 
#define CLOCK_INVALID   -1
 
#define CLOCKFD   3
 
#define FD_TO_CLOCKID(fd)   ((~(clockid_t) (fd) << 3) | CLOCKFD)
 

Functions

int main (int argc, char *argv[])
 

Macro Definition Documentation

#define ADJ_SETOFFSET   0x0100

Definition at line 41 of file testptp.c.

#define CLOCK_INVALID   -1

Definition at line 45 of file testptp.c.

#define CLOCKFD   3
#define DEVICE   "/dev/ptp0"

Definition at line 38 of file testptp.c.

#define FD_TO_CLOCKID (   fd)    ((~(clockid_t) (fd) << 3) | CLOCKFD)

Function Documentation

int main ( int  argc,
char argv[] 
)

Definition at line 123 of file testptp.c.