shithub: mc

Download patch

ref: d794e275a102ac50d3924c7407d0de25c0b3e4f4
parent: c0dcdeb75b90dff58aa614a73274790af19af4d0
author: Ori Bernstein <[email protected]>
date: Sat Jun 7 18:24:35 EDT 2014

Fix struct statbuf.

    Well, that was b0rked.

--- a/libstd/sys-linux.myr
+++ b/libstd/sys-linux.myr
@@ -43,24 +43,25 @@
 	;;
 
 	type statbuf = struct
-		 dev     : uint
-		 ino     : uint
-		 mode    : uint16
-		 nlink   : uint16
-		 uid     : uint16
-		 gid     : uint16
-		 rdev    : uint
-		 size    : uint
-		 blksize : uint
-		 blocks  : uint
-		 atime   : uint
-		 atimens : uint
-		 mtime   : uint
-		 mtimens : uint
-		 ctime   : uint
-		 ctimens : uint
-		 _unused1: uint
-		 _unused2: uint
+		 dev		: uint64
+		 __inotrunc	: uint32
+		 __pad0		: uint32
+		 mode		: uint32
+		 nlink		: uint32
+		 uid		: uint32
+		 gid		: uint32
+		 rdev		: uint64
+		 __pad1		: uint32
+		 size		: uint64
+		 blksize	: uint32
+		 blocks		: uint64
+		 atime		: uint64
+		 atimens	: uint64
+		 mtime		: uint64
+		 mtimens	: uint64
+		 ctime		: uint64
+		 ctimens	: uint64
+		 ino		: uint64
 	;;
 
 	type utsname = struct