|
|
@@ -34,13 +34,6 @@ pub fn s_islnk(mode: Mode) -> bool {
|
|
|
(mode & S_IFMT) == S_IFLNK
|
|
|
}
|
|
|
|
|
|
-#[derive(Clone, Copy, Default)]
|
|
|
-#[repr(C)]
|
|
|
-pub struct TimeSpec {
|
|
|
- pub sec: u64,
|
|
|
- pub nsec: u64,
|
|
|
-}
|
|
|
-
|
|
|
pub struct FsContext {
|
|
|
pub fsroot: Arc<Dentry>,
|
|
|
pub cwd: Spin<Arc<Dentry>>,
|
|
|
@@ -55,12 +48,6 @@ static GLOBAL_FS_CONTEXT: LazyLock<Arc<FsContext>> = LazyLock::new(|| {
|
|
|
})
|
|
|
});
|
|
|
|
|
|
-impl TimeSpec {
|
|
|
- pub const fn default() -> Self {
|
|
|
- Self { sec: 0, nsec: 0 }
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
impl FsContext {
|
|
|
pub fn global() -> &'static Arc<Self> {
|
|
|
&GLOBAL_FS_CONTEXT
|