solaris.hh (2665:a124942bacb8) solaris.hh (2764:e6fea7527b3c)
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;

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

69 typedef int32_t gid_t;
70 typedef uint64_t rlim_t;
71 typedef uint64_t ino_t;
72 typedef uint64_t dev_t;
73 typedef uint32_t mode_t;
74 typedef uint32_t nlink_t;
75 //@}
76
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;

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

69 typedef int32_t gid_t;
70 typedef uint64_t rlim_t;
71 typedef uint64_t ino_t;
72 typedef uint64_t dev_t;
73 typedef uint32_t mode_t;
74 typedef uint32_t nlink_t;
75 //@}
76
77#if BSD_HOST
77#if NO_STAT64
78 typedef struct stat hst_stat;
79 typedef struct stat hst_stat64;
80#else
81 typedef struct stat hst_stat ;
82 typedef struct stat64 hst_stat64;
83#endif
84 struct tgt_timespec {
85 int64_t tv_sec;

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

172 int64_t ru_nsignals; //!< signals received
173 int64_t ru_nvcsw; //!< voluntary context switches
174 int64_t ru_nivcsw; //!< involuntary "
175 };
176
177 /// Helper function to convert a host stat buffer to a target stat
178 /// buffer. Also copies the target buffer out to the simulated
179 /// memory space. Used by stat(), fstat(), and lstat().
78 typedef struct stat hst_stat;
79 typedef struct stat hst_stat64;
80#else
81 typedef struct stat hst_stat ;
82 typedef struct stat64 hst_stat64;
83#endif
84 struct tgt_timespec {
85 int64_t tv_sec;

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

172 int64_t ru_nsignals; //!< signals received
173 int64_t ru_nvcsw; //!< voluntary context switches
174 int64_t ru_nivcsw; //!< involuntary "
175 };
176
177 /// Helper function to convert a host stat buffer to a target stat
178 /// buffer. Also copies the target buffer out to the simulated
179 /// memory space. Used by stat(), fstat(), and lstat().
180#if !BSD_HOST
180#if !NO_STAT64
181 static void
182 copyOutStatBuf(TranslatingPort *mem, Addr addr, hst_stat *host)
183 {
184 using namespace TheISA;
185
186 TypedBufferArg<Solaris::tgt_stat> tgt(addr);
187
188 tgt->st_dev = htog(host->st_dev);

--- 118 unchanged lines hidden ---
181 static void
182 copyOutStatBuf(TranslatingPort *mem, Addr addr, hst_stat *host)
183 {
184 using namespace TheISA;
185
186 TypedBufferArg<Solaris::tgt_stat> tgt(addr);
187
188 tgt->st_dev = htog(host->st_dev);

--- 118 unchanged lines hidden ---