From cb5d95a43d485d7c52eee6f76a59ee2635e4ba81 Mon Sep 17 00:00:00 2001 From: Almindor Date: Sat, 14 Jun 2008 11:01:02 +0000 Subject: [PATCH] * properly fix the statfs for both 32 and 64bit linux git-svn-id: trunk@11224 - --- rtl/linux/ptypes.inc | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/rtl/linux/ptypes.inc b/rtl/linux/ptypes.inc index cdddfa4bf0..48be556e5f 100644 --- a/rtl/linux/ptypes.inc +++ b/rtl/linux/ptypes.inc @@ -136,18 +136,35 @@ Type ptimespec = ^timespec; TTimeSpec = timespec; + {$ifdef cpu64} TStatfs = packed record fstype, { File system type } - bsize, // : cint; { Optimal block trensfer size } + bsize : clong; { Optimal block trensfer size } blocks, { Data blocks in system } bfree, { free blocks in system } bavail, { Available free blocks to non-root users } files, { File nodes in system } - ffree : clong; { Free file nodes in system } + ffree : culong; { Free file nodes in system } fsid : array[0..1] of cint; { File system ID } namelen : clong; { Maximum name length in system } - spare : array [0..5] of clong; { For later use } + frsize : clong; + spare : array [0..4] of clong; { For later use } end; + {$else} + TStatfs = packed record + fstype, { File system type } + bsize : cint; { Optimal block trensfer size } + blocks, { Data blocks in system } + bfree, { free blocks in system } + bavail, { Available free blocks to non-root users } + files, { File nodes in system } + ffree : culong; { Free file nodes in system } + fsid : array[0..1] of cint; { File system ID } + namelen, { Maximum name length in system } + frsize : cint; + spare : array [0..4] of cint; { For later use } + end; + {$endif} PStatFS=^TStatFS; mbstate_value_t = record