summaryrefslogtreecommitdiff
path: root/src/unix/bsd/netbsdlike/openbsd/mod.rs
diff options
context:
space:
mode:
authorAlan Somers <asomers@gmail.com>2022-10-22 09:22:05 -0600
committerAlan Somers <asomers@gmail.com>2022-10-22 09:22:05 -0600
commit138202dae5b11fc37aaeefe4c4b5bc5cb9c2b8ff (patch)
tree282e893213321406f6ab3caff7366387ae82f202 /src/unix/bsd/netbsdlike/openbsd/mod.rs
parent0488a83dc9aba7ec0643ea45d85cc722891e8cc2 (diff)
downloadrust-libc-138202dae5b11fc37aaeefe4c4b5bc5cb9c2b8ff.tar.gz
Add more MNT_ flags on {Dragonfly,Net,Open}BSD
Diffstat (limited to 'src/unix/bsd/netbsdlike/openbsd/mod.rs')
-rw-r--r--src/unix/bsd/netbsdlike/openbsd/mod.rs20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/unix/bsd/netbsdlike/openbsd/mod.rs b/src/unix/bsd/netbsdlike/openbsd/mod.rs
index f63ad9e638..89fe7a9c89 100644
--- a/src/unix/bsd/netbsdlike/openbsd/mod.rs
+++ b/src/unix/bsd/netbsdlike/openbsd/mod.rs
@@ -1639,6 +1639,26 @@ pub const SF_ARCHIVED: ::c_uint = 0x00010000;
pub const SF_IMMUTABLE: ::c_uint = 0x00020000;
pub const SF_APPEND: ::c_uint = 0x00040000;
+// sys/mount.h
+pub const MNT_NOPERM: ::c_int = 0x00000020;
+pub const MNT_WXALLOWED: ::c_int = 0x00000800;
+pub const MNT_EXRDONLY: ::c_int = 0x00000080;
+pub const MNT_EXPORTED: ::c_int = 0x00000100;
+pub const MNT_DEFEXPORTED: ::c_int = 0x00000200;
+pub const MNT_EXPORTANON: ::c_int = 0x00000400;
+pub const MNT_ROOTFS: ::c_int = 0x00004000;
+pub const MNT_NOATIME: ::c_int = 0x00008000;
+pub const MNT_UPDATE: ::c_int = 0x00010000;
+pub const MNT_DELEXPORT: ::c_int = 0x00020000;
+pub const MNT_RELOAD: ::c_int = 0x00040000;
+pub const MNT_FORCE: ::c_int = 0x00080000;
+pub const MNT_STALLED: ::c_int = 0x00100000;
+pub const MNT_SWAPPABLE: ::c_int = 0x00200000;
+pub const MNT_WANTRDWR: ::c_int = 0x02000000;
+pub const MNT_SOFTDEP: ::c_int = 0x04000000;
+pub const MNT_DOOMED: ::c_int = 0x08000000;
+
+// For use with vfs_fsync and getfsstat
pub const MNT_WAIT: ::c_int = 1;
pub const MNT_NOWAIT: ::c_int = 2;
pub const MNT_LAZY: ::c_int = 3;