Review Board 2.0.15


syscall_emul: file descriptor interface changes

Review Request #2966 - Created July 13, 2015 and submitted - Latest diff uploaded

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.