diff options
author | Michael Adler <Michael.Adler@intel.com> | 2014-10-20 16:44:53 -0500 |
---|---|---|
committer | Michael Adler <Michael.Adler@intel.com> | 2014-10-20 16:44:53 -0500 |
commit | a3fe4c06620439aa317f257d3bcdde34508d3d43 (patch) | |
tree | e6bd4f80dddbe7404fcf87f82a2deeb803f93ab2 /src/sim/syscall_emul.hh | |
parent | e72736aaf0508dd545ae9949c31ed91ba41d761b (diff) | |
download | gem5-a3fe4c06620439aa317f257d3bcdde34508d3d43.tar.xz |
sim: implement getdents/getdents64 in user mode
Has been tested only for alpha.
Committed by: Nilay Vaish <nilay@cs.wisc.edu>
Diffstat (limited to 'src/sim/syscall_emul.hh')
-rw-r--r-- | src/sim/syscall_emul.hh | 8 |
1 files changed, 8 insertions, 0 deletions
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 |