lkml.org 
[lkml]   [2002]   [Oct]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Subject[RFC] linux-2.5.34_vsyscall_A0 - Test App
From
Date
All,
Attached is a application to test vsyscall_A0 gettimeofday.

thanks
-john


#include <stdio.h>
#include <stdlib.h>

void (*vsys)(struct timeval*, struct timeval*) = (void*)0xffffe000UL;
void main()
{
struct timeval tv;
gettimeofday(&tv,NULL);
printf("time: %lu %lu\n", tv.tv_sec,tv.tv_usec);
(*vsys)(&tv,NULL);
printf("vtime: %lu %lu\n", tv.tv_sec,tv.tv_usec);

}
\
 
 \ /
  Last update: 2005-03-22 13:30    [W:0.117 / U:0.196 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site