From 4494e54d38e5c8f32649e86f71eebc644a4dec12 Mon Sep 17 00:00:00 2001 From: NAKAMURA Gou Date: Wed, 12 Jun 2013 17:39:24 +0900 Subject: [PATCH] delete SYSCALL_DECLARE(lseek) --- executer/user/mcexec.c | 5 ----- kernel/syscall.c | 9 --------- 2 files changed, 14 deletions(-) diff --git a/executer/user/mcexec.c b/executer/user/mcexec.c index a3ea256d..8d3c45b6 100644 --- a/executer/user/mcexec.c +++ b/executer/user/mcexec.c @@ -589,11 +589,6 @@ int main_loop(int fd, int cpu, pthread_mutex_t *lock) do_syscall_return(fd, cpu, ret, 0, 0, 0, 0); break; - case __NR_lseek: - ret = lseek64(w.sr.args[0], w.sr.args[1], w.sr.args[2]); - do_syscall_return(fd, cpu, ret, 0, 0, 0, 0); - break; - case __NR_gettimeofday: ret = gettimeofday((struct timeval *)dma_buf, NULL); SET_ERR(ret); diff --git a/kernel/syscall.c b/kernel/syscall.c index 914df84a..0a91bddf 100644 --- a/kernel/syscall.c +++ b/kernel/syscall.c @@ -165,14 +165,6 @@ SYSCALL_DECLARE(gettimeofday) SYSCALL_FOOTER; } -SYSCALL_DECLARE(lseek) -{ - SYSCALL_HEADER; - SYSCALL_ARGS_3(D, D, D); - SYSCALL_FOOTER; -} - - SYSCALL_DECLARE(exit_group) { SYSCALL_HEADER; @@ -971,7 +963,6 @@ SYSCALL_DECLARE(pmc_reset) static long (*syscall_table[])(int, ihk_mc_user_context_t *) = { [2] = sys_open, - [8] = sys_lseek, [9] = sys_mmap, [10] = sys_mprotect, [11] = sys_munmap,