sim: style fixes in sim/process.hh

This commit is contained in:
Steve Reinhardt 2011-05-23 14:29:23 -07:00
parent 8d29bda742
commit 0cbbedcc33

View file

@ -152,22 +152,13 @@ class Process : public SimObject
int readPipeSource; int readPipeSource;
uint64_t fileOffset; uint64_t fileOffset;
FdMap() FdMap()
{ : fd(-1), filename("NULL"), mode(0), flags(0),
fd = -1; isPipe(false), readPipeSource(0), fileOffset(0)
filename = "NULL"; { }
mode = 0;
flags = 0;
isPipe = false;
readPipeSource = 0;
fileOffset = 0;
}
void serialize(std::ostream &os); void serialize(std::ostream &os);
void unserialize(Checkpoint *cp, const std::string &section); void unserialize(Checkpoint *cp, const std::string &section);
}; };
private: private:
@ -198,7 +189,8 @@ class Process : public SimObject
void dup_fd(int sim_fd, int tgt_fd); void dup_fd(int sim_fd, int tgt_fd);
// generate new target fd for sim_fd // generate new target fd for sim_fd
int alloc_fd(int sim_fd, std::string filename, int flags, int mode, bool pipe); int alloc_fd(int sim_fd, std::string filename, int flags, int mode,
bool pipe);
// free target fd (e.g., after close) // free target fd (e.g., after close)
void free_fd(int tgt_fd); void free_fd(int tgt_fd);