Browse Source

* Fix results of a bunch of stat functions, sstat.inc.patch from #20974

git-svn-id: trunk@19894 -
marco 13 years ago
parent
commit
0d9b57195b
1 changed files with 12 additions and 12 deletions
  1. 12 12
      packages/libc/src/sstat.inc

+ 12 - 12
packages/libc/src/sstat.inc

@@ -46,71 +46,71 @@ end;
 
 
 function fstat(__fd:longint; __buf:Pstat):longint;
 function fstat(__fd:longint; __buf:Pstat):longint;
   begin
   begin
-    __fxstat(_STAT_VER,__fd,__buf);
+    fstat:=__fxstat(_STAT_VER,__fd,__buf);
   end;
   end;
 
 
 
 
 function lstat(__file:Pchar; __buf:Pstat):longint;
 function lstat(__file:Pchar; __buf:Pstat):longint;
   begin
   begin
-    __lxstat(_STAT_VER,__file,__buf);
+    lstat:=__lxstat(_STAT_VER,__file,__buf);
   end;
   end;
 
 
 
 
 function stat(__file:Pchar; __buf:Pstat):longint;
 function stat(__file:Pchar; __buf:Pstat):longint;
   begin
   begin
-    __xstat(_STAT_VER,__file,__buf);
+    stat:=__xstat(_STAT_VER,__file,__buf);
   end;
   end;
 
 
 
 
 function fstat64(__fd:longint; __buf:Pstat64):longint;
 function fstat64(__fd:longint; __buf:Pstat64):longint;
   begin
   begin
-    __fxstat64(_STAT_VER,__fd,__buf);
+    fstat64:=__fxstat64(_STAT_VER,__fd,__buf);
   end;
   end;
 
 
 
 
 function lstat64(__file:Pchar; __buf:Pstat64):longint;
 function lstat64(__file:Pchar; __buf:Pstat64):longint;
   begin
   begin
-    __lxstat64(_STAT_VER,__file,__buf);
+    lstat64:=__lxstat64(_STAT_VER,__file,__buf);
   end;
   end;
 
 
 
 
 function stat64(__file:Pchar; __buf:Pstat64):longint;
 function stat64(__file:Pchar; __buf:Pstat64):longint;
   begin
   begin
-    __xstat64(_STAT_VER,__file,__buf);
+    stat64:=__xstat64(_STAT_VER,__file,__buf);
   end;
   end;
 
 
 
 
 function stat(__file:Pchar; var __buf:_stat):longint;
 function stat(__file:Pchar; var __buf:_stat):longint;
   begin
   begin
-    __xstat(_STAT_VER,__file,__buf);
+    stat:=__xstat(_STAT_VER,__file,__buf);
   end;
   end;
 
 
 
 
 function fstat(__fd:longint; var __buf:_stat):longint;
 function fstat(__fd:longint; var __buf:_stat):longint;
   begin
   begin
-    __fxstat(_STAT_VER,__fd,__buf);
+    fstat:=__fxstat(_STAT_VER,__fd,__buf);
   end;
   end;
 
 
 
 
 function stat64(__file:Pchar; var __buf: _stat64):longint;
 function stat64(__file:Pchar; var __buf: _stat64):longint;
   begin
   begin
-    __xstat64(_STAT_VER,__file,__buf);
+    stat64:=__xstat64(_STAT_VER,__file,__buf);
   end;
   end;
 
 
 
 
 function fstat64(__fd:longint; var __buf: _stat64):longint;
 function fstat64(__fd:longint; var __buf: _stat64):longint;
   begin
   begin
-    __fxstat64(_STAT_VER,__fd,__buf);
+    fstat64:=__fxstat64(_STAT_VER,__fd,__buf);
   end;
   end;
 
 
 
 
 function lstat(__file:Pchar; var __buf:_stat):longint;
 function lstat(__file:Pchar; var __buf:_stat):longint;
   begin
   begin
-    __lxstat(_STAT_VER,__file,__buf);
+    lstat:=__lxstat(_STAT_VER,__file,__buf);
   end;
   end;
 
 
 
 
 function lstat64(__file:Pchar; var __buf:_stat64):longint;
 function lstat64(__file:Pchar; var __buf:_stat64):longint;
   begin
   begin
-    __lxstat64(_STAT_VER,__file,__buf);
+    lstat64:=__lxstat64(_STAT_VER,__file,__buf);
   end;
   end;