operatingsystem.hh (6672:b636411c118e) operatingsystem.hh (8767:e575781f71b8)
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;

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

27 *
28 * Authors: Gabe Black
29 */
30
31#ifndef __KERN_OPERATINGSYSTEM_HH__
32#define __KERN_OPERATINGSYSTEM_HH__
33
34#include "base/types.hh"
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;

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

27 *
28 * Authors: Gabe Black
29 */
30
31#ifndef __KERN_OPERATINGSYSTEM_HH__
32#define __KERN_OPERATINGSYSTEM_HH__
33
34#include "base/types.hh"
35#include "config/full_system.hh"
36
35
37#if FULL_SYSTEM
38
39class OperatingSystem {};
40
41#else //!FULL_SYSTEM
42#include <string>
43
44class LiveProcess;
45class ThreadContext;
46
47/// This struct is used to build an target-OS-dependent table that
48/// maps the target's open() flags to the host open() flags.
49struct OpenFlagTransTable {

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

123 static int openSpecialFile(std::string path, LiveProcess *process, ThreadContext *tc);
124
125 static const bool mmapGrowsUp = true;
126
127 static bool mmapGrowsDown() { return false; }
128
129}; // class OperatingSystem
130
36#include <string>
37
38class LiveProcess;
39class ThreadContext;
40
41/// This struct is used to build an target-OS-dependent table that
42/// maps the target's open() flags to the host open() flags.
43struct OpenFlagTransTable {

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

117 static int openSpecialFile(std::string path, LiveProcess *process, ThreadContext *tc);
118
119 static const bool mmapGrowsUp = true;
120
121 static bool mmapGrowsDown() { return false; }
122
123}; // class OperatingSystem
124
131
132#endif // FULL_SYSTEM
133
134#endif // __OPERATINGSYSTEM_HH__
125#endif // __OPERATINGSYSTEM_HH__