delete SYSCALL_DECLARE(time)
This commit is contained in:
@ -647,27 +647,6 @@ int main_loop(int fd, int cpu, pthread_mutex_t *lock)
|
|||||||
do_syscall_return(fd, cpu, ret, 0, 0, 0, 0);
|
do_syscall_return(fd, cpu, ret, 0, 0, 0, 0);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
/*
|
|
||||||
glibc-2.14.90/sysdeps/unix/sysv/linux/x86_64/time.S
|
|
||||||
linux-2.6.34.13/arch/x86/kernel/vsyscall_64.c
|
|
||||||
/usr/include/time.h
|
|
||||||
/usr/include/bits/types.h
|
|
||||||
/usr/include/bits/typesizes.h
|
|
||||||
#define __TIME_T_TYPE __SLONGWORD_TYPE
|
|
||||||
*/
|
|
||||||
case __NR_time: {
|
|
||||||
time_t ret;
|
|
||||||
if(w.sr.args[0]) {
|
|
||||||
ret = time((time_t *)dma_buf);
|
|
||||||
} else {
|
|
||||||
ret = time(NULL);
|
|
||||||
}
|
|
||||||
SET_ERR(ret);
|
|
||||||
__dprintf("time=%ld\n", ret);
|
|
||||||
do_syscall_return(fd, cpu, ret, 1, (unsigned long)dma_buf,
|
|
||||||
w.sr.args[0], sizeof(time_t));
|
|
||||||
break; }
|
|
||||||
|
|
||||||
case __NR_gettimeofday:
|
case __NR_gettimeofday:
|
||||||
ret = gettimeofday((struct timeval *)dma_buf, NULL);
|
ret = gettimeofday((struct timeval *)dma_buf, NULL);
|
||||||
SET_ERR(ret);
|
SET_ERR(ret);
|
||||||
|
|||||||
@ -157,17 +157,6 @@ SYSCALL_DECLARE(open)
|
|||||||
SYSCALL_FOOTER;
|
SYSCALL_FOOTER;
|
||||||
}
|
}
|
||||||
|
|
||||||
SYSCALL_DECLARE(time)
|
|
||||||
{
|
|
||||||
SYSCALL_HEADER;
|
|
||||||
if(ihk_mc_syscall_arg0(ctx)) {
|
|
||||||
SYSCALL_ARGS_1(MO);
|
|
||||||
} else {
|
|
||||||
SYSCALL_ARGS_1(D);
|
|
||||||
}
|
|
||||||
SYSCALL_FOOTER;
|
|
||||||
}
|
|
||||||
|
|
||||||
SYSCALL_DECLARE(gettimeofday)
|
SYSCALL_DECLARE(gettimeofday)
|
||||||
{
|
{
|
||||||
SYSCALL_HEADER;
|
SYSCALL_HEADER;
|
||||||
@ -1088,7 +1077,6 @@ static long (*syscall_table[])(int, ihk_mc_user_context_t *) = {
|
|||||||
[96] = sys_gettimeofday,
|
[96] = sys_gettimeofday,
|
||||||
[97] = sys_getrlimit,
|
[97] = sys_getrlimit,
|
||||||
[158] = sys_arch_prctl,
|
[158] = sys_arch_prctl,
|
||||||
[201] = sys_time,
|
|
||||||
[202] = sys_futex,
|
[202] = sys_futex,
|
||||||
[203] = sys_sched_setaffinity,
|
[203] = sys_sched_setaffinity,
|
||||||
[204] = sys_sched_getaffinity,
|
[204] = sys_sched_getaffinity,
|
||||||
|
|||||||
Reference in New Issue
Block a user