Module os::fs

source ·
Expand description

File trait & inode(dir, file, pipe, stdin, stdout)

Modules§

  • inode 🔒
    Arc<Inode> -> OSInodeInner: In order to open files concurrently we need to wrap Inode into Arc,but Mutex in Inode prevents file systems from being accessed simultaneously
  • pipe 🔒
  • stdio 🔒
    Stdin & Stdout

Structs§

  • inode in memory A wrapper around a filesystem inode to implement File trait atop
  • The flags argument to the open() system call is constructed by ORing together zero or more of the following values:
  • IPC pipe
  • The stat of a inode
  • The mode of a inode whether a directory or a file
  • stdin file for getting chars from console
  • stdout file for putting chars to console

Traits§

  • trait File for all file types

Functions§