sim: style fixes in sim/process.hh
This commit is contained in:
parent
8d29bda742
commit
0cbbedcc33
1 changed files with 19 additions and 27 deletions
|
@ -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 §ion);
|
void unserialize(Checkpoint *cp, const std::string §ion);
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
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);
|
||||||
|
|
Loading…
Reference in a new issue