File tree 4 files changed +48
-11
lines changed
4 files changed +48
-11
lines changed Original file line number Diff line number Diff line change @@ -4,10 +4,21 @@ lib LibC
4
4
type DIR = Void
5
5
6
6
struct Dirent
7
- d_fileno : UInt
7
+ {% if flag?(:"freebsd12.0" ) % }
8
+ d_fileno : ULong
9
+ d_off : ULong
10
+ {% else % }
11
+ d_fileno : UInt
12
+ {% end % }
8
13
d_reclen : UShort
9
14
d_type : UChar
10
- d_namlen : UChar
15
+ {% if flag?(:"freebsd12.0" ) % }
16
+ d_pad0 : UChar
17
+ d_namlen : UShort
18
+ d_pad1 : UShort
19
+ {% else % }
20
+ d_namlen : UChar
21
+ {% end % }
11
22
d_name : StaticArray (Char , 256 )
12
23
end
13
24
Original file line number Diff line number Diff line change @@ -31,23 +31,40 @@ lib LibC
31
31
struct Stat
32
32
st_dev : DevT
33
33
st_ino : InoT
34
- st_mode : ModeT
35
- st_nlink : NlinkT
34
+ {% if flag?(:"freebsd12.0" ) % }
35
+ st_nlink : NlinkT
36
+ st_mode : ModeT
37
+ st_pad0 : UShort
38
+ {% else % }
39
+ st_mode : ModeT
40
+ st_nlink : NlinkT
41
+ {% end % }
36
42
st_uid : UidT
37
43
st_gid : GidT
44
+ {% if flag?(:"freebsd12.0" ) % }
45
+ st_pad1 : UInt
46
+ {% end % }
38
47
st_rdev : DevT
39
48
st_atim : Timespec
40
49
st_mtim : Timespec
41
50
st_ctim : Timespec
51
+ {% if flag?(:"freebsd12.0" ) % }
52
+ st_birthtim : Timespec
53
+ {% end % }
42
54
st_size : OffT
43
55
st_blocks : BlkcntT
44
56
st_blksize : BlksizeT
45
57
st_flags : FflagsT
46
- st_gen : UInt
47
- st_lspare : Int
48
- st_birthtim : Timespec
49
- __reserved_17 : UInt
50
- __reserved_18 : UInt
58
+ {% if flag?(" freebsd12.0" ) % }
59
+ st_gen : ULong
60
+ st_spare : StaticArray (ULong , 10 )
61
+ {% else % }
62
+ st_gen : UInt
63
+ st_lspare : Int
64
+ st_birthtim : Timespec
65
+ __reserved_17 : UInt
66
+ __reserved_18 : UInt
67
+ {% end % }
51
68
end
52
69
53
70
fun chmod (x0 : Char * , x1 : ModeT ) : Int
Original file line number Diff line number Diff line change @@ -9,9 +9,17 @@ lib LibC
9
9
alias DevT = UInt
10
10
alias GidT = UInt
11
11
alias IdT = Long
12
- alias InoT = UInt
12
+ {% if flag?(:"freebsd12.0" ) % }
13
+ alias InoT = ULong
14
+ {% else % }
15
+ alias InoT = UInt
16
+ {% end % }
13
17
alias ModeT = UShort
14
- alias NlinkT = UShort
18
+ {% if flag?(:"freebsd12.0" ) % }
19
+ alias NlinkT = ULong
20
+ {% else % }
21
+ alias NlinkT = UShort
22
+ {% end % }
15
23
alias OffT = Long
16
24
alias PidT = Int
17
25
type PthreadAttrT = Void *
Original file line number Diff line number Diff line change
1
+ x86_64-portbld-freebsd
You can’t perform that action at this time.
0 commit comments