syscall_emul: file descriptor interface changes
Review Request #2966 - Created July 13, 2015 and submitted
| Information | |
|---|---|
| Brandon Potter | |
| gem5 | |
| default | |
| Reviewers | |
| Default | |
Changeset 10917:eafe9bd908a7 --------------------------- syscall_emul: file descriptor interface changes This patch gets rid of unused Process::dup_fd method and does minor refactoring in the process class files. The file descriptor max has been changed to be the number of file descriptors since this clarifies the loop boundary condition and cleans up the code a bit. The fd_map field has been altered to be dynamically allocated as opposed to being an array; the intention here is to build on this is subsequent patches to allow processes to share their file descriptors with the clone system call.
Posted (July 21, 2015, 1:50 p.m.)
-
src/sim/process.hh (Diff revision 1) -
I think this will break existing SE mode checkpoints.
-
src/sim/process.hh (Diff revision 1) -
I think you should say sim fd and not host fd.
-
src/sim/process.cc (Diff revision 1) -
How does this change help?
