From a6779a3e1bcd2b064d74157db088cc739aca165e Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Tue, 11 Dec 2012 19:16:24 +0100 Subject: [PATCH] Use platform independent data types in order to support x64 platforms --- filesystems/test/fsw_posix_base.h | 17 +++++++++-------- filesystems/test/lslr.c | 9 ++++----- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/filesystems/test/fsw_posix_base.h b/filesystems/test/fsw_posix_base.h index ee1d96c..70c7052 100644 --- a/filesystems/test/fsw_posix_base.h +++ b/filesystems/test/fsw_posix_base.h @@ -41,6 +41,7 @@ #include #include +#include #include #include #include @@ -51,14 +52,14 @@ // types -typedef signed char fsw_s8; -typedef unsigned char fsw_u8; -typedef short fsw_s16; -typedef unsigned short fsw_u16; -typedef long fsw_s32; -typedef unsigned long fsw_u32; -typedef long long fsw_s64; -typedef unsigned long long fsw_u64; +typedef int8_t fsw_s8; +typedef uint8_t fsw_u8; +typedef int16_t fsw_s16; +typedef uint16_t fsw_u16; +typedef int32_t fsw_s32; +typedef uint32_t fsw_u32; +typedef int64_t fsw_s64; +typedef uint64_t fsw_u64; // allocation functions diff --git a/filesystems/test/lslr.c b/filesystems/test/lslr.c index d3e4e3c..6b8e3a2 100644 --- a/filesystems/test/lslr.c +++ b/filesystems/test/lslr.c @@ -35,6 +35,8 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#define FSW_DEBUG_LEVEL 3 + #include "fsw_posix.h" @@ -122,11 +124,8 @@ int main(int argc, char **argv) return 1; } - //listdir(vol, "/System/Library/Extensions/udf.kext/", 0); - //listdir(vol, "/System/Library/Extensions/AppleACPIPlatform.kext/", 0); - //listdir(vol, "/System/Library/Extensions/", 0); - catfile(vol, "/System/Library/Extensions/AppleHPET.kext/Contents/Info.plist"); - //listdir(vol, "/", 0); + listdir(vol, "/", 0); + catfile(vol, "/gaga/test"); fsw_posix_unmount(vol); -- 2.39.2