diff options
author | bors <bors@rust-lang.org> | 2022-09-27 22:58:36 +0000 |
---|---|---|
committer | bors <bors@rust-lang.org> | 2022-09-27 22:58:36 +0000 |
commit | 183820f6330d3d7a107632dfc87ef38212046b69 (patch) | |
tree | 2c9f71a8741d1eb4f10ef1ea3e7a5f8088158284 | |
parent | 35cd8f02aa2be40c8ed2d6c33089f2f3da216e7c (diff) | |
parent | 30b8c52be9f7ff78eb7eec2c7fa795b8d46af98a (diff) | |
download | rust-libc-183820f6330d3d7a107632dfc87ef38212046b69.tar.gz |
Auto merge of #2928 - tammela:patch-1, r=JohnTitor
fs: add NSFS_MAGIC constant
NSFS_MAGIC defines the filesystem type for namespaces in Linux
-rw-r--r-- | src/unix/linux_like/mod.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/unix/linux_like/mod.rs b/src/unix/linux_like/mod.rs index 57600f24b8..46964cc173 100644 --- a/src/unix/linux_like/mod.rs +++ b/src/unix/linux_like/mod.rs @@ -1434,6 +1434,7 @@ cfg_if! { pub const UDF_SUPER_MAGIC: ::c_long = 0x15013346; pub const USBDEVICE_SUPER_MAGIC: ::c_long = 0x00009fa2; pub const XENFS_SUPER_MAGIC: ::c_long = 0xabba1974; + pub const NSFS_MAGIC: ::c_long = 0x6e736673; } else if #[cfg(target_arch = "s390x")] { pub const ADFS_SUPER_MAGIC: ::c_uint = 0x0000adf5; pub const AFFS_SUPER_MAGIC: ::c_uint = 0x0000adff; @@ -1487,6 +1488,7 @@ cfg_if! { pub const UDF_SUPER_MAGIC: ::c_uint = 0x15013346; pub const USBDEVICE_SUPER_MAGIC: ::c_uint = 0x00009fa2; pub const XENFS_SUPER_MAGIC: ::c_uint = 0xabba1974; + pub const NSFS_MAGIC: ::c_uint = 0x6e736673; } } |