ref: f0ce247dea7ef73e621b5a0ed8598ee9108dbd75
parent: d6d20b1c17e02c66a3ec89c96e3f35b011c59056
author: Ori Bernstein <[email protected]>
date: Mon Aug 18 15:56:50 EDT 2014
Fix directory reading on OSX.
--- a/libstd/dir-osx.myr
+++ b/libstd/dir-osx.myr
@@ -12,7 +12,7 @@
fd : fd
buf : byte[16384]
len : int64
- off : int64
+ off : uint64
base : int64
;;
--- a/libstd/sys-osx.myr
+++ b/libstd/sys-osx.myr
@@ -89,7 +89,7 @@
__pad2 : byte[112]
;;
- type dirent = struct
+ type dirent64 = struct
ino : uint64
seekoff : uint64 /* seek offset (optional, used by servers) */
reclen : uint16 /* length of this record */
@@ -534,7 +534,7 @@
const fstat : (fd:fd, sb:statbuf# -> int64)
const mkdir : (path : byte[:], mode : int64 -> int64)
const ioctl : (fd:fd, req : int64, args:... -> int64)
- const getdirentries64 : (fd : fd, buf : byte[:], basep : uint64# -> int64)
+ const getdirentries64 : (fd : fd, buf : byte[:], basep : int64# -> int64)
/* fd stuff */
const pipe : (fd : fd[:] -> int64)