From a3fe4c06620439aa317f257d3bcdde34508d3d43 Mon Sep 17 00:00:00 2001 From: Michael Adler Date: Mon, 20 Oct 2014 16:44:53 -0500 Subject: sim: implement getdents/getdents64 in user mode Has been tested only for alpha. Committed by: Nilay Vaish --- src/sim/syscall_emul.hh | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/sim/syscall_emul.hh') diff --git a/src/sim/syscall_emul.hh b/src/sim/syscall_emul.hh index 66c12f07d..a106a1939 100644 --- a/src/sim/syscall_emul.hh +++ b/src/sim/syscall_emul.hh @@ -439,6 +439,14 @@ futexFunc(SyscallDesc *desc, int callnum, LiveProcess *process, } +/// Target getdents() handler. +SyscallReturn getdentsFunc(SyscallDesc *desc, int num, + LiveProcess *process, ThreadContext *tc); + +/// Target getdents64() handler. +SyscallReturn getdents64Func(SyscallDesc *desc, int num, + LiveProcess *process, ThreadContext *tc); + /// Pseudo Funcs - These functions use a different return convension, /// returning a second value in a register other than the normal return register -- cgit v1.2.3