Skip to content

Commit

Permalink
Quick hack to make FreeBSDFileStat work on FreeBSD 12 (jnr#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
Freaky committed Dec 16, 2018
1 parent 3f87169 commit 734a2ff
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/main/java/jnr/posix/FreeBSDFileStat.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,26 +44,29 @@ public final class time_t extends SignedLong {}
public final class dev_t extends Signed32 {}

public final dev_t st_dev = new dev_t();
public final Signed32 st_ino = new Signed32();
public final Signed64 st_ino = new Signed64();
// FIXME: this should be a 64-bit field
public final Signed32 st_nlink_upper = new Signed32();
public final Signed32 st_nlink = new Signed32();
public final Signed16 st_mode = new Signed16();
public final Signed16 st_nlink = new Signed16();
public final Signed16 st_padding0 = new Signed16();
public final Signed32 st_uid = new Signed32();
public final Signed32 st_gid = new Signed32();
public final Signed32 st_padding1 = new Signed32();
public final dev_t st_rdev = new dev_t();
public final time_t st_atime = new time_t();
public final SignedLong st_atimensec = new SignedLong();
public final time_t st_mtime = new time_t();
public final SignedLong st_mtimensec = new SignedLong();
public final time_t st_ctime = new time_t();
public final SignedLong st_ctimensec = new SignedLong();
public final time_t st_birthtime = new time_t();
public final SignedLong st_birthtimensec = new SignedLong();
public final Signed64 st_size = new Signed64();
public final Signed64 st_blocks = new Signed64();
public final Signed32 st_blksize = new Signed32();
public final Signed32 st_flags = new Signed32();
public final Signed32 st_gen = new Signed32();
public final Signed32 st_lspare = new Signed32();
public final time_t st_birthtime = new time_t();
public final SignedLong st_birthtimensec = new SignedLong();
public final Signed64 st_gen = new Signed64();
/* FIXME: This padding isn't quite correct */
public final Signed64 st_qspare0 = new Signed64();
}
Expand Down

0 comments on commit 734a2ff

Please sign in to comment.