Skip to content

Commit

Permalink
Provide access to 64 bit inode numbers.
Browse files Browse the repository at this point in the history
  • Loading branch information
didactic-drunk committed Oct 20, 2019
1 parent 93e5fb9 commit 07c7e8d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions src/lib_c/x86_64-darwin/c/sys/stat.cr
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,16 @@ lib LibC

struct Stat
st_dev : DevT
st_ino : InoT
st_mode : ModeT
st_nlink : NlinkT
st_ino : InoT
st_uid : UidT
st_gid : GidT
st_rdev : DevT
st_atimespec : Timespec
st_mtimespec : Timespec
st_ctimespec : Timespec
st_birthtimespec : Timespec
st_size : OffT
st_blocks : BlkcntT
st_blksize : BlksizeT
Expand All @@ -47,11 +48,11 @@ lib LibC
end

fun chmod(x0 : Char*, x1 : ModeT) : Int
fun fstat(x0 : Int, x1 : Stat*) : Int
fun lstat(x0 : Char*, x1 : Stat*) : Int
fun fstat = fstat64(x0 : Int, x1 : Stat*) : Int
fun lstat = lstat64(x0 : Char*, x1 : Stat*) : Int
fun mkdir(x0 : Char*, x1 : ModeT) : Int
fun mkfifo(x0 : Char*, x1 : ModeT) : Int
fun mknod(x0 : Char*, x1 : ModeT, x2 : DevT) : Int
fun stat(x0 : Char*, x1 : Stat*) : Int
fun stat = stat64(x0 : Char*, x1 : Stat*) : Int
fun umask(x0 : ModeT) : ModeT
end
2 changes: 1 addition & 1 deletion src/lib_c/x86_64-darwin/c/sys/types.cr
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ lib LibC
alias DevT = Int
alias GidT = UInt
alias IdT = UInt
alias InoT = UInt
alias InoT = UInt64
alias ModeT = UShort
alias NlinkT = UShort
alias OffT = LongLong
Expand Down

0 comments on commit 07c7e8d

Please sign in to comment.