From 1167ea7fb646fccf2357cc631b61003a2f965b20 Mon Sep 17 00:00:00 2001 From: NAKAMURA Gou Date: Wed, 12 Jun 2013 17:45:30 +0900 Subject: [PATCH] delete SYSCALL_DECLARE(getdents64) --- executer/user/mcexec.c | 6 ------ kernel/syscall.c | 8 -------- 2 files changed, 14 deletions(-) diff --git a/executer/user/mcexec.c b/executer/user/mcexec.c index 10662e3a..1f3c9d63 100644 --- a/executer/user/mcexec.c +++ b/executer/user/mcexec.c @@ -630,12 +630,6 @@ int main_loop(int fd, int cpu, pthread_mutex_t *lock) pthread_mutex_unlock(lock); return w.sr.args[0]; - 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; - do_syscall_return(fd, cpu, ret, 1, (unsigned long)dma_buf, w.sr.args[1], c < 0 ? 0 : c); - break; } - case __NR_readlink: { dma_buf[256] = 0; do_syscall_load(fd, cpu, (unsigned long)dma_buf, w.sr.args[0], 256); diff --git a/kernel/syscall.c b/kernel/syscall.c index 837b1e7d..41ca7c1f 100644 --- a/kernel/syscall.c +++ b/kernel/syscall.c @@ -450,13 +450,6 @@ SYSCALL_DECLARE(getpid) return cpu_local_var(current)->pid; } -SYSCALL_DECLARE(getdents64) -{ - SYSCALL_HEADER; - SYSCALL_ARGS_3(D, MO, D); - SYSCALL_FOOTER; -} - SYSCALL_DECLARE(readlink) { SYSCALL_HEADER; @@ -945,7 +938,6 @@ static long (*syscall_table[])(int, ihk_mc_user_context_t *) = { [202] = sys_futex, [203] = sys_sched_setaffinity, [204] = sys_sched_getaffinity, - [217] = sys_getdents64, [218] = sys_set_tid_address, [231] = sys_exit_group, [234] = sys_tgkill,