diff options
author | njn <njn@a5019735-40e9-0310-863c-91ae7b9d1cf9> | 2009-05-20 02:02:30 +0000 |
---|---|---|
committer | njn <njn@a5019735-40e9-0310-863c-91ae7b9d1cf9> | 2009-05-20 02:02:30 +0000 |
commit | 9c20ece00e07304f66da5f43b87ec45bc9c04550 (patch) | |
tree | 186baa6961992978636b4197adcd43c7400ba50e /include/pub_tool_libcfile.h | |
parent | 0146ce656b082b3aed43bbf6126eb6959405b5c4 (diff) | |
download | valgrind-9c20ece00e07304f66da5f43b87ec45bc9c04550.tar.gz |
Merge r9993, r9995 (comment changes about vg_stat) from the DARWIN branch,
and rename all the vg_stat fields to avoid problems that the old names cause
on Darwin.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9996 a5019735-40e9-0310-863c-91ae7b9d1cf9
Diffstat (limited to 'include/pub_tool_libcfile.h')
-rw-r--r-- | include/pub_tool_libcfile.h | 39 |
1 files changed, 22 insertions, 17 deletions
diff --git a/include/pub_tool_libcfile.h b/include/pub_tool_libcfile.h index 63fb0b39a..ad1fd04dc 100644 --- a/include/pub_tool_libcfile.h +++ b/include/pub_tool_libcfile.h @@ -43,24 +43,29 @@ specific vki_stat{,64} kernel structure will work and is consistently available on different architectures on Linux, so we have to use this 'struct vg_stat' impedance-matching type - instead. */ + instead. + + Also note that the fieldnames aren't prefixed with "st_". This is because + st_atime et al are macros in sys/stat.h on Darwin, and using those names + screws things up. +*/ struct vg_stat { - ULong st_dev; - ULong st_ino; - ULong st_nlink; - UInt st_mode; - UInt st_uid; - UInt st_gid; - ULong st_rdev; - Long st_size; - ULong st_blksize; - ULong st_blocks; - ULong st_atime; - ULong st_atime_nsec; - ULong st_mtime; - ULong st_mtime_nsec; - ULong st_ctime; - ULong st_ctime_nsec; + ULong dev; + ULong ino; + ULong nlink; + UInt mode; + UInt uid; + UInt gid; + ULong rdev; + Long size; + ULong blksize; + ULong blocks; + ULong atime; + ULong atime_nsec; + ULong mtime; + ULong mtime_nsec; + ULong ctime; + ULong ctime_nsec; }; extern SysRes VG_(open) ( const Char* pathname, Int flags, Int mode ); |