File tree Expand file tree Collapse file tree 3 files changed +8
-9
lines changed
src/unix/bsd/freebsdlike/freebsd Expand file tree Collapse file tree 3 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -1769,7 +1769,7 @@ fn test_freebsd(target: &str) {
1769
1769
| "F_SEAL_SHRINK"
1770
1770
| "F_SEAL_GROW"
1771
1771
| "F_SEAL_WRITE"
1772
- if Some ( 12 ) = = freebsd_ver =>
1772
+ if Some ( 12 ) < = freebsd_ver =>
1773
1773
{
1774
1774
true
1775
1775
}
Original file line number Diff line number Diff line change @@ -190,6 +190,13 @@ cfg_if! {
190
190
}
191
191
}
192
192
193
+ pub const F_ADD_SEALS : :: c_int = 19 ;
194
+ pub const F_GET_SEALS : :: c_int = 20 ;
195
+ pub const F_SEAL_SEAL : :: c_int = 0x0001 ;
196
+ pub const F_SEAL_SHRINK : :: c_int = 0x0002 ;
197
+ pub const F_SEAL_GROW : :: c_int = 0x0004 ;
198
+ pub const F_SEAL_WRITE : :: c_int = 0x0008 ;
199
+
193
200
cfg_if ! {
194
201
if #[ cfg( not( freebsd13) ) ] {
195
202
pub const ELAST : :: c_int = 96 ;
Original file line number Diff line number Diff line change @@ -1162,14 +1162,6 @@ pub const F_SETLK_REMOTE: ::c_int = 14;
1162
1162
pub const F_READAHEAD : :: c_int = 15 ;
1163
1163
pub const F_RDAHEAD : :: c_int = 16 ;
1164
1164
pub const F_DUP2FD_CLOEXEC : :: c_int = 18 ;
1165
- pub const F_ADD_SEALS : :: c_int = 19 ;
1166
- pub const F_GET_SEALS : :: c_int = 20 ;
1167
-
1168
- pub const F_SEAL_SEAL : :: c_int = 0x0001 ;
1169
- pub const F_SEAL_SHRINK : :: c_int = 0x0002 ;
1170
- pub const F_SEAL_GROW : :: c_int = 0x0004 ;
1171
- pub const F_SEAL_WRITE : :: c_int = 0x0008 ;
1172
-
1173
1165
1174
1166
fn _ALIGN ( p : usize ) -> usize {
1175
1167
( p + _ALIGNBYTES) & !_ALIGNBYTES
You can’t perform that action at this time.
0 commit comments