syscall_emul: clean up open() code a bit.
Review Request #1325 - Created July 26, 2012 and submitted
| Information | |
|---|---|
| Steve Reinhardt | |
| gem5 | |
| default | |
| Reviewers | |
| Default | |
Changeset 9132:788ceacd29f9 --------------------------- syscall_emul: clean up open() code a bit.
Posted (July 26, 2012, 11:21 a.m.)
-
src/sim/syscall_emul.hh (Diff revision 1) -
can you just turn this into a if (fd == -1) return -local_errno return process->alloc_fd(fd, path.c_str(), hostFlags, mode, false); I don't think the ?: simplifies the expression any here since it makes in wrap anyway. Free free to ignore and just commit though.
