mirror of
https://github.com/openharmony/third_party_rust_rustix.git
synced 2026-07-21 02:05:28 -04:00
Add more documentation comments.
This commit is contained in:
@@ -741,15 +741,20 @@ pub type FsWord = u32;
|
||||
#[cfg(not(target_os = "redox"))]
|
||||
pub use c::{UTIME_NOW, UTIME_OMIT};
|
||||
|
||||
/// `PROC_SUPER_MAGIC`—The magic number for the procfs filesystem.
|
||||
#[cfg(all(
|
||||
any(target_os = "android", target_os = "linux"),
|
||||
not(target_env = "musl")
|
||||
))]
|
||||
pub const PROC_SUPER_MAGIC: FsWord = c::PROC_SUPER_MAGIC as FsWord;
|
||||
|
||||
/// `PROC_SUPER_MAGIC`—The magic number for the procfs filesystem.
|
||||
#[cfg(all(any(target_os = "android", target_os = "linux"), target_env = "musl"))]
|
||||
pub const PROC_SUPER_MAGIC: FsWord = 0x0000_9fa0;
|
||||
|
||||
/// `copyfile_state_t`—State for use with [`fcopyfile`].
|
||||
///
|
||||
/// [`fcopyfile`]: crate::fs::fcopyfile
|
||||
#[cfg(any(target_os = "ios", target_os = "macos"))]
|
||||
#[allow(non_camel_case_types)]
|
||||
#[repr(transparent)]
|
||||
|
||||
@@ -512,4 +512,5 @@ pub type FsWord = linux_raw_sys::general::__fsword_t;
|
||||
|
||||
pub use linux_raw_sys::general::{UTIME_NOW, UTIME_OMIT};
|
||||
|
||||
/// `PROC_SUPER_MAGIC`—The magic number for the procfs filesystem.
|
||||
pub const PROC_SUPER_MAGIC: FsWord = linux_raw_sys::general::PROC_SUPER_MAGIC as FsWord;
|
||||
|
||||
Reference in New Issue
Block a user