예제 #1
0
파일: vsyscall.c 프로젝트: Rick33/freevms
static time_t __vsyscall(1) vtime(time_t * tp)
{
	struct timeval tv;
	vgettimeofday(&tv, NULL);
	if (tp) *tp = tv.tv_sec;
	return tv.tv_sec;
}
예제 #2
0
static time_t __vsyscall(1) asmlinkage vtime(time_t * t)
{
	struct timeval tv;
	vgettimeofday(&tv,NULL);
	if (t)
		*t = tv.tv_sec;
	return tv.tv_sec;
}