From b463f39344aec83893cc817985e54c01389c978a Mon Sep 17 00:00:00 2001 From: NAKAMURA Gou Date: Wed, 12 Jun 2013 17:43:52 +0900 Subject: [PATCH] delete SYSCALL_DECLARE(access) --- executer/user/mcexec.c | 10 ---------- kernel/syscall.c | 9 --------- 2 files changed, 19 deletions(-) diff --git a/executer/user/mcexec.c b/executer/user/mcexec.c index 319c8369..10662e3a 100644 --- a/executer/user/mcexec.c +++ b/executer/user/mcexec.c @@ -630,16 +630,6 @@ int main_loop(int fd, int cpu, pthread_mutex_t *lock) pthread_mutex_unlock(lock); return w.sr.args[0]; - // see linux-2.6.34.13/fs/open.c - case __NR_access: { - dma_buf[256] = 0; - do_syscall_load(fd, cpu, (unsigned long)dma_buf, w.sr.args[0], 256); - __dprintf("access: %s\n", dma_buf); - int c = access((void *)dma_buf, w.sr.args[1]); - ret = (c < 0) ? -errno : c; - do_syscall_return(fd, cpu, ret, 0, 0, 0, 0); - break; } - case __NR_getdents64: { // linux-2.6.34.13/fs/readdir.c long c = syscall((int)__NR_getdents64, (unsigned int)w.sr.args[0], (void *)dma_buf, (unsigned int)w.sr.args[2]); ret = (c < 0) ? -errno : c; diff --git a/kernel/syscall.c b/kernel/syscall.c index f1808cfb..837b1e7d 100644 --- a/kernel/syscall.c +++ b/kernel/syscall.c @@ -450,14 +450,6 @@ SYSCALL_DECLARE(getpid) return cpu_local_var(current)->pid; } -SYSCALL_DECLARE(access) -{ - dkprintf("access: %s\n", (char*)ihk_mc_syscall_arg0(ctx)); - SYSCALL_HEADER; - SYSCALL_ARGS_2(MI, D); - SYSCALL_FOOTER; -} - SYSCALL_DECLARE(getdents64) { SYSCALL_HEADER; @@ -941,7 +933,6 @@ static long (*syscall_table[])(int, ihk_mc_user_context_t *) = { [12] = sys_brk, [13] = sys_rt_sigaction, [14] = sys_rt_sigprocmask, - [21] = sys_access, [24] = sys_sched_yield, [28] = sys_madvise, [39] = sys_getpid,