File tree Expand file tree Collapse file tree 2 files changed +29
-0
lines changed
src/unix/bsd/freebsdlike/freebsd Expand file tree Collapse file tree 2 files changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -1762,6 +1762,18 @@ fn test_freebsd(target: &str) {
1762
1762
1763
1763
cfg. skip_const ( move |name| {
1764
1764
match name {
1765
+ // These constants are to be introduced in yet-unreleased FreeBSD 12.2.
1766
+ "F_ADD_SEALS"
1767
+ | "F_GET_SEALS"
1768
+ | "F_SEAL_SEAL"
1769
+ | "F_SEAL_SHRINK"
1770
+ | "F_SEAL_GROW"
1771
+ | "F_SEAL_WRITE"
1772
+ if Some ( 12 ) == freebsd_ver =>
1773
+ {
1774
+ true
1775
+ }
1776
+
1765
1777
// These constants were introduced in FreeBSD 12:
1766
1778
"SF_USER_READAHEAD"
1767
1779
| "EVFILT_EMPTY"
Original file line number Diff line number Diff line change @@ -1154,6 +1154,23 @@ pub const UF_READONLY: ::c_ulong = 0x00001000;
1154
1154
pub const UF_HIDDEN : :: c_ulong = 0x00008000 ;
1155
1155
pub const SF_SNAPSHOT : :: c_ulong = 0x00200000 ;
1156
1156
1157
+ pub const F_OGETLK : :: c_int = 7 ;
1158
+ pub const F_OSETLK : :: c_int = 8 ;
1159
+ pub const F_OSETLKW : :: c_int = 9 ;
1160
+ pub const F_DUP2FD : :: c_int = 10 ;
1161
+ pub const F_SETLK_REMOTE : :: c_int = 14 ;
1162
+ pub const F_READAHEAD : :: c_int = 15 ;
1163
+ pub const F_RDAHEAD : :: c_int = 16 ;
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
+
1157
1174
fn _ALIGN ( p : usize ) -> usize {
1158
1175
( p + _ALIGNBYTES) & !_ALIGNBYTES
1159
1176
}
You can’t perform that action at this time.
0 commit comments