patch-1.3.55 linux/include/linux/time.h

Next file: linux/kernel/ksyms.c
Previous file: linux/include/linux/smp_lock.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.54/linux/include/linux/time.h linux/include/linux/time.h
@@ -1,6 +1,11 @@
 #ifndef _LINUX_TIME_H
 #define _LINUX_TIME_H
 
+struct timespec {
+        long    tv_sec;         /* seconds */
+        long    tv_nsec;        /* nanoseconds */
+};
+
 struct timeval {
 	int	tv_sec;		/* seconds */
 	int	tv_usec;	/* microseconds */
@@ -31,6 +36,11 @@
 #define	ITIMER_REAL	0
 #define	ITIMER_VIRTUAL	1
 #define	ITIMER_PROF	2
+
+struct  itimerspec {
+        struct  timespec it_interval;    /* timer period */
+        struct  timespec it_value;       /* timer expiration */
+};
 
 struct	itimerval {
 	struct	timeval it_interval;	/* timer interval */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this