Skip to content

Commit 6618a72

Browse files
committed
Add more fcntl and seal constants for Android/Linux
1 parent 916b82d commit 6618a72

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/unix/notbsd/mod.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,9 +212,17 @@ pub const F_SETFL: ::c_int = 4;
212212
pub const F_SETLEASE: ::c_int = 1024;
213213
pub const F_GETLEASE: ::c_int = 1025;
214214
pub const F_NOTIFY: ::c_int = 1026;
215+
pub const F_CANCELLK: ::c_int = 1029;
215216
pub const F_DUPFD_CLOEXEC: ::c_int = 1030;
216217
pub const F_SETPIPE_SZ: ::c_int = 1031;
217218
pub const F_GETPIPE_SZ: ::c_int = 1032;
219+
pub const F_ADD_SEALS: c_int = 1033;
220+
pub const F_GET_SEALS: c_int = 1034;
221+
222+
pub const F_SEAL_SEAL: c_int = 0x0001;
223+
pub const F_SEAL_SHRINK: c_int = 0x0002;
224+
pub const F_SEAL_GROW: c_int = 0x0004;
225+
pub const F_SEAL_WRITE: c_int = 0x0008;
218226

219227
// TODO(#235): Include file sealing fcntls once we have a way to verify them.
220228

0 commit comments

Comments
 (0)