operatingsystem.hh (5543:3af77710f397) operatingsystem.hh (5795:72ce7502dc71)
1/*
2 * Copyright (c) 2004-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 26 unchanged lines hidden (view full) ---

35
36#include <inttypes.h>
37
38#if FULL_SYSTEM
39
40class OperatingSystem {};
41
42#else //!FULL_SYSTEM
1/*
2 * Copyright (c) 2004-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 26 unchanged lines hidden (view full) ---

35
36#include <inttypes.h>
37
38#if FULL_SYSTEM
39
40class OperatingSystem {};
41
42#else //!FULL_SYSTEM
43#include <string>
43
44
45class LiveProcess;
46class ThreadContext;
47
44/// This struct is used to build an target-OS-dependent table that
45/// maps the target's open() flags to the host open() flags.
46struct OpenFlagTransTable {
47 int tgtFlag; //!< Target system flag value.
48 int hostFlag; //!< Corresponding host system flag value.
49};
50
51

--- 60 unchanged lines hidden (view full) ---

112 int64_t ru_oublock; //!< block output operations
113 int64_t ru_msgsnd; //!< messages sent
114 int64_t ru_msgrcv; //!< messages received
115 int64_t ru_nsignals; //!< signals received
116 int64_t ru_nvcsw; //!< voluntary context switches
117 int64_t ru_nivcsw; //!< involuntary "
118 } rusage;
119
48/// This struct is used to build an target-OS-dependent table that
49/// maps the target's open() flags to the host open() flags.
50struct OpenFlagTransTable {
51 int tgtFlag; //!< Target system flag value.
52 int hostFlag; //!< Corresponding host system flag value.
53};
54
55

--- 60 unchanged lines hidden (view full) ---

116 int64_t ru_oublock; //!< block output operations
117 int64_t ru_msgsnd; //!< messages sent
118 int64_t ru_msgrcv; //!< messages received
119 int64_t ru_nsignals; //!< signals received
120 int64_t ru_nvcsw; //!< voluntary context switches
121 int64_t ru_nivcsw; //!< involuntary "
122 } rusage;
123
124 static int openSpecialFile(std::string path, LiveProcess *process, ThreadContext *tc);
125
120}; // class OperatingSystem
121
122
123#endif // FULL_SYSTEM
124
125#endif // __OPERATINGSYSTEM_HH__
126}; // class OperatingSystem
127
128
129#endif // FULL_SYSTEM
130
131#endif // __OPERATINGSYSTEM_HH__